OSDN Git Service

* config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
2
3         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
4         ia64*-*-linux*): Set extra_parts.
5         * config/ia64/t-aix (EXTRA_PARTS): Remove.
6         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
7
8 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
9
10         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
11         * config/h8300/h8300.c: Likewise.
12         * config/h8300/h8300.h: Likewise.
13         * config/h8300/h8300.md: Likewise.
14         * doc/invoke.texi: Likewise.
15
16 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
17
18         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
19
20 2002-09-13  Matt Austern  <austern@apple.com>
21
22         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
23         * cp/call.c: Change call-by-const-reference mechanism to use
24         non_cast_lvalue_p when deciding whether the create a temporary.
25         We need a temporary when passing, e.g. (long) x by const ref.
26         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
27         passing a cast expression to a function by const reference.
28         
29 2002-09-13  Richard Henderson  <rth@redhat.com>
30
31         * config/alpha/alpha.md (attr type): Add callpal.
32         (imb, trap, load_tp, set_tp): Use it.
33         * config/alpha/ev4.md (ev4_callpal): New.
34         * config/alpha/ev5.md (ev5_callpal): New.
35         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
36         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
37         (alphaev5_insn_pipe): Likewise.
38
39 2002-09-13  Andreas Jaeger  <aj@suse.de>
40
41         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
42
43 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
44
45         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
46         LIB2ADDEH): New, set to NULL.
47         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
48
49 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
50
51         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
52         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
53         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
54         Add declarations.
55         (_U_Qfneg): Remove.
56
57 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
58
59         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
60         for H8/300, H8/S aa:8 mode.
61         (TINY_CONSTANT_ADDRESS_P): Add support for H8/S aa:16 mode.
62         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
63         for H8/300 aa:8 mode.
64
65 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
66
67         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
68         insns.
69
70 2002-09-12  Richard Henderson  <rth@redhat.com>
71
72         * Makefile.in (HOST_PRINT): Use print-rtl1.o
73         (print-rtl.o): Don't define GENERATOR_FILE.
74         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
75         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
76         unless GENERATOR_FILE.
77
78 2002-09-12  Stan Shebs  <shebs@apple.com>
79
80         * config/darwin.h (USER_LABEL_PREFIX): Define here...
81         * config/i386/darwin.h: ... instead of here.
82
83         * target.h (struct gcc_target): New field
84         terminate_dw2_eh_frame_info.
85         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
86         (TARGET_INITIALIZER): Add it.
87         * dwarf2out.c (output_call_frame_info): Use target hook.
88         * dwarf2asm.c (dw2_asm_output_delta): Use macro
89         ASM_OUTPUT_DWARF_DELTA if defined.
90         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
91         (ASM_OUTPUT_DWARF_DELTA): Ditto.
92         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
93         (ASM_OUTPUT_DWARF_PCREL): Ditto.
94         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
95         (powerpc-*-darwin*): Ditto.
96         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
97         to work correctly for Darwin.
98         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
99         (STARTFILE_SPEC): Add crtbegin.o.
100         (ENDFILE_SPEC): Define.
101         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
102         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
103         (ASM_OUTPUT_DWARF_DELTA): Define.
104         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
105         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
106
107 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
108
109         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
110         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
111         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
112
113 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
114
115         * toplev.c: Move default definition of USER_LABEL_PREFIX...
116         * defaults.h: ... here.
117
118 2002-09-12  Richard Henderson  <rth@redhat.com>
119
120         * vax.c: Include tree.h earlier.
121
122 2002-09-12  Stan Shebs  <shebs@apple.com>
123
124         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
125         (machopic_operand_p): Ditto.
126
127 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
128
129         * config/arm/arm.c (arm_compute_initial_elimination_offset):
130         Fix a comment typo.
131
132 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
133
134         * toplev.c (do_abort): Fix a comment typo.
135
136 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
137
138         * cselib.c: Fix comment formatting.
139         * gengtype.c: Likewise.
140
141 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
142
143         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
144         (udivmodhi4): Likewise.
145
146 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
147             Roger Sayle  <roger@eyesopen.com>
148
149         * i386.c (any_fp_register_operand, fp_register_operand,
150         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
151         New predicate functions.
152         * i386-protos.h:  Add their prototypes.
153         * i386.h: Add them to PREDICATE_CODES.
154         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
155         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
156         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
157         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
158         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
159         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
160         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
161         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
162         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
163         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
164         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
165         Use these new predicates to simplify and correct the use of
166         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
167
168 2002-09-12  Jason Merrill  <jason@redhat.com>
169
170         * diagnostic.c (output_add_identifier): New fn.
171         * diagnostic.h: Declare it.
172
173         * calls.c (store_one_arg): Use size_in_bytes to determine the
174         amount of space to push.
175
176 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
177
178         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
179
180 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
181
182         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
183         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
184         (s390_select_ccmode): Likewise.
185         (s390_branch_condition_mask): Likewise.
186         (optimization_options): Do not set flag_branch_on_count.
187         (s390_split_branches): Handle doloop branches.
188         (s390_chunkify_pool): Likewise.
189         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
190         ("doloop_end"): New expander.
191         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
192         associated splitters): New.
193
194 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
195
196         * fold-const.c (make_range): Only narrow to signed range if
197         the signed range is smaller than the unsigned range.
198
199 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
200
201         * emit-rtl.c (set_mem_size): New function.
202         * expr.h (set_mem_size): Declare.
203         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
204         (expand_block_move): Instead, use adjust_address and
205         replace_equiv_address to generate proper aliasing info.
206         Move common code out of conditionals.  Localize vars.
207
208 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
209
210         * optabs.c (expand_binop): Minor cleanup.
211         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
212
213 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
214
215         * print-tree.c (print_node): Print the restrict qualifier.
216
217 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
218
219         * doc/install.texi: Fix typos.
220
221 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
222
223         * Makefile.in: Remove all references to s-under and underscore.c.
224         * collect2.c, tlink.c: Change all uses of prepends_underscore
225         to look directly at USER_LABEL_PREFIX.
226
227 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
228
229         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
230         alignment to csect.
231         (rs6000_xcoff_unique_section): Only set section name for public
232         data.
233         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
234         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
235         duplicate definition.
236
237 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
238
239         * pa.md (extzv): Check predicates before emitting extzv_32.
240         (insv): Likewise.
241
242 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
243
244         * config/s390/s390.h (MOVE_MAX): Define to correct value.
245         (MAX_MOVE_MAX): Define.
246         (MOVE_BY_PIECES_P): Define.
247         (CLEAR_BY_PIECES_P): Define.
248
249 2002-09-10  Denis Chertykov  <denisc@overta.ru>
250
251         * config/avr/avr.md (movstrhi): Use right operands for conversion.
252
253 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
254
255         PR c/7873
256         * arm.md (insv): Use reg_or_int_operand for operand[3].
257
258 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
259
260         * rs6000.c (rs6000_assemble_visibility): Protect declaration
261         inside macro.  Correct function definition typo.
262         (rs6000_xcoff_section_type_flags): New function.
263         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
264         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
265         with appropriate PIC test.
266         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
267         determine readonly.
268         (rs6000_binds_local_p): Combine PIC flags.
269         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
270         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
271
272 2002-09-09  Per Bothner  <per@bothner.com>
273
274         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
275         characters, and only print TREE_STRING_LENGTH chars.
276
277 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
278
279         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
280         (ASM_FILE_END) New.
281         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
282         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
283         * config/ia64/ia64.c (ia64_asm_output_external): Create list
284         of external functions if TARGET_HPUX_LD is true.
285         (ia64_hpux_add_extern_decl): New, routine to put names on
286         list of external functions.
287         (ia64_hpux_asm_file_end): Put out declarations for external
288         functions if and only if they are used.
289
290 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
291
292         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
293         on TARGET_64BIT before pic register restore.
294
295 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
296
297         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
298         (TARGET_HAVE_TLS): New description.
299
300 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
301
302         * doc/extend.texi (Statement Exprs): Fix broken link.
303
304 2002-09-09  Denis Chertykov  <denisc@overta.ru>
305
306         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
307         right conversion of operands[1].
308
309 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
310
311         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
312         commutative.  Use "nonimmediate_operand" instead of "register_operand"
313         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
314
315         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
316         as commutative.
317
318         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
319         mark as commutative.  Use "nonimmediate_operand" instead of
320         "register_operand" as predicate for operand 1.
321
322         ("movstrictsi"): Fix typo in insn name.
323
324 2002-09-09  Jan Hubicka  <jh@suse.cz>
325
326         * i386.c (index_register_operand): New.
327         * i386.h (predicate_codes): Add new predicate.
328         * i386.md (lea_general_*): Use index_regsiter_operand
329         (ashift to lea splitter): Do not produce invalid leas
330         (ashift to mov+ashift split): New.
331
332 2002-09-09  Nick Clifton  <nickc@redhat.com>
333
334         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
335         Fix folding marks.
336
337 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
338             J"orn Rennecke <joern.rennecke@superh.com>
339
340         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
341
342 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
343
344         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
345         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
346         attributes.
347
348 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
349
350         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
351
352 2002-09-08  Richard Henderson  <rth@redhat.com>
353
354         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
355         (DW_OP_GNU_push_tls_address): New.
356         (DW_OP_lo_user): Fix.
357         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
358         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
359         (size_of_loc_descr): Likewise.
360         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
361         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
362         (loc_descriptor_from_tree): Handle TLS variables.
363         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
364         (add_location_or_const_value_attribute): ... not here.  Defer
365         to loc_descriptor_from_tree for TLS variables.
366
367         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
368         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
369         * config/i386/i386-protos.h: Update.
370
371 2002-09-08  Roger Sayle  <roger@eyesopen.com>
372
373         PR optimization/6405
374         * unroll.c (loop_iterations): last_loop_insn should be the previous
375         non-note instruction before loop->end.
376         * loop.c (strength_reduce): The conditional jump is the last
377         non-note instruction before loop->end (as above).
378
379 2002-09-08  Roger Sayle  <roger@eyesopen.com>
380
381         * combine.c (try_combine): Handle the case that undobuf.other_insn
382         has been turned into a return or unconditional jump, by inserting
383         a BARRIER if necessary.
384         (simplify_set):  Test if a condition code setter has a constant
385         comparison at compile time, if so convert this insn to a no-op move
386         and update/simplify the condition code user (undobuf.other_insn).
387
388 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
389
390         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
391         (CLEAR_INSN_CACHE): Define.
392
393 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
394
395         * basic-block.h: Fix comment formatting.
396         * c-common.c: Likewise.
397         * c-common.h: Likewise.
398         * c-lex.c: Likewise.
399         * c-pretty-print.c: Likewise.
400         * cfglayout.c: Likewise.
401         * cfgloop.c: Likewise.
402         * defaults.h: Likewise.
403         * et-forest.c: Likewise.
404         * explow.c: Likewise.
405         * function.h: Likewise.
406         * gcov.c: Likewise.
407         * genattrtab.c: Likewise.
408         * gengtype.c: Likewise.
409         * ifcvt.c: Likewise.
410         * libgcc2.c: Likewise.
411         * loop.c: Likewise.
412         * profile.c: Likewise.
413         * ra-build.c: Likewise.
414         * real.c: Likewise.
415         * rtl.h: Likewise.
416         * tracer.c: Likewise.
417         * tree-inline.c: Likewise.
418         * varasm.c: Likewise.
419
420 2002-09-08  Jan Hubicka  <jh@suse.cz>
421
422         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
423         handling.
424
425         * loop.c (loop_gics_reduce):  Emit addition after.
426
427 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
428
429         * varasm.c (default_assemble_visibility): Rename from
430         assemble_visibility.
431         * output.h: Here too.
432         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
433         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
434
435 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
436
437         * reload.c (find_reloads <p constraint>): Pass operand_mode to
438         find_reloads_address.
439
440 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
441
442         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
443         (anonymous pattern): Likewise.
444
445 2002-09-07  Scott Snyder  <snyder@fnal.gov>
446
447         PR target/7374
448         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
449
450 2002-09-07  Roger Sayle  <roger@eyesopen.com>
451
452         * basic-block.h (struct loop): Remove unused cont_dominator field.
453
454 2002-09-07  Igor Shevlyakov <igor@microunity.com>
455
456         * varasm.c (decode_rtx_const): Don't check undefined field for
457         CONST_VECTOR.
458
459 2002-09-07  Glen Nakamura  <glen@imodulo.com>
460
461         PR opt/7814
462         * sched-deps.c (sched_analyze_insn): Make sure to add insn
463         to reg_last->sets after flushing the dependency lists to guarantee
464         that subsequent clobbers will be dependent on it.
465
466 2002-09-07  Igor Shevlyakov <igor@microunity.com>
467
468         * combine.c (simplify_shift_const): Calculate rotate count
469         correctly for vector operands.
470
471 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
472
473         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
474         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
475         tree_expr_nonnegative_p.
476         (build_conditional_expr): Likewise.
477         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
478
479 2002-09-07  Richard Henderson  <rth@redhat.com>
480
481         * builtins.def (inf, inff, infl): Mark const.
482         (huge_val, huge_valf, huge_vall): Likewise.
483         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
484
485         * real.c (ereal_inf): Clear E before use.
486
487 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
488
489         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
490         an expander and an anonymous pattern.  Zero out the upper half
491         of the dividend in the expander.
492         (udivmodqi4): Likewise.
493
494 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
495
496         * config/h8300/h8300.c: Fix formatting.
497         * config/h8300/h8300.h: Likewise.
498         * config/h8300/h8300.md: Likewise.
499
500 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
501
502         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
503         information.
504
505 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
506
507        * rtlanal.c (dead_or_set_regno_p): Fix typo.
508
509 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
510
511         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
512
513         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
514         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
515         (TARGET_ASM_OUT): Add the above here.
516         * target.h (struct gcc_target): Add "visibility" field.
517         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
518         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
519         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
520         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
521
522 2002-09-06  Ziemowit Laski <zlaski@apple.com>
523
524         * c-lang.c (objc_is_id): New stub.
525         * c-tree.h (objc_is_id): New forward declaration.
526         * c-typeck.c (build_c_cast): Do not strip protocol
527         qualifiers from 'id' type.
528         * objc/objc-act.c (objc_comptypes): Correct handling
529         of protocol qualifiers.
530         (objc_is_id): New.
531
532 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
533
534         * pentium.md (pentium-firstvboth): Fix typo.
535
536 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
537
538         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
539         (enum shift_type, enum h8_cpu): Likewise.
540         (INL, ROT, LOP, SPC macros): Likewise.
541         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
542         const designator.
543         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
544         space efficient algorithms when optimize for codesize.
545
546 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
547
548         Fix PR/1727 and long-standing failing testcase
549         objc/formal-protocol-6.m.
550         * objc-act.c (build_protocol_expr): If compiling for the GNU
551         runtime, create a list of Protocol statically allocated instances
552         if it doesn't exist, then add the Protocol object to this same
553         list.
554         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
555         instead of TREE_CHAIN.
556
557 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
558
559         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
560         10k.  Fixed category dumping - print out category names with the
561         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
562         interface.
563         (finish_objc): Fixed the -gen-decls option.  It was printing out
564         only the last class.  Dump an interface declaration of all classes
565         being compiled instead.
566
567 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
568
569         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
570         prototype.
571         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
572         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
573         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
574         rather than GEN_INT.
575         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
576         (return_addr_mask, *check_arch2): New.
577
578 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
579
580         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
581         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
582         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
583         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
584         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
585         "adddf3", "*adddf3", "*adddf3_ibm",
586         "addsf3", "*addsf3", "*addsf3_ibm",
587         "muldi3", "mulsi3", "mulsidi3",
588         "muldf3", "*muldf3", "*muldf3_ibm",
589         "mulsf3", "*mulsf3", "*mulsf3_ibm",
590         "*anddi3_cc", "*anddi3_cconly", "anddi3",
591         "*andsi3_cc", "*andsi3_cconly", "andsi3",
592         "*iordi3_cc", "*iordi3_cconly", "iordi3",
593         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
594         "*xordi3_cc", "*xordi3_cconly", "xordi3",
595         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
596         instead of "register_operand" as predicate for "%0" operand.
597
598 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
599
600         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
601         unconditionally when gcc_cv_as_flags64 checks are gone.
602         * configure: Rebuilt.
603
604 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
605
606         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
607         2002-07-26 change.  Comment.
608
609 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
610
611         * frv.c (frv_unique_section, frv_select_section,
612         frv_select_rtx_section): Delete.
613         (frv_in_small_data_p): New.
614         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
615         TARGET_ASM_SELECT_RTX_SECTION): Delete.
616         (TARGET_IN_SMALL_DATA_P): Define.
617
618 2002-09-05  Dale Johannesen  <dalej@apple.com>
619
620         * reload1.c (reload):  Retain only those memory clobbers
621         added for variable-array handling.
622
623 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
624
625         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
626         return-in-memory rules.
627         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
628
629 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
630
631         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
632         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
633
634 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
635
636         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
637         not a compile-time constant for the non-IBM case.
638         * config/arm/arm-protos.h (arm_float_words_big_endian): New
639         prototype.
640         * config/arm/arm.c (arm_float_words_big_endian): New function.
641         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
642         if TARGET_VFP  and not TARGET_HARD_FLOAT.
643         (ARM_FLAG_VFP, TARGET_VFP): Define.
644         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
645
646 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
647
648         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
649         URLs.  Fix AIX wording.
650
651 2002-09-05  Stan Shebs  <shebs@apple.com>
652
653         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
654         -fPIC equivalent on Darwin.
655
656 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
657
658         * sh.c (sh_expand_builtin): Return early if encountering an
659         error_mark for a type.
660
661 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
662
663         * config/s390/s390.c (s390_expand_plus_operand): Do not require
664         double-word scratch register.
665         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
666
667         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
668         "*cli"): Replace s_operand by memory_operand.
669         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
670
671 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
672
673         * config/h8300/h8300.c (asm_file_start): Add a missing
674         semicolon.
675
676 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
677
678         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
679         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
680         (ix86_output_addr_diff_elt) Likewise.
681         (x86_output_mi_thunk) Likewise.
682         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
683
684 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
685
686         * frv.c (frv_encode_section_info): Fix error in last change.
687
688 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
689
690         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
691         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
692         (TARGET_BINDS_LOCAL_P): Define.
693         (rs6000_override_options): Save original flag_pic value.
694         (rs6000_elf_select_section): Call default_elf_select_section_1.
695         (rs6000_elf_unique_section): Call default_unique_section_1.
696         (rs6000_elf_in_small_data_p): New function.
697         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
698         (rs6000_xcoff_select_section): Update based on defaults.
699         (rs6000_xcoff_unique_section): Set to basic name if not common.
700         (rs6000_binds_local_p): New function.
701         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
702         targetm.have_srodata_section if SDATA_EABI.
703         (TARGET_IN_SMALL_DATA_P): Define.
704
705 2002-09-04  Dale Johannesen  <dalej@apple.com>
706
707         * varasm.c (struct rtx_const, decode_rtx_const):
708         Make veclo and vechi fields not share storage.
709
710 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
711
712         * loop.c (scan_loop): Don't mark separate insns out of a libcall
713         for moving.
714         (move_movables): Abort if we see the first insn of a libcall.
715
716 2002-09-04  Richard Henderson  <rth@redhat.com>
717
718         * builtin-types.def (BT_FN_FLOAT): New.
719         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
720         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
721         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
722         * builtins.c (fold_builtin_inf): New.
723         (fold_builtin): Call it.
724         * real.c (ereal_inf): New.
725         * real.h: Declare it.
726         * doc/extend.texi: Document new builtins.
727
728 2002-09-04  Richard Henderson  <rth@redhat.com>
729
730         * cse.c (cse_insn): Avoid subreg games if the equivalence
731         is already in the proper mode.
732
733 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
734
735         PR c/7102
736         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
737
738 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
739
740         * pa.md (setccfp0, setccfp1): New patterns.
741
742 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
743
744         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
745         frv_select_section, frv_select_rtx_section,
746         frv_encode_section_info, frv_unique_section): Delete.
747         * frv.c: Update for target hooks.
748         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
749         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
750         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
751
752 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
753
754         * ip2k-protos.h (function_prologue, function_epilogue,
755         encode_section_info): Update to match target hook specification.
756         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
757         (function_prologue, function_epilogue, encode_section_info):
758         Update to match target hook specification.
759         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
760         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
761         (NOTICE_UPDATE_CC): Cast to void.
762         * ip2k.md: Add defaults in switch statements.
763
764 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
765
766         * doc/trouble.texi (Interoperation): Update information about C++ ABI
767         issues.
768
769 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
770
771         * config/sparc/t-netbsd64: Disable multilib for now.
772
773 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
774
775         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
776         * target.h (gcc_target): Add have_srodata_section member.
777         * varasm.c (section_category): Add SECCAT_SRODATA.
778         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
779         READONLY_SDATA_SECTION defined.
780         (decl_readonly_section_1): True for SECCAT_SRODATA also.
781         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
782         (default_unique_section_1): Likewise.
783
784 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
785
786         * expr.c (emit_group_load): Revise to allow splitting TCmode source
787         into DImode pieces.
788
789         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
790         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
791         for floating-point register class.
792         * pa.c (function_arg): Fix handling of modes wider than one word for
793         TARGET_64BIT.
794
795 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
796
797         * combine.c (make_compound_operation): Don't generate zero / sign
798         extensions in floating point modes.
799
800 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
801
802         * doc/c-tree.texi: Fix overfull hboxes.
803         * doc/cppopts.texi: Ditto.
804         * doc/extend.texi: Ditto.
805         * doc/gty.texi: Ditto.
806         * doc/invoke.texi: Ditto.
807         * doc/makefile.texi: Ditto.
808         * doc/rtl.texi: Ditto.
809         * doc/standards.texi: Ditto.
810         * doc/tm.texi: Ditto.
811
812 2002-09-04  Richard Henderson  <rth@redhat.com>
813
814         * c-common.c (builtin_define_with_hex_fp_value): New.
815         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
816
817 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
818
819         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
820         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
821         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
822         Warn that these options can break ABI compatibility.
823
824 2002-09-04  Richard Henderson  <rth@redhat.com>
825
826         * real.c (ereal_to_decimal): Add digits parameter.
827         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
828         * c-pretty-print.c (pp_c_real_literal): Update call.
829         * print-rtl.c (print_rtx): Likewise.
830         * print-tree.c (print_node_brief, print_node): Likewise.
831         * sched-vis.c (print_value): Likewise.
832         * config/arc/arc.c (arc_print_operand): Likewise.
833         * config/c4x/c4x.c (c4x_print_operand): Likewise.
834         * config/i370/i370.h (PRINT_OPERAND): Likewise.
835         * config/i386/i386.c (print_operand): Likewise.
836         * config/i960/i960.c (i960_print_operand): Likewise.
837         * config/ip2k/ip2k.c (asm_output_float): Likewise.
838         * config/m32r/m32r.c (m32r_print_operand): Likewise.
839         * config/m68hc11/m68hc11.c (print_operand): Likewise.
840         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
841         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
842         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
843         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
844         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
845         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
846         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
847         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
848         * config/mips/mips.c (print_operand): Likewise.
849         * config/ns32k/ns32k.c (print_operand): Likewise.
850         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
851         * config/vax/vax.h (PRINT_OPERAND): Likewise.
852         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
853
854 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
855
856         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
857         xtensa_multibss_section_type_flags.
858         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
859
860 2002-09-04  Richard Henderson  <rth@redhat.com>
861
862         * doc/install-old.texi: Don't mention enquire.
863         * doc/sourcebuild.texi: Update float.h description.
864
865 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
866
867         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
868
869 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
870
871         * varasm.c (default_section_type_flags): Append _1 to name with
872         shlib parameter.  Use original name to call new function with
873         implicit flag_pic.
874         (decl_readonly_section): Likewise.
875         (default_elf_select_section): Likewise.
876         (default_unique_section): Likewise.
877         (default_bind_local_p): Likewise.
878         (categorize_decl_for_section): Add shlib parameter to use in place
879         of implicit flag_pic.
880         * output.h: Declare new functions with _1 and shlib argument.
881
882 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
883
884         * doc/install.texi: Fix typos, formatting problems, and obvious
885         overfull/underfull boxes.
886
887         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
888         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
889         include its file, compat.texi.
890         * doc/compat.texi: New file with new chapter, Binary Compatibility.
891
892 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
893
894         Debian BTS Bug #157416
895         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
896         * cpplib.c (destringize_and_run): Kludge around getting
897         tokens from in-progress macros.
898         (_cpp_do__Pragma): Simplify.
899
900 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
901
902         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
903         (CPP_CPU_SPEC): Remove.
904         (TARGET_CPU_CPP_BUILTINS): New.
905         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
906         (CPP_SPEC): Remove.
907         (TARGET_OS_CPP_BUILTINS): New.
908         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
909         (TARGET_OS_CPP_BUILTINS): New.
910         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
911         TARGET_OS_CPP_BUILTINS.
912         (CPP_PREDEFINES): Remove.
913         (CPLUSPLUS_CPP_SPEC): Remove.
914         (TARGET_OS_CPP_BUILTINS): New.
915
916 2002-09-03  Richard Henderson  <rth@redhat.com>
917
918         * Makefile.in (USER_H): Add ginclude/float.h.
919         (FLOAT_H): Remove.
920         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
921         (mostlyclean): Don't remove float.h intermediate files.
922         (distclean): Don't remove float.h.
923         * config.gcc: Remove all float_format references.
924         * configure.in (float_format, float_h_file): Remove.
925
926         * c-common.c: Include tree-inline.h.
927         (builtin_define_with_int_value): New.
928         (builtin_define_type_precision): Use it.
929         (builtin_define_float_constants): New.
930         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
931         __FLT_EVAL_METHOD__.
932         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
933         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
934         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
935         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
936         (TARGET_FLT_EVAL_METHOD): New.
937
938         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
939         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
940         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
941         * ginclude/float.h: New.
942
943 2002-09-03  Stan Shebs  <shebs@apple.com>
944
945         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
946         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
947         (PREFERRED_DEBUGGING_TYPE): Ditto.
948         (ASM_OUTPUT_IDENT): Remove empty definition.
949
950 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
951
952         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
953         cxx_target.
954         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
955         handling routine for builtin pragma.
956         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
957         Registered pragma handling routine.
958         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
959         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
960         If builtin pragma seen for math routine and C89 conformance is
961         requested use different math function in order to set errno.
962         * t-ia64 (ia64-c.o): Add new rule for new file.
963
964 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
965
966         * config/s390/s390.md ("movti"): Add Q->Q alternative.
967         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
968         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
969
970         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
971         "*movsf_ss"): Remove.
972
973 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
974
975         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
976         Delete macros.
977
978 2002-09-03   Arati Dikey  <aratid@kpit.com>
979
980         * h8300.c (asm_file_start): Corrected optimization comment.
981
982 2002-09-03  Stan Shebs  <shebs@apple.com>
983
984         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
985         * c-tree.h (recognize_objc_keyword): Remove decl.
986         * c-typeck.c (comp_target_types): Update a comment.
987
988 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
989
990         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
991         and register validity checks.
992         (general_s_operand): Adapt to s390_decompose_address interface change.
993         (q_constraint): Likewise.
994         (s390_expand_plus_operand): Likewise.
995         (legitimiate_address_p): Likewise.
996         (legitimate_la_operand_p): Likewise.
997         (legitimize_la_operand): Likewise.
998         (print_operand_address): Likewise.
999         (print_operand): Likewise.
1000
1001 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1002
1003         PR objc/5956:
1004         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
1005         was causing the new selector never to match the existing ones
1006         (Patch by Alexander Malmberg <alexander@malmberg.org>).
1007
1008 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1009
1010         * config/i386/i386.md ("femms"): Add "memory" attr "none".
1011
1012 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1013
1014         * expr.c (expand_expr): Remove extraneous comment and code.
1015
1016 2002-08-31  Richard Henderson  <rth@redhat.com>
1017
1018         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
1019
1020 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1021
1022         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
1023
1024 2002-08-30  Richard Henderson  <rth@redhat.com>
1025
1026         PR opt/7515
1027         * c-objc-common.c: Include target.h.
1028         (c_cannot_inline_tree_fn): Don't auto-inline functions that
1029         don't bind locally.  Factor setting DECL_UNINLINABLE.
1030         * Makefile.in (c-objc-common.o): Update.
1031
1032 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
1033
1034         * doc/install.texi (Configuration, Building): Fix a typo and
1035         some formatting directives.
1036
1037 2002-08-30  Paul Koning <pkoning@equallogic.com>
1038
1039         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
1040         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
1041         implemented" note.
1042         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
1043         for alphabetic order.
1044         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
1045         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
1046         (VAX_HALFWORD_ORDER): Document.
1047         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
1048         IEEE float format.
1049         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
1050         (ASM_OUTPUT_LABEL_REF): Fix font.
1051         (CASE_VECTOR_SHORTEN_MODE): Ditto.
1052
1053 2002-08-30  Denis Chertykov  <denisc@overta.ru>
1054
1055         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
1056         stuff.
1057         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
1058         CONST_DOUBLE constants.
1059
1060 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
1061
1062         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
1063         related defines to...
1064         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
1065         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
1066         as a no-op.
1067
1068 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
1069
1070         * config/arm/arm.c (arm_asm_output_labelref): New function.
1071         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
1072         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
1073
1074 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
1075
1076         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
1077         memory exhausted" workarounds.
1078
1079 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1080
1081         * diagnostic.c (fancy_abort): Don't repeat "internal error".
1082         * toplev.c (crash_signal): Likewise.
1083
1084 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1085
1086         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
1087         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
1088         Extended, updated documentation.
1089         (-Wundeclared-selector): Documented.
1090
1091 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
1092
1093         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
1094         the value 1.  Do not undef before defining.
1095         * config/darwin.h: Likewise.
1096         * config/dbx.h: Likewise.
1097         * config/dbxcoff.h: Likewise.
1098         * config/dbxelf.h: Likewise.
1099         * config/elfos.h: Likewise.
1100         * config/interix.h: Likewise.
1101         * config/lynx-ng.h: Likewise.
1102         * config/lynx.h: Likewise.
1103         * config/netware.h: Likewise.
1104         * config/psos.h: Likewise.
1105         * config/svr3.h: Likewise.
1106         * config/alpha/alpha.h: Likewise.
1107         * config/alpha/elf.h: Likewise.
1108         * config/alpha/vms.h: Likewise.
1109         * config/arc/arc.h: Likewise.
1110         * config/arm/aout.h: Likewise.
1111         * config/arm/coff.h: Likewise.
1112         * config/c4x/c4x.h: Likewise.
1113         * config/h8300/h8300.h: Likewise.
1114         * config/i386/cygwin.h: Likewise.
1115         * config/i386/djgpp.h: Likewise.
1116         * config/i386/gas.h: Likewise.
1117         * config/i386/gstabs.h: Likewise.
1118         * config/i386/i386-coff.h: Likewise.
1119         * config/i386/i386-interix.h: Likewise.
1120         * config/i386/sco5.h: Likewise.
1121         * config/i386/svr3dbx.h: Likewise.
1122         * config/i386/sysv3.h: Likewise.
1123         * config/i386/win32.h: Likewise.
1124         * config/i386/x86-64.h: Likewise.
1125         * config/i960/i960.h: Likewise.
1126         * config/ia64/ia64.h: Likewise.
1127         * config/ip2k/ip2k.h: Likewise.
1128         * config/m32r/m32r.h: Likewise.
1129         * config/m68k/3b1.h: Likewise.
1130         * config/m68k/3b1g.h: Likewise.
1131         * config/m68k/ccur-GAS.h: Likewise.
1132         * config/m68k/coff.h: Likewise.
1133         * config/m68k/hp2bsd.h: Likewise.
1134         * config/m68k/hp310g.h: Likewise.
1135         * config/m68k/hp320g.h: Likewise.
1136         * config/m68k/hp3bsd.h: Likewise.
1137         * config/m68k/hp3bsd44.h: Likewise.
1138         * config/m68k/linux-aout.h: Likewise.
1139         * config/m68k/m68k-aout.h: Likewise.
1140         * config/m68k/mot3300.h: Likewise.
1141         * config/m68k/netbsd.h: Likewise.
1142         * config/m68k/openbsd.h: Likewise.
1143         * config/m68k/pbb.h: Likewise.
1144         * config/m68k/plexus.h: Likewise.
1145         * config/m68k/sun2.h: Likewise.
1146         * config/m68k/sun3.h: Likewise.
1147         * config/m68k/tower-as.h: Likewise.
1148         * config/m68k/vxm68k.h: Likewise.
1149         * config/m88k/aout-dbx.h: Likewise.
1150         * config/m88k/m88k-aout.h: Likewise.
1151         * config/mcore/mcore-elf.h: Likewise.
1152         * config/mcore/mcore-pe.h: Likewise.
1153         * config/mips/elf.h: Likewise.
1154         * config/mips/elf64.h: Likewise.
1155         * config/mips/iris5gas.h: Likewise.
1156         * config/mips/iris6.h: Likewise.
1157         * config/mips/mips.h: Likewise.
1158         * config/mips/sni-gas.h: Likewise.
1159         * config/mmix/mmix.h: Likewise.
1160         * config/ns32k/netbsd.h: Likewise.
1161         * config/pa/pa64-hpux.h: Likewise.
1162         * config/romp/romp.h: Likewise.
1163         * config/rs6000/sysv4.h: Likewise.
1164         * config/rs6000/xcoff.h: Likewise.
1165         * config/sh/coff.h: Likewise.
1166         * config/sh/elf.h: Likewise.
1167         * config/sparc/linux64.h: Likewise.
1168         * config/sparc/liteelf.h: Likewise.
1169         * config/sparc/netbsd.h: Likewise.
1170         * config/sparc/openbsd.h: Likewise.
1171         * config/sparc/pbd.h: Likewise.
1172         * config/sparc/sp64-elf.h: Likewise.
1173         * config/sparc/sp86x-elf.h: Likewise.
1174         * config/sparc/sparc.h: Likewise.
1175         * config/vax/vax.h: Likewise.
1176         * config/vax/vaxv.h: Likewise.
1177
1178 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
1179
1180         * h8300.c (shift_alg_hi): Various tweaks to improve performance
1181         of HImode shifts.
1182         (get_shift_alg): Corresponding changes.
1183
1184 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1185
1186         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
1187
1188 2002-08-29  Richard Henderson  <rth@redhat.com>
1189
1190         * expr.h (enum block_op_methods): New.
1191         (emit_block_move): Update prototype.
1192         * expr.c (block_move_libcall_safe_for_call_parm): New.
1193         (emit_block_move_via_loop): New.
1194         (emit_block_move): Use them.  New argument METHOD.
1195         (emit_push_insn): Always respect the given alignment.
1196         (expand_assignment): Update call to emit_block_move.
1197         (store_expr, store_field, expand_expr): Likewise.
1198         * builtins.c (expand_builtin_apply): Likewise.
1199         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1200         * function.c (expand_function_end): Likewise.
1201         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
1202         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1203         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1204         (save_fixed_argument_area): Use emit_block_move with
1205         BLOCK_OP_CALL_PARM instead of move_by_pieces.
1206         (restore_fixed_argument_area): Likewise.
1207         (store_one_arg): Fix alignment parameter to emit_push_insn.
1208
1209 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1210
1211         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
1212
1213 2002-08-29  Catherine Moore  <clm@redhat.com>
1214
1215         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
1216         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
1217         (PREDICATE_CODES): Include new predicates.
1218         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
1219         (TARGET_SWITCHES):  Add strict-align.
1220         (TARGET_STRICT_ALIGN): New.
1221         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
1222         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1223         Define.
1224         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
1225         v850_muldi3.
1226         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
1227         L_callt_save_r2_r31, L_return_r2_r31,
1228         L_save_all_interrupt): Change addi to add.
1229         (L_save_interrupt, L_return_interrupt): Rework.
1230         (__return_r31):  Correct .size directive.
1231         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
1232         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
1233         New routines.
1234         * config/v850/v850.c (expand_prologue): Call
1235         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
1236         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
1237         (reg_or_int9_operand): New predicate.
1238         (reg_or_const_operand): New routine.
1239         * config/v850/v850.md (return_interrupt): Changed from
1240         restore_interrupt.
1241         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
1242         (callt_save_interrupt): Change save sequence.
1243         (callt_return_interrupt): New.
1244         (save_interrupt): Don't use runtime function for LONG_CALLS
1245         and TARGET_PROLOG_FUNCTION.
1246         (save_all_interrupt): Likewise.
1247         (mulsi3): Use new predicate.
1248         (moviscc): Disallow some combination of constants.
1249         Fix define_split for sasf insns, so that it will not generate bad
1250         code if operand0 and operand5 are the same.
1251         * config/v850/v850-protos.h: Prototype new predicates.
1252
1253 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1254
1255         * c-common.c (builtin_define_type_precision): New function.
1256         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
1257         wchar_t is unsigned in C++.
1258         * doc/cpp.texi (Common Predefined Macros): Document
1259         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
1260         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
1261         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
1262
1263 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
1264
1265         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
1266         section.  Mention that it is enabled by -Wall.
1267         (-Wall): Mention that there can be language-specific warnings as well.
1268         (-Wctor-dtor-privacy): Mention that it is enabled by default.
1269         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
1270
1271 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
1272
1273         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
1274         if it is ever live.
1275
1276         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
1277         attribute for SHCOMPACT.
1278
1279         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
1280         appropriately.
1281         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
1282         by the ABI.
1283
1284         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
1285
1286 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
1287
1288         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
1289         "MASK_GAS|MASK_ABICALLS".
1290         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
1291         (TARGET_DEFAULT): Remove.
1292         (MACHINE_TYPE): Undefine before defining.
1293         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
1294
1295 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
1296
1297         * c-common.c (warn_abi): New variable.
1298         * c-common.h (warn_abi): Likewise.
1299         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
1300         (c_common_decode_option): Handle it.
1301         * doc/invoke.texi: Document -Wabi.
1302
1303 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1304
1305         * c-common.c (warn_undeclared_selector): New variable.
1306         * c-common.h (warn_undeclared_selector): Idem.
1307         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
1308         to on when -Wundeclared-selector is found.
1309         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
1310         * objc/objc-act.c (build_selector_expr): If
1311         warn_undeclared_selector is set, check that the selector has
1312         already been defined, and emit a warning if not.
1313
1314 2002-08-27  Nick Clifton  <nickc@redhat.com>
1315             Catherine Moore  <clm@redhat.com>
1316             Jim Wilson  <wilson@cygnus.com>
1317
1318         * config.gcc: Add v850e-*-* target.
1319         Add --with-cpu= support for v850.
1320         * config/v850/lib1funcs.asm: Add v850e callt functions.
1321         * config/v850/v850.h: Add support for v850e target.
1322         * config/v850/v850.c: Add functions to support v850e target.
1323         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
1324         * config/v850/v850.md: Add patterns for v850e instructions.
1325         * doc/invoke.texi: Document new v850e command line switches.
1326
1327 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
1328                           Aldy Hernandez <aldyh at redhat dot com>
1329
1330         * doc/tm.texi: Applied numerous fixes to the automaton based
1331         scheduler descrition.
1332
1333 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
1334
1335         * i386.c (classify_argument): Handle variable sized objects.
1336
1337 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
1338
1339         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
1340
1341 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1342
1343         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
1344
1345 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1346
1347         * i386.c (classify_argument): Properly compute word size of the analyzed object.
1348
1349 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
1350
1351         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
1352         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
1353         accordingly.
1354         (attribute insn_class): Provide default definitions based on type.
1355         Remove all insn-specific settings.
1356         (various function units): Remove old SH4 scheduling.
1357         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
1358         New attributes.  Set them where appropriate.
1359         (cpu unit FS): Don't define / use.
1360         (F3, load_store): New cpu units.
1361         (F01): New reservation.
1362         (all insn_reservations): Make dependent on sh4 pipeline model.
1363         Fix latencies.
1364         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
1365         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
1366         (mt insn_reservation): Use type mt_group.
1367         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
1368         sh4_fload and sh4_store.
1369         (insn_reservation branch_zero and branch): Replace with sh4_branch.
1370         (insn_reservation branch_far): Replace with sh4_return.
1371         (insn_reservation return_from_exp): Rename to:
1372         (sh4_return_from_exp).  Change to be just d_lock*5.
1373         (insn_reservation lds_to_pr): Rename to:
1374         (sh4_lds_to_pr).  Change to be just d_lock*2.
1375         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
1376         d_lock*2.
1377         (insn_reservation prload_mem): Rename to:
1378         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
1379         (insn_reservation fpscr_store): Rename to:
1380         (fpscr_load).  Change to d_lock,nothing,F1*3.
1381         (insn_reservation fpscr_store_mem): Rename to:
1382         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
1383         (insn_reservation multi): Change to
1384         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
1385         (insn_reservation fp_arith): Change to issue,F01,F2.
1386         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
1387         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
1388         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
1389         (insn_reservation fp_double_cmp): Change to
1390         d_lock,(d_lock+F01),F1+F2,F2.
1391         (insn_reservation dp_div): Change to
1392         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
1393         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
1394         (sh_adjust_cost, SHcompact): Differentiate between different
1395         kinds of dependencies.  Drop factor of ten for superscalar.
1396         Use new instruction types.  Add new exception rules.
1397
1398         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
1399
1400         * sh.md (mperm_w): Add DONE.
1401
1402 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
1403
1404         * longlong.h: Import current PowerPC defintion from GMP-4.1.
1405
1406         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
1407
1408         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
1409
1410 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1411
1412         * sh.h (MAX_FIXED_MODE_SIZE): Define.
1413
1414 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
1415
1416         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
1417         delimiter.
1418
1419 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1420
1421         * c-common.c (cpp_define_data_format): New function.
1422         (cb_register_builtins): Call it.
1423
1424         * doc/cpp.texi (Common Predefined Macros): Document
1425         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
1426         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
1427         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
1428         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
1429         __TARGET_USES_VAX_H_FLOAT__.
1430
1431 2002-08-26  Ziemowit Laski <zlaski@apple.com>
1432
1433         * objc/objc-act.c (get_super_receiver): If inside a class method
1434         of a category, cast the receiver to 'id' before accessing the 'isa'
1435         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
1436
1437 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
1438
1439         * config/s390/s390-protos.h (s390_function_prologue,
1440         s390_function_epilogue): Remove.
1441         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
1442         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1443
1444         config/s390/s390.c (s390_machine_dependent_recorg): New function.
1445         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
1446         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
1447         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
1448         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
1449
1450         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
1451         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
1452         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
1453         function is not a leaf function.  Use save_gprs and restore_gprs.
1454         (s390_emit_epilogue): Likewise.
1455         (save_gprs, restore_gprs): New functions.
1456         (struct s390_frame): Remove return_reg_saved_p member.
1457         (save_fprs_p): Remove.
1458         (s390_optimize_prolog): New function.
1459         (s390_legitimate_reload_constant): Remove now unnecessary check.
1460
1461         (s390_function_count): Remove.
1462         (s390_output_symbolic_const): Replace s390_function_count by
1463         current_function_funcdef_no.
1464         (s390_output_constant_pool): Likewise.
1465
1466         (legitimize_pic_address): Use regs_ever_live to track PIC register
1467         instead of current_function_uses_pic_offset_table.
1468         (s390_emit_prologue): Likewise.
1469         config/s390/s390.md ("call", "call_value"): Likewise.
1470
1471 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
1472
1473         * c-opts.c (find_opt): Don't complain about wrong languages
1474         here.  Return exact matches even for wrong language.
1475         (c_common_decode_option): Complain about wrong languages
1476         here.
1477
1478 2002-08-24  Stuart Hastings  <stuart@apple.com>
1479
1480         * function.h (struct function): Add flag
1481         all_throwers_are_sibcalls.
1482         * except.c (set_nothrow_function_flags): Replaces
1483         nothrow_function_p. Set new flag.
1484         * except.h (set_nothrow_function_flags): Replaces
1485         nothrow_function_p.
1486         * dwarf2out.c (struct dw_fde_struct): Add flag
1487         all_throwers_are_sibcalls.
1488         (output_call_frame_info): Test it.
1489         (dwarf2out_begin_prologue) Propagate it from cfun to
1490         dw_fde_struct.
1491         * toplev.c (rest_of_compilation): Update calls to
1492         nothrow_function_p.
1493
1494 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
1495
1496         * ggc-page.c (compute_inverse): Short circuit calculation for
1497         object sizes larger than half a page.
1498
1499 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
1500
1501         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
1502         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
1503         default.
1504         (rs6000_elf_unique_section): Likewise.
1505
1506 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1507
1508         * ns32k.c (ns32k_globalize_label): Delete.
1509         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
1510
1511 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
1512
1513         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
1514         for loading delta with num_insns_constant_wide.  Calculate
1515         delta_low, delta_high without using a conditional.
1516
1517 2002-08-22  Jason Merrill  <jason@redhat.com>
1518
1519         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
1520         * c-common.def: Adjust.
1521         * c-dump.c (c_dump_tree): Adjust.
1522         * c-semantics.c (genrtl_return_stmt): Adjust.
1523         * c-pretty-print.c (pp_c_statement): Adjust.
1524         * tree-inline.c (copy_body_r): Adjust.
1525
1526 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
1527
1528         * ggc-page.c: Avoid division in ggc_set_mark.
1529         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
1530         compute_inverse): New.
1531         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
1532         (init_ggc): Initialize inverse_table.
1533
1534 2002-08-22  Tom Tromey  <tromey@redhat.com>
1535
1536         * doc/install.texi (Configuration): Document --datadir.
1537
1538 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
1539
1540         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
1541
1542 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
1543
1544         * gengtype-lex.l (ID): Allow underscore as first character.
1545
1546 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
1547
1548         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
1549         function.
1550         (rs6000_xcoff_asm_named_section): Rename.
1551         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
1552
1553 2002-08-21  Tom Tromey  <tromey@redhat.com>
1554
1555         For PR java/6005 and PR java/7611:
1556         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
1557         (fold): Likewise.
1558         * langhooks.c (lhd_can_use_bit_fields_p): New function.
1559         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
1560         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
1561         (LANG_HOOKS_INITIALIZER): Use it.
1562         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
1563         field.
1564
1565 2002-08-21  Stan Shebs  <shebs@apple.com>
1566
1567         * tree.c (finish_vector_type): Fix a typo in a comment.
1568         * Makefile.in: Fix "the the" stutters in comments.
1569         * genautomata.c: Ditto.
1570         * ifcvt.c: Ditto.
1571         * regrename.c: Ditto.
1572         * config/alpha/alpha.c: Ditto.
1573         * config/alpha/vms-crt0-64.c: Ditto.
1574         * config/alpha/vms-crt0.c: Ditto.
1575         * config/alpha/vms-psxcrt0-64.c: Ditto.
1576         * config/alpha/vms-psxcrt0.c: Ditto.
1577         * config/d30v/d30v.h: Ditto.
1578         * config/fr30/fr30.h: Ditto.
1579         * config/rs6000/rs6000.c: Ditto.
1580         * config/stormy16/stormy16.h: Ditto.
1581         * doc/md.texi: Ditto.
1582
1583 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1584
1585         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
1586
1587 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1588
1589         * c-decl.c (grokdeclarator): Make invalid combinations with long,
1590         short, signed or unsigned into hard errors.  Fixes PR c/4319.
1591         Also make duplicate modifiers such as "short short" into hard
1592         errors.
1593
1594 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
1595             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1596
1597         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
1598         to the actual end.  Add '@end table' and '@table @code'.
1599
1600 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
1601
1602         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
1603
1604         * unroll.c (biv_total_increment): Don't try to compute the total
1605         increment for FP BIVs.
1606
1607 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1608
1609         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
1610         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
1611         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1612         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
1613         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
1614         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
1615         (GLOBAL_ASM_OP): Define.
1616         * arm.c (aof_globalize_label): New function.
1617         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
1618         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1619         * c4x.c (c4x_globalize_label): New function.
1620         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
1621         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
1622         (GLOBAL_ASM_OP): Define.
1623         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
1624         * darwin-protos.h (darwin_globalize_label): Declare.
1625         * darwin.c (darwin_globalize_label): New function.
1626         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
1627         (ASM_GLOBALIZE_LABEL): Delete.
1628         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
1629         * dsp16xx.c (asm_output_common): Use target hook.
1630         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
1631         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
1632         (GLOBAL_ASM_OP): Define.
1633         * i370.c (i370_globalize_label): New function.
1634         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
1635         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
1636         * i386.c (ix86_asm_file_end): Use target hook.
1637         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
1638         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
1639         * ia64.c (ia64_asm_output_external): Likewise.
1640         * ia64/sysv4.h: Update comment.
1641         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1642         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1643         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
1644         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1645         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
1646         * mmix-protos.h (mmix_asm_globalize_label): Delete.
1647         * mmix.c (mmix_asm_globalize_label): Likewise.
1648         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
1649         (GLOBAL_ASM_OP): Define.
1650         * ns32k.c (ns32k_globalize_label): New function.
1651         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
1652         (ASM_GLOBALIZE_LABEL): Delete.
1653         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
1654         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
1655         * pa.c (pa_globalize_label): New function.
1656         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
1657         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
1658         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
1659         (GLOBAL_ASM_OP): Define.
1660         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
1661         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1662         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
1663         (GLOBAL_ASM_OP): Define.
1664         * v850.c (v850_output_aligned_bss): Use target hook.
1665         * vax.c (vms_globalize_label): New function.
1666         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
1667         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
1668         (GLOBAL_ASM_OP): Define.
1669         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
1670         * doc/tm.texi: Update docs.
1671         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
1672         target hook.
1673         * final.c (output_alternate_entry_point): Likewise.
1674         * hooks.c (hook_FILEptr_constcharptr_void): New function.
1675         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
1676         * output.h (assemble_global): Delete.
1677         (default_globalize_label): Declare.
1678         * system.h (ASM_GLOBALIZE_LABEL): Poison.
1679         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
1680         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
1681         * target.h (gcc_target): Add globalize_label member.
1682         * varasm.c (asm_output_bss, asm_output_aligned_bss,
1683         globalize_decl): Use target hook.
1684         (assemble_global): Delete.
1685         (default_globalize_label): New function.
1686
1687 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1688
1689         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
1690
1691 2002-08-20  Devang Patel  <dpatel@apple.com>
1692         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
1693
1694 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1695
1696         * arc.c (output_shift): Use stdio instead of asm_fprintf.
1697         * arm.c (thumb_output_function_prologue): Likewise.
1698         * avr.c (print_operand): Likewise.
1699         * c4x.c (c4x_print_operand): Likewise.
1700         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
1701         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
1702         * cris.c (cris_target_asm_function_prologue,
1703         cris_asm_output_mi_thunk): Likewise.
1704         * h8300.c (print_operand): Likewise.
1705         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1706         * ip2k.c (print_operand): Likewise.  Fix format specifier.
1707         * m68hc11.c (asm_print_register, print_operand,
1708         print_operand_address): Use stdio instead of asm_fprintf.
1709         (print_operand_address): Fix format specifier.
1710         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
1711         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
1712         asm_fprintf.
1713         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1714         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1715         * m68k.c (m68k_output_function_prologue,
1716         m68k_output_function_epilogue, print_operand): Likewise.
1717         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
1718         Likewise.  Fix format specifier.
1719         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1720         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1721         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1722
1723 2002-08-15  Eric Christopher  <echristo@redhat.com>
1724             Jeff Knaggs  <jknaggs@redhat.com>
1725
1726         * config.gcc (mipsisa64sr71k-elf): New target.
1727         * config/mips/sr71k.md: New file.
1728         * config/mips/mips.md: Use it.
1729         (rot*): Add sr71k specifics.
1730         * config/mips/t-sr71k: New file.
1731         * config/mips/mips.h (sr71k): New cpu.
1732         (TARGET_SR71K): Use it.
1733         (TUNE_SR71K): Ditto.
1734         (GENERATE_BRANCHLIKELY): Ditto.
1735         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
1736         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
1737         * config/mips/mips.c (sr71k): New cpu.
1738         (mips_use_dfa_pipeline_interface): Use.
1739
1740 2002-08-15  Eric Christopher  <echristo@redhat.com>
1741             Richard Sandiford <rsandifo@redhat.com>
1742             Aldy Hernandez  <aldyh@redhat.com>
1743             Graham Stott    <grahams@redhat.com>
1744             Michael Meissner  <meissner@redhat.com>
1745             Gavin Romig-Koch  <gavin@redhat.com>
1746             Ken Raeburn  <raeburn@cygnus.com>
1747             Alexandre Oliva <aoliva@redhat.com>
1748
1749         * config.gcc (mips64vr-elf): New target.
1750         * config/mips/5400.md: New file.
1751         * config/mips/5500.md: Ditto.
1752         * config/mips/mips.md: Use them.
1753         (frsqrt): New.
1754         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
1755         cpus.
1756         (mips_issue_rate): Use them.
1757         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
1758         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
1759         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
1760         cpus.
1761         (TARGET_MIPSx): Use them.
1762         (TUNE_MIPSx): Ditto.
1763         (GETNATE_MULT3_SI): Ditto.
1764         (ISA_HAS_BRANCHLIKELY): Ditto.
1765         (ISA_HAS_CONDMOVE): Ditto.
1766         (ISA_HAS_NMADD_NMSUB): Ditto.
1767         (ISA_HAS_MULHI): New. Ditto.
1768         (ISA_HAS_MULS): Ditto.
1769         (ISA_HAS_MSAC): Ditto.
1770         (ISA_HAS_MACC): Ditto.
1771         (ISA_HAS_ROTR_SI): Ditto.
1772         (ISA_HAS_ROTR_DI): Ditto.
1773         (RTX_COSTS): Use.
1774
1775 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1776
1777         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
1778         at head.
1779         (remove_dup_nonsys_dirs): New function.
1780         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
1781         (merge_include_chains): Remove non-system include directories from
1782         quote and bracket include chains when they duplicate equivalent system
1783         directories.
1784         * doc/cpp.texi (-I): Update.
1785         * doc/cppopts.texi (-I): Update.
1786         * doc/install.texi (--with-local-prefix): Further document usage of
1787         this option.
1788         * doc/invoke.texi (-I): Update.
1789
1790 2002-08-20  Richard Henderson  <rth@redhat.com>
1791
1792         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
1793         (emit_block_move): Split out subroutines.
1794         (emit_block_move_via_movstr): New.
1795         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
1796         (emit_block_move_libcall_fn): New.  Construct function prototype for
1797         bcopy as well.
1798         (clear_storage): Split out subroutines.
1799         (clear_storage_via_clrstr): New.
1800         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
1801         (clear_storage_libcall_fn): New.  Construct function prototype for
1802         bzero as well.
1803         (emit_push_insn): Use emit_block_move.
1804         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
1805         (store_constructor): Likewise.
1806
1807 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
1808
1809         * objc/objc-act.c (building_objc_message_expr): Rename to
1810         current_objc_message_selector.
1811
1812 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
1813
1814         * objc/objc-act.c (build_ivar_chain): Remove.
1815         (objc_copy_list): Likewise.
1816         (get_class_ivars): Inline call to removed build_ivar_chain
1817         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
1818         slot; use that slot (rather than CLASS_IVARS) when accessing
1819         ivars for base classes.  Call copy_list and chainon instead of
1820         objc_copy_list.
1821         (build_private_template): Call get_class_ivars instead of
1822         build_ivar_chain.
1823         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
1824         (continue_class): Call get_class_ivars instead of
1825         build_ivar_chain.
1826         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
1827         of DECL_BIT_FIELD (which may have been cleared).
1828         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
1829
1830 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1831
1832         * genautomata.c (output_translate_vect, output_state_ainsn_table,
1833         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
1834         in output file.
1835         (output_internal_min_issue_delay_func): Initialize variable in
1836         output file.
1837
1838 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
1839
1840         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
1841         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
1842
1843 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
1844             Steve Ellcey  <sje@cup.hp.com>
1845
1846         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
1847         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
1848         * explow.c (trunc_int_for_mode): Abort when the mode is not
1849         a scaler integer mode.
1850         * combine.c (expand_compound_operation): Don't expand Vector
1851         or Complex modes into shifts.
1852         (expand_field_assignment): Don't do bitwise arithmatic and
1853         shifts on Vector or Complex modes.
1854         (simplify_comparison): Don't call trunc_int_for_mode
1855         for VOIDmode.
1856         * recog.c (general_operand): Likewise.
1857         (immediate_operand): Likewise.
1858         (nonmemory_operand): Likewise.
1859
1860 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
1861
1862         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
1863         multi-instruction SImode constant.  Add REG_EQUAL note.
1864         * config/rs6000/rs6000.md (movsi splitter): Use
1865         rs6000_emit_set_const.
1866
1867 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1868
1869         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
1870         the macro test controlling its use.
1871
1872 2002-08-18  H.J. Lu  (hjl@gnu.org)
1873
1874         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
1875         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
1876         gnu_ld=yes.
1877         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
1878         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
1879         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
1880         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
1881         here.
1882         (cris-*-linux*): Remove setting thread_file here.
1883
1884 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
1885
1886         PR preprocessor/7602
1887         * cppinit.c (path_include): Treat the system environment
1888         variables as being cxx_aware.
1889
1890 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1891
1892         * c-decl.c (flexible_array_type_p): New function.
1893         (grokdeclarator, finish_struct): Use it.
1894         * doc/extend.texi: Document constraints on use of structures with
1895         flexible array members.
1896
1897 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
1898
1899         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
1900         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
1901         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
1902
1903 2002-08-16  Stan Shebs  <shebs@apple.com>
1904
1905         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
1906         for ObjC with -fnext-runtime.
1907         * doc/cpp.texi: Document it.
1908
1909 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
1910
1911         * doc/install.texi (Final installation): Replace links to individual
1912         build status pages with a link to a common page that lists them all.
1913
1914 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
1915
1916         * doc/invoke.texi: Fix typo.
1917
1918 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
1919
1920         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
1921
1922 2002-08-16  Andrew Haley  <aph@redhat.com>
1923
1924         * tree-inline.c: Add includes for Java inliner.
1925         (remap_decl): Don't handle anonymous types for Java.
1926         (remap_block): Add handling for Java trees.
1927         (copy_scope_stmt): Conditionalize for non-Java use only.
1928         (copy_body_r): Handle Java trees.  Add handling for
1929         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
1930         (initialize_inlined_parameters):  Handle Java trees.
1931         (declare_return_variable): Likewise.
1932         (expand_call_inline): Handle Java trees.
1933         (walk_tree): Likewise.
1934         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
1935         (add_stmt_to_compound): New function.
1936
1937 2002-08-15  Richard Henderson  <rth@redhat.com>
1938
1939         * Makefile.in (LOOSE_WARN): Remove -fno-common.
1940         (NOCOMMON_FLAG): New substitution point.
1941         (GCC_WARN_CFLAGS): Include it.
1942         * configure.in (ac_checking): Set nocommon_flag.
1943         (nocommon_flag): New substitution point.
1944
1945 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
1946
1947         * c-tree.h (skip_evaluation): Move declaration...
1948         * c-common.h: ... here.
1949         * c-typeck.c (build_external_ref): Don't assemble_external nor
1950         mark a tree as used if skip_evaluation is set.
1951         * c-parse.in (typeof): New non-terminal to set skip_evaluation
1952         around TYPEOF.
1953         (typespec_nonreserved_nonattr): Use it.
1954
1955 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
1956
1957         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
1958         (xcoff_debug_hooks): Update end_prologue.
1959         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
1960         * debug.h (end_prologue): Add file arg.
1961         (end_epilogue): Add line and file args.
1962         (dwarf2out_end_epilogue): Add line and file args.
1963         (vmsdbgout_after_prologue): Remove.
1964         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
1965         (dwarf2_debug_hooks): Update end_prologue.
1966         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
1967         (dwarfout_end_prologue): Add file arg.
1968         * final.c (vmsdbgout_after_prologue): Remove
1969         (final_end_function): Update end_epilogue call.
1970         (final_scan_insn): Update end_prologue call.
1971         * sdbout.c (sdbout_end_epilogue): Add line and file args.
1972         (sdbout_end_prologue): Add file arg.
1973         (sdb_debug_hooks): Update end_prologue.
1974         (sdb_begin_prologue): Update sdbout_end_prologue call.
1975         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
1976         vmsdbgout_end_function.
1977         (vmsdbgout_end_prologue): New function renamed from
1978         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
1979         (vmsdbgout_end_function): New function.
1980         (vmsdbgout_end_epilogue): Add line and file args. Call
1981         vmsdbgout_source_line.
1982         (write_pclines): Write only valid line numbers.
1983         (write_srccorr): Don't write source correlation records if 0 lines.
1984         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
1985
1986 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
1987
1988         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
1989         (_Unwind_Internal_Ptr): 32 bit version for use in
1990         read_encoded_value_with_base.
1991         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
1992         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
1993         right size.
1994
1995 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1996
1997         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
1998         signed/unsigned warnings.
1999
2000         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
2001         record_reg_classes): Likewise.
2002
2003         * reload.c (reload_inner_reg_of_subreg, push_reload,
2004         find_reloads_address_1): Likewise.
2005
2006 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
2007
2008         * rs6000.c (output_mi_thunk): Return to function section on
2009         TARGET_ELF.
2010
2011         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2012
2013 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
2014
2015         * config/s390/s390.c (legitimize_address): Optimize loading
2016         of large displacements.
2017
2018 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
2019
2020         * config/alpha/alpha-protos.h: Update.
2021
2022         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
2023         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
2024         (alpha_linkage_symbol_p): New static function.
2025         (print_operand_address): Print linkage operand.
2026
2027         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
2028         variables.
2029         (reloc_kind): New enum.
2030         (struct alpha_funcs): New struct.
2031         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
2032
2033         (alpha_need_linkage): Rewrite.
2034         (alpha_use_linkage): New global function.
2035         (alpha_write_linkage): Rewrite and make static.
2036         (alpha_write_one_linkage): Rewrite
2037
2038         (alpha_start_function): Remove procedure descriptor output.
2039         (alpha_end_function): Write linkages at end of each function.
2040
2041         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
2042         (call_vms_1, call_value_vms_1): Rewrite.
2043
2044         * config/alpha/vms.h (ASM_FILE_END): Remove.
2045
2046 2002-08-14  Richard Henderson  <rth@redhat.com>
2047
2048         * ggc-page.c (RTL_SIZE): New.
2049         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
2050         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
2051
2052 2002-08-14  Richard Henderson  <rth@redhat.com>
2053
2054         * calls.c: Include target.h.
2055         * Makefile.in (calls.o): Update.
2056
2057         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
2058         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2059
2060 2002-08-14  Richard Henderson  <rth@redhat.com>
2061
2062         * Makefile.in (LOOSE_WARN): Add -fno-common.
2063         * c-common.h (constant_string_class_name): Add missing extern.
2064
2065 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
2066
2067         PR preprocessor/7358
2068         * c-opts.c (check_deps_environment_vars): Ignore main file
2069         for SUNPRO_DEPENDENCIES.
2070         * cppfiles.c (stack_include_file): Ignore main file if
2071         appropriate.
2072         * cpplib.h (struct cpp_options): New member in deps.
2073         * doc/cppenv.texi: Update.
2074
2075 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2076
2077         PR preprocessor/7526
2078         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
2079
2080 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2081
2082         * doc/invoke.texi (-a): Remove documentation.
2083         (-fprofile-arcs): Remove reference to -a, -ax options.
2084         * doc/gcov.texi (Gcov Data Files): Data might be merged.
2085
2086 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2087
2088         Fix PR/7566
2089         * c-semantics.c (genrtl_case_label): Don't (mis)use
2090         warning_with_decl.
2091
2092 2002-08-14  Dale Johannesen  <dalej@apple.com>
2093
2094         * explow.c (emit_stack_restore):  Emit memory clobbers
2095         preceding the stack pop, to prevent the scheduler from
2096         moving refs to variable arrays below this pop.
2097         * reload1.c (reload):  Preserve these clobbers for sched2.
2098         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
2099
2100 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2101
2102         * c-opts.c (c_common_post_options): Correct test.
2103
2104 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2105
2106         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
2107         order in call to fprintf.
2108
2109 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2110
2111         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
2112
2113 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2114
2115         * reload.c (find_reloads): Handle constraint letters marked by
2116         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
2117         (alternative_allows_memconst): Likewise.
2118         * reload1.c (maybe_fix_stack_asms): Likewise.
2119         * recog.c (asm_operand_ok, preprocess_constraints,
2120         constrain_operands): Likewise.
2121         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
2122         * local-alloc.c (block_alloc, requires_inout): Likewise.
2123         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2124
2125         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
2126         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
2127         * doc/tm.texi: Document these two new target macros.
2128
2129         * config/s390/s390.c (s390_expand_plus_operand): Accept already
2130         valid operands.
2131         (q_constraint): New function.
2132         config/s390/s390-protos.h (q_constraint): Declare it.
2133         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2134         (EXTRA_MEMORY_CONSTRAINT): New macro.
2135
2136         * config/s390/s390.md: Throughout the machine description,
2137         replace all instances of the constraint combinations 'Qo'
2138         or 'oQ' with simply 'Q'.
2139
2140 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2141
2142         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
2143         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
2144         (LIBGCC2_CFLAGS): Compile with -mrelax.
2145
2146 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2147
2148         * doc/invoke.texi: Document -minmax for 68HC12.
2149
2150         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
2151         ("uminqi3"): Likewise.
2152         ("uminhi3", "umaxhi3"): Likewise.
2153
2154         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
2155         (TARGET_MIN_MAX): Define.
2156         (TARGET_SWITCHES): New option -minmax/-mnominmax.
2157
2158 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2159
2160         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
2161         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
2162
2163         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
2164         (ret, declare, farsym): New gas macros.
2165         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
2166         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
2167         and declare the symbol far when compiled with -mlong-calls.
2168         (__far_trampoline): New for 68HC12 trampoline code to invoke a
2169         far handler using jsr/bsr.
2170
2171         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
2172         (jsr): New macro to transform a 'jsr' into a 'call'.
2173
2174 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2175
2176         * doc/invoke.texi: Document -mlong-calls for 68HC12.
2177
2178         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
2179         -mlong-calls is specified.
2180         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
2181         assembler directives.
2182         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
2183         (TARGET_SWITCHES): Add -mlong-calls options.
2184         (current_function_far): Declare.
2185
2186         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
2187         into account the page register saved on the stack.
2188         (m68hc11_override_options): Take into account -mlong-calls option.
2189         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
2190
2191         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
2192         if the function is going to be in 68HC12 banked memory (-mlong-calls).
2193         ("*return_16bit"): Likewise.
2194         ("*return_void"): Likewise.
2195         ("call", "call_value"): Use call for a far function call.
2196
2197 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2198
2199         * toplev.c (parse_options_and_default_flags): Don't call
2200         post_options here.
2201         (general_init): Initialize GC, pools and tree hash here,
2202         instead of lang_independent_init.
2203         (lang_independent_init): Rename backend_init.
2204         (do_compile): Call post_options hook; exit early if there
2205         have been errors after switch processing.
2206         (toplev_main): Update.
2207
2208 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2209
2210         * c-pretty-print.h: Guard against multiple inclusion.
2211         Robustify macros.
2212         (pp_c_attributes): Declare.
2213         * c-pretty-print.c (pp_c_attributes): New function.
2214
2215 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2216
2217         * m68k.c (m68k_output_function_prologue,
2218         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
2219         and NEWS/MOTOROLA.
2220         * genattrtab.c: Remove dpx2 comment.
2221         * libgcc2.c (__enable_execute_stack): Delete versions for
2222         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
2223         sony_news/SYSTYPE_BSD.
2224         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
2225         __gmicro__, __i860__, __NeXT__ and __pyr__.
2226         * rtl.h: Remove convex comment.
2227         * varasm.c: Likewise.
2228
2229 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2230
2231         * c-opts.c (lang_flags): Const-ify.
2232         * ra-build.c (undef_table): Likewise.
2233         * ra.c (eliminables): Likewise.
2234
2235 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2236
2237         * tree.h: Guard against multiple inclusion.
2238
2239 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
2240
2241         * reload1.c (reload_cse_simplify): Before checking
2242         REG_FUNCTION_VALUE_P, check REG_P.
2243
2244 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
2245
2246         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
2247
2248 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2249
2250         * c-opts.c (c_common_init_options): Extra braces needed.
2251
2252 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2253
2254         * sh.c (sh_init_builtins): Add PARAMS to declaration.
2255         (sh_media_init_builtins, sh_expand_builtin): Likewise.
2256         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
2257         (sh_expand_binop_v2sf): Likewise.
2258         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
2259         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
2260         (sh_initialize_trampoline): Likewise.
2261
2262 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
2263
2264         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
2265         new condition code modes.
2266         s390.c (s390_match_ccmode_set): Handle those new CC modes.
2267         (s390_select_ccmode): Likewise.
2268         (s390_branch_condition_mask): Likewise.
2269
2270         * s390-protos.h (s390_tm_ccmode): Declare.
2271         s390.c (s390_tm_ccmode): New function.
2272         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
2273
2274         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
2275         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
2276         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
2277
2278         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
2279         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
2280         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
2281         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
2282         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
2283
2284         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
2285         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
2286         "*cmpqi_ccs_0"): Remove, replace by ...
2287         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
2288         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
2289         "*tstqi", "*tstqi_cconly"): ... these new patterns.
2290
2291         ("*cmpsidi_ccs"): Remove, replace by ...
2292         ("*cmpsi_ccs_sign"): ... this new pattern.
2293         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
2294
2295         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
2296         ("*cli"): ... this new pattern.
2297
2298         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
2299         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
2300         New patterns.
2301         ("adddi3_64"): Rename to "*adddi3_64".
2302         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
2303         ("adddi3"): Adapt expander.
2304
2305         ("*addsi3_cc"): Allow "general_operand" for operand 2.
2306         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2307         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
2308
2309         ("addhi3", "addqi3"): Remove, replace by ...
2310         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
2311
2312         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
2313         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
2314         ("subdi3"): Replace by insn and splitter "*subdi3_31".
2315         ("subdi3"): New expander.
2316
2317         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
2318
2319         ("subhi3", "subqi3"): Remove, replace by ...
2320         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
2321
2322         ("*muldi3_sign"): New pattern.
2323         ("muldi3"): Do not clobber CC.
2324         ("mulsi3"): Likewise.
2325         ("mulsi_6432"): Likewise.
2326
2327 2002-08-13  Denis Chertykov  <denisc@overta.ru>
2328
2329         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
2330         which can change CC0.
2331
2332 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
2333
2334         * gcse.c (adjust_libcall_notes): New function.
2335         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
2336
2337 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
2338
2339         * libgcc2.c (L_bb): Remove unneeded #includes.
2340         (__global_counters, __gthreads_active): Remove unused globals.
2341         (__bb_exit_func): Merge counts into files rather than appending.
2342         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
2343         (ALL_CFLAGS): ... to here.
2344
2345 2002-08-13  Denis Chertykov  <denisc@overta.ru>
2346
2347         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
2348         (function_epilogue): Don't calculate function size.
2349         (ip2k_set_compare): Don't use lookup_const_double.
2350         (asm_file_start): Initialization of commands_in_file removed.
2351         (asm_file_end): Output of commands_in_file removed.
2352
2353         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
2354         __INT_MAX__.
2355
2356 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2357
2358         * c-opts.c (c_common_init_options): Check option array is
2359         sorted if checking enabled.
2360
2361 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
2362
2363         * c-pretty-print.c: #include "c-tree.h".
2364         (pp_c_simple_type_specifier): Tweak.
2365         (pp_c_storage_class_specifier): New.
2366         (pp_c_function_specifier): Likewise.
2367         (pp_c_declaration_specifiers): Likewise.
2368         (pp_c_init_declarator): Likewise.
2369         (pp_c_declaration): Likewise.
2370         (pp_c_direct_declarator): Stub.
2371         (pp_c_declarator): Likewise.
2372         (pp_c_parameter_declaration): Likewise.
2373
2374 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2375
2376         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
2377         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
2378         struct deferred_opt): New.
2379         (COMMAND_LINE_OPTIONS): Add -M*.
2380         (missing_arg): Update.
2381         (c_common_decode_option): Handle -M*.
2382         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
2383         don't call cpp_post_options.
2384         (c_common_finish, check_deps_environment_vars): Update.
2385         * cppfiles.c (stack_include_file, handle_missing_header): Update.
2386         * cpphash.h (CPP_PRINT_DEPS): Remove.
2387         * cppinit.c: Don't include version.h.
2388         (cpp_create_reader): Don't call deps_init.  Initialize
2389         warn_long_long.
2390         (cpp_read_main_file): Init deps if necessary.
2391         (cpp_destroy): Conditionally free deps.
2392         (cpp_finish): Update.
2393         (no_tgt): Remove.
2394         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
2395         (cpp_post_options): Rename post_options.
2396         * cpplib.h (struct cpp_options): Remove some dependency options;
2397         move others to a new structure.
2398         (cpp_post_options): Remove.
2399         (cpp_finish): Comment.
2400         * fix-header.c (read_scan_file): Don't call cpp_post_options.
2401
2402 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
2403
2404         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
2405         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
2406         MMIX_rR_REGNUM as clobbered.
2407         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
2408
2409 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
2410
2411         * diagnostic.h (output_formatted_scalar): Rename from
2412         output_formatted_integer.
2413         * diagnostic.def: Add DK_DEBUG.
2414         * diagnostic.c (output_decimal): Adjust.
2415         (output_long_decimal): Likewise.
2416         (output_unsigned_decimal): Likewise.
2417         (output_octal): Likewise.
2418         (output_long_octal): Likewise.
2419         (output_hexadecimal): Likewise.
2420         (output_long_hexadecimal): Likewise.
2421         * c-pretty-print.c (pp_c_type_specifier): New function.
2422         (pp_c_specifier_qualifier_list): Likewise.
2423         (pp_c_abstract_declarator): Likewise.
2424         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
2425
2426 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
2427
2428         * doc/trouble.texi (Disappointments): Add static constructor and
2429         destructor dependency information for AIX.
2430
2431 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
2432
2433         * cpphash.h (struct printer): New from cppmain.c.
2434         (cpp_reader): New member.
2435         * cppmain.c (struct printer): Move to cpphash.h.
2436         (options, print): Remove.
2437         (account_for_newlines, print_line, maybe_print_line,
2438         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
2439         scan_translation_unit_trad, cb_line_change, cb_ident,
2440         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
2441         cb_def_pragma): Make reentrant.
2442
2443 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2444
2445         * real.c (ieee_64): Always define.
2446         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
2447         (dec_h): Not used yet, hide it.
2448         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
2449         macro controlling use.
2450         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
2451
2452 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2453
2454         * i386.md (tablejump): Sign extend the operand.
2455         * i386.c (classify_argument): Fix missed case from previous patch.
2456
2457 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
2458
2459         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
2460         to c-copts.c.
2461         (warn_multichar): Die.
2462         (cb_register_builtins): Export.
2463         * c-common.h (warn_multichar, preprocess_file): Remove.
2464         (cb_register_builtins): New.
2465         * c-lang.c (c_init): Remove.
2466         (LANG_HOOKS_INIT): Use c_objc_common_init.
2467         * c-lex.c (init_c_lex): Don't canonicalize filename.
2468         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
2469         (preprocess_file): Make static.  Update for cpplib.
2470         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
2471         (c_common_post_options): Set some cpp options here.
2472         (c_common_init): Move from c-common.c.
2473         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
2474         * cpplib.h (struct cpp_options): Remove in_fname.
2475         (cpp_preprocess_file): Update.
2476         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
2477
2478 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2479
2480         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
2481
2482 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2483
2484         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
2485         backslash in comment preceeding macro definition.
2486         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
2487         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
2488         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
2489
2490 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
2491
2492         * expr.c (store_expr): In condition for checking if value is
2493         generated in TARGET, move call to expr_size last.
2494
2495 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
2496
2497         * c-common.c (c_common_init): Call preprocess_file instead.
2498         (c_common_finish): Move to c-opts.c.
2499         * c-common.h (preprocess_file): new.
2500         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
2501         check_deps_environment_vars, c_common_finish): New.
2502         (c_common_decode_option): Update for out_fname and dependencies.
2503         * cppinit.c (init_dependency_output, output_deps): Remove.
2504         (cpp_destroy): Update prototype.
2505         (cpp_add_dependency_target): New.
2506         (cpp_read_main_file): Don't overlay a buffer.
2507         (cpp_finish): Take a deps output stream and write deps to it.
2508         Return the error count.
2509         (cpp_post_options): Don't canonicalize out_fname, or do anything
2510         with dependencies.
2511         * cpplib.h (struct cpp_options): Remove out_fname and
2512         preprocess_only.
2513         (cpp_add_dependency_target): New.
2514         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
2515         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
2516         set preprocess_only.  Don't handle the output stream directly.
2517
2518 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2519
2520         * dsp16xx.c (print_operand): Fix format specifier.
2521         * dsp16xx.md: Avoid automatic aggregate initialization.
2522         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
2523         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
2524         integer constant modifier.
2525         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
2526         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
2527         guards.
2528         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
2529         * v850.c (v850_select_section): Mark parameter with
2530         ATTRIBUTE_UNUSED.
2531         * global.c (global_alloc): Const-ify.
2532         * ra-colorize.c (hardregset_to_string): Fix format specifier.
2533
2534 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2535
2536         * darwin-c.c (darwin_pragma_options): Const-ify.
2537         * darwin.c (machopic_non_lazy_ptr_name,
2538         machopic_validate_stub_or_non_lazy_ptr): Likewise.
2539         (machopic_indirect_data_reference): Wrap variables in macros
2540         controlling their use.
2541         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
2542         (machopic_select_section): Use parentheses around && within ||.
2543         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
2544
2545 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2546
2547         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
2548         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2549         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
2550         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
2551         mdr_try_remove_redundant_insns, track_w_reload,
2552         mdr_try_wreg_elim): Make function static to match prototype.
2553         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
2554         parameter with ATTRIBUTE_UNUSED.
2555
2556 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2557
2558         * arc.c (arc_init): Don't use ISO C style function definitions.
2559         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
2560         arm_get_strip_length, arm_strip_name_encoding): Likewise.
2561         * avr.h (progmem_section): Likewise.
2562         * h8300.c h8300_asm_insn_count): Likewise.
2563         * m32r.c (init_idents): Likewise.
2564         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
2565         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
2566         * xtensa.c (xtensa_build_va_list): Likewise.
2567
2568 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
2569
2570         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
2571         * c-opts.c (parse_option): Rename find_opt.
2572         (set_std_c99): New function.
2573         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
2574         (missing_arg): Remove OPT_std_bad.  Handle -o.
2575         (c_common_decode_option): Handle input and output file names,
2576         -o and -remap.  Clean up -std= handling.
2577         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
2578         (cpp_handle_option): Similarly.  Don't handle filenames.
2579
2580 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
2581
2582         * i386.c (classify_argument): Fix computing of field's offsets.
2583
2584 2002-08-11  Andreas Jaeger  <aj@suse.de>
2585
2586         PR target/7531:
2587         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
2588
2589 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
2590
2591         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
2592         reference to clk_objective_c with flag_objc.
2593         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
2594         Likewise.
2595         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2596
2597 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
2598
2599         * c-opts.c (set_std_cxx98, set_std_c89): New.
2600         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
2601         (c_common_decode_option): Handle new switches from cppinit.c.
2602         Add -std=gnu++98.
2603         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
2604         (no_arg, no_num): Remove.
2605         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
2606         switches apart from -lang-objc and lang-asm.
2607         (cpp_handle_option): Similarly.
2608         * cpplib.h (cpp_set_lang): New.
2609         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
2610         -std=gnu++98.
2611         * objc/lang-specs.h: Remove -ansi.
2612
2613 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2614                                Graham Stott
2615
2616         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
2617         errors.
2618
2619 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2620
2621         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
2622         emit_jump_insn): Fix uninitialized variable.
2623         * gcov.c (init_line_info): Likewise.
2624         * genautomata.c (transform_3): Add braces around ambiguous
2625         else.
2626         * ifcvt.c (cond_exec_process_insns): Mark parameter with
2627         ATTRIBUTE_UNUSED.
2628         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
2629         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
2630         variable.
2631
2632         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
2633         warnings in output files.
2634
2635 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
2636
2637         * c-common.c (flag_objc): New.
2638         * c-common.h (c_language_kind): Get rid of clk_objective_c
2639         enum value.
2640         (flag_objc): New extern declaration.
2641         * c-decl.c (implicitly_declare): Call objc_check_decl
2642         instead of maybe_objc_check_decl.
2643         (finish_decl): Likewise.
2644         (grokfield): Likewise.
2645         (finish_struct): Likewise.
2646         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
2647         (maybe_objc_comptypes): Rename to objc_comptypes.
2648         (maybe_building_objc_message_expr): Rename to
2649         objc_message_selector.
2650         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
2651         replace with flag_objc as needed.
2652         * c-opts.c (c_common_init_options): Likewise.
2653         (c_common_decode_option): Likewise.
2654         * c-parse.in (init_reswords): Likewise.
2655         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
2656         (maybe_objc_comptypes): Rename to objc_comptypes.
2657         (maybe_building_objc_message_expr): Rename to
2658         objc_message_selector.
2659         * c-typeck.c (comptypes): Call objc_comptypes instead of
2660         maybe_objc_comptypes, and/or objc_message_selector instead of
2661         maybe_building_objc_message_expr.
2662         (comp_target_types): Likewise.
2663         (convert_for_assignment): Likewise.
2664         (warn_for_assignment): Likewise.
2665         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
2666         independently of those for other languages.
2667         * objc/objc-act.c (maybe_objc_comptypes): Delete.
2668         (maybe_objc_check_decl): Delete.
2669         (maybe_building_objc_message_expr): Rename to
2670         objc_message_selector.
2671         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
2672         clk_objective_c; set flag_objc flag.
2673
2674 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2675
2676         * ifcvt.c (find_if_case_2): Test correct basic block for size.
2677
2678 2002-08-09  Dale Johannesen  <dalej@apple.com>
2679
2680         * config/rs6000/rs6000.md: Add sibcall patterns.
2681         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
2682         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
2683         Rewritten to handle sibcalls.
2684         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
2685         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
2686
2687 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2688
2689         * profile.c (da_file_name): New static var.
2690         (init_branch_prob): Initialize it.
2691         (end_branch_prob): Remove da file.
2692
2693         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
2694         * configure.in (coverage_flags): Default to nothing.
2695         * configure: Rebuilt.
2696
2697 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
2698
2699         * Makefile.in (c-opts.o): Update
2700         * c-opts.c: Include intl.h.
2701         (print_help): Move from cppinit.c.  Remove unused options.
2702         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
2703         (missing_arg): Complain for switches without an argument.
2704         (c_common_decode_option): Reject missing joined arguments.
2705         Handle new switches from cppinit.c.
2706         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
2707         (cpp_handle_option): Similarly.
2708         (print_help): Moved to c-opts.c.
2709         * cpplib.h (struct cpp_options): Remove help_only.
2710         * gcc.c (cpp_unique_options): Remove -$.
2711         * doc/cppopts.texi: Undocument -h.
2712
2713 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2714
2715         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
2716         legitimate constant.
2717         (legitimate_pic_operand_p): Neither pic operand.
2718         (legitimate_address_p): But legitimate address.
2719         (get_thread_pointer): Generate MEM/u instead of CONST around
2720         UNSPEC_TP.
2721         (print_operand): Remove printing of UNSPEC_TP.
2722         (print_operand_address): And print it here.
2723
2724 2002-08-08  Devang Patel  <dpatel@apple.com>
2725
2726         * objc/objc-act.c (build_selector_translation_table): Issue warning,
2727         when  -Wselector is used,if method for which selector is being
2728         created does not exist.
2729
2730 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
2731
2732         * config/sh/sh.c (prepare_move_operands): Only call
2733         target_reg_operand if TARGET_SHMEDIA.
2734
2735 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2736
2737         * config/rs6000/rs6000.h, config/rs6000/aix.h,
2738         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
2739         two patches.
2740         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
2741
2742 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
2743             Richard Henderson  <rth@redhat.com>
2744
2745         * emit-rtl.c (gen_rtx_REG): After reload, only return
2746         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
2747
2748 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2749
2750         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
2751         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
2752         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
2753         macro.
2754
2755 2002-08-08  Adam Nemet  <anemet@lnxw.com>
2756
2757         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
2758         register.
2759         (thumb_expand_prologue): Likewise.
2760         (thumb_output_function_prologue): Likewise.
2761         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
2762         the additional push of the PIC register.
2763
2764 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2765
2766         * configure.in (enable_coverage): New enable switch.
2767         * configure: Rebuilt.
2768         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
2769         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
2770         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
2771         (mostlyclean): Remove coverage files.
2772         * doc/install.texi: Document enable_coverage.
2773
2774         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
2775         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
2776         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
2777         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
2778         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
2779         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
2780         files.
2781
2782 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
2783
2784         * c-opts.c (cpp_opts): New.
2785         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
2786         (c_common_decode_options): Handle cpplib switches.
2787         (c_common_init_options): Set cpp_opts.
2788         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
2789         (cpp_handle_option): Similarly.
2790
2791 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
2792
2793         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
2794         (TARGET_ALTIVEC_ABI): Same.
2795         (TARGET_ALTIVEC_VRSAVE): Same.
2796
2797         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
2798         icode not CODE_FOR_nothing.  Change switch to if.
2799
2800 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
2801
2802         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
2803
2804 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2805
2806         * stor-layout.c (place_union_field): For bitfields if
2807         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
2808         TYPE_USER_ALIGN.
2809
2810 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2811
2812         * pa.c (struct deferred_plabel): Constify name field.
2813
2814 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
2815
2816         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
2817
2818 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2819
2820         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
2821         local_prefix are the same.
2822         * configure: Rebuilt.
2823
2824 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2825             Richard Henderson  <rth@redhat.com>
2826
2827         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
2828         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
2829         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2830         (place_field): Likewise.
2831         * config/i386/i386.c (x86_field_alignment): Don't check
2832         DECL_USER_ALIGN here.
2833         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
2834         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
2835         prototype.
2836         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
2837         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
2838         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
2839         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
2840         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
2841         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
2842
2843 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
2844
2845         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
2846         * c-common.c: Don't include tree-inline.h.
2847         (c_common_init_options, c_common_post_options): Move to c-opts.c.
2848         * c-common.h (c_common_decode_option): New.
2849         * c-decl.c (c_decode_option): Remove.
2850         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
2851         * c-opts.c: New file.
2852         * c-tree.h (c_decode_option): Remove.
2853         * doc/passes.texi: Update.
2854         * objc/objc-act.c (objc_decode_option): Remove.
2855         * objc/objc-act.h (objc_decode_option): Remove.
2856         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
2857         c_common_decode_option.
2858
2859 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
2860
2861         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
2862         dependency on TARGET_DOUBLE_FLOAT.
2863
2864 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
2865
2866         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
2867         overwrite callee-save registers.  Fix comment.
2868
2869 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
2870
2871         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
2872         in target_flags based on ISA, if it was not set on the command
2873         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
2874         support Branch Likely instructions.
2875         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
2876         (TARGET_BRANCHLIKELY): Likewise.
2877         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
2878         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
2879         ISA_HAS_BRANCHLIKELY.
2880         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
2881         * doc/invoke.texi: Document new MIPS -mbranch-likely and
2882         -mno-branch-likely options.
2883
2884 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2885
2886         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
2887
2888         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
2889         $(GCONFIG_H).
2890
2891 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
2892
2893         * c-decl.c (duplicate_decls): Error out for incompatible TLS
2894         declarations.
2895
2896         * testsuite/gcc.dg/tls/diag-3.c: New.
2897
2898 2002-08-06  Dale Johannesen  <dalej@apple.com>
2899
2900         * c-common.c (fname_decl): Use line number 0 for
2901         __func__, to avoid confusing debuggers.
2902
2903 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
2904
2905         * gcov.c: Tidy.
2906         (struct line_info, struct coverage): New structures.
2907         (gcov_file_name, gcov_file): Remove globals.
2908         (output_data): Take source file parameter. Fix memory leak. Break
2909         up into ...
2910         (init_line_info, output_line_info, make_gcov_file_name,
2911         accumulate_branch_counts): ... here.
2912         (calculate_branch_probs, function_summary): Adjust.
2913         (main): Adjust.
2914         (function_*): Remove global variables.
2915
2916 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
2917
2918         * dwarf2out.c: Remove unused macros.
2919
2920 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
2921
2922         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
2923
2924 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
2925
2926         * cppinit.c (struct lang_flags): Rename trigraphs std.
2927         (set_lang): Update.
2928         * cpplib.h (struct cpp_options): New member std.
2929         * cppmacro.c (_cpp_builtin_macro_text): Use std.
2930         (collect_args): Flag whether to swallow a possible future
2931         comma pasted with varargs.
2932         (replace_args): Use this flag.
2933         * doc/cpp.texi: Update varargs extension documentation.
2934
2935 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
2936
2937         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
2938
2939 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
2940
2941         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
2942         and MODE_CLASS_INT modes.
2943
2944 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
2945
2946         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
2947         --{enable,disable}-threads is given to configure.
2948         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
2949         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
2950         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
2951         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
2952         Remove thread_file setting here.
2953
2954 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
2955
2956         * doc/install.texi (Binaries): Update Bull Freeware URL.
2957
2958 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2959
2960         * doc/gcc.texi (Top): Rename Index to Keyword Index.
2961
2962 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
2963
2964         * gcov.c (output_data): Round to % to nearest, tweak formatting.
2965
2966 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
2967
2968         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
2969         of the operands into MINUS_EXPR if code is PLUS_EXPR.
2970
2971 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
2972
2973         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
2974         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
2975         drectve_section): Define.
2976         * config/i386/t-interix: Replace interix.o rule with winnt.o.
2977         * config/i386/interix.c: Remove.
2978
2979 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
2980
2981         * attribs.c: Don't include obstack.h.
2982         * builtins.c: Likewise.
2983         * cfganal.c: Likewise.
2984         * cfgbuild.c: Likewise.
2985         * cfgcleanup.c: Likewise.
2986         * emit-rtl.c: Likewise.
2987         * loop.c: Likewise.
2988         * stmt.c: Likewise.
2989
2990         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
2991
2992 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
2993
2994         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
2995
2996 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
2997
2998         * doc/invoke.texi: Remove duplicated paragraph describing
2999         TARGET_SWITCHES.
3000
3001 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
3002
3003         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
3004         * collect2.h (permanent_obstack): Delete declaration.
3005         * collect2.c (permanent_obstack): Delete definition.
3006         (main): Don't initialise permanent_obstack.  Use xstrdup instead.
3007         * expr.c: Don't include obstack.h.
3008         (permanent_obstack): Delete declaration.
3009         * function.c: Don't include obstack.h.
3010         (permanent_obstack): Delete declaration.
3011         * integrate.c: Don't include obstack.h.
3012         (function_maybepermanent_obstack): Delete declaration.
3013         * print-tree.c (debug_tree): Use x*alloc not permalloc.
3014         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
3015         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
3016         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
3017         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
3018         of permalloc, expralloc, perm_calloc.
3019         * tree.c (permanent_obstack): Delete definition.
3020         (init_ttree): Rename from init_obstacks.
3021         (permalloc): Delete.
3022         (perm_calloc): Delete.
3023         (dump_tree_statistics): Don't print information about
3024         permanent_obstack.
3025         * varasm.c (assemble_start_function): Use xstrdup instead of
3026         permalloc/strcpy.
3027         (assemble_variable): Likewise.
3028         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
3029         permalloc.
3030         (unicosmk_add_extern): Likewise.
3031         * config/c4x/c4x.c (c4x_external_ref): Likewise.
3032         (c4x_global_label): Likewise.
3033         * config/frv/frv.c (frv_encode_section_info): Likewise.
3034         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3035         (i386_pe_record_exported_symbol): Likewise.
3036         * config/mips/mips.c (mips_output_external): Likewise.
3037         (mips_output_external_libcall): Likewise.
3038         * config/pa/pa.c: (permanent_obstack): Delete declaration.
3039         (output_call): Use ggc_strdup instead of allocating on
3040         permanent_obstack.
3041         * config/romp/romp.c: Include ggc.h.
3042         (get_symref): Don't declare permanent_obstack, use ggc_strdup
3043         intead of permanent_obstack.
3044         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
3045         instead of permalloc.
3046         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
3047         instead of permalloc
3048         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
3049         instead of permalloc.
3050         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
3051         permalloc.
3052
3053 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
3054
3055         Contribute a port developed primarily by Michael Meissner,
3056         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
3057         * config.gcc: Add frv-elf target.
3058         * config/frv/cmovd.c: New file.
3059         * config/frv/cmovh.c: New file.
3060         * config/frv/cmovw.c: New file.
3061         * config/frv/frv-abi.h: New file.
3062         * config/frv/frv-asm.h: New file.
3063         * config/frv/frv-modes.def: New file.
3064         * config/frv/frv-protos.h: New file.
3065         * config/frv/frv.c: New file.
3066         * config/frv/frv.h: New file.
3067         * config/frv/frv.md: New file.
3068         * config/frv/frvbegin.c: New file.
3069         * config/frv/frvend.c: New file.
3070         * config/frv/lib1funcs.asm: New file.
3071         * config/frv/media.h: New file.
3072         * config/frv/modi.c: New file.
3073         * config/frv/t-frv: New file.
3074         * config/frv/uitod.c: New file.
3075         * config/frv/uitof.c: New file.
3076         * config/frv/ulltod.c: New file.
3077         * config/frv/ulltof.c: New file.
3078         * config/frv/umodi.c: New file.
3079         * config/frv/xm-frv.h: New file.
3080
3081         * config/frv/media.h: Removed again.
3082
3083 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3084
3085         * gcov.c (bb_file_time): New static variable.
3086         (object_directory): May also be object file.
3087         (preserve_paths): New static variable.
3088         (print_usage): Adjust.
3089         (options): Adjust.
3090         (process_args): Adjust.
3091         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
3092         file. Find modification date on bb file.
3093         (read_profile): Don't rewind a NULL file.
3094         (format_hwint): New static function.
3095         (function_summary): Use format_hwint.
3096         (output_data): SOURCE_FILE_NAME is never relative to
3097         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
3098         mangling. Adjust output format to make it more machine readable.
3099         * doc/gcov.texi: Document & clarify semantics.
3100
3101 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3102
3103         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
3104
3105 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3106
3107         * gcc.c (cc1_options): Pass output file as auxbase when
3108         appropriate.
3109         * profile.c (init_branch_prob): FILENAME has already had ending
3110         stripped.
3111         * final.c (end_final): Likewise.
3112         * toplev.c (aux_base_name): New global.
3113         (compile_file): Pass aux_base_name to init init_branch_prob and
3114         end_final.
3115         (independent_decode_option, case 'a'): New auxinfo options.
3116         (case 'd'): Protect against mising basename.
3117         (do_compile): Initialize aux_base_name.
3118         * toplev.h (aux_base_name): New global.
3119         * doc/invoke.texi: Adjust documentation.
3120
3121 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3122
3123         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
3124         of TARGET_ALIGN_DOUBLE.
3125
3126 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
3127
3128         * diagnostic.c (inform): New function.
3129         * diagnostic.h (inform): Declare.
3130
3131 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
3132
3133         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
3134         (movhi_internal): Same.
3135         (movqi_internal): Same.
3136         (movdi_internal64): Same.
3137
3138         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
3139
3140         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
3141         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
3142         (COMMON_ASM_OP): Define.
3143         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
3144         Use ALIGN parameter.
3145         (LOCAL_COMMON_ASM_OP): Define.
3146         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
3147
3148 2002-08-03  Roger Sayle  <roger@eyesopen.com>
3149
3150         * builtins.def: Define new builtin functions exp, expf, expl,
3151         log, logf and logl (and their __builtin_* variants).
3152         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
3153         Define exp_optab and log_optab.
3154         * optabs.c (init_optans): Initialize exp_optab and log_optab.
3155         * genopinit.c (optabs): Implement exp_optab and log_optab
3156         using exp?f2 and log?f2 patterns.
3157         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
3158         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
3159         (expand_builtin): Ignore the new builtins (and all cos and
3160         sin variants) when not optimizing.  Expand new builtins via
3161         expand_builtin_mathfn when flag_unsafe_math_optimizations.
3162
3163         * doc/extend.texi: Document new exp and log builtins.
3164         * doc/md.texi: Document new exp?f2 and log?f2 patterns
3165         (and previously undocumented cos?f2 and sin?f2 patterns).
3166
3167 2002-08-03  Jason Merrill  <jason@redhat.com>
3168
3169         * explow.c (int_expr_size): New fn.
3170         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
3171         * expr.h: Declare it.
3172
3173 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
3174
3175         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
3176         gengtype-* dependencies.
3177
3178 2002-08-02  Eric Christopher  <echristo@redhat.com>
3179
3180         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
3181         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
3182         #ifndef to #undef.
3183         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
3184
3185 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
3186
3187         PR optimize/7067
3188         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
3189         small if optimizing for size.
3190
3191 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
3192
3193         * configure.in (FORBUILD): Use $build_alias.
3194         * configure: Regenerated.
3195
3196 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
3197
3198         * config.gcc: Don't include mips/abi64.h in $tm_file.
3199         * hard-reg-set.h (call_really_used_regs): Declare.
3200         * config/mips/abi64.h: Remove file.
3201         * config/mips/linux.h,
3202         * config/mips/iris6.h: Don't include it.
3203         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
3204         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
3205         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
3206         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
3207         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
3208         Bring across definitions from abi64.h.
3209         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
3210         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
3211         (struct mips_args): Use it.
3212         * config/mips/mips.c (mips_conditional_register_usage): Define.
3213
3214 2002-08-02  Jason Merrill  <jason@redhat.com>
3215
3216         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
3217         * langhooks.c (lhd_expr_size): Define default.
3218         * langhooks.h (struct lang_hooks): Add expr_size.
3219         * explow.c (expr_size): Call it.
3220         * expr.c (store_expr): Don't copy an expression of size zero.
3221         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
3222         to store.
3223         * Makefile.in (builtins.o): Depend on langhooks.h.
3224
3225 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3226
3227         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
3228         * ra-debug.c: Include "tm_p.h".
3229         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
3230
3231 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
3232
3233         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
3234         when not honoring signalling NaNs.
3235         (simplify_ternary_operation): a == b has a definite value
3236         when not honoring NaNs.
3237
3238 2002-08-02  Jason Merrill  <jason@redhat.com>
3239
3240         * gdbinit.in (pct): New macro.
3241
3242 2002-08-01  Stan Shebs  <shebs@apple.com>
3243             Andreas Tobler  <toa@pop.agri.ch>
3244
3245         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
3246         plays nice with Darwin headers.
3247         (_BSD_RUNE_T_DEFINED_): Likewise.
3248
3249 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
3250
3251         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
3252         * cppinit.c (cpp_post_options): Likewise.
3253
3254         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
3255         warning about 'LL' suffix (but not 'ULL' etc) when
3256         -Wno-long-long is in effect.
3257
3258         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
3259         Check for failing time()/localtime(), issue a warning, and
3260         make __TIME__ and __DATE__ expand to fallback strings.
3261
3262         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
3263         and __TIME__ when the date and time cannot be determined.
3264
3265 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
3266
3267         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
3268
3269 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
3270
3271         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
3272
3273 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
3274
3275         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
3276         (mipsisa64sb1el-*-elf*): Likewise.
3277         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
3278         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
3279         (TARGET_SB1, TUNE_SB1): New macros.
3280         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
3281         -mtune flags.
3282
3283 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
3284
3285         * varasm.c (asm_emit_uninitialized): Return false if global BSS
3286         and ASM_EMIT_BSS not supported by target.
3287         (assemble_variable): Do not duplicate uninitialized logic.
3288         Fall through if asm_emit_uninitialized failed.
3289
3290 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
3291
3292         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
3293
3294 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
3295
3296         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
3297         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
3298
3299         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
3300         HOST_BITS_PER_WIDE_INT == 64.
3301
3302 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3303
3304         * df.c (df_insn_table_realloc): Change parameter to unsigned.
3305         * optabs.c (expand_binop): Make variable unsigned.
3306         * simplify-rtx.c (simplify_subreg): Likewise.
3307         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
3308
3309 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3310
3311         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
3312
3313 2002-08-01  Richard Henderson  <rth@redhat.com>
3314
3315         * toplev.c (parse_options_and_default_flags): Don't set
3316         flag_reorder_blocks for -Os.
3317
3318         * config/avr/avr.c (avr_optimization_options): Remove.
3319         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
3320         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
3321         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
3322
3323 2002-08-01  H.J. Lu <hjl@gnu.org>
3324             Richard Henderson  <rth@redhat.com>
3325
3326         * output.h (DECL_READONLY_SECTION): Remove.
3327         (decl_readonly_section): Declare.
3328         * varasm.c (decl_readonly_section): New.
3329         (default_section_type_flags, default_select_section): Use it.
3330         * config/arm/pe.c (arm_pe_unique_section): Likewise.
3331         * config/i386/interix.c (i386_pe_unique_section): Likewise.
3332         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
3333         * config/mcore/mcore.c (mcore_unique_section): Likewise.
3334         * config/mips/mips.c (mips_unique_section): Likewise.
3335
3336 2002-08-01  Richard Henderson  <rth@redhat.com>
3337
3338         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
3339         refers to a subroutine parameter.
3340
3341 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
3342
3343         * varasm.c (assemble_visibility): Strip name encoding.
3344
3345 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
3346
3347         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
3348         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
3349         when there is no frame pointer.
3350         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
3351         registers properly.
3352         * config/ns32k/__unorddf2.c: New file.
3353         * config/ns32k/__unordsf2.c: New file.
3354         * config/ns32k/t-ns32k: New file.
3355         * config.gcc (ns32k-*-netbsd*): Use it.
3356
3357 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
3358
3359         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
3360
3361 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3362
3363         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
3364
3365 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
3366
3367         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
3368
3369 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
3370
3371         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
3372
3373 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3374
3375         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
3376         n_sets): Removed.
3377         (expr_hash_table, set_hash_table): Type changed to ...
3378         (struct hash_table): New type.
3379         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
3380         insert_expr_in_table, insert_set_in_table, compute_hash_table,
3381         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
3382         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
3383         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
3384         (alloc_hash_table): New.
3385         (free_set_hash_table, free_expr_hash_table): Merged to ...
3386         (free_hash_table): New.
3387         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
3388         (compute_hash_table_work): New.
3389         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
3390         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
3391         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
3392         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
3393         hoist_code, one_code_hoisting_pass,
3394         trim_ld_motion_mems): Altered due to changed type of hash tables.
3395
3396 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
3397
3398         * final.c (output_alternate_entry_point):
3399         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
3400
3401 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3402
3403         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
3404         avoid ISO C style function definition.
3405
3406         * expr.c (expand_assignment): Delete unused variable.
3407
3408 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
3409
3410         * c-common.c (cb_register_builtins): Set
3411         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
3412         is given, and to 0 otherwise.
3413         * combine.c (simplify_if_then_else): HONOR_NANS
3414         implies FLOAT_MODE_P.
3415
3416 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3417
3418         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
3419         (cpp_handle_option): Don't handle it.
3420         (print_help): Update.
3421         * doc/cppopts.texi: Update.
3422
3423 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3424
3425         * c-common.c (cb_register_builtins): If C++, define
3426         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
3427         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
3428 cp:
3429         * lang-specs.h: Simplify in accordance with new code in
3430         c-common.c.
3431
3432 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3433
3434         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
3435         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
3436         * c-decl.c: Move all warning and flag variables to c-common.c.
3437         * c-format.c: Move all warning variables to c-common.c.
3438         * c-tree.h: Move all warning and flag declarations to c-common.h.
3439         * objc/objc-act.c: Move all warning variables to c-common.c.
3440         (flag_warn_protocol): Rename warn_protocol.
3441
3442 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3443
3444         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
3445
3446 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
3447
3448         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
3449         .section prefix.
3450
3451 2002-07-31  Stan Shebs  <shebs@apple.com>
3452
3453         * config.gcc (i[34567]86-*-darwin*): New configuration.
3454         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
3455         defining.
3456         (TARGET_ENCODE_SECTION_INFO): Ditto.
3457         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
3458         * config/darwin.c (machopic_indirect_data_reference): Remove
3459         setting of RTX_UNCHANGING_P.
3460         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
3461         not to be applied to sums.
3462         * config/i386/t-darwin: New file.
3463         * config/i386/darwin.h: New file.
3464         * config/i386/i386.h (TARGET_MACHO): Add default definition.
3465         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
3466         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
3467         label and not the GOT add.
3468         (constant_address_p): For Mach-O, seeing a CONST is enough.
3469         (legitimate_pic_address_disp_p): Add a Mach-O case.
3470         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
3471         (legitimize_pic_address): Use generic Mach-O code to legitimize.
3472         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
3473         if outputting a difference.
3474         (ix86_output_addr_diff_elt): Add Mach-O case.
3475         (ix86_expand_move): Similarly.
3476         (ix86_expand_call): Similarly.
3477         (current_machopic_label_num): New global.
3478         (machopic_output_stub): New function.
3479         (ix86_value_regno): New function.
3480         (ix86_function_value): Use it instead of VALUE_REGNO.
3481         (ix86_libcall_value): Ditto.
3482         * config/i386/unix.h (VALUE_REGNO): Remove.
3483
3484 2002-07-31  Graham Stott  <grahas@btinternet.com>
3485
3486         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
3487         hash for LABEL_REF's.
3488
3489 2002-07-31  Graham Stott  <grahams@btinternet.com>
3490
3491         * config/rs6000/rs6000.c (spe_init_builtins,
3492         altivec_init_builtins, rs6000_common_init_builtins):
3493         Replace ANSI with K&R function def.
3494
3495 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
3496
3497         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
3498         for CCFPmode.
3499
3500 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
3501
3502         * config/mips/crtn.asm: Don't use __mips16 to determine the
3503         return-address offset.  Define RA to a suitable temporary
3504         register for the return address.
3505
3506 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
3507
3508         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
3509         constraints to 'd'.
3510
3511 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
3512
3513         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
3514         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
3515         patch on 2002-07-29.)
3516         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3517
3518 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3519
3520         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
3521         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
3522         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
3523         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
3524         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
3525         (ASM_GLOBALIZE_LABEL): Delete.
3526         (GLOBAL_ASM_OP): Define.
3527
3528         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
3529
3530         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
3531         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
3532
3533 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
3534
3535         * doc/extend.texi (Hints implementation): Document that GCC
3536         mostly ignores `register'.
3537
3538 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
3539
3540         * flags.h: Declare flag_finite_math_only.
3541         Use it in definition of HONOR_NANS and
3542         HONOR_INFINITIES.
3543         * c-common.c (cb_register_builtins): Emit
3544         __FINITE_MATH_ONLY__ when flag_finite_math_only
3545         is set.
3546         * combine.c (simplify_if_then_else): If
3547         flag_finite_math_only is set, a == b has a
3548         definite value.
3549         * toplev.c: Initialize flag_finite_math_only.
3550         (set_flags_fast_math): Set it on -ffast-math.
3551         (flag_fast_math_set_p): Test it.
3552         * doc/invoke.texi: Document -ffinite-math-only.
3553
3554 2002-07-30  Richard Henderson  <rth@redhat.com>
3555
3556         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
3557         (noce_process_if_block): Likewise.
3558
3559 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
3560
3561         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
3562         Bail out early if false_expr is NULL and we'd crash due to this.
3563         * genemit.c (gen_expand): Recognize return insns even if the return
3564         appears in a parallel.
3565         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
3566         * config/fp-bit.c: Likewise.
3567         * doc/tm.texi: Document it.
3568
3569 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
3570             Zack Weinberg  <zack@codesourcery.com>
3571
3572         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
3573         CODE_FOR_nothing.  Change switch to if.
3574         (rs6000_expand_binop_builtin): Same.
3575         (rs6000_expand_builtin): Expand builtin if target support enabled.
3576         (rs6000_init_builtins): Init builtin if target support enabled.
3577         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
3578
3579 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3580
3581         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
3582
3583 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
3584
3585         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
3586
3587 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
3588
3589         * sh.md (cond_delay_slot): New attribute.
3590         (cbranch delay): Use it for anulled-true case.
3591         (stuff_delay_slot): New pattern.
3592         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
3593         delay slot insn.
3594         (gen_far_branch): Emit stuff_delay_slot pattern.
3595
3596 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
3597
3598         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
3599
3600 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
3601
3602         * fold-const.c: Fix comment typos.
3603         * gcse.c: Likewise.
3604         * reload1.c: Likewise.
3605
3606 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3607
3608         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
3609         for TARGET_SPE.
3610
3611 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3612
3613         * c-pretty-print.h (pp_c_statement): Declare.
3614         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
3615         (pp_c_statement): Define.
3616
3617 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3618
3619         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
3620         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
3621         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
3622         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
3623         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
3624         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
3625
3626         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
3627         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
3628
3629 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3630
3631         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
3632         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
3633         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
3634         (pp_c_expression): Update.
3635
3636 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3637
3638         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
3639         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
3640         * alpha/vms-ld.c (main): Likewise.
3641         * dsp16xx.c (double_reg_to_memory): Likewise.
3642         * mcore.c (mcore_expand_prolog): Likewise.
3643         * cppfiles.c (read_name_map): Likewise.
3644         * gensupport.c (process_rtx, identify_predicable_attribute,
3645         alter_test_for_insn): Likewise.
3646         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
3647
3648 2002-07-29  Roger Sayle  <roger@eyesopen.com>
3649
3650         * builtins.c (expand_builtin):  Change the default behavior to
3651         only issue an error if the builtin function doesn't have a
3652         fallback library call.  Remove several cases handled by the
3653         new default.
3654
3655 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
3656
3657         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
3658         floating point format of the target is IEEE.
3659         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
3660         format of the target is DEC.
3661
3662 2002-07-29  Richard Henderson  <rth@redhat.com>
3663
3664         * unroll.c (verify_addresses): Remove.
3665         (find_splittable_givs): Never split DEST_ADDR givs.
3666
3667 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
3668
3669         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
3670         is exhaustive.
3671         (Files): Improve documentation on generated source files.
3672
3673         * doc/extend.texi (Translation implementation): Document what
3674         diagnostics look like.
3675         (Identifiers implementation): Document that there's normally no
3676         limit on identifier names.
3677         (Integers implementation): Document two's complement.
3678         (Hints implementation): Document that GCC honours 'inline', mostly.
3679         (Preprocessing directives implementation): Document that GCC
3680         requires the current time.
3681
3682 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3683
3684         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
3685         (pp_initializer): New macro.
3686         (pp_c_initializer): Declare.
3687         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
3688         (pp_c_initializer): Define.
3689         (pp_c_initializer_list): New function.
3690         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
3691         VECTOR_CST, CONSTRUCTOR.
3692         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
3693         IMAGPART_EXPR.
3694         (pp_c_cast_expression): Handle FLOAT_EXPR.
3695         (pp_c_assignment_expression): Handle INIT_EXPR.
3696         (pp_c_expression): Update.
3697
3698 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
3699
3700         * objc/objc-act.c (objc_init): Return immediately if filename
3701         is NULL.
3702
3703 2002-07-29  Eric Christopher  <echristo@redhat.com>
3704
3705         * config/mips/elf.h: Remove ecoff.h and gofast includes.
3706         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
3707         (SDB_DEBUGGING_INFO): Undefine.
3708         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
3709         (PUT_SDB_SIZE): Remove.
3710         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
3711         (STARTFILE_SPEC): Add isa3264 define.
3712         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
3713         * config/mips/ecoff.h: Remove. and here...
3714         * config/mips/iris3.h: and here...
3715         * config/mips/sni-svr4.h: and here...
3716         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
3717         Add assembler -mmdebug options for non-dwarf debugging.
3718         * config/mips/r3900.h: Remove debug info defines.
3719         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
3720         * config/mips/isa3264.h: Ditto.
3721         * config/mips/t-isa3264: Fix up for file removal and gofast configure
3722         change.
3723         * config/mips/t-elf: Ditto.
3724         * config/mips/t-ecoff: Ditto.
3725         * config/mips/t-r3900: Ditto.
3726         * config/mips/t-iris5-6: Ditto.
3727         * config/mips/t-isa3264: Ditto.
3728         * config/mips/t-linux: Remove.
3729         * config/mips/t-netbsd: Remove.
3730         * config/mips/t-mips: New file.
3731         * config/mips/t-gofast: Ditto.
3732         * config/mips/netbsd.h: Remove unnecessary undefines.
3733         * config/mips/linux.h: Remove #include of mips.h.
3734         * config.gcc: Add mips.h include for elf targets. Remove tm_file
3735         for ecoff. Add gofast configure option for mips.
3736
3737 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
3738
3739         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
3740         linker scripts use STARTUP directives consistently.
3741         * configure: Regenerate.
3742         * config.in: Regenerate.
3743         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
3744         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
3745         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3746         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
3747         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
3748         will be the same.
3749
3750 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3751
3752         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
3753
3754 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3755
3756         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
3757
3758 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
3759
3760         * config/rs6000/rs6000.md: Move altivec patterns from here...
3761
3762         * config/rs6000/altivec.md: ...to here.
3763
3764 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3765
3766         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
3767
3768 2002-07-29  Richard Henderson  <rth@redhat.com>
3769
3770         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
3771         set_mem_attributes and add BITPOS argument.  Subtract it from
3772         OFFSET when same is adjusted.
3773         (set_mem_attributes): New wrapper function.
3774         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
3775         remove offset adjustment hack.
3776         * expr.h (set_mem_attributes_minus_bitpos): Declare.
3777
3778 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
3779
3780         * Makefile.in (C_OBJS): Include c-pretty-print.o
3781         (c-pretty-print.o): Add depency rule.
3782         * pretty-print.h: Add more macros.
3783         * c-pretty-print.c: New file.
3784         * c-pretty-print.h: Likewise.
3785
3786 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3787
3788         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
3789         constants to __ev64_s32__.
3790         (__internal_ev_mwhgsmian): Same.
3791         (__internal_ev_mwhgsmfan): Same.
3792         (__internal_ev_mwhgssfan): Same.
3793         (__internal_ev_mwhgumiaa): Same.
3794         (__internal_ev_mwhgsmiaa): Same.
3795         (__internal_ev_mwhgsmfaa): Same.
3796         (__internal_ev_mwhgssfaa): Same.
3797
3798 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
3799
3800         * varasm.c (assemble_variable): Narrow test for uninitialized
3801         without BSS target support.
3802
3803 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
3804
3805         * profile.c: Add file comment describing the overall algorithm and
3806         structures.
3807         (struct edge_info): Add comments.
3808         (struct bb_info): Add comments.
3809         * basic-block.h (EDGE_*): Add comments.
3810         * doc/gcov.texi (Gcov Data Files): Document bit flags.
3811
3812 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
3813
3814         * config/xtensa/elf.h, config/xtensa/linux.h
3815         (TARGET_OS_CPP_BUILTINS): Define.
3816         (CPP_PREDEFINES): Remove.
3817         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
3818         (CPP_SPEC): Remove.
3819
3820 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
3821
3822         * gensupport.c: Include hashtab.h.
3823         (insn_elision, condition_table, hash_c_test, cmp_c_test,
3824         maybe_eval_c_test): New routines and data structures to
3825         support insn elision.
3826         (init_md_reader): Read and initialize the condition_table.
3827         (read_md_rtx): Discard insn patterns whose C test is provably
3828         always false.
3829         * gensupport.h: Declare new functions and data structures.
3830
3831         * genconditions.c, dummy-conditions.c: New files.
3832         * Makefile.in: Build genconditions; run it to construct
3833         insn-conditions.c; build that and link it into most gen*
3834         programs.
3835         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
3836         (GEN): Delete, unused.
3837         (STAGESTUFF): Update.
3838
3839         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
3840         CODE_FOR_nothing for all elided patterns.
3841         (main): Tweaked to support this.
3842         * genflags.c (gen_proto): Emit a static inline generator
3843         function here for all elided patterns, which simply returns
3844         NULL_RTX.
3845         (gen_insn): Do not define HAVE_xxx for elided patterns.
3846         (main): Tweaked to support this.  No need to forward-declare
3847         struct rtx_def.
3848         * genrecog.c: Do not bother emitting the C test if it's known
3849         to be true at compile time.
3850
3851 2002-07-29  Mike Stump  <mrs@apple.com>
3852
3853         * config.gcc (target_gtfiles): Initialize, as otherwise cross
3854         compilers hosted on powerpc-apple-darwin6.0 won't even build.
3855
3856 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
3857
3858         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
3859         remove clobber of LR.
3860         (sibcall_insn, sibcall_value_insn): Update accordingly.
3861         (sibcall_epilogue): Remove debugging comment from assembler stream.
3862
3863 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
3864
3865         * pretty-print.h: Define more macros.
3866         * diagnostic.h (output_formatted_integer): Moved from...
3867         * diagnostic.c: ... here.
3868
3869 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3870
3871         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
3872
3873 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
3874
3875         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
3876         arguments.  Always use ".-symbol" as expression argument.
3877         * doc/tm.texi: Update to match.  Document requirement for
3878         ".size symbol, .-symbol" to be acceptable to assembler.
3879
3880         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
3881         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
3882         config/i386/freebsd-aout.h, config/i386/sco5.h,
3883         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
3884         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
3885
3886 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3887
3888         * Makefile.in (gengtype-lex.c): Fix error in last change.
3889
3890         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
3891         backslash.
3892
3893         * Makefile.in (vmsdbgout.o): Depend on function.h.
3894
3895         * vmsdbgout.c: Include function.h.
3896
3897 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
3898
3899         * prefix.c (update_path): Don't strip single `.' path components
3900         unless stripping a later `..' component.  Exit loop as soon as
3901         a valid path is found.
3902
3903 2002-07-27  Roger Sayle  <roger@eyesopen.com>
3904
3905         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
3906         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
3907         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
3908         floating point unordered comparisons (e.g. __builtin_isgreater)
3909         as const, and leave the remaining GCC_BUILTINs unchanged.
3910
3911         * c-decl.c (builtin_function): No need to explicitly mark
3912         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
3913
3914 2002-07-27  Roger Sayle  <roger@eyesopen.com>
3915
3916         * Makefile.in: rtlanal.o now depends upon real.h.
3917
3918         * flags.h [flag_signaling_nans]: New flag.
3919         [HONOR_SNANS]: New macro.
3920
3921         * toplev.c [flag_signaling_nans]: Initialize to false.
3922         (f_options): Add processing for "-fsignaling-nans".
3923         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
3924         (process_options): flag_signaling_nans implies flag_trapping_math.
3925
3926         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
3927         when -fsignaling-nans.  First step to implementing WG14's N965.
3928
3929         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
3930         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
3931         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
3932
3933         * simplify-rtx.c (simplify_relational_operation): Conditionalize
3934         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
3935
3936         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
3937         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
3938         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
3939         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
3940         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
3941
3942         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
3943
3944 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3945
3946         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
3947         * gengtype-lex.l (YY_USE_PROTOS): Undef.
3948         (YY_DECL): Define.
3949
3950 2002-07-27  Roger Sayle  <roger@eyesopen.com>
3951
3952         * doc/invoke.texi: Document that both -fno-builtin-foo and
3953         -fno-builtin are supported by the g++ front-end.
3954
3955 2002-07-27  Stan Shebs  <shebs@apple.com>
3956
3957         * configure.in: Rename config_gtfiles to target_gtfiles.
3958         * configure: Regenerate.
3959         * doc/gty.texi: Update reference.
3960         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
3961         instead of appending to it.
3962
3963 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
3964
3965         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
3966         vectors are split into two registers.
3967         (function_arg): Same.
3968
3969 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
3970
3971         * pa.md (extv): Check predicates before emitting extv_32.
3972
3973 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
3974
3975         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
3976         (rs6000_traceback): New var.
3977         (rs6000_override_options): Set rs6000_traceback.
3978         (rs6000_output_function_epilogue): Implement traceback options.
3979         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
3980         (rs6000_traceback_name): Declare.
3981
3982         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
3983         label reference when NO_PROFILE_COUNTERS.
3984
3985 2002-07-26  Jason Merrill  <jason@redhat.com>
3986
3987         * function.c (assign_parms): Handle frontend-directed pass by
3988         invisible reference.
3989
3990 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
3991
3992         * doc/cppopts.texi: Update.
3993
3994 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
3995
3996         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
3997         warnings on assertions.
3998
3999 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4000
4001         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
4002         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
4003         RID_COMPL): Remove.
4004         * c-parse.in (rid_to_yy): Similarly.
4005
4006 2002-07-26  Jason Merrill  <jason@redhat.com>
4007
4008         * c-dump.c: Resurrect.
4009         * tree-dump.c: Move C-specific stuff to c-dump.c.
4010         * c-common.h: Declare c_dump_tree.
4011         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
4012         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4013         (c-dump.o): New rule.
4014
4015 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
4016
4017         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
4018         PowerPC64.  Replace "T" and "S" constraints with "n" when the
4019         predicate will do.  Formatting fixes.
4020         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
4021         as for extzvsi_internal1.
4022
4023 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4024
4025         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
4026         DERIV_END_LABEL_FMT): Remove.
4027         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
4028
4029 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4030
4031         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
4032         Remove.
4033
4034 2002-07-25  Stan Shebs  <shebs@apple.com>
4035
4036         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
4037         local var dwarfp.
4038         (output_compiler_stub): Remove unused locals.
4039         (output_call): Always initialize line number.
4040
4041 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4042
4043         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
4044         * sh.md (truncdiqi2, movqi_media): Likewise.
4045
4046 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4047
4048         * gcse.c (obstack_chunk_alloc): Remove.
4049         (gcse_alloc): Fix to count allocated bytes.
4050         * collect2.c (SYMBOL__MAIN): Remove.
4051
4052 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4053
4054         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
4055         HAVE_TARGET_EXECUTABLE_SUFFIX.
4056
4057 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4058
4059         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
4060         SIZE, EXPR and OFFSET.
4061
4062 2002-07-25  Richard Henderson  <rth@redhat.com>
4063
4064         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
4065         in ARRAY_REF of DECL_P case.
4066
4067 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4068
4069         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
4070         description.  Document -mips32, -mips64, and the associated -march
4071         values.  Describe the "mipsN" arguments to -march.  Say that the
4072         -mipsN options are equivalent to -march.  Reword the description
4073         of default type sizes.
4074         * toplev.h (target_flags_explicit): Declare.
4075         * toplev.c (target_flags_explicit): New var.
4076         (set_target_switch): Update target_flags_explicit.
4077         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
4078         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
4079         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
4080         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
4081         * config/mips/mips.h (mips_cpu_info): New struct.
4082         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4083         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
4084         (MIPS_CPP_SET_PROCESSOR): New macro.
4085         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
4086         Define _MIPS_ARCH and _MIPS_TUNE.
4087         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
4088         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
4089         MIPS_ISA_DEFAULT were already defined.
4090         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
4091         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
4092         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
4093         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
4094         (ABI_GAS_ASM_SPEC): Remove.
4095         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
4096         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
4097         Invoke %(asm_abi_default_spec) if no ABI was specified.
4098         (CC1_SPEC): Remove ISA -> register-size rules.
4099         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
4100         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
4101         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4102         (mips_cpu_info_table): New array.
4103         (mips_set_architecture, mips_set_tune): New fns.
4104         (override_options): Rework to make -mipsN equivalent to -march.
4105         Detect more erroneous cases, including those removed from CC1_SPEC.
4106         Don't change the ABI based on architecture, or vice versa.
4107         Unify logic with GAS.
4108         (mips_asm_file_start): Get architecture name from mips_arch_info.
4109         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4110         (mips_parse_cpu): Take the name of the option as argument.  Handle
4111         'from-abi'.  Raise an error if the option is wrong.
4112         (mips_cpu_info_from_isa): New fn.
4113
4114 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4115
4116         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
4117         (tablejump_mips162): Likewise.
4118
4119 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
4120
4121         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
4122         int_mode_for_mode.
4123
4124 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
4125
4126         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
4127         complaining.
4128         * c-common.h (c_sizeof): Adjust definition.
4129         (c_alignof): Likewise.
4130         * c-tree.h (c_sizeof_nowarn): Now macro.
4131         * c-typeck.c (c_sizeof_nowarn): Remove definition.
4132
4133 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4134
4135         * c-decl.c (c_decode_option): No need to handle switches
4136         cpplib handles.
4137
4138 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
4139
4140         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
4141         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
4142         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
4143         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4144
4145         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4146         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
4147         config/cris/aout.h, config/i386/freebsd-aout.h,
4148         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
4149         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
4150         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
4151         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
4152         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
4153         config/xtensa/elf.h, config/xtensa/linux.h:
4154         Use the new macros.
4155         Where possible, remove redundant definitions of SIZE_ASM_OP,
4156         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4157
4158 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
4159
4160         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
4161         TARGET_ISEL, and TARGET_FPRS.
4162
4163         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4164         -mabi=spe, -mabi=no-spe, and -misel=.
4165
4166         * config/rs6000/rs6000-protos.h: Add output_isel.
4167         Move vrsave_operation prototype here.
4168
4169         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
4170         (smaxsi3): Same.
4171         (uminsi3): Same.
4172         (umaxsi3): Same.
4173         (abssi2_nopower): Disallow when TARGET_ISEL.
4174         (*ne0): Same.
4175         (negsf2): Change to expand and rename old pattern to *negsf2.
4176         (abssf2): Change to expand and rename old pattern to *abssf2.
4177
4178         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
4179         fixunssfsi2.
4180
4181         Change patterns that check for TARGET_HARD_FLOAT or
4182         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
4183
4184         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
4185         rs6000_isel, rs6000_fprs, rs6000_isel_string.
4186         (rs6000_override_options): Add 8540 case to
4187         processor_target_table.
4188         Set rs6000_isel for the 8540.
4189         Call rs6000_parse_isel_option.
4190         (enable_mask_for_builtins): New.
4191         (rs6000_parse_isel_option): New.
4192         (rs6000_parse_abi_options): Add spe and no-spe.
4193         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
4194         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
4195         for TARGET_HARD_FLOAT.
4196         Add case for SPE_VECTOR_MODE.
4197         (rs6000_legitimize_reload_address): Handle SPE vector modes.
4198         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
4199         vector modes.
4200         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
4201         (rs6000_emit_move): Check for TARGET_FPRS.
4202         Add cases for SPE vector modes.
4203         (function_arg_boundary): Return 64 for SPE vector modes.
4204         (function_arg_advance): Check for TARGET_FPRS and
4205         Handle SPE vectors.
4206         (function_arg): Same.
4207         (setup_incoming_varargs): Check for TARGET_FPRS.
4208         (rs6000_va_arg): Same.
4209         (struct builtin_description): Un-constify mask field.  Move up in
4210         file.
4211         (bdesc_2arg): Un-constify and add SPE builtins.
4212         (bdesc_1arg): Same.
4213         (bdesc_spe_predicates): New.
4214         (bdesc_spe_evsel): New.
4215         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
4216         (rs6000_expand_binop_builtin): Same.
4217         (bdesc_2arg_spe): New.
4218         (spe_expand_builtin): New.
4219         (spe_expand_predicate_builtin): New.
4220         (spe_expand_evsel_builtin): New.
4221         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
4222         (rs6000_init_builtins): Initialize SPE builtins.  Call
4223         rs6000_common_init_builtins.
4224         (altivec_init_builtins): Move all non-altivec builtin code to...
4225         (rs6000_common_init_builtins): ...here.  New function.
4226         (branch_positive_comparison_operator): Allow NE code for SPE.
4227         (ccr_bit): Return correct ccr bit for SPE fp.
4228         (print_operand): Emit crnor in 'D' case for SPE.
4229         New case 't'.
4230         Add SPE code for 'y' case.
4231         (rs6000_generate_compare): Generate rtl for SPE fp.
4232         (output_cbranch): Handle SPE hard floats.
4233         (rs6000_emit_cmove): Handle isel.
4234         (rs6000_emit_int_cmove): New.
4235         (output_isel): New.
4236         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
4237         64-bits for SPE.
4238         (debug_stack_info): Add SPE info.
4239         (gen_frame_mem_offset): New.
4240         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
4241         Change mode of frame pointer, when saving it, to Pmode.
4242         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
4243         Misc cleanups and use gen_frame_mem_offset when appropriate.
4244
4245         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
4246         (TARGET_SPE_ABI): New.
4247         (TARGET_SPE): New.
4248         (TARGET_ISEL): New.
4249         (TARGET_FPRS): New.
4250         (FIXED_SCRATCH): New.
4251         (RTX_COSTS): Add PROCESSOR_PPC8540.
4252         (ASM_CPU_SPEC): Add case for 8540.
4253         (TARGET_OPTIONS): Add isel= case.
4254         (rs6000_spe_abi): New.
4255         (rs6000_isel): New.
4256         (rs6000_fprs): New.
4257         (rs6000_isel_string): New.
4258         (UNITS_PER_SPE_WORD): New.
4259         (LOCAL_ALIGNMENT): Adjust for SPE.
4260         (HARD_REGNO_MODE_OK): Same.
4261         (DATA_ALIGNMENT): Same.
4262         (MEMBER_TYPE_FORCES_BLK): New.
4263         (FIRST_PSEUDO_REGISTER): Set to 113.
4264         (FIXED_REGISTERS): Add SPE registers.
4265         (reg_class): Same.
4266         (REG_CLASS_NAMES): Same.
4267         (REG_CLASS_CONTENTS): Same.
4268         (REGNO_REG_CLASS): Same.
4269         (REGISTER_NAMES): Same.
4270         (DEBUG_REGISTER_NAMES): Same.
4271         (ADDITIONAL_REGISTER_NAMES): Same.
4272         (CALL_USED_REGISTERS): Same.
4273         (CALL_REALLY_USED_REGISTERS): Same.
4274         (SPE_ACC_REGNO): New.
4275         (SPEFSCR_REGNO): New.
4276         (SPE_SIMD_REGNO_P): New.
4277         (HARD_REGNO_NREGS): Adjust for SPE.
4278         (VECTOR_MODE_SUPPORTED_P): Same.
4279         (REGNO_REG_CLASS): Same.
4280         (FUNCTION_VALUE): Same.
4281         (LIBCALL_VALUE): Same.
4282         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
4283         (SPE_VECTOR_MODE): New.
4284         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
4285         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
4286         (rs6000_stack): Add spe_gp_size, spe_padding_size,
4287         spe_gp_save_offset.
4288         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
4289         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
4290         (SPE_CONST_OFFSET_OK): New.
4291         (rs6000_builtins): Add SPE builtins.
4292
4293         * testsuite/gcc.dg/ppc-spe.c: New.
4294
4295         * config/rs6000/eabispe.h: New.
4296
4297         * config/rs6000/spe.h: New.
4298
4299         * config/rs600/spe.md: New.
4300
4301         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4302         __SIMD__ for TARGET_SPE.
4303
4304         * config.gcc: Add powerpc-*-eabispe* case.
4305         Add spe.h to user headers for powerpc.
4306
4307 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
4308
4309         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
4310         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4311         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
4312
4313 2002-07-24  Richard Henderson  <rth@redhat.com>
4314
4315         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
4316         form when not optimizing.
4317
4318 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
4319
4320         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
4321         thread_pointer_rtx as unchanging.
4322
4323 2002-07-24  Michael Matz  <matz@suse.de>
4324
4325         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
4326         (free_reg): Use it.
4327
4328 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
4329
4330         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
4331         pattern.
4332         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
4333         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
4334
4335 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
4336
4337         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
4338         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4339         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
4340
4341 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4342
4343         * toplev.c (rest_of_compilation): Dump loops before clobbering
4344         the structure.
4345
4346 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
4347
4348         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
4349
4350 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
4351
4352         PR optimization/7291
4353         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
4354         problem on x86_64.
4355
4356 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
4357
4358         * pretty-print.h: Add macros from cp/error.c
4359
4360 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
4361
4362         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
4363         (mask64_2_operand): Declare.
4364         (build_mask64_2_operands): Declare.
4365         (and64_2_operand): Declare.
4366         (extract_MB): Declare.
4367         (extract_ME): Declare.
4368         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
4369         CONST_DOUBLE code.
4370         (mask_operand_wrap): New insn predicate.
4371         (mask64_2_operand): Likewise.
4372         (and64_2_operand): Likewise.
4373         (build_mask64_2_operands): New function.
4374         (extract_MB): New function.
4375         (extract_ME): New function.
4376         (print_operand <case m,M>): Use extract_MB and extract_ME.
4377         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
4378         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
4379         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
4380         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
4381         * config/rs6000/rs6000.md (andsi3_internal3): New
4382         (andsi3_internal3+1): Enable split for powerpc64.
4383         (andsi3_internal3+2): New split.
4384         (andsi3_internal4): Renamed old andsi3_internal3.
4385         (andsi3_internal5): New.
4386         (andsi3_internal5+1): Enable split for powerpc64.
4387         (andsi3_internal5+2): New split.
4388         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
4389         (anddi3): Handle 't' constraint.
4390         (anddi3+1): New split.
4391         (anddi3_internal2): Handle 't' constraint.
4392         (anddi3_internal2+1): New split.
4393         (anddi3_internal3): Handle 't' constraint.
4394         (anddi3_internal3+1): New split.
4395
4396 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
4397
4398         * config/rs6000/rs6000.md: Remove scratch reg on insns using
4399         addze and similar (plus (comparison r1 r2) r3) insns.  Add
4400         missing scratch reg in one case.  Formatting fixes.
4401
4402 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
4403
4404         * cppexp.c (parse_defined): Mark macro used.
4405         * cpphash.h (struct cpp_macro): New member "used".
4406         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
4407         (struct cpp_reader): New member.
4408         * cppinit.c (cpp_finish_options): Set first_unused_line.
4409         (cpp_finish): Warn of unused macros if requested.
4410         (OPT_TABLE): New switches.
4411         (cpp_handle_option): Handle them.
4412         * cpplib.c (do_undef): Warn if macro unused.
4413         (do_ifdef, do_ifndef): Mark macro used.
4414         * cpplib.h (struct cpp_options): New member.
4415         * cppmacro.c (_cpp_warn_if_unused_macro): New.
4416         (enter_macro_context): Mark macro used.
4417         (_cpp_create_definition): Mark macro unused; warn if unused
4418         when redefined.
4419         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
4420         Mark macros used.
4421         * doc/cppopts.texi: Update.
4422
4423 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4424
4425         * dwarf2out.c (SECTION_ASM_OP,
4426         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4427         * system.h (SECTION_ASM_OP): Poison.
4428         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
4429         * config/alpha/alpha-interix.h, config/mips/linux.h
4430         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4431         * config/mmix/mmix-protos.h, config/mmix/mmix.c
4432         (mmix_asm_output_define_label_difference_symbol): Remove.
4433         * config/mmix/mmix.h
4434         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4435         * doc/tm.texi: Remove documentation.
4436
4437 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
4438
4439         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
4440         (constrain_operands): Likewise.
4441         * regclass.c (record_reg_classes): Likewise.
4442         * reload.c (find_reloads): Likewise.
4443         * doc/md.texi: Likewise.
4444
4445         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
4446         * simplify-rtx.c (simplify_subreg): When converting to a non-int
4447         mode, try to convert to an integer mode of matching size first.
4448
4449         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
4450         from individual subregs, check that each subreg has been generated
4451         sucessfully.
4452
4453 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4454
4455         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
4456         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
4457         FOR_EACH_BB_IN_SBITMAP): Remove.
4458         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
4459         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
4460         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
4461         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
4462         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
4463         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
4464
4465 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4466
4467         * pretty-print.h: New file.
4468
4469 2002-07-23      Paul Koning     <pkoning@equallogic.com>
4470
4471         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
4472         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
4473         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
4474         (TARGET_G_FLOAT): Default to 0 if not defined.
4475         (ieeetoe): New, common routine to convert target format floats
4476         to internal form.
4477         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
4478         vs. others.
4479         (e113toe): Change to use ieeetoe.
4480
4481 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4482
4483         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
4484         IBM.
4485         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
4486         (e64toe): Remove special cases for DEC and IBM. Remove support for
4487         ARM_EXTENDED_IEEE_FORMAT.
4488         (e24toe): Remove special cases for DEC.
4489         (significand_size): Simplify. Indent.
4490         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
4491         (etoieee, toieee): New.
4492         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
4493         etoieee and toieee for IEEE arithmetic.
4494
4495 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4496
4497         * doc/extend.texi: Say ISO C90, not ISO C89.
4498         * doc/invoke.texi: Likewise.
4499         * doc/standards.texi: Likewise.
4500
4501 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
4502
4503         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
4504         Fix permutation of conversion and plus/mult.
4505         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
4506         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
4507         (expand_builtin_strncpy) Ditto.
4508         (expand_builtin_memset) Ditto.
4509
4510 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4511
4512         Fix PR/7363:
4513         * c-common.c (c_sizeof_or_alignof_type): New function.
4514         (c_alignof): Remove definition.
4515         * c-common.h (c_sizeof, c_alignof): Define as macros.
4516         (c_sizeof_or_alignof_type): Declare.
4517         (my_friendly_assert): Moved from cp/cp-tree.h
4518         * c-typeck.c (c_sizeof): Remove definition.
4519
4520 2002-07-23  Jan Hubicka  <jh@suse.cz>
4521
4522         * gcse.c (try_replace_reg): Use num_changes_pending.
4523         * recog.c (num_changes_pending): New function.
4524         (validate_replace_src): Use validate_repalce_src_group.
4525         (validate_replace_src_group): New.
4526         * recog.h (validate_repalce_src_group): New.
4527         (num_changes_pending): Likewise.
4528
4529 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
4530
4531         * calls.c (emit_library_call_value_1): If
4532         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
4533         libcall, const call nor pure call.
4534
4535 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4536
4537         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
4538
4539 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4540
4541         * vmsdbgout.c (SECTION_ASM_OP): Remove.
4542
4543 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4544
4545         * config/i386/i386.c (AT_BP): Remove.
4546
4547 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4548
4549         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
4550         Default definition.
4551         * gcse.c: Don't define obstack_chunk_free.
4552         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
4553         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
4554         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
4555         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
4556         Don't define obstack macros.
4557
4558 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
4559
4560         PR target/6744
4561         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
4562         ASM_OPERANDS instructions.
4563
4564 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
4565
4566         PR target/7361
4567         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
4568         constant addresses only on 68HC12.
4569
4570 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
4571
4572         * cppfiles.c (stack_include_file): Correct test of whether
4573         a dependency should be output.
4574
4575 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
4576
4577         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
4578
4579 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
4580
4581         * arm.md (movqi): If optimizing and we can create pseudos, use
4582         a ZERO_EXTEND to load from memory, then copy the result into the
4583         target.
4584         (movhi): Likewise, but only for ARMv4.
4585
4586 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
4587
4588         * ssa-ccp.c (PHI_PARMS): Remove.
4589
4590 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
4591
4592         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
4593         on big-endian targets.
4594
4595 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4596
4597         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
4598         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
4599         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
4600         New formatting macros.
4601
4602         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
4603
4604 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4605
4606         * rtlanal.c (subreg_regno_offset): Return correct offset for
4607         big endian paradoxical subregs.
4608
4609         * optabs.c (expand_vector_unop): Don't expand using sub_optab
4610         if we got the wrong mode.
4611
4612         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
4613         * genrecog.c (write_switch, write_cond): Use it.
4614         * genemit.c (gen_exp): Likewise.
4615
4616 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
4617
4618         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
4619
4620 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
4621
4622         * c-decl.c (build_compound_literal): Defer compound literal decls
4623         until until file end to emit them only if they are actually used.
4624
4625 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4626
4627         * ra-build.c (check_conflict_numbers): Hide unused function.
4628         (livethrough_conflicts_bb): Avoid automatic aggregate
4629         initialization.
4630         (parts_to_webs_1): Avoid `U' integer constant modifier.
4631         (conflicts_between_webs): Wrap a variable in the macro controlling
4632         its usage.
4633         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
4634         (dump_igraph, dump_graph_cost): Avoid string concatenation
4635         (dump_static_insn_cost): Avoid automatic aggregate
4636         initialization.
4637         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
4638         initialization.
4639         (dump_cost): Avoid string concatenation
4640
4641 2002-07-21  Richard Henderson  <rth@redhat.com>
4642
4643         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
4644         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
4645
4646 2002-07-21  Richard Henderson  <rth@redhat.com>
4647
4648         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
4649         that are not unrolled completely.
4650
4651 2002-07-21  Richard Henderson  <rth@redhat.com>
4652
4653         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
4654         * loop.c (strength_reduce): Update.
4655         * toplev.c (rest_of_compilation): Do unrolling in the first
4656         loop pass, not the second.
4657
4658 2002-07-21  Richard Henderson  <rth@redhat.com>
4659
4660         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
4661         when flag_argument_noalias == 2.
4662         * alias.c (nonoverlapping_memrefs_p): Handle that.
4663         * print-rtl.c (print_mem_expr): Likewise.
4664
4665 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
4666
4667         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
4668         instead of __negdi2 directly.
4669
4670 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4671
4672         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
4673         * function.c (SYMBOL__MAIN): Remove definition.
4674         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
4675         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
4676         * profile.c (GCOV_INDEX_TO_BB): Remove.
4677         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
4678         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
4679
4680 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4681
4682         * c-lex.c (GET_ENVIRONMENT): Remove.
4683         * collect2.c (GET_ENV_PATH_LIST): Remove.
4684         (prefix_from_env): Use GET_ENVIRONMENT.
4685         * cppinit.c (GET_ENV_PATH_LIST): Remove.
4686         (init_standard_includes): Use GET_ENVIRONMENT.
4687         * defaults.h (GET_ENVIRONMENT): Define here if not already.
4688         * gcc.c (GET_ENV_PATH_LIST): Remove.
4689         (make_relative_prefix, process_command): Update.
4690         * protoize.c (GET_ENV_PATH_LIST): Remove.
4691         (do_processing): Update.
4692
4693 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
4694
4695         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
4696         (grokdeclarator): Likewise.
4697         * c-format.c (C_STD_NAME): Likewise.
4698         * c-lex.c (interpret_integer): Likewise.
4699         * c-typeck.c (build_array_ref): Likewise.
4700         * cpplex.c (_cpp_lex_direct): Likewise.
4701         * toplev.c (documented_lang_options): Likewise.
4702
4703 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4704
4705         * c-format.c (T99_I, T99_UI): Remove.
4706
4707 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4708
4709         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
4710
4711 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4712
4713         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
4714         do_local_cprop.
4715
4716 2002-07-21  Andreas Jaeger  <aj@suse.de>
4717
4718         * reload1.c (fixup_abnormal_edges): Remove unused variable.
4719
4720 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
4721
4722         Improvements for the ifcvt pass from Michael Meissner, with patches
4723         by Richard Sandiford <rsandifo@redhat.com>
4724         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
4725         * ifcvt.c (cond_exec_changed_p): New static variable.
4726         (last_active_insn): New function, renamed from last_active_insn_p
4727         and changed to return the last active insn in a basic block. All
4728         callers updated.
4729         (block_fallthru): New function.
4730         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
4731         IFCVT_MODIFY_INSN.  All callers updated.
4732         Return false if START or END are NULL.
4733         Handle case where we're processing an insn that is already
4734         conditional.
4735
4736         (noce_process_if_block): CE_INFO argument rather than
4737         multiple args containing the involved basic blocks.  All callers
4738         changed.
4739         (process_if_block, merge_if_block, find_if_block,
4740         cond_exec_process_if_block): Likewise.
4741
4742         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
4743         changed.
4744         Use new function last_active_insn to simplify some code.
4745         New code to handle multiple tests.
4746         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
4747         cond_exec_changed_p to TRUE.
4748
4749         (process_if_block): New code to handle multiple tests.
4750         (merge_if_block): Likewise.
4751         (find_if_header): New arg PASS.  Changed to return the currently
4752         processed basic block or NULL instead of true/false. All callers
4753         changed.
4754         Call IFCVT_INIT_EXTRA_FIELDS.
4755         (block_jumps_and_fallthru_p): New function.
4756         (find_if_block): Discover opportunities to convert multiple tests.
4757         Add additional debugging output.
4758         Update the ce_info structure before returning.
4759
4760         (if_convert): Run multiple passes of if-conversion.
4761         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
4762         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
4763         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
4764         these macros.
4765
4766 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4767
4768         * gcse.c: Include cselib.h
4769         (constptop_register): Break out from ...
4770         (cprop_insn): ... here; kill basic_block argument.
4771         (do_local_cprop, local_cprop_pass): New functions.
4772         (one_cprop_pass): Call local_cprop_pass.
4773
4774 2002-07-20  Roger Sayle  <roger@eyesopen.com>
4775
4776         * simplify-rtx.c (simplify_relational_operation): Optimize
4777         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
4778
4779 2002-07-20  Michae Matz  <matz@suse.de>
4780
4781         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
4782
4783 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
4784
4785         * cppexp.c (struct op): Add token pointer.
4786         (check_promotion, CHECK_PROMOTION): New.
4787         (optab): Update.
4788         (_cpp_parse_expr): Update, use token pointer of struct op.
4789         (reduce): Warn about change of sign owing to promotion.
4790         * cppinit.c (cpp_handle_option): New warning if -Wall.
4791         * cpplib.h (struct cpp_options): New member.
4792
4793 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
4794
4795         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
4796         fpu list.  Separate Power4 compare and delayed_compare.  Correct
4797         Power4 fpcompare.
4798         (fix_truncdfsi2_internal): Restore FPR preference.
4799         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
4800         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
4801
4802 2002-07-19  Momchil Velikov <velco@fadata.bg>
4803
4804         * reload1.c (reload_as_needed): Duplicate oldpat.
4805
4806 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
4807
4808         PR optimization/7130
4809         * loop.h (struct loop_info): Add "preconditioned".
4810         * unroll.c (unroll_loop): Set it.
4811         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
4812
4813 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
4814
4815         * rtl.def (CODE_LABEL): Remove slot 8.
4816         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
4817         (LABEL_ALTERNATE_NAME): Delete.
4818         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
4819         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
4820
4821         * final.c (output_alternate_entry_point): New.
4822         (final_scan_insn): Use it instead of
4823         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
4824         of a case label being an alternate entry point.
4825
4826         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
4827         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
4828         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
4829         (field deleted).
4830         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
4831
4832         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
4833         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
4834         * doc/tm.texi: Delete documentation of
4835         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
4836
4837 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4838
4839         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
4840         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
4841         (LINK_SPEC): Define.
4842         (STARTFILE_SPEC): Define.
4843         (ENDFILE_SPEC): Define.
4844
4845         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
4846         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
4847
4848         * config/mips/iris6-o32-gas.h: New file.
4849         * config.gcc (mips-sgi-irix6*o32): Use it.
4850
4851         * config/mips/t-iris5-gas: New file.
4852         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
4853
4854 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
4855
4856         * cppexp.c (ALWAYS_EVAL): Remove.
4857         (optab, reduce): Always evaluate.
4858         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
4859         only if not skipping evaluation.
4860
4861 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4862
4863         * config/avr/avr.c (debug_hard_reg_set): Remove.
4864
4865 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
4866
4867         * gcc.c (cpp_options): Include "%1" (cc1_spec).
4868
4869 2002-07-19  Richard Henderson  <rth@redhat.com>
4870
4871         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
4872
4873 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
4874
4875         * prefix.c (update_path): Don't zap single `.' path components
4876         unless followed by another `.' and fix typo last patch.
4877
4878 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
4879
4880         * cppexp.c (cpp_num_mul): Remove unused parameter.
4881         (UNARY, BINARY, OTHER, binary_handler): Remove.
4882         (ALWAYS_EVAL): New.
4883         (optab): Update.
4884         (reduce): Refactor to a large switch, don't use a function
4885         pointer.
4886
4887 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
4888
4889         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
4890
4891 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4892
4893         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
4894         (sh_expand_binop_v2sf): Likewise.
4895         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
4896         (int_gpr_dest, trunc_hi_operand): New functions.
4897         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
4898         trunc_hi_operand.
4899         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
4900         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
4901         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
4902         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
4903         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
4904         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
4905         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
4906         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
4907         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
4908         (movsf_ie+1): Likewise.
4909         (loaddi_trunc): Use int_gpr_dest predicate.
4910         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
4911         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
4912         (casesi_worker_0+[12], casesi_worker): Likewise.
4913         (shcompact_preserve_incoming_args): Likewise.
4914         (mov_nop): Use any_register_operand predicate.
4915         (mperm_w0): Use trunc_hi_operand predicate.
4916
4917 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4918
4919         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
4920         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
4921         numbering.
4922
4923 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4924
4925         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
4926
4927 2002-07-18  Richard Henderson  <rth@redhat.com>
4928
4929         PR optimization/7147
4930         * ifcvt.c (noce_get_condition): Make certain that the condition
4931         is valid at JUMP.
4932
4933 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
4934
4935         * sh.c (barrier_align, push): Shut up compiler warnings.
4936         (initial_elimination_offset,sh_media_init_builtins): Likewise.
4937         (reg_no_subreg_operand): Delete.
4938
4939 2002-07-17  Bo Thorsen  <bo@suse.de>
4940
4941         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
4942         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
4943         (STARTFILE_SPEC): Remove hardcoded library paths.
4944         (ENDFILE_SPEC): Likewise.
4945
4946 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
4947
4948         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
4949
4950         * gcse.c (try_replace_reg): Do not return false positives.
4951
4952 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
4953
4954         * prefix.c: (update_path): Strip ".." components when prior dir
4955         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
4956
4957         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
4958         (ASM_OUTPUT_REG_POP): Likewise.
4959
4960 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
4961
4962         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
4963         adjustments to first_reg for profiling case.
4964         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
4965         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
4966         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
4967         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
4968         (ASM_OUTPUT_REG_POP): Define.
4969         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
4970         (ASM_OUTPUT_REG_POP): Undef.
4971
4972 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
4973
4974         * cpplib.c (do_sccs): Handle #sccs on all systems.
4975         * system.h (SCCS_DIRECTIVE): Poison.
4976         * config/darwin.h, config/freebsd.h, config/netbsd.h,
4977         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
4978         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
4979         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
4980         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
4981         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
4982         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
4983         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
4984         Remove all references to SCCS_DIRECTIVE.
4985         * doc/cpp.texi, doc/tm.texi: Update.
4986
4987 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
4988
4989         * regrename.c (maybe_mode_change): New function.
4990         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
4991
4992 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
4993
4994         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
4995         suppress addition when either ct or cf are zero.
4996
4997 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
4998             Glen Nakamura <glen@imodulo.com>
4999
5000         PR optimization/6713
5001         * loop.c (loop_givs_rescan): Explicitly delete the insn that
5002         sets a non-replaceable giv after issuing the new one.
5003
5004 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5005
5006         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
5007         eval_token): Clarify and correct use of "bool" variables.
5008         * cpplib.h (struct cpp_options): Similarly.
5009         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
5010         * cpptrad.c (recursive_macro): Similarly.
5011
5012 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
5013
5014         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
5015         SHmedia code.
5016
5017         * sh.md (cmpgtudi_media): Remove spurious @.
5018
5019         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
5020         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
5021
5022         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
5023         * sh-protos.h (sh_initialize_trampoline): Declare.
5024         * sh.c (sh_initialize_trampoline): New function.
5025         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
5026         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
5027         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
5028         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
5029         * sh.md (initialize_trampoline, double_shori): New patterns.
5030         (initialize_trampoline_compact): Likewise.
5031         (shmedia32_initialize_trampoline_big): Remove.
5032         (shmedia32_initialize_trampoline_little): Likewise.
5033
5034         * sh-protos.h (binary_float_operator): Remove declaration.
5035         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
5036         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
5037         (unary_float_operator, sh_expand_unop_v2sf): New functions.
5038         (sh_expand_binop_v2sf): Likewise.
5039         (zero_vec_operand): Delete.
5040         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
5041         all non-shared ones.
5042         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
5043         Enable nsb and byterev.
5044         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
5045         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
5046         in general regs.
5047         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
5048         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
5049         immediate operands.
5050         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
5051         Add DF_HI_REGS.
5052         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
5053         lowpart fp regs - only for big endian for now.
5054         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
5055         when FPU is in use.
5056         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
5057         (LOAD_EXTEND_OP): NIL for SImode.
5058         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
5059         general and fp registers is 4.
5060         PREDICATE_CODES: Amend binary_float_operator entry.
5061         Remove zero_vec_operand.  Add unary_float_operator.
5062         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
5063         subreg SET_DEST.
5064         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
5065         (truncdiqi2): Do sign extension.
5066         (movsi_media, movdi_media): Allow to use r63 to an fp register.
5067         (movdf_media, movsf_media): Likewise.
5068         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
5069         Collapse to one define_insn_and_split.  Allow immediate sources.
5070         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
5071         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
5072         (movv4sf): Allow immediate sources.
5073         (movsf_media_nofpu+1): Don't split moves to FP registers.
5074         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
5075         (movv8qi_i+3): Check against CONST0_RTX.
5076         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
5077         for input and output operands.  Fix argument 3 to gen_mextr_rl.
5078         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
5079         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
5080         (mshf0_w, fipr, ftrv): Likewise.
5081         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
5082
5083 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5084
5085         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
5086         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
5087         * arm.c: Similarly.
5088
5089 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
5090
5091         * config/mips/mips-protos.h (mips_sign_extend): Declare.
5092         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
5093         (TARGET_SWITCHES): Remove debugh.
5094         (ISA_HAS_TRUNC_W): New macro.
5095         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
5096         (PREDICATE_CODES): Remove se_nonimmediate_operand.
5097         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
5098         any SImode move_operand.
5099         (se_nonimmediate_operand): Remove.
5100         (mips_sign_extend): New.
5101         (mips_move_2words): Use it for sign-extended source operands.
5102         (override_options): Allow integers to be put into single FPRs.
5103         (mips_secondary_reload_class): Handle integers in float registers.
5104         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
5105         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
5106         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
5107         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
5108         (fix_truncdfdi2): Provide only a single alternative, in which the
5109         integer is in a float register.  Depend on TARGET_FLOAT64 rather
5110         than TARGET_64BIT.
5111         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
5112         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
5113         (movdi_internal2): Don't allow the source operand to be sign-extended.
5114         Add alternatives for float registers.
5115         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
5116         allows sign-extension.
5117         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
5118         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
5119         float registers.  Remove TARGET_DEBUG_H_MODE test.
5120         (movhi_internal1): Rename to movhi_internal.  Don't check
5121         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
5122         (movqi_internal1): Rename to movqi_internal and remove
5123         TARGET_DEBUG_H_MODE dependency.
5124         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
5125
5126 2002-07-16  Jim Wilson  <wilson@redhat.com>
5127
5128         * toplev.c (lang_dependent_init): Create function context for
5129         init_expr_once.
5130
5131 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
5132
5133         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
5134         --gc-sections if -r.
5135         * config/cris/cris.h: Ditto.
5136
5137 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
5138
5139         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
5140         the comparison directly gives a mask suppress addition when cf is
5141         zero by complementing the mask.
5142
5143 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
5144
5145         * Makefile.in: Delete references to enquire.
5146         * enquire.c: Move to contrib.
5147
5148 2002-07-16  Stan Shebs  <shebs@apple.com>
5149
5150         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
5151         config/rs6000/darwin.h.
5152         (ASM_OUTPUT_SKIP): Ditto.
5153         (TEXT_SECTION_ASM_OP): Ditto.
5154         (DATA_SECTION_ASM_OP): Ditto.
5155         (ASM_APP_ON): Define.
5156         (ASM_APP_OFF): Define.
5157         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
5158         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
5159
5160         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
5161         (machopic_function_base_name): Declare result to be const.
5162         (machopic_non_lazy_ptr_name): Ditto.
5163         (machopic_stub_name): Ditto.
5164         * config/darwin-protos.h: Ditto for the prototypes.
5165
5166 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
5167
5168         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
5169
5170 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
5171
5172         * i386.md (prefetch): Fix for 64bit mode.
5173         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5174
5175 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
5176
5177         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
5178         * i386.c (x86_machine_dependent_reorg): New function.
5179         * i386-protos.h (x86_machine_dependent_reorg): Declare.
5180
5181 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
5182
5183         * builtins.c (std_expand_builtin_va_start): Remove unused
5184         first argument.
5185         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
5186         std_expand_builtin_va_start with just two arguments.
5187         * expr.h: Update prototypes.
5188
5189         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
5190         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
5191         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
5192         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
5193         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
5194         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
5195         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
5196         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
5197         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
5198         argument from all implementations of EXPAND_BUILTIN_VA_START
5199         and all uses of std_expand_builtin_va_start.
5200
5201 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
5202
5203         * regrename.c (copy_value): Don't record high part copies.
5204
5205 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
5206
5207         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
5208         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
5209         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
5210
5211 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
5212
5213         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
5214
5215         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
5216         into addsi3 using register class "x" and "y".
5217
5218         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
5219         "earlyclobber" constraint modifier for some alternative.
5220
5221         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
5222         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
5223         unordered.
5224         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
5225
5226         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
5227         (TARGET_SWITCHES): Add -mieee-compare option.
5228         (OVERRIDE_OPTIONS): 32332 is a subset of
5229         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
5230         (TARGET_SWITCHES): Fix description of bitfield option.
5231         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
5232         -mieee-compare option. Remove 32332 flag.
5233
5234 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
5235
5236         * explow.c (convert_memory_address): Remove special handling
5237         when POINTERS_EXTEND_UNSIGNED < 0.
5238         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5239         (movedi_symbolic): Fix typo.
5240         (load_fptr): Remove mode restriction so it works for SI and DI.
5241         (load_fptr_internal1): Ditto.
5242         (load_gprel): Ditto.
5243         (load_symptr_internal1): Ditto.
5244         (call_pic): Ditto.
5245         * config/ia64.c (call_operand): Modify mode check.
5246         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
5247         (ia64_expand_move): Ditto.
5248         (ia64_assemble_integer): Handle SImode function pointers.
5249         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
5250         (ia64_expand_op_and_fetch): Ditto.
5251         (ia64_expand_compare_and_swap): Ditto.
5252         (ia64_expand_lock_test_and_set): Ditto.
5253         (ia64_expand_lock_release): Ditto.
5254
5255 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5256
5257         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
5258
5259 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5260             Richard Earnshaw  <rearnsha@arm.com>
5261
5262         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
5263         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
5264
5265 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
5266
5267         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
5268         understands to be a memory clobber.
5269         * arm.c (arm_expand_prologue): Use it.
5270
5271 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
5272
5273         * ra-rewrite.c: #include reload.h, insn-config.h
5274         * ra-build.c: #include reload.h
5275         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
5276         depend on reload.h, insn-config.h.
5277
5278 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
5279
5280         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
5281         the same size as a word.
5282
5283         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
5284         BYTES_BIG_ENDIAN into account.
5285
5286 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5287
5288         * i386.md (prefetch): Fix for 64bit mode.
5289         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5290
5291         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
5292
5293 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5294
5295         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
5296
5297 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
5298
5299         * ginclude/varargs.h: Replace with stub which issues #error.
5300         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
5301         __builtin_va_start.
5302
5303         * builtins.def (BUILT_IN_VARARGS_START): Delete.
5304         (BUILT_IN_VA_START): New.
5305         * builtins.c (expand_builtin_va_start): Eliminate first
5306         argument and code to implement pre-ISO varargs.
5307         (std_expand_builtin_va_start): Ignore first argument; it is
5308         always 1.
5309         (expand_builtin): Handle BUILT_IN_VA_START and
5310         BUILT_IN_STDARG_START identically.  Delete
5311         BUILT_IN_VARARGS_START case.
5312
5313         * function.c (assign_parms): Delete hide_last_arg and all
5314         its uses.
5315         (mark_varargs): Delete function.
5316         * function.h (struct function): Delete 'varargs' bit.
5317         (current_function_varargs): Delete macro.
5318         * tree.h: Don't declare mark_varargs.
5319
5320         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
5321         (c_expand_body): Don't call mark_varargs.
5322         * c-objc-common.c: Handle BUILT_IN_VA_START and
5323         BUILT_IN_STDARG_START identically.  Delete
5324         BUILT_IN_VARARGS_START case.
5325         * c-tree.h: Don't declare c_mark_varargs.
5326         * c-parse.in: Remove grammar rules for '&...' (which has been
5327         commented out since before 2.7.2) and for '...' in K+R
5328         argument declarations.
5329
5330         * builtins.c, function.c, integrate.c, sibcall.c,
5331         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
5332         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
5333         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
5334         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
5335         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
5336         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
5337         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
5338         config/stormy16/stormy16.c: Delete all references to
5339         current_function_varargs, and code predicated on that flag.
5340
5341         * config/alpha/alpha.c (alpha_va_start),
5342         config/arc/arc.c (arc_va_start),
5343         config/i386/i386.c (ix86_va_start),
5344         config/mips/mips.c (mips_va_start),
5345         config/mn10300/mn10300.c (mn10300_va_start),
5346         config/rs6000/rs6000.c (rs6000_va_start),
5347         config/s390/s390.c (s390_va_start),
5348         config/sh/sh.c (sh_va_start),
5349         Ignore first argument; it is always 1.
5350
5351         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
5352         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
5353         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
5354         Delete m68hc11_va_start.
5355         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
5356         No need to define EXPAND_BUILTIN_VA_START.
5357
5358         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
5359         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
5360
5361 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
5362
5363         PR optimization/7153
5364         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
5365         dies in more than one insn.
5366
5367 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
5368
5369         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
5370
5371 2002-07-15  Michael Matz  <matz@suse.de>,
5372             Daniel Berlin  <dberlin@dberlin.org>,
5373             Denis Chertykov  <denisc@overta.ru>
5374
5375         Add a new register allocator.
5376
5377         * ra.c: New file.
5378         * ra.h: New file.
5379         * ra-build.c: New file.
5380         * ra-colorize.c: New file.
5381         * ra-debug.c: New file.
5382         * ra-rewrite.c: New file.
5383
5384         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
5385         (ra-rewrite.o): New .o files for libbackend.a.
5386         (GTFILES): Add basic-block.h.
5387
5388         * toplev.c (flag_new_regalloc): New.
5389         (f_options): New option "new-ra".
5390         (rest_of_compilation): Call initialize_uninitialized_subregs()
5391         only for the old allocator.  If flag_new_regalloc is set, call
5392         new allocator, instead of local_alloc(), global_alloc() and
5393         friends.
5394
5395         * doc/invoke.texi: Document -fnew-ra.
5396         * basic-block.h (FOR_ALL_BB): New.
5397         * config/rs6000/rs6000.c (print_operand): Write small constants
5398         as @l+80.
5399
5400         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
5401         (df_reg_table_realloc): Make size at least as large as max_reg_num().
5402         (df_insn_table_realloc): Size argument now is absolute, not relative.
5403         Changed all callers.
5404
5405         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
5406         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
5407
5408         2002-06-20  Michael Matz  <matz@suse.de>
5409
5410         * df.h (struct ref.id): Make unsigned.
5411         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
5412
5413         2002-06-13  Michael Matz  <matz@suse.de>
5414
5415         * df.h (DF_REF_MODE_CHANGE): New flag.
5416         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
5417         involving subregs with invalid mode changes, when
5418         CLASS_CANNOT_CHANGE_MODE is defined.
5419
5420         2002-05-07  Michael Matz  <matz@suse.de>
5421
5422         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
5423
5424         2002-05-03  Michael Matz  <matz@suse.de>
5425
5426         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
5427
5428         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
5429
5430         * regclass.c (regclass): Work with all regs which have sets or
5431         refs.
5432         (reg_scan_mark_refs): Count regs inside (clobber ...).
5433
5434         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
5435
5436         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
5437         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
5438         add new refs.
5439         (df_bb_refs_update): Don't clear insns_modified here, ...
5440         (df_analyse): ... but here.
5441
5442         * sbitmap.c (dump_sbitmap_file): New.
5443         (debug_sbitmap): Use it.
5444
5445         * sbitmap.h (dump_sbitmap_file): Add prototype.
5446
5447         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
5448
5449         * df.c (df_insn_modify): Grow the UID table if necessary, rather
5450         than assume all emits go through df_insns_modify.
5451
5452         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
5453
5454         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
5455         increase REG_N_REFS (like flow does), so that regclass doesn't
5456         think a reg is useless, and thus, not calculate a class, when it
5457         really should have.
5458
5459         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
5460
5461         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
5462         dataflow analysis.
5463
5464 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
5465
5466         PR middle-end/7245
5467         * config/i386/i386.c (const_int_1_31_operand): New.
5468         * config/i386/i386.h (PREDICATE_CODES): Add it.
5469         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
5470         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
5471         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
5472
5473 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
5474
5475         PR target/7282
5476         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
5477         (floatunssidf2): Likewise.
5478         (floatsidf_ppc64): New insn_and_split.
5479         (floatunssidf_ppc64): Likewise.
5480
5481 2002-07-14  Andreas Jaeger  <aj@suse.de>
5482
5483         * config.gcc (sh64): Remove unused
5484         target_requires_64bit_host_wide_int.
5485
5486 2002-07-12  Roger Sayle  <roger@eyesopen.com>
5487
5488         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
5489         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
5490         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
5491         whether clear_by_pieces should be used to clear storage.
5492         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
5493
5494         * doc/tm.texi: Document these two new target macros.
5495
5496 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
5497
5498         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
5499         the scratch register.
5500         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
5501         of it, forbid reload to use it.
5502
5503 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5504
5505         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
5506         usage on 64-bit hosts, return value was truncated to 32 bits.
5507
5508 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
5509
5510         * simplify-rtx.c (simplify_subreg): Handle floating point
5511         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
5512         the element mode is requested, compute a subreg with an
5513         integer mode of the same size as the element mode first.
5514
5515 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5516
5517         * combine.c (try_combine): When converting a paradoxical subreg
5518         to an extension, take LOAD_EXTEND_OP into account.
5519
5520 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5521
5522         * config.gcc (mips-sgi-irix6*o32): New configuration.
5523
5524         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
5525         configurations.
5526         * configure: Regenerate.
5527
5528         * config/mips/iris6-o32-as.h: New file.
5529         * config/mips/iris6-o32.h: New file.
5530
5531         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
5532         (NM_FLAGS): Define.
5533         (HAVE_AS_SHF_MERGE): Undefine.
5534
5535         * config/mips/t-iris5-as: New file.
5536         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5537
5538         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
5539         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
5540         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
5541         dp-bit.c, fp-bit.c): Move ...
5542         * config/mips/t-iris5-6: ... here.
5543         New file, shared by IRIX 5 and IRIX 6.
5544         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
5545         mips-sgi-irix5*): Use it.
5546
5547         * config/mips/iris6.h: Remove duplicate comment.
5548
5549         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
5550         !TARGET_IRIX6]: Define.
5551         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
5552
5553         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
5554
5555 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5556
5557         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
5558         and delete code to force constant to register.
5559         * pa-protos.h (adddi3_operand): Add prototype.
5560         * pa.c (adddi3_operand): New function.
5561
5562 2002-07-11  Roger Sayle  <roger@eyesopen.com>
5563
5564         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
5565         non-ANSI builtin functions.
5566
5567 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
5568
5569         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
5570         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
5571         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
5572         (gen_const_vector_0): Use it.
5573
5574 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5575
5576         * pa.md (adddi3): For 32-bit targets, force constants to a register
5577         if they don't fit in an 11-bit immediate.  Change insn predicate to
5578         arith11_operand.  Remove comment.
5579         * pa.c (cint_ok_for_move): Fix comment.
5580         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
5581         targets.
5582
5583 2002-07-11  Tim Josling  <tej@melbpc.org.au>
5584
5585         Remove front end hard coding from gengtype.c.
5586
5587         * Makefile.in
5588         (STAGESTUFF): add gtyp-gen.h
5589         (GTFILES): Remove front end specific files.
5590         (GTFILES_FILES_LANGS): New, from configure..
5591         (GTFILES_FILES_FILES): Likewise.
5592         (GTFILES_LANG_DIR_NAMES): Likewise.
5593         (GTFILES_SRCDIR): Likewise.
5594         (gtyp-gen.h): Build from configure information.
5595         (s-gtype): Remove command line parameters from gengtype.
5596         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
5597         (mostlyclean): Delete files generated by and for gengtype.
5598
5599         * c-config-lang.in: New file.
5600
5601         * configure.in (all_gtfiles_files_langs): New. Accumulate files
5602         for each language.
5603         (all_gtfiles_files_files): New. Accumulate language for each file
5604         accumulated.
5605         (gtfiles): Pick up value for C.
5606         (srcdir): AC-SUBST this variable.
5607         (all_gtfiles_files_langs): AC-SUBST this variable.
5608         (all_gtfiles_files_files): AC-SUBST this variable.
5609
5610         * configure: Regenerate.
5611
5612         * gengtype-lex.l (parse_file): Make parameter const.
5613
5614         * gengtype.c (toplevel): include gtyp-gen.h.
5615         (BASE_FILE_<language> unnamed enum): Delete.
5616         (lang_names): Delete (replaced by gtyp-gen.h)
5617         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
5618         all references.
5619         (NUM_GT_FILES): New.
5620         (NUM_LANG_FILES): New.
5621         (srcdir_len): New.
5622         (NUM_BASE_FILES): Change calculation.
5623         (open_base_files): Change prototype to avoid warning.
5624         (startswith): Delete.
5625         (get_file_basename): Iterate through generated language list not
5626         hard coded list.
5627         (get_base_file_bitmap): Use generated list of files and languages.
5628         (close_output_files): Add prototype to rmove warning.
5629         (main): Iterate through list of generated files from gtyp-gen.h
5630         rather than command line paramaters.  Ignore duplicated file
5631         names.
5632
5633         * gengtype.h (parse_file): Amend prototype for const parameter.
5634
5635         * doc/sourcebuild.texi: Document gtfiles variable.
5636
5637         * doc/gty.texi: Document changes to gtfiles variable for front
5638         ends.
5639
5640         * objc/config-lang.in (gtfiles): Add files needed for objc front
5641         end.
5642
5643 2002-07-10  Roger Sayle  <roger@eyesopen.com>
5644
5645         PR c/2454
5646         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
5647         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
5648
5649 2002-07-10  Roger Sayle  <roger@eyesopen.com>
5650             Zack Weinberg <zack@codesourcery.com>
5651
5652         * builtins.def: Make the argument types of abort and exit
5653         independent of the front-end.
5654
5655 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
5656
5657         * config/rs6000/linux64.h (ASM_SPEC): Define.
5658
5659 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
5660
5661         * config/rs6000/rs6000.c (emit_frame_save): New.
5662         (rs6000_frame_related): Replace reg2 before reg.
5663         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
5664         and eh_return registers.
5665
5666 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
5667
5668         Revert all patches for optimization of Complex .op. Real.
5669         * complex_part_zero_p: Remove
5670         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
5671         with x.
5672         * expand_cmplxdiv_wide: Ditto.
5673         * expand_binop: Ditto.
5674
5675 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5676
5677         * config/avr/avr.md: Fix two 0x80000000 constants to make them
5678         negative also on 64-bit hosts.
5679
5680         Default to -fno-reorder-blocks when optimizing for size.
5681         * config/avr/avr-protos.h (avr_optimization_options): Declare.
5682         * config/avr/avr.c (avr_optimization_options): New function.
5683         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
5684
5685         Optimize returning from simple functions.
5686         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
5687         * config/avr/avr.c (avr_simple_epilogue): New function.
5688         * config/avr/avr.md (return): New insn.
5689
5690 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
5691
5692         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
5693         HAS_INIT_SECTION to protection.
5694
5695 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
5696
5697         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
5698         deprecated.
5699
5700 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
5701
5702         * combine.c (gen_lowpart_for_combine): Handle vector modes.
5703         Supply non-VOID mode to simplify_gen_subreg.
5704
5705 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
5706
5707         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
5708
5709 2002-07-10  Jeffrey A Law  <law@redhat.com>
5710
5711         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
5712         as appropriate.
5713
5714         * mn10200.c (expand_epilogue): Fix test to determine which scratch
5715         register to use.
5716
5717 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
5718
5719         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
5720         Get mode from dest.
5721         If simplify_gen_subreg fails, try next equivalent.
5722
5723 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
5724
5725         * diagnostic.h: #include location.h
5726         (location_t): Move definition to..
5727         * location.h: ... here.  New file.
5728         * tree.h: #include location.h
5729         (DECL_SOURCE_LOCATION): New macro.
5730         (DECL_SOURCE_FILE): Use.
5731         (DECL_SOURCE_LINE): Likewise.
5732         (struct tree_decl): REplace filename and linenum with locus.
5733         * Makefile.in (TREE_H): add location.h
5734         (diagnostic.o): Depends on gt-location.h
5735         (gt-location.h): Depends on s-gtype
5736
5737 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
5738
5739         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
5740         TARGET_OS_CPP_BUILTINS.
5741         * config/rs6000/aix31.h: Likewise.
5742         * config/rs6000/aix41.h: Likewise.
5743         * config/rs6000/aix43.h: Likewise.
5744         * config/rs6000/aix51.h: Likewise.
5745         * config/rs6000/beos.h: Likewise.
5746         * config/rs6000/darwin.h: Likewise.
5747         * config/rs6000/eabi.h: Likewise.
5748         * config/rs6000/eabisim.h: Likewise.
5749         * config/rs6000/linux.h: Likewise.
5750         * config/rs6000/linux64.h: Likewise.
5751         * config/rs6000/lynx.h: Likewise.
5752         * config/rs6000/mach.h: Likewise.
5753         * config/rs6000/rtems.h: Likewise.
5754         * config/rs6000/sysv4.h: Likewise.
5755         * config/rs6000/vxppc.h: Likewise.
5756
5757 2002-07-09 Devang Patel <dpatel@apple.com>
5758         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
5759         Do not allow ObjC objects as a parameter type for Objective-C methods.
5760         My previous patch restricted  'struct' also.
5761
5762 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
5763
5764         * cpperror.c (cpp_error): Default to directive_line within
5765         directives here.
5766         * cppexp.c (cpp_interpret_integer): Only use traditional
5767         number semantics in directives.
5768         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
5769         (do_include_common): Similarly.
5770         * cpptrad.c (scan_out_logical_line): Implement accurate
5771         quoting of <> in #include.
5772         * doc/cpp.texi: Update.
5773
5774 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
5775                           J"orn Rennecke <joern.rennecke@superh.com>
5776
5777         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
5778         * sh.md (attribute issues): Replace with:
5779         (attribute pipe_model).  All users changed.
5780         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
5781         All users changed.
5782         (function units sh5issue, sh5fds): New.
5783         (attribute is_mac_media): New.
5784         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
5785         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
5786         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
5787         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
5788         (call_media, call_value_media, sibcall_media): Likewise.
5789         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
5790         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
5791         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
5792         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
5793         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
5794         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
5795         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
5796         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
5797         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
5798         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
5799         (truncdfsf2_media): Likewise.
5800         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
5801         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
5802
5803 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5804
5805         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
5806         * sh.c (general_extend_operand, inqhi_operand): New functions.
5807         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
5808         alternatives using 'N' modifier.  Add type.
5809         (adddi3z_media): Likewise.  Enable generator function generation.
5810         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
5811         exact predicates / constraints.  Add type.
5812         (subsi3): Allow 0 for SHMEDIA.
5813         (udivsi3_i4_media): Use match_operand for input values
5814         rather than hard registers.
5815         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5816         unnecessarily through hard registers.  Keep copies of pseudo
5817         registers outside of the libcall sequence.
5818         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
5819         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
5820         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
5821         (extendhidi2, extendqidi2): Likewise.
5822         (andsi3_compact): Name.
5823         (andcdi3): Enable generator function generation.
5824         (zero_extendhisi2, zero_extendqisi2): Rename to
5825         (zero_extendhisi2_compact, zero_extendqisi2_compact).
5826         (extendhisi2, extendqisi2): Rename to
5827         (extendhisi2_compact, extendqisi2_compact).
5828         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
5829         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
5830         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
5831         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
5832         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
5833         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
5834         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
5835         (shmedia32_initialize_trampoline_big): Likewise.
5836         (shmedia32_initialize_trampoline_little): Likewise.
5837         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
5838         (negdi2): Remove spurious T clobber.
5839         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
5840         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
5841         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
5842         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
5843         (ic_invalidate_line_media): Write back data cache before invalidating
5844         instruction cache.  Add type.
5845         (movsf_media): Sign-extend when the destination is a general
5846         purpose register.  Add type.
5847         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
5848         (casesi_worker_0+1): Only increment ref count for proper label.
5849         (casesi_worker_0+2): Likewise.
5850
5851 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
5852
5853         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
5854
5855 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
5856
5857         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
5858         from Pmode to ptr_mode.
5859         (get_exception_pointer): Ditto.
5860         (connect_post_landing_pads): Ditto.
5861         (dw2_build_landing_pads): Ditto.
5862
5863 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
5864         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
5865         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
5866         (handle_pragma_redefine_extname): Change to use new function.
5867
5868 2002-07-08  Roger Sayle  <roger@eyesopen.com>
5869
5870         * combine.c (combine_simplify_rtx): Add an explicit cast
5871         to avoid signed/unsigned comparison warning.
5872         (simplify_if_then_else): Likewise.
5873         (extended_count): Likewise.
5874         (simplify_shift_const): Likewise.
5875         (simplify_comparison): Likewise.
5876
5877 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
5878
5879         * config/mips/mips.md: Add imadd type.  Update scheduler description
5880         to use imadd as well as imul.
5881         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
5882         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
5883         (*mul_sub_si): Likewise for first alternative.  Change second
5884         alternative from imul to multi.
5885
5886 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
5887
5888         * c-common.c (c_common_post_options): Update prototype;
5889         don't init backends if preprocessing only.
5890         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
5891         * langhooks.h (struct lang_hooks): Update post_options to
5892         return a boolean.
5893         * toplev.c (parse_options_and_default_flags, do_compile,
5894         lang_independent_init): Update prototypes.  Allow the
5895         front end to specify that there is no need to initialize
5896         the back end.
5897         (general_init): Move call to hex_init here...
5898         (toplev_main): ...from here.  Pass flag for back end init
5899         suppression.
5900
5901 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
5902
5903         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
5904         (PREDICATE_CODES): Add entries for equality_comparison_operator,
5905         greater_comparison_operator and less_comparison_operator.
5906         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
5907         more operators.
5908         (equality_comparison_operator): New function.
5909         (greater_comparison_operator, less_comparison_operator): Likewise.
5910         * sh.md (beq_media_i): Disable generator function generation.
5911         Use match_operator to handle a whole class of comparisons.  Add
5912         modifier in output template to provide branch prediction.  Add type.
5913         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
5914         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
5915         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
5916         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
5917
5918 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
5919
5920         Emit MMIX function prologue and epilogue as rtl.
5921         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
5922         not unprototyped get_hard_reg_initial_val.
5923         ("call_value", "nonlocal_goto_receiver"): Ditto.
5924         ("return"): Make define_expand.  Move real insn to...
5925         ("*expanded_return"): New pattern.
5926         ("prologue", "epilogue"): New define_expands.
5927         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
5928         (struct machine_function): New member in_prologue.
5929         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
5930         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
5931         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
5932         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
5933         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
5934         (LOCAL_REGNO): Define.  Adjust comment.
5935         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
5936         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
5937         leaf_function_p.
5938         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
5939         the prologue.
5940         (mmix_target_asm_function_prologue): Make static.  Just mark that
5941         the prologue is being emitted.  Move guts to...
5942         (mmix_expand_prologue): New function.  Adjust for emitting
5943         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
5944         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
5945         \n.  Move guts to...
5946         (mmix_expand_epilogue): New function.  Adjust for emitting
5947         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
5948         (mmix_target_asm_function_end_prologue): Mark that the prologue
5949         has ended.
5950         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
5951         (mmix_conditional_register_usage): Improve comments.
5952         (mmix_local_regno): New function.
5953         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
5954         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
5955         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
5956         (mmix_get_hard_reg_initial_val): Ditto.
5957
5958 2002-07-06  Andreas Jaeger  <aj@suse.de>
5959
5960         * toplev.c (set_fast_math_flags): Don't use ISO C style function
5961         definitions.
5962         * gengtype.c (open_base_files): Likewise.
5963         (close_output_files): Likewise.
5964         * tracer.c (find_best_predecessor): Likewise.
5965         (find_best_successor): Likewise.
5966         (ignore_bb_p): Likewise.
5967
5968 2002-07-05  Roger Sayle  <roger@eyesopen.com>
5969
5970         PR c++/7099
5971         * builtin-attrs.def: Define new attribute lists for use in
5972         builtins.def.
5973         * builtins.def [DEF_BUILTIN]: Modify to take an additional
5974         ATTRS argument, an enumerated value defined in builtin-attrs.def
5975         that represents the attribute list for the builtins.  Modify
5976         all builtin functions to pass an appropriate attribute list.
5977         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
5978         their required noreturn attributes.
5979         * tree.h (enum_builtin_function): Ignore the additional parameter
5980         to DEF_BUILTIN.
5981         * builtins.c (built_in_names): Likewise.
5982         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
5983         argument with a tree representing the functions attribute list.
5984         Pass this "attrs" argument to builtin_function.  No longer handle
5985         the noreturn_p processing manually.
5986         (built_in_attributes): Move the definitions from builtin-attrs.def
5987         before c_common_nodes_and_builtins.
5988         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
5989         DEF_BUILTIN, passing it to both builtin_function and the changed
5990         builtin_function_2.
5991
5992         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
5993         __builtin__exit and __builtin__Exit.
5994
5995 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
5996
5997         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
5998         QI mode registers in soft registers.
5999         ("zero_extendqihi2"): Do not take into account soft registers
6000         for register allocation (use '*' constraint).
6001
6002 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6003
6004         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
6005         it is dead.
6006         ("*ashrsi3"): Likewise.
6007         ("*lshrsi3"): Likewise.
6008
6009 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
6010
6011         * genautomata.c (output_max_insn_queue_index_def): Take latencies
6012         into account.
6013
6014 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6015
6016         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
6017         address computation and memory moves.
6018
6019 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
6020
6021         PR c++/6706
6022         * dwarfout.c (output_reg_number): Fix warning message.
6023         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
6024         before using it.
6025
6026 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6027
6028         * gcc/gcc.c (asm_debug): Move initialization ...
6029         (init_spec): ... here.
6030
6031 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6032
6033         * c-parse.in (extdef): Append ';'.
6034         (old_style_parm_decls): Append ';'.
6035
6036 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6037
6038         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
6039         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
6040         to gcc_cv_as_gstabs_flag.
6041         * configure: Rebuilt.
6042
6043 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
6044
6045         * ggc.h (ggc_add_root): Document as obsolete.
6046
6047 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
6048
6049         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
6050         (mshflo_w): Likewise.
6051
6052 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6053
6054         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
6055         vector mode subregs of constants to finding integer mode
6056         subregs of constants.
6057         * cse.c (cse_insn): Use simplify_gen_subreg.
6058         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
6059         From a vector mode expression of different size than the
6060         target mode.
6061
6062 2002-07-03  Eric Christopher  <echristo@redhat.com>
6063
6064         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
6065         * config/mips/mips.h: Remove deprecated -m<processor> options
6066         and cc1_cpu_spec associated.
6067         (CONSTANT_ADDRESS_P): Fix last patch.
6068         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
6069         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
6070         sunge_sf): Remove.
6071
6072 2002-07-03  Stan Shebs  <shebs@apple.com>
6073
6074         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
6075         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
6076         (CPP_SPEC): Remove insertion of APPLE_CC definition.
6077
6078 2002-07-03  Roger Sayle  <roger@eyesopen.com>
6079
6080         * combine.c (struct_undo): Change types of recorded substitutions
6081         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
6082         (do_SUBST_INT): Change types of the substitution from unsigned int
6083         to int, to avoid compilation warning from SUBST_INT's only caller.
6084
6085         (make_extraction): Add cast to avoid compilation warning.
6086         (force_to_mode): Remove cast to avoid compilation warning.
6087
6088 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
6089             Jeff Law  <law@redhat.com>
6090
6091         * i386.md (length_immediate attribute): Fix typo.
6092         (length_address attribute): Likewise.
6093         (modrm attribute): Set it to 0 for immediate call instructions.
6094         (jcc_1 pattern): Set modrm attribute to 0.
6095         (jcc_2 pattern ): Likewise.
6096         (jump pattern): Likewise.
6097         (doloop_end_internal pattern): Explicitly set length.
6098         (leave pattern): Fix typo.
6099         (leave_rex64 pattern): Likewise.
6100
6101 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
6102
6103         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
6104         in FPR as preference.
6105         (fctiwz): Same.
6106         (floatdidf2, fix_truncdfdi2): Same.
6107         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
6108         (floatditf2): Same.
6109         (floatsitf2, fix_trunctfsi2): SImode in GPR.
6110         (ctrdi): Remove FPR alternative and splitter.
6111
6112 2002-07-03  Will Cohen  <wcohen@redhat.com>
6113
6114         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
6115
6116 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
6117
6118         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
6119         than UNITS_PER_WORD, unless this is little endian and the first unit
6120         in this word.  Let extract_bit_field decide how to load an element.
6121         Force arguments to matching mode.
6122         (expand_vector_unop): Likewise.
6123
6124         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
6125         consist of word_mode elements.
6126         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
6127         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
6128         (build_unary_op): Allow vector types for BIT_NOT_EPR.
6129         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
6130         CONST_VECTOR.
6131         * optabs.c (expand_vector_binop): Try to perform operation in
6132         smaller vector modes with same inner size.  Add handling of AND, IOR
6133         and XOR.  Reject expansion to inner-mode sized scalars when using
6134         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
6135         (expand_vector_unop): Try to perform operation in smaller vector
6136         modes with same inner size.  Add handling of one's complement.
6137         When there is no vector negate operation, try a vector subtract
6138         operation.  Use simplify_gen_subreg on constants.
6139         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
6140         constants into smaller vectors with same inner mode, and to
6141         integer CONST_DOUBLEs.
6142
6143 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6144
6145         * c-parse.in (parsing_iso_function_signature): New variable.
6146         (extdef_1): New, copied from...
6147         (extdef): ... here.  Reset parsing_iso_function_signature.
6148         (old_style_parm_decls):  Reset parsing_iso_function_signature.
6149         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
6150         Warn about ISO C style function definitions.
6151         (nested_function, notype_nested_function): Reset
6152         parsing_iso_function_signature.
6153         (parmlist_2): Set parsing_iso_function_signature.
6154
6155         * doc/invoke.texi (-Wtraditional): Document new behavior.
6156
6157 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6158
6159         * config.gcc (mips*el-*-*): Use tm_defines to set
6160         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
6161         * config/mips/little.h: Remove.
6162
6163 2002-07-02 Devang Patel <dpatel@apple.com>
6164
6165         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
6166         object as parameter. Prevent something like 'NSObject' to be
6167         used as the type for a method argument.
6168
6169 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
6170
6171         * cpptrad.c: Update comment.
6172
6173 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
6174
6175         * doc/cpp.texi: Update for traditional preprocessing changes.
6176         * goc/cppopts.texi: Similarly.
6177
6178 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
6179
6180         * c-parse.in (designator): Enable designated initializers if ObjC.
6181         (objcmessageexpr): Remove references to objc_receiver_context.
6182         * objc/objc-act.h (objc_receiver_context): Remove decl.
6183         * objc/objc-act.c (objc_receiver_context): Remove.
6184         (lookup_objc_ivar): Test objc_method_context instead of
6185         objc_receiver_context.
6186
6187 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
6188
6189         * sh.c (print_operand, case 'N'): Allow zero vector.
6190         (arith_reg_or_0_operand): Likewise.
6191         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
6192         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
6193         IOR, XOR, PLUS and SET and take their respective constant
6194         ranges into account.
6195         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
6196         * sh.md (subdi3, subdi3_media): Allow zero operand.
6197         (movv8qi_i+3): Only vector that is not split is the zero vector.
6198         Fix operand 3 to simplify_subreg.
6199         (movv2si_i): Split alternative 1.
6200         (mshfhi_l_di_rev+1): New splitter.
6201
6202 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
6203
6204         PR preprocessor/7029
6205         * cppinit.c (cpp_handle_option):  Suppress warnings with an
6206         implicit "-w" for "-M" and "-MM".
6207         * doc/cppopts.texi: Update.
6208
6209 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6210
6211         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
6212         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
6213         builtin_function.
6214
6215 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
6216
6217         * README.Portability: Fix typos.
6218
6219 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
6220
6221         PR target/7177
6222         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
6223         of indirections for register inside sign-extended mem part.
6224
6225 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6226
6227         * tree.h:  Modify builtin_function interface to take an extra
6228         argument ATTRS, which is a tree representing an attribute list.
6229
6230         * c-decl.c (builtin_function): Accept additional parameter.
6231         * objc/objc-act.c (builtin_function): Likewise.
6232         * f/com.c (builtin_function): Likewise.
6233         * java/decl.c (builtin_function): Likewise.
6234         * ada/utils.c (builtin_function): Likewise.
6235         * cp/decl.c (builtin_function): Likewise.
6236         (builtin_function_1): Likewise.
6237
6238         * c-common.c (c_common_nodes_and_builtins): Pass an additional
6239         NULL_TREE argument to builtin_function.  (builtin_function_2):
6240         Likewise.
6241         * cp/call.c (build_java_interface_fn_ref): Likewise.
6242         * objc/objc-act.c (synth_module_prologue): Likewise.
6243         * java/decl.c (java_init_decl_processing): Likewise.
6244         * f/com.c (ffe_com_init_0): Likewise.
6245
6246         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
6247         NULL_TREE argument to builtin_function.
6248         * config/arm/arm.c (def_builtin): Likewise.
6249         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
6250         * config/i386/i386.c (def_builtin): Likewise.
6251         * config/ia64/ia64.c (def_builtin): Likewise.
6252         * config/rs6000/rs6000.c (def_builtin): Likewise.
6253
6254 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
6255
6256         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
6257         * config/mips/t-isa3264: Likewise.
6258         * config/mmix/t-mmix: Likewise.
6259
6260 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6261
6262         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
6263
6264 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6265
6266         PR opt/4046
6267         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
6268         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
6269         B are truth values.
6270
6271 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6272
6273         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
6274
6275 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
6276
6277         * README.Portability (Function prototypes): Give an example of
6278         declaring and defining a function with no arguments.
6279
6280         * README.Portability (Function prototypes): Document new
6281         variable-argument function macros.
6282
6283 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
6284
6285         * sh.c (langhooks.h): Include.
6286         (sh_init_builtins, sh_media_init_builtins): New functions.
6287         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
6288         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
6289         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
6290         (builtin_description): New struct tag.
6291         (signature_args, bdesc): New arrays.
6292         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
6293         (print_operand): Add 'N' modifier.
6294         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
6295         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
6296         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
6297         (CONST_COSTS): Add special case for SHmedia AND.
6298         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
6299         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
6300         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
6301         target_operand can also be const or unspec.
6302         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
6303         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
6304         (attribute type): Add new types.
6305         (anddi3): Add splitter.
6306         (movdi_const_16bit+1): Add code to handle vector constants and
6307         bitmasks efficiently.
6308         (shori_media): Have generator function made.
6309         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
6310         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
6311         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
6312         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
6313         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
6314         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
6315         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
6316         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
6317         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
6318         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
6319         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
6320         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
6321         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
6322         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
6323         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
6324         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
6325         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
6326         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
6327         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
6328         (ftrv): Likewise.
6329
6330         (fpu_switch+1, fpu_switch+2): Remove constraint.
6331
6332 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
6333
6334         * tree.c (build_function_type_list): Update function comment.
6335         Rename first argument to return_type.
6336
6337 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
6338
6339         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
6340         tradcif.y and related files.
6341
6342 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
6343
6344         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
6345
6346 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6347
6348         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
6349
6350 2002-06-30  Devang Patel  <dpatel@apple.com>
6351
6352         * objc/objc-act.c (finish_file): Avoid finish_objc() if
6353         -fsyntax-only.
6354
6355 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
6356                           Frank Ch. Eigler  <fche@redhat.com>
6357                           Matthew Green  <mrg@redhat.com>
6358                           Richard Henderson <rtl@redhat.com>
6359                           Dave Hudson  <dave.hudson@ubicom.com>
6360                           Jeff Johnston  <jjohnstn@redhat.com>
6361                           Alan Lehotsky <apl@alum.mit.edu>
6362                           Bernd Schmidt  <bernds@redhat.com>
6363                           Graham Stott  <grahams@redhat.com>
6364
6365         * doc/extend.texi: Add ip2k port to description of attribute
6366         naked.
6367         * doc/install.texi (Specific): Add ip2k description.
6368         * doc/install-old.texi (Configurations): Add ip2k to possible
6369         cpu types.
6370         * doc/md.texi: Document ip2k constraints.
6371         * config/ip2k/crt0.S: New file.
6372         * config/ip2k/ip2k-protos.h: New file.
6373         * config/ip2k/ip2k.c: New file.
6374         * config/ip2k/ip2k.h: New file.
6375         * config/ip2k/ip2k.md: New file.
6376         * config/ip2k/libgcc.S: New file.
6377         * config/ip2k/t-ip2k: New file.
6378
6379 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
6380
6381         * config/mmix/mmix.md ("return"): New pattern.
6382         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
6383         (TARGET_USE_RETURN_INSN): New macros.
6384         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
6385         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
6386         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
6387         (MMIX_POP_ARGUMENT): New macro.
6388         (mmix_target_asm_function_prologue): When no epilogue is executed,
6389         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
6390         (mmix_print_operand) <case '.'>: New case.
6391         (mmix_print_operand_punct_valid_p): Match '.'.
6392         (mmix_use_simple_return): New function.
6393         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
6394         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
6395         -msingle-exit, -mno-single-exit.
6396         (MMIX Options): Ditto.
6397
6398 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
6399
6400         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
6401
6402 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6403
6404         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
6405
6406 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
6407
6408         * unroll.c (loop_iterations): Handle EQ loops.
6409
6410 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
6411
6412         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
6413         constraint in define_expand, not splitter.
6414         Formatting.
6415
6416 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
6417
6418         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
6419         build_function_type_list instead of build_function_type.
6420
6421         * config/ia64/ia64.c (ia64_init_builtins): Same.
6422
6423         * config/alpha/alpha.c (alpha_init_builtins): Same.
6424
6425         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
6426
6427         * config/arm/arm.c (arm_init_builtins): Same.
6428
6429         * tree.h: Add build_function_type_list prototype.
6430
6431         * tree.c (build_function_type_list): New.
6432
6433 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6434
6435         * collect2.c (scan_prog_file): Fix typo in message.
6436
6437 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
6438
6439         * fold-cont.c: Remove unused CHARMASK.
6440
6441 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
6442
6443         PR preprocessor/7150
6444         * cppmain.c (scan_translation_unit_trad): Simplify.
6445         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
6446
6447 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6448
6449         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
6450         Don't use CPP_PREDEFINES.
6451         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
6452         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
6453         * config/i386/djgpp.h, config/i386/i386-coff.h,
6454         config/i386/i386-interix.h, config/i386/i386-interix3.h,
6455         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6456         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
6457         config/i386/uwin.h: Similarly.
6458
6459 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6460
6461         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
6462         flag_inline_trees to enable inlining.
6463
6464 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
6465
6466         * configure.in (gcc_gxx_include_dir):  Change to match versioned
6467         C++ headers if --enable-version-specific-runtime-libs is used.
6468         * configure:  Regenerate.
6469
6470 2002-06-28  Jan Hubicka  <jh@suse.cz>
6471
6472         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
6473
6474 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
6475
6476         * combine.c (combine_simplify_rtx): Pass the mode of the
6477         shift count, not the shift operation when trying to simplify
6478         a shift on a SHIFT_COUNT_TRUNCATED target.
6479
6480 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6481
6482         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
6483         avoid the auto increment addressing modes.
6484         ("*subsi3"): Likewise.
6485         (split for add/sub on address): For 68HC12 push the value on
6486         the stack and do the operation with a pop.
6487
6488 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
6489
6490         * cpplib.c (_cpp_handle_directive): Move #define-specific
6491         code to the #define handler...
6492         (do_define): ...here.
6493         (lex_macro_node): No longer a need to check for comments here.
6494
6495 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6496
6497         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
6498         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6499         Declare.
6500         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
6501         do not reorder basic blocks at the end when optimizing for size.
6502
6503 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6504
6505         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
6506         (m68hc11_make_autoinc_notes): New function.
6507         (m68hc11_split_move): Be very cautious when spliting a move with
6508         auto increment/decrement modes because this may result in incompatible
6509         directions; add REG_INC notes to the resulting insn for CSE reg.
6510
6511 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
6512
6513         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
6514         can be a valid address.
6515
6516 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
6517
6518         * config/rs6000/rs6000.c: Remove unusued variables from last
6519         patch.
6520
6521 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6522
6523         Revert:
6524         * config/rs6000/rs6000.c (rs6000_override_options): Move
6525         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
6526
6527 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6528
6529         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
6530         lvx/stv/dst builtins...
6531         (altivec_expand_ld_builtin): ...to here.
6532         (altivec_expand_st_builtin): ...here.
6533         (altivec_expand_dst_builtin): ...and here (respectively).
6534
6535 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
6536
6537         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
6538
6539 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
6540
6541         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
6542         subregs.
6543         * recog.c (general_operand, register_operand): Disallow them.
6544
6545 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
6546
6547         PR preprocessor/7138
6548         * cpplib.c (_cpp_handle_directive): Do traditional
6549         preparation after setting state.angled_headers.
6550         * cpptrad.c (scan_out_logical_line): Fix potential
6551         quote bug.
6552
6553 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6554
6555         * config/rs6000/rs6000.c (rs6000_override_options): Move
6556         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
6557
6558 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
6559
6560         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
6561         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
6562         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
6563
6564 2002-06-27  Roger Sayle  <roger@eyesopen.com>
6565
6566         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
6567         * config/stormy16/stormy16.h: Likewise.
6568
6569         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
6570         with #define.
6571
6572 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6573
6574         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
6575         Hitachi entry.  Make punctuation more consistent.
6576
6577 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
6578
6579         * doc/install.texi: Change ` bit' to `-bit'.
6580         * doc/md.texi: Change `-bits' to `-bit'.
6581         * doc/tm.texi: Change `-bits' to ` bits'.
6582
6583 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
6584
6585         * gcse.c (hoist_code): Rewrite to only get list of dominated
6586         blocks once per BB. Also fix reversed test (by removing need for
6587         the test at all).
6588
6589 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
6590
6591         * cpphash.h (_cpp_set_trad_context): Remove.
6592         * cpplib.c (prepare_directive_trad): Do nothing for #define.
6593         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
6594         * cpptrad.c: Update comments.
6595         (_cpp_read_logical_line_trad): Let scan_logical_line handle
6596         updating the current context.
6597         (scan_logical_line): Update the current context.
6598         (_cpp_create_trad_definition): Similarly.
6599         (_cpp_set_trad_context): Remove.
6600
6601 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
6602
6603         PR preprocessor/7070
6604         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
6605
6606 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
6607
6608         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
6609         config/xtensa/xtensa.c (xtensa_return_addr): New function.
6610         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
6611         config/xtensa/xtensa.md (fix_return_addr): New pattern.
6612
6613 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6614
6615         * mips.c (coprocessor_operand, coprocessor2_operand,
6616         symbolic_operand): Move prototypes from here...
6617         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
6618         symbolic_operand): ...to here.
6619
6620 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6621
6622         * config/sh/crt1.asm: remove _stack label definition
6623         and sentinel value.
6624
6625 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6626
6627         * varasm.c: Include real.h before output.h.
6628
6629 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
6630
6631         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
6632         check for TARGET_ALTIVEC.
6633
6634 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6635
6636         * config.gcc (vax-*-vms*): Make obselete.
6637
6638 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6639
6640         * gcc.c (warn_std): Delete.
6641
6642 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
6643
6644         * doc/extend.texi: Fix formatting of last checkin.
6645
6646 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6647
6648         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
6649         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
6650
6651 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
6652
6653         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6654         discrepancies from motorola's documentation.
6655
6656 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
6657
6658         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
6659         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
6660
6661         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
6662         produce a 32 bit result before normalization, then normalize with a
6663         left shift.  Compute approximative error of 2nd reciprocal
6664         approximation in 2's complement.  Fix mask generation from upper
6665         longword of second divide stage result.
6666         For large divisor, fix shift count used to truncate first stage
6667         divide result; make decision if to adjust upwards based on comparison
6668         of higher parts of normalized values.
6669         (udivdi): Likewise.  Undo normalization of result for large divisor
6670         case.
6671
6672 2002-06-25  David S. Miller  <davem@redhat.com>
6673
6674         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
6675
6676 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
6677
6678         * cpplib.c (do_include_common): Revert to correct line number
6679         if -traditional.
6680         * cpptrad.c (scan_out_logical_line): Treat null directive as
6681         white space.  Invlidate MI optimization for non-whitespace
6682         text outside a directive.
6683
6684 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6685
6686         * Makefile.in (SHELL): Set to @SHELL@.
6687         * fixinc/Makefile.in (SHELL): Likewise.
6688
6689         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
6690         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
6691         initialization.
6692
6693 2002-06-24  Jeff Law <law@redhat.com>
6694
6695         * flow.c (propagate_one_insn): When removing an insn
6696         with a REG_LIBCALL note but not the entire libcall sequence,
6697         delete the associated REG_RETVAL note.
6698
6699 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
6700
6701         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
6702         (udivsi3): Likewise.  Rewrite SH1 implementation.
6703         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
6704         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
6705         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
6706         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
6707         (_moddi3): Likewise.
6708
6709         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
6710
6711         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
6712         arguments into account for stack_regs.
6713
6714 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
6715
6716         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
6717         in examples.
6718
6719 2002-06-24  Art Haas  <ahaas@neosoft.com>
6720
6721         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
6722         * doc/tm.texi (Frame Layout): Likewise.
6723
6724 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
6725
6726         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
6727         Set float_format to i128.
6728
6729 2002-06-24  David S. Miller  <davem@redhat.com>
6730
6731         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
6732         32-bit ABI libfuncs to NULL.
6733
6734         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
6735         strings instead of quoted strings for code blocks.
6736
6737         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
6738         optabs if op1 is const0_rtx.
6739
6740         * Makefile.in (GTFILES): Add basic-block.h
6741         * basic-block.h (label_value_list, tail_recursion_label_list):
6742         Mark with GTY.
6743
6744 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
6745
6746         * cpptrad.c (scan_out_logical_line): Check recursing only when
6747         we know we have a macro invocation in the function-like case.
6748         Only call _cpp_handle_directive if we know we have a good
6749         directive, or we want to reject a bad directive.
6750
6751 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
6752
6753         * doloop.c (doloop_valid_p): Correct comment.
6754         (doloop_modify_runtime <abs_inc != 1>): Simplify.
6755         (doloop_modify_runtime <do-while>): Don't emit code when NE.
6756
6757 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
6758
6759         * config.gcc: Add support for ip2k.
6760
6761 2002-06-23  Jan Hubicka  <jh@suse.cz>
6762             Jeff Law <law@redhat.com>
6763
6764         * function.h (struct emit_status): Clarify potential contents
6765         of regno_reg_rtx array.
6766         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
6767         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
6768
6769         * reg-stack.c (convert_regs_exit): Push the registers to stack in
6770         proper order.
6771
6772 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
6773
6774         PR middle-end/6963
6775         * function.c (assign_stack_temp_for_type): Do not return
6776         the same MEM rtx for multiple uses of a stack slot.
6777
6778 2002-06-22  David S. Miller  <davem@redhat.com>
6779
6780         PR target/6841 target/6770 target/6719
6781         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
6782         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
6783         GENERAL_OR_EXTRA_FP_REGS.
6784
6785 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
6786
6787         * cpptrad.c (struct fun_macro): Add line number.
6788         (scan_out_logical_line): Set it, and use it to report unterminated
6789         macro invocations.
6790
6791 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6792
6793         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
6794         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
6795         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
6796         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
6797         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
6798         REGEXP_ONEOF, check_name): Const-ify.
6799
6800 2002-06-21  Matt Thomas  <matt@3am-software.com>
6801
6802         * config/vax/vax.c (vax_output_function_prologue): Use
6803         REGISTER_PREFIX.  Fix some indentation.
6804         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
6805         (VAX_ISTREAM_SYNC): Define.
6806         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
6807         i-stream sync to the end.
6808         (REGISTER_PREFIX): Define as "".
6809         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
6810
6811 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
6812
6813         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
6814         configurations.
6815
6816 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6817
6818         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
6819         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
6820
6821 2002-06-21  Matt Thomas  <matt@3am-software.com>
6822
6823         * config/vax/netbsd.h: Adjust a comment.
6824         (TARGET_DEFAULT): Redefine as 0.
6825
6826 2002-06-21  Richard Henderson  <rth@redhat.com>
6827
6828         * bb-reorder.c (make_reorder_chain_1): Search harder for the
6829         vax casesi fallthru edge.
6830         * cfglayout.c (cleanup_unconditional_jumps): Use
6831         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
6832         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
6833         block after ADDR_VEC.
6834
6835 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6836
6837         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
6838
6839 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
6840
6841         * cpperror.c (cpp_error): For traditional CPP, default to
6842         diagnostics on pfile->line.
6843         * cpplib.c (prepare_directive_trad): Set line number for
6844         diagnostics for #define too.
6845         * cpptrad.c (skip_whitespace): Skip comments properly.
6846         (_cpp_expansions_different_trad): Initialize quote2.
6847
6848 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
6849
6850         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
6851         * config/mmix/mmix.h: Ditto.
6852         * config/mmix/mmix-protos.h: Ditto.
6853         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
6854         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
6855         comment.  Comment extra CC modes.
6856
6857 2002-06-20 Jan Hubicka  <jh@suse.cz>
6858
6859         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
6860         (scope_to_insns_finalize): Do not call set_block_levels; handle
6861         sequences.
6862         (choose_inner_scope): New.
6863         * rtl.h (choose_inner_scope): Declare.
6864
6865 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6866
6867         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
6868         HOST_WIDE_INT.
6869         * pa.c (pa_asm_output_mi_thunk): Likewise.
6870         (n_deferred_plabels): Change type to size_t.
6871         (output_deferred_plabels, output_call): Use size_t instead of int.
6872
6873 2002-06-20  Richard Henderson  <rth@redhat.com>
6874
6875         PR target/4041
6876         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
6877         pattern and adjust constraints for coldfire.
6878
6879 2002-06-20  Richard Henderson  <rth@redhat.com>
6880
6881         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
6882
6883 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
6884
6885         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
6886
6887 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
6888
6889         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
6890
6891 2002-06-20  Stan Shebs  <shebs@apple.com>
6892
6893         * dominance.c: Include errors.h instead of error.h.
6894
6895 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
6896
6897         * cppexp.c (cpp_interpret_integer): Don't force traditional
6898         numbers to be unsigned.
6899         * cpplib.c (prepare_directive_trad): Set line number for
6900         diagnostics.
6901         * cpptrad.c (scan_out_logical_line): Continue scanning out
6902         at start of buffer.
6903         * gcc.c (trad_capable_cpp): Use cc1 always.
6904
6905 2002-06-20  Jeffrey Law  <law@redhat.com>
6906
6907         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
6908         elimination in leaf functions by default yet.
6909
6910 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
6911
6912         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
6913
6914 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6915
6916         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
6917         multilibs.
6918         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
6919         Fixes PR other/6836.
6920
6921 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
6922                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
6923
6924         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
6925
6926         * basic-block.h: Do not include et-forest.h
6927         (dominance_info): Declare as struct dominance-info.
6928         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
6929         deleting block.
6930         * dominance.c (struct dominance_info): Define.
6931         (BB_NODE, SET_BB_NODE): New macros.
6932         (bb_hash_func, bb_eq_func): Kill.
6933         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
6934         nearest_common_dominator, dominated_by_p, recount_dominator,
6935         add_to_dominance_info, delete_from_dominance_info): update for new
6936         representation.
6937         (get_dominated_by, redirect_immediate_dominators): Rewrite using
6938         enumerate_sons.
6939         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
6940         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
6941         structure.
6942
6943         * et-forest.h: Update copyright; revamp all function to operate on
6944         nodes
6945         (et_forest_value): Kill.
6946         (et_forest_enumerate_sons, et_forest_node_value): New.
6947         * et-forest.c: Update copyright.
6948         * et-forest.h: Update copyright; revamp all function to operate on
6949         nodes
6950         (et_forest_value): Kill.
6951         (et_forest_enumerate_sons, et_forest_node_value): New.
6952
6953         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
6954
6955         * basic-block.h: Inlude et-forest.h
6956         (basic_block_def): Kill dominator.
6957         (dominance_info): New type.
6958         (loops): Use dominace_info.
6959         (dominace handling functions): Take dominace_info as argument
6960         instead of bitmaps.
6961         (create_preheader): Likewise.
6962         * cfg.c (entry_exit_blocks): Kill dominator.
6963         (dump_flow_info): Do not dump dominators.
6964         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
6965         dominators.
6966         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
6967         (flow_loops_pre_header_scan, make_forwarder_block,
6968         canonicale_loop_headers, flow_loops_find): Likewise.
6969         * dominance.c: Include error.h
6970         (idoms_to_doms): Kill.
6971         (bb_hash_func, bb_eq_func): New static functions.
6972         (debug_dominace_info): New global function.
6973         (calculate_dominance_info): Use new et forest structure.
6974         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
6975         get_dominated_by, redirect_immediate_dominators,
6976         nearest_common_dominator, dominated_by_p, verify_dominators,
6977         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
6978         delete_from_dominance_info): New global functions.
6979         * gcse.c (domnators): CHange to dominance_info.
6980         (alloc_hoist_mem): Do not alloc dominators
6981         (free_code_hoist_mem): Use free_dominance_info.
6982         (compute_code_hoist_data): Use dominance_info.
6983         (hoist_code): Likewise.
6984         * ifcvt.c (post_dominators): Likewise.
6985         (find_if_case_2, if_convert): Likewise.
6986         * predict.c (process_note_predictions, process_note_prediction,
6987         estimate-probability): Likewise.
6988         * sched-rgn.c (find_rgns, init_regions): Likewise.
6989         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
6990         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
6991         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
6992         find_evaluations, convert_to_ssa): Likewise.
6993         * ssa.h (compute_dominance_frontiers): Likewise.
6994
6995         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
6996
6997         * Makefile.in (et-forest.c): Add.
6998         * et-forest.c: New file.
6999         * at-forest.h: New file.
7000
7001 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7002
7003         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
7004         array size calculation.
7005         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
7006         Likewise.
7007
7008         * diagnostic.c (diagnostic_kind_text): Const-ify.
7009         * gengtype.c (lang_names): Likewise.
7010
7011 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
7012
7013         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
7014
7015 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7016
7017         * config/sol2.h: New file.
7018         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
7019         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
7020         (sparc-*-chorusos*): Likewise.
7021         (sparc-*-elf*): Likewise.
7022         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
7023         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
7024         (sparc-hal-solaris2*): Likewise.
7025         (sparc-*-solaris2*): Likewise.
7026         (sparclite-*-elf*): Likewise.
7027         (sparc86x-*-elf*): Likewise.
7028         (sparc64-*-elf*): Likewise.
7029
7030         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
7031         config/sol2.h.
7032         (ASM_SPEC): Override config/sol2.h version for now.
7033         Removed obsolete GAS_REJECTS_MINUS_S variant.
7034         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
7035         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7036         (TARGET_OS_CPP_BUILTINS): Likewise.
7037         Assert system=unix.
7038         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
7039         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
7040         config/sol2.h.
7041         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7042         (ASM_CPU_SPEC): Define.
7043         (SUBTARGET_EXTRA_SPECS): Define.
7044
7045         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
7046         in config/sparc/sol2.h.
7047         (ASM_SPEC): Moved to config/sol2.h.
7048         (CPP_CPU_SPEC): Simplified.
7049         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
7050         consistency.
7051         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
7052         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
7053         STARTFILE_ARCH64_SPEC.
7054         (STARTFILE_SPEC): Moved to config/sol2.h
7055         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
7056         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
7057         (LINK_ARCH64_SPEC): Simplified.
7058         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
7059         (LINK_SPEC): Moved to config/sol2.h
7060
7061         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
7062         config/sol2.h.
7063         Use BITS_PER_WORD for size.
7064         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
7065         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7066         (CPP_PREDEFINES): Removed OS-specific part handled by
7067         TARGET_OS_CPP_BUILTINS.
7068         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
7069         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
7070         (ASM_SPEC): Moved to config/sol2.h.
7071         (PREFERRED_DEBUGGING_TYPE): Likewise.
7072         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
7073         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7074         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
7075         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
7076
7077         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
7078         * config/i386/sol2gas.h: Removed.
7079
7080 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
7081
7082         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
7083
7084 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
7085
7086         * gcc.c-torture/execute/simd-1.c: New.
7087
7088         * gcc.dg/simd-1.c: New.
7089
7090         * doc/extend.texi (Vector Extensions): Document that we can
7091         specify simd types not specifically supported by the hardware.
7092         Document that simd types can be used as function arguments.
7093         Document that signness does make a difference in SIMD types.
7094         Misc cleanups and revisions to the vector extensions section.
7095
7096         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
7097         constants.
7098
7099         * expr.c (vector_mode_valid_p): New.
7100
7101         * expr.h: Add vector_mode_valid_p.
7102
7103         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
7104
7105         * c-common.c (type_for_mode): Always build vector nodes regardless
7106         of VECTOR_MODE_SUPPORTED_P.
7107         (handle_mode_attribute): Error if we can't emulate a nonexisting
7108         vector mode.
7109         (handle_vector_size_attribute): Same.
7110
7111         * optabs.c (expand_binop): Open-code vector operations.
7112         (expand_unop): Open-code vector unops.
7113         (expand_vector_binop): New.
7114         (expand_vector_unop): New.
7115
7116         * c-typeck.c (build_binary_op): Allow vectors in binops.
7117         Allow vectors in conditional operatiors.
7118         (build_unary_op): Allow vectors in unary minus.
7119
7120         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
7121         TARGET_ALTIVEC.
7122
7123 2002-05-20  Richard Henderson  <rth@redhat.com>
7124
7125         * c-common.c (c_common_get_alias_set): Correctly handle characters.
7126         Rearrange order of expressions; don't handle vectors here.
7127         * alias.c (get_alias_set): Let vectors match their components.
7128
7129 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
7130
7131         * config/mips/mips.c (mips_emit_prefetch): Use hints which
7132         match desired locality.
7133
7134 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
7135
7136         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
7137         (h8300_insert_attributes): New.
7138
7139 2002-06-19  Akim Demaille  <akim@epita.fr>
7140
7141         * c-parse.in (initelt: identifier ':' initval): Add an empty
7142         action to fix a type clash.
7143         (aliasdecl, classdef): Add the missing closing `;'.
7144         Whitespace changes.
7145         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
7146         $$ = $1 type clashes.
7147
7148 2002-06-19  Eric Christopher  <echristo@redhat.com>
7149
7150         * config/mips/mips.c (symbol_operand): New function.
7151         (mips_emit_prefetch): Ditto.
7152         * config/mips/mips-protos.h: Define.
7153         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
7154         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
7155         (LEGITIMIZE_ADDRESS): Ditto.
7156         * config/mips/mips.md (prefetch, prefetch_si_address,
7157         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
7158
7159 2002-06-19  Eric Christopher  <echristo@redhat.com>
7160
7161         * config/fp-bit.h: Add unordered defines for gofast.
7162
7163 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
7164
7165         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
7166         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
7167         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
7168         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
7169         checking and without it.
7170         (decl_name, decl_mode_check_failed, regexp_name,
7171         regexp_mode_check_failed): New functions.
7172         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7173         gen_presence_set, gen_absence_set, gen_automaton,
7174         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
7175         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
7176         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
7177         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
7178         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
7179         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
7180         (decl_hash, decl_eq_p): Use the macros.
7181         (find_decl): Ditto.  Set up mode of work_decl.
7182         (process_excls, process_presence_absence, process_decls,
7183         check_automaton_usage, process_regexp, process_regexp_decls,
7184         check_usage, loop_in_regexp, check_loops_in_regexps,
7185         process_regexp_cycles, add_advance_cycle_insn_decl,
7186         initiate_states, initiate_excl_sets,
7187         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
7188         transform_2): Use the macros.
7189         (transform_3): Ditto.  Check mode before making transformations of
7190         ALLOF.
7191         (regexp_transform_func, transform_insn_regexps,
7192         process_unit_to_form_the_same_automaton_unit_lists,
7193         form_the_same_automaton_unit_lists_from_regexp,
7194         form_the_same_automaton_unit_lists,
7195         process_seq_for_forming_states, process_alts_for_forming_states,
7196         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
7197         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
7198         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
7199         units_to_automata_heuristic_distr, create_ainsns,
7200         units_to_automata_distr, create_automata): Use the macros.
7201         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
7202         (longest_path_length, min_issue_delay_pass_states,
7203         output_dead_lock_vect, output_tables, output_insn_code_cases,
7204         output_internal_insn_latency_func, output_print_reservation_func,
7205         output_description, output_automaton_units, generate): Use the
7206         macros.
7207         (make_insn_alts_attr): Ditto.  Check case when there are not
7208         alternatives in the reservation.
7209         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
7210         make_bypass_attr, form_important_insn_automata_lists,
7211         expand_automata): Use the macros.
7212
7213 2002-06-20  Tim Josling  <tej@melbpc.org.au>
7214
7215         * Makefile.in: Clean up code to check for misspecified languages
7216         in enable-languages.
7217
7218 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
7219
7220         * cpptrad.c (_cpp_replacement_text_len): initialize len.
7221
7222 2002-06-19  Jason Merrill  <jason@redhat.com>
7223
7224         * Makefile.in (unstrap, restrap): New targets.
7225         (bootstrap): Mention restrap.
7226
7227 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
7228
7229         * except.c (ehl_free): Remove.
7230
7231         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
7232         builtin_define and builtin_define_std.
7233
7234 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
7235
7236         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
7237         (sCOND): Restrict operand class so that gcc knows how to reload them.
7238         (bitfield_set): Merge two unnamed insn's using alternatives.
7239         (call_value): Remove constraint on unused uperand.
7240         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
7241         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
7242
7243         * longlong.h (count_trailing_zeros): Escape newline and beautify.
7244
7245 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
7246
7247         * Makefile.in (QMTEST_DIR): Simplify definition.
7248
7249 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
7250
7251         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
7252         #define.
7253
7254 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
7255
7256         * cpphash.h (struct cpp_reader): Make date and time strings.
7257         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
7258         _cpp_replacement_text_len): New.
7259         * cppinit.c (cpp_create_reader): Update.
7260         (init_builtins): Register appropriate builtins for -traditional-cpp.
7261         * cppmacro.c (new_number_token): Remove.
7262         (_cpp_builtin_macro_text): New.
7263         (builtin_macro): Use it.
7264         (cpp_macro_definition): Update to handle traditional macros.
7265         * cppmain.c (cb_line_change): Don't do column positioning for
7266         traditional output.
7267         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
7268         state ls_fun_close.
7269         (skip_whitespace): Fix.
7270         (maybe_start_funlike): Don't set state.parsing_args.
7271         (scan_out_logical_line): Remove duplicate error.  Use lex_state
7272         rather than state.parsing_args.
7273         (push_replacement_text): Handle builtins.
7274         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
7275
7276 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
7277             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7278
7279         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
7280         attribute __always_inline__.
7281
7282 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
7283
7284         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
7285         when generating the call to _mcount.
7286         (NO_PROFILE_COUNTERS): Define.
7287
7288 2002-06-18  Richard Henderson  <rth@redhat.com>
7289
7290         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
7291         2002-06-02 change.
7292
7293 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
7294
7295         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
7296         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
7297         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
7298         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
7299
7300         * sh-protos.h (sh_pr_interrupt): Declare.
7301         * sh.c (sh_pr_interrupt): New function.
7302         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
7303         (sh_hard_regno_rename_ok): Likewise.
7304         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
7305
7306 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
7307
7308         * rtl.def (DEFINE_AUTOMATON): Add description of new options
7309         `time' and `v'.  Fix incorrect description of option `w'.
7310
7311         * doc/md.texi: Ditto.
7312
7313         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
7314         (gen_automata_option): Process the new options.
7315         (transform_2, transform_3): Initialize some variables.
7316         (initiate_automaton_gen): Use the new macros.
7317
7318 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
7319
7320         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
7321         (mips_set_return_address, mips_restore_gp): Declare.
7322         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
7323         (current_frame_info): Remove.
7324         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
7325         * config/mips/mips.c: Remove uses of current_frame_info.
7326         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
7327         (struct machine_function): Add 'frame' and 'insns_len'.
7328         (current_frame_info, zero_frame_info): Remove.
7329         (mips_restore_gp, mips_set_return_address): New.
7330         (mips_initial_elimination_offset): New.
7331         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
7332         (eh_return define_split): Use mips_set_return_address.
7333
7334 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
7335
7336         * cpplib.c (dtable): Update.
7337         (end_directive): Decrement expansion prevention count.
7338         Clear state.in_expression.
7339         (prepare_directive_trad): Set state.in_expression.
7340         Increment expansion prevention count.
7341         * cpptrad.c (enum ls): New.
7342         (_cpp_overlay_buffer): Set overlaid_buffer.
7343         (_cpp_remove_overlay): Use overlaid_buffer.
7344         (_cpp_read_logcial_line_trad): Update buffer when it might
7345         have changed.
7346         (scan_out_logical_line): Handle state transitions for assertions
7347         and defined() in #if, and for funlike invocations including the
7348         directive case.  Handle '<' and '>' as a quote mechanism in
7349         #include.  Warn about unterminated macro invocations.
7350         * cpphash.h (struct lexer_state): New member in_expression.
7351         (struct cpp_reader): New member overlaid buffer.
7352
7353 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
7354
7355         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
7356         __always_inline__.
7357
7358 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
7359
7360         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
7361
7362         * doloop.c (doloop_optimize): Extract pattern from insn.
7363
7364 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
7365
7366         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
7367
7368 2002-06-17  Jeff Law <law@redhat.com>
7369
7370         * libgcc2.c: Do not include symcat.h or machmode.h.
7371
7372 2002-06-17  Richard Henderson  <rth@redhat.com>
7373
7374         PR target/6922
7375         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
7376
7377 2002-06-17  Tom Tromey  <tromey@redhat.com>
7378
7379         * dwarfout.c: Include function.h.
7380
7381 2002-06-17  Andreas Schwab  <schwab@suse.de>
7382
7383         * print-rtl.c (print_rtx): Print space before vector, not after.
7384         (debug_rtx): Clear sawclose before printing.
7385         (debug_rtx_list): Print newline after each list element.
7386         (debug_rtx_range): Likewise.
7387
7388 2002-06-17  Richard Henderson  <rth@redhat.com>
7389
7390         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
7391         (current_function_funcdef_no): Similarly.
7392         * function.c (funcdef_no): Similarly.
7393         (prepare_function_start): Set current_function_funcdef_no.
7394         (expand_function_start): Don't set current_function_profile_label_no.
7395         * dwarf2out.h (current_funcdef_number): Remove.
7396         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
7397         current_function_funcdef_no throughout.
7398         * dwarfout.c, vmsdbgout.c: Similarly.
7399         * except.c (sjlj_funcdef_number): Remove.
7400         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
7401         (output_function_exception_table): Likewise.
7402         * final.c (profile_function): Use current_function_funcdef_no
7403         instead of current_function_profile_label_no.
7404
7405 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
7406
7407         * sched-ebb.c (init_ready_list): Check INSN_P first.
7408
7409 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
7410
7411         * sh.md (divsi3): Update way how to find insns in a sequence.
7412
7413         * reload1.c (merge_assigned_reloads): Don't change reloads
7414         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
7415         to RELOAD_OTHER when there are conflicting input reloads.
7416
7417 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
7418
7419         * function.c (epilogue_done): Correctly build a sequence of insns for
7420         a sibcall epilogue.
7421
7422 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
7423
7424         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
7425         #define.
7426
7427         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
7428
7429 2002-06-16  Richard Henderson  <rth@redhat.com>
7430
7431         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
7432         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
7433
7434 2002-06-16  Richard Henderson  <rth@redhat.com>
7435
7436         PR opt/6722
7437         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
7438
7439 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7440
7441         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
7442         * config/i386/i386-aout.h, config/i386/i386elf.h,
7443         config/i386/sysv4.h: Remove CPP_PREDEFINES.
7444         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
7445         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
7446         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
7447         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
7448         CPP_PREDEFINES and part of CPP_SPEC.
7449         * config/i386/sysv4-cpp.h: New.
7450
7451 2002-06-16  Richard Henderson  <rth@redhat.com>
7452
7453         PR c/7030
7454         * dwarf2out.c (modified_type_die): Don't assign the qualified die
7455         to the unqualified type.
7456
7457 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
7458
7459         * i386-protos.h (x86_field_alignment): Declare.
7460         * i386.c (x86_field_alignment): Define.
7461         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
7462         (BIGGEST_FIELD_ALIGNMENT): Kill.
7463
7464 2002-06-16  Richard Henderson  <rth@redhat.com>
7465
7466         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
7467
7468 2002-06-16  Richard Henderson  <rth@redhat.com>
7469
7470         * c-common.c (flag_ms_extensions): Move from c++ front end.
7471         * c-common.h (flag_ms_extensions): Declare.
7472         * c-decl.c (c_decode_option): Add -fms-extensions.
7473         (grokfield): Don't accept anonymous structures in ISO C mode;
7474         accept only unnamed anonymous structures in GNU C mode; accept
7475         Plan 9 extensions in MS mode.
7476         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
7477         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
7478         (extension): Clear flag_iso.
7479         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
7480
7481 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
7482
7483         PR target/7042
7484         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
7485         early if current_function_epilogue_delay_list is non-empty.
7486         * config/cris/cris.md ("return"): Add sanity check asserting that
7487         current_function_epilogue_delay_list is empty.
7488
7489 2002-06-16  Jeff Law <law@redhat.com>
7490
7491         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
7492         sharing of hard registers.
7493
7494         * toplev.c (rest_of_compilation): Remove redundant conditional.
7495
7496         * toplev.c (rest_of_compilation): Perform a simpler, less costly
7497         cleanup of the CFG when not optimizing.
7498
7499 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
7500
7501         * gcc.c (main): Correct startfile_prefix_spec check.
7502
7503 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
7504
7505         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
7506         include both darwin.o and rs6000-c.o.
7507
7508 2002-06-15  Roger Sayle  <roger@eyesopen.com>
7509
7510         * expr.c (compare_from_rtx): Call simplify_relational_operation
7511         on all comparisons, not just those between integer constants,
7512         with the correct (possibly unsigned) comparison code.
7513         (do_compare_rtx_and_jump): Likewise.
7514
7515 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7516
7517         * Makefile.in (tm_defines): New configuration variable.
7518         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
7519         Pass tm_defines in TM_DEFINES.
7520         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
7521         * config.gcc (tm_defines): New configuration variable.
7522         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
7523         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
7524         * configure.in: Substitute tm_defines.
7525         * configure: Rebuilt.
7526         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
7527         * doc/install.texi: Update.
7528         * pa/pa-700.h: Delete file.
7529         * pa/pa-7100.h: Delete file.
7530
7531 2002-06-15  Roger Sayle  <roger@eyesopen.com>
7532
7533         * fold-const.c (comparison_to_compcode): New function to convert
7534         an comparison TREE CODE into a bit-based representation.
7535         (compcode_to_comparison): New function to convert from this bit
7536         based representation back to a comparison TREE CODE.
7537         (fold_truthop): Simplify (x<y) && (x==y) and related composite
7538         comparisons.
7539
7540 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
7541
7542         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
7543
7544         * stor-layout.c (compute_record_mode): Remove check for
7545         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
7546         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
7547         MEMBER_TYPE_FORCES_BLK.
7548
7549         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
7550
7551         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
7552
7553 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
7554
7555         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
7556
7557 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
7558
7559         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
7560         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
7561         * configure, config.in: Regenerate.
7562
7563 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7564
7565         * loop.c (check_final_value): Use v->always_executed
7566         instead of v->always_computable.
7567         * unroll.c (final_giv_value): Don't calculate the final
7568         value as a function of the biv if the giv is not computed
7569         for every loop iteration.
7570
7571 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7572
7573         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
7574
7575 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7576
7577         PR c/6677
7578         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
7579         the truncation down when the target type is signed.
7580         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
7581         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
7582         the conversion if the target type is a smaller type.
7583
7584 2002-06-14  Richard Henderson  <rth@redhat.com>
7585
7586         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
7587         earlier.  Re-factor comparisons vs extrema.
7588
7589 2002-06-14  Richard Henderson  <rth@redhat.com>
7590
7591         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
7592
7593 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7594
7595         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
7596         * sched-deps.c (add_dependence): Likewise.
7597         (group_leader): Likewise.
7598         * sched-rgn.c (init_ready_list): Likewise.
7599         * doc/rtl.texi: Adjust accordingly.
7600
7601 2002-06-13  Jeffrey Law  <law@redhat.com>
7602
7603         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
7604         null pointer checks were eliminated.  Update prototype.
7605         (delete_null_pointer_checks): Similarly.
7606         * rtl.h (delete_null_pointer_checks): Update prototype.
7607         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
7608         delete_null_pointer_checks deletes one or more null
7609         pointer checks.  Do not run cleanup_cfg before gcse, the
7610         CFG is accurate and optimized at that point..
7611
7612         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
7613         of hard registers.
7614
7615 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
7616
7617         * Makefile.in (libgcc.mk): Depend on specs.
7618
7619 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
7620
7621         * sh.md (mulsi3): Update way how to find insns in a sequence.
7622
7623 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
7624
7625         * sh.h: Define HARD_REGNO_RENAME_OK
7626         * sh.c: sh_hard_regno_rename_ok: New. If current function has
7627         interrupt_handler attribute, only registers saved on stack are OK.
7628         * sh-protos.h: Declare sh_hard_regno_rename_ok.
7629
7630 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
7631
7632         * config/sh/sh.md (jump): Emit jump insn.
7633         (call_pcrel): Get pattern of the result of gen_call_site.
7634         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
7635
7636 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7637
7638         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
7639         * cpptrad.c: Update comments.
7640         (skip_whitespace, copy_comment): Take a new parameter.
7641         (skip_escaped_newlines): Don't duplicate escaped newline test.
7642         (copy_comment): Different location for CUR, decide here how
7643         to copy / replace the comment.
7644         (skip_whitespace): Copy whitespace.
7645         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
7646         (scan_out_logical_line): Let copy comment handle keeping or
7647         replacing comments.
7648         (scan_parameters, _cpp_create_trad_definition): Update.
7649
7650 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
7651
7652         * reload.c (get_secondary_mem,find_reloads_address,
7653         find_reloads_address_1): Pass reference to MEM to find_reloads_address
7654         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
7655
7656 2002-06-13  Jessica Han  <jessica@cup.hp.com>
7657
7658         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
7659         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
7660         * doc/tm.texi: Document them.
7661         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
7662         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
7663         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
7664         (ASM_OUTPUT_FDESC): Likewise.
7665
7666 2002-06-13  Eric Christopher  <echristo@redhat.com>
7667
7668         * diagnostic.c (output_format): Fix thinko.
7669
7670 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
7671
7672         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
7673         (DWARF2_UNWIND_INFO): Define to 0.
7674
7675         * config/sh/sh.c (calc_live_regs): Don't use initial_value
7676         optimization for PR_MEDIA_REG.
7677
7678 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7679
7680         * cpphash.h (_cpp_lex_identifier_trad): Remove.
7681         * cpplib.c (end_directive): Don't skip, always remove overlay
7682         apart from #define.
7683         (prepare_directive_trad): Handle NULL pfile->directive.
7684         (_cpp_handle_directive): Always call prepare_directive_trad
7685         if traditional.
7686         * cppmain.c (check_multiline_token): Rename account_for_newlines,
7687         generalize inputs.
7688         (scan_translation_unit_trad): Use it.
7689         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
7690         output, get escaped newline in comment close correct.
7691         (check_output_buffer, skip_whitespace): Update.
7692         (_cpp_lex_identifier_trad): Remove.
7693         (scan_out_logical_line): Handle -C and comments in directives
7694         properly.
7695
7696 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7697
7698         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
7699         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
7700         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
7701         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
7702         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
7703         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
7704         (SELECT_SH5_COMPACT_NOFPU): Likewise.
7705         (TARGET_SWITCHES): Use them.
7706         (TARGET_CPU_DEFAULT): Define if not already defined.
7707         (TARGET_DEFAULT): Use it.
7708         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
7709         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
7710         * config/sh/t-monolib: New file.
7711
7712 2002-06-13  Roger Sayle  <roger@eyesopen.com>
7713
7714         * toplev.c (rest_of_compilation): Simplify (and correct) the
7715         logic of the first delete-null-pointer-checks pass.
7716
7717 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
7718
7719         * i386.c (ix86_expand_movstr):  Fix pasto.
7720
7721 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
7722
7723         * reload.c (find_valid_class):  Fix thinko in my previous patch.
7724
7725 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
7726
7727         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
7728         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
7729         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
7730         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
7731
7732 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
7733
7734         * tree-inline.c (expand_call_inline): Don' mess with _DECL
7735         fields.
7736
7737 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
7738
7739         * diagnostic.c (output_format): Recognize "%H" as a format
7740         specifier for a location_t.
7741         (text_specifies_location): New function.
7742         (diagnostic_set_info): Use it.
7743
7744 2002-06-13  Jeffrey Law  <law@redhat.com>
7745
7746         * emit-rtl.c (static_regno_reg_rtx): Define.
7747         (init_emit_once): Initialize static_regno_reg_rtx.
7748         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
7749         of building new hard reg objects once per function.
7750         (gen_rtx_REG): Try to share hard regs.
7751         * regclass.c (init_fake_stack_mems): New function broken out from
7752         init_regs.
7753         * rtl.h (init_fake_stack_mems): Declare.
7754         * toplev.c (lang_independent_init): Call init_regs before
7755         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
7756
7757         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
7758
7759         * alias.c (argument_registers): Remove.
7760         (init_alias_once): Initialize static_reg_base_value here.  Remove
7761         initialization of argument_registers.
7762         (init_alias_once_per_function): Remove.
7763         (init_alias_analysis): Copy all the entries from static_reg_base_value
7764         into new_reg_base_value all at once.
7765         * rtl.h (init_alias_once_per_function): Remove declaration.
7766         * function.c (prepare_function_start): Do not call
7767         init_alias_once_per_function.
7768
7769         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
7770         starting a sequence and emitting an INSN.
7771
7772 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
7773
7774         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
7775
7776 2002-06-13  David S. Miller  <davem@redhat.com>
7777
7778         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
7779
7780 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7781
7782         * cpplib.c (end_directive): Handle line skipping.  Only remove
7783         the rest of the line if the directive was valid.
7784         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
7785         expanding a traditional macro.
7786         * cpptrad.c (recursive_macro): New.
7787         (read_logical_line_trad): Handle skipping.
7788         (scan_out_logical_line): Continue after a successful directive.
7789         Don't expand macros whilst skipping, or if recursing.
7790         (_cpp_create_trad_definition): scan_out_logical_line now sets
7791         the output current position.
7792
7793 2002-06-12  Eric Christopher  <echristo@redhat.com>
7794
7795         From Chris Demetriou  <cgd@broadcom.com>
7796         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
7797         comment.
7798         (ISA_HAS_MADD_MSUB): Ditto.
7799         (ISA_HAS_NMADD_NMSUB): Ditto.
7800
7801 2002-06-12  Eric Christopher  <echristo@redhat.com>
7802
7803         * config.gcc: Consolidate little endian handling and
7804         little/big endian targets.
7805         * config/mips/elfl.h: Remove file.
7806         * config/mips/elfl64.h: Ditto.
7807         * config/mips/ecoffl.h: Ditto.
7808         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
7809
7810 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
7811
7812         * gengtype.h (xvasprintf): New prototype.
7813         (xasprintf): New prototype.
7814         (struct outf): New.
7815         (get_output_file): Return an outf_p.
7816         (header_file): Is now an outf_p.
7817         (base_files): Now are outf_p.
7818         (oprintf): New.
7819         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
7820         rather than stdio operations.  Use xasprintf in a few places,
7821         when appropriate.
7822         (xvasprintf): New.
7823         (xasprintf): New.
7824         (struct filemap): Delete.
7825         (files): Delete.
7826         (output_files): New.
7827         (oprintf): New.
7828         (create_file): Create an outf_p.  Add parameter to indicate output
7829         file name, change all callers.
7830         (open_base_files): Create gtype-desc.c here.
7831         (get_output_file_with_visibility): Rewrite.
7832         (get_output_file_name): Just look at 'name' field in struct outf.
7833         (close_output_files): Rewrite.
7834
7835 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
7836
7837         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
7838         (MASK_G_FLOAT): Define.
7839         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
7840         (TARGET_SWITCHES): Likewise.
7841         (TARGET_DEFAULT): Likewise.
7842
7843 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
7844
7845         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
7846         * config/mips/mips.c (mips_output_filename): Don't print a
7847         ".file" directive if we are using DWARF-2.
7848         (mips_output_function_prologue): Do not emit source file
7849         name for TARGET_GAS.
7850
7851 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
7852
7853         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
7854         decide whether emit the short opcode.
7855         * i386.h (x86_shift1): Declare.
7856         (TARGET_SHIFT1): New macro.
7857         * i386.c (x86_shift1): New global variable.
7858
7859         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
7860         unconditionally; make loop to rebuild CFG; kill unnecesary
7861         find_basic_block calls; kill compute_bb_for_insn call.
7862         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
7863         * haifa-sched.c (sched_init): Likewise.
7864         * ssa-ccp.c (ssa_const_prop): Likewise.
7865         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7866
7867 2002-06-11  David S. Miller  <davem@redhat.com>
7868
7869         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
7870         active_insn_p.
7871
7872 2002-06-11  Richard Henderson  <rth@redhat.com>
7873
7874         * c-common.c (builtin_define_type_max): New.
7875         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
7876         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
7877
7878         From Joseph S. Myers:
7879         * glimits.h: Rewrite to expect the double underscore definitions
7880         from the compiler.
7881
7882         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
7883         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
7884         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
7885         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7886         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
7887         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
7888         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
7889         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
7890
7891 2002-06-11  Richard Henderson  <rth@redhat.com>
7892
7893         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
7894         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
7895         (code_for_builtns): Update.
7896         (alpha_init_builtins): Add __builtin_thread_pointer and
7897         __builtin_set_thread_pointer.
7898         (alpha_expand_builtin): Handle void builtins.
7899         * doc/extend.texi (Alpha Built-in Functions): Update.
7900
7901 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
7902
7903         PR target/6997
7904         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
7905
7906 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
7907
7908         * config.gcc: Make the name of the extra-modes file adjustable
7909         by target stanzas.
7910         (s390x, strongarm, xscale stanzas): Use this facility.
7911         * configure.in: Update to match.
7912         * configure: Regenerate.
7913
7914 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
7915
7916         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
7917         max/mins as unsigned GE compares.
7918
7919 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
7920
7921         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
7922         * config/vax/bsd.h: New file.
7923         * config/vax/netbsd.h: Add missing notice.
7924         (CPP_PREDEFINES): Remove.
7925         (TARGET_OS_CPP_BUILTINS): Define.
7926         (CPP_SPEC): Use NETBSD_CPP_SPEC.
7927         * config/vax/openbsd.h: Update copyright years.
7928         (CPP_PREDEFINES): Remove.
7929         (TARGET_OS_CPP_BUILTINS): Define.
7930         * config/vax/ultrix.h: Likewise.
7931         * config/vax/vaxv.h: Likewise.
7932         * config/vax/vms.h: Likewise.
7933         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
7934         (CPP_PREDEFINES, CPP_SPEC): Remove.
7935
7936 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
7937
7938         * i386.md (addqi_1_slp, subqi_1_slp
7939         (andqi_ext0, testqi_ext0): Remove unnecesary check.
7940         (addhi*, addqi*): Simplify "dec" condition.
7941         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
7942         (and, or, xor to QImode splitters): New.
7943         (iorqi_ext*): New.
7944         (xorqi_ext_0): New.
7945         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
7946         (andqi_ext_1_rex64): New.
7947         (ashrqi*_slp): New.
7948         (ashlqi*_slp): New.
7949         (lshlqi*_slp): New.
7950         (rotrqi3*_slp): New.
7951         (rotlqi3*_slp): New.
7952
7953 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
7954
7955         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
7956         softfloat.h.
7957         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
7958         (CPP_ENDIAN_LITTLE_SPEC): Delete.
7959         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
7960         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
7961         __LONG_DOUBLE_128__ setting, _CALL_* setting.
7962         (CPP_DEFAULT_SPEC): Delete.
7963         (CPP_FLOAT_DEFAULT_SPEC): Delete.
7964         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
7965         (CPP_SYSV_DEFAULT_SPEC): Delete.
7966         (CPP_ENDIAN_BIG_SPEC): Delete.
7967         (CPP_ENDIAN_LITTLE_SPEC): Delete.
7968         (CPP_ENDIAN_SPEC): Delete.
7969         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
7970         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
7971         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
7972         cpp_longdouble_default.
7973         * config/rs6000/softfloat.h: Delete.
7974         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
7975         (EXTRA_SPECS): Delete cpp_cpu.
7976         (TARGET_CPU_CPP_BUILTINS): New.
7977         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
7978         prototype.
7979         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
7980         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
7981         (CPP_DEFAULT_SPEC): Delete.
7982         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
7983         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
7984         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
7985         (CPP_DEFAULT_SPEC): Delete.
7986         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
7987         (CPLUSPLUS_CPP_SPEC): Likewise.
7988         (CPP_CPU_SPEC): Delete.
7989         (CPP_DEFAULT_SPEC): Delete.
7990         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
7991         (CPLUSPLUS_CPP_SPEC): Likewise.
7992         (CPP_CPU_SPEC): Delete.
7993         (CPP_DEFAULT_SPEC): Delete.
7994         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
7995         (CPP_DEFAULT_SPEC): Delete.
7996         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
7997         (CPP_DEFAULT_SPEC): Delete.
7998
7999         * doc/gty.texi: Small updates.
8000
8001 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
8002
8003         * objc/objc-act.c (warn_with_ivar): Adjust calls to
8004         diagnostic_count_error.
8005         (warn_with_method): Likewise.
8006
8007         * diagnostic.h (warnings_are_errors_message): New field of
8008         diagnostic_context.
8009         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
8010         match semantics.
8011         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
8012         (diagnostic_count_diagnostic): Make aware of other kinds of
8013         diagnostics.
8014         (diagnostic_initialize): Initialize warnings_are_errors_message field.
8015
8016 2002-06-11  Tom Tromey  <tromey@redhat.com>
8017
8018         For PR java/6520:
8019         * fold-const.c (fold_convert): Don't modify existing tree's type.
8020
8021 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8022
8023         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
8024
8025 2002-06-11  Richard Henderson  <rth@redhat.com>
8026
8027         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
8028
8029 2002-06-11  Richard Henderson  <rth@redhat.com>
8030
8031         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
8032         DWARF2_UNWIND_INFO is false.
8033
8034 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
8035
8036         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
8037
8038         * config/s390/s390.c (emit_prologue): gen_store_multiple
8039         returns an insn now, not a pattern.
8040
8041 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8042
8043         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
8044         $(TEXI2DVI) -o.
8045
8046 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8047
8048         * i386.c (x86_promote_QImode): Set for Athlon
8049         (x86_fast_prefix): New global variable.
8050         (x86_arch_always_fancy_math_387): Fix formating.
8051         * i386.h (x86_fast_prefix): Declare
8052         (TARGET_FAST_PREFIX): define.
8053         * i386.md (and to strict_low_part, HI to SI
8054         promoting splitter): Use new macro.
8055
8056         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
8057
8058 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8059
8060         * Makefile.in (distclean): Delete junk left in testsuite
8061         directory, too.
8062
8063 2002-06-11  Jeffrey Law <law@redhat.com>
8064
8065         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
8066         last insn created by the splitter.
8067
8068         * caller-save.c (init_caller_save): Move creation of SAVEINSN
8069         and RESTINSN into into the scope of the sequence.
8070
8071         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
8072         RETURN insns.
8073
8074         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
8075
8076         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
8077         not the pattern.  So extract the pattern from the insn.
8078
8079         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
8080
8081 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8082
8083         * config/s390/s390.md (movsi): Only use floating point
8084         register alternatives when operands are already fprs.
8085         (movdi_31, movdi_64): Likewise.
8086
8087 2002-06-11  David S. Miller  <davem@redhat.com>
8088
8089         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
8090         Only run RTX equality checks on INSN_P rtl.
8091
8092 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8093
8094         * config/s390/s390.md (reload_base, ltorg): Remove.
8095         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
8096         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
8097         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
8098         s390_asm_output_pool_prologue): Likewise.
8099         * s390.h (s390_pool_start_insn): Likewise.
8100
8101         * s390.c (s390_output_symbolic_const): Remove support for
8102         old-style pool chunks.
8103         (s390_function_epilogue): Likewise.
8104         (s390_output_constant_pool): Likewise.  Also, fix incorrect
8105         alignment for 64-bit literal pools.
8106         (print_operand_address): Remove 'y' and 'Y' format flags.
8107         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
8108         old-style pool chunks.
8109         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
8110         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
8111         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
8112
8113         * s390.c (consttable_operand): New function.
8114         * s390-protos.h (consttable_operand): Declare it.
8115         * s390.h (PREDICATE_CODES): Add consttable_operand.
8116         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
8117         consttable_sf, consttable_df, pool_start_31, pool_end_31,
8118         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
8119         * s390.c (struct constant, struct constant_pool): New data types.
8120         (constant_modes, gen_consttable): New variables.
8121         (s390_start_pool, s390_end_pool, s390_add_pool,
8122         s390_dump_pool, s390_free_pool): New functions.
8123         (s390_chunkify_pool): Completely reimplement literal pool
8124         overflow handling.
8125
8126         * s390.c (s390_pool_overflow): New variable.
8127         * s390.h (s390_pool_overflow): Declare it.
8128         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
8129         jumps in literal pool overflow situations.
8130
8131         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
8132         (s390_frame_info): Account for possible use of RETURN_REGNUM
8133         by new literal pool overflow code.
8134         (s390_emit_prologue): Likewise.
8135
8136 2002-06-05  David S. Miller  <davem@redhat.com>
8137
8138         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
8139         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
8140         emit_insns_before_scope, emit_insns_after,
8141         emit_insns_after_scope): Delete declaration.
8142         * ada/misc.c (insert_code_for): Use emit_insn* instead of
8143         emit_insns_foo.
8144         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
8145         (alpha_set_memflags): Fix comment.
8146         (set_frame_related_p): Use get_insns instead of gen_sequence.
8147         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
8148         emitting no insns.
8149         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
8150         gen_sequence.
8151         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
8152         * config/fr30/fr30.c (fr30_move_double): Likewise.
8153         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
8154         Likewise.
8155         * config/ia64/ia64.c (spill_restore_mem): Likewise.
8156         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
8157         no insns.
8158         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
8159         instead of gen_sequence.
8160         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
8161         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
8162         * config/sh/sh.c (sh_need_epilogue): Likewise.
8163         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
8164         attributes.
8165         (setjmp pattern and split): Use them to avoid splitter which emits
8166         no RTL.
8167         * genattrtab.c (main): Emit include of function.h
8168         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
8169         get_insns instead of gen_sequence.
8170         * config/cris/cris.c (cris_split_movdx): Likewise.
8171         * emit-rtl.c (emit_insns*): Kill.
8172         (try_split): Expect insn list instead of SEQUENCE.
8173         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
8174         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
8175         Make them abort if a SEQUENCE is given and RTL checking is
8176         enabled.
8177         (emit_*_scope): Don't forget to set scope on final insn.
8178         (gen_sequence): Move from here...
8179         * ssa.c (gen_sequence): To here as private function.
8180         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
8181         comments.
8182         (expand_builtin_return, expand_builtin_mathfn): Likewise.
8183         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
8184         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
8185         (expand_builtin_expect_jump): Use get_insns and fix comments.
8186         * calls.c (try_to_integrate): Use emit_insn_foo.
8187         (expand_call, emit_library_call_value_1): Likewise.
8188         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
8189         (emit_move_insn_1): Use get_insns instead of gen_sequence.
8190         (expand_expr): Use emit_insn_foo.
8191         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
8192         * except.c (build_post_landing_pads): Likewise.
8193         * flow.c (attempt_auto_inc): Likewise.
8194         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
8195         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
8196         * function.c (fixup_var_refs_insn): Use get_insns instead of
8197         gen_sequence.
8198         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
8199         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
8200         (fixup_stack_1, purge_addressof_1, expand_main_function,
8201         get_arg_pointer_save_area): Likewise.
8202         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
8203         expand_function_end): Use emit_insn_foo.
8204         (record_insns, keep_stack_depressed): Work with insn list instead
8205         of SEQUENCE, fix comments.
8206         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
8207         noce_try_store_flag_constants, noce_try_store_flag_inc,
8208         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
8209         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
8210         (noce_process_if_block): Use get_insns instead of gen_sequence.
8211         * optabs.c (add_equal_note): Work with insn list, fix comments.
8212         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
8213         (expand_unop, expand_complex_abs, expand_unop_insn,
8214         expand_no_conflict_block): Likewise.
8215         (gen_move_insn): Use get_insns instead of gen_sequence.
8216         (gen_cond_trap): Likewise.
8217         * integrate.c (copy_rtx_and_substitute): Likewise.
8218         (emit_initial_value_sets): Use emit_insn_foo.
8219         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
8220         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
8221         now that RTL generators give insn lists.
8222         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
8223         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
8224         instead of gen_sequence.
8225         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
8226         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
8227         instead of gen_sequence.
8228         * loop.c (move_movables, emit_prefetch_instructions,
8229         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
8230         Likewise.
8231         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
8232         (product_cheap_p): Likewise, and add commentary about RTL wastage
8233         here.
8234         * lcm.c (optimize_mode_switching): Use get_insns instead of
8235         gen_sequence.
8236         * profile.c (gen_edge_profiler): Likewise.
8237         * regmove.c (copy_src_to_dest): Likewise.
8238         * reg-stack.c (compensate_edge): Likewise and fix comment.
8239         * gcse.c (process_insert_insn): Likewise.
8240         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
8241         * jump.c (delete_prior_computation): Update comment.
8242         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
8243         of gen_sequence, update comments to match.
8244         * recog.c (peephole2_optimize): Work with insn lists instead of
8245         SEQUENCE rtl.
8246         * sched-vis.c (print_pattern): Abort on SEQUENCE.
8247         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
8248         Use get_insns instead of gen_sequence.
8249         (copy_loop_body): Likewise and don't emit dummy NOTE.
8250         * genrecog.c: Don't mention SEQUENCE rtl in comments.
8251         * combine.c (try_combine): Expect insn lists from split generator.
8252         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
8253         hand.
8254
8255 2002-06-11  Roger Sayle  <roger@eyesopen.com>
8256             Andreas Jaeger <aj@suse.de>
8257
8258         * cfgbuild.c: Update copyright years.
8259
8260 2002-06-11  Andreas Schwab  <schwab@suse.de>
8261
8262         * config/m68k/m68k.h (PREDICATE_CODES): Define.
8263
8264 2002-06-11  Eric Christopher  <echristo@redhat.com>
8265
8266         * doc/tm.texi (Run-time Target): Add comment about flag_iso
8267         and strict ANSI.
8268         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
8269         * config/mips/ecoffl.h: Ditto.
8270         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
8271         (CPP_PREDEFINES): Ditto.
8272         * config/mips/elfl64.h: Ditto.
8273         * config/mips/elfl.h: Ditto.
8274         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
8275         out until irix header consolidation.
8276         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
8277         with SUBTARGET_OS_CPP_BUILTINS.
8278         * config/mips/iris6.h: Ditto.
8279         (CPLUSPLUS_CPP_SPEC): Remove.
8280         * config/mips/linux.h: Ditto.
8281         * config/mips/netbsd.h: Ditto.
8282         * config/mips/openbsd.h: Ditto.
8283         * config/mips/rtems.h: Ditto.
8284         * config/mips/rtems64.h: Ditto.
8285         * config/mips/sni-svr4.h: Ditto.
8286         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
8287         ISA_MIPS32, ISA_MIPS64): New defines.
8288         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
8289         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
8290         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
8291         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
8292         (TARGET_CPU_CPP_BUILTINS): Define.
8293         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
8294         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
8295         (movdicc): Remove check for ISA_MIPS32.
8296          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
8297         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
8298         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
8299         sunge_sf, sunle_df, sunle_sf): New patterns.
8300
8301 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8302
8303         * Makefile.in: Update cppmain.o.
8304         * cpphash.h (struct cpp_reader): Move some members to a
8305         nested structure.
8306         (trad_line): Rename saved_line.
8307         (_cpp_read_logical_line_trad): Update.
8308         (_cpp_remove_overlay): New.
8309         * cppinit.c (cpp_create_reader): No need to set saved_line.
8310         (cpp_destroy): Update.
8311         (cpp_read_main_file): Only overlay if compiling.
8312         * cpplex.c (continue_after_nul): Return false if in directive.
8313         * cpplib.c (EXPAND): New.
8314         (directive_table, SEEN_EOL): Update.
8315         (end_directive): Remove overlay if traditional; don't skip
8316         line in traditional #define.
8317         (prepare_directive_trad): New.
8318         (_cpp_handle_directive, run_directive): Update for traditional
8319         directives.
8320         (lex_macro_node): Simplify, don't use lex_identifier_trad.
8321         * cpplib.h (struct options): Add preprocess_only.
8322         * cppmain.c: Don't include intl.h.
8323         (cpp_preprocess_file): Set options->preprocess_only.
8324         (scan_translation_unit_trad): Fix, and print line numbers.
8325         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
8326         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
8327         save_replacement_text, _cpp_create_trad_definition): Update for
8328         variable renaming.
8329         (_cpp_overlay_buffer): Save line number.
8330         (_cpp_remove_overlay): Rename from restore_buff, restore line.
8331         (_cpp_read_logical_line_trad): Don't handle overlays here.
8332         (scan_out_logical_line): Process directives.
8333
8334 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
8335
8336         * gthr-win32.h: Wrap functions in extern "C".
8337         (__gthread_key_t): Typedef as unsigned long,
8338         not win32 DWORD.
8339         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
8340         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
8341         (__gthr_win32_once, __gthr_win32_key_create,
8342         __gthr_win32_key_delete, __gthr_win32_getspecific,
8343         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8344         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8345         __gthr_win32_mutex_unlock): Declare.
8346         (__gthread_once,__gthread_key_create,
8347         __gthread_key_delete, __gthread_getspecific,
8348         __gthread_setspecific, __gthread_mutex_init_function,
8349         __gthread_mutex_lock,__gthread_mutex_trylock,
8350         __gthread_mutex_unlock): Call corresponding
8351         __gthr_win32_* extern implementations if #defined
8352         __GTHREAD_HIDE_WIN32API.
8353         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
8354         $(srcdir)/config/i386/gthr-win32.c
8355         * config/i386/gthr-win32.c: New implementation file.
8356         (__gthr_win32_once, __gthr_win32_key_create,
8357         __gthr_win32_key_delete, __gthr_win32_getspecific,
8358         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8359         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8360         __gthr_win32_mutex_unlock): New functions, based on
8361         static inlines in gthr-win32.h.
8362
8363 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
8364
8365         * config/xtensa/xtensa.c (override_options): Don't warn about
8366         using -fpic or -fPIC when PIC is enabled by default.
8367
8368 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8369
8370         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
8371
8372 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8373
8374         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
8375         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
8376         exists, substitute its pathname as @extra_modes_file@, define
8377         EXTRA_MODES_FILE to be an appropriate string to #include it
8378         with, and define EXTRA_CC_MODES to 1.
8379
8380         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
8381         it's defined.  Get rid of redundancy in calling sequence for
8382         CC; don't use it to define CCmode, to avoid a warning.
8383         * libgcc2.c: Include symcat.h for the sake of machmode.def.
8384
8385         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
8386         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
8387         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
8388         New files.
8389         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
8390         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
8391
8392         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
8393         defining extra CC modes.
8394
8395 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8396             Andreas Jaeger <aj@suse.de>
8397
8398         * cfgrtl.c (create_basic_block_structure):  Remove index argument
8399         and use last_basic_block++ instead.  (create_basic_block): Update.
8400         * cfgbuild.c (find_basic_blocks_1): Likewise.
8401
8402         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
8403         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
8404         * sched-ebb.c (schedule_ebbs): Likewise.
8405         * sched-rgn.c (schedule_insns): Likewise.
8406         * ssa-ccp.c (ssa_const_prop): Likewise.
8407         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
8408         * toplev.c (rest_of_compilation): Likewise.
8409         * config/ia64/ia64.c (ia64_reorg): Likewise.
8410
8411 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8412
8413         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
8414         of matching registers.
8415
8416 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8417
8418         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
8419         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
8420
8421 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
8422
8423         * config/mmix/mmix.h: Improve comments.
8424         (CPP_SPEC, CPP_PREDEFINES): Don't define.
8425         (TARGET_CPU_CPP_BUILTINS): Define.
8426         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
8427         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
8428         unused predicate.
8429         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
8430         compiler warning.
8431         (mmix_constant_address_p): Remove another
8432         redundant test before case.
8433         (mmix_canonicalize_comparison): Remove unused function.
8434         (mmix_print_operand_address): Don't test and adjust for operand in
8435         non-canonical format.
8436         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
8437         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
8438
8439 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8440
8441         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
8442         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
8443         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
8444         (gen_compare): Use CCmode unconditionally.
8445
8446 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8447
8448         PR optimization/6759
8449         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
8450         the REQ_EQUAL note.
8451
8452 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8453
8454         PR c/6660
8455         * c-decl.c (grokfield): Allow user defined types if they declare
8456         structs or unions for unnamed fields.
8457
8458 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8459
8460         PR c/6809
8461         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
8462
8463 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8464
8465         PR optimization/6842
8466         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
8467         operand subreg cannot be simplified.
8468
8469 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8470
8471         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
8472         (compare_constant): Likewise.
8473         (output_addressed_constants): Likewise.
8474
8475 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8476
8477         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
8478         merge bb with itself.
8479
8480 2002-06-10  Richard Henderson  <rth@redhat.com>
8481
8482         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
8483         (builtin_zapnot): Likewise.
8484
8485         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
8486         reservation.
8487
8488 2002-06-10  Eric Christopher  <echristo@redhat.com>
8489
8490         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
8491         prototype and function.
8492         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
8493         (call_insn_operand): Remove half pic references.
8494         (legitimate_address_p): Ditto.
8495         * config/i386/i386.h: Remove half pic defines.
8496
8497 2002-06-10  Eric Christopher  <echristo@redhat.com>
8498
8499         * doc/extend.texi (Return Address): Add note explaining the side-
8500         effects of inlining on __builtin_return_address.
8501
8502 2002-06-10  Tom Tromey  <tromey@redhat.com>
8503
8504         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
8505         (c-common.o): Depend on langhooks.h.
8506
8507 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8508
8509         * cpphash.h (_cpp_read_logical_line_trad,
8510         _cpp_expansions_different_trad): Update prototypes.
8511         * cpplex.c (continue_after_nul): New.
8512         * cppmain.c: Include cpphash.h.
8513         (scan_translation_unit_trad): New.
8514         (cpp_preprocess_file): Call it.
8515         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
8516         overlay.
8517         (_cpp_expansions_different_trad): Update prototype.
8518
8519 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8520
8521         Fix cfi generation for SH[1-4]:
8522
8523         * sh.c (frame_insn): New function.
8524         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
8525         (push): Now returns rtx.  Use frame_insn.
8526         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
8527         of a DF register.
8528         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
8529
8530 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8531
8532         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
8533         and gtype-desc.c.
8534         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
8535         (distclean): ... not here.  But do delete all testsuite/*.log,
8536         testsuite/*.sum files here.  Delete mkheaders.  Delete
8537         po/*.gmo and the testsuite directory in a split tree build.
8538
8539 2002-06-10  Jeffrey Law  <law@redhat.com>
8540
8541         * alias.c (static_reg_base_value): New to hold RTL for
8542         items allocated once per function for the aliasing code.
8543         (init_alias_once_per_function): Initialize static_reg_base_value.
8544         (init_alias_analysis): Avoid throw-away allocations of RTL by
8545         using pre-computed values in static_reg_base_value.
8546         * function.c (prepare_function_start): Call
8547         init_alias_once_per_function appropriately.
8548         * rtl.h (init_alias_once_per_function): Declare.
8549         * caller-save (init_caller_save): Restructure slightly to
8550         avoid lots of silly RTL generation.
8551         * expr.c (init_expr_once): Likewise.
8552         * reload1.c (reload_cse_regs_1): Allocate throw-away register
8553         RTL object here.  Pass it into children.
8554         (reload_cse_simplify_operands): Use passed-in register RTL
8555         object.
8556         (reload_cse_simplify): Pass through throw-away register
8557         RTL object.
8558
8559 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
8560
8561         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
8562
8563 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
8564
8565         * gcc.c (process_command): Avoid assignment to read-only location.
8566         Fix sizeof calculation.
8567
8568 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8569
8570         * cpphash.h (struct cpp_macro): Put comments on their own lines.
8571         (_cpp_expansions_different_trad): New.
8572         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
8573         * cpptrad.c (canonicalize_text): New.
8574         (scan_out_logical_line): Handle no arguments correctly.
8575         (save_replacement_text): Commit memory when finished.
8576         (_cpp_expansions_different_trad): New.
8577
8578 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8579
8580         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
8581         TREELANG and COBOL.
8582         (lang_names): Add treelang and cobol.
8583         (get_file_basename): Add code to support treelang and cobol as
8584         4th and 5th users of c-common.c.
8585
8586 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
8587
8588         * Makefile.in (install-driver): Install driver as
8589         $(target_alias)-gcc-$(version).
8590         * gcc.c (spec_version): Make const.
8591         (process_command): Handle -V and -b by using exec.
8592         * doc/invoke.texi (Target Options): Restore -V option,
8593         update docs for -b option.
8594
8595 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8596
8597         * configure.in (remaining_languages_check):
8598         Added check that all languages specified were found.
8599         Exit if not found. Previous behaviour was silent failure.
8600         * configure: Regenerated.
8601
8602 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8603
8604          First steps to making treelang documentation compliant, based on
8605          instructions in sourcebuild.texi. Also add to gcc.c list of
8606          default languages.
8607
8608         * doc/contrib.texi: Add self as contributor of treelang.
8609
8610         * doc/frontends.texi: Add mention of treelang.
8611
8612         * doc/invoke.texi (Overall Options): Add mention of treelang.
8613
8614         * doc/standards.texi:  Add mention of treelang.
8615
8616 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
8617
8618         * config/cris/cris.c: Include ggc.h
8619
8620 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8621
8622         * cpphash.h (_cpp_push_text_context): Update.
8623         (_cpp_arguments_ok): New.
8624         * cppmacro.c (_cpp_arguments_ok): New, split out from...
8625         (collect_args): ...here.
8626         (_cpp_push_text_context): Change inputs.
8627         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
8628         replace_args_and_push): New.
8629         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
8630         Don't use IS macros directly.
8631         (scan_out_logical_line): Handle function-like macro argument
8632         collection.
8633         (push_replacement_text): Update.
8634         (replacement_length): Remove.
8635         (_cpp_create_trad_definition): Don't skip whitespace before
8636         checking for '('.
8637
8638 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8639
8640         * config/avr/avr.c (avr_mcu_types): Update for new devices.
8641         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
8642         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
8643         * config/avr/avr.md ("type" and "length" attributes): New type
8644         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
8645         output a single "call" or "rcall" insn depending on device size.
8646         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
8647
8648 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
8649
8650         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
8651         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
8652         assembler option.
8653         (CPP_CPU_SPEC): Add power3 and power4.
8654         (PROCESSOR_DEFAULT): Change to 604e.
8655         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
8656         (CPP_CPU_SPEC): Similar additions.
8657         (enum process_type): Add POWER4.
8658         (RTX_COSTS): Add POWER4.
8659         (CPP_CPU_SPEC): Similar additions.
8660         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
8661         (PROCESSOR_DEFAULT64): Define.
8662         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
8663         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
8664         branch adjustment.
8665         (rs6000_issue_rate): Add Power4.
8666         * config/rs6000/rs6000.md (cpu attr): Add power4.
8667         (iu compare): Remove 604, 604e, 620, 630.
8668         Add basic Power4 scheduling information.
8669         (mfcr/mtcrf): Change type attribute to cr_logical.
8670
8671 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8672
8673         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
8674         ATTRIBUTE_PRINTF_2.
8675         * gengtype-lex.l: Fix format specifier warning.
8676
8677         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
8678         not isspace.
8679         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
8680         lieu of isspace/IDchar.
8681         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
8682         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
8683         ISSPACE.
8684
8685 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
8686
8687         * Makefile.in (LIBCPP_OBJS): Take out version.o.
8688         * cpphash.h (cpp_reader): Take out print_version member.
8689         * cppinit.c: (cpp_handle_option): Don't do anything with
8690         -version.  Just set help_only for --version, --target-help.
8691         Just set verbose option for -v.
8692         (cpp_post_options): Don't print a version string.
8693
8694 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8695
8696         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
8697         (avr_section_type_flags): New, handle .noinit* sections.
8698
8699 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8700
8701         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
8702         and include netbsd_entry_point.
8703         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
8704         (NETBSD_ENTRY_POINT): Define.
8705
8706 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8707
8708         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
8709         if not already defined.
8710         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
8711
8712 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8713
8714         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
8715         in a noreturn function.
8716         (avr_output_function_prologue, avr_output_function_epilogue):
8717         Correct function size calculation.  Do not crash on empty function.
8718         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
8719
8720 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8721
8722         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
8723         netbsd_link_spec and netbsd_entry_point.
8724         (LINK_SPEC): Use %(netbsd_link_spec).
8725         (NETBSD_ENTRY_POINT): Define.
8726
8727 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8728
8729         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
8730         linker emulation.
8731         (LINK_ARCH64_SPEC): Likewise.
8732         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
8733         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
8734
8735 2002-06-08  Marc Espie  <espie@openbsd.org>
8736
8737         * lists.c (free_list):  Fix typo in comment.
8738
8739 2002-06-08  Andreas Jaeger  <aj@suse.de>
8740
8741         * lcm.c (optimize_mode_switching): Add unused attribute for
8742         variable.
8743
8744         * sched-deps.c (sched_analyze): Remove unused variable.
8745
8746 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
8747
8748         * diagnostic.def: Don't capitalize diagnostict descriptors.
8749
8750 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8751
8752         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
8753         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
8754         (NETBSD_ENTRY_POINT): Define.
8755
8756 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8757
8758         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
8759         NETBSD_LINK_SPEC_ELF.
8760         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
8761         (NETBSD_ENTRY_POINT): Define.
8762         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
8763         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
8764         netbsd_entry_point.
8765         (NETBSD_ENTRY_POINT): Define.
8766
8767 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8768
8769         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
8770         netbsd_link_spec and netbsd_entry_point.
8771         (LINK_SPEC): Use %(netbsd_link_spec).
8772         (NETBSD_ENTRY_POINT): Define.
8773
8774 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8775
8776         * config/netbsd-elf.h (LINK_SPEC): Rename to...
8777         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
8778         to specify program entry point.
8779
8780 2002-06-07  Jeff Law <law@redhat.com
8781
8782         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
8783         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
8784         than creating a new register.
8785         (distribute_notes): Likewise.
8786         * df.c (df_reg_use_gen): Likewise.
8787         (df_reg_clobber_gen): Likewise.
8788         (df_ref_record): Likewise.
8789         * expr.c (use_regs): Likewise.
8790         * flow.c (propagate_one_insn): Likewise.
8791         (mark_set_1): Likewise.
8792         (mark_used_reg): Likewise.
8793         * reload.c (emit_reload_insns): Likewise.
8794
8795 2002-06-07  Roger Sayle  <roger@eyesopen.com>
8796
8797         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
8798         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
8799         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
8800         comparison code comp can be reversed.
8801
8802 2002-06-07  Roger Sayle  <roger@eyesopen.com>
8803
8804         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
8805         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
8806         equivalent x > -1.0 when -ffast-math.
8807
8808 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8809
8810         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
8811         * config/mips/t-netbsd: New file.
8812
8813 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
8814
8815         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
8816         options their own entries.
8817         (parse_option): Clarify comment.
8818         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
8819         special case.  Replace if/strcmp chain for -W options with
8820         use of new OPT_* entries for them.
8821         (cpp_handle_options): Update to match.
8822         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
8823         * c-decl.c: Update call to cpp_handle_option.
8824
8825 2002-06-07  Akim Demaille  <akim@epita.fr>
8826
8827         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
8828         Whitespace changes.
8829
8830 2002-06-07  Jeffrey Law  <law@redhat.com>
8831
8832         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
8833         on empty lists.
8834
8835 2002-06-07  H.J. Lu  (hjl@gnu.org)
8836
8837         * configure.in: Add --enable-__cxa_atexit.
8838         * configure: Regenerated.
8839         * config.in: Likewise.
8840
8841         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
8842         not defined.
8843
8844 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
8845
8846         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
8847
8848 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8849
8850         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
8851
8852 2002-06-07  Jason Merrill  <jason@redhat.com>
8853
8854         * cppexp.c (num_equality_op): Use a temporary variable to work
8855         around gcc 3.0.4 bug.
8856
8857 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
8858
8859         * diagnostic.c (diagnostic_build_prefix): Tidy.
8860
8861 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8862
8863         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
8864         scan_parameters, save_replacement_text, replacement_length): New.
8865         (scan_out_logical_line): Take a macro and save parameters if
8866         non-NULL.
8867         (_cpp_logical_line_trad): Update.
8868         (_cpp_create_trad_definition): Update to handle function-like
8869         macros.
8870         * cpplex.c (new_buff): Update.
8871         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
8872         * cpphash.h: ...here.
8873         (CPP_ALIGN2, _cpp_save_parameter): New.
8874         * cppmacro.c (save_parameter): Rename, export.
8875         (parse_params): Update.
8876
8877 2002-06-07  Andreas Jaeger  <aj@suse.de>
8878
8879         * config/mmix/mmix.c: Remove extra broken prototype for
8880         mmix_init_machine_status.
8881
8882 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
8883
8884         * gengtype.c: Add comments before all the routines.
8885
8886 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8887
8888         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
8889         from and add t-sh64 to ${tmake_file}.
8890         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
8891         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
8892         * config/sh/t-netbsd-sh5-32: Remove.
8893         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
8894         MULTILIB_ENDIAN.
8895         (MULTILIB_DIRNAMES): Define.
8896
8897 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
8898
8899         * i386.md (and promoting splitters): Disable QI to SImode promoting
8900         when doing so changes immediate to be 32bit.
8901
8902         * rtl.h (emit_*_scope): Declare.
8903         * emit-rtl.c (emit_*_scope): New global functions.
8904         (try_split): Copy scope.
8905         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
8906         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
8907         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
8908         noce_process_if_block, find_cond_trap): Copy scopes.
8909         * recog.c (peephole2_optimize): likewise.
8910
8911 2002-06-06  Jeffrey Law  <law@redhat.com>
8912
8913         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
8914
8915 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
8916
8917         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
8918
8919 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8920
8921         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
8922         ($(docdir)/gccinstall.info): New target.
8923         (info): Depend on it.
8924         (gccinstall.dvi): New target.
8925         (dvi): Depend on it.
8926         * doc/.cvsignore: Ignore new info files.
8927         * doc/install.texi (@setfilename): Reflect new info filename.
8928
8929 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
8930
8931         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
8932         on an UNSPEC.
8933
8934 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
8935
8936         PR objc/6834
8937         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
8938         c_common_get_alias_set.
8939         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
8940
8941 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8942
8943         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
8944         functions.
8945         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
8946         * avr/avr.c (avr_output_function_epilogue): Use above to determine
8947         function size.
8948         * pa/pa.c (pa_output_function_prologue): Likewise.
8949
8950 2002-06-05  David S. Miller  <davem@redhat.com>
8951
8952         * integrate.c (subst_constants): Handle 'B' RTL format.
8953
8954 2002-06-05  Eric Christopher  <echristo@redhat.com>
8955
8956         * varasm.c (make_decl_rtl): Fix comment for removed
8957         halfpic.c.
8958
8959 2002-06-05  Eric Christopher  <echristo@redhat.com>
8960
8961         * Makefile.in: Remove missed halfpic bits.
8962
8963 2002-06-05  Eric Christopher  <echristo@redhat.com>
8964
8965         * toplev.c: Remove half-pic.
8966         * config/mips/mips.c: Ditto.
8967         * config/mips/mips.h: Ditto. Remove unused defines.
8968         * config/mips/openbsd.h: Update comment to reflect above.
8969         * config/mips/mips.md: Remove half-pic constraints.
8970         * halfpic.h: Delete.
8971         * halfpic.c: Ditto.
8972
8973 2002-06-05  Jeffrey Law  <law@redhat.com>
8974
8975         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
8976         rejects (mem (lo_sum (reg) (unspec))), but will allow
8977         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
8978
8979 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8980
8981         * cpphash.h (_cpp_create_definition): Update prototype.
8982         (_cpp_push_text_context, _cpp_create_trad_definition): New.
8983         ( cpp_lex_identifier_trad): New.
8984         (_cpp_set_trad_context): New.
8985         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
8986         * cpplib.c (SEEN_EOL): Update.
8987         (lex_macro_node): Update for -traditional.
8988         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
8989         * cppmacro.c (_cpp_create_definition): Split into
8990         create_iso_definition() and _cpp_create_trad_definition().
8991         (warn_of_redefinition): Update prototype; handle traditional
8992         macros.
8993         (_cpp_push_text_context): New.
8994         * cpptrad.c (skip_whitespace, push_replacement_text): New.
8995         (lex_identifier): Call ht_lookup with correct start.
8996         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
8997         _cpp_set_trad_context): New.
8998         (scan_out_logical_line): Update to handle changing contexts.
8999
9000 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
9001
9002         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
9003         (shl*-*-elf*): Add.
9004         * config/sh/t-be (MULTILIB_ENDIAN): Set.
9005         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
9006         * t-sh (MULTILIB_ENDIAN): Set.
9007         (MULTILIB_OPTIONS): Use it.
9008         * t-sh64 (MULTILIB_OPTIONS): Likewise.
9009         (MULTILIB_DIRNAMES): Likewise.
9010
9011 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
9012
9013         * toplev.h (report_error_function): Remove.
9014
9015         * diagnostic.h (location_t): New datatype.
9016         (text_info): Likewise.
9017         (diagnostic_info): Likewise.
9018         (output_prefix): New macro.
9019         (diagnostic_last_function_changed): Likewise.
9020         (diagnostic_set_last_function): Likewise.
9021         (diagnostic_last_module_changed): Likewise.
9022         (diagnostic_set_last_module): Likewise.
9023         (report_diagnostic): Now macro.
9024         (diagnostic_set_info): Declare.
9025
9026         * diagnostic.c (report_problematic_module): Rename to
9027         diagnostic_repor_current_module.
9028         (set_diagnostic_context): Remove.
9029         (count_error): Rename to diagnostic_error_count.
9030         (error_function_changed): Remove.
9031         (record_last_error_function): Likewise.
9032         (error_module_changed): Likewise.
9033         (record_last_error_module): Likewise.
9034         (context_as_prefix): Rename to diagnostic_build_prefix.
9035         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
9036         (diagnostic_set_info): New function.
9037
9038         * objc/objc-act.c: #include diagnostic.h
9039         (error_with_ivar): Adjust call to count_error.
9040         (warn_with_method): Likewise.
9041         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
9042
9043 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
9044
9045         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
9046         lang_hooks.types.make_type instead of make_node; set up
9047         __va_list_tag type decl.
9048         (xtensa_builtin_saveregs): Remove broken use of
9049         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
9050         for saved registers; add varargs alias set.
9051
9052 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9053
9054 config:
9055         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
9056         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9057         CPP_PREDEFINES and part of CPP_SPEC.
9058         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
9059         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
9060
9061 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
9062
9063         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
9064
9065 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
9066
9067         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
9068
9069 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
9070
9071         * gengtype-yacc.y: Make sure all rules end with a semicolon.
9072
9073 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
9074
9075         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
9076         typo in function prototype and include "ggc.h" header.
9077
9078 2002-06-04  Richard Henderson  <rth@redhat.com>
9079
9080         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9081         (print_operand) ['U']: Likewise.
9082         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
9083         (alpha_expand_unaligned_store_words): Likewise.
9084         (alpha_expand_builtin_vector_binop): Fix typo.
9085         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
9086         umulh, and cix insns.
9087         (one_arg_builtins): Add cix builtins.
9088         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
9089         (alpha_expand_builtin): Fix typo in arity.
9090         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
9091         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
9092         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
9093         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
9094         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
9095         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
9096         builtin_ctlz, builtin_ctpop): New.
9097         * doc/extend.texi (Alpha Built-in Functions): Update.
9098
9099 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
9100
9101         * gengtype.c (write_gc_root): Don't unnecessarily prevent
9102         global variable-length arrays being roots.
9103
9104         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
9105         * configure.in (config_gtfiles): New variable.
9106         (all_gtfiles): Initialise from config_gtfiles.
9107         * configure: Regenerate.
9108
9109 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9110
9111 config/i386:
9112         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
9113         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
9114         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
9115         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
9116         win32.h (CPP_SPEC): Remove cpp_cpu.
9117         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
9118         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
9119
9120 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
9121
9122         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
9123
9124 2002-06-04  Jeff Law <law@redhat.com.
9125             David Edelsohn <edelsohn@gnu.org>
9126             Michael Matz <matz@kde.org>
9127
9128         * sched-int.h (struct deps): New field libcall_block_tail_insn.
9129         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
9130         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
9131         is set, then mark the current insn as being part of a libcall
9132         scheduling group.
9133         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
9134
9135         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
9136         insns against the issue rate.
9137
9138 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
9139
9140         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
9141         * final.c (final_scan_insn): Likewise.
9142         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
9143         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
9144         * haifa-sched.c (unlink_other_notes): Likeewise.
9145         (reemit_notes): Likewise.
9146         * print-rtl.c (print_rtx): Likewise.
9147         * sched-deps (sched-analyze): Likewise.
9148         * rtl.c (note_insn_name): Likewise.
9149         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
9150         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
9151         (RANGE_*): Kill.
9152
9153 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
9154
9155         * varasm.c (mark_constants): Handle RTX format 'B'.
9156
9157 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9158
9159         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
9160         (struct cpp_context): Add traditional fields.
9161         * cppmacro.c (paste_all_tokens, push_ptoken_context,
9162         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
9163         * cpptrad.c (skip_comment, lex_identifier,
9164         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
9165
9166 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
9167
9168         * gbl-ctors.h: Fix formatting.
9169         * gcc.c: Likewise.
9170         * gccspec.c: Likewise.
9171         * gcov.c: Likewise.
9172         * gcov-io.h: Likewise.
9173         * gcse.c: Likewise.
9174         * ggc-common.c: Likewise.
9175         * ggc.h: Likewise.
9176         * ggc-page.c: Likewise.
9177         * ggc-simple.c: Likewise.
9178         * global.c: Likewise.
9179         * graph.h: Likewise.
9180         * gthr-dce.h: Likewise.
9181         * gthr.h: Likewise.
9182         * gthr-posix.h: Likewise.
9183         * gthr-rtems.h: Likewise.
9184         * gthr-solaris.h: Likewise.
9185         * gthr-win32.h: Likewise.
9186
9187 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
9188
9189         Merge from pch-branch:
9190
9191         * gengtype.h (UNION_OR_STRUCT_P): New macro.
9192         * gengtype.c (write_gc_structure_fields): Use it.
9193         (write_gc_root): Use it here too.
9194
9195         * gengtype.c (write_gc_structure_fields): Assume that lengths
9196         of typenames fit into an 'int'; don't pass a size_t to "%d" in
9197         printf.
9198         (write_gc_marker_routine_for_structure): Likewise.
9199         (write_gc_types): Likewise.
9200         (write_gc_root): Likewise.
9201
9202         * varray.h (VARRAY_CLEAR): New.
9203         (varray_clear): Prototype.
9204         * varray.c (varray_clear): New.
9205         * cselib.c (reg_values_old): New.
9206         (used_regs_old): New.
9207         (cselib_init): Use cached varrays if available to avoid
9208         generating large amounts of garbage.
9209         (cselib_finish): Don't throw away old varrays.
9210
9211         * final.c (insn_addresses_): Move out of ifdef.
9212
9213         * varray.c (uses_ggc): Make more varray kinds GCable.
9214         * varray.h (union varray_data_tag): Let gengtype see
9215         fields 'generic' and 'te'.
9216         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
9217         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
9218         (reg_to_stack): Don't call VARRAY_FREE.
9219         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
9220         (insn_addresses_): Use gengtype to mark.
9221         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
9222         pointers; handle generic pointers in unused union fields.
9223         (get_output_file_with_visibility): Include cselib.h,
9224         insn-addr.h in gtype-desc.c.
9225         * function.c (prologue): Use gengtype to mark.
9226         (epilogue): Likewise.
9227         (sibcall_epilogue): Likewise.
9228         * dependence.c: Include gt-dependence.h, ggc.h.
9229         (struct def_use): Use gengtype to mark.
9230         (struct loop): Likewise.
9231         (struct induction): Likewise.
9232         (struct dependence): Likewise.
9233         (def_use_chain): Likewise.
9234         (dep_chain): Likewise.
9235         (loop_chain): Likewise.
9236         (induction_chain): Likewise.
9237         (init_dependence_analysis): Don't free anything, just clear pointers.
9238         (build_def_use): Use GGC to allocate def_use.
9239         (add_loop): Use GGC to allocate loop.
9240         (find_induction_variable): Use GGC to allocate induction.
9241         (check_node_dependence): Use GGC to allocate induction, dependence.
9242         (dump_node_dependence): Don't free varrays.
9243         (end_dependence_analysis): Likewise.
9244         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
9245         (struct elt_loc_list): Likewise.
9246         (struct elt_list): Likewise.
9247         * cselib.c: Don't include obstack.h.
9248         (hash_table): Use gengtype to mark.
9249         (reg_values): Use gengtype to mark.
9250         (used_regs): Use gengtype to mark.
9251         (cselib_obstack): Delete.
9252         (cselib_startobj): Delete.
9253         (empty_vals): Mark as deletable.
9254         (empty_elt_lists): Mark as deletable.
9255         (empty_elt_loc_lists): Mark as deletable.
9256         (new_elt_list): Use GGC to allocate struct elt_list.
9257         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
9258         (clear_table): Don't delete obstack; don't unnecessarily clear
9259         deletable variables.
9260         (new_cselib_val): Use GGC to allocate struct cselib_val.
9261         (cselib_init): Don't set up obstacks.  Use GGC to allocate
9262         hash table.
9263         (cselib_finish): Just clear variables, don't free anything.
9264         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
9265         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
9266         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
9267         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
9268         (gt-reg-stack.h): New rule.
9269         (gt-dependence.h): New rule.
9270         (gtype-desc.o): Add cselib.h, insn-addr.h.
9271
9272         * varray.c: Use only necessary headers.
9273         (element_size): New.
9274         (uses_ggc): New.
9275         (varray_init): Take type, not size.  Use GGC if appropriate.
9276         (varray_grow): Update for change to struct varray_head_tag.
9277         Use GGC if appropriate.
9278         * varray.h (struct const_equiv_data): Use gengtype.
9279         (enum varray_data_enum): New.
9280         (union varray_data_tag): Use gengtype.
9281         (struct varray_head_tag): Use gengtype.  Replace size field with
9282         enum varray_data_enum.
9283         (varray_init): Update prototype.
9284         (VARRAY_SCHED_INIT): Delete.
9285         (VARRAY_*_INIT): Update for change to varray_init.
9286         (VARRAY_SCHED): Delete.
9287         (VARRAY_PUSH_SCHED): Delete.
9288         (VARRAY_TOP_SCHED): Delete.
9289         * tree.h: Update for change to length specifier.
9290         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
9291         (clone_body): Likewise.
9292         * ssa.h (ssa_definition): Use gengtype to mark.
9293         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
9294         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
9295         * rtl.h (struct rtvec_def): Update for change to length specifier.
9296         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
9297         (struct initial_value_struct): Update for change to length specifier.
9298         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
9299         (ggc_add_tree_varray_root): Delete prototype.
9300         (ggc_mark_rtx_varray): Delete prototype.
9301         (ggc_mark_tree_varray): Delete prototype.
9302         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
9303         (ggc_add_tree_varray_root): Delete.
9304         (ggc_mark_rtx_varray): Delete.
9305         (ggc_mark_tree_varray): Delete.
9306         (ggc_mark_rtx_varray_ptr): Delete.
9307         (ggc_mark_tree_varray_ptr): Delete.
9308         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
9309         (create_varray): Delete prototype.
9310         * gengtype.c (varrays): Delete.
9311         (create_varray): Delete.
9312         (adjust_field_type): Detect array of string pointers.
9313         (process_gc_options): Remove code to handle varray_type option.
9314         (set_gc_used_type): Remove TYPE_VARRAY case.
9315         (output_escaped_param): New.
9316         (write_gc_structure_fields): Use output_escaped_param on all
9317         parameters.  Handle 'skip' with 'use_param' option.  Handle
9318         arrays of strings.  Remove TYPE_VARRAY handling.
9319         (write_gc_roots): Use boolean to detect 'length' option.
9320         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
9321         (struct_fields): Call adjust_field_type on array fields.
9322         (type): Remove VARRAY_TYPE case.
9323         (type_option): Likewise.
9324         * gengtype-lex.l: Don't consider varray_type a keyword.
9325         * function.h: Update for change to length specifier.
9326         (free_eh_status): Delete prototype.
9327         * function.c (free_after_compilation): Don't call free_eh_status.
9328         (reorder_blocks): Don't use VARRAY_FREE.
9329         * except.c (struct eh_status): Update for change to length specifier.
9330         remove varray_type specifier.
9331         (free_eh_status): Delete.
9332         * dwarf2out.c: Include gt-dwarf2out.h.
9333         (used_rtx_varray): Use gengtype to mark, move
9334         outside ifdefs.
9335         (incomplete_types): Likewise.
9336         (decl_scope_table): Likewise.
9337         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
9338         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
9339         * c-tree.h (struct lang_type): Update for change to length specifier.
9340         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
9341         * c-objc-common.c: Include gt-c-objc-common.h.
9342         (deferred_fns): Mark for gengtype.
9343         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
9344         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
9345         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
9346         (gtype-desc.o): Update dependencies.
9347         (dwarf2out.o): Add gt-dwarf2out.h.
9348         (varray.o): Update dependencies.
9349         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
9350         (gt-c-objc-common.h): New rule.
9351         (gt-dwarf2out.h): New rule.
9352         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
9353
9354         * doc/gty.texi (GTY Options): Correct spelling.
9355         (GGC Roots): Likewise.
9356         * Makefile.in (TEXI_CPP_FILES): New.
9357         (TEXI_GCC_FILES): New.
9358         (TEXI_GCCINT_FILES): New.
9359         (TEXI_CPPINT_FILES): New.
9360         ($(docdir)/cpp.info): Use new macros.
9361         ($(docdir)/gcc.info): Likewise.
9362         ($(docdir)/gccint.info): Likewise.
9363         ($(docdir)/cppinternals.info): Likewise.
9364         (cpp.dvi): Likewise.
9365         (gcc.dvi): Likewise.
9366         (gccint.dvi): Likewise.
9367         (cppinternals.dvi): Likewise.
9368
9369         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
9370         * doc/gccint.texi (Top): Include gty.texi.
9371         * doc/gty.texi: New file.
9372
9373         * bitmap.c: Include ggc.h, gt-bitmap.h.
9374         (bitmap_ggc_free): New.
9375         (bitmap_elem_to_freelist): New.
9376         (bitmap_element_free): Use bitmap_elem_to_freelist.
9377         (bitmap_element_allocate): Allow use of GGC.
9378         (bitmap_clear): Use bitmap_elem_to_freelist.
9379         (bitmap_copy): Update for change to bitmap_element_allocate.
9380         (bitmap_set_bit): Likewise.
9381         (bitmap_operation): Update for changes elsewhere.
9382         (bitmap_initialize): Allow to create bitmaps that will use GGC.
9383         * bitmap.h (struct bitmap_element_def): Use gengtype.
9384         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
9385         (bitmap_initialize): Add extra parameter.
9386         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
9387         (BITMAP_ALLOCA): Delete.
9388         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
9389         (BITMAP_GGC_ALLOC): New.
9390         * Makefile.in (gtype-desc.o): Add bitmap.h.
9391         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
9392         (GTFILES): Add bitmap.c.
9393         (gt-bitmap.h): New rule.
9394         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
9395         * basic-block.h: Update for changes to bitmap_initialize.
9396         * except.c (exception_handler_label_map): Move into...
9397         (struct eh_status): Here.
9398         (struct eh_region): Make 'aka' GCable.
9399         (free_eh_status): Don't need to specially handle
9400         exception_handler_label_map.
9401         (add_ehl_entry): Update for changes to exception_handler_label_map.
9402         (find_exception_handler_labels): Likewise.
9403         (remove_exception_handler_label): Likewise.
9404         (maybe_remove_eh_handler): Likewise.
9405         (for_each_eh_label): Likewise.
9406         (remove_eh_handler): Allocate 'aka' using GGC.
9407         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
9408         to list of includes.
9409
9410         * gengtype.c (write_gc_marker_routine_for_structure): Name
9411         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
9412         (write_gc_types): Arrange for the tests with NULL to be inlined.
9413         (write_gc_roots): Update uses of procedure pointers.
9414         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
9415
9416         * Makefile.in (explow.o): Add dependency on gt-explow.h.
9417         (sdbout.o): Add dependency on gt-sdbout.h.
9418
9419         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
9420         (mem_attrs_htab): Likewise.
9421         (init_emit_once): Don't call ggc_add_deletable_htab.
9422         * fold-const.c (size_htab): Use gengtype to clear unused entries.
9423         (size_int_type_wide): Don't call ggc_add_deletable_htab.
9424         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
9425         parameters, use them, change callers.
9426         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
9427         (write_gc_roots): Handle 'if_marked' option.
9428         (main): Don't need to call set_gc_used_type any more.
9429         * ggc.h (ggc_htab_marked_p): Delete.
9430         (ggc_htab_mark): Delete.
9431         (struct ggc_cache_tab): New.
9432         (gt_ggc_cache_rtab): New declaration.
9433         * ggc-common.c (struct d_htab_root): Delete.
9434         (d_htab_roots): Delete.
9435         (ggc_add_deletable_htab): Delete.
9436         (ggc_htab_delete): Handle new htab-deleting mechanism.
9437         (ggc_mark_roots): Use new htab-deleting mechanism.
9438         * tree.c (type_hash_table): Use gengtype to clear unused entries.
9439         Make static.
9440         (init_obstacks): Don't call ggc_add_deletable_htab.
9441
9442         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
9443         (struct hashed_entry): Likewise.
9444         (nst_method_hash_list): Likewise.
9445         (cls_method_hash_list): Likewise.
9446         (HASH_ALLOC_LIST_SIZE): Delete.
9447         (ATTR_ALLOC_LIST_SIZE): Delete.
9448         * objc/objc-act.c (hash_init): Use ggc to allocate
9449         nst_method_hash_list, cls_method_hash_list.
9450         (hash_enter): Use ggc to allocate; allocate one entry at a time.
9451         (hash_add_attr): Likewise.
9452         (ggc_mark_hash_table): Delete.
9453         (objc_act_parse_init): Delete.
9454         (objc_init): Delete reference to objc_act_parse_init.
9455         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
9456         obstack.h.  Replace references to 'struct hash_table' with htab_t.
9457         (struct symbol_hash_entry): Replace hash header with key field.
9458         (struct file_hash_entry): Replace hash header with key field.
9459         (struct demangled_hash_entry): Replace hash header with key field.
9460         (hash_string_eq): New.
9461         (hash_string_hash): New.
9462         (symbol_hash_newfunc): Delete.
9463         (symbol_hash_lookup): Modify to use htab_t.
9464         (file_hash_newfunc): Delete.
9465         (file_hash_lookup): Modify to use htab_t.
9466         (demangled_hash_newfunc): Delete.
9467         (demangled_hash_lookup): Modify to use htab_t.
9468         (tlink_init): Modify to use htab_t.
9469         * hash.h: Delete.
9470         * hash.c: Delete.
9471         * ggc.h: Delete forward structure declarations.
9472         Delete prototypes for deleted functions.
9473         * ggc-common.c: Don't include hash.h.
9474         (ggc_add_tree_hash_table_root): Delete.
9475         (ggc_mark_tree_hash_table_entry): Delete.
9476         (ggc_mark_tree_hash_table): Delete.
9477         (ggc_mark_tree_hash_table_ptr): Delete.
9478         * gengtype.c (write_gc_structure_fields): Allow param_is option.
9479         (write_gc_marker_routine_for_structure): Use visibility of
9480         the parameter if there is one.
9481         * function.c: Replace hash.h with hashtab.h.  Replace references
9482         to 'struct hash_table *' with htab_t.
9483         (struct insns_for_mem_entry): Include a plain key.
9484         (fixup_var_refs_insns_with_hash): Update to use htab_t.
9485         (insns_for_mem_newfunc): Delete.
9486         (insns_for_mem_hash): Update to use htab_t.
9487         (insns_for_mem_comp): Likewise.
9488         (insns_for_mem_walk): Likewise.
9489         * c-lang.c: Include ggc.h.
9490         * Makefile.in (OBJS): Remove hash.o.
9491         (c-lang.o): Add GGC_H.
9492         (COLLECT2_OBJS): Remove hash.o.
9493         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
9494         (ggc-common.o): Remove hash.h.
9495         (function.o): Remove hash.h, add HASHTAB_H.
9496         (genautomata.o): Remove hash.h, add HASHTAB_H.
9497
9498         * varasm.c (mark_const_str_htab_1): Delete.
9499         (mark_const_str_htab): Delete.
9500         (const_str_htab_del): Delete.
9501         (const_str_htab): Use gengtype to mark.
9502         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
9503         allocate them.
9504         * tree.c (mark_tree_hashtable_entry): Delete.
9505         (mark_tree_hashtable): Delete.
9506         * tree.h (mark_tree_hashtable): Delete prototype.
9507         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
9508         (ggc_mark): Likewise.
9509         (ggc_calloc): New.
9510         (htab_create_ggc): New.
9511         * ggc-common.c (ggc_calloc): New.
9512         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
9513         (struct type): Add param_struct structure.
9514         * gengtype.c (param_structs): New.
9515         (adjust_field_type): Handle param_is option.
9516         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
9517         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
9518         (write_gc_structure_fields): Add new PARAM parameter.  Update
9519         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
9520         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
9521         Use it to generate function name.  Update callers.
9522         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
9523         Process them.
9524         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
9525         option.
9526         (main): Define PTR as pointer-to-scalar.  Don't specially
9527         mark deferred_string or ehl_map_entry.
9528         * gengtype-yacc.y (PARAM_IS): Add new token.
9529         (externstatic): Use adjust_field_type.
9530         (type_option): Add PARAM_IS.
9531         * gengtype-lex.l: Add rule for typedef of function pointers.
9532         Add rule for PARAM_IS.
9533         (IWORD): Add size_t.
9534         * except.c (exception_handler_label_map): Use gengtype to mark.
9535         (type_to_runtime_map): Likewise.
9536         (mark_ehl_map_entry): Delete.
9537         (mark_ehl_map): Delete.
9538         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
9539         (t2r_mark_1): Delete.
9540         (t2r_mark): Delete.
9541         * Makefile.in (gtype-desc.o): Correct dependencies.
9542         (GTFILES): Add hashtab.h.
9543         (genautomata.o): Actually uses hashtab.h.
9544
9545         * Makefile.in (stringpool.o): Add $(GGC_H).
9546         (dwarf2asm.o): Likewise.
9547         (GTFILES): Add hashtable.h.
9548         * c-common.h (struct c_common_identifier): Use gengtype.
9549         * c-decl.h (c_mark_tree): Delete.
9550         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
9551         * c-tree.h (struct lang_identifier): Use gengtype.
9552         (union lang_tree_node): New.
9553         (c_mark_tree): Delete prototype.
9554         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
9555         dwarf2_debug_hooks.
9556         * gengtype-lex.l (IWORD): Allow 'bool'.
9557         (ptr_alias): Match.
9558         * gengtype-yacc.y (ALIAS): New token.
9559         (type_option): New rule.
9560         (option): Use type_option.
9561         * gengtype.c (process_gc_options): New.
9562         (set_gc_used_type): Use it.
9563         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
9564         Add new variable 't' to hold the type of the field being processed.
9565         Add more error checking.  Use UNION_P when looking at 'desc' option.
9566         Handle language-specific structures containing other
9567         language-specific structures.
9568         (write_gc_types): Handle 'ptr_alias' option.
9569         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
9570         * ggc-common.c (ggc_pending_trees): Delete.
9571         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
9572         (ggc_mark_trees): Delete.
9573         (gt_ggc_m_tree_node): Delete.
9574         * ggc.h (ggc_pending_trees): Delete.
9575         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
9576         * hashtable.h (ht_identifier): Use gengtype.
9577         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
9578         * langhooks.h (struct lang_hooks): Delete mark_tree.
9579         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
9580         anyway.
9581         * system.h: Poison LANG_HOOKS_MARK_TREE.
9582         * tree.c (tree_node_structure): New.
9583         * tree.h (struct tree_common): Use gengtype.
9584         (struct tree_int_cst): Likewise.
9585         (struct tree_real_cst): Likewise.
9586         (struct tree_string): Likewise.
9587         (struct tree_complex): Likewise.
9588         (struct tree_vector): Likewise.
9589         (struct tree_identifier): Likewise.
9590         (struct tree_list): Likewise.
9591         (struct tree_vec): Likewise.
9592         (struct tree_exp): Likewise.
9593         (struct tree_block): Likewise.
9594         (struct tree_type): Likewise.
9595         (struct tree_decl): Likewise.
9596         (enum tree_structure_enum): New.
9597         (union tree_node): Use gengtype, with an alias.
9598         (tree_node_structure): Prototype.
9599         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
9600
9601         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
9602         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
9603         to LANG_HOOKS_FUNCTION_FINAL.
9604         * Makefile.in (GTFILES): Add bitmap.h.
9605         * except.c (struct eh_region): Mark field 'aka' to be skipped.
9606
9607         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
9608         (alpha_init_machine_status): Give proper type.
9609         * Makefile.in (c-lang.o): Depend on gtype-c.h.
9610         (optabs.o): Depend on gt-optabs.h.
9611         (GTFILES): Add optabs.o.
9612         (gt-optabs.h): Add rule.
9613         * optabs.c: Include gt-optabs.h.
9614
9615         * gengtype.c (set_gc_used_type): Correct some errors in last change.
9616         (write_gc_structure_fields): If a field which should be NULL is
9617         not, abort.
9618         * c-pragma.c: Move struct align_stack and variable alignment_stack
9619         out from the ifdef.
9620
9621         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
9622         * config/xtensa/xtensa.c: Include gt-cris.h.
9623         (struct machine_function): Use gengtype to mark.
9624         * config/mmix/mmix.h (struct machine_function): Use gengtype
9625         to mark.
9626         * config/cris/t-cris: Add dependencies for gt-cris.h.
9627         * config/cris/cris.c: Include gt-cris.h.
9628         (struct machine_function): Use gengtype to mark.
9629         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
9630         to mark.
9631         * doc/tm.texi (Per-Function Data): Delete references to
9632         mark_machine_status.
9633         * config/ia64/ia64.c (ia64_override_options): Don't set
9634         mark_machine_status.
9635         * config/i386/i386.c (override_options): Likewise.
9636         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
9637         * config/arm/arm.c (arm_init_expanders): Likewise.
9638         * config/alpha/alpha.c (override_options): Likewise.
9639         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
9640         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
9641         (write_gc_structure_fields): Don't handle 'really' option.
9642         Handle 'maybe_null' option.
9643         (write_gc_types): Handle 'maybe_null' option.
9644         * function.h (struct function): Don't use "really".
9645         (mark_machine_status): Delete declaration.
9646         (mark_lang_status): Delete declaration.
9647         (gt_ggc_mr_machine_function): Delete prototype.
9648         (gt_ggc_mr_language_function): Delete prototype.
9649         * function.c (mark_machine_status): Delete.
9650         (mark_lang_status): Delete.
9651         (gt_ggc_mr_machine_function): Delete.
9652         (gt_ggc_mr_language_function): Delete.
9653         * c-tree.h (mark_c_function_context): Delete prototype.
9654         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
9655         * c-decl.c (struct language_function): Rename from struct
9656         c_language_function.  Update uses.  Use gengtype to mark.
9657         (mark_c_function_context): Delete.
9658         * c-common.h (struct c_language_function): Rename from struct
9659         language_function.
9660         (mark_stmt_tree): Delete prototype.
9661         (c_mark_lang_decl): Delete prototype.
9662         (mark_c_language_function): Delete prototype.
9663         * c-common.c (mark_stmt_tree): Delete.
9664         (c_mark_lang_decl): Delete.
9665         (mark_c_language_function): Delete.
9666
9667         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
9668         (lang_bitmap): New typedef.  Use where appropriate.
9669         (struct type): Add gc_used field, lang_struct field.
9670         (UNION_P): New macro.
9671         (new_structure): New prototype.
9672         (find_structure): Remove 'pos' parameter.  Change all callers.
9673         * gengtype-lex.l: Update for changes to find_structure.
9674         * gengtype-yacc.y (typedef_struct): Use new_structure.
9675         (yacc_ids): Suppress warning.
9676         (type): Use new_structure.
9677         * gengtype.c (string_type): Update for changes to struct type.
9678         (find_structure): Just find a structure, don't worry about
9679         creating one.
9680         (new_structure): New.
9681         (note_yacc_type): Use new_structure.
9682         (set_gc_used_type): New.
9683         (set_gc_used): New.
9684         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
9685         (write_gc_types): Handle TYPE_LANG_STRUCT.
9686         (write_gc_marker_routine_for_structure): New.
9687         (main): Call set_gc_used.  Add some calls to set_gc_used_type
9688         for places where GCC doesn't use gengtype properly yet.
9689         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
9690         (gt_ggc_m_tree_node): Likewise.
9691
9692         * varasm.c (copy_constant): Call expand_constant if we hit
9693         something we can't recognise.
9694
9695         * ggc-common.c (ggc_mark_rtvec_children): Delete.
9696         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
9697         (lang_mark_false_label_stack): Delete.
9698         * rtl.h (struct rtvec_def): Use gengtype to mark.
9699         * ggc.h (ggc_mark_rtvec): Delete.
9700         (gt_ggc_m_rtvec_def): Delete.
9701         (ggc_mark_nonnull_tree): Delete.
9702         (ggc_mark_rtvec_children): Delete prototype.
9703         (lang_mark_false_label_stack): Delete declaration.
9704
9705         * gengtype.h (note_yacc_type): Add prototype.
9706         * gengtype.c (note_yacc_type): New function.
9707         * gengtype-lex.l: Add lexer support for yacc files.
9708         * gengtype-yacc.y (start): Extract union from yacc files.
9709         (yacc_union): New rule.
9710         (yacc_typematch): New rule.
9711         (yacc_ids): New rule.
9712         (enum_items): Tweak for efficiency.
9713         (optionseq): Likewise.
9714
9715         * c-common.h (struct language_function): Use gengtype.
9716         (struct c_lang_decl): Likewise.
9717         * c-tree.h (struct lang_decl): Likewise.
9718         (struct lang_type): Likewise.
9719         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
9720         tree language substructures.
9721
9722         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
9723         ggc_mark_tree.
9724         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
9725
9726         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
9727
9728         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
9729         mark. Remove 'data.block.cleanup_ptr' field.
9730         (struct stmt_status): Use usual technique to mark struct nesting.
9731         (gt_ggc_mr_nesting_cond): Delete.
9732         (gt_ggc_mr_nesting_loop): Delete.
9733         (gt_ggc_mr_nesting_block): Delete.
9734         (gt_ggc_mr_nesting_case_stmt): Delete.
9735         (expand_start_cond): Set discriminator.
9736         (expand_start_loop): Likewise.
9737         (expand_start_null_loop): Likewise.
9738         (expand_start_bindings_and_block): Set discriminator.  Don't set
9739         deleted fields.
9740         (expand_decl_cleanup): Replace 'cleanup_ptr' with
9741         &thisblock->data.block.cleanups.
9742         (expand_start_case): Set discriminator.
9743         (expand_start_case_dummy): Set discriminator.
9744
9745         * ggc-callbacks.c: Remove.
9746
9747         * gengtype.h (struct type): Add 'u.s.bitmap' field.
9748         (find_structure): Add 'pos' parameter.
9749         * gengtype-lex.l: Update callers to find_structure.
9750         * gengtype-yacc.y: Likewise.
9751         * gengtype.c (find_structure): Allow for structures to be defined
9752         in multiple language backends.
9753         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
9754         (counter): Rename to gc_counter.
9755         (write_gc_structure_fields): Fail when writing out fields for
9756         an incomplete structure.  Ignore arrays of scalars.  Handle
9757         'tree_vec' special.
9758         (write_gc_types): Reset counter for each procedure written.
9759
9760         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
9761         (free_case_nodes): Delete.
9762         (expand_end_case_type): Delete call to free_case_nodes.
9763
9764         * Makefile.in (cselib.o): Include gt-<filename>.h.
9765         (gcse.o): Likewise.
9766         (profile.o): Likewise.
9767         (alias.o): Likewise.
9768         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
9769         alphabetize backend files.
9770         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
9771         * alias.c: Use gengtype for roots.
9772         * c-common.h (struct stmt_tree_s): Use gengtype.
9773         * c-decl.c: Use gengtype for roots.
9774         * cselib.c: Use gengtype for roots.
9775         * expr.c: Use gengtype for roots.
9776         * fold-const.c: Use gengtype for roots.
9777         * gcse.c: Use gengtype for roots.
9778         * gengtype-lex.l: Handle typedefs of function types.
9779         Allow for empty array bounds.
9780         Allow processing to stop on initialisers.
9781         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
9782         (semiequal): New rule.
9783         * gengtype.c (create_file): Tidy output files.
9784         (get_output_file_with_visibility): Fix paren warning.  Fix bug
9785         involving multiple input files mapping to one output file.
9786         (write_gc_structure_fields): Skip arrays of scalars.
9787         (write_gc_types): Tidy output files.
9788         (write_gc_root): New function.
9789         (write_gc_roots): Fix bugs, add support for roots that are
9790         structures.
9791         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
9792         (ggc_mark_tree_ptr): Delete.
9793         (ggc_add_rtx_root): Delete.
9794         (ggc_add_tree_root): Delete.
9795         (ggc_del_root): Delete.
9796         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
9797         allocate struct initial_value_struct.
9798         * profile.c: Use gengtype for roots.
9799         * sdbout.c: Use gengtype for roots.
9800         * varasm.c (mark_weak_decls): Delete unused prototype.
9801         (mark_const_hash_entry): Delete unused function.
9802         * config/darwin-protos.h: Use gengtype for roots.
9803         (machopic_add_gc_roots): Delete.
9804         * config/arm/arm.c: Use gengtype for roots.
9805         * config/arm/arm.h: Use gengtype for roots.
9806         * config/c4x/c4x-protos.h: Use gengtype for roots.
9807         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
9808         * config/d30v/d30v-protos.h: Use gengtype for roots.
9809         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
9810         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
9811         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
9812         * config/ia64/ia64-protos.h: Use gengtype for roots.
9813         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
9814         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
9815         * config/m68hc11/m68hc11.c (z_reg): Make global.
9816         (z_reg_qi): Make global.
9817         (m68hc11_add_gc_roots): Delete.
9818         * config/mcore/mcore-protos.h: Use gengtype for roots.
9819         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
9820         * config/mips/mips.c (mips_add_gc_roots): Delete.
9821         * config/mips/mips.h: Use gengtype for roots.
9822         * config/mmix/mmix.c (override_options): Use gengtype for roots.
9823         * config/mmix/mmix.h: Use gengtype for roots.
9824         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
9825         * config/mn10200/mn10200.h: Use gengtype for roots.
9826         * config/pa/pa.c: Use gengtype for roots, marking.
9827         (struct deferred_plabel): Use GGC, gengtype.
9828         (pa_add_gc_roots): Delete.
9829         (mark_deferred_plabels): Delete.
9830         * config/pj/pj-protos.h: Use gengtype for roots.
9831         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
9832         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
9833         machopic_add_gc_roots.
9834         * config/rs6000/rs6000.h: Use gengtype for roots.
9835         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
9836         (gt-darwin.h): Add rule.
9837         * config/sh/sh.c: Use gengtype for roots.
9838         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
9839         (gt-sh.h): Add rule.
9840         * config/sparc/sparc.c: Use gengtype for roots.
9841         (sparc_add_gc_roots): Delete.
9842         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
9843         (mark_ultrasparc_pipeline_state): Delete.
9844         * config/sparc/sparc.h: Use gengtype for roots.
9845
9846         * Makefile.in (c-parse.o): Update dependencies.
9847         (c-common.o): Likewise.
9848         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
9849         Add dependencies for the files they generate.
9850         * c-common.c: Replace ggc_add_* uses with GTY annotations.
9851         * c-common.h: Likewise.
9852         * c-decl.c: Likewise.
9853         (gt_ggc_mp_binding_level): Delete.
9854         * c-lang.c: Include gtype-c.h.
9855         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
9856         gt-c-parse.h.
9857         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
9858         (gt_ggc_mp_align_stack): Delete.
9859         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
9860         * function.c: Replace ggc_add_* uses with GTY annotations.
9861         (gt_ggc_mp_function): Delete.
9862         * function.h: Replace ggc_add_* uses with GTY annotations.
9863         * gengtype.c (lang_names): New.
9864         (NUM_BASE_FILES): New.
9865         (open_base_files): Create language base files.
9866         (startswith): New.
9867         (get_file_basename): New.
9868         (get_base_file_bitmap): New.
9869         (get_output_file_with_visibility): Rename from get_output_file.
9870         Add more mappings for various C/Objc filenames.
9871         (finish_root_table): New.
9872         (write_gc_roots): Handle dependencies and scoping properly.
9873         * gengtype.h: Add prototypes for new functions.
9874         * ggc-common.c (struct deletable_root): Delete.
9875         (deletables): Delete.
9876         (ggc_add_deletable_root): Delete.
9877         (ggc_mark_roots): No need to deal with deleted functionality.
9878         * ggc.h (ggc_add_deletable_root): Delete prototype.
9879         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
9880         (gtype-objc.h): Add rule to create.
9881         * objc/config-lang.in (gtfiles): New.
9882         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
9883         ggc_add_* with GTY markers.  Include gtype-objc.h.
9884         (ggc_mark_imp_list): Delete.
9885         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
9886         * objc/objc-lang.c: Random Whitespace Change.
9887
9888         * except.h (exception_handler_labels): Delete.
9889         (get_exception_handler_labels): New.
9890         * except.c (exception_handler_labels): Delete.
9891         (struct eh_status): Add exception_handler_labels field.
9892         (doing_eh): Don't add exception_handler_labels as root.
9893         (free_eh_status): Don't need to free exception_handler_labels.
9894         (get_exception_handler_labels): New.
9895         (find_exception_handler_labels): Update for move of
9896         exception_handler_labels.
9897         (remove_exception_handler_label): Likewise.
9898         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
9899         * jump.c (rebuild_jump_labels): Likewise.
9900         * loop.c (find_and_verify_loops): Likewise.
9901         * sched-rgn.c (is_cfg_nonregular): Likewise.
9902
9903         * gengtype.c (write_gc_structure_fields): Handle variable-length
9904         TYPE_ARRAYs.
9905
9906         * varasm.c (struct weak_syms): Use GGC, gengtype.
9907         (mark_weak_decls): Delete.
9908         (weak_decls): Likewise.
9909         (add_weak): Likewise.
9910         (remove_from_pending_weak_list): Likewise.
9911         (init_varasm_once): Likewise.
9912
9913         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
9914         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
9915         stor-layout.c, regclass.c, and lists.c.
9916         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
9917         gt-regclass.h and gt-lists.h on s-gtype.
9918         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
9919         * except.c: Use gengtype for roots.
9920         * explow.c: Use gengtype for roots.  Include gt-explow.h.
9921         * expr.h (init_stor_layout_once): Delete prototype.
9922         * function.c: Use gengtype for roots.
9923         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
9924         * gengtype-yacc.y (start): Can also be an externstatic.
9925         (externstatic): New production.
9926         (struct_fields): Correct array bounds inversion for 2-d arrays.
9927         * gengtype.c (variables): New variable.
9928         (note_variable): New function.
9929         (get_output_file): Include libfuncs.h into gtype-desc.c.
9930         (get_output_file_name): New function.
9931         (write_gc_structure_fields): Suppress warnings.
9932         (write_gc_types): Make static.
9933         (put_mangled_filename): New function.
9934         (write_gc_roots): New function.
9935         (main): Call write_gc_roots.
9936         * gengtype.h (note_variable): Prototype.
9937         (get_output_file_name): Prototype.
9938         (write_gc_types): Delete prototype.
9939         * ggc.h: Clean up unnecessary structure predefinitions.
9940         (struct ggc_root_tab): Define.
9941         (gt_ggc_m_rtx_def): Make function, not macro.
9942         (gt_ggc_m_tree_node): Likewise.
9943         * libfuncs.h: Use gengtype for roots.
9944         * lists.c: Use gengtype for roots.  Include gt-lists.h.
9945         (init_EXPR_INSN_LIST_cache): Delete.
9946         * optabs.c: Use gengtype for roots.
9947         (gt_ggc_mp_optab): Delete.
9948         * optabs.h: Use gengtype for roots.
9949         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
9950         * rtl.h: Use gengtype for roots.
9951         (init_EXPR_INSN_LIST_cache): Delete prototype.
9952         * stor-layout.c: Use gengtype for roots.
9953         Include gt-stor-layout.h.
9954         (init_stor_layout_once): Delete.
9955         * toplev.c: Use gengtype for roots.  Delete calls to deleted
9956         routines.
9957         * tree.c: Use gengtype for roots.
9958         * tree.h: Use gengtype for roots.
9959         * varasm.c: Use gengtype for roots.
9960
9961         * Makefile.in (GTFILES): Add @all_gtfiles@.
9962         * configure: Regenerate.
9963         * configure.in: Construct all_gtfiles from the gtfiles definitions
9964         in config-lang.in.
9965         * gengtype-yacc.y (type): Warn about duplicate structure names.
9966         * gengtype.c (get_output_file): Handle .c files in language
9967         subdirectories.
9968
9969         * Makefile.in (GTFILES): Run gengtype on all the config files
9970         and on the target .c file.
9971         * except.c (mark_eh_region): Delete.
9972         (init_eh_for_function): Use GGC on struct eh_status.
9973         (mark_eh_status): Delete.
9974         (free_eh_status): Use GGC.
9975         (expand_eh_region_start): Use GGC to
9976         (collect_eh_region_array): Allocate last_region_number using GGC.
9977         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
9978         (remove_eh_handler): Let GGC free struct eh_region.
9979         (add_call_site): Use GGC to reallocate call_site_record array.
9980         * function.c (init_machine_status): Update calling sequence.
9981         (mark_machine_status): Likewise.
9982         (mark_lang_status): Likewise.
9983         (prepare_function_start): Update init_machine_status call.
9984         (mark_function_status): Delete.
9985         (maybe_mark_struct_function): Delete.
9986         (ggc_mark_struct_function): Delete.
9987         (gt_ggc_mp_function): New.
9988         (gt_ggc_mr_machine_function): New.
9989         (gt_ggc_mr_language_function): New.
9990         (init_function_once): Use canonical names.
9991         * function.h (struct function): Use gengtype.
9992         (init_machine_status): Return the structure.
9993         (mark_machine_status): Take a 'void *'.
9994         (mark_lang_status): Likewise.
9995         * ggc-common.c (ggc_mark_trees): Use canonical name for
9996         ggc_mark_struct_function.
9997         * tree.h (ggc_mark_struct_function): Delete prototype.
9998         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
9999         (alpha_init_machine_status): Likewise.
10000         (override_options): Use canonical name for alpha_mark_machine_status.
10001         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
10002         * config/arm/arm.h (struct machine_function): Use gengtype.
10003         * config/arm/arm.c (arm_mark_machine_status): Delete.
10004         (arm_init_machine_status): Update calling sequence.
10005         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
10006         * config/cris/cris.c (cris_init_machine_status): Update
10007         calling sequence.
10008         * config/d30v/d30v.h (struct machine_function): Use gengtype.
10009         * config/d30v/d30v.c (d30v_init_machine_status): Update
10010         calling sequence.
10011         (d30v_mark_machine_status): Delete.
10012         * config/i386/i386.c: Include gt-i386.h.
10013         (struct machine_function): Use gengtype.
10014         (ix86_init_machine_status): Update calling sequence.
10015         (ix86_mark_machine_status): Delete.
10016         (override_options): Use canonical namke for ix86_mark_machine_status.
10017         * config/ia64/ia64.h (struct machine_function): Use gengtype.
10018         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
10019         sequence.
10020         (ia64_mark_machine_status): Delete.
10021         (ia64_override_options): Use canonical name for
10022         ia64_mark_machine_status.
10023         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
10024         sequence.
10025         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
10026         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10027         * gengtype.c (get_output_file): Fix warning.
10028         (main): Add prototype to suppress warning.
10029         * tree.c: Remove tree_hash_mark prototype.
10030
10031         * tree.h (init_stmt): Delete prototype.
10032         * toplev.c (lang_independent_init): Don't call init_stmt.
10033         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
10034         (stmt_obstack): Delete.
10035         (POPSTACK): No need to free 'struct nesting'.
10036         (gt_ggc_mr_nesting_cond): Use canonical names.
10037         (gt_ggc_mr_nesting_loop): Use canonical names.
10038         (gt_ggc_mr_nesting_block): Use canonical names.
10039         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
10040         (mark_stmt_status): Delete.
10041         (init_stmt): Delete.
10042         (clear_last_expr): Clear both last_expr_type and last_expr_value.
10043         Use it everywhere that last_expr_type was cleared.
10044         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
10045         (zap_lists): Delete.
10046         * ggc.h (ggc_add_deletable_root): Prototype.
10047         (mark_stmt_status): Remove prototype.
10048         * ggc-common.c (ggc_add_deletable_root): New.
10049         (ggc_mark_roots): Handle deletable roots.
10050         * function.c (ggc_mark_struct_function): Use canonical name
10051         for mark_stmt_status.
10052         * emit-rtl.c (free_sequence_stack): New.
10053         (start_sequence): Use a freelist for sequences.
10054         (end_sequence): Likewise.
10055         (init_emit_once): Add free_sequence_stack as a deleteable root.
10056         * c-pragma.c Include gt-c-pragma.h.
10057         (struct align_stack): Use gengtype.
10058         (push_alignment): Use GGC for struct align_stack.
10059         (mark_align_stack): Delete.
10060         (gt_ggc_mp_align_stack): New.
10061         (init_pragma): Use canonical name for mark_align_stack.
10062         * c-decl.c: Include gt-c-decl.h.
10063         (struct binding_level): Use gengtype.
10064         (make_binding_level): Use GGC; handle the freelist here.
10065         (pop_binding_level): New.
10066         (pushlevel): Move code into make_binding_level.
10067         (push_label_level): Likewise.
10068         (poplevel): Move code into pop_binding_level.
10069         (pop_label_level): Likewise.
10070         (mark_binding_level): Delete.
10071         (gt_ggc_mp_binding_level): New.
10072         (c_init_decl_processing): Use canonical name for mark_binding_level.
10073         Add free_binding_level as deletable root.
10074         (mark_c_function_context): Use canonical name for mark_binding_level.
10075         * Makefile.in (c-decl.o): Add gt-c-decl.h.
10076         (c-pragma.o): Add gt-c-pragma.h.
10077         (GTFILES): Add c-decl.c and c-pragma.c.
10078         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
10079
10080         * tree.c (struct type_hash): Use gengtype.
10081         (init_obstacks): Use canonical name for type_hash_mark.
10082         (type_hash_mark): Delete.
10083         Include gt-tree.h.
10084         * rtl.h (struct mem_attrs): Use gengtype.
10085         * optabs.h (struct optab): Use gengtype.
10086         * optabs.c (expand_binop): Squish signed/unsigned warning.
10087         (mark_optab): Make local, use canonical name, use autogenerated
10088         marker procedure.
10089         (init_optabs): Use canonical name for mark_optab.
10090         (new_optab): Use GGC to allocate optabs.
10091         * ggc.h: Delete mark_optab prototype.
10092         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
10093         mem_attrs marker procedure.
10094         * gengtype.c (get_output_file): Include headers in gtype-desc.c
10095         explicitly rather than deducing them from file names.
10096         (write_gc_structure_fields): Handle arrays of structures.
10097         (main): Return non-zero exit code if errors occur during output.
10098         * emit-rtl.c (mem_attrs_mark): Delete.
10099         (init_emit_once): Use canonical name for mem_attrs marker procedure.
10100         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
10101         (tree.o): Depend on gt-tree.h.
10102         (GTFILES): Add rtl.h, optabs.h, tree.c.
10103         (gt-tree.h): Add it to s-gtype rule.
10104
10105         * .cvsignore: Ignore gengtype flex/bison generated files.
10106         * Makefile.in (GGC_H): Add gtype-desc.h.
10107         (OBJS): Add gtype-desc.o.
10108         (GEN): Add gengtype.
10109         (STAGESTUFF): Add gengtype.
10110         (varasm.o): Add gt-varasm.h.
10111         (stmt.o): Add gt-stmt.h.
10112         (except.o): Add gt-except.h.
10113         (integrate.o): Add gt-integrate.h.
10114         (GTFILES): New.
10115         Add new rules for new files.
10116         * configure: Regenerate.
10117         * configure.in: Correct defaults.h paths.
10118         * emit-rtl.c (mark_sequence_stack): Delete.
10119         (mark_emit_status): Delete.
10120         (start_sequence): Allocate sequence structures using GGC.
10121         (end_sequence): Allocate sequence structures using GGC.
10122         * except.c: Use gengtype for various structures.  Include
10123         gt-except.h.
10124         * expr.c (mark_expr_status): Delete.
10125         * function.c: Use gengtype for various structures.  Include
10126         gt-function.h.
10127         (mark_function_status): Use standard gt_ggc names for marker functions.
10128         (ggc_mark_struct_function): Likewise.
10129         * function.h: Use gengtype for various structures.
10130         * gengtype-lex.l: New file.
10131         * gengtype-yacc.y: New file.
10132         * gengtype.c: New file.
10133         * gengtype.h: New file.
10134         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
10135         the standard names.  Remove some now-unnecessary prototypes.
10136         * integrate.c: Use gengtype for various structures.  Include
10137         gt-integrate.h.
10138         (mark_hard_reg_initial_vals): Delete.
10139         * integrate.h (mark_hard_reg_initial_vals): Delete.
10140         * stmt.c: Use gengtype for various structures.  Include
10141         gt-stmt.h.
10142         (mark_case_node): Delete.
10143         (mark_goto_fixup): Delete.
10144         (mark_stmt_status): Use standard gt_ggc names for marker functions.
10145         * system.h: Define GTY to empty.   In flex/bison files,
10146         don't poison malloc or realloc, instead just define them to
10147         xmalloc and xrealloc.
10148         * varasm.c: Use gengtype for various structures.  Include
10149         gt-varasm.h.  Use standard gt_ggc names for marker functions.
10150         (mark_pool_constant): Delete.
10151         (mark_varasm_status): Delete.
10152         (decode_rtx_const): #if 0 out non-typesafe hack.
10153
10154         * function.h (free_lang_status): Mark as obsolete.
10155         * function.c (free_lang_status): Mark as obsolete.
10156         * c-decl.c (push_c_function_context): Use GC to allocate and free
10157         struct language_function.
10158         (pop_c_function_context): Likewise.
10159         * c-common.c (mark_c_language_function): Mark struct
10160         language_function.
10161
10162         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
10163         Document that the machine_function structures must be allocated
10164         using GC.  Update mark_machine_status documentation.
10165         * function.h: Don't declare free_machine_status.
10166         * function.c (free_machine_status): Don't define.
10167         (free_after_compilation): Don't call free_machine_status.
10168         (ggc_mark_struct_function): Mark f->machine.  Call
10169         mark_machine_status only on non-NULL pointers.
10170         * system.h: Poison free_machine_status.
10171         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
10172         struct machine_function.
10173         (xtensa_free_machine_status): Delete.
10174         (override_options): Don't set free_machine_status.
10175         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
10176         free_machine_status.
10177         (rs6000_init_machine_status): Use GC on struct machine_function.
10178         (rs6000_free_machine_status): Delete.
10179         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
10180         machine_function.
10181         (ia64_mark_machine_status): Likewise.
10182         (ia64_free_machine_status): Delete.
10183         (ia64_override_options): Don't set free_machine_status.
10184         * config/i386/i386.c (override_options): Don't set
10185         free_machine_status.
10186         (ix86_init_machine_status): Use GC on struct machine_function.
10187         (ix86_mark_machine_status): Likewise.
10188         (ix86_free_machine_status): Delete.
10189         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
10190         machine_function.
10191         (d30v_mark_machine_status): Likewise.
10192         (d30v_free_machine_status): Delete.
10193         (d30v_init_expanders): Don't set free_machine_status.
10194         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
10195         machine_function.
10196         (arm_init_machine_status): Likewise.
10197         (arm_free_machine_status): Delete.
10198         (arm_init_expanders): Don't set free_machine_status.
10199         * config/alpha/alpha.c (override_options): Don't set
10200         free_machine_status.
10201         (alpha_init_machine_status): Use GC on struct machine_function.
10202         (alpha_mark_machine_status): Likewise.
10203         (alpha_free_machine_status): Delete.
10204
10205         * varasm.c (compare_constant): Fix typo.
10206
10207         * varasm.c: Don't include obstack.h.
10208         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
10209         (struct rtx_const): Give substructures names, improve formatting.
10210         (struct constant_descriptor): Delete.
10211         (struct constant_descriptor_tree): New, based on constant_descriptor.
10212         (const_hash_table): Is a hash table of trees.
10213         (mark_const_hash_entry): Is used for hashes of trees.  Mark
10214         constant_descriptor_tree structure.
10215         (mark_const_str_htab_1): Mark deferred_string structure.
10216         (compare_constant): Rewrite to compare trees.
10217         (compare_constant_1): Delete.
10218         (record_constant): Delete.
10219         (record_constant_1): Delete.
10220         (output_constant_def): Use struct constant_descriptor_tree.
10221         Don't duplicate trees twice.
10222         (struct constant_descriptor_rtx): New.
10223         (struct pool_constant): Used for rtx constants.
10224         (init_varasm_status): Update for change to struct varasm_status.
10225         (mark_varasm_status): Likewise.
10226         (free_varasm_status): Delete.
10227         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
10228         (record_constant_rtx): Likewise.
10229         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
10230         (force_const_mem): Likewise.
10231         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
10232         * function.c (free_after_compilation): Don't use free_varasm_status.
10233         * function.h: Don't prototype free_varasm_status.
10234
10235         * ggc-common.c (ggc_realloc): Handle X being NULL.
10236
10237         * ggc-common.c (ggc_realloc): New function.
10238         * ggc.h: Prototype it.
10239         * emit-rtl.c (free_emit_status): Delete.
10240         (init_emit): Allocate emit subarrays using GC.
10241         (gen_reg_rtx): Reallocate subarrays using GC.
10242         (init_emit): Use GC to allocate 'struct emit_status' and its
10243         subarrays.
10244         (mark_emit_status): Mark structure and its subarrays.
10245         * stmt.c (free_stmt_status): Delete.
10246         * expr.c (free_expr_status): Delete.
10247         * function.h: Remove prototypes for deleted functions.
10248         * function.c (free_after_compilation): Don't use deleted functions.
10249         Don't call free() on x_parm_reg_stack_loc.
10250         (free_after_parsing): Don't use free_stmt_status.
10251         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
10252         (mark_function_status): Mark x_parm_reg_stack_loc.
10253
10254         * varasm.c (init_varasm_status): Use GC to allocate
10255         'struct varasm_status' and its fields x_const_rtx_hash_table
10256         and x_const_rtx_sym_hash_table.
10257         (mark_varasm_status): Mark them.
10258         (free_varasm_status): Use GC to free them.
10259         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
10260         (mark_expr_status): Mark the structure itself.
10261         (free_expr_status): Use GC to free the structure.
10262         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
10263         (mark_stmt_status): Mark the 'struct stmt_status' itself.
10264         (init_stmt_for_function): Allocate the structure for GC.
10265
10266         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
10267         (equate_type_number_to_die): Likewise.
10268         * tree.h (TYPE_SYMTAB_DIE): New macro.
10269         (struct die_struct): Predeclare.
10270         (struct tree_type): Add field symtab.die.   Add a tag
10271         to the union type of field symtab.
10272
10273         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
10274         'struct rtvec_def *', not 'struct rtvec_def'.
10275
10276         * function.h (original_arg_vector): Make a real rtvec.
10277         * function.c (ggc_mark_struct_function): Adjust.
10278         * integrate.c (expand_inline_function): Adjust.
10279
10280 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
10281
10282         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
10283         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
10284         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
10285         (TARGET_VERSION_CPU): Define according to the
10286         default target.
10287         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
10288         TARGET_VERSION_CPU.
10289         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
10290         if TARGET_SHMEDIA64.
10291         (LINK_DEFAULT_CPU_EMUL): Define according to the
10292         default target.
10293         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
10294         (SUBTARGET_LINK_SPEC): Define.
10295         (LINK_SPEC): Use SH_LINK_SPEC.
10296         (ASM_SPEC): Remove.
10297         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
10298         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
10299         and TARGET_SHMEDIA64 which abort, for now.
10300         * config/sh/t-netbsd-sh5: New file.
10301         * config/sh/t-netbsd-sh5-32: New file.
10302         * config/sh/t-netbsd-sh5-64: New file.
10303
10304 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10305             Richard Henderson  <rth@redhat.com>
10306
10307         * config/alpha/alpha.c (reg_or_const_int_operand): New.
10308         (some_operand, input_operand): Accept CONST_VECTOR.
10309         (alpha_extra_constraint): Add 'W'.
10310         (alpha_expand_zap_mask): New.
10311         (alpha_expand_builtin_vector_binop): New.
10312         (enum alpha_builtin): New.
10313         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
10314         (alpha_init_builtins, alpha_expand_builtin): New.
10315         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
10316         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
10317         (PREDICATE_CODES): Update.
10318         * config/alpha/alpha-protos.h: Update.
10319         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
10320         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
10321         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
10322         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
10323         (movv2si, movv2si_fix, movv2si_nofix): New.
10324         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
10325         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
10326         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
10327         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
10328         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
10329         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
10330         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
10331         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
10332         builtin_unpkbw, unpkbw): New.
10333         * doc/extend.texi (Alpha Built-in Functions): New.
10334
10335 2002-06-03  Richard Henderson  <rth@redhat.com>
10336
10337         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
10338         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
10339
10340 2002-06-03  Richard Henderson  <rth@redhat.com>
10341
10342         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
10343
10344         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
10345         (const0_operand): New.
10346         (reg_or_fp0_operand, fp0_operand): Remove.
10347         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10348         * config/alpha/alpha-protos.h: Update.
10349         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
10350         and fp0_operand with reg_or_0_operand and const0_operand.
10351
10352 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10353
10354         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
10355
10356 2002-06-03  Roger Sayle  <roger@eyesopen.com>
10357
10358         * gcse.c (cprop_jump): Use single_set to get the pattern
10359         from the setcc argument.
10360
10361 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
10362
10363         * diagnostic.h (diagnostic_count): Move from output_buffer to
10364         diagnostic_context.
10365         (diagnostic_kind_count): Adjust definition.
10366
10367 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
10368
10369         * except.c (except.c): Do not rebuild CFG.
10370         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
10371         optimization.
10372
10373 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
10374
10375         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
10376         * toplev.c: Include cfglahout.h
10377         * Makefile.in (toplev.c): Add dependnecy.
10378
10379 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10380
10381         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
10382         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
10383         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
10384
10385 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
10386
10387         * config/ns32k/netbsd.h: Update copyright years.
10388         (TARGET_OS_CPP_BUILTINS): Define.
10389         (CPP_PREDEFINES): Remove.
10390         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
10391         (TARGET_CPU_CPP_BUILTINS): Define.
10392
10393 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
10394
10395         * emit-rtl.c: Fix formatting.
10396         * errors.h: Likewise.
10397         * except.c: Likewise.
10398         * explow.c: Likewise.
10399         * expmed.c: Likewise.
10400         * expr.c: Likewise.
10401         * expr.h: Likewise.
10402
10403 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
10404
10405         * config/h8300/elf.h: Fix formatting.
10406         * config/h8300/rtems.h: Likewise.
10407
10408 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
10409
10410         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
10411
10412 2002-06-02  Tom Tromey  <tromey@redhat.com>
10413
10414         * fixinc/fixincl.x: Rebuilt.
10415         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
10416
10417 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10418
10419 config/i370:
10420         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
10421         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
10422         * mvs.h: Similarly.
10423         * oe.h: Similarly.
10424
10425 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
10426
10427         * final.c (final):  Allow notes to not have computed addresses;
10428         kill no longer needed STACK_REGS ifdef.
10429
10430 2002-06-02  Richard Henderson  <rth@redhat.com>
10431
10432         * gcse.c (bypass_conditional_jumps): Fix typo last change.
10433
10434 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
10435
10436         * loop.c (emit_prefetch_instructions): Properly place the address
10437         computation.
10438
10439 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
10440
10441         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
10442         (set_block_for_insn): Turn into macro.
10443         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
10444         * cfglayout.c (insn_scopes): Kill.
10445         (scope_to_insns_initialize): Do not use insn_scopes.
10446         (scope_to_insns_finalize): Likewise.
10447         (duplicate_insn_chain): Likewise.
10448         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
10449         * cfgrtl.c (basic_block_for_insn): Kill.
10450         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
10451         (create_basic_block_structure): Use reorder_insns.
10452         (compute_bb_for_insn): Do not use basic_block_for_insn.
10453         (merge_blocks_nomove): Likewise.
10454         (update_bb_for_insn): Likewise.
10455         (verify_flow_info): Likewise.
10456         (set_block_for_insn): Kill.
10457         * combine.c (try_combine): Update gen_rtx_INSN call.
10458         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
10459         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
10460         scopes and BBs.
10461         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
10462         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
10463         Clear BB.
10464         (emit_insns_after): Simplify.
10465         (emit_copy_of_insn_after): Copy scope.
10466         * final.c (final_start_function): Lower scopes.
10467         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
10468         * integrate.c (copy_insn_list): Cope scopes.
10469         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
10470         * loop.c (loop_optimize): Do not care block notes.
10471         * print-rtl.c (print_rtx): Print BB.
10472         * recog.c (apply_change_group): Simplify.
10473         * rtl.c (copy_rtx): Handle 'B'.
10474         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
10475         * rtl.h (Field accessors): Update indexes.
10476         * sched-ebb.c (schedule_ebbs): Do not lower notes.
10477         * sched-rgn.c (schedule_insns): Likewise.
10478         * toplev.c (rest_of_compilation): Lower notes.
10479         * unroll.c (unroll_loop): Do not care scoping notes.
10480         (copy_loop_body): Copy scopes.
10481
10482 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10483
10484 config/h8300:
10485         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
10486         SUBTARGET_SPEC.
10487         * rtems.h: Similarly.
10488         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
10489         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
10490         (TARGET_CPU_CPP_BUILTINS): Use.
10491
10492 2002-06-02  Richard Henderson  <rth@redhat.com>
10493
10494         * alias.c: Include target.h.
10495         (mark_constant_function): Use targetm.binds_local_p instead
10496         of checking TREE_PUBLIC ourselves.
10497         * Makefile.in (alias.o): Add TARGET_H.
10498
10499 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10500
10501         * c-lex.c: Update copyright and file description.
10502
10503 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10504
10505         * config/fr30/fr30.h: Update to new CPP macros.
10506
10507 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10508
10509         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
10510
10511 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10512             Zack Weinberg <zack@codesourcery.com>
10513
10514         * c-common.c (c_common_init): Override cpplib's default
10515         warn_long_long setting.
10516         * c-lex.c (lex_number): Replace with interpret_integer,
10517         interpret_float, narrowest_unsigned_type and
10518         narrowest_signed_type, taking advantage of the new
10519         cpplib functionality.
10520         * cpperror.c (_cpp_begin_message): If a warning is turned
10521         into an error, avoid printing "warning:".
10522         * cppexp.c (cpp_num_sign_extend): New.
10523         * cppinit.c: Update comment.
10524         * cpplib.h (cpp_num_sign_extend): New.
10525         * tree.h: Update comment.
10526
10527 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10528
10529         * diagnostic.h (struct diagnostic_context):  Add new member
10530         internal_error.
10531         (internal_error_function): Remove declaration.
10532         * diagnostic.c (internal_error_function): Remove definition..
10533         (internal_error): Adjust use.
10534
10535 2002-06-02  Richard Henderson  <rth@redhat.com>
10536
10537         * rtl.h (CC0_P): New.
10538         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
10539         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
10540         (bypass_block): Save old dest block for dump text.
10541         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
10542         Allow only true SET insns, not single_set.
10543
10544 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10545
10546         * diagnostic.c (diagnostic_finish): Rename to output_flush.
10547         (clear_disgnostic_info): Rename to output_clear_data.  Use false
10548         instead of 0 for boolean value.
10549         Adjust function call throughout.
10550
10551 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
10552
10553         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
10554         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
10555
10556 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10557
10558         * d30v.h (CPP_PREDEFINES): Replace with
10559         (TARGET_CPU_CPP_BUILTINS): New.
10560
10561 2002-06-02  Roger Sayle  <roger@eyesopen.com>
10562
10563         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
10564
10565 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
10566
10567         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
10568
10569 2002-06-02  Richard Henderson  <rth@redhat.com>
10570
10571         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
10572
10573 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10574
10575         Support for C++ constructors/destructors.
10576         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
10577         instead of looping if main() returns.
10578         (asm_file_start): Output global symbols that cause .data and .bss
10579         initialization code to be linked in, unconditionally for now.
10580         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
10581         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
10582         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10583         (LIBSTDCXX): New.
10584         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
10585         (__tablejump__): New.
10586         (__do_copy_data, __do_clear_bss): New.
10587         (__do_global_ctors, __do_global_dtors): New.
10588         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
10589         _ctors, _dtors.
10590
10591 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10592
10593         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
10594         (CPP_SPEC, CPP_PREDEFINES): Kill.
10595         * c4x/rtems.h (CPP_PREDEFINES): Kill.
10596         (TARGET_OS_CPP_BUILTINS): New.
10597
10598 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
10599
10600         * Makefile.in (tracer.o): New.
10601         * params.def (TRACER_*): New options.
10602         * rtl.h (tracer): Declare.
10603         * timevar.def (TV_TRACER): New.
10604         * toplev.c (dump_file_index): Add DFI_tracer.
10605         (dump_file_info): Add tracer.
10606         (flag_tracer): New.
10607         (lang_indepdenent_options): Add tracer.
10608         (rest_of_compilation): Call tracer.
10609         * tracer.c: New file.
10610         * invoke.texi (-ftracer): Document.
10611         (--param tracer-*): Document.
10612
10613 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
10614
10615         * tree-inline.c (expand_call_inline): Make the statement
10616         expression we generate have a COMPOUND_STMT.
10617
10618 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10619
10620         * gcse.c (cprop_cc0_jump): Function deleted.
10621         (cprop_jump): Take an additional argument which is the possibly
10622         NULL cc setting insn immediately before the conditional jump.
10623         When a MODE_CC set is present, substitute it into the JUMP_INSN
10624         before attempting the constant propagation.
10625         (cprop_insn):  Recognize cc setters followed by conditional jumps
10626         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
10627         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
10628         (find_bypass_set): New function based upon find_avail_set used by
10629         cprop, but finds constant expressions available at the end of
10630         basic blocks.
10631         (bypass_block): New function.  Given a basic block that begins
10632         with a conditional jump and multiple incoming edges, perform
10633         the jump bypass optimization.
10634         (bypass_conditional_jumps): New function.  Call bypass_block with
10635         each suitable basic block in the CFG using a simple single pass.
10636
10637 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10638
10639         * tree.c (real_minus_onep): New function to test for -1.0.
10640         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
10641
10642 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10643
10644         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
10645         and "!p && !q" into "(p|q) == 0" under suitable conditions.
10646
10647 2002-06-01  Andreas Jaeger  <aj@suse.de>
10648
10649         * cppexp.c (cpp_classify_number): Cast precission to int for
10650         correct printf format.
10651
10652 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10653
10654         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
10655         expected, but don't really exist: atmega83, atmega85, attiny10.
10656         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
10657         emulations for all devices.
10658         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
10659         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
10660
10661 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
10662
10663         * config/h8300/h8300-protos.h: Add a prototype for
10664         h8300_shift_needs_scratch_p.
10665         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
10666         * config/h8300/h8300.h (OK_FOR_R): New.
10667         (OK_FOR_S): Likewise.
10668         (OK_FOR_T): Likewise.
10669         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
10670         * config/h8300/h8300.md (anonymous shift patterns): Use
10671         constraints R, S, and T.
10672
10673 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10674
10675         * basic-block.h (struct basic_block_def): New field loop_father.
10676         (BB_VISITED): New flag.
10677         (struct loop): New field pred, removed field shared.
10678         (struct loops): New field parray.
10679         (LOOP_EXITS_DOMS): Removed.
10680         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
10681         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
10682         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
10683         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
10684         verify_loop_structure): Declare.
10685         * cfg.c (entry_exit_blocks): Initialize loop_father field.
10686         * cfganal.c (dfs_enumerate_from): New function.
10687         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
10688         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
10689         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
10690         flow_loop_dump, flow_loops_dump, flow_loops_free,
10691         flow_loop_tree_node_add, flow_loop_level_compute,
10692         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
10693         flow_loop_outside_edge_p): Modified for new infrastructure.
10694         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
10695         redirect_edge_with_latch_update, flow_loop_free): New static functions.
10696         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
10697         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
10698         find_common_loop, verify_loop_structure, loop_latch_edge,
10699         loop_preheader_edge): New functions.
10700         (flow_loops_cfg_dump): Do not show dominators, as this information
10701         does not remain up to date long.
10702         (flow_loops_find): Store results in new format.
10703         * predict.c (propagate_freq, estimate_probability,
10704         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
10705         infrastructure.
10706
10707 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
10708
10709         * except.c (nothrow_function_p): Walk epilogue delay list
10710         checking the insn, not the chain for potential throws.
10711
10712 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
10713
10714         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
10715         (install): Refer to install-cpp directly.
10716         (uninstall-cpp): Folded into uninstall rule.
10717         * configure.in: Delete all code relating to --disable-cpp.
10718         * configure: Regenerate.
10719         * config/t-install-cpp: Delete.
10720
10721 2002-05-31  Richard Henderson  <rth@redhat.com>
10722
10723         * configure.in (HAVE_AS_TLS): Add alpha tests.
10724         * configure: Rebuild.
10725         * config/alpha/alpha.c (TARGET_AS_TLS): New.
10726         (alpha_tls_size, alpha_tls_size_string): New.
10727         (overide_options): Set it.  Always install machine_status hooks.
10728         (input_operand): Accept got tls predicates.
10729         (local_symbol_p): Merge into ...
10730         (local_symbolic_operand): ... here.  Reject tls symbols.
10731         (global_symbolic_operand): Likewise.
10732         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
10733         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
10734         (tp16_symbolic_operand, tp32_symbolic_operand): New.
10735         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
10736         (alpha_encode_section_info): Handle TLS symbols.
10737         (alpha_strip_name_encoding): Likewise.
10738         (alpha_legitimate_address_p): Likewise.
10739         (alpha_legitimize_address): Likewise.
10740         (alpha_expand_mov): Early exit to avoid nop moves.
10741         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
10742         (alpha_init_machine_status, alpha_mark_machine_status,
10743         alpha_free_machine_status): Always define.
10744         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
10745         (print_operand, print_operand_address): Add TLS relocs.
10746         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
10747         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
10748         (TARGET_SWITCHES): Add -mtls-kernel.
10749         (alpha_tls_size, alpha_tls_size_string): New.
10750         (TARGET_OPTIONS): Add -mtls-size=.
10751         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
10752         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
10753         (ASM_OUTPUT_LABELREF): Skip %.
10754         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
10755         (PREDICATE_CODES): Update.
10756         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
10757         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
10758         UNSPEC_TP, UNSPECV_SET_TP): New.
10759         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
10760         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
10761         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
10762         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
10763         (call_value_osf_2_er): Accept anything as op4.
10764         * config/alpha/alpha-protos.h: Update.
10765         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
10766
10767 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
10768
10769         * cppinit.c (append_include_chain): Always pay attention to
10770         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
10771         marker on argument.
10772
10773 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
10774
10775         * target.h: Fix formatting.
10776         * timevar.h: Likewise.
10777         * tlink.c: Likewise.
10778         * toplev.c: Likewise.
10779         * toplev.h: Likewise.
10780         * tree.c: Likewise.
10781         * tree-dump.h: Likewise.
10782         * tree.h: Likewise.
10783         * tree-inline.h: Likewise.
10784         * unroll.c: Likewise.
10785         * unwind-dw2.c: Likewise.
10786         * unwind-dw2-fde.c: Likewise.
10787         * unwind-dw2-fde-glibc.c: Likewise.
10788         * unwind-dw2-fde.h: Likewise.
10789         * unwind.h: Likewise.
10790         * unwind-sjlj.c: Likewise.
10791         * varasm.c: Likewise.
10792         * varray.h: Likewise.
10793         * vmsdbg.h: Likewise.
10794         * vmsdbgout.c: Likewise.
10795         * xcoffout.h: Likewise.
10796
10797 2002-05-31  Igor Shevlyakov <igor@microunity.com>
10798
10799         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
10800         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
10801
10802 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
10803
10804         * gcc.c (cpp_unique_options): Remove "-d" options.
10805         (cpp_debug_options): New spec string.
10806         (default_compilers): Use it.
10807         * objc/lang-specs.h: Likewise.
10808
10809 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
10810
10811         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
10812         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
10813         * gcc/mklibgcc.in: Likewise.
10814         * gcc/config/arc/t-arc: Likewise.
10815         * gcc/configure.in: Likewise.
10816         * gcc/configure: Regenerate.
10817
10818 2002-05-31  Stan Shebs  <shebs@apple.com>
10819             Turly O'Connor  <turly@apple.com>
10820
10821         * c-decl.c (struct binding_level): Change int field n_incomplete
10822         to tree list incomplete_list.
10823         (clear_binding_level): Init field with NULL.
10824         (pushdecl): Add incomplete type to list.
10825         (mark_binding_level): Mark the incomplete list.
10826         (finish_struct): Scan the incomplete list for types instead
10827         of all decls in the current binding level.
10828
10829 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10830
10831         * pa.c (output_millicode_call): Add missing '%' characters.
10832         (output_call): Likewise.
10833
10834 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
10835
10836         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
10837         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
10838
10839 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
10840
10841         * varasm.c (mark_constant_pool): Walk epilogue delay list
10842         checking the insn, not the chain for potential constants.
10843
10844 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
10845
10846         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
10847
10848 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
10849
10850         * i386.c (classify_argument): Properly handle base types.
10851
10852         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
10853         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
10854         registers.
10855
10856 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
10857
10858         * gcse.c (gcse_emit_move_after): New.
10859         (pre_delete, hoist_store): Use it.
10860
10861         * reload1.c (emit_input_reload_insns): Use constrain_operands
10862         instead of constraint_accepts_reg_p to verify optimization.
10863         (constraint_accepts_reg_p): Kill
10864
10865         * reload1.c (reload_cse_delete_noop_set): Kill.
10866         (reload_cse_simplify): use delte_insn_and_edges.
10867
10868 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10869
10870         * cfgloop.c (flow_loops_find): Initialize first and last fields
10871         correctly.
10872
10873 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10874
10875         * c-common.c (builtin_define_std): Correct logic.
10876
10877 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10878
10879         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
10880         (output_call): Likewise.
10881
10882 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10883
10884         * pa.c: Move output.h include after tree.h include.
10885         (pa_asm_output_mi_thunk): Constify identifier lab.
10886
10887 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
10888
10889         * config/ns32k/ns32k.h: Define named constants for the
10890         bits in target_flags and use them.
10891         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
10892
10893 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10894
10895         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
10896         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
10897         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
10898         default scheduling model.
10899         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
10900         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
10901         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
10902         * doc/install.texi (hppa*-*-*): Document default scheduling.
10903
10904 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10905
10906         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
10907
10908 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
10909
10910         * config.gcc (ns32k-*-netbsd*): Set tm_file to
10911         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
10912         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
10913         netbsd.h, or netbsd-aout.h.
10914
10915 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
10916
10917         * longlong.h (count_trailing_zeros): Add missing \, and clean up
10918         whitespace in __ns32000__ case.
10919
10920 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
10921
10922         * expr.c (expand_expr): Output partially zeroed out vectors with
10923         output_constant_def.
10924
10925 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
10926
10927         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
10928         (sh-*-netbsdelf*)
10929         (shl*-*-netbsdelf*): New targets.
10930         * config/sh/netbsd-elf.h: New file.
10931         * config/sh/t-netbsd: New file.
10932
10933 2002-05-30  Richard Henderson  <rth@redhat.com>
10934             Eric Botcazou  <ebotcazou@multimania.com>
10935
10936         PR optimization/6822
10937         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
10938         to unsigned int for op1 comparisons.  Use gen_int_mode.
10939
10940 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
10941
10942         * expmed.c (const_mult_add_overflow_p): New.
10943         * expr.h: Declare it.
10944         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
10945         Don't eliminate the biv if the giv has a constant multiplier and
10946         the rhs argument of the comparison does satisfy the predicate.
10947         Use expand_mult_add to compute the replacement constant.
10948
10949 2002-05-30  Osku Salerma  <osku@iki.fi>
10950
10951         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
10952         (c_common_get_alias_set): Handle it.
10953         * doc/extend.texi: Document it.
10954
10955 2002-05-30  Richard Henderson  <rth@redhat.com>
10956
10957         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
10958         * toplev.c (process_options): Don't check it.
10959         * doc/tm.texi: Don't document it.
10960         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
10961         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
10962         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
10963         frame pointer optimization if current_function_profile.
10964
10965 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
10966
10967         * langhooks.c: Fix formatting.
10968         * langhooks.h: Likewise.
10969         * lcm.c: Likewise.
10970         * libgcc2.c: Likewise.
10971         * lists.c: Likewise.
10972         * local-alloc.c: Likewise.
10973         * loop.c: Likewise.
10974         * loop.h: Likewise.
10975
10976 2002-05-30  Marc Espie <espie@openbsd.org>
10977
10978         * config.gcc (sparc64-*-openbsd*): New.
10979         * config/sparc/openbsd1-64.h: New.
10980         * config/sparc/openbsd64.h: New.
10981
10982 2002-05-30  Jeff Law <law@redhat.com>
10983
10984         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
10985         a dead insn with a REG_RETVAL note when the entire libcall is not
10986         dead and remove the associated REG_LIBCALL note at the same time.
10987
10988 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
10989
10990         * lcm.c (output.h): #include.
10991         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
10992         as an ordinary block.
10993         (optimize_mode_switching): Don't pretend that the exit block is
10994         an ordinary block, or handle sucessors of entry block specially.
10995         Instead, split edges from entry block and to exit block, and
10996         put a computing definition on the thus gained post-entry-block,
10997         and a need on the pre-exit-block.
10998
10999 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
11000
11001         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
11002         * rtl.texi: Document 'B'
11003
11004 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11005
11006         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
11007         at run-time.
11008         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
11009
11010 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
11011
11012         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11013         const0_rtx instead of NULL_RTX when in error.
11014         (altivec_expand_abs_builtin): Same.
11015         (rs6000_expand_binop_builtin): Same.
11016         (altivec_expand_predicate_builtin): Same.
11017         (altivec_expand_stv_builtin): Same.
11018         (rs6000_expand_ternop_builtin): Same.
11019         (altivec_expand_builtin): Same.
11020
11021 2002-05-29  David S. Miller  <davem@redhat.com>
11022
11023         * rtl.h (clear_emit_caches): Delete.
11024         * integrate.c (output_inline_function): Don't call it.
11025         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
11026         (clear_emit_caches): Delete definition.
11027         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
11028
11029 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
11030
11031         * config/mmix/mmix.c: Include real.h.
11032         (mmix_constant_address_p): Remove redundant test before switch.
11033
11034 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11035
11036         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
11037         only if not already defined.
11038
11039 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
11040
11041         * config/h8300/h8300-protos.h: Remove prototypes for
11042         ok_for_bclr and small_power_of_two.
11043         * config/h8300/h8300.c (small_power_of_two): Remove.
11044         (ok_for_blcr): Likewise.
11045         (fix_bit_operand): Make WHAT deal with an integer instead of a
11046         constraint character.
11047         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
11048         (CONST_OK_FOR_P): Likewise.
11049         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
11050         CONST_OK_FOR_P any more.
11051         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
11052         of fix_bit_operand.
11053         (iorqi3): Likewise.
11054         (xorqi3): Likewise.
11055
11056 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11057
11058         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11059         (CPP_PREDEFINES): Make sure this is undefined.
11060         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
11061         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
11062         or -U__MIPSEB__ before defining one or the other.  Instead,
11063         use %(subtarget_endian_default) if neither -EB nor -EL are
11064         specified.
11065         (SUBTARGET_EXTRA_SPECS): Define.
11066         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
11067         %(netbsd_cpp_spec).
11068
11069 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
11070
11071         * doc/md.texi (Patterns): Note pattern condition pitfall
11072         for unnamed insn.
11073
11074 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
11075
11076         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
11077         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
11078         ternary operations from here...
11079         (rs6000_expand_builtin): ...to here.
11080         New argument expandedp.
11081         Change all instances of altivec_expand_binop_builtin to
11082         rs6000_expand_binop_builtin.
11083         (altivec_expand_unop_builtin): Rename to
11084         rs6000_expand_unop_builtin.
11085         (altivec_expand_binop_builtin): Rename to
11086         rs6000_expand_binop_builtin.
11087         (altivec_expand_ternop_builtin): Rename to
11088         rs6000_expand_ternop_builtin.
11089
11090 2002-05-29  Richard Henderson  <rth@redhat.com>
11091
11092         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
11093         (TARGET_BI_ARCH): Likewise.
11094         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
11095         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
11096         (TARGET_64BIT_DEFAULT): Default to 0.
11097         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
11098
11099 2002-05-29  Richard Henderson  <rth@redhat.com>
11100
11101         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
11102         (get_pc_thunk_name): New.
11103         (output_set_got): Use it.
11104         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
11105         into linkonce sections.
11106
11107 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11108
11109         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11110         (CPP_PREDEFINES): Make sure this is undefined.
11111         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
11112         (CPP_SUBTARGET_SPEC): Don't provide different versions for
11113         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
11114         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
11115         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
11116         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11117         (CPP_PREDEFINES): Make sure this is undefined.
11118         (SUBTARGET_EXTRA_SPECS): Define.
11119         (CPP_SPEC): Use %(netbsd_cpp_spec).
11120
11121 2002-05-29  Jeff Law <law@redhat.com>
11122
11123         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
11124
11125         * flow.c (propagate_one_insn): Do not remove a dead insn if it
11126         contains a REG_RETVAL note.
11127
11128         * haifa-sched (sched_analyze): Remove another useless clearing
11129         of SCHED_GROUP_P I missed yesterday.
11130
11131         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
11132         * pa.c (pa_asm_output_mi_thunk): New function.
11133         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
11134
11135 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11136             Marek Michalkiewicz  <marekm@amelek.gda.pl>
11137
11138         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
11139         (avr_asm_only_p): Make non-static.
11140         (enum avr_arch): Remove.
11141         (avr_arch_types): New.
11142         (avr_mcu_types): Update.
11143         (avr_override_options): Use avr_arch_types table instead of switch.
11144         * avr.h (CPP_PREDEFINES): Die.
11145         (avr_base_arch_macro, avr_extra_arch_macro): New.
11146         (TARGET_CPU_CPP_BUILTINS): New.
11147         (CPP_SPEC, EXTRA_SPECS): Simplify.
11148         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
11149         CPP_AVR5_SPEC): Die.
11150
11151 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11152
11153         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11154         NETBSD_OS_CPP_BUILTINS_AOUT.
11155         (SUBTARGET_EXTRA_SPECS): Define.
11156         (CPP_SPEC): Use %(netbsd_cpp_spec).
11157
11158 2002-05-29  Richard Henderson  <rth@redhat.com>
11159
11160         * config/i386/i386.c (ix86_output_function_epilogue): New.
11161         (TARGET_ASM_FUNCTION_EPILOGUE): New.
11162         (pic_label_name): Remove.
11163         (pic_labels_used): New.
11164         (ix86_asm_file_end): Emit one pc load stub for each register used.
11165         (output_set_got): Generate deep pc load to any register.
11166         (ix86_select_alt_pic_regnum): New.
11167         (ix86_save_reg): Don't save pic register if we can find a valid
11168         call-clobbered replacement.
11169         (ix86_expand_prologue): If we found a valid replacement, renumber
11170         pic_offset_table_rtx.
11171         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
11172         pic_offset_table_rtx after reload.
11173         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
11174         * config/i386/i386.md (set_got): Make insn, not expander.
11175         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
11176
11177 2002-05-29  Richard Henderson  <rth@redhat.com>
11178
11179         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
11180         alignment for alloca.
11181
11182 2002-05-29  Richard Henderson  <rth@redhat.com>
11183
11184         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
11185         (print_operand_address): Only add rip for symbolic addresses
11186         for which we do not have another relocation type.
11187
11188 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11189
11190         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11191         (EXTRA_SPECS): Add netbsd_cpp_spec.
11192         (CPP_SPEC): Use %(netbsd_cpp_spec).
11193         (CPP_PREDEFINES): Remove.
11194         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11195         (EXTRA_SPECS): Define.
11196         (CPP_SPEC): Use %(netbsd_cpp_spec).
11197         (CPP_PREDEFINES): Remove.
11198
11199 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11200
11201         PR preprocessor/6844
11202         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
11203         NUL.
11204
11205 2002-05-29  Eric Christopher  <echristo@redhat.com>
11206
11207         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
11208         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
11209
11210 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
11211
11212         * config/fr30/fr30.md: Remove previous restriction on splits.
11213         Enforce conformance through gen_lowpart and cont_int_operand.
11214         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
11215         as the assembler does not support ".bss".
11216
11217 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11218
11219         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11220         (CPP_PREDEFINES): Remove.
11221         (SUBTARGET_EXTRA_SPECS): Define.
11222         (CPP_SPEC): Use %(netbsd_cpp_spec).
11223         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11224         (CPP_PREDEFINES): Remove.
11225         (SUBTARGET_EXTRA_SPECS): Define.
11226         (CPP_SPEC): Use %(netbsd_cpp_spec).
11227         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
11228         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
11229         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
11230         Add netbsd_cpp_spec.
11231         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
11232
11233 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11234             Zack Weinberg <zack@codesourcery.com>
11235
11236         * cppexp.c (cpp_num): Move to cpplib.h.
11237         (CPP_ERROR): Remove.
11238         (interpret_float_suffix, interpret_int_suffix): New.
11239         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
11240         (cpp_classify_number, cpp_interpret_integer): New.
11241         (interpret_number): Remove.
11242         (eval_token): Update to use new routines.
11243         * cpphash.h (cpp_num_part): Move to cpplib.h.
11244         * cppinit.c (cpp_post_options): Set warn_long_long.
11245         * cpplib.h (struct cpp_options): Add warn_long_long.
11246         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
11247         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
11248         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
11249         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
11250         cpp_interpret_integer): New.
11251
11252 2002-05-29  Joel Sherrill <joel@OARcorp.com>
11253
11254         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
11255
11256 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11257
11258         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11259         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
11260         (CPP_SUBTARGET_SPEC): Define.
11261         (SUBTARGET_EXTRA_SPECS): Define.
11262         (CPP_SPEC): Remove.
11263
11264 2002-05-29  Chris Lattner  <sabre@nondot.org>
11265
11266         * ssa.c (rename_insn_1): Rename uses of undefined registers to
11267         prevent confusion if/when the register is defined.
11268
11269 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
11270
11271         PR target/6838
11272         * config/cris/cris.md: Fix typos and thinkos in comments.
11273         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
11274         second alternative.
11275         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
11276         ("*mov_sideqi_mem"): Similar, but for operand 3.
11277         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
11278         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
11279         Remove spurious mode specifier on operand 2.
11280
11281 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
11282
11283         * config/h8300/h8300-protos.h: Remove the prototype for
11284         o_operand.
11285         Add prototypes for single_one_operand and single_zero_operand.
11286         * config/h8300/h8300.c (o_operand): Remove.
11287         (single_one_operand): New.
11288         (single_zero_operand): Likewise.
11289         (print_operand): For 'V' operand, and the operand with 0xff.
11290         For 'V' and 'W' operands, do not and the bit position with 7.
11291         * config/h8300/h8300.md (various anonymous patterns): Replace
11292         use of exact_log2 with single_one_operand/single_zero_operand.
11293
11294 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
11295
11296         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
11297
11298 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
11299
11300         * config/s390/s390.c (legitimate_pic_operand_p): Do not
11301         accept symbolic LARL operands.
11302         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
11303         epilogue insns.
11304
11305 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
11306
11307         * config/s390/s390.md (cmpstr_64/31): Mark whole
11308         input registers as used.
11309
11310 2002-05-28  Richard Henderson  <rth@redhat.com>
11311
11312         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
11313         not current_function_uses_pic_offset_table and
11314         current_function_uses_const_pool; examine current_function_profile.
11315         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
11316         input to blockage if needed.
11317         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
11318         (legitimize_pic_address): Likewise.  Set regs_ever_live for
11319         pic_offset_table_rtx when invoked during reload.
11320         * config/i386/i386.h (FINALIZE_PIC): Remove.
11321         * config/i386/i386.md (tablejump): Reformat.  Do not set
11322         current_function_uses_pic_offset_table.
11323         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
11324         (blockage): Accept anything as operand 0.
11325
11326 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
11327
11328         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
11329         common CPP built-ins for all NetBSD a.out targets.
11330         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
11331         common CPP built-ins for all NetBSD ELF targets.
11332         * config/netbsd.h: Add missing notice.
11333         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
11334         for all NetBSD targets.
11335         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
11336         for all NetBSD targets using an LP64 code model.
11337         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
11338         NetBSD targets.
11339
11340 2002-05-28  Richard Henderson  <rth@redhat.com>
11341
11342         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
11343         update if UPDATE_LIFE_LOCAL.
11344
11345 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11346
11347         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
11348
11349 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
11350                           Jason R. Thorpe <thorpej@wasabisystems.com>
11351
11352         config/sh reorganization to factor out endianness and coff:
11353
11354         * config/sh/little.h: New file.
11355         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
11356         defined, define to 0 to select big-endian.
11357         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
11358         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11359         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11360         * config/sh/t-be: New file.
11361         * config/sh/t-le: New file.
11362
11363         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
11364         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
11365         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
11366         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
11367         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11368         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
11369         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
11370         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
11371         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
11372         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
11373         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
11374         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
11375         (LINK_SPEC): Define to SH_LINK_SPEC.
11376         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
11377         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
11378         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
11379         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
11380         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
11381         * config/sh/coff.h: New file.
11382         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
11383         (TARGET_OBJFMT_CPP_BUILTINS): Define.
11384         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
11385         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
11386         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
11387         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
11388         (PTRDIFF_TYPE): Likewise.
11389         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
11390         (CPP_PREDEFINES): Don't define.
11391         (TARGET_OBJFMT_CPP_BUILTINS): Define.
11392         (LINK_SPEC): Define to SH_LINK_SPEC.
11393         (LINK_EMUL_PREFIX): Redefine.
11394         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
11395         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
11396         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
11397         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
11398         (TARGET_OS_CPP_BUILTINS): Define.
11399         (TARGET_DEFAULT): Redefine.
11400         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
11401         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
11402         (LINK_SPEC): Don't redefine.
11403         (LINK_DEFAULT_CPU_EMUL): Redefine.
11404         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11405         * sh.c (sh_asm_named_section): Don't declare / define.
11406         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
11407         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
11408         (sh64-*-elf* tm_file): Likewise.
11409         (sh-*-rtemself* tm_file): Likewise.
11410         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
11411         (sh-*-linux* tmake_file): Add sh/t-le.
11412         (sh-*-rtems* tm_file): Add sh/coff.h
11413         (sh-*-* tm_file): Likewise.
11414
11415 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
11416
11417         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
11418         CONSTANT_POOL_ADDRESS_P.
11419
11420         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
11421
11422 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
11423             Jeff Law <law@redhat.com>
11424
11425         * optabs.c (expand_binop): Fix nwords sign warnings.
11426         generate pseudo for add_optab.
11427
11428         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
11429         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
11430
11431 2002-05-28      Marc Espie <espie@openbsd.org>
11432
11433         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
11434         inherited from gas.h.
11435         (ASM_QUAD):  Undef.  OpenBSD does not support it.
11436
11437 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
11438
11439         * doc/install.texi (binaries): Change mingw binaries
11440         link to www.mingw.org.
11441
11442 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11443
11444         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
11445
11446 2002-05-28  Richard Henderson  <rth@redhat.com>
11447
11448         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
11449         bottom alignment for leaf functions.
11450
11451 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
11452
11453         * config/pa/milli32.S, config/pa/lib1funcs.asm,
11454         config/sparc/sol2-g1.asm: Delete unused files.
11455
11456 2002-05-28  Richard Henderson  <rth@redhat.com>
11457
11458         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
11459
11460         * flow.c (calculate_global_regs_live): Rename call_used to
11461         invalidated_by_call.  Initialize from regs_invalidated_by_call
11462         instead of call_used_regs.
11463
11464         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
11465         DECL_EXTERNAL.
11466
11467 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
11468
11469         * tree.h: Don't include real.h.
11470         Forward-declare struct realvaluetype.
11471         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
11472         contain it.
11473         (TREE_REAL_CST_PTR): New accessor.
11474         (TREE_REAL_CST): Update.
11475         * real.h: Include machmode.h.
11476         (realvaluetype): Make it struct realvaluetype, not a typedef.
11477         (build_real): Prototype here.
11478
11479         * tree.c: Include real.h.
11480         (build_real): Allocate the REAL_VALUE_TYPE as a separate
11481         object in GC memory, set TREE_REAL_CST_PTR to point to it.
11482         (build_real_from_int_cst): Use build_real.
11483         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
11484         REAL_CST.
11485
11486         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
11487         fold-const.c, print-tree.c, real.c: Include real.h.
11488         * Makefile.in: Update dependency lists.
11489
11490 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11491
11492         * basic-block.h (last_basic_block): Declare.
11493         (expunge_block_nocompact): Declaration removed.
11494         (compact_blocks): Declare.
11495         * cfg.c (last_basic_block): New variable.
11496         (expunge_block_nocompact): Removed.
11497         (expunge_block): Do not compact basic blocks.
11498         (compact_blocks): New.
11499         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
11500         longer change.
11501         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
11502         last_basic_block.
11503         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
11504         real positions of blocks.
11505         (delete_unreachable_blocks): Simplified -- quadratic behavior now
11506         cannot occur.
11507         (cleanup_cfg): Compact blocks.
11508         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
11509         basic_block_info varray.
11510         (flow_delete_block): Comment update.
11511         (back_edge_of_syntactic_loop_p): Modify position check code.
11512         (verify_flow_info): Update checking.
11513         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
11514         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
11515         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
11516         indices no longer change.
11517         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
11518         last_basic_block.
11519         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
11520         * profile.c (branch_prob): Compact blocks.
11521         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
11522         last_basic_block.
11523
11524 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
11525
11526         * config/h8300/h8300.md (two anonymous patterns): New.
11527
11528 2002-05-28  David S. Miller  <davem@redhat.com>
11529
11530         * config/sparc/sparc.md (cpu): Tidy.
11531         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
11532         'trap'.
11533         (in_call_delay): Delete reference to 'return' type.
11534         (eligible_for_return_delay, in_return_delay, define_delay
11535         referencing those): Delete.
11536         (rest of file): Use new type attributes as appropriate.
11537         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
11538         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
11539         * config/sparc/ultra1_2.md (us1_single): New reservation.
11540         (us1_ialuX): Likewise.
11541         * config/sparc/ultra3.md (us3_single): Likewise.
11542         (us3_ialuX): Likewise.
11543         (us3_imul, us3_idiv): Tweak.
11544
11545 2002-05-28  Richard Henderson  <rth@redhat.com>
11546
11547         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
11548         STRING_CST.
11549
11550 2002-05-28  Richard Henderson  <rth@redhat.com>
11551
11552         * config.gcc: Obsolete mn10200.
11553
11554 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11555
11556         * cppexp.c (interpret_number): Optimize for single-digit
11557         and less-than-half-precision cases.
11558         (num_trim, num_positive, num_div_op): Cast constants.
11559
11560 2002-05-27  Bo Thorsen  <bo@suse.de>
11561
11562         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
11563         3.1 branch. The file was made by Jakub Jelinek.
11564         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
11565         support so multilib doesn't break. And don't define this at all
11566         when -Dinhibit_libc is used.
11567         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
11568         * config/i386/t-linux64: Implement full multilib support. Patch
11569         originally done by Andreas Jaeger and Jakub Jelinek.
11570
11571 2002-05-27  Roger Sayle  <roger@eyesopen.com>
11572
11573         * c-common.c: Add support for __attribute__((nothrow)) to specify
11574         that a function cannot throw an exception (using TREE_NOTHROW).
11575         (handle_nothrow_attribute): New function to process this attribute.
11576
11577         * doc/extend.texi: Document the new nothrow function attribute.
11578
11579 2002-05-27  H.J. Lu  (hjl@gnu.org)
11580
11581         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
11582         (num_positive): Likewise.
11583         (num_div_op): Likewise.
11584
11585 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11586
11587         * c-common.c (c_common_init): Always use intmax_t.
11588
11589 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11590
11591         * c-common.c (c_common_init): Use intmax_t for now.
11592
11593 2002-05-24  Andrew Haley  <aph@redhat.com>
11594
11595         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
11596         if T is a boolean type.
11597
11598 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11599
11600         * basic-block.h (last_basic_block): Defined as synonym for
11601         n_basic_blocks.
11602         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
11603         flow_depth_first_order_compute, flow_preorder_transversal_compute,
11604         flow_dfs_compute_reverse_init): Replaced relevant occurences of
11605         n_basic_blocks with last_basic_block.
11606         * cfgbuild.c (make_edges): Likewise.
11607         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
11608         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
11609         * combine.c (combine_instructions): Likewise.
11610         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
11611         iterative_dataflow_bitmap): Likewise.
11612         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
11613         calc_idoms, idoms_to_doms): Likewise.
11614         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
11615         Likewise.
11616         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
11617         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
11618         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
11619         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
11620         delete_null_pointer_checks, compute_code_hoist_vbeinout,
11621         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
11622         compute_store_table, build_store_vectors): Likewise.
11623         * haifa-sched.c (sched_init): Likewise.
11624         * ifcvt.c (if_convert): Likewise.
11625         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
11626         pre_edge_lcm, compute_available, compute_nearerout,
11627         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
11628         Likewise.
11629         * predict.c (estimate_probability, process_note_prediction,
11630         note_prediction_to_br_prob): Likewise.
11631         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
11632         * recog.c (split_all_insns, peephole2_optimize): Likewise.
11633         * regrename.c (copyprop_hardreg_forward): Likewise.
11634         * resource.c (init_resource_info): Likewise.
11635         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
11636         init_regions, schedule_insns): Likewise.
11637         * ssa-ccp.c (ssa_const_prop): Likewise.
11638         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11639         * ssa.c (compute_dominance_frontiers,
11640         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
11641
11642         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
11643         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
11644         sizes consistently.
11645
11646 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
11647
11648         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
11649         new.
11650         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
11651         hoist_insn_after, hoist_insn_to_edge): New.
11652
11653 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
11654
11655         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
11656         (PROP_FINAL): Include.
11657         * flow.c (life_analysis, update_life_info,
11658         init_propagate_block_info, mark_set_1, mark_used_rgs):
11659         Support SCAN_DEAD_STORE.
11660
11661 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11662
11663         * c-common.c (c_common_init): Set CPP arithmetic precision.
11664         * cppexp.c (cpp_num_part): Move typedef ...
11665         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
11666         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
11667         (sanity_checks): Update.
11668
11669 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
11670
11671         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
11672         (mkheaders): New rule.
11673         (install-mkheaders): New rule.
11674         * configure.in (all_outputs): Add mkheaders.
11675         * configure: Regenerate.
11676         * mkheaders.in: New file.
11677
11678 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
11679
11680         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
11681
11682 2002-05-26  Andreas Jaeger  <aj@suse.de>
11683
11684         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
11685
11686 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11687
11688         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
11689         right_shift): Remove.
11690         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
11691         HIGH_PART): New.
11692         (struct op): Use cpp_num.
11693         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
11694         num_part_mul, num_unary_op, num_binary_op, num_negate,
11695         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
11696         num_div_op, num_lshift, num_rshift, append_digit): New.
11697         (interpret_number, parse_defined, eval_token, reduce): Update
11698         for two-integer arithmetic.
11699         (binary_handler): New typedef.
11700         (optab): Update.
11701         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
11702         (_cpp_parse_expr, reduce): Update to handle two-integers.
11703         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
11704
11705 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11706
11707         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
11708         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
11709         branch insn into account, do not assume 1.
11710         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
11711         over single word insn.  Handle upper half of I/O space too.
11712         * config/avr/avr.md (*sbrx_branch): Use it.
11713         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
11714         (*sbix_branch, *sbix_branch_bit7): Likewise.
11715         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
11716         Use RTL peepholes to optimize register operand sign tests.
11717
11718 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11719
11720         * config/avr/avr.c (avr_asm_only_p): New variable.
11721         (avr_override_options): Set it here if AVR1.
11722         (asm_file_start): Test it here, report an error if set.
11723
11724 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
11725
11726         * alias.c: Fix formatting.
11727         * attribs.c: Likewise.
11728         * bb-reorder.c: Likewise.
11729         * bitmap.c: Likewise.
11730         * bitmap.h: Likewise.
11731         * builtins.c: Likewise.
11732
11733 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
11734
11735         * reload.c (find_valid_class): Accept new argument DEST,
11736         choose class accordingly.
11737         (push_reload): Update callers.
11738
11739 2002-05-26  Andreas Jaeger  <aj@suse.de>
11740
11741         * combine.c (combine_instructions): Do not indent #if for
11742         traditional C.
11743
11744 2002-05-25  Richard Henderson  <rth@redhat.com>
11745
11746         * c-pragma.c (apply_pragma_weak): Convert value identifier to
11747         string for decl_attributes.
11748         (handle_pragma_weak): Call assemble_alias if we're modifying
11749         an existing decl.
11750
11751 2002-05-25  Richard Henderson  <rth@redhat.com>
11752
11753         PR target/6788
11754         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
11755         using rtl instead of fprintf.
11756         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
11757         * config/sparc/sparc-protos.h: Update.
11758
11759 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11760
11761         * Makefile.in (C_COMMON_H): Fix.
11762         Update other targets.
11763         * c-common.c: Don't include c-lex.h.
11764         (builtin_define_with_value): Make static and prototype.
11765         (builtin_define_std): Move from c-lex.h.
11766         * c-common.h (init_c_lex): Move from c-lex.h.
11767         * c-decl.c: Don't include c-lex.h.
11768         (make_pointer_declarator): Move from c-parse.in.
11769         * c-lex.c: Don't include c-lex.h.
11770         * c-lex.h: Remove.
11771         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
11772         (make_pointer_declarator): Move to c-decl.c.
11773         * c-pragma.c: Don't include c-lex.h.
11774         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
11775         * c-tree.h (make_pointer_declarator): New.
11776 doc:
11777         * passes.texi, tm.texi: Update.
11778 objc:
11779         * Make-lang.in: Update and correct.
11780         * objc-act.c: Don't include c-lex.h or cpplib.h.
11781 treelang:
11782         * treetree.c: Don't include c-lex.h.
11783 config:
11784         * darwin-c.c: Don't include c-lex.h.
11785         * c4x/c4x-c.c: Don't include c-lex.h.
11786         * c4x/t-c4x: Update.
11787         * i370/i370-c.c: Don't include c-lex.h.
11788         * i370/t-i370: Update.
11789         * i960/i960-c.c: Don't include c-lex.h.
11790         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
11791         * i960/t-960bare: Update.
11792         * i960/t-vxworks: Update.
11793         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
11794         * rs6000/t-darwin: Update.
11795         * rs6000/t-rs6000-c-rule: Update.
11796         * v850/v850-c.c: Don't include c-lex.h.
11797         * v850/v850.c: Don't include c-lex.h or cpplib.h.
11798
11799
11800 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
11801
11802         * tree.def: Fix typos.
11803         * doc/install.texi: Likewise.
11804
11805 2002-05-25  Richard Henderson  <rth@redhat.com>
11806
11807         * configure.in (HAVE_AS_TLS): Add ia64 test.
11808         * configure: Rebuild.
11809         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
11810         (override_options): Set it.
11811         (TARGET_HAVE_TLS): New.
11812         (sdata_symbolic_operand): Look for 's'.
11813         (tls_symbolic_operand): New.
11814         (ia64_expand_load_address): Abort for tls symbols.
11815         (gen_tls_get_addr): New.
11816         (gen_thread_pointer): New.
11817         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
11818         (rtx_needs_barrier): Add new unspecs.
11819         (ia64_encode_section_info): Handle tls symbols.
11820         (ia64_strip_name_encoding): Strip two encoding chars.
11821         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
11822         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
11823         (TARGET_OPTIONS): Add tls-size.
11824         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
11825         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
11826         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
11827         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
11828         (movsf, movdf): Likewise.
11829         (movdi_symbolic): Use match_scratch.  Don't split if we won't
11830         have a scratch availiable.
11831         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
11832         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
11833         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
11834         * config/ia64/ia64-protos.h: Update.
11835         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11836         sdata_symbolic_operand.
11837         (ASM_OUTPUT_LABELREF): Strip two characters.
11838
11839 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
11840
11841         * combine.c (simplify_set): Remove an unnecessary subreg.
11842
11843 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11844
11845         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
11846
11847         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
11848
11849 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
11850
11851         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
11852
11853 2002-05-25  Roger Sayle  <roger@eyesopen.com>
11854
11855         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
11856         (cond (compare x y) 0) into the equivalent (cond x y).
11857
11858 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
11859
11860         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
11861
11862 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
11863
11864         * config.gcc: Remove all stanzas for previously obsoleted
11865         systems.  Where necessary, add explicit error stanzas to
11866         prevent removed systems from being misidentified as something
11867         else.  Begin a fresh obsoletions list, with the systems that
11868         were reprieved last round.
11869         * doc/install.texi: Remove all mention of dead targets.
11870         * fixinc/mkfixinc.sh: Likewise.
11871
11872         * config/arm/arm.h: Bit 31 of target_flags is no longer
11873         reserved.
11874
11875         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
11876         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
11877         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
11878         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
11879         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
11880         config/alpha/osf12.h, config/alpha/osf2or3.h,
11881         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
11882         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
11883         config/clipper/clipper-protos.h, config/clipper/clipper.c,
11884         config/clipper/clipper.h, config/clipper/clipper.md,
11885         config/clipper/clix.h, config/convex/convex-protos.h,
11886         config/convex/convex.c, config/convex/convex.h,
11887         config/convex/convex.md, config/convex/fixinc.convex,
11888         config/convex/proto.h, config/elxsi/elxsi-protos.h,
11889         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
11890         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
11891         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
11892         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
11893         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
11894         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
11895         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
11896         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
11897         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
11898         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
11899         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
11900         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
11901         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
11902         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
11903         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
11904         config/m68k/altos3068.h, config/m68k/apollo68.h,
11905         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
11906         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
11907         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
11908         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
11909         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
11910         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
11911         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
11912         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
11913         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
11914         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
11915         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
11916         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
11917         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
11918         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
11919         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
11920         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
11921         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
11922         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
11923         config/mips/dec-osf1.h, config/mips/elflorion.h,
11924         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
11925         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
11926         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
11927         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
11928         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
11929         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
11930         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
11931         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
11932         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
11933         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
11934         config/ns32k/sequent.h, config/ns32k/tek6000.h,
11935         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
11936         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
11937         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
11938         config/sparc/rtems.h, config/we32k/we32k-protos.h,
11939         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
11940         Delete file.
11941
11942 2002-05-24  Richard Henderson  <rth@redhat.com>
11943
11944         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
11945         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
11946         * config/i386/i386.c (tls_model_chars): Add leading space.
11947         (tls_symbolic_operand): Don't bias by 1.
11948         (legitimize_address): Don't unbias by 1.
11949
11950 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11951
11952         * lcm.c (optimize_mode_switching): Change bb used as indices
11953         to bb->index.
11954
11955 2002-05-24  Richard Henderson  <rth@redhat.com>
11956
11957         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
11958         of update_life_info_in_dirty_blocks.
11959
11960 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
11961
11962         PR other/6782
11963         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
11964
11965 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11966
11967         PR preprocessor/6780
11968         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
11969
11970 2002-05-24  Jim Blandy  <jimb@redhat.com>
11971
11972         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
11973         entry with a type code of zero, marking the end of the compilation
11974         unit's macro info.
11975
11976 2002-05-24  Richard Henderson  <rth@redhat.com>
11977
11978         * varasm.c (asm_output_bss): Always output one byte.
11979         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
11980
11981 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11982
11983         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
11984         namespace.
11985
11986 2002-05-24  Andreas Jaeger  <aj@suse.de>
11987
11988         * ggc-page.c (alloc_page): Cast variables of type size_t to
11989         unsigned long, adjust printf format string.
11990         (ggc_alloc): Likewise.
11991         (ggc_print_statistics): Likewise.
11992         (ggc_print_statistics): Correct printf format string for SCALE to
11993         use unsigned long.
11994
11995 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
11996
11997         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
11998
11999 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
12000             Zack Weinberg     <zack@codesourcery.com>
12001
12002         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
12003         quoted strings.
12004         * dwarf2out.c (lookup_filename): Properly quote filename in .file
12005         directive in assembly file.
12006         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12007         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12008         * config/pj/pj.h (ASM_FILE_START): Likewise.
12009         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12010         * config/avr/avr.c (asm_file_end): Likewise.
12011         * toplev.c (output_quoted_string): Handle possibly signed plain
12012         char.
12013         * toplev.h (output_clean_symbol_name): Declare
12014         * toplev.c (output_clean_symbol_name): Define.
12015         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
12016         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
12017
12018 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
12019
12020         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
12021
12022 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
12023
12024         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
12025         of size of unsigned.
12026
12027 2002-05-23  Richard Henderson  <rth@redhat.com>
12028
12029         * configure.in (HAVE_AS_TLS): New test.
12030         * config.in, configure: Rebuild.
12031         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
12032         (ix86_tls_dialect_string, ix86_tls_dialect): New.
12033         (override_options): Set it.
12034         (tls_model_chars, tls_symbolic_operand): New.
12035         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
12036         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
12037         (local_exec_symbolic_operand): New.
12038         (get_pic_label_name): Merge into output_set_got.
12039         (ix86_asm_file_end): Emit pic_label_name if defined.
12040         (legitimate_constant_p, constant_address_p): New.
12041         (legitimate_pic_operand_p): New.
12042         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
12043         (legitimate_address_p): Likewise.
12044         (ix86_encode_section_info): Rename from i386_; handle tls decls.
12045         (ix86_strip_name_encoding): New.
12046         (get_thread_pointer): New.
12047         (legitimize_address): Handle tls symbols.
12048         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
12049         Remove UNSPEC_PLT.
12050         (struct machine_function): Add some_ld_name.
12051         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
12052         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
12053         (output_addr_const_extra): New.
12054         (maybe_get_pool_constant): New.
12055         (ix86_split_to_parts): Use it.
12056         (ix86_expand_move): Handle tls symbols.
12057         (ix86_tls_get_addr): New.
12058         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
12059         (TARGET_OPTIONS): Add tls-dialect.
12060         (CONSTANT_ADDRESS_P): Use new out-of-line function.
12061         (LEGITIMATE_CONSTANT_P): Likewise.
12062         (LEGITIMATE_PIC_OPERAND_P): Likewise.
12063         (TARGET_STRIP_NAME_ENCODING): New.
12064         (ASM_OUTPUT_LABELREF): New.
12065         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
12066         (OUTPUT_ADDR_CONST_EXTRA): New.
12067         (PREDICATE_CODES): Update.
12068         (ix86_tls_dialect, ix86_tls_dialect_string): New.
12069         * config/i386/i386.md: Regroup and renumber unspec constants.
12070         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
12071         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
12072         (tls_global_dynamic, tls_local_dynamic_base): New.
12073         (tls_local_dynamic_once): New.
12074         * config/i386/i386-protos.h: Update.
12075
12076 2002-05-23  Richard Henderson  <rth@redhat.com>
12077
12078         * genemit.c (gen_insn): Print file:lineno comment before function.
12079         (main): likewise.
12080         * gensupport.c (struct queue_elem): Add filename member.
12081         (queue_pattern): Initialize it; update all callers.
12082         (process_include): Don't free filename.
12083         (read_md_rtx): Set read_rtx_filename.
12084
12085 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
12086
12087         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
12088
12089 2002-05-23  Richard Henderson  <rth@redhat.com>
12090
12091         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
12092
12093 2002-05-23  Richard Henderson  <rth@redhat.com>
12094
12095         * doc/extend.texi (C++98 Thread-Local Edits): Update with
12096         commentary from Mark.
12097
12098 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12099
12100         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
12101         Use FOR_EACH_BB macros to iterate over basic block chain.
12102         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
12103         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
12104         Likewise.
12105         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
12106         find_unreachable_blocks, create_edge_list, verify_edge_list,
12107         remove_fake_edges, add_noreturn_fake_exit_edges,
12108         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
12109         Likewise.
12110         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12111         find_sub_basic_blocks): Likewise.
12112         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
12113         Likewise.
12114         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
12115         Likewise.
12116         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
12117         Likewise.
12118         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
12119         commit_edge_insertions, commit_edge_insertions_watch_calls,
12120         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
12121         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
12122         * conflict.c (conflict_graph_compute): Likewise.
12123         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12124         df_modified_p, df_refs_unlink, df_dump): Likewise.
12125         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
12126         * final.c (compute_alignments): Likewise.
12127         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
12128         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
12129         count_or_remove_death_notes): Likewise.
12130         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
12131         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
12132         classic_gcse, compute_transp, cprop, compute_pre_data,
12133         compute_transpout, invalidate_nonnull_info,
12134         delete_null_pointer_checks_1, delete_null_pointer_checks,
12135         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
12136         compute_store_table, build_store_vectors, store_motion): Likewise.
12137         * global.c (global_conflicts, mark_elimination): Likewise.
12138         * graph.c (print_rtl_graph_with_bb): Likewise.
12139         * haifa-sched.c (sched_init): Likewise.
12140         * ifcvt.c (if_convert): Likewise.
12141         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12142         compute_available, compute_nearerout, compute_rev_insert_delete,
12143         optimize_mode_switching): Likewise.
12144         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
12145         * predict.c (estimate_probability, note_prediction_to_br_prob,
12146         propagate_freq, counts_to_freqs, expensive_function_p,
12147         estimate_bb_frequencies): Likewise.
12148         * profile.c (instrument_edges, get_exec_counts,
12149         compute_branch_probabilities, compute_checksum, branch_prob,
12150         find_spanning_tree): Likewise.
12151         * recog.c (split_all_insns, peephole2_optimize): Likewise.
12152         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
12153         Likewise.
12154         * regclass.c (scan_one_insn, regclass): Likewise.
12155         * regmove.c (mark_flags_life_zones, regmove_optimize,
12156         record_stack_memrefs): Likewise.
12157         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
12158         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
12159         * resource.c (find_basic_block): Likewise.
12160         * sched-ebb.c (schedule_ebbs): Likewise.
12161         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
12162         find_single_block_region, find_rgns, schedule_insns)
12163         * sibcall.c (optimize_sibling_and_tail_recursive_call)
12164         * ssa-ccp.c (optimize_unexecutable_edges,
12165         ssa_ccp_df_delete_unreachable_insns): Likewise.
12166         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12167         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
12168         rename_block, convert_to_ssa, compute_conservative_reg_partition,
12169         compute_coalesced_reg_partition, rename_equivalent_regs,
12170         convert_from_ssa): Likewise.
12171         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
12172         process_for_unwind_directive): Likewise.
12173
12174         * df.c (FOR_ALL_BBS): Removed.
12175         * gcse.c (struct null_pointer_info): Type of current_block field
12176         changed.
12177         (struct reg_avail_info): Type of last_bb field changed.
12178         * config/ia64/ia64.c (block_num): Removed.
12179         (need_copy_state): Type changed.
12180         (last_block): New.
12181
12182 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12183
12184         * cppinit.c (mark_named_operators): Split out from init_builtins.
12185         (cpp_finish_options): Call it from here instead.
12186
12187 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
12188
12189         * builtin-attrs.def: Update copyright years.
12190         (ATTR_NONNULL): New attribute identifier.
12191         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
12192         attribute tree lists.
12193         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
12194         format operand.
12195         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
12196         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
12197         attribute lists.  Chain the appropriate nonnull attribute.
12198         * c-format.c (check_format_arg): Remove null format string
12199         warning.
12200         * testsuite/gcc.dg/format/null-1.c: New test.
12201
12202 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12203
12204         * Makefile.in (ADAC): Define.
12205         (SYSLIBS): Define.
12206         (.SUFFIXES): Move before language makefile fragments.
12207         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
12208
12209 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
12210
12211         * varasm.c (make_decl_rtl): Don't allow weak variables to be
12212         placed in common.
12213
12214 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
12215
12216         * cfg.c (dump_flow_info): Print results of
12217         maybe_hot/probably_never_executed predicates.
12218         * toplev.c (open_dump_file): Print function frequency.
12219
12220 2002-05-23  David S. Miller  <davem@redhat.com>
12221
12222         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
12223         regsets.
12224
12225 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
12226
12227         * c-common.c (warn_nonnull): Declare.
12228         (c_common_attribute_table): Add "nonnull" attribute.
12229         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
12230         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
12231         check_function_arguments_recurse): New functions.
12232         * c-common.h (warn_nonnull): Declare extern.
12233         (check_function_arguments, check_function_arguments_recurse): New
12234         prototypes.
12235         * c-decl.c (c_decode_option): Add -Wnonnull option.
12236         * c-format.c (set_Wformat): Set warn_nonnull if enabling
12237         format checking.
12238         (format_check_context): New structure.
12239         (check_format_info_recurse): Remove recursion and rename to...
12240         (check_format_arg): ...this.  Update comment.
12241         (check_format_info): Use check_function_arguments_recurse.
12242         * c-typeck.c (build_function_call): Call check_function_arguments
12243         instead of check_function_format.
12244         * doc/extend.texi: Document "nonnull" attribute.
12245         * doc/invoke.texi: Docuemnt -Wnonnull option.
12246         * testsuite/gcc.dg/nonnull-1.c: New test.
12247         * testsuite/gcc.dg/nonnull-2.c: New test.
12248
12249 2002-05-23  David S. Miller  <davem@redhat.com>
12250
12251         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
12252         * cfgcleanup.c (cleanup_cfg): If it is set do not
12253         attempt to delete trivially dead insns.
12254         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
12255         * toplev.c (rest_of_compilation): Document non-trivial aspect
12256         the RTL before optimize_save_area_alloca is run.
12257
12258 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12259
12260         * c-lex.c (indent_level): Remove.
12261         (cb_file_change, c_lex): Remove indent level handling.
12262         * c-lex.h (indent_level): Remove.
12263         * input.h (struct file_stack): Remove indent_level.
12264         * toplev.c (push_srcloc): Remove indent_level handling.
12265
12266 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
12267
12268         PR target/6753
12269         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
12270         of x in constraints for clarity.
12271         (sse_mov?fcc split): abort if op2 == op3.
12272         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
12273         sse_movsfcc_const0_4): Add earlyclobber.
12274         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
12275         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
12276         Use Y instead of x in constraints.
12277
12278 2002-05-23  Richard Henderson  <rth@redhat.com>
12279
12280         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
12281         (C++98 Thread-Local Edits): New subsection.
12282
12283         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
12284         (ix86_arch): Set type to enum processor_type.
12285
12286         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
12287         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
12288
12289 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
12290
12291         * configure.in: Fix as version test for binutils 2.12.1 releases
12292         (without dates).
12293         * configure: Rebuilt.
12294
12295 2002-05-23  Richard Henderson  <rth@redhat.com>
12296
12297         * config/i386/i386.c (get_pic_label_name): New.
12298         (load_pic_register): Remove.
12299         (output_set_got): New.
12300         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
12301         * config/i386/i386.md (UNSPEC_SET_GOT): New.
12302         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
12303         (prologue_set_got, prologue_get_pc): Remove.
12304         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
12305         (builtin_setjmp_receiver): Use gen_set_got.
12306         * config/i386/i386-protos.h: Update.
12307
12308 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
12309
12310         * gcse.c (hash_expr): Do not use alias set for hashing.
12311
12312 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
12313
12314         * dbxout.c (dbxout_class_name_qualifiers): New function.
12315         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
12316
12317 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12318
12319         * cpperror.c (_cpp_begin_message): No special casing
12320         of CPP_FATAL_LIMIT.
12321         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
12322         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
12323         * cpplib.c (do_include_common): Use DL_ERROR.
12324         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
12325         (DL_ICE): Renumber.
12326         * fix-header.c (read_scan_file): Update.
12327
12328 2002-05-22  Richard Henderson  <rth@redhat.com>
12329
12330         * config/i386/i386.c (ix86_expand_call): New function, extracted
12331         from md call patterns.  Add pic_offset_table_rtx to
12332         CALL_INSN_FUNCTION_USAGE when needed.
12333         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
12334         (call_value_pop, call_value, untyped_call): Likewise.
12335         (call_exp, call_value_exp): Remove.
12336         * config/i386/i386-protos.h: Update.
12337
12338 2002-05-22  Richard Henderson  <rth@redhat.com>
12339
12340         * varasm.c (default_section_type_flags): Check for VAR_DECL
12341         before using DECL_THREAD_LOCAL.
12342
12343 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
12344
12345         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
12346         (STARTFILE_SPEC): Delete PE crt0.o.
12347         * config/rs6000/aix51.h: Same.
12348         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
12349         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
12350         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
12351         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
12352         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
12353
12354 2002-05-22  Richard Henderson  <rth@redhat.com>
12355
12356         * varasm.c (default_section_type_flags): Handle tls data and
12357         default sections.
12358         (default_unique_section): Handle tls sections.
12359
12360 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
12361
12362         * configure.in (CROSS): Define NATIVE_CROSS.
12363         * configure: Regenerate.
12364         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
12365         (startfile_prefix_spec): New var.
12366         (static_specs): Add startfile_prefix_spec.
12367         (do_spec_2): Split out from..
12368         (do_spec): ..here.
12369         (main): Process startfile_prefix_spec.
12370         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
12371         dynamic linker.
12372         (STARTFILE_PREFIX_SPEC): Define.
12373         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
12374         absolute paths.
12375
12376 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
12377
12378         * cpperror.c: Fix formatting.
12379         * cppexp.c: Likewise.
12380         * cppfiles.c: Likewise.
12381         * cpphash.c: Likewise.
12382         * cpphash.h: Likewise.
12383         * cppinit.c: Likewise.
12384         * cpplex.c: Likewise.
12385         * cpplib.c: Likewise.
12386         * cppmacro.c: Likewise.
12387         * cppmain.c: Likewise.
12388         * cppspec.c: Likewise.
12389
12390 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
12391
12392         * combine.c (force_to_mode): Use gen_int_mode.
12393         Don't clear CONST_INT bits outside of mode.
12394
12395 2002-05-22  Richard Henderson  <rth@redhat.com>
12396
12397         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
12398         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
12399
12400 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
12401
12402         PR c/6643
12403         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
12404         if DECL_SIZE_UNIT is INTEGER_CST.
12405
12406 2002-05-22  Richard Henderson  <rth@redhat.com>
12407
12408         * flow.c (life_analysis): Delete broken reg_label check.
12409
12410 2002-05-22  Richard Henderson  <rth@redhat.com>
12411
12412         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
12413         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
12414
12415 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12416
12417         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
12418         (embed-bb.c): New rule.
12419         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
12420         * config/sh/embed_bb.c: Delete.
12421
12422 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
12423
12424         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
12425
12426 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
12427
12428         * config/h8300/h8300.md (*andorqi3): New.
12429
12430 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12431
12432         PR preprocessor/6517
12433         * Makefile.in: Update.
12434         * c-common.c (c_common_post_options): Add preprocessor
12435         errors to the error count.
12436         * c-lang.c (c_post_options): Kill.
12437         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
12438         * hooks.h: Add header guards.
12439         * langhooks-def.h: Include hooks.h.
12440         (LANG_HOOKS_POST_OPTIONS): Update.
12441         * langhooks.h (struct lang_hooks): Update post_options.
12442         * toplev.c (parse_options_and_default_flags): Update.
12443 objc:
12444         * objc-lang.c (objc_post_options): Kill.
12445         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
12446
12447 2002-05-21  Bruce Korb  <bkorb@gnu.org>
12448
12449         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
12450         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
12451         * fixinc/fixincl.x: regen.
12452
12453 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
12454
12455         * cfgbuild.c: Fix formatting.
12456         * cfg.c: Likewise.
12457         * cfgcleanup.c: Likewise.
12458         * cfglayout.c: Likewise.
12459         * cfgloop.c: Likewise.
12460         * cfgrtl.c: Likewise.
12461
12462 2002-05-21  Richard Henderson  <rth@redhat.com>
12463
12464         * c-common.h (enum rid): Add RID_THREAD.
12465         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
12466         (grokdeclarator): Grok __thread.
12467         * c-parse.in (reswords): Add __thread.
12468         (rid_to_yy): Add RID_THREAD.
12469
12470         * tree.h (DECL_THREAD_LOCAL): New.
12471         (struct tree_decl): Add thread_local_flag.
12472         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
12473         * tree.c (staticp): TLS variables are not static.
12474
12475         * target-def.h (TARGET_HAVE_TLS): New.
12476         * target.h (have_tls): New.
12477         * output.h (SECTION_TLS): New.
12478         * varasm.c (assemble_variable): TLS variables can't be common for now.
12479         (default_section_type_flags): Handle .tdata and .tbss.
12480         (default_elf_asm_named_section): Handle SECTION_TLS.
12481         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
12482
12483         * flags.h (flag_tls_default): Declare.
12484         * toplev.c (flag_tls_default): Define.
12485         (display_help): Display help for it.
12486         (decode_f_option): Set it.
12487
12488         * doc/extend.texi (Thread-Local): New node describing language-level
12489         thread-local storage.
12490         * doc/invoke.texi (-ftls-model): Document.
12491
12492         * fixinc/inclhack.def (thread_keyword): New.
12493         * fixinc/fixincl.x: Rebuild.
12494
12495 2002-05-21  Jeffrey A Law  <law@redhat.com>
12496
12497         * optabs.c (expand_binop): For double-word integer multiplies,
12498         do not compute intermediate results into something that is
12499         not a register (such as a SUBREG or MEM).
12500
12501         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
12502         (ix86_sched_reorder): Make sure to initialize scheduling
12503         data even when there's only one insn in the ready queue.
12504
12505 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
12506
12507         * genautomata.c (reserv_sets_hash_value): Fix a typo.
12508
12509 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
12510
12511         * genautomata.c (reserv_sets_hash_value): Define hash_value as
12512         set_el_t.  Transform the hash value into unsigned.
12513         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
12514         (transform_3): Add code to process `(A,B)+(D,E)'.
12515
12516 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
12517
12518         * reload1.c (do_output_reload): Run delete_output_reload
12519         only if optimizing.
12520
12521 2002-05-21  Roger Sayle  <roger@eyesopen.com>
12522
12523         PR middle-end/6600
12524         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
12525         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
12526         (can_store_by_pieces): ... and here to limit the largest mode used.
12527         Add a comment to document this function.
12528
12529 2002-05-21  Richard Henderson  <rth@redhat.com>
12530
12531         * flow.c (life_analysis): Fix test for deleted label.
12532
12533 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12534
12535         * doc/tm.texi: Fix typo.
12536
12537 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
12538
12539         * c-common.c (c_common_init): Set options->unsigned_char from
12540         flag_signed_char.
12541         (cb_register_builtins): Define __STRICT_ANSI__ and
12542         __CHAR_UNSIGNED__ here...
12543         * cppinit.c (init_builtins): Not here.
12544         (cpp_create_reader): unsigned_char option defaults to 0, not
12545         !DEFAULT_SIGNED_CHAR.
12546         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
12547         and -funsigned-char.
12548
12549         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
12550         * cpphash.c (_cpp_init_hashtable): Don't set it.
12551         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
12552         directly.  Clarify comment.
12553
12554 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12555
12556         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
12557         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
12558         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
12559         BASIC_BLOCK (n_basic_blocks - 1).
12560         * cfganal.c (can_fallthru, flow_call_edges_add,
12561         flow_preorder_transversal_compute): Too.
12562         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12563         find_sub_basic_blocks): Too.
12564         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
12565         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
12566         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
12567         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
12568         * combine.c (this_basic_block): Type changed to basic_block.
12569         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
12570         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
12571         get_last_value, distribute_notes, distribute_links): Too.
12572         * final.c (compute_alignments): Too.
12573         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
12574         * function.c (thread_prologue_and_epilogue_insns): Too.
12575         * gcse.c (compute_code_hoist_vbeinout): Too.
12576         * global.c (build_insn_chain): Too.
12577         * ifcvt.c (find_if_block, find_cond_trap): Too.
12578         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
12579         * regmove.c (regmove_optimize): Too.
12580         * resource.c (find_basic_block): Too.
12581         * sched-ebb.c (schedule_ebbs): Too.
12582         * ssa-dce.c (find_control_dependence, find_pdom): Too.
12583
12584 2002-05-21  Andreas Jaeger  <aj@suse.de>
12585
12586         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
12587
12588 2002-05-21  Richard Henderson  <rth@redhat.com>
12589
12590         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
12591         unspec names, not numbers.
12592
12593 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12594
12595         * doc/sourcebuild.texi: Mention snapshot-README and
12596         snapshot-index.html as needing updating for new front ends.
12597
12598 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12599
12600         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
12601         disabling checking, and avoid multiple evaluation of RTX.
12602
12603 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
12604
12605         * bitmap.c (bitmap_find_bit): Return early if we have the correct
12606         element cached.
12607
12608 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
12609
12610         * profile.c (gen_edge_profiler):  Set alias set before the memory is
12611         used.
12612
12613 2002-05-20  David S. Miller  <davem@redhat.com>
12614
12615         * cselib.c (max_value_regs): New.
12616         (cselib_lookup, cselib_invalidate_regno): Initialize it when
12617         adding new entries to the REG_VALUES table and we are dealing with
12618         a hard register.
12619         (clear_table): Initialize it.
12620         (cselib_invalidate_regno): Use it to determine which hard
12621         registers to scan when mode is not VOIDmode.
12622
12623 2002-05-20  Duraid Madina   <duraid@fl.net.au>
12624
12625         * tradcpp.c (fixup_newlines): Use old-style function header.
12626
12627 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
12628
12629         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
12630
12631 2002-05-20  H.J. Lu  (hjl@gnu.org)
12632
12633         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
12634
12635         * config/mips/mips.h (DFMODE_NAN): Defined.
12636         (SFMODE_NAN): Likewise.
12637
12638 2002-05-20  Dale Johannesen  <dalej@apple.com>
12639
12640         * combine.c (cant_combine_insn_p):  Back out my
12641         previous patch.
12642
12643 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
12644
12645         * params.c: Fix formatting.
12646         * params.h: Likewise.
12647         * predict.c: Likewise.
12648         * prefix.c: Likewise.
12649         * print-rtl.c: Likewise.
12650         * print-tree.c: Likewise.
12651         * profile.c: Likewise.
12652
12653 2002-05-20  H.J. Lu  (hjl@gnu.org)
12654
12655         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
12656
12657 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
12658
12659         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
12660         switches straight on to the assembler, do not abbreviate them.
12661         * config/arm/elf.h (ASM_SPEC): As above.
12662         * config/arm/semi.h (ASM_SPEC): As above.
12663         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
12664         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
12665         -mcpu=xscale on to the assembler by default.
12666         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
12667
12668 2002-05-20  Richard Henderson  <rth@redhat.com>
12669
12670         * cse.c (canon_hash): Reorder do_not_record test.  Always
12671         allow pic_offset_table_rtx.
12672
12673 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
12674
12675         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
12676         (expand_binop): Ditto (3 times).
12677
12678 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
12679
12680         * Makefile.in (distclean): Remove QMTest stuff.
12681         (QMTEST_PATH): New variable.
12682         (QMTESTFLAGS): Likewise.
12683         (QMTESTRUNFLAGS): Likewise.
12684         (QMTEST): Likewise.
12685         (QMTEST_GPP_TESTS): Likewise.
12686         (QMTEST_DIR): Likewise.
12687         (QMTEST_DIR/context): New target.
12688         (qmtest-g++): Likeise.
12689         (qmtest-gui): Likewise.
12690         (QMTEST_DIR/gpp-expected.qmr): Likewise.
12691
12692 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
12693
12694         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
12695         an altivec register if TARGET_ALTIVEC.
12696
12697         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
12698         to ALTIVEC_VECTOR_MODE.
12699         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
12700         (rs6000_va_arg): Vectors may go in registers if they are not
12701         altivec vectors.
12702
12703 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
12704
12705         * protoize.c: Fix formatting.
12706
12707 2002-05-19  Richard Henderson  <rth@redhat.com>
12708
12709         * gensupport.c (init_include_reader): Merge into ...
12710         (process_include): ... here.  Simplify composite path creation.
12711         Plug memory leaks.  Fix file/line number tracking.  Do not
12712         process_define_cond_exec.  Return void.
12713         (process_rtx): Don't check process_include return value.
12714
12715 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12716
12717         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
12718         fields.
12719         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
12720         traversing basic block chain.
12721         (create_basic_block_structure, create_basic_block): Declaration changed.
12722         (link_block, unlink_block): Declare.
12723         * cfg.c (entry_exit_blocks): Initialize new fields.
12724         (link_block, unlink_block): New.
12725         (expunge_block_nocompact): Unlink basic block.
12726         (dump_flow_info): Print prev_bb/next_bb fields.
12727         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
12728         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
12729         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
12730         * cfgrtl.c (create_basic_block_structure, create_basic_block,
12731         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
12732         (verify_flow_info): Check that list agrees with numbering.
12733
12734 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12735
12736         * c-common.c (preprocessing_asm): New macro.
12737         * c-lex.h (builtin_define, builtin_assert): Use pfile.
12738 doc:
12739         * tm.texi: Update.
12740 config/alpha:
12741         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
12742         (CPP_SPEC): Simplify.
12743         (TARGET_CPU_CPP_BUILTINS): Update.
12744         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
12745         (CPP_SPEC): Simplify.
12746         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
12747         (TARGET_OS_CPP_BUILTINS): Update.
12748         * osf.h (CPP_XFLOAT_SPEC): Kill.
12749         (TARGET_OS_CPP_BUILTINS): Update.
12750         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
12751         * osf5.h (CPP_XFLOAT_SPEC): Kill.
12752         * vms.h (CPP_SUBTARGET_SPEC): Kill.
12753         (TARGET_OS_CPP_BUILTINS): Update.
12754
12755 2002-05-19  Richard Henderson  <rth@redhat.com>
12756
12757         * varasm.c (default_binds_local_p): Fix typo.
12758
12759 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12760
12761         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
12762         CONST_INT operand to the correct mode after adding 1 to it.
12763
12764 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
12765
12766         * config.gcc (powerpc-wrs-windiss*): New target.
12767
12768 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12769
12770         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
12771         (ashrdi3): Use it.
12772
12773 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
12774
12775         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
12776         alphasort.
12777         * config.in: Regenerated.
12778         * configure: Regenerated.
12779
12780 2002-05-19  Richard Henderson  <rth@redhat.com>
12781
12782         * target-def.h (TARGET_BINDS_LOCAL_P): New.
12783         * target.h (struct gcc_target): Move boolean fields to the end.
12784         Add binds_local_p.
12785         * varasm.c (default_binds_local_p): New.
12786         * output.h: Declare it.
12787
12788         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
12789         * config/cris/cris.c (cris_encode_section_info): Likewise.
12790         * config/i386/i386.c (i386_encode_section_info): Likewise.
12791         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
12792         * config/sh/sh.c (sh_encode_section_info): Likewise.
12793
12794         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
12795         (TARGET_BINDS_LOCAL_P): New.
12796
12797 2002-05-19  Richard Henderson  <rth@redhat.com>
12798
12799         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
12800         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
12801         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
12802
12803         * toplev.c (display_help): Kill -a -ax help.
12804
12805         * config/1750a/1750a.h, config/alpha/alpha.h,
12806         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
12807         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
12808         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
12809         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
12810
12811         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
12812         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
12813
12814         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
12815         (ix86_output_function_block_profiler): Kill.
12816         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
12817         (m68hc11_function_block_profiler): Kill.
12818         * config/m68hc11/m68hc11-protos.h: Update.
12819         * config/m88k/m88k.c (output_block_profiler): Kill.
12820         (output_function_block_profiler): Kill.
12821         * config/m88k/m88k-protos.h: Update.
12822
12823 2002-05-19  Richard Henderson  <rth@redhat.com>
12824
12825         * system.h (STRIP_NAME_ENCODING): Poison it.
12826         * output.h (STRIP_NAME_ENCODING): Remove.
12827         (default_strip_name_encoding): Declare.
12828         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
12829         * target.h (strip_name_encoding): New.
12830         * varasm.c (default_strip_name_encoding): New.
12831
12832         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
12833         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
12834         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
12835         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
12836         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
12837         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
12838         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
12839         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
12840         config/v850/v850.h: Use the hook, not the macro.
12841
12842         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12843         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
12844         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
12845         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
12846         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
12847         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
12848         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
12849         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
12850         config/v850/v850.c, config/v850/v850.h:
12851         Move STRIP_NAME_ENCODING to out-of-line function and add
12852         TARGET_STRIP_NAME_ENCODING.
12853
12854         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
12855         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
12856         with TARGET_STRIP_NAME_ENCODING referencing existing function;
12857         make function static.
12858
12859         * xcoffout.c: Include target.h
12860         * Makefile.in (xcoffout.o): Update.
12861
12862         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
12863         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
12864         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
12865         reloc argument unused.
12866         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
12867
12868         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
12869         STRIP_NAME_ENCODING docs.
12870
12871 2002-05-19  Andreas Jaeger  <aj@suse.de>
12872
12873         * gengenrtl.c: Add prototype for excluded_rtx.
12874
12875         * real.h: Add prototype for exact_real_truncate.
12876
12877 2002-05-18  Richard Henderson  <rth@redhat.com>
12878
12879         * system.h (ENCODE_SECTION_INFO): Poison it.
12880         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
12881         * target.h (encode_section_info): New.
12882         * varasm.c (make_decl_rtl, output_constant_def): Use it.
12883         * hooks.c (hook_tree_int_void): New.
12884         * hooks.h: Declare it.
12885
12886         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12887         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
12888         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
12889         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
12890         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
12891         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
12892         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
12893         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
12894         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
12895         config/mcore/mcore-protos.h, config/mcore/mcore.c,
12896         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
12897         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
12898         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
12899         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
12900         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
12901         referencing existing function.  Make function static.
12902
12903         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
12904         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
12905         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
12906         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
12907         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
12908         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
12909         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
12910         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
12911         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
12912         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
12913         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
12914         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
12915         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
12916         Move ENCODE_SECTION_INFO to out-of-line function and add
12917         TARGET_ENCODE_SECTION_INFO.
12918
12919         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
12920         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
12921
12922         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
12923         from SUBTARGET_*
12924         (switch_to_section): Replace in_rdata case with in_readonly_data.
12925
12926         * config/h8300/h8300.c (h8300_encode_label): Make static.
12927         * config/h8300/h8300-protos.h: Update.
12928
12929         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
12930         from rs6000_encode_section_info; make static.
12931         (rs6000_xcoff_encode_section_info): New.
12932
12933         * config/v850/v850.c (v850_encode_data_area): Make static.
12934         * config/v850/v850-protos.h: Update.
12935
12936         * config/vax/vax.c: Include flags.h.
12937         (vms_select_section): Fix typo.
12938
12939         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
12940         ENCODE_SECTION_INFO docs.
12941
12942 2002-05-18  Richard Henderson  <rth@redhat.com>
12943
12944         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
12945         REGISTER_TARGET_PRAGMAS.
12946         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
12947
12948         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
12949
12950 2002-05-18  Richard Henderson  <rth@redhat.com>
12951
12952         * system.h (SELECT_RTX_SECTION): Poison.
12953         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
12954         * target.h (select_rtx_section): New.
12955         * varasm.c (output_constant_pool): Use it.
12956         (default_select_rtx_section, default_elf_select_rtx_section): New.
12957         * output.h: Declare them.
12958
12959         * config/darwin.h (SELECT_RTX_SECTION): Move ...
12960         * config/darwin.c (machopic_select_rtx_section): ... here.
12961         * config/darwin-protos.h: Update.
12962
12963         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
12964         * config/nextstep.c (machopic_select_rtx_section): ... here.
12965         (nextstep_select_section): Rename variable to avoid macro clash.
12966         * config/nextstep-protos.h: Update.
12967
12968         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
12969         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
12970         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
12971         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
12972         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
12973         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
12974         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
12975         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
12976         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
12977         (SELECT_RTX_SECTION): Remove.
12978
12979         * config/darwin.h, config/elfos.h, config/nextstep.h,
12980         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
12981         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
12982         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
12983         config/sparc/lynx.h, config/xtensa/xtensa.c
12984         (TARGET_ASM_SELECT_RTX_SECTION): New.
12985
12986         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
12987         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
12988         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
12989         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
12990         (ia64_aix_select_rtx_section): New.
12991         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
12992         redefining.
12993         * config/mips/mips.c (mips_select_rtx_section): Make static.
12994         Support ELF SHF_MERGE features.
12995         * config/mips/mips-protos.h: Update.
12996         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
12997         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
12998         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
12999         make static, fall back to default_elf_select_rtx_section.
13000         * config/rs6000/rs6000-protos.h: Update.
13001         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
13002         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
13003         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
13004         * config/romp/romp.c (romp_select_rtx_section): New.
13005         * config/s390/s390.c (s390_select_rtx_section): New.
13006         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
13007         declarations before target macro definition.
13008         (xtensa_emit_call): Use static buffer.
13009         (xtensa_select_rtx_section): New.
13010         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
13011         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
13012         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
13013
13014         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
13015         SELECT_RTX_SECTION docs.
13016
13017 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13018
13019         * i386.md (movsi/movdi): Fix template.
13020         (sse2 patterns): Set attributes consistently.
13021
13022         * i386.md (pushqi2, ashrqi_*): Fix constraint.
13023
13024 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13025
13026         * optabs.c (complex_part_zero_p): New.
13027         * (expand_cmplxdiv_straight): Use it.
13028         * (expand_cmplxdiv_wide): Ditto.
13029         * (expand_binop): Ditto.
13030
13031 2002-05-18  Richard Henderson  <rth@redhat.com>
13032
13033         * final.c (HAVE_READONLY_DATA_SECTION): New.
13034         (shorten_branches): Use it instead of ifdefs.
13035         * varasm.c (enum in_section): Add in_readonly_data.
13036         (text_section, data_section): Tidy.
13037         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
13038
13039         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
13040         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
13041         (READONLY_DATA_SECTION): Don't undef.
13042
13043         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
13044         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
13045         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
13046
13047         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
13048         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
13049         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
13050         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
13051
13052         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
13053         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
13054         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13055         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
13056         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
13057         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
13058         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
13059         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
13060         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
13061
13062         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
13063         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
13064         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
13065         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
13066         config/pa/pa64-hpux.h, config/sparc/litecoff.h
13067         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13068
13069         * config/elfos.h, config/netware.h, config/svr3.h,
13070         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13071         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13072         config/h8300/h8300.h, config/i386/i386-interix.h,
13073         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13074         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
13075
13076         * config/elfos.h, config/netware.h, config/svr3.h,
13077         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13078         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
13079         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13080         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
13081
13082         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
13083         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
13084         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
13085         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
13086         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
13087         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
13088         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
13089         config/rs6000/sysv4.h, config/v850/v850.h
13090         (EXTRA_SECTIONS): Remove in_const/in_rdata.
13091         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
13092
13093         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
13094         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
13095         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
13096         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
13097         * config/alpha/alpha.c (alpha_start_function): Likewise.
13098         (alpha_write_linkage): Likewise.
13099         * config/m32r/m32r.c (m32r_select_section): Likewise.
13100         * config/m88k/m88k.c (m88k_select_section): Likewise.
13101         * config/mips/mips.c (mips_select_rtx_section): Likewise.
13102         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
13103         (rs6000_elf_select_section): Likewise.
13104         * config/v850/v850.c (v850_select_section): Likewise.
13105
13106         * config/1750a/1750a.h, config/i860/sysv3.h
13107         (READONLY_DATA_SECTION_ASM_OP): New.
13108         READONLY_DATA_SECTION_ASM_OP.
13109         * config/i386/interix.c, config/i386/winnt.c
13110         (i386_pe_unique_section): Always use .rdata prefix.
13111         * config/pa/som.h (readonly_data): Always switch to read-only section.
13112         (READONLY_DATA_SECTION): Predicate on flag_pic.
13113         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
13114         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
13115         (READONLY_DATA_SECTION): Update.
13116
13117 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
13118
13119         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
13120         is used without -Wformat.
13121         * c-common.h (warn_format_zero_length): Declare extern.
13122         * c-decl.c (warn_options): Add "format-zero-length".
13123         * c-format.c (warn_format_zero_length): Declare.
13124         (set_Wformat): Set warn_format_zero_length for -Wformat.
13125         (check_format_info): Only warn about zero-length formats if
13126         warn_format_zero_length is true.  Include the format type
13127         name in the warning message.
13128         * doc/invoke.texi: Document -Wformat-zero-length.
13129         * testsuite/gcc.dg/format/zero-length-1.c: New test.
13130
13131 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
13132
13133         * timevar.c: Fix formatting.
13134         * tlink.c: Likewise.
13135         * toplev.c: Likewise.
13136         * tree-dump.c: Likewise.
13137         * tree-inline.c: Likewise.
13138
13139 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13140
13141         * cppinit.c (cpp_post_options): If preprocessed, turn off
13142         traditional.  If traditional, turn off column numbers.
13143         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
13144         * cpptrad.c (handle_newline): Update line_base.
13145         (skip_comment): Handle -Wcomment.
13146
13147 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
13148
13149         * cppinit.c (struct builtin): Remove unused fields.
13150         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
13151         (operator_array): New - was second half of builtin_array.
13152         (init_builtins): Simplify loop over builtin_array/operator_array.
13153
13154 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13155
13156         * defaults.h (UNIQUE_SECTION): Remove.
13157         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
13158
13159 2002-05-17  Richard Henderson  <rth@redhat.com>
13160
13161         * expr.c (init_expr_once): Don't use start/end_sequence.
13162         Use rtx_alloc instead of emit_insn.
13163         * toplev.c (lang_dependent_init): Run init_expr_once here ...
13164         (lang_independent_init): ... not here.
13165
13166 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
13167
13168         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
13169
13170 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13171
13172         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
13173         for fixed registers, possibly used for global register variables.
13174         (initial_elimination_offset, avr_output_function_prologue,
13175         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
13176
13177 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13178
13179         * Makefile.in: Update for cpptrad.c.
13180         * cpphash.h (struct cpp_buffer): New members for buffer
13181         overlays.
13182         (struct cpp_reader): New members for traditional output.
13183         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
13184         * cppinit.c (cpp_create_reader): Set trad_line.
13185         (cpp_destroy): Free trad_out_base if used.
13186         (cpp_read_main_file): Overlay an empty buffer if traditional.
13187         (cpp_finish_options): Don't do builtins.
13188         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
13189         (cpp_handle_option): Handle it.
13190         * cpplex.c (continue_after_nul): New.
13191         (_cpp_lex_direct): Use handle_nul.
13192         * cpplib.h (struct cpp_options): New traditional option.
13193         * cpptrad.c: New file.
13194
13195 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13196
13197         * c-common.c (c_common_init_options): Use C89 for Objective-C,
13198         and set the options flag.
13199         * cppinit.c (lang_flags): Remove objc.
13200         (lang_defaults): Remove OBJC and OBJCXX.
13201         (set_lang): Update.
13202         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
13203         (cpp_handle_option): Remove -+ and -lang-objc++.
13204         For ObjC, just set a flag.
13205         (print_help): Update.
13206         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
13207
13208 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13209
13210         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
13211         bootstrap with -mips3.
13212
13213 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
13214
13215         * final.c: Fix formatting.
13216         * fix-header.c: Likewise.
13217         * flow.c: Likewise.
13218         * fold-const.c: Likewise.
13219         * function.c: Likewise.
13220
13221 2002-05-17  David S. Miller  <davem@redhat.com>
13222
13223         PR c/6689, PR optimization/6615
13224         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
13225         and make it a pointer to rtx.  Update comments.
13226         (update_equiv_regs): When scanning for equivalences, record
13227         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
13228         it while making the equiv replacements.
13229
13230 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13231
13232         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
13233
13234 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13235
13236         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
13237         when encoding visibility into SYMBOL_REF_FLAG.
13238
13239 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
13240
13241         * expr.c (force_operand): Fix reversed move.
13242
13243 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
13244
13245         * doc/install.texi (Testing): Mention two common DejaGnu warnings
13246         that can be ignored.
13247
13248 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13249
13250         * doc/install.texi (Final install): Recommend to install into a
13251         "clean" target directory.
13252
13253 2002-05-17  Richard Henderson  <rth@redhat.com>
13254
13255         * config/ia64/ia64.md: Use braced strings instead of quoted strings
13256         for code blocks.  Tidy whitespace.
13257
13258 2002-05-17  Richard Henderson  <rth@redhat.com>
13259
13260         * hooks.c (hook_tree_bool_false): New.
13261         * hooks.h: Declare it.
13262         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
13263         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
13264         * target.h (select_section, unique_section): New.
13265         (in_small_data_p): New.
13266         * varasm.c (resolve_unique_section): Use hooks instead of macros.
13267         (variable_section, output_constant_def_contents): Likewise.
13268         (default_select_section, default_unique_section): New.
13269         (categorize_decl_for_section, default_elf_select_section): New.
13270         * output.h: Declare them.
13271
13272         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
13273         (TARGET_ASM_SELECT_SECTION): New.
13274         (SELECT_SECTION): Move ...
13275         * config/darwin.c (machopic_select_section): ... here.
13276         * config/darwin-protos.h: Update.
13277
13278         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
13279         (SELECT_SECTION): Move ...
13280         * config/nextstep.c (nextstep_select_section): ... here.
13281         * config/nextstep-protos.h: Update.
13282
13283         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
13284         (TARGET_ASM_SELECT_SECTION): New.
13285         * config/svr3.h (SELECT_SECTION): Remove.
13286
13287         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
13288         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
13289         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
13290         (alpha_encode_section_info): Use it.
13291         * config/alpha/alpha-protos.h: Update.
13292         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
13293         (SELECT_SECTION, UNIQUE_SECTION): Remove.
13294         (TARGET_ASM_SELECT_SECTION): New.
13295         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
13296
13297         * config/arm/pe.h (UNIQUE_SECTION): Remove.
13298         (TARGET_ASM_UNIQUE_SECTION): New.
13299
13300         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
13301         (avr_unique_section): Rename from unique_section; make static.
13302         * config/avr/avr-protos.h: Update.
13303         * config/avr/avr.h (UNIQUE_SECTION): Remove.
13304
13305         * config/c4x/c4x.h (SELECT_SECTION): Remove.
13306
13307         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
13308         (TARGET_ASM_UNIQUE_SECTION): New.
13309         * config/i386/i386-interix.h: Likewise.
13310         * config/i386/win32.h: Likewise.
13311         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
13312         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
13313         * config/i386/sco5.h (SELECT_SECTION): Remove.
13314         (TARGET_ASM_SELECT_SECTION): New.
13315         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
13316
13317         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
13318         instead of SELECT_SECTION.
13319         * config/m68k/dpx2.h: Likewise.
13320         * config/rs6000/lynx.h: Likewise.
13321
13322         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13323         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13324         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
13325         (ia64_in_small_data_p): New.
13326         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
13327         (ia64_aix_select_section, ia64_aix_unique_section): New.
13328         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
13329         (SELECT_SECTION, UNIQUE_SECTION): Remove.
13330
13331         * config/m32r/m32r.h (SELECT_SECTION): Remove.
13332         (TARGET_ASM_SELECT_SECTION): New.
13333         * config/m32r/m32r.c (m32r_select_section): Take align argument.
13334         * config/m32r/m32r-protos.h: Update.
13335
13336         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
13337         (SELECT_SECTION): Move ...
13338         * config/m88k/m88k.c (m88k_select_section): ... here.
13339
13340         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
13341         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
13342         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
13343         (mcore_unique_section): Make static.
13344         * config/mcore/mcore-protos.h: Update.
13345
13346         * config/mips/elf.h (UNIQUE_SECTION): Remove.
13347         (TARGET_ASM_UNIQUE_SECTION): New.
13348         * config/mips/elf64.h: Likewise.
13349         * config/mips/iris6gld.h: Likewise.
13350         * config/mips/linux.h: Likewise.
13351         * config/mips/mips-protos.h: Update.
13352         * config/mips/mips.c (mips_select_section): Add align argument.
13353         * config/mips/mips.h (SELECT_SECTION): Remove.
13354         (TARGET_ASM_SELECT_SECTION): New.
13355
13356         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13357         * config/mmix/mmix.c (mmix_select_section): Remove.
13358         (mmix_unique_section): Remove.
13359         * config/mmix/mmix-protos.h: Update.
13360
13361         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
13362         (SELECT_SECTION): Move ...
13363         * config/pa/pa.c (pa_select_section): ... here.
13364         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
13365
13366         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
13367         from rs6000_select_section and make static.
13368         (rs6000_elf_unique_section): Similarly.
13369         (rs6000_xcoff_select_section): From xcoff.h.
13370         (rs6000_xcoff_unique_section): Likewise.
13371         * config/rs6000/rs6000-protos.h: Update.
13372         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13373         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13374         * config/rs6000/xcoff.h: Likewise.
13375
13376         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
13377         (SELECT_SECTION): Move ...
13378         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
13379
13380         * config/v850/v850.h (SELECT_SECTION): Move ...
13381         * config/v850/v850.c (v850_select_section): ... here.
13382         (TARGET_ASM_SELECT_SECTION): New.
13383
13384         * config/vax/vms.h (SELECT_SECTION): Move ...
13385         * config/vax/vax.c (vms_select_section): ... here.
13386         (TARGET_ASM_SELECT_SECTION): New.
13387
13388         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
13389         for the target hooks.
13390
13391 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
13392
13393         * config/arm/arm.c (emit_multi_reg_push): Do not set
13394         RTX_FRAME_RELATED_P on the SEQUENCE.
13395
13396 2002-05-16  Richard Henderson  <rth@redhat.com>
13397
13398         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
13399         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
13400
13401 2002-05-16  Richard Henderson  <rth@redhat.com>
13402
13403         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
13404
13405         * config/ia64/ia64.c (saveable_obstack): Do not declare.
13406
13407 2002-05-16  Richard Henderson  <rth@redhat.com>
13408
13409         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
13410         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
13411         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
13412         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
13413         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
13414         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
13415         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
13416         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
13417         Revert "Basic block renumbering removal", and two followup patches.
13418
13419 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
13420
13421         * lcm.c (optimize_mode_switching): Revert previous change.
13422
13423 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13424
13425         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
13426         with only extant block numbers.
13427
13428 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
13429
13430         * lcm.c (optimize_mode_switching): Fix typo.
13431
13432 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13433
13434         * flow.c (calculate_global_regs_live): Queue blocks in program order.
13435
13436 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13437
13438         * doc/install.texi (Configuration): Document PWDCMD.
13439
13440 2002-05-16  Dale Johannesen  <dalej@apple.com>
13441
13442         * combine.c (cant_combine_insn_p):  Reenable combinations
13443         involving hard regs unless CLASS_LIKELY_SPILLED_P.
13444
13445 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13446
13447         * c-common.c (cb_register_builtins): Handle more built-ins
13448         here rather than in gcc.c specs.
13449         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
13450         (cpp_options): Pass -O flags even when only preprocessing.
13451         * toplev.c (set_fast_math_flags): New prototype.
13452         (fast_math_flags_set_p): New.
13453         (set_no_fast_math_flags): Remove.
13454         (decode_f_option): Update.
13455         * toplev.h (set_fast_math_flags): Update.
13456         (fast_math_flags_set_p): New.
13457         (set_no_fast_math_flags): Remove.
13458 config:
13459         * c4x/c4x.c (c4x_override_options): Update.
13460
13461 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
13462
13463         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
13464         Default-define here.
13465         (builtin_define_with_value): Can now wrap the expansion in
13466         quotation marks if such is wanted.
13467         (cb_register_builtins): Update calls to builtin_define_with_value.
13468         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
13469         here.
13470         (c_common_init): Set options->stdc_0_in_system_headers.
13471         * c-lex.h: Update prototype of builtin_define_with_value.
13472         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
13473         and REGISTER_PREFIX.
13474
13475         * cppinit.c (VERS, ULP, C, X): Kill.
13476         (builtin_array): Remove entries for __VERSION__,
13477         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
13478         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
13479         a constant.
13480         (init_builtins): Kill off a bunch of now-dead code.
13481         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
13482         -fno-leading-underscore.
13483         (cpp_handle_option): Remove code to set user_label_prefix.
13484         (cpp_post_options): Likewise.
13485
13486         * cpplib.h (struct cpp_options): Remove user_label_prefix.
13487         (stdc_0_in_system_headers): New.
13488         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
13489         stdc_0_in_system_headers) too to decide the value of __STDC__.
13490
13491         * tradcpp.c (user_label_prefix): Kill.
13492         (main): Remove code handling -f(no-)leading-underscore.
13493         (initialize_builtins): Don't define __REGISTER_PREFIX__
13494         or __USER_LABEL_PREFIX__.
13495         (install_value): Wrap compound statement in dummy loop so the
13496         macro works properly in an if statement.
13497
13498
13499 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
13500
13501         * loop.h (struct loop_info): Add member has_prefetch.
13502         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
13503         (prescan_loop): Initialize has_prefetch.
13504         (struct prefetch_info): Change prefetch_in_loop and
13505         prefetch_before_loop from bit fields to ints.
13506         (emit_prefetch_instructions): Several small fixes.
13507         (check_dbra_loop): Don't reverse loop that uses prefetch.
13508
13509 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13510
13511         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
13512         * configure.in: Likewise.
13513         * fixinc/check.tpl: Likewise.
13514         * fixinc/fixinc.dgux: Likewise.
13515         * fixinc/fixinc.svr4: Likewise.
13516         * fixinc/fixinc.winnt: Likewise.
13517         * fixinc/fixincl.sh: Likewise.
13518         * fixproto: Likewise.
13519         * configure: Regenerate.
13520
13521 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13522
13523         Basic block renumbering removal:
13524         * basic_block.h (struct basic_block_def): Renamed index to sindex,
13525         added prev_bb and next_bb fields.
13526         (n_basic_blocks): Renamed to num_basic_blocks.
13527         (last_basic_block): New, index of last basic block.
13528         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13529         traversing basic block chain.
13530         (BLOCK_NUM): index -> sindex.
13531         (create_basic_block_structure, create_basic_block): Declaration changed.
13532         (debug_num2bb): Declare.
13533         (expunge_block_nocompact): Declaration removed.
13534         (link_block, unlink_block, compact_blocks): Declare.
13535         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
13536         * cfg.c (entry_exit_blocks): Initialize new fields.
13537         (clear_edges, alloc_block, expunge_block, cached_make_edge,
13538         redirect_edge_pred, dump_flow_info, dump_edge_info,
13539         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
13540         free_aux_for_edges): Modified.
13541         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
13542         (expunge_block_nocompact): Removed.
13543         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
13544         find_unreachable_blocks, create_edge_list, print_edge_list,
13545         verify_edge_list, flow_edge_list_print, remove_fake_successors,
13546         remove_fake_edges, flow_reverse_top_sort_order_compute,
13547         flow_depth_first_order_compute, flow_preorder_transversal_compute,
13548         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
13549         flow_dfs_compute_reverse_execute): Modified.
13550         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
13551         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
13552         Modified.
13553         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13554         merge_blocks_move_predecessor_nojumps,
13555         merge_blocks_move_successor_nojumps, merge_blocks,
13556         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
13557         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
13558         * cfglayout.c (skip_insns_after_block, label_for_bb,
13559         record_effective_endpoints, scope_to_insns_finalize,
13560         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
13561         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
13562         cfg_layout_duplicate_bb): Modified.
13563         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
13564         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
13565         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
13566         flow_loops_find, flow_loop_outside_edge_p): Modified.
13567         * cfgrtl.c (create_basic_block_structure, create_basic_block,
13568         flow_delete_block, compute_bb_for_insn, split_block,
13569         try_redirect_by_replacing_jump, redirect_edge_and_branch,
13570         force_nonfallthru_and_redirect, tidy_fallthru_edge,
13571         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
13572         commit_edge_insertions, commit_edge_insertions_watch_calls,
13573         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
13574         purge_all_dead_edges): Modified.
13575         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
13576         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13577         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
13578         Modified.
13579         * conflict.c (conflict_graph_compute): Modified.
13580         * df.c (FOR_ALL_BBS): Removed.
13581         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
13582         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
13583         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
13584         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
13585         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
13586         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
13587         * final.c (compute_alignments, final_scan_insn): Modified.
13588         * flow.c (verify_local_live_at_start, update_life_info,
13589         update_life_info_in_dirty_blocks, free_basic_block_vars,
13590         delete_noop_moves, calculate_global_regs_live,
13591         initialize_uninitialized_subregs, allocate_bb_life_data,
13592         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
13593         mark_used_reg, count_or_remove_death_notes): Modified.
13594         * function.c (thread_prologue_and_epilogue_insns): Modified.
13595         * gcse.c (struct null_pointer_info): Change typo of current_block
13596         to basic_block.
13597         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
13598         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
13599         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
13600         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
13601         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
13602         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
13603         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
13604         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
13605         pre_delete, one_pre_gcse_pass, compute_transpout,
13606         invalidate_nonnull_info, delete_null_pointer_checks_1,
13607         free_code_hoist_mem, compute_code_hoist_vbeinout,
13608         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
13609         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
13610         compute_store_table, build_store_vectors, insert_insn_start_bb,
13611         insert_store, replace_store_insn, free_store_memory, store_motion):
13612         Modified.
13613         * global.c (global_alloc, global_conflicts, mark_elimination,
13614         build_insn_chain): Modified.
13615         * graph.c (print_rtl_graph_with_bb): Modified.
13616         * haifa-sched.c (sched_init): Modified.
13617         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
13618         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
13619         if_convert): Modified.
13620         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
13621         compute_insert_delete, pre_edge_lcm, compute_available,
13622         compute_farthest, compute_nearerout, compute_rev_insert_delete,
13623         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
13624         Modified.
13625         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
13626         * loop.c (loop_dump_aux): Modified.
13627         * predict.c (combine_predictions_for_insn, estimate_probability,
13628         last_basic_block_p, process_note_prediction, process_note_predictions,
13629         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
13630         expensive_function_p, estimate_bb_frequencies,
13631         compute_function_frequency): Modified.
13632         * print-rtl.c (print_rtx): Modified.
13633         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
13634         get_exec_counts, compute_branch_probabilities, compute_checksum,
13635         branch_prob, find_spanning_tree): Modified.
13636         * recog.c (split_all_insns, peephole2_optimize): Modified.
13637         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
13638         convert_regs_1, convert_regs_2, convert_regs): Modified.
13639         * regclass.c (scan_one_insn, regclass): Modified.
13640         * regmove.c (mark_flags_life_zones, regmove_optimize,
13641         combine_stack_adjustments): Modified.
13642         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
13643         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
13644         * reorg.c (dbr_schedule): Modified.
13645         * resource.c (find_basic_block, init_resource_info): Modified.
13646         * sbitmap.c (sbitmap_intersection_of_succs,
13647         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
13648         sbitmap_union_of_preds): Modified.
13649         * sched-deps.c (init_dependency_caches): Modified.
13650         * sched-ebb.c (schedule_ebbs): Modified.
13651         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
13652         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
13653         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
13654         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
13655         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
13656         ssa_const_prop): Modified.
13657         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
13658         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
13659         * ssa.c (remove_phi_alternative, find_evaluations,
13660         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
13661         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
13662         make_regs_equivalent_over_bad_edges,
13663         make_equivalent_phi_alternatives_equival,
13664         compute_conservative_reg_partition,
13665         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
13666         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
13667         Modified.
13668
13669 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
13670
13671         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
13672
13673 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
13674
13675         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
13676         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
13677         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
13678         calling CONSTANT_POOL_ADDRESS_P.
13679         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
13680         to decide whether to define __arm__ or __thumb.
13681         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
13682         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
13683
13684 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13685
13686         * config/arc/arc.h (CPP_PREDEFINES): Remove.
13687         (CPP_SPEC): Update.
13688         (TARGET_CPU_CPP_BUILTINS): New.
13689
13690 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13691
13692         * cpphash.h (cpp_macro): Move here, and make expansion a union.
13693         * cppmacro.c (cpp_macro): Remove.
13694         (enter_macro_context, replace_args, warn_of_redefinition,
13695         _cpp_create_definition, cpp_macro_definition): Update.
13696
13697 2002-05-16  Jason Merrill  <jason@redhat.com>
13698
13699         * config/mips/mips.c (mips_output_external): Don't do sdata
13700         optimization for a variable with DECL_COMDAT set.
13701
13702 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13703
13704         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
13705         Cleanups for accepting modifiers on pointers.
13706         Fix predicate typos.
13707         Allow long pointers as well as int pointers.
13708
13709 2002-05-15  Richard Henderson  <rth@redhat.com>
13710
13711         * varasm.c (merge_weak): Remove special case for extern and common.
13712
13713 2002-05-15  Matt Hiller  <hiller@redhat.com>
13714
13715         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
13716         XFAILing.
13717         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
13718         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
13719         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
13720         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
13721         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
13722         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
13723
13724 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13725
13726         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
13727
13728 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13729
13730         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
13731         ("altivec_mfvscr"): Read from VSCR.
13732
13733         Add vscr sets for the following insns: altivec_vctuxs,
13734         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
13735         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
13736         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
13737         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
13738         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
13739         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
13740         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
13741         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
13742         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
13743         altivec_vsum2sws, altivec_vsumsws.
13744
13745         * config/rs6000/rs6000.h: Add VSCR fixed register.
13746         (CALL_REALLY_USED_REGISTERS): Add vscr.
13747         (CALL_USED_REGISTERS): Same.
13748         (FIXED_REGISTERS): Same.
13749         (REG_ALLOC_ORDER): Same.
13750         (reg_class): Add VSCR_REGS.
13751         (REG_CLASS_NAMES): Same.
13752         (REG_CLASS_CONTENTS): Same.
13753         (VSCR_REGNO): New.
13754         (REGISTER_NAMES): Add vscr.
13755         (DEBUG_REGISTER_NAMES): Same.
13756         (ADDITIONAL_REGISTER_NAMES): Same.
13757         (FIRST_PSEUDO_REGISTER): Increment.
13758         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
13759
13760 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
13761
13762         * fold-const.c (fold): Fix a typo.
13763
13764 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
13765
13766         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
13767         comparison against the highest or lowest integer value before
13768         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
13769         transformation and that of an unsigned comparison against 0
13770         right after.
13771
13772 2002-05-15  Richard Henderson  <rth@redhat.com>
13773
13774         * varasm.c (merge_weak): Error for any weakening after definition.
13775         Adjust weakening after use warning to catch more cases.
13776         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
13777         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
13778
13779 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
13780
13781         * invoke.texi (-malign-double): Re-add lost warning.
13782
13783         * i386-protos.h (x86_output_mi_thunk): Declare.
13784         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
13785         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
13786
13787         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
13788         when flag_asynchronous_unwind_tables is set.
13789
13790         * flags.h (flag_reorder_functions): Declare.
13791         * function.c (prepare_function_start): Initialize frequnecy.
13792         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
13793         * Makefile.in (predict.o): Add dependency on target.h and params.h
13794         * defaults.h (HOT_TEXT_SECTION_NAME,
13795         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
13796         * predict.c (choose_function_section): New function.
13797         (estimate_bb_frequencies): Use it.
13798         * toplev.c (flag_reorder_functions): New global variable.
13799         (lang_independent_options): New.
13800         (parse_options_and_default_flags): Set.
13801         * varasm.c (assemble_start_function): Bypass functdion alignment
13802         for never executed functions.
13803         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
13804         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
13805         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
13806         Document.
13807
13808         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
13809
13810         * predict.c: Inlude profile.h
13811         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
13812         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
13813         Use the information about maximal counter in the program.
13814
13815         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
13816
13817         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
13818         probably_never_executed_bb_p): New functions.
13819         * cfgcleanup.c (outgoing_edges_match): Use them.
13820         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
13821         (maybe_hot_bb_p, probably_cold_bb_p,
13822         probably_never_executed_bb_p): New functions.
13823
13824         * function.h (function): Add new field function_frequency.
13825         * predict.c (compute_function_frequency): New function.
13826         (estimate_probability): Call it.
13827
13828 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
13829
13830         PR optimization/5172, optimization/5200
13831         * gcse.c (gcse_main): Disable store_motion.
13832
13833 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
13834
13835         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
13836         (c_common_nodes_and_builtins): Use it.
13837         (builtin_define_with_value): New function.
13838         (cb_register_builtins): Define __SIZE_TYPE__,
13839         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
13840         using builtin_define_with_value.  Use consistent notation when
13841         defining __GXX_WEAK__.
13842         (WCHAR_TYPE_SIZE): Don't redefine.
13843         (combine_strings): Don't use WCHAR_TYPE_SIZE.
13844
13845         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
13846         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
13847         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
13848         * tradcpp.c (initialize_builtins): Likewise.
13849         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
13850
13851         * c-lex.h (builtin_define_with_value): Prototype.
13852         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
13853         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
13854         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
13855
13856         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
13857         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
13858         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
13859         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
13860         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
13861         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
13862         config/sparc/sol2-bi.h, config/sparc/sparc.h:
13863         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
13864         to __SIZE_TYPE__ etc from all spec strings. When this makes
13865         extra specs empty, delete them.
13866
13867 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13868
13869         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
13870         for PA8000 or generating dwarf2 call frame information.
13871         (output_call): Remove DO_FRAME_NOTES check from return pointer
13872         optimization.
13873         (following_call): Return 0 when scheduling for PA8000 or generating
13874         dwarf2 call frame information.  Revise comment.
13875
13876 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
13877
13878 config/alpha:
13879         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
13880         and __IEEE_FP_INEXACT as appropriate.
13881         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
13882         (CPP_SPEC): Remove ieee defines.
13883         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
13884
13885 2002-05-14  Richard Henderson  <rth@redhat.com>
13886
13887         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
13888         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
13889
13890 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
13891
13892         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
13893         (CPP_SPEC): Update.
13894         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
13895         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
13896         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
13897         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
13898         (EXTRA_SPECS): Update.
13899         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
13900         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
13901         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
13902         define TARGET_OS_CPP_BUILTINS if necessary.
13903
13904 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
13905
13906         * gcc.c (cpp_options): Must pass -m* and -f* options
13907         to the front end even when only preprocessing.
13908         (cc1_options): Remove redundant -lang-c.
13909         * tradcpp.c (main): Ignore -m options.
13910 objc:
13911         * lang-specs.h: Similarly.
13912
13913 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
13914
13915         * genautomata.c (transform_3): Add code for transformation
13916         `(A,B,...)+C -> A+C,B,...'.
13917
13918 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
13919
13920         * final.c (end_final): Do not output profile_arcs constructor, when
13921         no functions are instrumented.
13922
13923 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
13924
13925         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
13926
13927 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13928
13929         * doc/install.texi: Remove special markup originally required for
13930         HTML generation with texi2html.
13931
13932 2002-05-14  Andreas Schwab  <schwab@suse.de>
13933
13934         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
13935         SELECT_SECTION.
13936         (UNIQUE_SECTION): Define to get small data correctly.
13937
13938         * varasm.c (resolve_unique_section): Add third parameter
13939         flag_function_or_data_sections and use it instead of
13940         flag_function_sections.
13941         (assemble_start_function): Pass flag_function_sections.
13942         (asm_emit_uninitialised): Pass flag_data_sections.
13943         (assemble_variable): Likewise.
13944
13945 2002-05-14  Richard Henderson  <rth@redhat.com>
13946
13947         * config/i386/i386.md: Use define_constants for unspec numbers.
13948         * config/i386/i386.c: Likewise.
13949
13950 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
13951
13952         * doc/contrib.texi: Update my entry.
13953
13954 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
13955
13956         * fixinc/inclhack.def (winidss_valist): Limit applicability.
13957         * fixinc/fixincl.x: Regenerated.
13958         * fixinc/tests/base/math.h: Update.
13959         * fixinc/tests/base/testing.h: Likewise.
13960
13961 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
13962
13963         * genattr.c (gen_attr): Don't emit a comma after the last
13964         enumerator.
13965
13966 2002-05-13  Richard Henderson  <rth@redhat.com>
13967
13968         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
13969         by non-local gotos.
13970         * recog.c (peephole2_optimize): Likewise.
13971
13972 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
13973
13974         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
13975         input to O_BINARY.
13976
13977 2002-05-13  Jeffrey A Law  (law@redhat.com)
13978
13979         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
13980         Update prototype and callers.
13981         (propagate_one_insn): Stack pointer adjustments kill MEMs on
13982         the mem_set_list which reference the stack pointer, as do
13983         calls to constant functions as they may clobber outgoing
13984         argument space.
13985
13986         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
13987
13988         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
13989         (ia32_multipass_dfa_lookahead): New function.
13990
13991 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
13992
13993         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
13994         (translate_options): Remove 'V'.
13995         (process_command): Similarly.
13996 doc:
13997         * invoke.texi: Remove documentation of 'V'.
13998
13999 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
14000
14001         * config/s390/linux.h: Revert 2002-04-22 changes.
14002
14003 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
14004
14005         * config/fr30/fr30.md: Only allow splits of immediate loads
14006         if the destination is a register.
14007
14008 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14009
14010         * Makefile.in (c-common.o, cppinit.o): Update.
14011         * c-common.c: Include except.h.
14012         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
14013         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
14014         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
14015         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
14016         CPP_PREDEFINES): Handle here.
14017 config:
14018         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
14019         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
14020         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
14021         TARGET_OS_CPP_BUILTINS.
14022         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
14023         (CPP_SPEC, EXTRA_SPECS): Update.
14024         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
14025         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
14026         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
14027         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
14028         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
14029 doc:
14030         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
14031         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
14032
14033 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14034
14035         * emit-rtl.c (global_rtl): Update comment.
14036         (const_double_htab, const_double_htab_hash,
14037         const_double_htab_hash, lookup_const_double): New.
14038         (const_int_htab_hash, const_int_htab_eq): Remove const
14039         qualifiers, which cause tons of warnings with RTL checking on.
14040         (gen_rtx_CONST_DOUBLE): Deleted.
14041         (const_double_from_real_value): New function - bears some
14042         resemblance to the former immed_real_const_1.
14043         (immed_double_const): Moved here from varasm.c and
14044         simplified.
14045         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
14046         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
14047         (gen_rtx): Use immed_double_const.
14048         (init_emit_once): Initialize the const_double_htab.  Use
14049         REAL_VALUE_FROM_INT where possible.  Can now use
14050         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
14051         * varasm.c (struct varasm_status): Remove x_const_double_chain.
14052         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
14053         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
14054         (init_varasm_status, mark_varasm_status): Don't touch
14055         x_const_double_chain.
14056
14057         * output.h: Delete prototype for clear_const_double_mem.
14058         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
14059         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
14060         const_double_from_real_value, not immed_real_const_1, and use
14061         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
14062         CONST_DOUBLE_ATOF.
14063         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
14064         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
14065         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
14066         (gen_rtx_REG): Second arg is unsigned.
14067
14068         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
14069         (excluded_rtx): New, return true for CONST_DOUBLE.
14070         (genmacro): Write nothing for excluded codes.
14071         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
14072         * expr.c (expand_expr): Likewise.
14073         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
14074         CONST_DOUBLE_CHAIN.
14075         * toplev.c (rest_of_compilation): Don't call
14076         clear_const_double_mem.
14077
14078         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
14079         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
14080         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
14081         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
14082         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
14083         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
14084         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
14085         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
14086
14087 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14088
14089         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
14090
14091 2002-05-12  Tom Tromey  <tromey@redhat.com>
14092
14093         * tree.h (copy_node): Don't mention TREE_PERMANENT.
14094
14095 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14096
14097         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
14098         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
14099         * gensupport.h: Prototype new routines.
14100         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
14101         use of printf.
14102         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
14103         (next_comma_elt): Use scan_comma_elt.
14104
14105         * config/i386/i386.md: Use new attribute notation to break up
14106         long lines in define_attr forms.
14107
14108 2002-05-12  Richard Henderson  <rth@redhat.com>
14109
14110         * expr.c (compress_float_constant): New.
14111         (emit_move_insn): Use it.
14112         (float_extend_from_mem): New.
14113         (init_expr_once): Initialize it.
14114         * real.c (exact_real_truncate): New.
14115
14116         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
14117         dropped into memory; penalize for size.
14118         (RTX_COSTS): FLOAT_EXTEND is free.
14119         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
14120         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
14121
14122 2002-05-12  Richard Henderson  <rth@redhat.com>
14123
14124         * profile.h (profile_info): Add missing extern to declaration.
14125         * profile.c (profile_info): Define it.
14126
14127 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14128
14129         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
14130         used for DImode and TImode.
14131
14132 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14133
14134         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
14135         fake a newline.
14136
14137 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
14138
14139         * config/rs6000/rs6000.c (rs6000_default_long_calls,
14140         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
14141         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
14142         (rs6000_override_options): Handle -m(no-)longcall.
14143         (init_cumulative_args, output_mi_thunk): Check for both
14144         longcall and shortcall attributes on the function.
14145         (rs6000_attribute_table): Add "shortcall".
14146         (rs6000_handle_longcall_attribute): Update comment.
14147         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
14148         altivec_expand_ternop_builtin): Add default clauses to switches
14149         to silence warnings.
14150
14151         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
14152         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
14153         (TARGET_OPTIONS): Add longcall and no-longcall.
14154
14155         * config/rs6000/rs6000.md (call_nonlocal_sysv,
14156         call_value_nonlocal_sysv): Split by alternatives.  One pair
14157         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
14158         the call cookie.  The other pair accepts only LR/CTR and has
14159         no restriction.
14160
14161         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
14162         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
14163         tmake_file.
14164         * config/rs6000/rs6000-c.c: New file.
14165         * config/rs6000/t-rs6000-c-rule: New file.
14166         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
14167         Prototype rs6000_pragma_longcall.
14168
14169         * doc/extend.texi: Document shortcall attribute.
14170         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
14171
14172 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14173
14174         * reorg.c (dbr_schedule): Remove unnecessary test.
14175
14176 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
14177
14178         * i386.md (testsi to testqi spliters): New.
14179
14180         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
14181
14182         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
14183
14184         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
14185
14186         * basic-block.h: New flag EDGE_CAN_FALLTHRU
14187         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
14188         that can be made fallthru.
14189
14190         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
14191
14192         * cfglayout.c (cleanup_unconditional_jumps): New static function.
14193         (cfg_layout_initialize): Use it.
14194
14195 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14196
14197         * config/avr/avr.c (avr_mcu_types): Update supported devices.
14198         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
14199         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14200
14201 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
14202
14203         * dbxout.c: Fix formatting.
14204         * dependence.c: Likewise.
14205         * df.c: Likewise.
14206         * diagnostic.c: Likewise.
14207         * doloop.c: Likewise.
14208         * dominance.c: Likewise.
14209         * doschk.c: Likewise.
14210         * dwarf2asm.c: Likewise.
14211         * dwarf2out.c: Likewise.
14212         * dwarfout.c: Likewise.
14213
14214 2002-05-10  Richard Henderson  <rth@redhat.com>
14215
14216         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
14217         Convert integers constants as needed.  Replace "nwords" field with
14218         "sizeof_bb".
14219         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
14220         * function.h: Fix typo in comment.
14221         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
14222
14223 2002-05-10  Roger Sayle  <roger@eyesopen.com>
14224
14225         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
14226         into the equivalent (signed char)c > 0.
14227
14228 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
14229
14230         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
14231         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
14232         (struct prefetch_info): Fix spelling of member bytes_accessed.
14233         (emit_prefetch_instructions): Make dump messages more regular;
14234         restructure code to add more dump messages; use new macros for
14235         heuristics. (There are no code generation changes in any of this).
14236
14237 2002-05-10  David S. Miller  <davem@redhat.com>
14238
14239         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
14240         (struct rtx_def): Update unchanging flag comment.
14241         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
14242         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
14243         to be handled to INSN too.
14244         (dbr_schedule): Likewise.
14245         * resource.c (next_insn_no_annul): Likewise.
14246
14247         * cse.c (rtx_cost): Remove multiplication by power of 2 special
14248         casing.
14249
14250 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14251
14252         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
14253         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
14254         (possibly) work around broken /bin/sh.
14255
14256 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14257
14258         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
14259         . as N64/N32 libgcc_s.so subdirs.
14260
14261 2002-05-10  David S. Miller  <davem@redhat.com>
14262
14263         * config/sparc/sparc.md: Use define_constants for unspec numbers.
14264
14265         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
14266         more accurately.
14267         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
14268         comment.
14269         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
14270         * doc/rtl.texi: Document these macros more accurately.
14271         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
14272         JUMP_INSNs and CALL_INSNs.
14273         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
14274         or INSN_FROM_TARGET_P if the code is appropriate.
14275
14276 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14277
14278         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
14279         before using SYMBOL_REF_FLAG (addr).
14280
14281         * config/avr/avr-protos.h (avr_io_address_p): Declare.
14282         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
14283         Make non-static.  Update all callers.
14284         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
14285         New insns to clear/set/test a single bit in I/O address space.
14286
14287 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14288
14289         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
14290
14291 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14292
14293         * Makefile.in: Update.
14294         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
14295         builtin_define_std): New.
14296         (c_common_init): Register CPP builtins callback.
14297         * c-common.h (flag_iso, flag_undef): New.
14298         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
14299         * c-lex.c: Don't include target.h.
14300         (cb_register_builtins): Move to c-common.c.
14301         (init_c_lex): Don't register hook here.
14302         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
14303         (cpp_define, cpp_assert): Remove.
14304         * gcc.c (cc1_options): Pass -undef to front end.
14305         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
14306         (TARGET_INITIALIZER): Update.
14307         * target.h (struct cpp_reader): Don't predeclare.
14308         (struct gcc_target): Remove cpp builtin hook.
14309         * tree.c (default_register_cpp_builtins): Remove.
14310 doc:
14311         * tm.texi: Update.
14312
14313 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14314
14315         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
14316
14317 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14318
14319         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
14320         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
14321
14322 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
14323
14324         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
14325         * config/sparc/libgcc-sparc-glibc.ver: New file.
14326         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
14327         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
14328
14329 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
14330
14331         PR target/6429
14332         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
14333         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
14334         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
14335         base multilibs.
14336         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
14337         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
14338         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14339         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14340
14341 2002-05-09  Richard Henderson  <rth@redhat.com>
14342
14343         * config/ia64/ia64.md: Use define_constants for unspec numbers.
14344         * config/ia64/ia64.c: Likewise.
14345
14346 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
14347
14348         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
14349         (save_restore_insns): Likewise.
14350         (mips_expand_prologue, mips_expand_epilogue): Update callers.
14351         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
14352
14353 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
14354
14355         * athlon.md, k6.md, pentium.md, ppro.md): New files.
14356         * i386.md: Move scheduling information into new files.
14357
14358         * i386.md (type attribute): Add "rotate" for rotate insns.
14359         (rotate insns): Set type to "rotate".
14360         (various attributes and function units): Treat rotate like shift.
14361         (pent_pair attribute): Only rotates by one bit position are
14362         pairable.
14363         (sbb insns): Explicitly set pent_pair attribute on a couple
14364         that were missing it.
14365
14366 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
14367
14368         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
14369         make sure that buffer starts on odd word address.
14370         (sh_va_arg): Skip odd fp registers when reading a double precision
14371         value.
14372
14373 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14374
14375         * tree.h (preserve_data, object_permanent_p, type_precision):
14376         Remove.
14377
14378 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14379
14380         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
14381         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
14382 doc:
14383         * cpp.texi: Update for removal of obsolete features.
14384
14385 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
14386                           Jeffrey A Law  (law@redhat.com)
14387
14388         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
14389         the DFA interface for Pentium processors.
14390         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
14391         (attr_pent_pair, ix86_pent_find_pair): Remove.
14392         (ix86_sched_reorder_pentium): Remove.
14393         (ix86_sched_reorder): Remove reordering for Pentium.
14394         * i386.md (Pentium scheduling): Rewrite using DFA description.
14395
14396 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
14397
14398         * cfganal.c (can_fallthru): Fix fast path.
14399         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
14400         with edges to the next block.
14401
14402 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
14403                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
14404
14405         * final.c (end_final): Use C trees to output data structures for profiling.
14406
14407         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
14408         (profile.o): New dependency profile.h
14409         (final.o): New dependency profile.h
14410         * profile.h: New file. New global structure profile_info.
14411         * final.h (count_edges_instrumented_now): Declare.
14412         (current_function_cfg_checksum): Declare.
14413         (function_list): New structure.
14414         (functions_head, functions_tail): New static variables.
14415         (end_final): Emits more data, removed some -ax stuff.
14416         (final): Stores function names and chcksums.
14417         * gcov-io.h (__write_gcov_string): New function.
14418         (__read_gcov_string): New function.
14419         * gcov.c (read_profile): New function.
14420         (create_program_flow_graph): Uses read_profile instead of reading
14421         da_file.
14422         (read_files): Removed da_file checking, it's done by read_profile now.
14423         * libgcc2.c (bb_function_info): New structure.
14424         (bb): New field in structure, removed some -ax stuff.
14425         (__bb_exit_func): Changed structure of da_file.
14426         * profile.c (count_edges_instrumented_now): New global variable.
14427         (current_function_cfg_checksum): New global variable.
14428         (max_counter_in_program): New global variable.
14429         (get_exec_counts): New function.
14430         (compute_checksum): New function.
14431         (instrument_edges): Sets count_edges_instrumented_now.
14432         (compute_branch_probabilities): Uses get_exec_counts instead of
14433         reading da_file.
14434         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
14435         (init_branch_prob): Removed da_file checking, done in get_exec_counts
14436         now.
14437         (end_branch_prob): Removed da_file checking, done in get_exec_counts
14438         now.
14439         * gcov.texi: Updated information about gcov file format.
14440
14441 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
14442
14443         * sbitmap.c: Fix formatting.
14444         * scan.c: Likewise.
14445         * scan-decls.c: Likewise.
14446         * sched-deps.c: Likewise.
14447         * sched-ebb.c: Likewise.
14448         * sched-rgn.c: Likewise.
14449         * sched-vis.c: Likewise.
14450         * sdbout.c: Likewise.
14451         * sibcall.c: Likewise.
14452         * simplify-rtx.c: Likewise.
14453         * ssa.c: Likewise.
14454         * ssa-ccp.c: Likewise.
14455         * ssa-dce.c: Likewise.
14456         * stmt.c: Likewise.
14457         * stor-layout.c: Likewise.
14458         * stringpool.c: Likewise.
14459
14460 2002-05-09  David S. Miller  <davem@redhat.com>
14461
14462         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
14463
14464 2002-05-07  David S. Miller  <davem@redhat.com>
14465
14466         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
14467         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
14468         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
14469         library implementation clobbers the output before the inputs
14470         are fully consumed, use stack temporary for the output.
14471
14472 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
14473
14474         * config/netbsd.h (CPP_SPEC): Remove.
14475         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
14476         * config/i386/netbsd.h (CPP_SPEC): Define.
14477         * config/ns32k/netbsd.h (CPP_SPEC): Define.
14478         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
14479         * config/sparc/netbsd.h (CPP_SPEC): Define.
14480         * config/vax/netbsd.h (CPP_SPEC): Define.
14481
14482 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
14483
14484         * read-rtl.c: Fix formatting.
14485         * real.c: Likewise.
14486         * recog.c: Likewise.
14487         * regclass.c: Likewise.
14488         * regmove.c: Likewise.
14489         * reg-stack.c: Likewise.
14490         * reload1.c: Likewise.
14491         * reload.c: Likewise.
14492         * resource.c: Likewise.
14493         * rtlanal.c: Likewise.
14494         * rtl.c: Likewise.
14495         * rtl-error.c: Likewise.
14496
14497 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14498
14499         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
14500         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
14501
14502 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
14503
14504         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
14505         use __SSE2__ macro instead.
14506         * config/i386/xmmintrin.h: Likewise.
14507
14508 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
14509
14510         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
14511         and use it in all invocations of these macros.  Clean up comments.
14512         * rtl.c (rtl_check_failed_flag): Add an argument for the name
14513         of the flag access macro whose check failed.
14514         * doc/rtl.texi (Flags): Document additional flag uses.
14515
14516 2002-05-08  Robert Spier <rspier@pobox.com>
14517             Neil Booth  <neil@daikokuya.demon.co.uk>
14518
14519         PR preprocessor/6521
14520         * cppfiles.c (handle_missing_header): Don't do anything
14521         different for <> includes.
14522 doc:
14523         * cppopts.texi: Update documentation for -MG.
14524
14525 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14526
14527         * cpplex.c (cpp_interpret_charconst): Truncate as well as
14528         sign-extend.
14529 doc:
14530         * cpp.texi: Clarify multichar charconst valuation.
14531
14532 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
14533
14534         * doc/invoke.texi: Document -mwindiss option.
14535
14536 2002-05-08  Jason Merrill  <jason@redhat.com>
14537
14538         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
14539
14540         * dwarf2out.c (gen_type_die): Abort on broken recursion.
14541
14542         PR c++/6381
14543         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
14544         REAL_CST.
14545
14546 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
14547
14548         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
14549         little-endian multilibs to override arm/thumb multilibs.
14550         Do not build hardware floating point multilibs, nor apcs-26
14551         multilibs for the Thumb.
14552
14553 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
14554
14555         PR c/6569.
14556         * varasm.c (mark_weak): New function.
14557         (merge_weak): Use it.  Do not call declare_weak.
14558         (declare_weak): Use merge_weak.
14559
14560 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
14561
14562         * cse.c (dead_libcall_p): Update counts.
14563         (delete_trivially_dead_insns): Update call of dead_libcall_p.
14564
14565 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
14566
14567         * cfglayout.c (function_tail_eff_head): Rename to ...
14568         (function_footer): ... this one.
14569         (unlink_insn_chain): New functions.
14570         (label_for_bb): Only call block_label and emit debug message.
14571         (record_effective_endpoints): Actually unlink the headers and footers.
14572         (fixup_reorder_cahin): Re-insert the unlinked sequences.
14573         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
14574         * cfglayout.h (struct reorder_block_def): New fields footer/header;
14575         remove eff_head/eff_end.
14576         * rtl.h (set_first_insn): Declare.
14577         * emit-rtl.c (set_first_insn): New function.
14578
14579         * cfglayout.c (fixup_reorder_chain): Dump duplicated
14580         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
14581         cfg_layout_duplicate_bb): New global function.
14582         (duplicate_insn_chain): New static function.
14583         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
14584         cfg_layout_duplicate_bb): Declare.
14585         (struct reorder_block_def): Add "original" field.
14586         * emit-rtl.c (emit_copy_of_insn_after): New function.
14587         * rtl.h (emit_copy_of_insn_after): Declare.
14588
14589         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
14590         (fixup_reorder_chain): properly handle edges to exit block.
14591
14592 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14593                                Jan Hubicka  <jh@suse.cz>
14594
14595         * basic-block.h (note_prediction_to_br_prob): declare.
14596         * c-semantics.c: Inlucde predit.h
14597         (expand_stmt): predict GOTO_STMT as not taken.
14598         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
14599         (cleanup_cfg): Do not free tail_recursion_list.
14600         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
14601         (flow_delete_block): Kill predictions past end of basic block.
14602         * output.h (delete_unreachable_blocks): Declare.
14603         * predict.c (predicted_by_p, process_note_predictions,
14604         process_note_prediction, last_block_p): New function.
14605         (estimate_probability): Bypass loop on PRED_CONTINUE;
14606         do not handle noreturn heuristics; kill PRED_RETURN; add
14607         PRED_EARLY_RETURN.
14608         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
14609         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
14610         * predict.h (IS_TAKEN): New constant.
14611         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
14612         * rtl.c (NOTE_INSN_PREDICTION): New.
14613         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
14614         New macro.
14615         (insn_note): add NOTE_INSN_PREDICTION.
14616         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
14617         CFG; free tail_recursion_label_list.
14618         * stmt.c: Include predict.h;
14619         (return_prediction): New.
14620         (expand_value_return): Use it.
14621         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
14622
14623 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
14624
14625         * config/mips/mips.md: Name the unspecs with define_constant.
14626         (*HILO_delay): Rename to 'hilo_delay' (no star).
14627         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
14628         (reload_outdi, reload_outsi): Likewise.
14629
14630 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
14631
14632         * toplev.c: Fix formatting.
14633
14634 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
14635
14636         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
14637         * configure.in (ac_rtlflag_checking): New.
14638         * doc/install.texi (--enable-checking): Document RTL flag checking.
14639
14640 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14641
14642         * c-common.c (c_common_init): Set options->unsigned_wchar.
14643         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
14644         group target dependencies.
14645         (init_builtins, cpp_handle_option): Update.
14646         * cpplex.c (cpp_interpret_charconst): Update.
14647         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
14648         signed_char to unsigned_char, group target dependencies.
14649         * defaults.h (WCHAR_UNSIGNED): Remove.
14650         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
14651 config:
14652         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
14653         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
14654         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
14655         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
14656         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
14657 doc:
14658         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
14659
14660 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
14661
14662         * fixinc/inclhack.def (windiss_math1): New fix.
14663         (windiss_math2): Likewise.
14664         (windiss_valist): Likewise.
14665         * fixinc/fixincl.x: Regenerated.
14666
14667 2002-05-07  Andreas Jaeger  <aj@suse.de>
14668
14669         * genautomata.c (output_internal_min_issue_delay_func): Add
14670         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
14671         (output_internal_trans_func): Likewise.
14672
14673 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
14674
14675         * pa.c (hppa_profile_hook): Use force_reg to get the address
14676         of the profile hook into an appropriate pseudo register.
14677
14678 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
14679
14680         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
14681         (LINK_START_SPEC): Handle it.
14682         (LINK_OS_SPEC): Likewise.
14683         (CPP_SPEC): Likewise.
14684         (STARTFILE_SPEC): Likewise.
14685         (LIB_SPEC): Likewise.
14686         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
14687         all platforms.
14688         (CRTSAVRES_DEFAULT_SPEC): New macro.
14689         (LIB_WINDISS_SPEC): New macro.
14690         (CPP_OS_WINDISS_SPEC): Likewise.
14691         (STARTFILE_WINDISS_SPEC): Likewise.
14692         (ENDFILE_WINDISS_SPEC): Likewise.
14693         (LINK_START_WINDISS_SPEC): Likewise.
14694         (LINK_OS_WINDISS_SPEC): Likewise.
14695         * config/rs6000/windiss.h: New file.
14696
14697 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
14698
14699         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
14700
14701 2002-05-06  David S. Miller  <davem@redhat.com>
14702
14703         * config/sparc/sparc.md (shift insns): Do not mask off
14704         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
14705         take care of it.
14706
14707 2002-05-06  Richard Henderson  <rth@redhat.com>
14708
14709         PR c++/6212
14710         * expr.c (highest_pow2_factor_for_type): New.
14711         (expand_assignment): Use it.
14712
14713 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
14714
14715         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
14716         unspec_volatile.
14717         ("altivec_mfvscr"): Same.
14718
14719 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
14720
14721         * rtl.h (struct rtx_def): Update comments.
14722         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
14723         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
14724         RTL_FLAG_CHECK macros with list of expected RTL codes.
14725         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
14726         (rtl_check_failed_flag): New.
14727         * reload1.c (reload): Use REG macro before changing rtx to MEM.
14728         (reload_cse_noop_set_p): Check rtx code before using access macro.
14729         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
14730         before using access macro.
14731
14732 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
14733
14734         * doc/rtl.texi (Flags): Update to reflect current usage.
14735
14736 2002-05-06  Roger Sayle  <roger@eyesopen.com>
14737
14738         PR opt/3995
14739         * fold-const.c (sign_bit_p): New function.
14740         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
14741         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
14742         Reapply fold when converting (A & C) == C into (A & C) != 0.
14743         (fold_binary_op_with_conditional_arg): Fix typo in comment.
14744
14745 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14746
14747         * c-common.c (warn_multichar): New.
14748         (c_common_init): Set CPP's warn_multichar.
14749         * c-common.h (warn_multichar): New.
14750         * c-decl.c (warn_multichar): Remove.
14751         * c-lex.c (lex_charconst): Update.
14752         * c-tree.h (warn_multichar): Remove.
14753         * cppexp.c (eval_token): Sign-extend charconst value.
14754         * cppinit.c (cpp_create_reader): Set warn_multichar.
14755         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
14756         each character.  Update prototype.  Sign-extend the result.
14757         * cpplib.h: Fix conditions.
14758         (struct cpp_options): Add new warning flag.
14759         (cpp_interpret_charconst): Update prototype.
14760 doc:
14761         * cpp.texi: Update documentation.
14762
14763 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
14764
14765         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
14766         Fix typo in usage of allof instead of unit.
14767
14768 2002-05-06  Richard Henderson  <rth@redhat.com>
14769
14770         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
14771         and any jump or call for IN.
14772
14773 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
14774
14775         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
14776         -msse2.
14777         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
14778
14779 2002-05-06  Roger Sayle  <roger@eyesopen.com>
14780
14781         * fold-const.c (lshift-double): Cast the high word to an unsigned
14782         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
14783         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
14784         avoid compiler warning.  (fold): Remove redundant code from
14785         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
14786
14787 2002-05-06  Jeff Law  <law@redhat.com>
14788
14789         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
14790         * pa.c (pa_adjust_cost): Remove all true dependency cost
14791         adjustments.  Also remove support for non-DFA scheduling.
14792         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
14793         to adjust true dependency costs.  Update various comments.
14794         (7100lc, 7200, 7300 scheduling): Simplify by combining the
14795         FP ALU & MPY units into a single unit.
14796
14797 2002-05-06  Catherine Moore  <clm@redhat.com>
14798
14799         * config/v850/v850.c (compute_register_save_size): Make sure
14800         to count all of the registers that will be saved.
14801
14802 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
14803
14804         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
14805
14806 2002-05-06  David S. Miller  <davem@redhat.com>
14807
14808         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
14809         allow result to overlap input operands in memory.
14810
14811 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14812
14813 doc:
14814         * cpp.texi: Update multichar charconst docs.
14815
14816 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14817
14818         * cpplex.c (cpp_interpret_charconst): Sign-extend each
14819         character.  Don't ignore excess characters.  Treat
14820         multicharacter character constants as signed.
14821         (cpp_parse_escape): Clarify diagnostic.
14822
14823 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
14824
14825         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
14826         use add instead of shift.
14827         (ashldi3_sp64): Likewise.
14828         (ashlsi3_const1, ashldi3_const1): Remove.
14829         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
14830         * config/sparc/sparc.c (const1_operand): New.
14831
14832 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
14833
14834         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
14835
14836 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
14837
14838         PR target/6561
14839         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
14840
14841 2002-05-05  Richard Henderson  <rth@redhat.com>
14842
14843         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
14844         memory latency adjustments.
14845         (alpha_variable_issue): Remove.
14846         (alpha_use_dfa_pipeline_interface): New.
14847         (alpha_multipass_dfa_lookahead): New.
14848         * config/alpha/alpha.md: Remove define_function_unit scheduling;
14849         include new dfa scheduling.
14850         (attr type): Add none.
14851         (blockage): Use it.
14852         * config/alpha/ev4.md: New.
14853         * config/alpha/ev5.md: New.
14854         * config/alpha/ev6.md: New.
14855
14856 2002-05-05  David S. Miller  <davem@redhat.com>
14857
14858         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
14859
14860 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
14861
14862         * cse.c: Fix formatting.
14863         * emit-rtl.c: Likewise.
14864
14865 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
14866
14867         * genautomata.c (initiate_states): Add additional guard to
14868         initialize `units_array'.
14869
14870 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
14871
14872         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
14873         process_unit_to_form_the_same_automaton_unit_lists,
14874         form_the_same_automaton_unit_lists
14875         check_unit_distributions_to_automata): New prototypes and
14876         functions.
14877         (check_automata): Rename it into `check_automata_insn_issues'.
14878         (unit_decl): New fields `the_same_automaton_unit' and
14879         `the_same_automaton_message_reported_p'.
14880         (unit_decl_t): New typedef.
14881         (the_same_automaton_lists): New gloval variable.
14882         (unit_regexp, unit_set_el, units_array, units_cmp,
14883         output_get_cpu_unit_code_func): Use the typedef.
14884         (evaluate_max_reserv_cycles): Increment
14885         `description->max_insn_reserv_cycles'.
14886         (initiate_states): Don't increment `max_cycles_num'.
14887         (transform_insn_regexps): Move code around transformation of
14888         regexps from `generate'.
14889         (generate): Remove call of `transform_insn_regexps'.
14890         (expand_automata): Call `transform_insn_regexps' and
14891         `check_unit_distributions_to_automata'.  Check errors before
14892         `generate'.
14893
14894         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
14895         automaton `ultrasparc3_1'.
14896
14897 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14898
14899         * c-common.c (c_common_init): Set up CPP arithmetic.
14900         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
14901         something reasonable for the host.
14902         (sanity_checks): Add checks.
14903         (cpp_read_main_file): Call sanity_checks() from here...
14904         (cpp_post_options): ... not here.
14905         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
14906         * cpplib.h (struct cpp_options): New member int_precision.
14907
14908 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14909
14910         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
14911
14912 2002-05-04  David S. Miller  <davem@redhat.com>
14913
14914         * config/sparc/linux.h, config/sparc/linux64.h
14915         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
14916
14917         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
14918         more RTX codes.
14919         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
14920
14921         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
14922         of SETs.
14923
14924 2002-05-05  Tim Josling  <tej@melbpc.org.au>
14925
14926         * treelang; New directory for new sample language treelang.
14927
14928 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14929
14930         * Makefile.in (c-lex.o): Update.
14931         * c-lex.c: Include target.h.
14932         (cb_register_builtins): New.
14933         (init_c_lex): Set builtins callback.
14934         * c-lex.h (cpp_define, cpp_assert): New prototypes.
14935         * cppinit.c (init_builtins): Use callback, including for
14936         GXX_WEAK.
14937         * cpplib.h (struct cpp_callbacks): New member.
14938         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
14939         (TARGET_INITIALIZER): Update.
14940         * target.h (struct gcc_target): New hook.
14941         * tree.c (default_register_cpp_builtins): New.
14942         * tree.h (default_register_cpp_builtins): New.
14943 doc:
14944         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
14945
14946 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
14947
14948         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
14949         (cpp_post_options): Move sanity checks to...
14950         (sanity_checks): New.
14951         * cpplex.c (maybe_read_ucs): Fix prototype.
14952         (parse_string, cpp_parse_escape): Cast for %c format specifier.
14953         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
14954         if necessary.
14955
14956 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
14957
14958         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
14959         builtins.  Use V2DI patterns instead of TI for logical operations.
14960         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
14961         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
14962         (ix86_expand_builtins): Change the pattern used for movntdq.
14963         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
14964         sse2_nandv2di3): New patterns.
14965         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
14966         on operands.
14967         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
14968         (cvtdq2pd): Correct mode on operand 1.
14969         (sse2_umulsidi3): Describe without unspec.
14970         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
14971         machine modes.
14972         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
14973         (ashlv2di3): Likewise, from sse2_ashlv2di3.
14974         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
14975         ashlv4si3, ashlv2di3): Use SImode for shift count.
14976         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
14977         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
14978         New patterns.
14979         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
14980         New typedefs.
14981         (__m128i, __m128d): New macros.
14982         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
14983         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
14984         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
14985         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
14986         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
14987         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
14988         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
14989         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
14990         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
14991         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
14992         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
14993         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
14994         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
14995         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
14996         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
14997         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
14998         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
14999         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
15000         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
15001         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
15002         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
15003         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
15004         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
15005         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
15006         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
15007         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
15008         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
15009         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
15010         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
15011         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
15012         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
15013         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
15014         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
15015         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
15016         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
15017         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
15018         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
15019         functions.
15020         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
15021         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
15022
15023 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
15024
15025         * dwarf2out.c: Fix formatting.
15026         * varasm.c: Likewise.
15027
15028 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
15029
15030         PR c/6543
15031         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
15032         clobber and use result as temporary value.
15033
15034 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
15035
15036         * expr.c (force_operand): Use expand_simple_* to handle more
15037         cases.
15038
15039 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15040
15041         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
15042         and sign-extension.
15043         (lex_charconst): Update for change in prototype of
15044         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
15045         appropriately.
15046         * cpphash.h (BITS_PER_CPPCHAR_T): New.
15047         * cppinit.c (cpp_create_reader): Initialize them for no
15048         change in semantics.
15049         (cpp_post_options): Add sanity checks.
15050         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
15051         and truncation issues.  Calculate in type cppchar_t.
15052         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
15053         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
15054         run-time dependent precision correctly.  Return whether the
15055         result is signed or not.
15056         * cpplib.c (dequote_string): Use cppchar_t; update.
15057         * cpplib.h (cppchar_signed_t): New.
15058         struct cpp_options): New precision members.
15059         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
15060         * cppexp.c (eval_token): Update.
15061
15062 2002-05-03  David S. Miller  <davem@redhat.com>
15063
15064         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
15065         * config/sparc/sparc.c (sparc_rtx_costs): New function
15066         implementing RTX_COSTS and CONST_COSTS.
15067         * config/sparc/sparc.h (CONST_COSTS): Delete.
15068         (RTX_COSTS_CASES): Define.
15069         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
15070         the work.
15071
15072         * config/sparc/sparc.md (DFA schedulers): Split out...
15073         * config/sparc/cypress.md, config/sparc/hypersparc.md,
15074         config/sparc/sparclet.md, config/sparc/supersparc.md,
15075         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
15076
15077         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
15078         checks on it, always defined for Sparc.
15079
15080         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
15081         Tweak, and add more detailed comments.
15082
15083 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
15084
15085         * Re-apply patch accidentally reverted with
15086         DFA scheduler merge: remove all rules and variables to slurp
15087         source files out of libiberty and rebuild them with HOST_CC.
15088         ($(HOST_PREFIX_1)varray.o): New rule.
15089         (genattrtab rule): Word wrap.
15090
15091 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15092
15093         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
15094         (CPP_SUBTARGET_SPEC): Define.
15095         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
15096         cpp_subtarget specs.
15097         (CPP_SPEC): Redefine to include %(cpp_subtarget).
15098
15099 2002-05-03  David S. Miller  <davem@redhat.com>
15100
15101         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
15102         * target.h (struct gcc_target): Delete cycle_display member.
15103
15104         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
15105         (rtx_needs_barrier): Delete reference to cycle_display unspec.
15106         (ia64_sched_reorder2): Mention need for cycle display handling
15107         once such notes exist.
15108
15109 2002-05-03  Richard Henderson  <rth@redhat.com>
15110
15111         * real.c (etoasc): Strip most trailing zeros for clarity.
15112         * sched-vis.c: Include real.h.
15113         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
15114         * Makefile.in (sched-vis.o): Add real.h.
15115
15116 2002-05-03  David S. Miller  <davem@redhat.com>
15117
15118         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
15119         no longer needed.
15120
15121 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
15122
15123         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
15124         when we get an out of range literal.
15125         (altivec_expand_ternop_builtin): Same.
15126         (altivec_expand_unop_builtin): Same.
15127         (altivec_expand_builtin): Same, for dss.
15128         (altivec_expand_builtin): Use trees instead of rtl when
15129         determining literal argument validity.
15130
15131 2002-05-03  David S. Miller  <davem@redhat.com>
15132
15133         Delete cycle display scheduling hook.
15134         * config/ia64/ia64.c (ia64_cycle_display,
15135         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
15136         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
15137         and use emit_insn_before instead of ia64_emit_insn_before.
15138         * config/ia64/ia64.md (unspec usage): Delete cycle display.
15139         (cycle_display): Delete insn pattern.
15140         * config/sparc/sparc.md (unspec usage): Delete cycle display.
15141         (cycle_display): Delete insn pattern.
15142         * config/sparc/sparc.c (sparc_cycle_display,
15143         TARGET_SCHED_CYCLE_DISPLAY): Delete.
15144         * doc/md.texi (cycle_display): Don't mention.
15145         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
15146
15147 2002-05-03  Richard Henderson  <rth@redhat.com>
15148
15149         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
15150         * recog.h: Declare them.
15151
15152         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
15153         * config/sparc/sparc.md: Use store_data_bypass_p instead.
15154         * config/sparc/sparc-protos.h: Update.
15155
15156 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15157
15158         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
15159         -D__arch64__.  Add -D_LP64.
15160         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
15161         from sparc.h.
15162         (CPP_ARCH64_SPEC): Likewise.
15163         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
15164         (NO_BUILTIN_SIZE_TYPE): Undef.
15165
15166 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
15167
15168         * genautomata.c (min_issue_delay_pass_states): Change return type
15169         in the prototype.
15170         (min_issue_delay_pass_states): Change the algorithm.
15171         (min_issue_delay): Set up min_insn_issue_delay for the state.
15172         (output_min_issue_delay_table): Interchange the nested loops and
15173         and initiate min_insn_issue_delay for states.
15174
15175 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
15176
15177         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
15178         jump is simplejump.
15179
15180 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
15181
15182         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
15183         sequence.
15184
15185 2002-05-03  Richard Henderson  <rth@redhat.com>
15186
15187         PR opt/6534
15188         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
15189         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
15190         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
15191         code before JUMP, not EARLIEST.
15192
15193 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15194
15195         * c-format.c (check_format_info_main): Don't check for presence of
15196         parameter for * width until after operand number has been read,
15197         and only check for it if format parameters are available.
15198         Fixes PR c/6547.
15199
15200 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15201
15202         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
15203         (LINK_SPEC): Undef before defining.
15204
15205 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15206
15207         PR preprocessor/6489
15208         * tradcpp.c (fixup_newlines): New.
15209         (main, finclude): Use it.
15210
15211 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
15212
15213         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
15214         * config/mips/mips.c (mips_unique_section): Strip encoding from
15215         decl name.
15216
15217 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15218
15219         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
15220         mode.
15221
15222 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15223
15224         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
15225         (Specific): Removed buildstats references.
15226         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
15227         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
15228         Accomodate Solaris versions beyond 8.
15229         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
15230         (Specific, *-*-solaris2.8): Removed, obsolete.
15231
15232 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15233
15234         PR target/6542
15235         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
15236         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
15237         fill leaf_reg_remap with identity.
15238         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
15239
15240 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
15241
15242         * config/h8300/crti.asm: Remove trailing spaces.
15243         * config/h8300/h8300.c: Likewise.
15244         * config/h8300/lib1funcs.asm: Likewise.
15245
15246 2002-05-02  Jason Merrill  <jason@redhat.com>
15247
15248         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
15249         * c-decl.c (c_init_decl_processing): Use it.
15250         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
15251         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
15252         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
15253
15254 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
15255
15256         * regrename.c: Fix formatting.
15257         * tree.c: Likewise.
15258
15259 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
15260
15261         * i386.md (attribute memory): Handle compares properly.
15262
15263 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
15264
15265         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
15266         to none.
15267
15268 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
15269
15270         * function.c: Fix formatting.
15271
15272 2002-05-02  Jan Hubicka  <jh@suse.cz>
15273
15274         * haifa-sched.c (schedule_insn): Print table of instructions and
15275         reservations.
15276         (sched_block): Do not print ready list at verbosity level 1.
15277         * sched-vis.c (print_insn): Make global.
15278         * sched-ebb.c (ebb_print_insn): Rename from...
15279         (print_insn): ... this one.
15280         * sched-int.h (print_insn): Declare
15281
15282 2002-05-02  Richard Henderson  <rth@redhat.com>
15283
15284         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
15285         emitted by cycle_display.
15286
15287 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
15288
15289         * doc/install.texi (*-*-freebsd*): Update to latest status.
15290
15291 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
15292
15293         PR target/6540
15294         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
15295         * config/float-sparc.h: Assume 128-bit long double if
15296         __LONG_DOUBLE_128__ is defined.
15297
15298 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
15299
15300         * genattrtab.c (write_function_unit_info): Add a dummy element
15301         when num_units == 0.
15302
15303 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15304
15305         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
15306         TYPE_MODE (double_type_node) instead of DFmode.
15307
15308 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
15309
15310         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
15311         jumps post reload.
15312         * toplev.c (rest_of_compilation): Revert Richard's patch.
15313
15314 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15315
15316         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
15317
15318 2002-05-02  Catherine Moore  <clm@redhat.com>
15319
15320         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
15321
15322 2002-05-02  Kazu Hirata  <kazu@hxi.com>
15323
15324         * combine.c: Fix comment typos.
15325         * expr.c: Likewise.
15326         * genautomata.c: Likewise.
15327         * stmt.c: Likewise.
15328         * tree.h: Likewise.
15329
15330 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
15331
15332         * doc/install.texi: State GNAT version requirements.
15333
15334 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
15335
15336         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
15337         of the frame pointer or arg pointer register which strict register
15338         checking is not enabled.
15339
15340 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
15341
15342         * gcc.dg/altivec-8.c: New.
15343
15344         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
15345         PRE_INC and PRE_DEC for altivec modes.
15346
15347 2002-05-01  Bruce Korb  <bkorb@gnu.org>
15348
15349         * fixinc/check.tpl(set-writable): make sure the function exists first
15350         * fixinc/inclhack.def(alpha_assert): fix test_text
15351         * fixinc/tests/base/assert.h: add in missing result
15352
15353 2002-05-01  Jeff Law  <law@redhat.com>
15354
15355         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
15356         'T' constraint.
15357
15358 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
15359
15360         * dbxout.c (dbxout_type): Emit size information for range types,
15361         as well, but only when using GDB extensions.
15362
15363 2002-05-01  Richard Henderson  <rth@redhat.com>
15364
15365         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
15366         target-independent gnu binutils date test.
15367
15368 2002-05-01  Richard Henderson  <rth@redhat.com>
15369
15370         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
15371         info before expunging the block.
15372
15373 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
15374
15375         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
15376         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
15377         -M -or -MM is in effect.
15378
15379 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
15380
15381         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
15382         A29k configurations.
15383         * doc/install.texi: Update to match.
15384
15385 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15386
15387         PR bootstrap/6514
15388         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
15389         for duplicates. Always loop over whole list.
15390
15391 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15392
15393         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
15394
15395 2002-05-01      Joel Sherrill <joel@OARcorp.com>
15396
15397         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
15398         support routines.
15399
15400 2002-05-01      Joel Sherrill <joel@OARcorp.com>
15401
15402         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
15403
15404 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
15405
15406         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
15407         (nabs_nopower): Same.
15408         (floatdisf2): New pattern.
15409         (absdi2): Convert to define_insn_and_split.
15410         (nabsdi2): Same.
15411         (trunctfsf2): Same.
15412         (floatditf2): Same.
15413         (floatsitf2): Same.
15414         (fix_trunctfdi2): Same.
15415         (fix_trunctfsi2): Same.
15416
15417 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
15418
15419         * doc/install.texi: Update Texinfo version requirement
15420         documentation.
15421
15422 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
15423
15424         PR target/6512, PR target/5628
15425         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
15426         when memory is not aligned.
15427         (movdf_insn_v9only_vis): Likewise.
15428         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
15429         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
15430         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
15431
15432 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
15433
15434         * gcc.dg/altivec-7.c: New.
15435
15436         * config/rs6000/altivec.h: Cleanup.
15437
15438 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
15439
15440         * doc/invoke.texi (Option Summary): Add -mvrsave=.
15441         (RS/6000 and PowerPC Options): Document -mvrsave=.
15442
15443         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
15444         (rs6000_altivec_vrsave_string): Same.
15445         (rs6000_override_options): Call rs6000_parse_vrsave_option.
15446         (rs6000_parse_vrsave_option): New.
15447         (rs6000_stack_info): Only generate vrsave instructions when
15448         TARGET_ALTIVEC_VRSAVE.
15449
15450         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
15451         (rs6000_altivec_vrsave_string): Define extern.
15452         (rs6000_altivec_vrsave): Same.
15453         (TARGET_ALTIVEC_VRSAVE): New.
15454
15455 2002-04-30  Richard Henderson  <rth@redhat.com>
15456
15457         PR opt/6516
15458         * toplev.c (rest_of_compilation): Don't run cross-jump before
15459         bb-reorder.
15460
15461 2002-04-30  Tom Rix  <trix@redhat.com>
15462
15463         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
15464         check which_alternative.
15465
15466 2002-04-30  Kazu Hirata  <kazu@hxi.com>
15467
15468         * cpplex.c: Fix comment formatting.
15469         * function.c: Likewise.
15470         * integrate.c: Likewise.
15471         * regrename.c: Likewise.
15472         * sibcall.c: Likewise.
15473         * simplify-rtx.c: Likewise.
15474         * tree-inline.c: Likewise.
15475
15476 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15477
15478         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
15479         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
15480         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
15481         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
15482         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
15483         * pa/x-ada: New file.  Define ADA_CFLAGS.
15484
15485 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
15486
15487         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
15488         from MMIX_LAST_REGISTER_FILE_REGNUM.
15489         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
15490         (struct machine_function): New member highest_saved_stack_register
15491         previously static variable in mmix.c.
15492         (MACHINE_DEPENDENT_REORG): Define.
15493         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
15494         (MMIX_OUTPUT_REGNO): New.
15495         (mmix_target_asm_function_prologue): Move calculation of last used
15496         saved-stack-register into...
15497         (mmix_machine_dependent_reorg): New function.  Update to also handle
15498         !TARGET_ABI_GNU.
15499         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
15500         register names, simplify somewhat by new variable regno.
15501         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
15502         register.
15503         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
15504         emitting register names.
15505         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
15506         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
15507         Remove fixed FIXME.
15508         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
15509         Declare.
15510
15511         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
15512
15513 2002-04-30  Richard Henderson  <rth@redhat.com>
15514
15515         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
15516         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
15517         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
15518         emit_tfmode_cvt): New.
15519         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
15520         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
15521         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
15522         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
15523         * config/sparc/sparc-protos.h: Update.
15524
15525 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
15526
15527         * install.texi (Final install): Add to the list of info to include
15528         in a report of a successful bootstrap, and add link to 3.1 list.
15529
15530 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
15531
15532         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
15533         (mode): Add vector modes
15534         (i387): Kill attribute.
15535         (unit): New attribute.
15536         (length_immediate): Grok new types.
15537         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
15538         (modrm): Use "unit".
15539         (memory): Handle MMX/SSE properly.
15540         (scheduling descriptions): Kill uses of fop1.
15541         (sse, mmx, fp patterns): Set type and mode properly.
15542
15543 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
15544
15545         * pa.c (override_options): Default to PA8000 scheduling.
15546         * doc/invoke.texi (HP-PA options): Mention newly added 7300
15547         scheduling parameter.
15548
15549         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
15550         handling of double precision multiplies.
15551
15552         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
15553         fpdiv and fpsqrt instructions.
15554         (7200 & 7300 scheduling): Fix typo in handling of
15555         store-load and store-store penalties.
15556
15557 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15558
15559         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
15560         mips.  Add two missing commas.
15561
15562 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
15563
15564         * doc/contrib.texi (Contributors): Update Paolo Carlini's
15565         and Benjamin Kosnik's entries.
15566
15567 2002-04-29  David S. Miller  <davem@redhat.com>
15568
15569         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
15570         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
15571         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
15572         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15573
15574 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15575
15576         * combine.c (find_split_point): Use gen_int_mode.
15577
15578 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
15579
15580         Merging code from dfa-branch:
15581
15582         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15583
15584         * genautomata.c (output_reserv_sets): Fix typo.
15585
15586         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
15587
15588         * genautomata.c (output_reserv_sets): Remove
15589         next_cycle_output_flag.
15590
15591         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
15592
15593         * sched-rgn.c (init_ready_list): Make the DFA code handle
15594         USE/CLOBBER insns in the same way as the traditional
15595         scheduler.
15596         (new_ready): Similarly..
15597
15598         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
15599
15600         * haifa-sched.c (schedule_block): Change the DFA state only after
15601         issuing insn.
15602
15603         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
15604
15605         * pa.c (hppa_use_dfa_pipeline_interface): New function.
15606         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
15607         (override_options): Add PA7300 scheduling support.
15608         (pa_adjust_cost): Update various comments.  Properly
15609         handle anti and output dependencies when using the
15610         DFA scheduler.
15611         (pa_issue_rate): Add PA7300 scheduling support.
15612         (pa_can_combine_p): Call extract_insn before calling
15613         constrain_operands (taken from mainline tree).
15614         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
15615         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
15616         descriptions using DFA descriptions.  Add PA7300
15617         scheduling support.
15618
15619         2002-03-30  David S. Miller  <davem@redhat.com>
15620
15621         Add UltraSPARC-III DFA scheduling support.
15622         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
15623         Update FP conditional move on register insn patterns to use it, as
15624         appropriate.
15625         (define_attr cpu): Add ultrasparc3.
15626         (define_attr us3load_type): New, update integer load patterns to
15627         set it, as appropriate.
15628         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
15629         (rest): Add UltraSPARC3 scheduling description.
15630         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
15631         (PROCESSOR_ULTRASPARC3): New.
15632         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
15633         ({ASM,CPP}_CPU_SPEC): Likewise.
15634         (REGISTER_MOVE_COST): Likewise.
15635         (RTX_COSTS): Likewise.
15636         * config/sparc/sparc.c (sparc_override_options,
15637         sparc_initialize_trampoline, sparc64_initialize_trampoline,
15638         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
15639         sparc_issue_rate): Likewise.
15640         * config/sparc/sol2.h: Likewise.
15641         * config/sparc/sol2-sld-64.h: Likewise.
15642         * config/sparc/linux64.h: Likewise.
15643
15644         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
15645
15646         * doc/md.texi: Add comments about usage the latency time for the
15647         different dependencies and about case when two or more conditions
15648         in different define_insn_reservations returns TRUE for an insn.
15649
15650         * doc/md.texi: Add reference for automaton based pipeline
15651         description.
15652
15653         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
15654
15655         * doc/passes.texi: Add missed information about genattrtab.
15656
15657         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
15658
15659         * genautomata.c (output_automata_list_transition_code): Check
15660         automata_list on NULL.
15661
15662         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
15663
15664         * genautomata.c (output_insn_code_cases,
15665         output_automata_list_min_issue_delay_code,
15666         output_automata_list_transition_code,
15667         output_automata_list_state_alts_code): Comment the functions.
15668
15669         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
15670
15671         * genautomata.c (automata_list_el_t): New typedef.
15672         (get_free_automata_list_el,free_automata_list_el,
15673         free_automata_list, automata_list_hash, automata_list_eq_p,
15674         initiate_automata_lists, automata_list_start, automata_list_add,
15675         automata_list_finish, finish_automata_lists,
15676         output_insn_code_cases, output_automata_list_min_issue_delay_code,
15677         output_automata_list_transition_code,
15678         output_automata_list_state_alts_code, add_automaton_state,
15679         form_important_insn_automata_lists): New functions and prototypes.
15680         (insn_reserv_decl): Add members important_automata_list and
15681         processed_p.
15682         (ainsn): Add members important_p.
15683         (automata_list_el): New structure.
15684         (first_free_automata_list_el, current_automata_list,
15685         automata_list_table): New global variables.
15686         (create_ainsns): Initiate member important_p.
15687         (output_internal_min_issue_delay_func): Generate the switch and
15688         call output_insn_code_cases.
15689         (output_internal_trans_func, output_internal_state_alts_func):
15690         Ditto.
15691         (generate): Call initiate_automata_lists.
15692         (automaton_states): New global variable.
15693         (expand_automata): Call form_important_insn_automata_lists.
15694         (write_automata): Call finish_automata_lists.
15695
15696         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
15697
15698         * genautomata.c (add_excls, add_presence_absence): Check that
15699         cpu units in the sets belong the same automaton.
15700
15701         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
15702         about that cpu units in the sets belong the same automaton.
15703
15704         * doc/md.texi: Ditto.
15705
15706         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
15707                     Nitin Gupta  <niting@noida.hcltech.com>
15708
15709         * config/sh/sh.c (sh_use_dfa_interface): New function.
15710
15711         (sh_issue_rate): New Function.
15712         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
15713         TARGET_SCHED_ISSUE_RATE: define.
15714
15715         * config/sh/sh.md: Add DFA based pipeline description for SH4.
15716
15717         (define_attr insn_class): New attribute used for DFA
15718          scheduling.
15719         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
15720         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
15721          cmpeqdi_t): Likewise.
15722
15723         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
15724          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
15725          ex_group.
15726         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
15727
15728         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15729
15730         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
15731         break.
15732
15733         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15734
15735         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
15736         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
15737         necessary.
15738         (output_dfa_start_func): Initiate new variable insn_codes_length,
15739         (write_automata): Output definition of the new variable.
15740
15741         2001-10-02  David S. Miller  <davem@redhat.com>
15742
15743         * haifa-sched.c (advance_one_cycle): New function.
15744         (schedule_block): Use it.
15745         (queue_to_ready): Use it, and also make sure to advance the DFA
15746         state on all stall cycles, not just those where insn_queue links
15747         are found.
15748
15749         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
15750
15751         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
15752         non-zero if the highest-priority instruction could be scheduled.
15753         (choose_ready): Remove last argument from max_issue call.
15754
15755         2001-09-28  David S. Miller  <davem@redhat.com>
15756
15757         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
15758         ultrasparc and 3 for other multi-issue sparcs.
15759
15760         2001-09-27  David S. Miller  <davem@redhat.com>
15761
15762         * config/sparc/sparc.md (cycle_display): New pattern.
15763         * config/sparc/sparc.c (sparc_cycle_display): New.
15764         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
15765
15766         2001-09-25  David S. Miller  <davem@redhat.com>
15767
15768         Convert all of Sparc scheduling to DFA
15769         * config/sparc/sparc.md: Kill all define_function_unit
15770         directives and replace with DFA equivalent.
15771         * config/sparc/sparc.c (ultrasparc_adjust_cost,
15772         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
15773         ultra_fpmode_conflict_exists, ultra_find_type,
15774         ultra_build_types_avail, ultra_flush_pipeline,
15775         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
15776         ultrasparc_variable_issue, ultrasparc_sched_init,
15777         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
15778         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
15779         ultra_cur_hist, ultra_cycles_elapsed): Kill.
15780         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
15781         ultrasparc_store_bypass_p): New.
15782         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
15783         Declare.
15784
15785         2001-09-24  David S. Miller  <davem@redhat.com>
15786
15787         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
15788         ready->vec[foo] not ready[foo].
15789
15790         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
15791
15792         * doc/md.texi: Correct examples for define_insn_reservations
15793         `mult' and `div'.
15794
15795         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
15796
15797         * genautomata.c (create_automata): Print message about creation of
15798         each automaton.
15799         (generate): Remove printing meease about creation of
15800         automata.
15801
15802         2001-09-05  David S. Miller  <davem@redhat.com>
15803
15804         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
15805         * config/sparc/linux64.h: Likewise.
15806
15807         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
15808
15809         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
15810         schedule_block, sched_init, sched_finish): Add missed calls of
15811         use_dfa_pipeline_interface.
15812
15813         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
15814         Ditto.
15815
15816         * sched-vis.c (get_visual_tbl_length): Ditto.
15817
15818         2001-08-27  Richard Henderson  <rth@redhat.com>
15819
15820         * genattr.c (main): Emit state_t even when not doing scheduling.
15821
15822         2001-08-27  Richard Henderson  <rth@redhat.com>
15823
15824         * genautomata.c (expand_automata): Always create a description.
15825
15826         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
15827
15828         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
15829         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
15830         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
15831         RTL constructions.
15832
15833         * genattr.c (main): New variable num_insn_reservations.  Increase
15834         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
15835         pipeline hazard recognizer interface.
15836
15837         * genattrtab.h: New file.
15838
15839         * genattrtab.c: Include genattrtab.h.
15840         (attr_printf, check_attr_test, make_internal_attr,
15841         make_numeric_value): Move protypes into genattrtab.h.  Define them
15842         as external.
15843         (num_dfa_decls): New global variable.
15844         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
15845         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
15846         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
15847         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
15848
15849         * genautomata.c: New file.
15850
15851         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
15852
15853         * sched-int.h: (curr_state): Add the external definition for
15854         automaton pipeline interface.
15855         (haifa_insn_data): Add comments for members blockage and units.
15856
15857         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15858         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15859         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
15860         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
15861         TARGET_SCHED_DFA_POST_CYCLE_INSN,
15862         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15863         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
15864         macros.
15865         (TARGET_SCHED): Use the new macros.
15866
15867         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
15868         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
15869         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
15870         dfa_bubble): New members in gcc_target.sched.
15871
15872         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
15873         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
15874         (insn_queue): Redefine it as pointer to array.
15875         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
15876         INSN_QUEUE_SIZE.
15877         (max_insn_queue_index_macro_value): New variable.
15878         (curr_state, dfa_state_size, ready_try): New varaibles for
15879         automaton interface.
15880         (ready_element, ready_remove, max_issue): New function prototypes
15881         for automaton interface.
15882         (choose_ready): New function prototype.
15883         (insn_unit, blockage_range): Add comments.
15884         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
15885         FUNCTION_UNITS_SIZE == 0.
15886         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
15887         actual_hazard, potential_hazard): Add comments.
15888         (insn_cost): Use cost -1 as undefined value.  Remove
15889         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
15890         pipeline interface.
15891         (ready_element, ready_remove): New functions for automaton
15892         interface.
15893         (schedule_insn): Add new code for automaton pipeline interface.
15894         (queue_to_ready): Add new code for automaton pipeline interface.
15895         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
15896         (debug_ready_list): Print newline when the queue is empty.
15897         (max_issue): New function for automaton pipeline interface.
15898         (choose_ready): New function.
15899         (schedule_block): Add new code for automaton pipeline interface.
15900         Print ready list before scheduling each insn.
15901         (sched_init): Add new code for automaton pipeline interface.
15902         Initiate insn cost by -1.
15903         (sched_finish): Free the current automaton state and finalize
15904         automaton pipeline interface.
15905
15906         * sched-rgn.c: Include target.h.
15907         (init_ready_list, new_ready, debug_dependencies): Add new code for
15908         automaton pipeline interface.
15909
15910         * sched-vis.c: Include target.h.
15911         (get_visual_tbl_length): Add code for automaton interface.
15912         (target_units, print_block_visualization):  Add comments.
15913
15914         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
15915         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
15916         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
15917         (getruntime.o, genautomata.o): New entries.
15918         (genattrtab.o): Add new dependency file genattrtab.h.
15919         (genattrtab): Add new dependencies.  Link it with `libm.a'.
15920         (getruntime.o, hashtab.o): New entries for canadian cross.
15921
15922         * doc/md.texi: Description of automaton based model.
15923
15924         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
15925         Add comments.
15926         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15927         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
15928         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15929         TARGET_SCHED_DFA_POST_CYCLE_INSN,
15930         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
15931         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15932         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
15933         hook descriptions.
15934         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
15935         MAX_DFA_ISSUE_RATE): New macro descriptions.
15936
15937         * doc/contrib.texi: Add dfa based scheduler contribution.
15938
15939         * doc/gcc.texi: Add more information about genattrtab.
15940
15941 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15942
15943         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
15944         adjust_address_nv call.
15945
15946 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
15947
15948         * doc/install.texi (Testing): Provide additional information, and
15949         a stronger encouragement, for running the testsuites.
15950
15951 2002-04-29  DJ Delorie  <dj@redhat.com>
15952
15953         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
15954         given in upper case.
15955
15956 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15957
15958         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
15959         Solaris 2 <widec.h> if missing.
15960         * fixinc/fixincl.x: Regenerate.
15961         * fixinc/tests/base/widec.h: New file.
15962
15963 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
15964
15965         * toplev.c (f_options): Add "profile" switch so that
15966         -fno-profile can be used to disable -p.
15967
15968 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
15969
15970         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
15971         UV2DImode.
15972         * tree.c (build_common_tree_nodes_2): Likewise.
15973         * tree.h (enum tree_index): Likewise.
15974         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
15975
15976         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
15977         entries.
15978         (init_mmx_sse_builtins): Initialize SSE2 builtins.
15979         (ix86_expand_builtin): Add support for SSE2 builtins.
15980         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
15981         (VALID_SSE_REG_MODE): Use it.
15982         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
15983         (enum ix86_builtins): Add SSE2 builtins.
15984         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
15985         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
15986         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
15987         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
15988         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
15989         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
15990         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
15991         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
15992         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
15993         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
15994         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
15995         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
15996         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
15997         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
15998         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
15999         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
16000         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
16001         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
16002         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
16003         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
16004         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
16005         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
16006         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
16007         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
16008         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
16009         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
16010         lfence_insn): New patterns.
16011         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
16012         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
16013
16014 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
16015
16016         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
16017
16018 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16019
16020         * doc/contrib.texi (Contributors): Add Paolo Carlini and
16021         Janis Johnson.
16022         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
16023         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
16024         and CPU instead of cpu.
16025
16026 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
16027
16028         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
16029         variables.
16030         (lang_independent_options): Add -fif-conversion, -fif-conversion2
16031         (rest_of_compilation): Do if conversion only when asked for.
16032         (parse_options_and_default_flags): Set new variables to 1 for -O1
16033         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
16034
16035 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
16036
16037         * i386.c (dbx64_register_map): Fix typo.
16038
16039 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
16040
16041         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
16042         real_one_half, real_bb_freq_max): New static variables.
16043         (debug_profile_bbauxs): Kill.
16044         (process_note_predictions): Kill unused variable.
16045         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
16046         volatile double.
16047         (propagate_freq): Use REAL_ARITHMETICS.
16048         (estimate_bb_frequencies): Likevise; init new static variables.
16049         * Makefile.in (predict.o): Add dependency on real.h
16050
16051 2002-04-28  David S. Miller  <davem@redhat.com>
16052
16053         PR target/6500
16054         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
16055         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
16056         several {reads,writes} instead.
16057         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
16058         Define.
16059
16060 2002-04-27  David S. Miller  <davem@redhat.com>
16061
16062         PR target/6494
16063         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
16064         of the stack bias.
16065
16066         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
16067         including signal.h and sys/ucontext.h, not needed.
16068
16069 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
16070
16071         * varasm.c (output_constant_def): Correct test for not calling
16072         ENCODE_SECTION_INFO for INTEGER_CST.
16073
16074 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16075
16076         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
16077         keep most cases as function eval_token.
16078         (eval_token): New function.
16079         (_cpp_parse_expr): Read token here for improved diagnostics.
16080         Don't use op_as_text.  Detect bad ':' here.
16081         (reduce): Don't detect bad ':' here.
16082         (op_as_text): Remove.
16083         * cpphash.h (_cpp_test_assertion): Change prototype.
16084         * cpplib.c (_cpp_test_assertion): Change prototype.
16085
16086 2002-04-28  Richard Henderson  <rth@redhat.com>
16087
16088         PR c/5154
16089         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
16090         (ggc_mark_rtx_children): New.
16091
16092 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16093
16094         PR target/6496
16095         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
16096         after call peepholes for UltraSPARC.
16097         (call + jump 64-bit peepholes): Remove.
16098
16099 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16100
16101         PR c/6497
16102         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
16103         result as temporary value.
16104
16105 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16106
16107         PR c++/6396
16108         * toplev.c (rest_of_compilation): Only run regrename and copy
16109         propagation if optimizing.
16110
16111 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16112
16113         PR optimization/6475
16114         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
16115         register of REGNO_DECL (i).
16116         * Makefile.in (reload1.o): Add $(TREE_H).
16117
16118 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16119
16120         * cppexp.c (lex): Update to use state.skip_eval.
16121         (struct op): Remove prio and flags members.
16122         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
16123         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
16124         (LEFT_ASSOC): New macro.
16125         (optab): New table of operator priorities and flags.
16126         (SHIFT): Update.
16127         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
16128         malloc-ed parser stack.
16129         (reduce): New; reduce the operator stack.
16130         (_cpp_expand_op_stack): Expand the operator stack as necessary.
16131         * cpphash.h (struct op): Predeclare.
16132         (struct cpp_reader): New members op_stack, op_limit.
16133         (struct lexer_state): New member skip_eval.
16134         (_cpp_parse_expr): Update.
16135         (_cpp_expand_op_stack): New.
16136         * cpplib.c (do_if): Update.
16137         * cppinit.c (cpp_create_reader): Create op stack.
16138         (cpp_destroy): And destroy it.
16139         * cpplib.h (CPP_LAST_CPP_OP): Correct.
16140         (TTYPE_TABLE): Correct.
16141
16142 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16143
16144         PR c/6343
16145         * c-decl.c (duplicate_decls): Call merge_weak.
16146         * c-pragma.c (apply_pragma_weak): Warn about misuse.
16147         * output.h (merge_weak): Prototype merge_weak.
16148         * varasm.c (merge_weak): New function.
16149         (declare_weak): Make sure we don't give an error on VAR_DECLs.
16150         Mark RTL with SYMBOL_REF_WEAK.
16151
16152 2002-04-27  Kurt Garloff <garloff@suse.de>
16153
16154         * tree-inline.c (inlinable_function_p): Improve heuristics
16155         by using a smoother function to cut down allowable inlinable size.
16156         * param.def: Add parameters max-inline-insns-single,
16157         max-inline-slope, min-inline-insns that determine the exact
16158         shape of the above function.
16159         * param.h: Likewise.
16160
16161 2002-04-26  Richard Henderson  <rth@redhat.com>
16162
16163         * c-parse.in (malloced_yyss, malloced_yyvs): New.
16164         (yyoverflow): Re-add.  Set them.
16165         (free_parser_stacks): New.
16166         * c-common.h: Declare it.
16167         * c-lex.c (c_common_parse_file): Call it.
16168
16169 2002-04-26  Richard Henderson  <rth@redhat.com>
16170
16171         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
16172         for fallthru search.
16173
16174 2002-04-26  Eric Christopher  <echristo@redhat.com>
16175
16176         PR optimization/3700
16177         * config/mips/mips.c (mips_issue_rate): Define.  New function.
16178         (TARGET_SCHED_ISSUE_RATE): Use.
16179
16180 2002-04-25  David S. Miller  <davem@redhat.com>
16181
16182         PR target/6422
16183         * reorg.c (optimize_skip): Do not allow exception causing
16184         instructions to be considered for delay slots.
16185         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
16186         (relax_delay_slots): Do not try to consider exception causing
16187         instructions as redundant.
16188
16189 2002-04-26  Richard Henderson  <rth@redhat.com>
16190
16191         PR c/5225
16192         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
16193
16194 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
16195
16196         PR bootstrap/6445
16197         * config/i386/i386.md (untyped_call): Return the value in a float
16198         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
16199         TARGET_80387.
16200
16201 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
16202
16203         * tree.c (tree_int_cst_lt): Compare constants whose types differ
16204         in unsigned-ness correctly.
16205
16206 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16207
16208         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
16209         portable runtime model.
16210
16211 2002-04-26  Richard Henderson  <rth@redhat.com>
16212
16213         * c-parse.in (yyoverflow): Revert.
16214
16215 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
16216             Richard Henderson  <rth@redhat.com>
16217
16218         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
16219         result as temporary value.
16220
16221 2002-04-26  Richard Henderson  <rth@redhat.com>
16222
16223         PR c/3581
16224         * c-common.c (fix_string_type): Split out of ...
16225         (combine_strings): ... here.  Take a varray, not a tree list.
16226         (c_expand_builtin_printf): Use fix_string_type.
16227         * c-common.h: Update decls.
16228         * c-parse.in (string): Remove.  Update all uses to use STRING
16229         instead, and not call combine_strings.
16230         (yylexstring): New.
16231         (_yylex): Use it.
16232         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
16233         (build_asm_stmt): Likewise.
16234         * objc/objc-act.c (my_build_string): Use fix_string_type.
16235         (build_objc_string_object): Build varray for combine_strings.
16236
16237 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
16238
16239         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
16240         x86-64.
16241
16242 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
16243
16244         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
16245         (HAVE_NO_R_OPERAND): Remove.
16246         (HAVE_VALUE): Remove.
16247         (op_to_prio): Update.
16248         (UNARY): Don't alter flags.
16249         (_cpp_parse_expr): want_value used to indicate whether
16250         a number or unary operator is expected next.  Distinguish
16251         unary and binary +/-.
16252         (op_as_text): Update for unary operators.
16253
16254 2002-04-25  Richard Henderson  <rth@redhat.com>
16255
16256         PR c/2161
16257         * c-parse.in (yyoverflow): New.
16258
16259 2002-04-25  Richard Henderson  <rth@redhat.com>
16260
16261         PR c/2098
16262         * c-common.c (shorten_compare): Simplfy conditions leading to
16263         the generation of a warning.
16264
16265 2002-04-25  Richard Henderson  <rth@redhat.com>
16266
16267         PR c/2035
16268         * expmed.c (extract_bit_field): Fall through to generic code rather
16269         than aborting on subreg special case.
16270
16271 2002-04-25  David S. Miller  <davem@redhat.com>
16272
16273         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
16274         for DECL being NULL.
16275
16276 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
16277
16278         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
16279
16280 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
16281
16282         * c-decl.c (grokdeclarator): Remove outdated ??? note
16283         on invalid declaration of flexible array members.
16284
16285 2002-04-25  Richard Henderson  <rth@redhat.com>
16286
16287         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
16288
16289 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
16290
16291         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
16292         needed by the compiler, even if they are used as global regs.
16293
16294 2002-04-25  Matt Hiller  <hiller@redhat.com>
16295
16296         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
16297         functions.
16298         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
16299         of the corresponding functions.
16300         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
16301         New prototypes.
16302
16303 2002-04-25  Matt Hiller  <hiller@redhat.com>
16304
16305         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
16306
16307         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
16308         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
16309         registers, adjust comment accordingly.
16310         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
16311         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
16312         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
16313         for coprocessor registers.
16314         (ADDITIONAL_REGISTER_NAMES): Include
16315         ALL_COP_ADDITIONAL_REGISTER_NAMES.
16316
16317         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
16318         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
16319         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
16320         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
16321         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
16322
16323         (mips_char_to_class): Adjust comment to include coprocessor
16324         constraint letters.
16325
16326         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
16327         New functions.
16328         (mips_reg_names, mips_regno_to_class): Include coprocessor
16329         information.
16330         (mips_sw_reg_names): Ditto, make non-static.
16331         (mips_move_1word): Handle moves to and from coprocessor registers.
16332         (mips_move_2words): Handle moves to and from coprocessor
16333         registers.
16334         (mips_class_max_nregs, mips_register_move_cost): Handle
16335         coprocessor register classes.
16336         (override_options): Initialize mips_char_to_class and
16337         mips_hard_regno_mode_ok properly for coprocessor registers.
16338
16339         * config/mips/mips.md (movdi_internal, movdi_internal2,
16340         movsi_internal1, movsi_internal2): Add constraint-sets for
16341         coprocessor registers.
16342         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
16343         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
16344         isn't mips.
16345         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
16346         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
16347         isn't mips.
16348         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
16349         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
16350         isn't mips.
16351         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
16352         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
16353         isn't mips.
16354
16355         * doc/tm.texi: Document feature.
16356
16357 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16358
16359         * integrate.c (function_attribute_inlinable_p): Simplify.
16360         Check the table pointer is not NULL.
16361
16362 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
16363
16364         * doc/c-tree.texi: Fix typo in introduction.
16365
16366 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16367
16368         * c-common.h (c_common_parse_file): Update.
16369         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16370         * c-lex.c (YYDEBUG): Get from c-lex.h.
16371         (c_common_parse_file): Update.
16372         * c-lex.h (YYDEBUG, yydebug): New.
16373         * c-parse.in (YYDEBUG): Get from c-lex.h.
16374         (c_set_yydebug): Remove.
16375         * c-tree.h (c_set_yydebug): Remove.
16376         * langhooks-def.h (lhd_do_nothing_i): New.
16377         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
16378         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
16379         * langhooks.c  (lhd_do_nothing_i): New.
16380         (lhd_set_yydebug): Remove.
16381         * langhooks.h (struct lang_hooks): Update.
16382         * toplev.c (set_yydebug): New.
16383         (compile_file): Update call to parse_file hook.
16384         (decode_d_option): Update.
16385 objc:
16386         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16387
16388 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
16389
16390         * loop.c (load_mems): Don't change the interface of called functions.
16391
16392         * calls.c (expand_call): Take current_function_pretend_args_size
16393         into account when setting argblock for sibcalls.
16394
16395 2002-04-24  Matt Hiller  <hiller@redhat.com>
16396
16397         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
16398         * c-lex.c: Ditto.
16399
16400         * cpplex.c (skip_line_comment): Process comment one multibyte
16401         character at a time rather than one char at a time, if
16402         appropriate.
16403         (parse_string): Process string one multibyte character at a time
16404         rather than one char at a time, if appropriate.
16405         * c-lex.c (lex_string): Lex and copy multibyte strings
16406         appropriately.
16407         * cpplib.h (cppchar_t): Change to unsigned.
16408
16409 2002-04-24  Richard Henderson  <rth@redhat.com>
16410
16411         PR c/3467
16412         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
16413         for c99.
16414
16415 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
16416
16417         * sh.c (sh_va_arg): If argument was passed by reference,
16418         dereference the pointer.
16419
16420         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16421
16422         * sh.md (divsi3_i4_media): Use match_operand for input values
16423         rather than hard registers.
16424         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
16425         unnecessarily through hard registers.  Keep copies of pseudo
16426         registers outside of the libcall sequence.
16427
16428         * sh.md (casesi_shift_media): Add modes.
16429
16430         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
16431         values in memory.
16432
16433 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16434
16435         * attribs.c (c_common_attribute_table): Move table and handlers
16436         to c-common.c.
16437         (format_attribute_table, lang_attribute_table,
16438         lang_attribute_common): Remove.
16439         (init_attributes): Replace NULL pointers with pointers to the
16440         empty table.
16441         (handle_packed_attribute, handle_nocommon_attribute,
16442         handle_common_attribute, handle_noreturn_attribute,
16443         handle_noinline_attribute, handle_always_inline_attribute,
16444         handle_used_attribute, handle_unused_attribute,
16445         handle_const_attribute, handle_transparent_union_attribute,
16446         handle_constructor_attribute, handle_destructor_attribute,
16447         handle_mode_attribute, handle_section_attribute,
16448         handle_aligned_attribute, handle_weak_attribute,
16449         handle_alias_attribute, handle_visibility_attribute,
16450         handle_no_instrument_function_attribute, handle_malloc_attribute,
16451         handle_no_limit_stack_attribute, handle_pure_attribute,
16452         handle_deprecated_attribute, handle_vector_size_attribute,
16453         vector_size_helper): Move to c-common.c.
16454         * c-common.c (c_common_attribute_table,
16455         handle_packed_attribute, handle_nocommon_attribute,
16456         handle_common_attribute, handle_noreturn_attribute,
16457         handle_noinline_attribute, handle_always_inline_attribute,
16458         handle_used_attribute, handle_unused_attribute,
16459         handle_const_attribute, handle_transparent_union_attribute,
16460         handle_constructor_attribute, handle_destructor_attribute,
16461         handle_mode_attribute, handle_section_attribute,
16462         handle_aligned_attribute, handle_weak_attribute,
16463         handle_alias_attribute, handle_visibility_attribute,
16464         handle_no_instrument_function_attribute, handle_malloc_attribute,
16465         handle_no_limit_stack_attribute, handle_pure_attribute,
16466         handle_deprecated_attribute, handle_vector_size_attribute,
16467         vector_size_helper): Move from attribs.c.
16468         * c-common.h (c_common_attribute_table,
16469         c_common_format_attribute_table): New.
16470         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
16471         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
16472         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
16473         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
16474         (LANG_HOOKS_INITIALIZER): Update.
16475         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
16476         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
16477         * target.h: Update comment.
16478         * tree.c (default_target_attribute_table): Remove.
16479         * tree.h (default_target_attribute_table, format_attribute_table,
16480         lang_attribute_table, lang_attribute_common): Remove.
16481 objc:
16482         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
16483         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
16484
16485 2002-04-24  Jason Merrill  <jason@redhat.com>
16486
16487         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
16488         * dwarf2out.c (dwarf_attr_name): Support it.
16489         (gen_array_type_die): Emit it.
16490         (lookup_type_die): No special handling for VECTOR_TYPE.
16491         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
16492
16493 2002-04-24  Richard Henderson  <rth@redhat.com>
16494
16495         * config/mips/mips.md (movdi_usd): Renumber.
16496
16497 2002-04-24  David S. Miller  <davem@redhat.com>
16498
16499         PR target/6420
16500         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
16501         32-bit Sparc and current_function_returns_struct is true.
16502
16503 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
16504
16505         * loop.c (canonicalize_condition): Use gen_int_mode.
16506
16507 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
16508
16509         * config/rs6000/altivec.h: Cleanup file.  Add non individual
16510         variants.
16511         (vec_vaddubm): New.
16512         (vec_vadduhm): New.
16513         (vec_vadduwm): New.
16514         (vec_vaddfp): New.
16515         (vec_vaddcuw): New.
16516         (vec_vaddubs): New.
16517         (vec_vaddsbs): New.
16518         (vec_vadduhs): New.
16519         (vec_vadduws): New.
16520         (vec_vaddsws): New.
16521         (vec_vand): New.
16522         (vec_vandc): New.
16523         (vec_vavgub): New.
16524         (vec_vavgsb): New.
16525         (vec_vavguh): New.
16526         (vec_vavgsh): New.
16527         (vec_vavguw): New.
16528         (vec_vavgsw): New.
16529         (vec_vrfip): New.
16530         (vec_vcmpbfp): New.
16531         (vec_vcmpequb): New.
16532         (vec_vcmpequh): New.
16533         (vec_vcmpequw): New.
16534         (vec_vcmpeqfp): New.
16535         (vec_vcmpgefp): New.
16536         (vec_vcmpgtub): New.
16537         (vec_vcmpgtsb): New.
16538         (vec_vcmpgtuh): New.
16539         (vec_vcmpgtsh): New.
16540         (vec_vcmpgtuw): New.
16541         (vec_vcmpgtsw): New.
16542         (vec_vcmpgtfp): New.
16543         (vec_vcmpgefp): New.
16544         (vec_vcfux): New.
16545         (vec_vcfsx): New.
16546         (vec_vctsxs): New.
16547         (vec_vctuxs): New.
16548         (vec_vexptefp): New.
16549         (vec_vrfim): New.
16550         (vec_lvx): New.
16551         (vec_lvebx): New.
16552         (vec_lvehx): New.
16553         (vec_lde): Add vector float variant.
16554         (vec_lvewx): New.
16555         (vec_lvxl): New.
16556         (vec_vlogefp): New.
16557         (vec_vmaddfp): New.
16558         (vec_vmhaddshs): New.
16559         (vec_vmaxub): New.
16560         (vec_vmaxsb): New.
16561         (vec_vmaxuh): New.
16562         (vec_vmaxsh): New.
16563         (vec_vmaxuw): New.
16564         (vec_vmaxsw): New.
16565         (vec_vmaxsw): New.
16566         (vec_vmaxfp): New.
16567         (vec_vmrghb): New.
16568         (vec_vmrghh): New.
16569         (vec_vmrghw): New.
16570         (vec_vmrglb): New.
16571         (vec_vmrglh): New.
16572         (vec_vmrglw): New.
16573         (vec_vminub): New.
16574         (vec_vminsb): New.
16575         (vec_vminuh): New.
16576         (vec_vminsh): New.
16577         (vec_vminuw): New.
16578         (vec_vminsw): New.
16579         (vec_vminfp): New.
16580         (vec_vmladduhm): New.
16581         (vec_vmhraddshs): New.
16582         (vec_msumubm): New.
16583         (vec_vmsummbm): New.
16584         (vec_vmsumuhm): New.
16585         (vec_vmsumshm): New.
16586         (vec_vmsumuhs): New.
16587         (vec_vmsumshs): New.
16588         (vec_vmuleub): New.
16589         (vec_vmulesb): New.
16590         (vec_vmuleuh): New.
16591         (vec_vmulesh): New.
16592         (vec_vmuloub): New.
16593         (vec_mulosb): New.
16594         (vec_vmulouh): New.
16595         (vec_vmulosh): New.
16596         (vec_vnmsubfp): New.
16597         (vec_vnor): New.
16598         (vec_vor): New.
16599         (vec_vpkuhum): New.
16600         (vec_vpkuwum): New.
16601         (vec_vpkpx): New.
16602         (vec_vpkuhus): New.
16603         (vec_vpkshss): New.
16604         (vec_vpkuwus): New.
16605         (vec_vpkswss): New.
16606         (vec_vpkshus): New.
16607         (vec_vpkswus): New.
16608         (vec_vperm): New.
16609         (vec_vrefp): New.
16610         (vec_vrlb): New.
16611         (vec_vrlh): New.
16612         (vec_vrlw): New.
16613         (vec_vrfin): New.
16614         (vec_vrsqrtefp): New.
16615         (vec_vsel): New.
16616         (vec_vslb): New.
16617         (vec_vslh): New.
16618         (vec_vslw): New.
16619         (vec_vsldoi): New.
16620         (vec_vsl): New.
16621         (vec_vslo): New.
16622         (vec_vspltb): New.
16623         (vec_vsplth): New.
16624         (vec_vspltw): New.
16625         (vec_vspltisb): New.
16626         (vec_vspltish): New.
16627         (vec_vspltisw): New.
16628         (vec_vsrb): New.
16629         (vec_vsrh): New.
16630         (vec_vsrw): New.
16631         (vec_vsrab): New.
16632         (vec_vsrah): New.
16633         (vec_vsraw): New.
16634         (vec_vsr): New.
16635         (vec_vsro): New.
16636         (vec_stvx): New.
16637         (vec_stvebx): New.
16638         (vec_stvehx): New.
16639         (vec_stvewx): New.
16640         (vec_stvxl): New.
16641         (vec_vsububm): New.
16642         (vec_vsubuhm): New.
16643         (vec_vsubuwm): New.
16644         (vec_vsubfp): New.
16645         (vec_vsubcuw): New.
16646         (vec_vsububs): New.
16647         (vec_vsubsbs): New.
16648         (vec_vsubuhs): New.
16649         (vec_vsubshs): New.
16650         (vec_vsubuws): New.
16651         (vec_vsubsws): New.
16652         (vec_vsum4ubs): New.
16653         (vec_vsum4sbs): New.
16654         (vec_vsum4shs): New.
16655         (vec_vsum2sws): New.
16656         (vec_vsumsws): New.
16657         (vec_vrfiz): New.
16658         (vec_vupkhsb): New.
16659         (vec_vupkhpx): New.
16660         (vec_vupkhsh): New.
16661         (vec_vupklsb): New.
16662         (vec_vupklpx): New.
16663         (vec_vupklsh): New.
16664         (vec_vxor): New.
16665
16666 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
16667
16668         PR c/5430
16669         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
16670         added literals from substracted literals.
16671         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
16672         (fold) [associate]: Preserve MINUS_EXPR if needed.
16673
16674 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
16675
16676         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
16677         are obsoleted.
16678
16679 2002-04-23  Tom Tromey  <tromey@redhat.com>
16680
16681         * gcc.c: Added --resource.  For PR java/6314.
16682
16683 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
16684
16685         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
16686         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
16687         these libraries.
16688
16689 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
16690
16691         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
16692
16693 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
16694
16695         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
16696         workaround.
16697         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
16698         (ix86_expand_clrstr): Fix typo.
16699         * loop.c (gen_load_of_final_value): New.
16700         (loop_givs_rescan, strength_reduce, check_dbra_loop):
16701         Use it.
16702
16703 2002-04-23  Roger Sayle  <roger@eyesopen.com>
16704
16705         * builtins.c (builtin_memset_gen_str): New function.
16706         (expand_builtin_memset): Optimize the case of constant length, but
16707         unknown value.
16708
16709 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
16710
16711         * config/rs6000/altivec.h (vec_step): Remove extraneous
16712         parentheses.
16713         (vec_ctu): Cast return.
16714
16715 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
16716
16717         PR target/6413
16718         * function.h: (struct function): Add profile_label_no field.
16719         (current_function_profile_label_no): Define.
16720         * function.c: (profile_label_no): New static var.
16721         (expand_function_start): Increment it, and copy to
16722         current_function_profile_label_no.
16723         * output.h (profile_label_no): Delete.
16724         * final.c (profile_label_no): Delete.
16725         (profile_function): Use current_function_profile_label_no.
16726         (final_end_function): Don't increment profile_label_no here.
16727         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
16728         profile_label_no with current_function_profile_label_no.
16729         * config/pa/pa.c (current_function_number): Delete.
16730         (pa_output_function_prologue): Don't output profile label here.
16731         (hppa_profile_hook): Use label_no param rather than
16732         current_function_number.
16733         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
16734         * config/pa/pa.h: .. here.
16735         (FUNCTION_PROFILER): Output profile label here.
16736
16737 2002-04-22  Eric Christopher  <echristo@redhat.com>
16738
16739         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
16740         patch of 2002-04-09 due to binutils issues.
16741         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
16742
16743 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
16744
16745         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
16746         constraint to 'o' for m=r and r=m alternatives.
16747         ("*movv8hi_internal1"): Same.
16748         ("*movv16qi_internal1"): Same.
16749         ("*movv4sf_internal1"): Same.
16750
16751 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
16752
16753         * rtl.h (RTX_FLAG): New macro.
16754         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
16755         * final.c (alter_subreg): Use macro to access rtx flag.
16756         * integrate.c (copy_rtx_and_substitute): Use new access macro.
16757         * print-rtl.c (print_rtx): Use new access macro.
16758
16759         * cse.c (insert): Check rtx code before accessing flag.
16760
16761         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
16762         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
16763         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
16764         convert_const_symbol_ref, make_canonical, make_alternative_compare,
16765         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
16766         simplify_test_exp, optimize_attrs, simplify_by_exploding,
16767         find_and_mark_used_attributes, unmark_used_attributes,
16768         add_values_to_cover, simplify_with_current_value,
16769         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
16770         copy_rtx_unchanging, main): Use new access macros.
16771
16772 2002-04-22  Tom Rix  <trix@redhat.com>
16773
16774         * expmed.c (init_expmed): Generate shifted constant once.
16775
16776 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
16777
16778         * c-lex.c (lex_charconst): Call convert to get constant in
16779         proper type; don't just smash the type field.
16780         Fixes PR c/6300.
16781
16782         * config.gcc: Add list of obsolete configurations.  Disallow
16783         building these without --enable-obsolete.
16784         * doc/install.texi: Document --enable-obsolete and obsoletion
16785         policy.  Mention obsoletion of individual targets in
16786         appropriate places.
16787
16788 2002-04-22  Richard Henderson  <rth@redhat.com>
16789
16790         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
16791
16792 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
16793
16794         PR f/6138.
16795         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
16796         (walk_fixup_memory_subreg): Likewise.
16797         (fixup_var_refs_insn): Adjust accordingly.
16798         (fixup_var_refs_1): Likewise.
16799
16800 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
16801
16802         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
16803         LIBPATH_ARCH64_SPEC): Define.
16804         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
16805         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
16806         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
16807         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
16808
16809 2002-04-22      Joel Sherrill <joel@OARcorp.com>
16810
16811         * gthr-rtems.h: Correct prototypes to remove warnings.
16812
16813 2002-04-22  Richard Henderson  <rth@redhat.com>
16814
16815         PR c/6344
16816         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
16817
16818         * gcse.c (free_insn_expr_list_list): New.
16819         (clear_modify_mem_tables): Use it.  Fix bit set usage.
16820         (canon_list_insert): Use EXPR_LISTs for expressions.
16821         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
16822
16823 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16824
16825         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
16826         file change and include code to _cpp_pop_buffer.
16827         * cpphash.h (struct pending_option): Predeclare.
16828         (struct cpp_reader): New member next_include_file.
16829         (_cpp_pop_file_buffer): Update.
16830         (_cpp_push_next_buffer): Update, rename.
16831         * cppinit.c (cpp_destroy): Free include chain and pending here.
16832         (cpp_finish_options): Simplify.
16833         (_cpp_push_next_buffer): Rename and clean up.
16834         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
16835         Clarify.
16836         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
16837
16838 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
16839
16840         * config/rs6000/altivec.h (vec_xor): Add variant for both args
16841         being vector signed int.
16842         (vec_andc): Same.
16843         (vec_xor): Add variant for both args being vector signed char.
16844         Remove redundant variant.
16845         (vec_andc): Same.
16846
16847 2002-04-21  David S. Miller  <davem@redhat.com>
16848
16849         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
16850         compare mode in output RTL.
16851
16852 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
16853
16854         * config/rs6000/rs6000.c (rs6000_override_options): Correct
16855         style and formatting of previous patch.
16856
16857 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
16858
16859         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
16860         flag_pic for ABI_AIX.
16861
16862 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
16863
16864         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
16865         * cppfiles.c (read_include_file): Similarly.
16866         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
16867         uxstrdup ustrchr, ufputs): Similarly.
16868         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
16869         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
16870         cpp_ideq, parse_identifier, parse_number): Similarly.
16871         * cpplib.c (struct directive, dequote_string, D, run_directive,
16872         cpp_push_buffer): Similarly.
16873         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
16874         _cpp_create_definition, check_trad_stringification,
16875         cpp_macro_definition): Similarly.
16876
16877 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
16878
16879         * cppmacro.c (funlike_invocation_p): Don't step back
16880         over CPP_EOF.
16881
16882 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
16883
16884         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
16885         labelno.
16886
16887 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16888
16889         * doc/invoke.texi: Remove Chill references.
16890         * doc/gcc.texi: Update last modified date.
16891
16892 2002-04-20  Kazu Hirata  <kazu@hxi.com>
16893
16894         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
16895         push and pop.  Replace add.l with add.w.
16896
16897 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16898
16899         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
16900         multiply instructions for H8/300H case.
16901
16902 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16903
16904         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
16905         Bum three instructions from each routine.
16906
16907 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
16908
16909         * Makefile.in: Update.
16910         * decl.c (push_c_function_context, pop_c_function_context,
16911         mark_c_function_context): Rename for consistency.
16912         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
16913         * c-tree.h (push_c_function_context, pop_c_function_context,
16914         mark_c_function_context): Rename for consistency.
16915         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16916         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
16917         * function.c (init_lang_status, save_lang_status,
16918         restore_lang_status, mark_lang_status, free_lang_status):
16919         Move to langhooks.h.
16920         (push_function_context_to, pop_function_context_from,
16921         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
16922         Update.
16923         * function.h (init_lang_status, save_lang_status,
16924         restore_lang_status, mark_lang_status, free_lang_status):
16925         Move to langhooks.h.
16926         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
16927         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
16928         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
16929         LANG_HOOKS_FUNCTION_INITIALIZER): New.
16930         (LANG_HOOKS_INITIALIZER): Update.
16931         (lhd_do_nothing_f): New.
16932         * langhooks.h (struct lang_hooks_for_functions): New.
16933         (struct lang_hooks): New hooks.
16934         * langhooks.c (lhd_do_nothing_f): New.
16935 objc:
16936         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
16937         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
16938
16939 2002-04-19  David S. Miller  <davem@redhat.com>
16940
16941         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
16942         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
16943
16944 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
16945
16946         PR optimization/3756
16947         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
16948         x = ((int) y < 0) ? cst1 : cst2.
16949
16950 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
16951
16952         PR c/6358
16953         * function.c: Reapply patch for c/6358.
16954         (expand_function_end): Copy decl_rtl's mode, not
16955         current_function_return_rtx mode.
16956
16957 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
16958
16959         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
16960         targets.
16961
16962 2002-04-19  Tom Tromey  <tromey@redhat.com>
16963
16964         * doc/install.texi (Specific): Update status of Solaris 2.8.
16965         For PR libgcj/6158.
16966
16967 2002-04-19  Andreas Schwab  <schwab@suse.de>
16968
16969         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
16970         (PUT_REAL): Restore old definition.
16971
16972 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
16973             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16974
16975         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
16976         binutils 2.11.2 and higher generate smaller binaries than Sun's
16977         native tools.
16978
16979 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
16980
16981         PR c++/6352
16982         * toplev.c (rest_of_compilation): Do not defer functions for which
16983         TREE_SYMBOL_REFERENCED has already been set.
16984
16985 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
16986
16987         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
16988         alternative.
16989
16990 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
16991
16992         * builtins.c: Include langhooks.h.
16993         (lang_type_promotes_to): Remove.
16994         (expand_builtin_va_arg): Use new hook.
16995         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
16996         (simple_type_promotes_to): Move to c-typeck.c.
16997         * c-common.h (simple_type_promotes_to): Remove.
16998         * c-decl.c (duplicate_decls, grokdeclarator): Update.
16999         * c-format.c: Include langhooks.h.
17000         (check_format_types): Update.
17001         * c-tree.h (c_type_promotes_to): New.
17002         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
17003         (type_lists_compatible_p): Update.
17004         * langhooks-def.h (lhd_type_promotes_to): New.
17005         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
17006         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17007         * langhooks.c (lhd_type_promotes_to): New.
17008         * langhooks.h (struct lang_hooks_for_types): New hook.
17009         * tree.h (lang_type_promotes_to): Remove.
17010 objc:
17011         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
17012
17013 2002-04-18  Richard Henderson  <rth@redhat.com>
17014
17015         * function.c: Revert patch for c/6358.
17016
17017 2002-04-18  Richard Henderson  <rth@redhat.com>
17018
17019         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
17020         blocks.  Handle multiple references to the TRAP block.  Handle
17021         non-adjacent THEN and OTHER blocks.
17022
17023 2002-04-18  Richard Henderson  <rth@redhat.com>
17024
17025         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
17026         crash with no type for by-mode libcalls.
17027
17028         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
17029
17030 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
17031
17032         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17033         __xtensa_nonlocal_goto): Use a syscall instructions to flush
17034         the register windows.
17035
17036 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
17037
17038         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
17039         appropriate.  Document need for extended precision even when
17040         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
17041         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
17042         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
17043         instead of relying on later syntax error when REAL_WIDTH > 5.
17044         * real.c: Define NE based only on whether or not we have a
17045         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
17046         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
17047         define GET_REAL and PUT_REAL as simple memcpy operations; no
17048         need to byteswap or round.
17049         Use #error instead of #ifdef-ing out the entire file, for
17050         prompt error detection.
17051
17052         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
17053
17054 2002-04-18  David S. Miller  <davem@redhat.com>
17055
17056         * config/sparc/sparc.h (BRANCH_COST): Define.
17057
17058         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
17059         does it.
17060
17061 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
17062
17063         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
17064         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
17065         propagate_block calls after relaxation loop using new variable
17066         stabilized_prop_flags.
17067
17068 2002-04-18  Richard Henderson  <rth@redhat.com>
17069
17070         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
17071         (ia64_va_arg): Expect variable sized types by reference.
17072         * config/ia64/ia64-protos.h: Update.
17073         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
17074         ia64_function_arg_pass_by_reference.
17075
17076 2002-04-18  Richard Henderson  <rth@redhat.com>
17077
17078         * ifcvt.c: Include except.h.
17079         (block_has_only_trap): Break out from find_cond_trap.
17080         (find_cond_trap): Use it.  Always delete the trap block.
17081         (merge_if_block): Allow then block null.  Be less simplistic about
17082         what insns can end a block.
17083         * Makefile.in (ifcvt.o): Depend on except.h.
17084
17085         * config/ia64/ia64.md (trap, conditional_trap): New.
17086
17087 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17088
17089         PR c/6358
17090         * function.c (assign_parms): Assign hard current_function_return_rtx
17091         register here...
17092         (expand_function_end): ...not here.
17093
17094 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
17095
17096         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17097         * c-tree.h (c_incomplete_type_error): New.
17098         * c-typeck.c (require_complete_type, build_component_ref): Update.
17099         (incomplete_type_error): Rename.
17100         * langhooks-def.h (lhd_incomplete_type_error): New.
17101         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
17102         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17103         * langhooks.c (lhd_incomplete_type_error): New.
17104         * langhooks.h (struct lang_hooks_for_types): New hook.
17105         * tree.c (size_in_bytes): Use new hook.
17106         * tree.h (incomplete_type_error): Remove.
17107 objc:
17108         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17109
17110 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
17111
17112         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
17113         TARGET_FLOAT_FORMAT blocks.
17114
17115 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17116
17117         * doc/install.texi (Downloading the source): Do not mention Chill
17118         any longer, but mention Ada.
17119         (Configuration): Do not mention Chill any longer.
17120
17121 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
17122
17123         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
17124
17125 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
17126
17127         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
17128         in last patch.
17129
17130 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17131
17132         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
17133         instead of unsigned_type.
17134
17135 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
17136
17137         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
17138         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
17139         later.
17140
17141 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
17142
17143         * attribs.c (vector_type_node_list): New static variable.
17144         (handle_vector_size_attribute): Use it to avoid generating a
17145         new type node each time we are called.
17146
17147         * combine.c (subst): Avoid trying to make a vector mode subreg of
17148         an integer constant.
17149         (gen_lowpart_for_combine): Likewise.
17150
17151 2002-04-18  Roger Sayle  <roger@eyesopen.com>
17152             Jakub Jelinek  <jakub@redhat.com>
17153
17154         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
17155         for integer constant c (if x has unsigned type or sign bit is not
17156         set in c).  This folds the zero/sign extension into the bit-wise and
17157         operation.
17158
17159 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17160
17161         PR middle-end/6205
17162         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
17163         otherwise xorps.
17164
17165 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
17166
17167         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
17168
17169 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
17170
17171         * gcc.c (read_specs): Detect and fail if an attempt is made to
17172         rename a spec string to an already existing string.
17173
17174 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
17175
17176         * config/s390/s390.c (legitimize_pic_address): Do not generate
17177         illegal address constant without CONST.
17178
17179 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17180
17181         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
17182         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17183
17184 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
17185
17186         PR optimization/6305
17187         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
17188         to make sure previous reloads are taken into account.  Generate
17189         better code if one operand is an in-range immediate constant.
17190
17191 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
17192
17193         * doc/install.texi (Building): libgcj requires GNU make.
17194
17195 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
17196
17197         PR bootstrap/6315
17198         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
17199         even if hard quad and register is not floating.
17200         (movtf reg<-mem split): Disallow splitting if hard quad and
17201         register is floating.
17202         (movtf mem<-reg split): Likewise.
17203         * config/sparc/sparc.c (fp_register_operand): New predicate.
17204         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
17205
17206 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
17207
17208         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
17209         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
17210         (unprotoize.o): Ditto.  Build from protoize.c.  Define
17211         UNPROTOIZE on command line.
17212         * protoize.c: Include cppdefault.h.  Delete include_defaults.
17213         (in_system_include_dir): Use cpp_include_defaults (defined in
17214         cppdefault.o).
17215         * unprotoize.c: Delete file.
17216
17217 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
17218
17219         * config/rs6000/altivec.h (vec_ld): Add array variants.
17220         (vec_lde): Same.
17221         (vec_ldl): Same.
17222
17223 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
17224             Aldy Hernandez <aldyh@redhat.com>
17225
17226         * config/rs6000/altivec.h: Define __ALTIVEC__.
17227         (bool): New.
17228         (__pixel): New.
17229         (pixel): New.
17230         (vec_cfux): New.
17231         (vec_vmaddfp): New.
17232         (vec_vsldoi): New.
17233         Add parentheses to all macro arguments.
17234
17235 2002-04-16  Richard Henderson  <rth@redhat.com>
17236
17237         PR c++/6320
17238         * except.c (remove_eh_handler): Insert inner regions at beginning
17239         of sibling chain.  Refactor expressions.
17240
17241 2002-04-16  Richard Henderson  <rth@redhat.com>
17242
17243         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
17244         * config/sparc/sol2-gas-bi.h: New file.
17245         * config.gcc (sparc*-solaris): Add it as needed.
17246         * configure.in (AS_SPARC64_FLAG): Remove check.
17247         * config.in, configure: Regenerate.
17248
17249         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
17250
17251 2002-04-16  Richard Henderson  <rth@redhat.com>
17252
17253         * config/mips/mips.c (override_options): Don't override N32 for
17254         a 64-bit ISA.
17255
17256         PR 6202
17257         * config/mips/mips.md (can_delay): Split out of existing define_delays.
17258         (HILO_delay): Set can_delay false.
17259
17260 2002-04-16  Dale Johannesen <dalej@apple.com>
17261
17262         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
17263         instruction addresses.
17264         (rs6000_output_function_epilogue): Likewise.
17265
17266 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
17267
17268         * c-parse.in (poplevel, compstmt_start,
17269         compstmt_primary_start): Add ending ';', in accordance
17270         with POSIX.
17271
17272 2002-04-16  Richard Henderson  <rth@redhat.com>
17273
17274         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
17275         Adjust tm_file order to get TARGET_DEFAULT set properly.
17276         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
17277         * doc/install.texi (sparc-solaris): Update.
17278
17279 2002-04-16  Dale Johannesen <dalej@apple.com>
17280
17281         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
17282         comparison operands do not match each other or if modes of
17283         conditions do not match result.
17284
17285 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
17286
17287         PR target/6305
17288         * config/s390/s390.md (mulsidi3): Set both subregs of the
17289         multiword register.
17290
17291 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
17292
17293         * config/rs6000/altivec.h (vec_addc): Type check.
17294
17295 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
17296
17297         PR middle-end/6279
17298         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
17299
17300         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
17301
17302 2002-04-15  Richard Henderson  <rth@redhat.com>
17303
17304         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
17305         call_really_used_regs too.
17306
17307 2002-04-15  Richard Henderson  <rth@redhat.com>
17308
17309         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
17310
17311 2002-04-15  David S. Miller  <davem@redhat.com>
17312
17313         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
17314         as being CLOBBERed.
17315
17316 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
17317
17318         PR c/6290
17319         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
17320         CONST_VECTOR is { 0, ... 0 }.
17321
17322 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
17323
17324         * doc/install.texi (Installing GCC: Configuration): Clarify
17325         the only supported ways to configure gcc.
17326
17327 2002-04-15  Roland McGrath  <roland@frob.com>
17328
17329         * config.gcc (alpha*-*-gnu*): New target configuration.
17330         * config/alpha/gnu.h: New file for it.
17331         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
17332
17333 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
17334
17335         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
17336         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
17337         * tree.h (expand_start_stmt_expr): Update prototype.
17338         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
17339         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
17340         on the STMT_EXPR created for the inline function.
17341
17342 2002-04-15  Richard Henderson  <rth@redhat.com>
17343
17344         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
17345         config/i386/linux-aout.h, config/i386/linux-oldld.h,
17346         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
17347         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
17348         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
17349         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
17350         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
17351         Define __gnu_linux__, not gnu_linux.
17352         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
17353
17354 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
17355
17356         Remove Chill front end.
17357         * gcc.c (default_compilers): Remove Chill entries.
17358         * ch: Remove directory.
17359         * doc/frontends.texi: Remove information about Chill.
17360         * doc/sourcebuild.texi: Likewise.
17361         * doc/standards.texi: Likewise.
17362
17363 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
17364
17365         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
17366         (LONGLONG_STANDALONE): Define.
17367
17368 2002-04-15  David S. Miller  <davem@redhat.com>
17369
17370         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
17371         Call emit_library_call with LCT_NORMAL.
17372         (sparc_initialize_trampoline): Use LCT_foo instead of
17373         magic constant in emit_library_call invocations.
17374         (sparc64_initialize_trampoline): Likewise.
17375         (sparc_profile_hook): Likewise.
17376         * config/sparc/sparc.md: Likewise.
17377
17378         * config/sparc/sparc.c (sparc_extra_constraint_check):
17379         Fix type of argument 'c'.
17380         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
17381         Likewise.
17382
17383 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17384
17385         * diagnostic.h (output_buffer_state): Redefine.
17386         (output_format_decoder): New macro.
17387         (output_prefixing_rule): Likewise.
17388         (output_line_cutoff): Likewise.
17389         (diagnostic_format_decoder): Adjust.
17390         (diagnostic_prefixing_rule): Likewise.
17391         (diagnostic_line_cutoff): Likewise.
17392         (diagnostic_state): Likewise.
17393         (diagnostic_kind_count): Likewise.
17394         (diagnostic_buffer): Now a macro.
17395
17396         * diagnostic.c (diagnostic_buffer): Remove definition.
17397         (output_is_line_wrapping): Adjust.
17398         (set_real_maximum_length): Likewise.
17399         (output_set_maximum_length): Likewise.
17400         (init_output_buffer): Likewise.
17401         (lhd_print_error_function): Likewise.
17402         (output_do_verbatim): Likewise.
17403
17404 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
17405
17406         * cpperror.c (print_location): Don't print include chain
17407         if line == 0.
17408         (cpp_begin_message): Update to use DL_ macros.
17409         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
17410         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
17411         cpp_notice, cpp_notice_from_errno): Remove.
17412         (cpp_error, cpp_error_with_line): Update to take a diagnostic
17413         level.
17414         (cpp_errno): New.
17415         * cppexp.c (CPP_ICE): Remove.
17416         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
17417         lex, integer_overflow, _cpp_parse_expr): Update.
17418         * cppfiles.c (read_include_file, find_include_file,
17419         handle_missing_header, _cpp_read_file, remap_filename): Update.
17420         * cpphash.h (enum error_type): Remove.
17421         (_cpp_begin_message): Update.
17422         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
17423         cpp_handle_option, cpp_post_options): Update.
17424         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
17425         skip_whitespace, parse_identifier, parse_slow, parse_string,
17426         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
17427         cpp_interpret_charconst): Update.
17428         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
17429         lex_macro_node, do_undef, glue_header_name, parse_include,
17430         do_include_common, read_flag, do_line, do_linemarker, do_ident,
17431         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
17432         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
17433         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
17434         _cpp_pop_buffer, do_diagnostic): Update.
17435         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
17436         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
17437         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
17438         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
17439         cpp_notice, cpp_notice_from_errno): Remove.
17440         (cpp_error, cpp_error_with_line): Update to take a diagnostic
17441         level.
17442         (cpp_errno): New.
17443         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
17444         collect_args, enter_macro_context, save_parameter, parse_params,
17445         _cpp_create_definition, check_trad_stringification,
17446         cpp_macro_definition): Update.
17447         * cppmain.c (cpp_preprocess_file): Update.
17448         * fix-header.c (read_scan_file): Update.
17449
17450 2002-04-14  Andreas Schwab  <schwab@suse.de>
17451
17452         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
17453
17454 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
17455
17456         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
17457
17458 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
17459
17460         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
17461         not gnu_hurd.
17462
17463 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
17464
17465         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
17466
17467 2002-04-13      Joel Sherrill <joel@OARcorp.com>
17468
17469         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
17470         sparc-elf and sparc-rtems targets.
17471
17472 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
17473
17474         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
17475         defined, and __gnu_hurd__ wherever __GNU__ is defined.
17476         * arm/linux-elf.h: Likewise.
17477         * cris/aout.h: Likewise.
17478         * cris/linux.h: Likewise.
17479         * i370/linux.h: Likewise.
17480         * i386/gnu.h: Likewise.
17481         * i386/linux-aout.h: Likewise.
17482         * i386/linux-oldld.h: Likewise.
17483         * i386/linux.h: Likewise.
17484         * i386/linux64.h: Likewise.
17485         * ia64/linux.h: Likewise.
17486         * m68k/linux-aout.h: Likewise.
17487         * m68k/linux.h: Likewise.
17488         * mips/linux.h: Likewise.
17489         * pa/pa-linux.h: Likewise.
17490         * pj/linux.h: Likewise.
17491         * rs6000/sysv4.h: Likewise.
17492         * s390/linux.h: Likewise.
17493         * sh/linux.h: Likewise.
17494         * sparc/linux-aout.h: Likewise.
17495         * sparc/linux.h: Likewise.
17496         * sparc/linux64.h: Likewise.
17497         * xtensa/linux.h: Likewise.
17498
17499 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
17500
17501         * stmt.c (check_unique_operand_names): Expect operand names to
17502         be strings rather than identifiers.  Use simple_cst_equal to
17503         compare them.
17504         (resolve_operand_name_1): Make same identifier to string change here.
17505         * c-parse.in (asm_operand): Convert a named operand into a string.
17506         * cp/parse.y (asm_operand): Likewise.
17507
17508 2002-04-13  Andreas Schwab  <schwab@suse.de>
17509
17510         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
17511
17512 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
17513
17514         Revert these changes:
17515
17516         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
17517
17518         PR c++/5571
17519         * stor-layout.c (layout_decl): Reset the RTL for the decl.
17520
17521 2002-04-12  Richard Henderson  <rth@redhat.com>
17522
17523         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
17524         (sparc*-*-solaris): Clean up header files.
17525         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
17526         and plan on generating 64-bit code.
17527         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
17528         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
17529         * config/sparc/sol2-sld-64.h: Rename ...
17530         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
17531         for AS_SPARC64_FLAG not defined.
17532         * config/sparc/sol2-gld-bi.h: New.
17533         * config/sparc/sol2-sld.h: Remove.
17534         * config/sparc/sol26-sld.h: New.
17535         * config/sparc/sol2.h: Tidy comments.
17536         * doc/install.texi: Document sparc-solaris configury changes.
17537
17538 2002-04-12  Richard Henderson  <rth@redhat.com>
17539
17540         * recog.c (offsettable_address_p): Match the logic in adjust_address.
17541
17542         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
17543         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
17544
17545 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17546
17547         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
17548
17549 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
17550
17551         * pa.c (pa_can_combine_p): Call extract_insn before calling
17552         constrain_operands.
17553
17554 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
17555
17556         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
17557         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
17558         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
17559         (CPP_PREDEFINES): Handle __declspec.
17560         * config/i386/t-interix (USER_H): Remove.
17561
17562 2002-04-12  DJ Delorie  <dj@redhat.com>
17563
17564         * integrate.c (compare_blocks): Make comparisons safe for when
17565         sizeof(int) < sizeof(char *).
17566         (find_block): Likewise.
17567
17568 2002-04-12  Jan Hubicka  <jh@suse.cz>
17569             David Edelsohn  <edelsohn@gnu.org>
17570
17571         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
17572         registers.
17573         (symbol_ref_operand): New.
17574         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
17575         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
17576
17577 2002-04-12  Andreas Schwab  <schwab@suse.de>
17578
17579         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
17580         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
17581         overrides the definition in config/svr4.h.
17582
17583 2002-04-12      Eric Norum <eric.norum@usask.ca>
17584
17585         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
17586         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
17587         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
17588         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
17589         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
17590         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
17591         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
17592         definitions to config/rtems.h and make the targets more similar.
17593
17594 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17595
17596         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
17597         POINTERS_EXTEND_UNSIGNED.
17598         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
17599         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
17600
17601         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
17602         not specified.
17603
17604 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
17605
17606         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
17607         depends on TARGET_SHMEDIA, not TARGET_SH5.
17608
17609 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
17610
17611         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
17612         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
17613
17614 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
17615
17616         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
17617         no r0 clobber.
17618
17619 2002-04-12  Andreas Schwab  <schwab@suse.de>
17620
17621         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
17622
17623 2002-04-12  Richard Henderson  <rth@redhat.com>
17624
17625         PR bootstrap/4191
17626         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
17627
17628         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
17629         modes spanning multiple hard regs.
17630
17631         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
17632
17633 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17634
17635         * pa.c (pa_output_function_prologue): Don't accumulate the total
17636         number of code bytes when using TARGET_64BIT, or gas, SOM and not
17637         the portable runtime.
17638         (output_deferred_plabels): Handle 64bit plabels.
17639         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
17640         generating pic code using the GAS assembler for object formats that
17641         are not SOM (ie., ELF32 and ELF64).
17642         (output_millicode_call): Check attribute type if attribute length is 28.
17643         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
17644         dbr_sequence_length once.
17645         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
17646         dbr_sequence_length once.
17647         * pa.h (TARGET_SOM): Define if not defined.
17648         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
17649         with GAS and not SOM.
17650         (jump, call_internal_reg, call_value_internal_reg): Likewise.
17651         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
17652
17653 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17654
17655         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
17656         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
17657         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
17658         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
17659         elfos.h and dbxelf.h values are fine now.
17660         * config/i386/freebsd.h, config/alpha/freebsd.h
17661         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
17662
17663 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17664
17665         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
17666         or set Acpu or Amachine.  Reformat.
17667         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17668         define.
17669         (LINK_SPEC): Do not need to undef.
17670         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
17671         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
17672         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17673         define.
17674         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
17675         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
17676         (LINK_SPEC): Do not need to undef.
17677         (DONT_USE_BUILTIN_SETJMP): Do not define.
17678         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
17679         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
17680         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
17681         Remove trailing spaces.
17682         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
17683         __ELF__, or set Acpu or Amachine.  Reformat.
17684         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17685         define.
17686
17687 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17688
17689         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
17690         all other *-*-freebsd* targets.
17691
17692 2002-04-11  Richard Henderson  <rth@redhat.com>
17693
17694         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
17695
17696 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17697
17698         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
17699         Include {cpu}/{cpu}.h thru tm_file.
17700         (alpha*-*-linux*ecoff): Remove target.
17701         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
17702         (LINK_SPEC): Remove, is not OS independent.
17703         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
17704         (LINK_SPEC): Do not need to #undef any longer.
17705         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
17706         any longer.
17707         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
17708         __ELF__.
17709         (LINK_SPEC): Moved here from alpha/elf.h.
17710         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
17711         SUB_CPP_PREDEFINES.
17712         * config/alpha/linux-ecoff.h: Remove.
17713         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
17714         (CPP_SPEC): Define _POSIX_SOURCE as needed.
17715         (CPP_SUBTARGET_SPEC): Do not define.
17716         (LINK_SPEC): Do not need to #undef any longer.
17717         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
17718         * config/alpha/vms.h: Likewise.
17719
17720 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
17721
17722         * doc/extend.texi: Remove old claim that typedefs cannot have
17723         an alignment attribute.
17724
17725 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
17726
17727         PR optimization/6177
17728         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
17729         bitpos is 0 and bitsize CONCAT size.
17730
17731 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
17732
17733         PR c/6223
17734         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
17735
17736 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
17737
17738         * config/alpha/freebsd.h: Minor reformatting.
17739         (CPP_SPEC): Define ELF and add cpp_subtarget.
17740         (ASM_SPEC): No longer needed.
17741
17742 2002-04-11  Richard Henderson  <rth@redhat.com>
17743
17744         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
17745         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
17746         (dimode mem/zero splitter): New.
17747
17748 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
17749
17750         * config/cris/cris.c (cris_override_options): Tweak error message
17751         for PIC not implemented.
17752
17753         * config/cris/cris.h: Tweak comments related to parameter-passing.
17754
17755         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
17756
17757 2002-04-10  Richard Henderson  <rth@redhat.com>
17758
17759         * except.c (add_ehl_entry): Allow duplicates after landing pad
17760         creation.
17761
17762 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
17763
17764         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
17765
17766 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
17767
17768         * c-decl.c (c_init_decl_processing): Move generation of
17769         decls for g77_integer_type_node and friends from here ...
17770         * c-common.c (c_common_nodes_and_builtins): ... to here.
17771
17772 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
17773
17774         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
17775         is only used as frame pointer when frame_pointer_needed is true.
17776
17777 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
17778
17779         PR target/817
17780         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
17781         for the fact that the pool entry uses two words.
17782         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
17783         1k bytes.
17784         (movdf_soft_insn): Similarly.
17785         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
17786         for the fact that the pool entry uses three words.
17787
17788 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
17789
17790         * config/mips/mips.c (mips_va_arg): When using the struct version
17791         of the EABI va_list, allow arguments in the register save area to
17792         take up less room than a stack argument.
17793
17794 2002-04-10  Richard Henderson  <rth@redhat.com>
17795
17796         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
17797         if EXPAND_INITIALIZER.
17798
17799 2002-04-09  Richard Henderson  <rth@redhat.com>
17800
17801         * config/alpha/alpha.md (movdi_er_maybe_g): New.
17802         * config/alpha/alpha.c (alpha_expand_mov): Use it.
17803
17804 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
17805
17806         PR optimization/6233
17807         * rtlanal.c (pure_call_p): New function.
17808         * rtl.h (pure_call_p): Declare.
17809         * loop.c (prescan_loop): Use it to set has_nonconst_call.
17810         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
17811
17812 2002-04-09  Eric Christopher  <echristo@redhat.com>
17813
17814         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
17815         information to .comm directive.
17816
17817 2002-04-09  Richard Henderson  <rth@redhat.com>
17818
17819         PR c/5078
17820         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
17821
17822 2002-04-09  Richard Henderson  <rth@redhat.com>
17823
17824         * basic-block.h (flow_delete_block_noexpunge): Declare.
17825         (expunge_block_nocompact): Declare.
17826         * cfg.c (expunge_block_nocompact): Split out from ...
17827         (expunge_block): ... here.
17828         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
17829         (flow_delete_block_noexpunge): Split out from ...
17830         (flow_delete_block): ... here.
17831         * cfgcleanup.c (delete_unreachable_blocks): Compact while
17832         removing dead blocks.
17833         * except.c (exception_handler_labels): Remove.
17834         (exception_handler_label_map): New.
17835         (struct eh_region): Add aka member.
17836         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
17837         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
17838         (for_each_eh_label, for_each_eh_label_1): New.
17839         (init_eh): Register exception_handler_label_map.
17840         (free_eh_status): Use free_region.
17841         (find_exception_handler_labels): Use the map, not the list.
17842         (remove_exception_handler_label): Likewise.
17843         (maybe_remove_eh_handler): Likewise.
17844         (remove_eh_handler): Use the region aka bitmap.
17845         * except.h (exception_handler_labels): Remove.
17846         (for_each_eh_label): Declare.
17847         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
17848         * loop.c (invalidate_loops_containing_label): New.
17849         (find_and_verify_loops): Use it.  Use for_each_eh_label.
17850         * sched-rgn.c (is_cfg_nonregular): Use
17851         current_function_has_exception_handlers.
17852
17853 2002-04-09  Richard Henderson  <rth@redhat.com>
17854
17855         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
17856         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
17857         Do not return changed status.
17858         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
17859         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
17860         New functions that do return changed status.
17861         * sbitmap.h: Update decls.
17862         * gcse.c, lcm.c: Use _cg functions as needed.
17863
17864 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
17865
17866         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
17867         (sh64-*-elf*, sh-*-rtemself*): Likewise.
17868         * config/sh/embed_bb.c: New file.
17869         * config/sh/embed-elf.h: New file.
17870         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
17871         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
17872         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
17873         __PTRDIFF_TYPE__ .
17874         (SUBTARGET_CPP_PTR_SPEC): Don't define.
17875         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
17876         Add subtarget_asm_endian_spec.
17877         (ASM_SPEC): Use subtarget_asm_endian_spec.
17878         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
17879         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
17880         (WCHAR_UNSIGNED): Define.
17881         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
17882         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
17883         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
17884         Fix value.
17885         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
17886         (sh_adjust_cost): Likewise.
17887         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
17888         __PTRDIFF_TYPE__ .
17889         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
17890         (WCHAR_TYPE_SIZE): Likewise.
17891         (ASM_SPEC): Use subtarget_asm_endian_spec.
17892         (SH_ELF_WCHAR_TYPE): #undef/ #define.
17893         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
17894         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
17895         (MAX_WCHAR_TYPE_SIZE): Don't #define .
17896         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
17897         (USER_LABEL_PREFIX): Don't #undef /#define .
17898         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
17899         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
17900         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
17901         (ASM_SPEC): Likewise.
17902         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
17903         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
17904         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
17905         (LIB2FUNCS_EXTRA): Define.
17906         * t-sh64 (LIB2FUNCS_EXTRA): Define.
17907         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
17908         (LIB1ASMFUNCS_CACHE): Define.
17909         (LIB2FUNCS_EXTRA): Redefine empty.
17910
17911 2002-04-08  Richard Henderson  <rth@redhat.com>
17912
17913         * reorg.c (get_branch_condition): Use reversed_comparison_code.
17914
17915 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17916
17917         * config/m68hc11/larith.asm (__map_data_section): Fix condition
17918         and optimize for size.
17919         (__do_global_ctors): Fix pointer comparison.
17920         (__do_global_dtors): Likewise.
17921
17922 2002-04-09  David S. Miller  <davem@redhat.com>
17923
17924         * config/sparc/sparc.c (sparc_extra_constraint_check): New
17925         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
17926         allow reloading pseudos.
17927         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
17928         * config/sparc/sparc-protos.h: Declare it.
17929
17930         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
17931         unsigned comparison warning.
17932         (output_restore_regs): Mark leaf_function as unused.
17933
17934 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17935
17936         * expr.c (is_aligning_offset): New function.
17937         (expand_expr, case COMPONENT_EXPR): Call it.
17938
17939 2002-04-08  David S. Miller  <davem@redhat.com>
17940
17941         PR target/6082
17942         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
17943
17944         Make init_priority work on Sparc when using GNU ld.
17945         * config/sparc/linux.h, config/sparc/linux64.h,
17946         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
17947         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
17948         * config/sparc/sol2-gld.h: New file to do the same.
17949         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
17950         sparc/sol2-gld.h to tm_file.
17951
17952         PR optimization/4328
17953         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
17954         * doc/md.texi: Document it.
17955         * config/sparc/sparc.md (movdi_insn_sp64_novis,
17956         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
17957         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
17958         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
17959         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
17960
17961 2002-04-08  Andreas Jaeger  <aj@suse.de>
17962
17963         * stmt.c (expand_asm_operands): Revert last patch from Richard
17964         Henderson.
17965
17966 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17967
17968         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
17969         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
17970
17971 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17972
17973         * doc/contrib.texi (Contributors): Add David O'Brien.
17974
17975 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
17976
17977         * configure.in (auto-build.h): Use target_alias and build_alias
17978         when running configure.
17979         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
17980         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
17981         * configure: Regenerate.
17982
17983 2002-04-07  David S. Miller  <davem@redhat.com>
17984
17985         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
17986
17987 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17988
17989         PR 5933
17990         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
17991         generating 32-bit pic code.
17992
17993 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
17994
17995         * cppinit.c (cpp_create_reader): Initialize
17996         discard_comments_in_macro_exp.
17997         (COMMAND_LINE_OPTIONS): Add "-CC" option.
17998         (cpp_handle_option): Handle "-CC" option.
17999         * cpplex.c (save_comment): If saving a C++ comment in
18000         a directive, convert it to a C comment.
18001         (_cpp_lex_direct): Pass second comment start character to
18002         save_comment to indicate comment type.
18003         * cpplib.c (_cpp_handle_directive): If processing
18004         a "#define" directive and discard_comments_in_macro_exp
18005         is false,  re-enable saving of comments.
18006         (lex_macro_node): If discard_comments_in_macro_exp is false,
18007         discard any comments before the macro identifier.
18008         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
18009         member.
18010         * cppmacro.c (cpp_get_token): If expanding a macro while
18011         processing a directive, discard any comments we might encounter.
18012         (parse_params): If discard_comments_in_macro_exp is false,
18013         ignore comments in the macro parameter list.
18014         * gcc.c (cpp_unique_options): Add "-CC" option.
18015         (option_map): Map "--comments-in-macros" to "-CC".
18016         * doc/cppopts.texi: Document "-CC" option.
18017         * f/lang-specs.h: Add "-CC" option.
18018         * testsuite/gcc.dg/cpp/maccom1.c: New test.
18019         * testsuite/gcc.dg/cpp/maccom2.c: New test.
18020         * testsuite/gcc.dg/cpp/maccom3.c: New test.
18021         * testsuite/gcc.dg/cpp/maccom4.c: New test.
18022         * testsuite/gcc.dg/cpp/maccom5.c: New test.
18023         * testsuite/gcc.dg/cpp/maccom6.c: New test.
18024
18025 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18026
18027         PR middle-end/6180
18028         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
18029
18030 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
18031
18032         PR c++/5571
18033         * stor-layout.c (layout_decl): Reset the RTL for the decl.
18034
18035         PR opt/5120
18036         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
18037         RTX_UNCHANGING_P for the functions arguments when a tail call
18038         is made.
18039
18040 2002-04-06  Jason Merrill  <jason@redhat.com>
18041
18042         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
18043         (parse_options_and_default_flags): Set them appropriately.
18044         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
18045
18046 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
18047
18048         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
18049         here.
18050
18051         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
18052         semicolon.
18053
18054         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
18055         types come in by-reference.  Fix typo in comment.
18056
18057 2002-04-05  David S. Miller  <davem@redhat.com>
18058
18059         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
18060         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
18061         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
18062         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
18063
18064 2002-04-05  David S. Miller  <davem@redhat.com>
18065
18066         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
18067         are not going to emit return instructions, emit at least a nop
18068         for the sake of sane backtraces.
18069
18070 2002-04-05  Richard Henderson  <rth@redhat.com>
18071
18072         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18073
18074 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
18075
18076         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
18077
18078 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
18079
18080         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
18081         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
18082         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
18083
18084 2002-04-05  Andreas Schwab  <schwab@suse.de>
18085
18086         * c-convert.c: Include c-common.h.
18087         * Makefile.in (c-convert.o): Updated.
18088
18089 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18090
18091         * mklibgcc.in: Use separate libgcc.map for each multilib.
18092         * Makefile.in (distclean): Don't remove libgcc.map here.
18093
18094 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18095
18096         * Makefile.in (s-mlib): Handle --disable-multilib by separate
18097         genmultilib invocation.
18098
18099 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
18100
18101         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
18102         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
18103         to num_gprs for symmetry.
18104         * config/mips/mips.c: Adjust accordingly.
18105
18106 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
18107
18108         * c-common.c (truthvalue_conversion): Rename, update.
18109         * c-common.h (c_common_truthvalue_conversion): New.
18110         * c-convert.c (convert): Update.
18111         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18112         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
18113         * c-typeck.c (build_binary_op, build_unary_op,
18114         build_conditional_expr): Update.
18115         * fold-const.c (constant_boolean_node, fold): Use langhook.
18116         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
18117         * langhooks.h (struct lang_hooks): New hook.
18118         * stmt.c (expand_decl_cleanup): Use langhook.
18119         * tree.h (truthvalue_conversion): Remove.
18120 objc:
18121         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18122
18123 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
18124
18125         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
18126         Add rules to make null object file.
18127
18128 2002-04-04  Jim Blandy  <jimb@redhat.com>
18129
18130         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
18131         macro formal parameter names.
18132
18133 2002-04-04  David S. Miller  <davem@redhat.com>
18134
18135         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
18136
18137 2002-04-04  Richard Henderson  <rth@redhat.com>
18138
18139         PR middle-end/5099
18140         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
18141         Support copies into and out of memory.  Don't accept allows_reg
18142         and allows_mem as gospel.
18143
18144 2002-04-04  Richard Henderson  <rth@redhat.com>
18145
18146         PR opt/6165
18147         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
18148         (write_dependence_p): Likewise.
18149
18150 2002-04-04  Richard Henderson  <rth@redhat.com>
18151
18152         * predict.c (estimate_bb_frequencies): Do frequency calculation
18153         with a volatile temporary.
18154
18155 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
18156
18157         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
18158
18159 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18160
18161         PR c++/6119
18162         * final.c (final_start_function): Don't bump profile_label_no here...
18163         (final_end_function): ...but here.
18164
18165 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18166
18167         * config/sparc/sparc.md (pic): New attribute.
18168         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
18169         into stack slots.
18170         (split after do_builtin_setjmp_setup): New.
18171
18172 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18173
18174         PR fortran/6106
18175         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
18176         change.
18177
18178 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18179
18180         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
18181         UNITS_PER_WORD for zero sized aggregates.
18182
18183 2002-04-03  David S. Miller  <davem@redhat.com>
18184
18185         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
18186         one-character spec for this, just use %(link_gcc_c_sequence).
18187
18188 2002-04-03  David S. Miller  <davem@redhat.com>
18189
18190         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
18191         handling.
18192
18193 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18194
18195         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
18196         (DWARF_FRAME_RETURN_COLUMN): Move.
18197         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18198         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
18199         * pa.c (except.h, predict.h): Include.
18200         (FRP): Delete.
18201         (store_reg_modify, set_reg_plus_d): Revise prototypes.
18202         (output_ascii): Add cast.
18203         (store_reg_modify): Revise to add frame notes.
18204         (set_reg_plus_d): Likewise.
18205         (compute_frame_size): Include space for eh data registers in frame if
18206         the current function calls eh_return.
18207         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
18208         function calls eh_return.  Save eh data registers if the current
18209         function calls eh_return.  Fix code to add frame notes.  Emit
18210         blockage to prevent insns with frame notes being scheduled in the
18211         delay slot of calls.
18212         (hppa_expand_epilogue): Restore eh data registers and do final stack
18213         adjustment if the current function calls eh_return.  Don't add frame
18214         notes.
18215         (output_call): Revise for change in length of call insn.  Don't do
18216         return pointer adjustment for an unconditional jump in the delay slot
18217         of a call when using frame notes.
18218         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
18219         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
18220         (ARG_POINTER_CFA_OFFSET): Define.
18221         * pa.md (return_external_pic): New pattern.
18222         (prologue): Correct formatting.  Use return_external_pic if current
18223         function calls eh_return.
18224         (call_internal_symref, call_value_internal_symref,
18225         sibcall_internal_symref, sibcall_value_internal_symref): Change default
18226         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
18227         respectively.
18228         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
18229
18230         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
18231         list of targets to check using "nop" insn.
18232         * configure: Rebuilt.
18233
18234 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
18235
18236         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
18237
18238 2002-04-03  David S. Miller  <davem@redhat.com>
18239
18240         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
18241         library sequence passed to the linker.
18242         (LINK_COMMAND_SPEC): Use it.
18243         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
18244         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
18245         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18246
18247 2002-04-03  Jason Merrill  <jason@redhat.com>
18248
18249         * except.c (struct eh_status): Remove protect_list.
18250         (begin_protect_partials, end_protect_partials): Remove.
18251         (add_partial_entry): Remove.
18252         * except.h: Remove prototypes.
18253
18254         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
18255         expand_decl_cleanup_eh.
18256
18257         PR c++/5636
18258         * tree.h (CLEANUP_EH_ONLY): New macro.
18259         * stmt.c (expand_decl_cleanup_eh): New fn.
18260         (expand_cleanups): Check CLEANUP_EH_ONLY.
18261         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
18262         Use expand_decl_cleanup_eh.
18263         (expand_stmt): Adjust.
18264         * c-common.h: Adjust prototype.
18265
18266 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
18267
18268         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
18269         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
18270         (cris_target_asm_function_epilogue): Ditto.
18271         (cris_initial_frame_pointer_offset): Ditto.
18272         (cris_simple_epilogue): Ditto.
18273         (cris_expand_builtin_va_arg): Variable-size types come in
18274         by-reference.
18275
18276 2002-04-03  David S. Miller  <davem@redhat.com>
18277
18278         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
18279         little-endian.
18280         (set_fast_math): Correct 'fsr' type.
18281
18282 2002-04-03  Richard Henderson  <rth@redhat.com>
18283
18284         PR opt/3569
18285         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
18286         * toplev.c (check_global_declarations): Use it.
18287         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
18288         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18289         (LANG_HOOKS_DECLS): Add it.
18290         * langhooks.c (lhd_warn_unused_global_decl): New.
18291         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18292         * c-objc-common.c (c_warn_unused_global_decl): New.
18293         * c-tree.h (c_warn_unused_global_decl): Declare.
18294         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18295
18296 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18297
18298         * langhooks-def.h (lhd_set_decl_assembler_name,
18299         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
18300         (LANG_HOOKS_INITIALIZER): Update.
18301         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
18302         * langhooks.h (struct lang_hooks): New hook.
18303         * tree.c (set_decl_assembler_name): Move to langhooks.c.
18304         (lang_set_decl_assembler_name): Remove.
18305         (init_obstacks): Don't set hook.
18306         (decl_assembler_name): New function.
18307         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
18308         (decl_assembler_name): New.
18309         (lang_set_decl_assembler_name): Remove.
18310
18311 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
18312
18313         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
18314         works properly with .hidden symbols.
18315         * configure: Rebuilt.
18316         * config.in: Rebuilt.
18317         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
18318         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
18319         properly with .hidden symbols.
18320
18321 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
18322
18323         PR middle-end/6102
18324         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
18325         USE argument.
18326
18327 2002-04-03  Richard Henderson  <rth@redhat.com>
18328
18329         PR opt/4120
18330         * sched-rgn.c (sets_likely_spilled): New.
18331         (sets_likely_spilled_1): New.
18332         (add_branch_dependences): Use it.
18333
18334 2002-04-02  Richard Henderson  <rth@redhat.com>
18335
18336         PR opt/4311
18337         * loop.h (LOOP_FIRST_PASS): New.
18338         * loop.c (strength_reduce): Mind it when deciding to unroll.
18339         * toplev.c (rest_of_compilation): Set it.
18340
18341 2002-04-02  David S. Miller  <davem@redhat.com>
18342
18343         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
18344         mems_ok_for_ldd_peep when the order of the loads being examined
18345         is reversed.
18346         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
18347         existing comment to increase comprehension of this situation.
18348
18349 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
18350
18351         * config/sh/sh.md: Don't use union real_extract.
18352
18353 2002-04-02  Richard Henderson  <rth@redhat.com>
18354
18355         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
18356
18357 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
18358
18359         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
18360         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
18361         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
18362         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
18363         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
18364         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
18365         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
18366         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
18367         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
18368         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
18369         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
18370         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
18371         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
18372         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
18373         Include as many configury headers via tm_file as possible.  This
18374         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
18375         * config/openbsd-oldgas.h: New file.
18376         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
18377         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
18378         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
18379         config/i386/i386-coff.h, config/i386/i386-interix.h,
18380         config/i386/iscdbx.h, config/i386/linux-aout.h,
18381         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
18382         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
18383         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
18384         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
18385         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
18386         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
18387         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
18388         config/i386/vxi386.h: Do not directly include configury headers.
18389         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
18390         Directly include configury headers that are no longer automatically
18391         included by the above headers.
18392         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
18393         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
18394         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
18395         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
18396         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
18397         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
18398         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
18399         (TARGET_VERSION): Define.
18400         * config/i386/beos-elf.h, config/i386/freebsd.h,
18401         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
18402         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
18403         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
18404         config/i386/sco5.h, config/i386/sysv4.h
18405         (TARGET_VERSION): Do not need to protect.
18406         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
18407         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
18408         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
18409         config/i386/i386-interix.h, config/i386/linux-aout.h,
18410         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
18411         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
18412         (YES_UNDERSCORES): Do not define - not needed.
18413         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
18414         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
18415         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
18416         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
18417         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
18418         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
18419         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
18420         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
18421
18422 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
18423             Richard Henderson  <rth@redhat.com>
18424
18425         PR c/5484
18426         * function.c (assign_temp): Accept either type or decl argument.
18427         Detect variables whose size is too large to fit into an integer.
18428         * stmt.c (expand_decl): Pass the decl, not the type.
18429
18430 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
18431
18432         * protoize.c: Match include directory usage with cppdefault.c.
18433
18434 2002-04-03  Jeffrey A Law  (law@redhat.com)
18435             Hans-Peter Nilsson  <hp@bitrange.com>
18436
18437         * combine.c (simplify_comparison): Avoid narrowing a comparison
18438         with a paradoxical subreg when doing so would drop signficant bits.
18439
18440 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
18441
18442         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
18443         if POINTERS_EXTEND_UNSIGNED is defined.
18444
18445 2002-04-02  Richard Henderson  <rth@redhat.com>
18446
18447         PR opt/3967
18448         * local-alloc.c (contains_replace_regs): LO_SUM may contain
18449         replace regs.
18450
18451 2002-04-02  Richard Henderson  <rth@redhat.com>
18452
18453         * doc/standards.texi: Document required freestanding libc entry points.
18454
18455 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
18456
18457         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
18458         associated splitter.  Remove MQ constraint.
18459         (ctrdi_internal4): Correct CCmode clobber.
18460
18461 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18462
18463         * milli64.S ($$dyncall): New function.
18464         * t-linux (LIB1ASMFUNCS): Revise module list.
18465         (LIB1ASMSRC): Use pa/milli64.S.
18466
18467 2002-04-02  Richard Henderson  <rth@redhat.com>
18468
18469         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
18470         rename solaris_sys_varargs_h.
18471
18472 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18473
18474         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
18475         the same mode as its component.
18476
18477 2002-04-02  Richard Henderson  <rth@redhat.com>
18478
18479         PR opt/190
18480         * final.c (this_is_asm_operands): Export.
18481         * output.h (this_is_asm_operands): Declare.
18482         * config/i386/i386.c (print_operand): Error odd asm operands.
18483
18484 2002-04-02  Richard Henderson  <rth@redhat.com>
18485
18486         PR opt/420
18487         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
18488
18489 2002-04-01  Richard Henderson  <rth@redhat.com>
18490
18491         PR target/1538
18492         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
18493         * fixinc/fixincl.x: Rebuild.
18494
18495 2002-04-01  Richard Henderson  <rth@redhat.com>
18496
18497         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
18498         (atomic_alloc, atomic_free): New.
18499         (SIZE, MASK_FOR, PTR_IN): New.
18500         (emergency_reg_state, emergency_reg_state_free): New.
18501         (emergency_labeled_state, emergency_labeled_state_free): New.
18502         (reg_state_alloced, labeled_state_alloced): New.
18503         (alloc_reg_state, free_reg_state): New.
18504         (alloc_label_state, free_label_state, free_label_states): New.
18505         (push, pop, dup_state_stack, free_state_stack): Use them.
18506         (desc_label_state): Likewise.
18507         (uw_frame_state_for): Free label states and state stack.
18508         (uw_update_reg_address): Eliminate warnings.
18509
18510 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
18511
18512         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
18513         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
18514
18515 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18516
18517         * c-decl.c (grokdeclarator): Update.
18518         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
18519         * c-tree.h (c_mark_addressable): New.
18520         * c-typeck.c (default_function_array_conversion, build_unary_op,
18521         build_array_ref, convert_for_assignment): Update.
18522         (mark_addressable): Rename.
18523         * calls.c (try_to_integrate, expand_call): Use langhook.
18524         * expr.c (expand_expr): Use langhook.
18525         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
18526         * langhooks.h (struct lang_hooks): New hook.
18527         * stmt.c (expand_asm_operands): Use langhook.
18528         * tree.h (mark_addressable): Remove.
18529 objc:
18530         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
18531
18532 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
18533
18534         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
18535         in previous change.
18536
18537 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
18538
18539         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
18540         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
18541
18542 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18543
18544         * c-common.c (unsigned_conversion_warning, convert_and_check,
18545         unsigned_type, signed_type, shorten_compare,
18546         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
18547         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
18548         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
18549         New.
18550         * c-decl.c (grokdeclarator): Update.
18551         * c-format.c (check_format_types): Update.
18552         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
18553         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
18554         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
18555         * convert.c (convert_to_integer): Use new hooks.
18556         * expmed.c (make_tree): Use new hooks.
18557         * expr.c (store_expr): Use new hooks.
18558         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
18559         all_ones_mask_p, unextend, fold): Use new hooks.
18560         * langhooks.h (struct lang_hooks_for_types): New hooks.
18561         * tree.h (signed_or_unsigned_type, signed_type,
18562         unsigned_type): Remove.
18563 objc:
18564         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
18565         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
18566
18567 2002-03-31  Richard Henderson  <rth@redhat.com>
18568
18569         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
18570         (desc_frgr_mem): Fix reference to f16-f31.
18571
18572 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18573
18574         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
18575         RTVEC_ELT): Const-ify.
18576         * varray.h (VARRAY_CHECK): Const-ify.
18577         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
18578         ggc_mark_rtvec, ggc_mark): Const-ify.
18579
18580 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18581
18582         * diagnostic.c: Include langhooks-def.h.
18583         * Makefile.in (diagnostic.o): Update.
18584
18585 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
18586
18587         * c-common.c (c_unsafe_for_reeval): Rename.
18588         * c-common.h (c_unsafe_for_reeval): Rename.
18589         * c-decl.c (finish_incomplete_decl): Rename.
18590         (c_init_decl_processing): Don't set langhook.
18591         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
18592         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
18593         * c-objc-common.c (c_objc_common_init): Don't set langhook.
18594         * c-tree.h (finish_incomplete_decl): Rename.
18595         * langhooks-def.h (lhd_unsafe_for_reeval): New.
18596         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
18597         (LANG_HOOKS_INITIALIZER): Update.
18598         * langhooks.c (lhd_unsafe_For_reeval): New.
18599         * langhooks.h (struct langhooks): New hooks.
18600         * toplev.c (incomplete_decl_finalize_hook): Remove.
18601         (wrapup_global_declarations): Update.
18602         * tree.c (lang_unsafe_for_reeval): Remove.
18603         (unsafe_for_reeval): Update.
18604         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
18605         Remove.
18606 objc:
18607         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
18608         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
18609
18610 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
18611
18612         * diagnostic.c (print_error_function): Remove.
18613         (default_print_error_function): Rename.
18614         (report_error_function): Update.
18615         * diagnostic.h (print_error_function): Remove.
18616         (default_print_error_function): Remove.
18617         * langhooks-def.h (struct diagnostic_context): Predeclare.
18618         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
18619         (LANG_HOOKS_INITIALIZER): Update.
18620         * langhooks.h (struct diagnostic context): Predeclare.
18621         (struct lang_hooks): New hook.
18622
18623 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18624
18625         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
18626         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
18627         !flag_pic.
18628         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
18629         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
18630         of PIC_OFFSET_TABLE_REGNUM thruout.
18631         * config/rs6000/rs6000.md: Likewise.
18632         * config/rs6000/darwin.h: Likewise.
18633
18634 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18635
18636         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
18637         unsigned HOST_WIDE_INT, not unsigned int.
18638
18639 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18640
18641         PR middle-end/6096, middle-end/6098, middle-end/6099
18642         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
18643         CODE_LABELs.
18644         (fill_slots_from_thread): Likewise.
18645
18646 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18647
18648         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
18649         floating fields in float regs.
18650         (function_arg_record_value_2): Likewise.
18651
18652 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
18653
18654         * config/mmix/mmix.md (define_constants): Remove misleading
18655         FIXME.  Add MMIX_fp_rO_OFFSET.
18656         ("nonlocal_goto_receiver"): Don't have stack-frame address of
18657         saved rO as part of the pattern.  Remove FIXME.
18658         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
18659         here, at output-time.
18660
18661 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18662
18663         PR middle-end/6100
18664         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
18665         REG_BR_PRED.
18666         (output_v9branch): Likewise.
18667
18668 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
18669
18670         * gcc.c: Revert previous patch for now.
18671         * config/i386/djgpp.h: Likewise.
18672
18673 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
18674
18675         * config/mmix/crti.asm (_init): Register _fini with atexit.
18676         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
18677
18678 2002-03-31  Richard Henderson  <rth@redhat.com>
18679
18680         PR target/3997
18681         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
18682         (ASM_OUTPUT_DEF_FROM_DECLS): New.
18683
18684 2002-03-31  Richard Henderson  <rth@redhat.com>
18685
18686         * libgcc2.c (__bb_exit_func): Make static.
18687
18688         * config/alpha/alpha.md (trap): New.
18689
18690 2002-03-31  Richard Henderson  <rth@redhat.com>
18691
18692         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
18693         promoted argument types; build trap.
18694         (expand_builtin_trap): New.
18695         (expand_builtin): Use it.
18696         * stmt.c (expand_nl_goto_receivers): Likewise.
18697         * expr.h (expand_builtin_trap): Declare.
18698         * libfuncs.h (LTI_abort, abort_libfunc): New.
18699         * optabs.c (init_optabs): Init abort_libfunc.
18700
18701 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
18702
18703         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
18704         (LINK_COMMAND_SPEC): ... from here.
18705         (init_gcc_specs): Duplicate it here too, omitting
18706         shared_name in the second copy.
18707         (init_spec): Test for duplicate
18708         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
18709
18710 2002-03-30  David S. Miller  <davem@redhat.com>
18711
18712         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
18713         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
18714
18715 2002-03-30  Roger Sayle <roger@eyesopen.com>
18716             Richard Henderson  <rth@redhat.com>
18717
18718         * regmove.c (combine_stack_adjustments_for_block): Avoid
18719         emitting a stack adjustment of zero bytes.  Let delete_insn
18720         update bb->head.
18721
18722 2002-03-30  Richard Henderson  <rth@redhat.com>
18723
18724         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
18725         (sparc_emitting_epilogue): New.
18726         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
18727         * config/sparc/sparc-protos.h: Update.
18728         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
18729         (TARGET_SWITCHES): Update.
18730         * config/sparc/sparc.md (return): Remove.
18731         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
18732         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
18733         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
18734         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
18735         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
18736         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
18737         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
18738         Remove MASK_EPILOGUE.
18739         * doc/invoke.texi: Update.
18740
18741 2002-03-30  Daniel Berlin  <dan@dberlin.org>
18742
18743         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
18744         CPP will start the file for us.
18745
18746 2002-03-30  Richard Henderson  <rth@redhat.com>
18747
18748         PR target/5446
18749         * config/ia64/ia64.c (group_barrier_needed_p): Special case
18750         prologue_allocate_stack.
18751         (ia64_single_set): Use insn codes for recognition of special
18752         cases, not rtl matching.
18753         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
18754
18755 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
18756
18757         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
18758
18759 2002-03-30  Richard Henderson  <rth@redhat.com>
18760
18761         PR target/6032
18762         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
18763         or -fomit-frame-pointer with profiling.
18764         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
18765         (FUNCTION_PROFILER): Do nothing.
18766         (PROFILE_HOOK): New.
18767         * config/sparc/sparc.c (sparc_override_options): Don't check
18768         code models for profiling.
18769         (sparc_function_profiler): Remove.
18770         (sparc_profile_hook): New.
18771         * config/sparc/sparc-protos.h: Update.
18772
18773 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
18774
18775         PR optimization/6086
18776         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
18777         of SUBREG of volatile MEM or because the MEM was mode dependent,
18778         return CLOBBER instead of unmodified SUBREG.
18779
18780 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
18781
18782         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
18783         when not optimizing.
18784
18785         * toplev.c (rest_of_compilation): Cann mark_constant_function
18786         only when optimizing.
18787
18788         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
18789         are NULL.
18790
18791         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
18792         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
18793         (try_optimize_cfg): clear all AUX fields.
18794
18795         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
18796         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
18797         (ix86_address_cost): Be prepared for SUBREGed registers.
18798         (legitimate_address_p): Accept SUBREGed registers.
18799
18800 2002-03-29  Richard Henderson  <rth@redhat.com>
18801
18802         PR target/5672
18803         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
18804
18805 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18806
18807         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
18808         for aggregate and TFmode types.
18809
18810 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
18811
18812         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
18813
18814 2002-03-29  Richard Henderson  <rth@redhat.com>
18815
18816         PR target/5886
18817         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
18818         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
18819
18820 2002-03-29  Richard Henderson  <rth@redhat.com>
18821
18822         PR target/6041
18823         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
18824         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
18825         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
18826         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
18827         conditional.
18828         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
18829
18830 2002-03-29  Dale Johannesen <dalej@apple.com>
18831
18832         * loop.c (combine_movables): Do allow combination of pseudos.
18833
18834 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
18835
18836         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
18837         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
18838         No functional change except ...
18839         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
18840         * doc/install.texi (*-*-freebsd*): Document port configuration.
18841
18842 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18843
18844         * Makefile.in (convert.o, calls.o, expmed.o): Update.
18845         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
18846         Use new hooks.
18847         * builtin-types.def (BT_PTRMODE): Update.
18848         * c-common.c (type_for_size): Rename c_common_type_for_size.
18849         (type_for_mode): Similarly.
18850         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
18851         Use new hook.
18852         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
18853         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
18854         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
18855         Redefine.
18856         * c-typeck.c (common_type, comptypes, default_conversion):
18857         Use new hooks.
18858         * calls.c: Include langhooks.h.
18859         (emit_library_call_value_1): Use new hooks.  Avoid redundant
18860         calls.
18861         * convert.c: Include langhooks.h
18862         (convert_to_pointer, convert_to_integer): Use new hooks.
18863         * except.c (init_eh): Similarly.
18864         * expmed.c: Include langhooks.h.
18865         (expand_mult_add): Use new hooks.
18866         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
18867         try_casesi): Similarly.
18868         * fold-const.c (optimize_bit_field_compare, make_range,
18869         decode_field_reference, fold_truthop, fold): Similarly.
18870         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
18871         put_var_into_stack): Similarly.
18872         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
18873         LANG_HOOKS_TYPE_FOR_SIZE): New.
18874         (LANG_HOOKS_TYPES_INITIALIZER): Update.
18875         * langhooks.h (lang_hooks_for_types): New hooks.
18876         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
18877         * tree.c (get_unwidened, get_narrower): Similarly.
18878         * tree.h (type_for_mode, type_for_size): Remove.
18879         * varasm.c (force_const_mem): Use new hooks.
18880         * utils2.c (nonbinary_modular_operation): Update.
18881 objc:
18882         * objc-act.c (handle_impent): Update.
18883         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
18884         Redefine.
18885
18886 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
18887
18888         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
18889         * config/ia64/ia64.c (basereg_operand): New.
18890         * config/ia64/ia64-protos.h (basereg_operand): Declare.
18891         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
18892
18893 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
18894
18895         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
18896         unwind information when frame_pointer_needed.
18897         (mmix_assemble_integer): Tweak wording in comment.
18898
18899 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18900
18901         * Makefile.in (except.o): Update.
18902         * except.c: Include langhooks.h.
18903         (init_eh): Use langhook.
18904         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
18905         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
18906         (LANG_HOOKS_INITIALIZER): Update.
18907         * langhooks.h (lang_hooks_for_types): New.
18908         (struct lang_hooks): Add it.
18909         * tree.c (make_lang_type_fn, make_lang_type): Remove.
18910         * tree.h (make_lang_type_fn, make_lang_type): Remove.
18911 config:
18912         * alpha/alpha.c: Include langhooks.h.
18913         (alpha_build_va_list): Use langhook.
18914         * d30v/d30v.c: Include langhooks.h.
18915         (d30v_build_va_list): Use langhook.
18916         * i386/i386.c: Include langhooks.h.
18917         (ix86_build_va_list): Use langhook.
18918         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
18919         * s390/s390.c: Include langhooks.h.
18920         (s390_build_va_list): Use langhook.
18921         * stormy16/stormy16.c: Include langhooks.h.
18922         (stormy16_build_va_list): Use langhook.
18923
18924 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
18925
18926         PR c++/5964
18927         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
18928         attributes.
18929         (length): Compute variable length for branches/calls/jumps here.
18930         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
18931         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
18932         define branch_type attribute.
18933         (divsi3_sp32): Maximum length is 6 not 7.
18934         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
18935         call_address_untyped_struct_value_sp32,
18936         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
18937         * config/sparc/sparc.c (empty_delay_slot): New function.
18938         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
18939         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
18940
18941 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
18942
18943         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
18944         nonzero_bits if not needed.
18945         (nonzero_bits) [XOR]: Likewise.
18946         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
18947         reg_last_set_mode and mode are both MODE_INT, but not equal.
18948         (record_value_for_reg): Compute reg_last_set_nonzero_bits
18949         in nonzero_bits_mode for MODE_INT modes.
18950
18951 2002-03-28  Richard Henderson  <rth@redhat.com>
18952
18953         PR target/5715
18954         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
18955         to GAS.  Correct drift between alternatives.
18956
18957 2002-03-28  Richard Henderson  <rth@redhat.com>
18958
18959         PR target/6087
18960         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
18961
18962 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
18963
18964         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
18965         emulation to the linker.
18966
18967 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
18968
18969         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
18970         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
18971
18972 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
18973
18974         * combine.c (simplify_and_const_int): Make sure to apply mask
18975         when force_to_mode returns a constant integer.  PR3311.
18976
18977 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18978
18979         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
18980
18981 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18982
18983         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
18984         and Objective-C Dialect Options.
18985
18986 2002-03-28  Richard Henderson  <rth@redhat.com>
18987
18988         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
18989         comparison should be done vs !=0 not >0 return code.  Tidy cases.
18990
18991 2002-03-28  Richard Henderson  <rth@redhat.com>
18992
18993         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
18994         on to c_expand_body.
18995         * c-tree.h (finish_function): Update decl.
18996         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
18997
18998 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
18999
19000         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
19001
19002 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
19003
19004         * rtlanal.c: Include flags.h
19005         (may_trap_p): Do not mark FP operations if trapping
19006         if !flag_trapping_math
19007         * Makefile.in (rtlanal.o): Add dependency on flag.h
19008         * ifcvt.c (noce_operand_ok): Avoid the lameness.
19009
19010 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
19011
19012         * mips.md: Use dconst1, not 1.0, as first argument of
19013         REAL_VALUE_LDEXP.  Don't use union real_extract.
19014
19015 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
19016
19017         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
19018         rather than $target.  Heed program_prefix and
19019         program_transform_name.  Search for gas in cross-compiler case too.
19020         "test -x" rather than "test -f".
19021         (gcc_cv_ld): Likewise.
19022         (gcc_cv_nm): Heed program_prefix and program_transform_name.
19023         (gcc_cv_objdump): Likewise.
19024         * configure: Regenerate.
19025
19026 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19027
19028         * Makefile.in (attribs.o): Update.
19029         * attribs.c: Include langhooks.h.
19030         (decl_attributes): Use langhook.
19031         * c-decl.c (insert_default_attributes): Rename.
19032         * c-tree.h (c_insert_default_attributes): New.
19033         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
19034         (LANG_HOOKS_INITIALIZER): Update.
19035         * langhooks.h (struct lang_hooks): New hook.
19036         * tree.h (insert_default_attributes): Remove.
19037 objc:
19038         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
19039
19040 2002-03-27  Andreas Schwab  <schwab@suse.de>
19041
19042         * config/i386/i386.c (classify_argument): Also check for
19043         QUAL_UNION_TYPE.
19044
19045 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19046
19047         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
19048         any more.
19049
19050 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
19051
19052         * i960.md (ret): Set PC.
19053         (nonlocal_goto): Fix expander.
19054         * builtins.c (epxand_builin_longjmp): Check that we've emitted
19055         some jump or call.
19056
19057 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
19058
19059         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
19060         of libcall regions.
19061
19062 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19063
19064         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
19065         assigning to BLOCK_FOR_INSN directly.
19066
19067 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19068
19069         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
19070
19071 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19072
19073         * c-common.c (c_expand_expr): Fix prototype.
19074         * c-common.h (c_expand_expr): Always declare, update.
19075         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19076         * c-objc-common.c (c_objc_common_init): No global hook.
19077         * expr.c (expand_expr): Use langhook.
19078         * expr.h (enum expand_modifier): Conditionally declare.
19079         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
19080         (LANG_HOOKS_INITIALIZER): Update.
19081         * langhooks.c (lhd_expand_expr): New.
19082         * langhooks.h (struct lang_hooks): New hook.
19083         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
19084         (lang_independent_init): Don't default hook.
19085 objc:
19086         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19087
19088 2002-03-27  Richard Henderson  <rth@redhat.com>
19089
19090         PR target/6054
19091         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
19092         TARGET_CONST_GP.  Simplify conditions.
19093
19094 2002-03-27  Richard Henderson  <rth@redhat.com>
19095
19096         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19097         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
19098         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
19099
19100 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
19101
19102         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
19103         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
19104         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
19105         Remove unnecessary masks.
19106         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
19107         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
19108         -mwindows, -mdll switches and their negations.
19109
19110 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19111
19112         * gcc-common.c (lang_mark_false_label_stack): Remove.
19113         * ggc.h (lang_mark_false_label_stack): Similarly.
19114
19115 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
19116
19117         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
19118
19119         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
19120         or __rtems_ is defined.
19121
19122 2002-03-26  Richard Henderson  <rth@redhat.com>
19123
19124         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
19125         if a non-trivial load was emitted.
19126         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
19127         in high+extra+low case.
19128
19129 2002-03-26  Richard Henderson  <rth@redhat.com>
19130
19131         * config.gcc (sparc*-solaris): Use float_format=sparc.
19132
19133 2002-03-26  Richard Henderson  <rth@redhat.com>
19134
19135         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19136         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
19137         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
19138         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
19139         (WINT_TYPE_SIZE): Fix at 32.
19140
19141 2002-03-26  Richard Henderson  <rth@redhat.com>
19142
19143         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
19144         until after eh landing pad generation.
19145         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
19146         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
19147
19148 2002-03-26  Richard Henderson  <rth@redhat.com>
19149
19150         * expr.h (ADD_PARM_SIZE): One more convert for INC.
19151
19152 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
19153
19154         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
19155         and warning switches.
19156         (cc1_options):  Likewise.
19157
19158 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
19159
19160         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
19161         Restore more of the signal context.  Set no_reg_stack_frame.
19162         * config/ia64/unwind-ia64.c (unw_state_record):
19163         Add no_reg_stack_frame, comments.
19164         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
19165         (uw_update_context): Adjust bsp when unwinding from leaf,
19166         but not signal frame.
19167
19168 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
19169
19170         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
19171
19172 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
19173
19174         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
19175
19176 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
19177
19178         PR target/5621
19179         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
19180         "Add a pool_range attribute", which was lost during the ARM/Thumb
19181         merge.
19182
19183 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
19184
19185         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
19186         a register into the MAC16 accumulator.
19187
19188 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
19189
19190         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
19191         (Warning Options): Document -Wswitch-enum.
19192         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
19193         -Wswitch.
19194         (warn_switch_enum): Define variables.
19195         * flags.h (warn_switch_enum): Declare variables.
19196         * stmt.c (expand_end_case_type): When warn_switch_enum /
19197         -Wswitch-enum, perform switch checks.
19198         Fix PR c/5044.
19199
19200 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
19201
19202         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
19203         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
19204         (reload_muladdsi_compare0_scratch): Delete.
19205
19206 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
19207
19208         * doc/install.texi (*-*-freebsd*): Update.
19209
19210 2002-03-26  Richard Henderson  <rth@redhat.com>
19211
19212         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
19213         (SUB_PARM_SIZE): Cast DEC to ssizetype.
19214
19215         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
19216         types from the normal argument frame.
19217
19218         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
19219         variable sized objects by reference.
19220         (sparc_va_arg): Receive them by reference too.
19221
19222 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
19223
19224         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
19225         code to not restoring global registers.
19226
19227 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
19228
19229         * Makefile.in (ggc-common.o): Update.
19230         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
19231         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19232         * c-tree.h (c_mark_tree): New.
19233         * ggc-common.c: Include langhooks.h.
19234         (gcc_mark_trees): Use new langhook.
19235         * ggc-callbacks.c: Delete file.
19236         * ggc.h (lang_mark_tree): Remove.
19237         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
19238         (LANG_HOOKS_INITIALIZER): Update.
19239         * langhooks.h (struct lang_hooks): New hook.
19240 objc:
19241         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19242
19243 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
19244
19245         * doc/cpp.texi: Exclude entire Top node from printed manual.
19246         Move option index after directive index.  Insert page breaks
19247         before GFDL and concept index.  Index environment variables
19248         with command line options.
19249         * doc/cppenv.texi: Use @vtable for environment variable list.
19250         Add paragraph explaining semantics of empty elements in path
19251         variables.  Exclude a cross-reference to Fishkill from the
19252         manpage.  Remove an unnecessary cross-reference of the entry
19253         right above the referer.  Don't use @anchor in text that goes
19254         into manpage.
19255         * doc/cppopts.texi: Cross-reference the environment variables
19256         section, not the specific environment variable, for consistency.
19257
19258 2002-03-25  Richard Henderson  <rth@redhat.com>
19259
19260         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
19261         anywhere in the block.  Don't refer to insns that have been
19262         removed from the chain.  Iterate backward through the new insns.
19263         Don't refer to edges that have been removed.
19264
19265 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
19266
19267         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
19268         test for overflow of constant.
19269
19270 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
19271
19272         PR target/2623
19273         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
19274         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
19275         these patterns on arm_archv4.
19276
19277 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
19278
19279         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
19280         int".
19281
19282 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
19283
19284         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
19285         float_handled, float_handler, float_signal, set_float_handler,
19286         and do_float_handler.  Set handler for SIGFPE to crash_signal.
19287         * toplev.h: Don't prototype do_float_handler.
19288
19289         * c-lex.c: Fold parse_float into lex_number.  Make warning
19290         about portability of hex float constants more informative, and
19291         don't issue it on top of a syntax error.
19292         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
19293         their callers.
19294         * real.h: Define REAL_VALUE_ABS here...
19295         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
19296         simplify_unary_real, simplify_binary_real, and
19297         simplify_binary_is2orm1 into their callers.
19298         * tree.c: Fold build_real_from_int_cst_1 into caller.
19299
19300         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
19301
19302         * tsystem.h: Include float.h here...
19303         * libgcc2.c: ... not here.
19304
19305 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
19306
19307         Fixes for: PR bootstrap/3591, target/5676
19308         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
19309         defined.  Do not disable exceptions or rtti.
19310         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
19311         mcore.h.  Disable exceptions and rtti, since they are not
19312         supported by EPOC.
19313
19314 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
19315
19316         * c-decl.c (maybe_build_cleanup): Remove.
19317         * expr.c (expand_expr): Use langhook.
19318         * langhooks-def.h (lhd_return_null_tree,
19319         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
19320         (LANGHOOKS_INITIALIZER): Update.
19321         * langhooks.c (lhd_return_null_tree): New.
19322         * langhooks.h (struct lang_hooks): New hook.
19323         * tree-inline.c (initialize_inlined_parameters): Use langhook.
19324         * tree.h (maybe_build_cleanup): Remove.
19325
19326 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19327
19328         * regrename.c (build_def_use): Move recog_memoized
19329         before extract_insn.
19330
19331 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19332
19333         PR target/6043
19334         * expr.c (emit_group_store): Handle storing into CONCAT.
19335
19336 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19337
19338         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
19339         corresponding MATCH_DUP.
19340
19341 2002-03-24  Richard Henderson  <rth@redhat.com>
19342
19343         * unroll.c (unroll_loop): Zero label_map.
19344
19345         * gcse.c: Include except.h.
19346         * Makefile.in (gcse.o): Update.
19347
19348 2002-03-24  Richard Henderson  <rth@redhat.com>
19349
19350         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
19351         Do resolve_unique_section before shared data clause.
19352
19353 2002-03-24  Richard Henderson  <rth@redhat.com>
19354
19355         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
19356
19357 2002-03-24  Richard Henderson  <rth@redhat.com>
19358
19359         * recog.c (peephole2_optimize): Split blocks when EH insns are
19360         generated in the middle of a block.  Do global life update if
19361         zapped EH edges.
19362
19363 2002-03-24  Richard Henderson  <rth@redhat.com>
19364
19365         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
19366
19367 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19368
19369         preprocessor/3951
19370         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
19371         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
19372         (init_dependency_output): Don't make no_output decision here.
19373
19374 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
19375
19376         * stmt.c (check_for_full_enumeration_handling): Remove tests of
19377         warn_switch.  Update description.
19378         (expand_end_case_type): Call check_for_full_enumeration_handling
19379         when warn_switch.
19380
19381 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19382
19383         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
19384         (m68hc11_split_move): Call it to see if the source and destination
19385         operands use the same direction auto inc/dec mode, otherwise make the
19386         source an offsetable memory operand and generate an add.
19387
19388 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19389
19390         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
19391         register for operand 2.
19392         ("*subsi3_zero_extendqi"): Likewise.
19393         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
19394         bits so that it is compatible with a pop.
19395         ("*andhi3_gen"): Likewise.
19396         ("xorhi3"): Likewise.
19397
19398 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19399
19400         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
19401         -pedantic here...
19402         (cpp_post_options): ... not here.
19403
19404 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19405             Aldy Hernandez  <aldyh@redhat.com>
19406
19407         Removal of separate preprocessor cpp0.
19408
19409         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
19410         cpp0, install-common): Update.
19411         * c-common.c (flag_preprocess_only): New.
19412         (c_common_init): Preprocess for -E.
19413         * c-common.h (flag_preprocess_only): New.
19414         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
19415         * c-objc-common.c (c_init_decl_processing): Exit quickly
19416         for NULL return from c_common_init.
19417         * cpplib.h (cpp_preprocess_file): New.
19418         * cppmain.c (main, general_init, pfile, progname): Remove.
19419         (do_preprocessing): Rename cpp_preprocess_file, don't call
19420         cpp_finish.  Don't close stdout here.
19421         (setup_callbacks): Update prototype.
19422         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
19423         Update.
19424         * tradcpp.c (main): Ignore -quiet.
19425 objc:
19426         * lang-specs.h (default_compilers): Preprocess with cc1obj.
19427
19428 2002-03-24  Richard Henderson  <rth@redhat.com>
19429
19430         PR optimization/5742
19431         * machmode.def: Add inner mode field to complex modes.
19432         * config/mips/mips.c (mips_function_value): Always define.  Add
19433         new argument to handle libcalls.
19434         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
19435         (FUNCTION_VALUE): Likewise.
19436         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
19437         * config/mips/mips-protos.h: Update.
19438
19439 2002-03-23  Richard Henderson  <rth@redhat.com>
19440
19441         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
19442         * config/sparc/sparc-protos.h: Update.
19443         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
19444
19445 2002-03-23  Richard Henderson  <rth@redhat.com>
19446
19447         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
19448         _start or _init begins the text segment.
19449
19450 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
19451
19452         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
19453         not HOST_WIDEST_INT.
19454         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
19455
19456 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
19457
19458         PR java/5489
19459         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
19460         operand argument to output_return_instruction.
19461         * arm.c (arm_print_operand, case 'd'): If the operand is
19462         const_true_rtx then just return.
19463         (arm_print_operand, case 'D'): If the operand is const_true_rtx
19464         then abort.
19465
19466 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
19467
19468         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
19469         (Warning Options): Document -Wswitch-default.
19470         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
19471         -Wswitch.
19472         (warn_switch_default): Define variable.
19473         (warn_switch): Update comment.
19474         * flags.h (warn_switch_default): Declare variable.
19475         (warn_switch): Update comment.
19476         * stmt.c (expand_end_case): Check for and, when
19477         warn_switch_no_default, warn of a missing default case.
19478
19479 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
19480
19481         * real.h (N): Special case 128 bit doubles.
19482
19483         * combine.c (simplify_comparison): When widening modes, ignore
19484         sign extension on CONST_INTs.
19485
19486 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
19487
19488         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
19489         passed to adjust_address.  Fix comment formatting.
19490
19491
19492 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
19493
19494         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
19495         Always make REAL_VALUE_TYPE a struct containing an array of
19496         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
19497         big it is.  Don't declare or use union real_extract.
19498
19499         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
19500         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
19501         (print_operand), config/arm/arm.c (output_move_double),
19502         config/arm/arm.md (consttable_4, consttable_8),
19503         config/romp/romp.c (output_fpops), config/s390/s390.h
19504         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
19505         (xtensa_output_literal): Don't use union real_extract.
19506
19507         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
19508         (sfmode_constant_to_ulong), config/ns32k/merlin.h
19509         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
19510         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
19511         (PRINT_OPERAND): Don't use local version of union
19512         real_extract.
19513
19514         * config/convex/convex.c (check_float_value), config/vax/vax.c
19515         (vax_float_literal), config/m88k/m88k.md (divdf3),
19516         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
19517         config/pdp11/pdp11.c (output_move_quad): Don't do host
19518         arithmetic on target floating point quantities.
19519
19520         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
19521         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
19522
19523         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
19524         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
19525
19526         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
19527         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
19528         INFINITY.
19529         * print-rtl.c (print_rtx): Disable code which needs
19530         floating-point emulator.
19531         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
19532         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
19533         depending on HOST_FLOAT_FORMAT to be defined properly.
19534
19535         * config/1750a/1750a.c (get_double, float_label): Delete.
19536         (print_operand): Delete huge commented-out chunk.  Use
19537         REAL_VALUE_TO_DECIMAL.
19538         * config/1750a/1750a-protos.h: Delete prototypes of deleted
19539         functions.
19540         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
19541         IEEE_FLOAT_FORMAT.
19542         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
19543         Use REAL_VALUE_TO_DECIMAL as ELF version does.
19544         * config/m88k/m88k.c (real_power_of_2_operand,
19545         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
19546         real_extract out of the union; run the input through
19547         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
19548         from that into the union.
19549         * config/pdp11/pdp11.c (output_move_double): Rearrange
19550         parentheses to make automatic indenter happy.
19551
19552         * doc/tm.texi (Cross-compilation): Rename node to "Floating
19553         Point" and rewrite to describe current situation.  Also adjust
19554         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
19555         match code.
19556         * doc/rtl.texi: Adjust cross reference.
19557
19558 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
19559
19560         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
19561         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
19562         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
19563         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
19564         prevent use of sp as a reload register.
19565         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
19566         non_acc_reg_operand.
19567         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
19568         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
19569         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
19570         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
19571
19572 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
19573
19574         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
19575         * cpplex.c (unterminated): Delete.
19576         (parse_string): No string literal may extend over multiple
19577         lines.  Suppress the error when preprocessing assembly.
19578         * cppmain.c (scan_translation_unit): Strings are single-line.
19579
19580         * doc/cpp.texi: Update to match.
19581
19582 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
19583
19584         PR optimization/5854
19585         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
19586         Shut up warnings.
19587         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
19588         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
19589         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
19590         const0 if scratch register was not allocated.
19591         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
19592         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
19593         with GEN_INT (...).
19594         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
19595         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
19596         with GEN_INT (...) everywhere.  Remove constraints in define_split
19597         patterns.
19598         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
19599         require scratch register for setting 0 into regs/non-pushable memory.
19600
19601 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
19602
19603         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
19604         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
19605
19606 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
19607
19608         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
19609         * cppinit.c (cpp_create_reader):  On by default.
19610         (cpp_handle_option):  Handle -W[no-]endif-labels.
19611         (cpp_post_options):  Also enable if -pedantic.
19612         * cpplib.c (do_else):  Use it.
19613         (do_endif):  Likewise.
19614         * doc/cppopts.texi:  Document new option.
19615         * doc/invoke.texi:  Document new option.
19616
19617 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
19618
19619         * config/i386/i386.c, config/i386/i386.md: Change all occurences
19620         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
19621
19622 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
19623
19624         * flow.c (calculate_global_regs_live): Clear aux fields of
19625         ENTRY and EXIT.
19626
19627 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
19628
19629         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
19630         REG or MEM subregs, pass rtx * instead of rtx to it.
19631         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
19632         rtx * instead of rtx to alter_subreg.
19633         * config/m32r/m32r.c (gen_split_move_double): Likewise.
19634         * config/pj/pj.c (pj_output_rval): Likewise.
19635
19636 2002-03-22  Richard Henderson  <rth@redhat.com>
19637
19638         PR target/3177
19639         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
19640         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
19641         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
19642         (ia64_expand_prologue): Look at int_regs, not words, for number
19643         of incomming int regs.
19644
19645 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
19646
19647         * expr.c (expand_expr): A RESULT_DECL is part of a call.
19648
19649 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
19650
19651         * toplev.c (flag_loop_optimize, flag_crossjumping):
19652         New static variables.
19653         (rest_of_compilation): Conditionalize crossjumping and
19654         loop optimizer.
19655         (parse_options_and_default_flags): Default loop_optimize and
19656         crossjumping.
19657         (lang_independent_options): Add -fcrossjumping and -floop-optimize
19658         * invoke.texi (crossjumping, loop-optimize): Document.
19659
19660 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19661
19662         * real.c (eiisneg): Move outside #ifdef NANS.
19663
19664 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
19665
19666         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
19667         frequencies match; avoid match on different loop depths.
19668         (try_crossjump_to_bb): Kill tests that no longer brings time
19669         savings.
19670         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
19671         updating code.
19672         (split_edge): Likewise.
19673
19674         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
19675         variable.
19676
19677         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
19678         * cfgrtl.c: Include insn-config.h
19679         (split_block) Dirtify block in presence of conditional execution
19680
19681 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19682
19683         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
19684         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
19685         (function_arg): Constify CUMULATIVE_ARGS.
19686         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
19687         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
19688         (UNITS_PER_DOUBLE): New macro.
19689         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
19690         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
19691         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
19692         fp_regs and stack_words.
19693         (EABI_FLOAT_VARARGS_P): New macro.
19694         * config/mips/mips.c (struct mips_arg_info): New.
19695         (mips_arg_info): New function.
19696         (function_arg_advance): Use it.  Add adjustment instructions here
19697         rather than in function_arg.
19698         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
19699         for VOIDmode at the beginning of the function.
19700         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
19701         (function_arg_pass_by_reference): Likewise.
19702         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
19703         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
19704         (mips_va_start): Likewise.  Use the new stack_words field of
19705         CUMULATIVE_ARGS to set up overflow area.  Reformat.
19706         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
19707         doubles and other types, aligning the overflow pointer for non-doubles
19708         too.  Remove some code duplication.  Replace hard-coded constants.
19709
19710 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19711
19712         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
19713         (CLASS_UNITS): Undefine.
19714         (CLASS_MAX_NREGS): Use FP_INC.
19715         * config/mips/mips.c (compute_frame_size): Likewise.
19716         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
19717
19718 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
19719
19720         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
19721         prototype, and handle lexing numbers and identifiers.
19722         (parse_identifier): Update to new form of parse_slow.
19723         (parse_number): Fast path only, use parse_slow otherwise.
19724         (_cpp_lex_direct): Update calls to parse_number.
19725
19726 2002-03-21  DJ Delorie  <dj@redhat.com>
19727
19728         * bb-reorder.c (make_reorder_chain_1): Protect against
19729         when redundant edges are omitted.
19730         * predict.c (dump_prediction): Likewise.
19731
19732 2002-03-21  Richard Henderson  <rth@redhat.com>
19733
19734         PR target/5996
19735         * fixinc/inclhack.def (solaris_stdio_tag): New.
19736         * fixinc/fixincl.x: Regenerate.
19737
19738 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
19739
19740         PR c/5597
19741         * c-typeck.c (process_init_element): Flag non-static
19742         initialization of a flexible array member as illegal.
19743
19744 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
19745
19746         * config/rs6000/t-linux64: New.
19747         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
19748         t-ppccomm.  Use t-rs6000 and t-linux64.
19749         (powerpc64-*-gnu* <tmake_file>): Likewise.
19750         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
19751         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
19752         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
19753
19754 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
19755
19756         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
19757         flag_really_no_inline instead of optimize == 0.
19758
19759         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
19760
19761         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
19762
19763         * flags.h (flag_really_no_inline): New.
19764
19765         * c-common.c (c_common_post_options): Initialize
19766         flag_really_no_inline.
19767
19768         * toplev.c (flag_really_no_inline): New.
19769
19770 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
19771
19772         * config/avr/avr.md (length): Fix length computation for
19773         conditional branches.
19774
19775 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
19776
19777         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
19778         sdbout.o, profile.o): Update.
19779         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
19780         langhook.
19781         * c-common.h (gettags): Move here from tree.h.
19782         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
19783         insert_block, getdecls, kept_level_p, global_bindings_p): New.
19784         * dbxout.c (dbxout_init): Use getdecls langhook.
19785         * expr.c (expand_expr): Use insert_block langhook.
19786         * fold-const.c: Include langhooks.h.
19787         (fold_range_test, fold_binary_op_with_conditional_arg,
19788         fold): Use global_bindings_p langhook.
19789         * integrate.c (expand_inline_function): Use insert_block langhook.
19790         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
19791         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
19792         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
19793         LANG_HOOKS_GETDECLS): New.
19794         (LANG_HOOKS_INITIALIZER): Update.
19795         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
19796         langhook.
19797         * langhooks.h (struct lang_hooks_for_decls): New.
19798         (struct lang_hooks): Update.
19799         * profile.c: Include langhooks.h.
19800         (output_func_start_profiler): Use new langhooks.
19801         * sdbout.c: Include langhooks.h.
19802         (sdbout_init, sdbout_finish): Use getdecls langhook.
19803         * stmt.c: Include langhooks.h.
19804         (expand_fixup, fixup_gotos): Use new langhooks.
19805         * stor-layout.c: Include langhooks.h.
19806         (variable_size): Use global_bindings_p langhook.
19807         * toplev.c (compile_file): Use getdecls langhook.
19808         * tree-inline.c (remap_block): Use insert_block langhook.
19809         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
19810         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
19811
19812 2002-03-21  Richard Henderson  <rth@redhat.com>
19813
19814         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
19815         constants in .data when -fpic.
19816
19817 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19818
19819         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
19820         where appropriate.
19821
19822 2002-03-21  Tom Tromey  <tromey@redhat.com>
19823
19824         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
19825
19826 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19827
19828         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
19829
19830         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
19831
19832 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
19833             Richard Henderson  <rth@redhat.com>
19834
19835         PR c/5354
19836         * c-common.c (c_expand_expr): Preserve result of a statement
19837         expression if needed.
19838
19839 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
19840
19841         PR bootstrap/4195
19842         * genrecog.c (maybe_both_true_mode): Remove.
19843         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
19844         * machmode.def (Pmode): Likewise.
19845
19846 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
19847
19848         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
19849         (nonlocal_mentioned_p_1): New function.
19850         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
19851         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
19852         (mark_constant_function): Recognize pure functions.
19853         * rtl.h (global_reg_mentioned_p): New prototype.
19854         * rtlanal.c (global_reg_mentioned_p,
19855         global_reg_mentioned_p_1): New function.
19856
19857 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19858
19859         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
19860         UNIX assert.h.
19861         * fixinc/fixincl.x: Regenerate.
19862
19863 2002-03-20  Jason Merrill  <jason@redhat.com>
19864
19865         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
19866
19867 2002-03-20  Michael Meissner  <meissner@redhat.com>
19868
19869         * doc/invoke.texi (Optimize Options): Document that -O2 sets
19870         -fstrict-aliasing.
19871
19872 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
19873
19874         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
19875         ".literal_position" directive before the constant pool.
19876
19877 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19878
19879         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
19880         Add Craig Rodrigues.
19881         Add Brad Lucier to testers.
19882
19883 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19884
19885         PR target/4792
19886         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
19887         to if_then_else.
19888         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
19889         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
19890         instead of insn_extract.
19891
19892 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19893
19894         PR bootstrap/4192
19895         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
19896
19897         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
19898         stmt if some case has been output.
19899
19900 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19901
19902         PR c/5972
19903         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
19904         movsfcc_1, movdfcc_1): Add %O2.
19905         * config/i386/i386.c (print_operand): Handle %ON.
19906         Print . before float condition codes in Sun as cmov syntax.
19907         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
19908         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
19909         no longer true.
19910
19911 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
19912
19913         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
19914         return instruction if PC was popped.
19915
19916 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
19917
19918         * config/xtensa/xtensa.md: Remove unused type attributes.
19919         (adddi_carry, subddi_carry): Change type attribute to "multi".
19920
19921 2002-03-19  Dale Johannesen  <dalej@apple.com>
19922
19923         PR optimization/5999, middle-end/5731
19924         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
19925         multiplications by reciprocals.
19926
19927 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
19928
19929         * Makefile.in: Update.
19930         * c-common.c: Include langhooks.h.
19931         (inline_forbidden_p): Use new hook.
19932         * diagnostic.c: Include langhooks.h.
19933         (format_with_decl, announce_function,
19934         default_print_error_function): Use new hook.
19935         * dwarf2out.c (dwarf2_name): Use new hook.
19936         * function.c: Include langhooks.h.
19937         (init_function_start): Use new hook.
19938         * langhooks-def.h (lhd_decl_printable_name): New.
19939         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
19940         (LANGHOOKS_INITIALIZER): Update.
19941         * langhooks.c (lhd_decl_printable_name): New.
19942         * langhooks.h (struct lang_hooks): New hook.
19943         * toplev.c (decl_name, decl_printable_name): Remove.
19944         (open_dump_file): Use new hook.
19945         (process_options): Remove old hook.
19946         * tree.h (decl_printable_name): Remove.
19947 objc:
19948         * objc-act.c (objc_init): Remove old hook.
19949         (objc_printable_name): Export.
19950         * objc-act.h (objc_printable_name): New.
19951         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
19952
19953 2002-03-19  Jim Blandy  <jimb@redhat.com>
19954
19955         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
19956         the start_source_file debug hook, not the current line number.
19957
19958 2002-03-19  Richard Henderson  <rth@redhat.com>
19959
19960         * flow.c (EH_USES): Provide default.
19961         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
19962         * doc/tm.texi (EH_USES): New.
19963
19964         * config/ia64/ia64.c (ia64_eh_uses): New.
19965         * config/ia64/ia64-protos.h: Update.
19966         * config/ia64/ia64.h (EH_USES): New.
19967
19968 2002-03-19  Richard Henderson  <rth@redhat.com>
19969
19970         * varasm.c (output_constant_def): Fix stupid typo.
19971
19972 2002-03-19  Richard Henderson  <rth@redhat.com>
19973
19974         PR 5879
19975         * except.c (current_function_has_exception_handlers): New.
19976         * except.h: Declare it.
19977         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
19978         Combine tests that disable all sibcalls for the function.
19979
19980 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
19981
19982         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
19983         for INTEGER_CST.
19984
19985 2002-03-19  Richard Henderson  <rth@redhat.com>
19986
19987         PR 5977, 5991
19988         * config/ia64/ia64.c: Revert 2002-03-01 patch.
19989         * config/ia64/ia64.h (INIT_EXPANDERS): New.
19990
19991 2002-03-19  Jim Blandy  <jimb@redhat.com>
19992
19993         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
19994         name, even if the replacement list contains no tokens, as required
19995         by Dwarf.
19996
19997 2002-03-19  Jason Merrill  <jason@redhat.com>
19998
19999         * varasm.c (globalize_decl): Get the name from the RTL, not
20000         DECL_ASSEMBLER_NAME.
20001
20002         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
20003
20004 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
20005
20006         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
20007         subdi_carry): Define.
20008
20009 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20010
20011         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
20012         about -fpic/-fPIC if extra_warnings set.
20013
20014 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20015
20016         * expr.c (expand_expr): Sign-extend CONST_INT generated from
20017         TREE_STRING_POINTER.
20018         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
20019
20020 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20021
20022         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
20023         in favor of SP if FRAME_POINTER_REQUIRED is false.
20024
20025 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
20026
20027         * emit-rtl.c (gen_int_mode): New function.
20028         * rtl.h: Prototype for it.
20029         * combine.c (make_extraction, simplify_comparison), expmed.c
20030         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
20031         (convert_modes, store_field), optabs.c (expand_fix),
20032         simplify-rtx.c (neg_const_int, simplify_unary_real),
20033
20034         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
20035         Use it instead of GEN_INT (trunc_int_for_mode (...)).
20036
20037 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
20038
20039         PR c/5656
20040         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
20041         convert_parm_for_inlining.
20042         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
20043         Define.
20044         * langhooks-def.h: Likewise.
20045         * objc/objc-lang.c: Likewise.
20046         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
20047         function.
20048         * tree-inline.c (initialize_inlined_parameters):
20049         Call convert_parm_for_inlining lang hook if needed.
20050         * c-typeck.c (c_convert_parm_for_inlining): New function.
20051         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
20052
20053 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
20054
20055         * calls.c (precompute_arguments): Do not assume that temporaries
20056         can be destroyed after expanding the argument.
20057         (expand_call): Likewise.
20058
20059 2002-03-15  Eric Christopher  <echristo@redhat.com>
20060
20061         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
20062         Fix register preference on last change.
20063         * config/mips/mips.c (mips_return_in_memory): New function.
20064         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
20065         * config/mips/mips-protos.h: Declare.
20066         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
20067         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
20068
20069 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
20070
20071         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
20072         a register too.
20073         (anddi3, iorsi3): Likewise.
20074
20075         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
20076         use %gprel for symbols that are going to be placed in linkonce
20077         sections.
20078
20079         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
20080         RETURN_ADDRESS_POINTER_REGNUM to $ra.
20081         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
20082         not needed.  Disregard leaf_function_p().
20083         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
20084         mips16 frame pointer.
20085         * config/mips/mips.md (store ra): Only to small SP offsets.
20086         2001-08-22  Graham Stott  <grahams@redhat.com>
20087         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
20088         return a REG rtx for the return address register.
20089
20090 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
20091
20092         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
20093         constant-pool addresses as "mode-dependent".
20094         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
20095
20096 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
20097
20098         PR target/5740
20099         * expr.c (emit_group_load): Use extract_bit_field if
20100         needed for CONCAT arguments.
20101
20102 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
20103
20104         PR target/4863
20105         * arm.md (tablejump): Make this a define_expand.  For PIC add the
20106         offset to the base of the table.
20107         (thumb_tablejump): Matcher for Thumb tablejump insn.
20108         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
20109         as the difference of two labels.
20110         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20111         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
20112         tables in the code.
20113         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
20114         * arm.c (get_jump_table_size): If the table is not in the text
20115         section, return zero.
20116
20117 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
20118
20119         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
20120         of gen_rtx_SUBREG.
20121         (arm_reload_out_hi): Use gen_lowpart instead of
20122         gen_rtx_SUBREG to access QImode components.
20123         * config/arm/arm.md: Disable zero_extend split for QImode
20124         subregs in BIG_ENDIAN mode.
20125         (storehi_bigend): Match use of least significant byte.
20126         (storeinthi): Remove extraneous SUBREG.
20127         Add missing construction of operands[2].
20128         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
20129         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
20130         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
20131
20132 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
20133
20134         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
20135         any_operand.
20136
20137 2002-03-17  Richard Henderson  <rth@redhat.com>
20138
20139         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
20140         explicitly.
20141
20142 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
20143
20144         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
20145         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
20146
20147 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20148
20149         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
20150
20151         * predict.c (estimate_bb_frequencies): Delete unused variables.
20152
20153 2002-03-17  Richard Henderson  <rth@redhat.com>
20154
20155         * config/ia64/ia64.c (ia64_attribute_table): Move before
20156         targetm definition.  Make static.
20157
20158 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
20159
20160         * c-common.h (yyparse, c_common_parse_file): New.
20161         * c-lang.c: Include c-common.h.
20162         (LANG_HOOKS_PARSE_FILE): Redefine.
20163         * c-lex.c: Include c-common.h.
20164         (yyparse): Rename c_common_parse_file.  Call yyparse.
20165         * c-parse.in (yyparse): Remove macro.
20166         * c-tree.h (yyparse_1): Remove.
20167         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
20168         (LANG_HOOKS_INITIALIZER): Update.
20169         * langhooks.h (struct lang_hoooks): New hook parse_file.
20170         * toplev.c (compile_file): Use parse_file hook.
20171         * tree.h (yyparse): Remove.
20172         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
20173
20174 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
20175
20176         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
20177         float_truncate, not fix.
20178         ("*truncdfsf2_real"): Ditto.
20179         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
20180
20181         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
20182
20183 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
20184
20185         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
20186         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
20187         where appropriate.  Make the second reference to
20188         leaf_function_p a function call, as intended.  Reindented.
20189
20190         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
20191         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
20192
20193         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
20194         add register to non-constant into sp.
20195
20196         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
20197         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
20198         (mips16_gp_pseudo_rtx): Lose.
20199         (INIT_EXPANDERS): Deleted.
20200         * config/mips/mips.c (mips_init_machine_status): New.
20201         (mips_free_machine_status): New.
20202         (mips_mark_machine_status): New.
20203         (override_options): Set them.
20204         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
20205         (struct machine_function): ... new.  Replaced all references.
20206         (mips_add_gc_roots): Don't mark them.
20207         (embedded_pic_fnaddr_reg): New, extracted from...
20208         (embedded_pic_offset): ... here.
20209         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
20210         (movsi): Likewise.
20211
20212 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
20213
20214         * cppinit.c: Revert -MD removal.
20215
20216 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20217
20218         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
20219         soft registers by default for 68HC12.
20220         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
20221         when compiling with -fomit-frame-pointer.
20222         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
20223         (expand_epilogue): Likewise.
20224         (m68hc11_gen_rotate): Use exg when rotating by 8.
20225
20226 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20227
20228         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
20229         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
20230         (splits): Remove unused add splits.
20231         ("*addhi3_68hc12"): Tune constraints.
20232         ("addhi_sp"): Try to use X instead of Y in all cases and if the
20233         constant fits in 8-bits and D is dead use abx/aby instructions.
20234         ("*addhi3"): Remove extern declaration of ix_reg.
20235         ("*subsi3"): Optimize and provide new split.
20236         ("subhi3"): Cleanup.
20237         ("*subhi3_sp"): Avoid saving X if we know it is dead.
20238         (arith splits): For 68hc12 save the address register on the stack
20239         and do the arithmetic operation with a pop.
20240
20241 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20242
20243         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
20244         allocating QImode in address registers.
20245         ("*movqi_m68hc11"): Likewise.
20246
20247 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
20248
20249         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
20250
20251 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
20252
20253         * cppinit.c (print_help): Display -MD and -MMD.
20254         Don't display usage string.  Update assertion syntax and
20255         typo.
20256         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
20257         (cpp_handle_option): Update.
20258
20259 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
20260
20261         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
20262         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
20263         and define it so that regardless of target CPU size,
20264         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
20265         of "int" rather than "long."
20266
20267 2002-03-15  Richard Henderson  <rth@redhat.com>
20268
20269         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
20270         size as a tree.
20271
20272 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20273
20274         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
20275         ("tstqi" split): Avoid using memory for tstqi on address register.
20276         (splits): Remove constraints.
20277         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
20278         ("cmpdf", "cmpsf"): Remove since not used.
20279         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
20280         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
20281
20282 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20283
20284         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
20285         ("neghi2"): Tighten constraints.
20286         ("one_cmplsi2"): Optimize and simplify split.
20287         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
20288
20289 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20290
20291         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
20292         and split of AND operation to clear the upper bits.
20293         ("*logicalsi3_zextqi"): Likewise.
20294         ("*logicallhi3_zexthi_ashift8"): Likewise.
20295         ("*logicalsi3_silshr16"): Likewise.
20296         ("logicalsi3_silshl16"): Likewise.
20297         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
20298
20299 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20300
20301         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
20302         (m68hc11_indirect_p): New function.
20303         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
20304         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
20305         TARGET_M6812.
20306         (asm_print_register): Likewise.
20307         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
20308         (m68hc11_indirect_p): Declare.
20309         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
20310         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
20311         (TARGET_SWITCHES): New option -mrelax.
20312         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
20313         destination.
20314         ("iorsi3", "xorsi3"): Likewise.
20315         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
20316         ("*andhi3_mem"): New to handle destination in memory with bclr
20317         and a scratch register.
20318         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
20319         ("*andhi3_const"): New when operand2 is constant.
20320         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
20321         ("*andhi3_gen"): Cleanup of the old "andhi3".
20322         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
20323         ("xorqi3"): Update constraints.
20324
20325 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20326
20327         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
20328         for reg_equiv_memory_loc when the operand is a register that does
20329         not get a hard register (stack location).
20330         (tst_operand): After reload, accept all memory operand.
20331         (symbolic_memory_operand): Fix detection of symbolic references.
20332         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
20333         accept symbols and any constant.
20334
20335 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20336
20337         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
20338         note on the insn that sets the soft frame register.
20339         (must_parenthesize): ix and iy are also reserved names.
20340         (print_operand_address): One more place where parenthesis are required
20341         to avoid confusion with register names.
20342         (m68hc11_gen_movhi): Allow push of stack pointer.
20343         (m68hc11_check_z_replacement): Fix handling of parallel with a
20344         clobber.
20345         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
20346         the replacement register is.
20347         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
20348         and D8_REGS classes.
20349         (MODES_TIEABLE_P): All modes are tieable except QImode.
20350
20351 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20352
20353         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
20354         (___subdi3): Likewise.
20355         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
20356         (__map_data_section): Optimize 68hc11 case.
20357
20358 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20359
20360         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
20361         than a shift to avoid adding a register with itself.
20362         (m68hc11_memory_move_cost): Take into account NO_REGS.
20363         (m68hc11_register_move_cost): Update and use memory move cost
20364         for soft registers.
20365         (m68hc11_address_cost): Make cost of valid offset not 0 so that
20366         it gives more opportunities to cse to optimize.
20367         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
20368         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
20369
20370 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
20371
20372         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
20373         * c-common.def (CLEANUP_STMT): New tree node.
20374         * c-common.h (CLEANUP_DECL): New macro.
20375         (CLEANUP_EXPR): Likewise.
20376         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
20377         * expr.c (expand_expr): Tidy.
20378         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
20379         * tree-inline.c (initialize_inlined_parameters): Clean up
20380         new local variables.
20381
20382 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
20383
20384         PR bootstrap/4128
20385         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
20386         before movrXX only, use reg_overlap_mentioned_p.
20387         Only special case NE if just one insn can be generated.
20388
20389 2002-03-15  Jason Merrill  <jason@redhat.com>
20390
20391         * varasm.c (assemble_variable): Call resolve_unique_section before
20392         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
20393         of error_mark_node.
20394
20395 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
20396
20397         PR target/5170
20398         * arm.md (split pattern for thumb shiftable immediates): Add comment
20399         explaining non-obvious test.
20400
20401 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
20402
20403         PR target/5712
20404         * arm.md (movaddr, movaddr_insn): Delete.
20405
20406 2002-03-15  Jason Merrill  <jason@redhat.com>
20407
20408         * toplev.c (wrapup_global_declarations): Clarify variable handling.
20409         -fkeep-static-consts doesn't apply to comdats.
20410
20411 2002-03-14  Richard Henderson  <rth@redhat.com>
20412
20413         * c-decl.c: Include c-pragma.h.
20414         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
20415         (finish_function): Tidy.
20416         * c-pragma.c: Include c-common.h.
20417         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
20418         (handle_pragma_weak): Use them.
20419         (init_pragma): Register pending_weaks.
20420         * c-pragma.h (maybe_apply_pragma_weak): Declare.
20421         * print-tree.c (print_node): Print DECL_WEAK.
20422         * varasm.c (mark_weak_decls): Remove.
20423         (remove_from_pending_weak_list): Remove.
20424         (add_weak): Remove.
20425         (asm_emit_uninitialised): Call globalize_decl for weak commons.
20426         (weak_decls): Make a tree_list.
20427         (declare_weak): Cons weak_decls directly.
20428         (globalize_decl): Remove weak_decls elements directly.
20429         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
20430         symbols.  Don't pretend to handle aliases.
20431         (init_varasm_once): Update weak_decls registry.
20432         * Makefile.in: Update dependencies.
20433
20434 2002-03-14  Richard Henderson  <rth@redhat.com>
20435
20436         PR target/5312
20437         * config/ia64/ia64.c: Include tm_p.h last.
20438         (gen_nop_type): Remove duplicate definition.
20439         (cycle_end_fill_slots): Set sched_data for second L slot.
20440         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
20441         (nop_cycles_until): Fix typos.
20442
20443 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
20444
20445         PR optimization/5891
20446         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
20447
20448 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
20449
20450         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
20451           descriptors correctly.
20452
20453 2002-03-14  Michael Meissner  <meissner@redhat.com>
20454
20455         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
20456         100, allowing MAX_UNROLLED_INSNS to be overridden.
20457
20458         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
20459         --param.
20460
20461         * unroll.c (params.h): Include.
20462         (MAX_UNROLLED_INSNS): Delete, now in params.h.
20463
20464         * doc/invoke.texi (--param max-unroll-insns): Document.
20465
20466         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
20467
20468 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
20469
20470         * arm.md: Fix warnings about constraints in peepholes and splits.
20471
20472 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
20473
20474         * cpphash.h (struct lexer_state): Remove line_extension member.
20475         * cpplib.c (dequote_string, do_linemarker): New functions.
20476         (linemarker_dir): New data object.
20477         (DIRECTIVE_TABLE): No longer need to interpret #line in
20478         preprocessed source.  Delete obsolete comment about return
20479         values of handlers.
20480         (end_directive, directive_diagnostics, _cpp_handle_directive):
20481         Don't muck with line_extension.
20482         (directive_diagnostics): No need to issue warnings for
20483         linemarkers here.
20484         (_cpp_handle_directive): Issue warnings for linemarkers here,
20485         when appropriate.  Dispatch linemarkers to do_linemarker, not
20486         do_line.
20487         (do_line): Code to handle linemarkers split out to do_linemarker.
20488         Convert escape sequences in filename argument, both places.
20489
20490         * cppmacro.c (quote_string): Rename cpp_quote_string and
20491         export.  All callers changed.
20492         * cpplib.h (cpp_quote_string): Prototype.
20493         * cppmain.c (print_line): Call cpp_quote_string on to_file
20494         before printing it.
20495
20496         * doc/cpp.texi: Document that escapes are now interpreted in
20497         #line and in linemarkers, and that non-printing characters are
20498         converted to octal escapes when linemarkers are generated.
20499
20500 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
20501
20502         * emit-rtl.c (try_split): Use delete_insns.
20503         * recog.c (split_all_insns): Fix terminating condition.
20504
20505 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
20506             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
20507
20508         PR target/5828
20509         * arm.c (arm_output_epilogue): Fix floating-point register save
20510         adjustment when using a frame pointer.
20511
20512 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
20513
20514         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
20515         * config/mips/mips.c (compute_frame_size): Retrofit them here.
20516         (save_restore_insns, mips_expand_epilogue): And here.
20517         (build_mips16_call_stub): And here.
20518         (mips_function_value): Use the new macros to decide whether a single
20519         or complex float can be returned in floating-point registers.  Return
20520         a parallel rtx in the complex case.
20521
20522 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20523
20524         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
20525         call after liveness analysis.
20526
20527         * recog.c (split_insn): Use delete_insn_and_edges.
20528
20529         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
20530         instructions to have branch prediction notes.
20531         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
20532
20533 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
20534
20535         * configure.in: Don't pass -Wno-long-long to a ADA compiler
20536         that doesn't support it.
20537         * configure: Regenerate.
20538
20539 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20540
20541         PR target/5626
20542         * config/sparc/sparc.md (normal_branch, inverted_branch,
20543         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
20544         inverted_fp_branch): Adjust calls to output_cbranch.
20545         Set length attribute.
20546         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
20547         output_v9branch.  Set length attribute.
20548         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
20549         predicates.
20550         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
20551         (output_cbranch): Likewise.  Handle far branches.
20552         (output_v9branch): Handle far branches.
20553         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
20554         Adjust prototypes.
20555         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
20556         noov_compare64_op predicates.
20557
20558 2002-03-13  Jason Merrill  <jason@redhat.com>
20559
20560         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
20561         into the function and constify it.
20562         * gthr-dce.h, gthr-solaris.h: Likewise.
20563
20564 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
20565
20566         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
20567         * config/rs6000/rs6000.c (rs6000_va_arg): Use
20568         std_expand_builtin_va_arg if not ABI_V4.
20569
20570 2002-03-13  Jason Merrill  <jason@redhat.com>
20571
20572         * varasm.c (globalize_decl): New fn.
20573         (assemble_start_function): Use it.
20574         (asm_emit_uninitialized): Use it.
20575         (assemble_alias): Use it.
20576         (assemble_variable): Use it.
20577
20578 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
20579
20580         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
20581         2002-03-12 internal visibility change.
20582         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
20583         visibility into SYMBOL_REF_FLAG.
20584
20585 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
20586
20587         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
20588         VOIDmode operand.  Add compile-time optimization for constant results.
20589
20590 2002-03-12  Jason Merrill  <jason@redhat.com>
20591
20592         * c-typeck.c (convert_for_assignment): Don't allow conversions
20593         between pointers and references.  Only allow lvalues to convert to
20594         reference.
20595
20596 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
20597
20598         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
20599         before prologue, to avoid scheduling problems.
20600
20601 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20602
20603         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
20604         (ELIMINABLE_REGS): Add sfp->sp.
20605         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
20606
20607 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20608
20609         PR optimization/5892
20610         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
20611
20612 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20613
20614         * loop.c (basic_induction_var): Don't call convert_modes if mode
20615         classes are different.
20616
20617 2002-03-12  Richard Henderson  <rth@redhat.com>
20618
20619         PR optimization/5901
20620         * function.c (reposition_prologue_and_epilogue_notes): Position
20621         the markers after/before the last/first insn not deleted.
20622
20623 2002-03-12  Richard Henderson  <rth@redhat.com>
20624
20625         PR optimization/5878
20626         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
20627         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
20628         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
20629
20630         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
20631         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
20632         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
20633
20634         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
20635         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
20636         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
20637         also.  Don't set it if not flag_pic.
20638         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
20639         to be INVALID_REGNUM when not used.
20640
20641 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
20642
20643         * expmed.c (store_bit_field): Reset alias set for memory.
20644         (extract_bit_field): Same.
20645
20646 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20647
20648         * c-common.c (c_tree_code_type, c_tree_code_length,
20649         c_tree_code_name, add_c_tree_codes): Delete.
20650         * c-common.h (add_c_tree_codes): Delete.
20651         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
20652         Define.
20653         * c-objc-common.c (c_objc_common_init): Don't call
20654         add_c_tree_codes, instead set lang_unsafe_for_reeval.
20655         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
20656         objc_tree_code_name, add_objc_tree_codes): Delete.
20657         (objc_init): Don't call add_objc_tree_codes.
20658         * objc/objc-lang.c (tree_code_type, tree_code_length,
20659         tree_code_name): Define.
20660         * toplev.c (lang_independent_init): Don't set
20661         tree_code_length[IDENTIFIER_NODE].
20662         * tree.c (tree_code_type, tree_code_length, tree_code_name):
20663         Delete definitions, moved to language front-ends.
20664         * tree.def (IDENTIFIER_NODE): Hardwire the length.
20665         * tree.h (tree_code_type, tree_code_length, tree_code_name):
20666         Const-ify.
20667         (tree_code_length): Change type to unsigned char.
20668
20669 2002-03-12  Richard Henderson  <rth@redhat.com>
20670
20671         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
20672         internal visibility change.
20673
20674 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20675
20676         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
20677         validize_mem() instead of change_address to avoid clobbering
20678         memory attributes.
20679
20680 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
20681
20682         * c-lex.h (position_after_whitespace): Remove.
20683
20684 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
20685
20686         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
20687         (lex_string): Use unsigned char pointers.
20688
20689 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
20690
20691         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
20692         is not a valid memory_operand.
20693
20694 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20695
20696         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
20697         * config/xtensa/lib1funcs.asm: Fix copyright to include
20698         special case for libgcc files.
20699         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
20700         (__divsi3): Likewise.
20701         (__umodsi3): Likewise.
20702         (__modsi3): Likewise.
20703         * config/xtensa/lib2funcs.S: Fix copyright to include
20704         special case for libgcc files.
20705
20706 2002-03-12  Tom Rix  <trix@redhat.com>
20707
20708         * collect2.c (resolve_lib_name): Move outside of
20709         OBJECT_FORMAT_COFF ifdef.
20710         (ignore_library): Same.
20711
20712 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20713
20714         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
20715
20716 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20717
20718         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
20719         to function_section before writing out the constant pool.
20720
20721 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
20722
20723         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
20724         zero_constant.
20725         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
20726
20727 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
20728
20729         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
20730         (adddi3): Likewise.
20731         (movdf): Likewise.
20732         (movdi): Likewise.
20733         (cmpsi splitter): Likewise.
20734         (modsi3): Fail if <= 0.
20735         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
20736         redundant test when HOST_BITS_PER_WIDE_INT != 32.
20737         (reg_or_sub_cint64_operand): Likewise.
20738         (num_insns_constant_wide): Optimize sign extension.
20739         (rs6000_legitimize_address): Likewise.
20740
20741 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
20742
20743         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20744         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20745
20746 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
20747
20748         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
20749         address calculation.
20750
20751 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
20752
20753         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
20754         scratch register to DImode / TImode.
20755         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
20756         register used does not overlap the target.
20757
20758 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20759
20760         * Makefile.in (debug.o): Depend on debug.h.
20761         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
20762         * debug.c (do_nothing_debug_hooks): Likewise.
20763         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
20764         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
20765         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
20766         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
20767         * dwarfout.c (dwarf_debug_hooks): Likewise.
20768         * integrate.c (output_inline_function): Likewise.
20769         * objc/objc-act.c (synth_module_prologue): Likewise.
20770         * sdbout.c (sdb_debug_hooks): Likewise.
20771         * toplev.c (debug_hooks): Likewise.
20772         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20773
20774 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20775
20776         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
20777         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
20778         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
20779         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
20780         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
20781         * defaults.h (POINTER_SIZE): Define.
20782         * doc/tm.texi (POINTER_SIZE): Document default.
20783
20784 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20785
20786         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
20787
20788 2002-03-11  Richard Henderson  <rth@redhat.com>
20789
20790         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
20791         if rebuild_label_notes_after_reload.
20792
20793 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
20794
20795         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
20796         emit pic register load if "internal" visibility.
20797         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
20798         (cris_expand_builtin_va_arg): Do all computations on trees.
20799
20800 2002-03-11  Richard Henderson  <rth@redhat.com>
20801
20802         * rtlanal.c: Include recog.h.
20803         (keep_with_call_p): Fix thinko.
20804         * Makefile.in (rtlanal.o): Update dependencies.
20805
20806 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
20807
20808         * genflags.c (gen_insn): Use IS_VSPACE.
20809         * genoutput.c (output_insn_data): Likewise.
20810         (process_template): Likewise.
20811
20812 2002-03-11  Richard Henderson  <rth@redhat.com>
20813
20814         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
20815
20816 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
20817
20818         * Makefile.in: Update.
20819         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
20820         Update documentation.
20821         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
20822         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
20823
20824 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
20825
20826         * Makefile.in: Give texi2pod its input file as a command line
20827         argument, not on stdin.
20828
20829 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
20830             Daniel Berlin  <dan@dberlin.org>
20831
20832         C++ alias analysis improvement.
20833         * alias.c (record_component_aliases): Record aliases for base
20834         classes too.
20835
20836 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
20837
20838         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
20839
20840 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
20841
20842         * toplev.c (vms_fopen): Remove, not needed.
20843
20844         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
20845
20846         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
20847
20848         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
20849         for FP, already done later.
20850
20851         * toplev.c (debug_args): Add entry for VMS_DEBUG.
20852         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
20853
20854 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
20855
20856         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
20857         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
20858         LARGEST_EXPONENT_IS_NORMAL for the given mode.
20859         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
20860         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
20861         (ediv, emul, eldexp, esqrt): Likewise.
20862         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
20863         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
20864         (saturate): New function.
20865         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
20866         (make_nan): Use a saturation value instead of a NaN if
20867         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
20868         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
20869         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
20870         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
20871         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
20872         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
20873         !ROUND_TOWARDS_ZERO.
20874         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
20875         (ROUND_TOWARDS_ZERO): Document.
20876
20877 2002-03-11  Andreas Jaeger  <aj@suse.de>
20878
20879         * cfg.c (dump_flow_info): Remove unused variable.
20880
20881 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
20882
20883         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
20884         computations on trees.
20885
20886 2002-03-10  Richard Henderson  <rth@redhat.com>
20887
20888         PR 5693:
20889         * reload.c (copy_replacements_1): New.
20890         (copy_replacements): Use it to recurse through the rtx.
20891
20892 2002-03-10  Richard Henderson  <rth@redhat.com>
20893
20894         * loop.c (strength_reduce): Compute number of iterations as
20895         unsigned HOST_WIDE_INT.
20896
20897 2002-03-10  Richard Henderson  <rth@redhat.com>
20898
20899         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
20900         to move away from the end of the block.
20901
20902 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
20903
20904         PR preprocessor/5899
20905         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
20906
20907 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20908
20909         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
20910
20911         * attribs.c (decl_attributes): Fix signed/unsigned warning.
20912
20913 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
20914
20915         * config/mmix/mmix.c: Improve comments.
20916         (mmix_target_asm_function_prologue): Drop variable
20917         empty_stack_frame.  Don't allocate unused slot above fp.
20918         (mmix_target_asm_function_epilogue): Mirror prologue changes.
20919         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
20920         brace in first column.
20921         (enum reg_class): Ditto.
20922         (FIRST_PARM_OFFSET): Now 0.
20923         (USER_LABEL_PREFIX): Remove #if 0:d definition.
20924
20925 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20926
20927         * combine.c (make_extraction): Fix error in last change.
20928
20929 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20930
20931         * c4x.c (c4x_fp_reglist): Const-ify.
20932         * cris.c (cris_print_operand): Likewise.
20933         * i386.c (ix86_va_arg): Likewise.
20934         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
20935         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
20936         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
20937         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
20938         * mcore.h (regno_reg_class): Likewise.
20939         * mips.c (gen_int_relational): Likewise.
20940         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
20941         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
20942         * pdp11.c (move_costs): Likewise.
20943         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
20944         * s390.c (s390_branch_condition_mnemonic, regclass_map):
20945         Likewise.
20946         * s390.h (regclass_map): Likewise.
20947         * sh.c (shift_amounts): Likewise.
20948         * sh.md (rotlsi3): Likewise.
20949
20950 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
20951
20952         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
20953         (ne0+5): Use new clobber to generate proper shift pattern.
20954         Patch by Michael Matz <matz@kde.org>.
20955
20956 2002-03-09  Andreas Schwab  <schwab@suse.de>
20957
20958         * gcc.c (validate_all_switches): Also handle `%W{...}'.
20959
20960 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
20961
20962         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
20963
20964 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
20965
20966         PR middle-end/5877
20967         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
20968         even for non-representable constants.
20969
20970 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20971
20972         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
20973         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
20974         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
20975         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
20976         (pop_function_context): Compute MAY_SHARE parameter for
20977         fixup_var_refs.
20978         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
20979         (gen_mem_addressof): Call fixup_var_refs with new parm.
20980
20981         * combine.c (make_extraction): Don't make extension of CONST_INT.
20982
20983 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
20984
20985         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
20986         in o32 and o64 ABIs.
20987         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
20988         but getting fixed-size structs passed in registers regardless of
20989         padding in o32 and o64 ABIs.
20990
20991         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
20992         offset before loading address of argument passed by transparent
20993         reference.
20994
20995 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20996
20997         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
20998
20999 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21000
21001         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
21002         marker such that registers after it are saved.
21003
21004 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21005
21006         * sparc.c (arith_4096_operand): Fix error in last change.
21007
21008 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21009
21010         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
21011         defaults for MEABI.
21012
21013 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21014
21015         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
21016         vectors.
21017
21018 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21019
21020         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
21021
21022 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
21023
21024         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
21025         removed; fix return value.
21026         * combine.c (combine_instructions): Dirtify blocks where we failed to
21027         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
21028         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
21029
21030 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21031
21032         * gcse.c (insert_insn_end_bb): Fix typo in last change.
21033
21034 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
21035
21036         * recog.c (peephole2_optimize): Re-distribute EH edges.
21037
21038 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
21039
21040         * expr.c (expand_expr): Use unsave lang hook.
21041         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
21042         (LANG_HOOKS_INITIALIZER): Update.
21043         * langhooks.h (struct lang_hooks): New hook unsave.
21044         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
21045         (unsave_expr_1): Remove unused lang_unsave_expr_now.
21046         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
21047         (unsave_expr_now): Remove.
21048         * tree.h (unsave_expr_now, lang_unsave,
21049         lang_unsave_expr_now): Remove.
21050         (lhd_unsave): New.
21051
21052 2002-03-08  Andreas Jaeger  <aj@suse.de>
21053
21054         * flow.c (propagate_block_delete_insn): Remove unused variable.
21055
21056 2002-03-08  Kazu Hirata  <kazu@hxi.com>
21057
21058         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
21059         insn length for memory load/store.
21060
21061 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21062
21063         * doc/install.texi (--with-libiconv-prefix): Document.
21064
21065 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
21066
21067         * doc/sourcebuild.texi: Fix typo.
21068
21069 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
21070
21071         PR c/3711
21072         * builtins.c (std_expand_builtin_va_arg): Do all computations on
21073         trees.
21074
21075 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21076
21077         * rtl.c (copy_most_rtx): Move from here ...
21078         * emit-rtl.c (copy_most_rtx): ... to here.
21079
21080 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21081
21082         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
21083         SUBTARGET_CPP_SIZE_SPEC.
21084         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
21085
21086         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
21087
21088 2002-03-07  Matt Hiller  <hiller@redhat.com>
21089
21090         * gensupport.c (first_dir_md_include): Renamed from include;
21091         change all references.
21092         (last_dir_md_include): Renamed from last_include; change all
21093         references.
21094         (init_md_reader): Unconditionally initialize base_dir whether or
21095         not filename is a relative path.
21096
21097 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
21098
21099         * config/fp-bit.c (_unord_f2): Compile it in even if
21100         US_SOFTWARE_GOFAST is enabled.
21101
21102         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
21103         NULL_RTX.  Set all HFmode operations as NULL_RTX.
21104         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
21105         NULL_RTX, try reversing the comparison and the operands.
21106
21107 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
21108
21109         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
21110         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
21111         and MATCH_OP_DUP.
21112
21113 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
21114
21115         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
21116
21117 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21118
21119         * basic-block.h (fixup_abnormal_edges): Declare.
21120         * reload1.c (fixup_abnormal_edges): New function.
21121         * reg-stack.c (convert_regs): Use it.
21122
21123         * gcse.c (insert_insn_end_bb): Handle trapping insns.
21124
21125         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
21126
21127 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
21128
21129         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
21130         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
21131         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
21132         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
21133         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
21134         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
21135         unless x and y could be infinite.
21136         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
21137         Check that the common type of both arguments is a real, even for
21138         targets without unordered comparisons.  Allow an integer argument
21139         to be compared against a real.
21140         (expand_tree_builtin): Use expand_unordered_cmp.
21141         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
21142         * cse.c (fold_rtx): Likewise.  Fix indentation.
21143         * fold-const.c (fold_real_zero_addition_p): New.
21144         (fold): Use it, and the new HONOR_... macros.
21145         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
21146         * jump.c (reversed_comparison_code_parts): After searching for
21147         the true comparison mode, use HONOR_NANS to decide whether it
21148         can be safely reversed.
21149         (reverse_condition_maybe_unordered): Remove IEEE check.
21150         * simplify-rtx.c (simplify_binary_operation): Use the new macros
21151         to decide which simplifications are valid.  Allow the following
21152         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
21153         and (a - -b) to (a + b).
21154         (simplify_relational_operation): Use HONOR_NANS.
21155         * doc/tm.texi: Document the MODE_HAS_... macros.
21156
21157 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
21158
21159         * combine.c (simplify_comparison): If simplifying a logical shift
21160         right and compare with constant, force the comparison to unsigned.
21161
21162 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
21163
21164         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
21165
21166         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
21167         -mabi=no-altivec
21168         (alt_reg_names): Remove % for vrsave.
21169
21170 2002-03-06  Richard Henderson  <rth@redhat.com>
21171
21172         PR optimization/5844
21173         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
21174         if used indicates we've already emitted one copy of an operand.
21175         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
21176         (gen_split): Supply a non-null used.
21177
21178 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
21179
21180         * reload1.c (reload): Unshare all rtl after reload is done.
21181
21182         * simplify-rtx.c (simplify_plus_minus): Do not abort,
21183         but simply fail if the expression is too complex to simplify.
21184         (simplify_gen_binary): Handle simplify_plus_minus failures.
21185
21186 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
21187
21188         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
21189         consistently call delete_trivially_dead_insns after CSE and GCSE;
21190         fix DFI_life dumping; do jump threading after liveness; do crossjumping
21191         after liveness2; update comment in last crossjumping.
21192         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
21193
21194 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
21195
21196         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
21197         after completing fast dead code elimination.
21198
21199         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
21200         COMPARE operator.
21201
21202 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
21203
21204         * version.c:  Fix misplaced leading blanks on first line.
21205
21206 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
21207
21208         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
21209
21210 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
21211
21212         * cfgcleanup.c (mentions_nonequal_regs): New function.
21213         (thread_jump): Use it.
21214         * toplev.c (rest_of_compilation): Run jump threading after
21215         liveness.
21216
21217 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
21218
21219         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
21220         patch.
21221
21222 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21223
21224         * predict.c (estimate_bb_frequencies): Do not reload the
21225         frequencies from notes.
21226
21227 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
21228
21229         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
21230         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
21231
21232         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
21233         delete_noop_moves): Return indeger.
21234         * flow.c (ndead): New variable.
21235         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
21236         BB argument; update callers.
21237         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
21238         (life_analysis): Do not call purge_all_dead_edges.
21239         (update_life_info): Return number of deleted insns; print statistics.
21240         (update_life_info_in_dirty_blocks): likewise.
21241         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
21242         return number of insns deleted.
21243
21244         * cse.c: Include timevar.h
21245         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
21246         iterate until stabilizes; print statistics; return number of killed
21247         insns.
21248         * Makefile.in: (cse.o): Add timevar.h dependency
21249         * rtl.h (delete_trivially_dead_insns): New.
21250         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
21251         * toplev.c (rest_of_compilation): Update callers.
21252
21253         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
21254         (try_optimize_cfg): Do not update liveness.
21255         (cleanup-cfg): Loop until try_optimize_cfg and dead code
21256         removal stabilizes; use delete_trivially_dead_insns.
21257
21258         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
21259
21260 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
21261
21262         * cppmain.c (setup_callbacks): Disable #pragma and #ident
21263         callbacks when processing assembly language.
21264
21265 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21266
21267         * pa.h (ASM_FILE_END): Define.
21268         * som.h (ASM_FILE_END): Delete.
21269
21270         * pa.c (function_arg): Don't pass floats in general registers in
21271         indirect calls if TARGET_ELF32.
21272
21273 2002-03-05  Richard Henderson  <rth@redhat.com>
21274
21275         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
21276
21277 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
21278
21279         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
21280
21281 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21282
21283         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
21284         -r command line.  Don't hide any symbols if not building
21285         shared libgcc.
21286
21287 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
21288
21289         * cfg.c (dump_flow_info): Warn about profile mismatches.
21290         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
21291         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
21292
21293 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21294
21295         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
21296         wide volatile memory by parts.
21297
21298 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21299
21300         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
21301         is NULL.
21302
21303 2002-03-05  Richard Henderson  <rth@redhat.com>
21304
21305         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
21306
21307 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
21308
21309         * toplev.c (documented_lang_options): Document more
21310         language-specific options.
21311         * doc/invoke.texi (Warning Options): Correct documentation for
21312         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
21313         * c-decl.c (c_decode_option): Use a table to handle warning options.
21314
21315 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
21316
21317         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
21318         parameter to mmix_encode_section_info.
21319         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
21320         relocatably.  Always produce ELF, not mmo if linking relocatably.
21321         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
21322         first is non-zero, don't add symbol prefix.
21323         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
21324         prototype accordingly.
21325
21326 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
21327
21328         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
21329
21330 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
21331
21332         * configure.in: Increase required makeinfo version to 4.1.
21333         * configure: Regenerate.
21334
21335 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
21336
21337         * .cvsignore: Remove *.info* and genrtl*; these files are generated
21338         elsewhere now.
21339
21340 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
21341
21342         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
21343         * doc/invoke.texi: Fix @math uses.
21344
21345 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21346
21347         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
21348         removal
21349
21350 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
21351
21352         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
21353         (powerpc-*-eabisimaltivec*): Same.
21354
21355         * config/rs6000/t-ppcendian: New.
21356
21357 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21358
21359         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
21360         nonimmediate_src_operand and nonimmediate_lsrc_operand to
21361         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
21362
21363 2002-03-03  Richard Henderson  <rth@redhat.com>
21364
21365         * toplev.c (rest_of_decl_compilation): Revert last two changes.
21366
21367 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
21368
21369         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
21370         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
21371         tree.c, config/m68k/m68k.c:
21372         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
21373         REAL_ARITHMETIC blocks unconditional.  Delete some further
21374         #ifdef blocks predicated on REAL_ARITHMETIC.
21375         * flags.h, toplev.c: Delete remaining references to
21376         flag_pretend_float.
21377
21378         * doc/invoke.texi: Remove documentation of -fpretend-float.
21379         * doc/tm.texi: Describe the various REAL_* macros as provided by
21380         real.h, not by the target configuration files.
21381
21382         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
21383         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
21384         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21385         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
21386         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
21387         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
21388         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
21389         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
21390         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21391         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
21392         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21393         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
21394         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
21395         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
21396         config/xtensa/xtensa.h:
21397         Do not define, undefine, or mention in comments any of
21398         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
21399         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
21400         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
21401         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
21402         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
21403         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
21404         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
21405         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
21406         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
21407
21408 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21409
21410         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
21411         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
21412         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
21413         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
21414         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
21415         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
21416         Delete.
21417         * defaults.h (BITS_PER_WORD): Define.
21418         * doc/tm.texi (BITS_PER_WORD): Document default value.
21419
21420         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
21421         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
21422         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
21423
21424 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21425
21426         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
21427         lieu of explicit sizeof/sizeof.
21428         * i386.c (override_options, ix86_init_mmx_sse_builtins,
21429         ix86_expand_builtin): Likewise.
21430         * mips.c (mips_add_gc_roots): Likewise.
21431         * mmix.c (mmix_output_condition): Likewise.
21432         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
21433         altivec_init_builtins): Likewise.
21434         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
21435         * cppexp.c (Nsuff, parse_number): Likewise.
21436         * cppinit.c (builtin_array_end): Likewise.
21437         * gcc.c (n_default_compilers, process_command): Likewise.
21438         * genpreds.c (output_predicate_decls): Likewise.
21439         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
21440         * lcm.c (N_ENTITIES): Likewise.
21441         * stor-layout.c (set_sizetype): Likewise.
21442
21443 2002-03-03  Richard Henderson  <rth@redhat.com>
21444
21445         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
21446         for types or labels.
21447
21448 2002-03-03  Richard Henderson  <rth@redhat.com>
21449
21450         * c-decl.c (start_decl): Initialized variables are not common.
21451
21452 2002-03-02  Per Bothner  <per@bothner.com>
21453
21454         * gcc.c (option_map):  Suport new --bootclasspath option.
21455         --CLASSPATH is now just an alias for --classpath.
21456
21457 2002-03-02  Richard Henderson  <rth@redhat.com>
21458
21459         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
21460         load if "internal" visibility.
21461         * doc/extend.texi: Document visibility meanings.
21462
21463 2002-03-02  Richard Henderson  <rth@redhat.com>
21464
21465         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
21466         to functions as well.
21467
21468 2002-03-02  Richard Henderson  <rth@redhat.com>
21469
21470         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
21471         (handle_visibility_attribute): Don't call assemble_visibility.
21472         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
21473         without asmspec.  Invoke assemble_alias when needed.
21474         * varasm.c (maybe_assemble_visibility): New.
21475         (assemble_start_function, assemble_variable, assemble_alias): Use it.
21476
21477 2002-03-02  Richard Henderson  <rth@redhat.com>
21478
21479         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
21480         invoke ENCODE_SECTION_INFO with first call flag.
21481
21482         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
21483         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
21484         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
21485         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
21486         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
21487         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
21488         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
21489         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
21490         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
21491         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
21492         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
21493         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
21494         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
21495         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
21496         config/mcore/mcore-protos.h, config/mcore/mcore.c,
21497         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
21498         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
21499         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
21500         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
21501         config/sh/sh.h, config/sparc/sparc.h,
21502         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
21503         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
21504         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
21505         FIRST argument.  As needed, examine it and do nothing.
21506
21507         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
21508         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21509         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
21510
21511         * config/arm/t-pe (pe.o): Add dependencies.
21512
21513 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21514
21515         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
21516         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
21517         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
21518         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
21519         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
21520         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
21521         * defaults.h (BITS_PER_UNIT): Define.
21522         * doc/tm.texi (BITS_PER_UNIT): Document default value.
21523
21524 2002-03-02  Kazu Hirata  <kazu@hxi.com>
21525
21526         * config/h8300/h8300-protos.h: Add a prototype for
21527         compute_a_shift_length.
21528         * config/h8300/h8300.c (h8300_asm_insn_count): New.
21529         (compute_a_shift_length): Likewise.
21530         (h8300_adjust_insn_length): Do not adjust insn length of shift
21531         insns.
21532         * config/h8300/h8300.md (anonymous shift patterns): Use
21533         compute_a_shift_length.
21534
21535 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21536
21537         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
21538         trunc_int_for_mode.
21539
21540         * emit-rtl.c (offset_address): Call update_temp_slot_address.
21541
21542 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21543
21544         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
21545         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
21546         * flags.h (flag_zero_initialized_in_bss): Declare.
21547         * toplev.c (flag_zero_initialized_in_bss): New flag.
21548         (lang_independent_options): Add flag_zero_initialized_in_bss.
21549         * tree.c (initializer_zerop): New function.
21550         * tree.h (initializer_zerop): Declare.
21551         * varasm.c (assemble_variable): If we can emit bss, put zero
21552         initializers in the bss section.
21553
21554 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
21555
21556         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
21557         like more than one symbol per .weak directive.
21558
21559 2002-03-01  Richard Henderson  <rth@redhat.com>
21560
21561         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
21562         adjust argument_pointer by pretend_args_size.
21563         (ia64_va_start): Adjust va_start address by -pretend_args_size.
21564
21565 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21566
21567         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
21568
21569 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
21570
21571         * toplev.c (rest_of_compilation): Delete dead jumptables before
21572         loop.
21573         * flow.c (delete_dead_jumptables): Make global.
21574         * rtl.h (delete_dead_jumptables): Declare.
21575
21576 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
21577
21578         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
21579         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
21580         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
21581
21582 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21583
21584         * config/h8300/h8300-protos.h: Fix formatting.
21585         * config/h8300/h8300.c: Likewise.
21586         * config/h8300/h8300.h: Likewise.
21587
21588 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21589
21590         * config/h8300/h8300.c (print_operand): Support 16-bit
21591         constant addresses.
21592         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
21593
21594 2002-02-28  Richard Henderson  <rth@redhat.com>
21595
21596         * expmed.c (store_bit_field): Prevent generation of CONCATs;
21597         pun complex values as integers; use gen_lowpart instead of
21598         gen_rtx_SUBREG.
21599         (extract_bit_field): Likewise.
21600
21601 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
21602             David Edelsohn  <edelsohn@gnu.org>
21603
21604         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
21605         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
21606         (SUPPORTS_WEAK): Likewise.
21607         * output.h (add_weak): Add tree param.
21608         * varasm.c (add_weak): Likewise.  Save decl.
21609         (struct weak_syms): Add decl field.
21610         (mark_weak_decls): New function.
21611         (init_varasm_once): ggc_add_root mark_weak_decls.
21612         (assemble_start_function): Use ASM_WEAKEN_DECL.
21613         (assemble_variable): Likewise.
21614         (assemble_alias): Likewise.
21615         (declare_weak): Pass decl to add_weak.
21616         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
21617         (remove_from_pending_weak_list): Declare and define for
21618         ASM_WEAKEN_DECL.
21619         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
21620         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
21621         * defaults.h (SUPPORTS_WEAK): Likewise.
21622         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
21623         .weak for code sym.  Do emit .size for descriptor sym.
21624         (ASM_DECLARE_FUNCTION_SIZE): Define.
21625         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
21626         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
21627         .lglobl unless TARGET_XCOFF.  Formatting fixes.
21628         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
21629         .weak for code sym.
21630         (HANDLE_PRAGMA_WEAK): Remove.
21631         (ASM_WEAKEN_LABEL): Remove.
21632         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
21633
21634 2002-03-01  Jason Merrill  <jason@redhat.com>
21635
21636         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
21637         (TARGET_EXPR_CLEANUP): New macro.
21638
21639 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
21640
21641         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
21642         to take ptr_extend into account as third type of extension.
21643         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
21644         fields used by SUBREG_PROMOTED_UNSIGNED_P.
21645         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
21646         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
21647         * calls.c (precompute_arguments): Use new macro.
21648         (expand_call): Ditto.
21649         * combine.c (nonzero_bits): Ditto.
21650         (record_promoted_value): Ditto.
21651         * expr.c (store_expr): Ditto.
21652         (expand_expr): Ditto.
21653         * function.c (assign_parms): Ditto.
21654
21655 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
21656
21657         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
21658         override -shared and -shared-libgcc.
21659
21660 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
21661
21662         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
21663         of "ultrasparc".
21664         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
21665         to be broken.
21666
21667 2002-02-28  Richard Henderson  <rth@redhat.com>
21668
21669         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
21670         4 cycle latency from MM producers.
21671         (ia64_internal_sched_reorder): Likewise with pipeline flush.
21672
21673 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
21674
21675         * mklibgcc.in: Don't use GNU make extension.
21676
21677 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21678
21679         * c-parse.in (STATIC): New terminal.
21680         (scspec): New non-terminal.  Update productions accordingly.
21681         (program): Remove bogus ifc / end ifc.
21682         (array_declarator): Simplify production using STATIC.
21683
21684 2002-02-28  Jim Meyering  <meyering@lucent.com>
21685
21686         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
21687         \a still means TARGET_BELL.
21688
21689 2002-02-28  Richard Henderson  <rth@redhat.com>
21690
21691         * haifa-sched.c (sched_emit_insn): New.
21692         (schedule_block): Use last_scheduled_insn to track last insn.
21693         * sched-int.h (sched_emit_insn): Prototype.
21694         * config/ia64/ia64.c (last_issued): Remove.
21695         (ia64_variable_issue): Don't set it.
21696         (nop_cycles_until): Use sched_emit_insn.
21697
21698 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
21699
21700         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
21701         extended constants.
21702
21703 2002-02-28  Kazu Hirata  <kazu@hxi.com>
21704
21705         * config/h8300/h8300.c: Fix formatting.
21706         * config/h8300/h8300.h: Likewise.
21707
21708 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21709
21710         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
21711         which may overwrite the high byte of the frame pointer.
21712
21713 2002-02-28  Bo Thorsen  <bo@suse.de>
21714
21715         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
21716         (STARTFILE_SPEC): Add 64 bit files.
21717         (ENDFILE_SPEC): Likewise.
21718
21719 2002-02-28  Jason Merrill  <jason@redhat.com>
21720
21721         * c-decl.c (finish_function): Only warn about missing return
21722         statement with -Wreturn-type.
21723
21724 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
21725
21726         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
21727
21728         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
21729         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
21730
21731 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
21732
21733         * basic-block.h (BB_REACHABLE): Renumber.
21734         (BB_DIRTY, BB_NEW): New flags.
21735         (clear_bb_flags): Declare.
21736         (update_life_info_in_dirty_blocks): Declare.
21737         * cfg.c (clear_bb_flags): New function.
21738         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
21739         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
21740         reorder_insns, emit_insn_after): Mark block as dirty.
21741         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
21742         (update_life_info_in_dirty_blocks): New function.
21743         * recog.c (apply_change_group): Dirtify block.
21744
21745         * cse.c (cse_insn): Reorder emitting of jump insn to keep
21746         cfg consistent.
21747         * gcse.c (delete_null_pointer_checks): Likewise.
21748
21749         * toplev.c (dump_file_index): Move cse2 after bp,
21750         add DFI_null
21751         (dump_file_info): Similary.
21752         (rest_of_compilation): Avoid most of CFG rebuilds;
21753         do first if converision after null pointer checks, do cse2
21754         after branch prediction; avoid full liveness rebuild after
21755         initializing subregs.
21756         * invoke.texi (-d options): Document -du, renumber.
21757
21758         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
21759         (notice_new_block): Do not set BB_UPDATE_LIFE.
21760         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
21761          merge_blocks_move_successor_nojumps, merge_blocks,
21762          try_crossjump_to_edge): Likewise.
21763         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
21764         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
21765         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
21766         (merge_of_block): Do not use life_data_ok.
21767         (find_if_case_1): Do not use SET_UPDATE_LIFE.
21768         (if_convert): Use BB_DIRTY mechanizm to update life.
21769         * lcm.c (optimize_mode_switching): Update
21770         update_life_info_in_dirty_blocks
21771
21772 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21773
21774         * Makefile.in (integrate.o): Update.
21775         * c-decl.c (copy_lang_decl): Rename.
21776         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
21777         * integrate.c: Include langhooks.h.
21778         (copy_decl_for_inlining): Update to use langhook.
21779         * langhooks-def.h (lhd_do_nothing_t,
21780         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
21781         (LANG_HOOKS_INITIALIZER): Update.
21782         * langhooks.c (lhd_do_nothing_t): New.
21783         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
21784         * tree.h (copy_lang_decl): Remove.
21785 objc:
21786         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
21787
21788 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
21789
21790         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
21791         POST_DEC, and POST_MODIFY.
21792
21793 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21794
21795         * c-typeck.c (digest_init): Remove unused parameter; all
21796         callers changed.
21797
21798 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
21799
21800         * expmed.c (expand_shift): Correctly test for low part of a
21801         subreg.
21802
21803 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
21804
21805         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
21806         insn UIDs with insn addresses.
21807
21808 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21809
21810         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
21811         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
21812         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
21813         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
21814         gcc.c, toplev.c: Delete code implementing -traditional mode.
21815
21816         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
21817         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
21818         Document removal of -traditional mode for compilation, and
21819         remove documentation only relevant to that mode.
21820
21821         * config/nextstep.h, config/ptx4.h, config/svr4.h,
21822         config/convex/convex.h, config/d30v/d30v.h,
21823         config/i386/dgux.h, config/i386/osf1elf.h,
21824         config/i386/osfelf.h, config/i386/osfrose.h,
21825         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
21826         config/m68k/hp310.h, config/m88k/dgux.h,
21827         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
21828         config/m88k/m88k.h, config/m88k/openbsd.h,
21829         config/mips/abi64.h, config/mips/osfrose.h,
21830         config/mips/svr4-5.h, config/mips/svr4-t.h,
21831         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
21832         config/stormy16/stormy16.h: Remove all references to
21833         -traditional from target specs.  Delete all mention of the
21834         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
21835         delete a couple of commented-out definitions of
21836         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
21837         to -traditional.
21838
21839         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
21840         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
21841
21842 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21843
21844         * mklibgcc.in: Don't use \n in a line subject to
21845         interpretation by echo.
21846
21847 2002-02-27  Graham Stott  <grahams@redhat.com>
21848
21849         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
21850         Constify NAME.
21851
21852         * loop.c (prescan_loop): Handle PARALLEL.
21853
21854         * unroll.c (loop_iterations): Return 0 if the add_val for
21855         a BIV is REG.
21856
21857         * final.c (output_operand_lossage): Constify PFX_STR.
21858
21859         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
21860
21861 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21862
21863         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
21864         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
21865
21866 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
21867
21868         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21869
21870 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
21871
21872         * cpplex.c (_cpp_lex_token): Handle directives in macro
21873         arguments.
21874         * cpplib.c (_cpp_handle_directive): Save and restore state
21875         if parsing macro args when entering a directive.
21876         * cppmacro.c (collect_args): No need to handle directives
21877         in macro arguments.
21878         (enter_macro_context, replace_args): Use the original macro
21879         definition in case it was redefined whilst collecting arguments.
21880 doc:
21881         * cpp.texi: Update.
21882
21883 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
21884
21885         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
21886         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
21887         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
21888         method on AIX.
21889         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
21890         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
21891         (load_toc_v4_PIC_2): Same.
21892
21893 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
21894
21895         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
21896
21897 2002-02-26  Richard Henderson  <rth@redhat.com>
21898
21899         * config/alpha/alpha.md (ashldi_se): Re-enable.
21900
21901 2002-02-26  Richard Henderson  <rth@redhat.com>
21902
21903         * config/alpha/alpha.c (alpha_encode_section_info): Examine
21904         MODULE_LOCAL_P; improve commentary.
21905
21906 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
21907
21908         * doc/cpp.texi: Clarify documentation of relationship between
21909         #line and #include.
21910
21911 2002-02-26  Kazu Hirata  <kazu@hxi.com>
21912
21913         * config/h8300/h8300-protos.h: Update the prototype for
21914         compute_logical_op_length.  Add the prototype for
21915         compute_logical_op_cc.
21916         * config/h8300/h8300.c (compute_logical_op_length): Figure out
21917         code from operands.
21918         (compute_logical_op_cc): New.
21919         * config/h8300/h8300.md: Combine all the logical op patterns
21920         in HImode and SImode.  Use compute_logical_op_cc.
21921
21922 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
21923
21924         * config/i386/i386.c (print_operand): Don't append ATT-style
21925         length suffixs to x87 opcodes when in Intel mode.
21926
21927 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
21928
21929         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
21930         (init_emit_once): Update calls.
21931         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
21932         (init_syntax_once): Prototype.
21933
21934 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21935
21936         * pa-linux.h (LIB_SPEC): Update definition.
21937         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
21938
21939 2002-02-26  Richard Henderson  <rth@redhat.com>
21940
21941         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
21942         if we emitted a stop bit.
21943
21944 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
21945
21946         * configure.in (libgcc_visibility): Substitute.
21947         * configure: Rebuilt.
21948         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
21949         defined symbols .hidden.
21950
21951 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
21952
21953         * attribs.c (c_common_attribute_table): Add visibility.
21954         (handle_visibility_attribute): New function.
21955         * varasm.c (assemble_visibility): New function.
21956         * output.h (assemble_visibility): Add prototype.
21957         * tree.h (MODULE_LOCAL_P): Define.
21958         * crtstuff.c (__dso_handle): Use visibility attribute.
21959         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
21960         for MODULE_LOCAL_P symbols too.
21961         * config/ia64/ia64.c (ia64_encode_section_info): Handle
21962         MODULE_LOCAL_P symbols the same way as local symbols.
21963         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
21964         into .sdata/.sbss by the user.
21965         * doc/extend.texi (Function Attributes): Document visibility
21966         attribute.
21967
21968 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
21969
21970         PR debug/5770
21971         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
21972         STRING_CST initializer spanning the whole variable without
21973         embedded zeros.
21974         If expand_expr returned MEM, don't use it.
21975
21976 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
21977
21978         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
21979         generate a die for the lexical block.
21980
21981 2002-02-26  Kazu Hirata  <kazu@hxi.com>
21982
21983         * config/h8300/h8300-protos.h: Add a prototype for
21984         compute_logical_op_length.
21985         * config/h8300/h8300.c (compute_logical_op_length): New.
21986         * config/h8300/h8300.md (anonymous logical patterns): Use
21987         compute_logical_op_length for length.
21988
21989 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
21990
21991         * dwarf2out.c (modified_type_die): Do not call type_main_variant
21992         for vectors.
21993         (gen_type_die): Same.
21994
21995         * attribs.c (handle_vector_size_attribute): Set debug information.
21996
21997 2002-02-26  Daniel Egger  <degger@fhm.edu>
21998
21999         * config/rs6000/rs6000.md: Swap define_insn attributes to
22000         fix incorrect generation of merge high instructions instead
22001         of merge low.
22002
22003 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22004
22005         * c-typeck.c (really_start_incremental_init): Use
22006         bitsize_zero_node for vectors.
22007
22008 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22009
22010         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
22011         ("*set_vrsave_internal"): Same.
22012
22013 2002-02-25  Richard Henderson  <rth@redhat.com>
22014
22015         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
22016         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
22017
22018 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
22019
22020         PR target/5755
22021         * config/i386/i386.c (ix86_return_pops_args): Only pop
22022         fake structure return argument if it was passed on the stack.
22023
22024 2002-02-25  Jason Merrill  <jason@redhat.com>
22025
22026         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
22027         RESULT_DECL.
22028
22029 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22030
22031         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
22032         link with shared_name only.
22033         * doc/invoke.texi (Link Options): Document new behavior.
22034
22035 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22036
22037         * c-typeck.c (push_init_level): Handle vectors.
22038
22039 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22040
22041         * config/sparc/sparc.c (const64_high_operand): Zero-extend
22042         operands of SPARC_SETHI_P.
22043         (input_operand): Likewise.
22044         (sparc_emit_set_const32): Likewise.
22045         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
22046         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
22047         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
22048         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
22049         (movdi_insn_sp64_vis): Likewise.
22050         (movdi split, movdf split): Use SETHI32.
22051         * doc/md.texi: Document SPARC constraints L, M and N.
22052
22053 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22054
22055         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
22056         ("*set_vrsave_internal"): use mfspr for Darwin.
22057
22058         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
22059         gen_get_vrsave_internal.
22060
22061 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22062
22063         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
22064
22065 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
22066
22067         * cpplex.c (cpp_interpret_charconst): Get signedness or
22068         otherwise of wide character constants correct.
22069         * cppexp.c (lex): Get signedness of wide charconsts correct.
22070
22071 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22072
22073         * optabs.c (widen_operand): Only call convert_modes for
22074         promoted SUBREG if signedness matches.
22075         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
22076
22077 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22078
22079         * cpplib.c (glue_header_name): Use local buffer to build up
22080         header name.
22081
22082 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22083
22084         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
22085
22086 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22087
22088         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
22089         H8/300[HS] separately.
22090         * config/h8300/h8300.md: Remove the early clobber constraint
22091         from bit field patterns.
22092
22093 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22094
22095         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22096         register_operand.
22097         (mulhisi3): Likewise.
22098         (umulqisi3): Likewise.
22099         (umulhisi3): Likewise.
22100
22101 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22102
22103         * cppinit.c (output_deps): Correct test for stdout output.
22104         (init_dependency_output): Cure warning.
22105
22106 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22107
22108         * expr.c (store_expr): When converting expression to promoted
22109         equivalent type, allow using SUBREG_REG of TARGET as the target
22110         of the expansion of EXP.
22111         * loop.c (basic_induction_var, case SUBREG): Always look inside.
22112         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
22113         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
22114         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
22115         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
22116
22117 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
22118
22119         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
22120         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
22121         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
22122
22123 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
22124
22125         PR optimization/5747
22126         * loop.c (scan_loop): Update reg info if move_movables created new
22127         pseudos.
22128
22129 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
22130
22131         * gcc.c (init_gcc_spec): Revert last change.
22132
22133 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
22134
22135         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
22136         gpc_reg_operand constraint.
22137
22138 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
22139
22140         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
22141         Simplify comparison of `low'.
22142         (add_operand): Fix formatting.
22143         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
22144         (mask_operand): Disallow mask to wrap in 64-bit mode.
22145         (rs6000_stack_info): Remove redundant test setting push_p.
22146         (output_toc): Fix formatting.
22147         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
22148         cc_reg_not_cr0_operand constraint.
22149         (booldi3, boolcdi3 splitters): Same.
22150
22151 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
22152
22153         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
22154
22155 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
22156
22157         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
22158         gcc invoked with -shared-libgcc.
22159
22160 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
22161
22162         PR c++/5748
22163         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
22164         decl if any of elements was TREE_USED.
22165
22166 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
22167
22168         * config/sparc/sol2.h: Don't include sys/mman.h.
22169         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
22170         (arith_4096_operand): Don't throw high bits away.
22171         (const64_operand): Take sign extension of CONST_INTs into account.
22172         (const64_high_operand, sparc_emit_set_const32): Likewise.
22173         (GEN_HIGHINT64): Likewise.
22174         (sparc_emit_set_const64_quick1): Likewise.
22175         (const64_is_2insns): Likewise.
22176         (print_operand): Use trunc_int_for_mode for sign extension.
22177         * config/sparc/sparc.h (SMALL_INT32): Likewise.
22178         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
22179         chars.  Assume CONST_INT is already properly sign-extended.
22180         (movdi split): Sign-extend each SImode part.
22181         (andsi3 split): Don't mask high bits off, so that result
22182         remains properly sign-extend.
22183         (iorsi3 split): Likewise.
22184         (xorsi3 split): Likewise.
22185
22186 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
22187
22188         * fold-const.c (fold): Fix typo in comments.
22189
22190 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
22191
22192         * Makefile.in (langhooks.o): Update dependencies.
22193
22194 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
22195
22196         * langhooks.c: Include flags.h.
22197
22198 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
22199
22200         * testsuite/gcc.dg/attr-alwaysinline.c: New.
22201
22202         * c-common.c (c_common_post_options): Set inline trees by
22203         default.
22204
22205         * doc/extend.texi (Function Attributes): Document always_inline
22206         attribute.
22207         Update documentation about inlining when not optimizing.
22208
22209         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
22210
22211         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
22212         unless DECL_ALWAYS_INLINE.
22213
22214         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
22215         unless DECL_ALWAYS_INLINE.
22216         (c_disregard_inline_limits): Disregard if always_inline set.
22217
22218         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
22219         Disregard if always_inline set.
22220         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
22221         unless DECL_ALWAYS_INLINE.
22222
22223         * attribs.c (handle_always_inline_attribute): New.
22224         (c_common_attribute_table): Add always_inline.
22225
22226         * config/rs6000/altivec.h: Add prototypes for builtins
22227         requiring the always_inline attribute.
22228
22229 2002-02-21  Eric Christopher  <echristo@redhat.com>
22230
22231         * expmed.c (store_bit_field): Try to simplify the subreg
22232         before generating a new one when when the mode size of
22233         value is less than maxmode.
22234
22235 2002-02-21  Richard Henderson  <rth@redhat.com>
22236
22237         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
22238         than gen_rtx_PLUS to form the sum.
22239         * explow.c (force_reg): Rearrange to not allocate new pseudo
22240         when force_operand returns a register.
22241         * expr.c (expand_assignment): Allow offset_rtx expansion to
22242         return a sum.  Do not force addresses into registers.
22243         (expand_expr): Likewise.
22244         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
22245         to canonicalize arithmetic that didn't simpify.
22246         (simplify_plus_minus): New argument force; update
22247         all callers.  Don't split CONST unless we can do something with it,
22248         and wouldn't lose the constness of the operands.
22249
22250         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
22251         that we generated earlier.
22252
22253 2002-02-21  Tom Tromey  <tromey@redhat.com>
22254
22255         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22256         (output_line_info): Use constant `1', with a long explanatory
22257         comment.
22258         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
22259
22260 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
22261
22262         * jump.c (redirect_jump): If old label has no UID, don't try to
22263         delete it.
22264
22265 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
22266
22267         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
22268         If input is constant, do shifts at compile time.
22269
22270 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
22271
22272         * doc/extend.texi: Fix some more overfull hboxes.
22273
22274 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22275
22276         PR optimization/4994
22277         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
22278         register moves.
22279
22280 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22281
22282         PR c++/4574
22283         * expr.h (expand_and): Add mode argument.
22284         * expmed.c (expand_and): Add mode argument.
22285         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
22286         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
22287         * except.c (expand_builtin_extract_return_addr): Likewise.
22288         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22289         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
22290         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
22291         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
22292         * config/c4x/c4x.md: Use GEN_INT (x) instead of
22293         gen_rtx (CONST_INT, VOIDmode, x).
22294
22295 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22296
22297         PR c/4697:
22298         * stmt.c (warn_if_unused_value): Move side effects test once more.
22299
22300 2002-02-20  Torbjorn Granlund  <tege@swox.com>
22301
22302         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
22303         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
22304
22305 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
22306
22307         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
22308         SUBREG or ZERO_EXTEND.
22309
22310 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
22311
22312         * sh.h (current_function_anonymous_args): Remove.
22313         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
22314         of current_function_varargs and current_function_stdarg is set.
22315         * sh.c (sh_expand_prologue): Check current_function_varargs /
22316         current_function_stdarg / TARGET_SH5 instead of
22317         current_function_anonymous_args.
22318
22319         * sh64.h (TARGET_VERSION): Define.
22320
22321 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
22322
22323         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
22324         VRSAVE_REGNO on TARGET_ALTIVEC.
22325
22326 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
22327
22328         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
22329         bits of SImode const_int.
22330         (includes_rshift_p): Likewise.
22331         (print_operand): Call mask_operand and mask64_operand with correct
22332         mode.
22333         (rs6000_output_function_epilogue): Pad traceback table to word.
22334         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
22335         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
22336         mask64_operand with correct mode.
22337         (FUNCTION_ARG_REGNO_P): Correct parentheses.
22338
22339 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22340
22341         PR debug/4461
22342         * varasm.c (get_pool_constant_mark): New.
22343         * rtl.h (get_pool_constant_mark): Add prototype.
22344         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
22345         be represented if it has not been output.
22346
22347 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
22348
22349         * combine.c (do_SUBST): Sanity check substitutions of
22350         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
22351         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
22352         CONST_INT into its operand.
22353         (known_cond): Likewise, for ZERO_EXTEND.
22354         * simplify-rtx.c (simplify_unary_operation): Fix condition to
22355         allow for simplification of wide modes.  Reject CONST_INTs in
22356         ZERO_EXTEND when their actual mode is not given.
22357
22358 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
22359
22360         * c-decl.c (pushdecl): If no global declaration is found for an
22361         extern declaration in block scope, try a limbo one.
22362
22363 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22364
22365         PR c++/4401
22366         * c-common.c (pointer_int_sum): Moved from...
22367         * c-typeck.c (pointer_int_sum): ...here.
22368         * c-common.h (pointer_int_sum): Add prototype.
22369
22370 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22371
22372         PR c++/5713
22373         * c-decl.c (duplicate_decls): Return 0 if issued error about
22374         redeclaration.
22375
22376 2002-02-20  Roger Sayle  <roger@eyesopen.com>
22377             Jakub Jelinek  <jakub@redhat.com>
22378
22379         PR c/4389
22380         * tree.c (host_integerp): Ensure that the constant integer is
22381         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
22382         when pos is zero or non-zero respectively.  Clarify comment.
22383         * c-format.c (check_format_info_recurse): Fix host_integerp
22384         usage; the pos argument should be zero when assigning to a
22385         signed HOST_WIDE_INT.
22386
22387 2002-02-20  Richard Henderson  <rth@redhat.com>
22388
22389         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
22390         of the operand, rather than assuming TImode.
22391         (ix86_expand_binop_builtin): Cope with commutative patterns
22392         using nonimmediate_operand for both operands.
22393         (ix86_expand_timode_binop_builtin): Likewise.
22394         (ix86_expand_store_builtin): Validate operand 1.
22395         (ix86_expand_unop1_builtin): Likewise.
22396
22397 2002-02-20  Philip Blundell  <philb@gnu.org>
22398
22399         PR 5705
22400         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
22401
22402 2002-02-20  Richard Henderson  <rth@redhat.com>
22403
22404         PR c/5615
22405         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
22406
22407 2002-02-20  Tom Tromey  <tromey@redhat.com>
22408
22409         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22410         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22411         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22412         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22413         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
22414         unconditionally.
22415
22416 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
22417
22418         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
22419           for (const_int 0) in X not just INTVAL.
22420
22421 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
22422
22423         * doc/extend.texi: Avoid or reduce overfull hboxes.
22424
22425 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
22426
22427         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
22428         operations if the field does not start at a mode boundary.
22429
22430 2001-02-20      Joel Sherrill <joel@OARcorp.com>
22431
22432         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
22433         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
22434         Also done for -Acpu and -Amachine.
22435
22436 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
22437
22438         * cppinit.c (init_dependency_output): Take deps output file
22439         from -o if none given with -MF.  Suppress normal output.
22440         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
22441         * doc/cpp.texi, doc/invoke.texi: Update.
22442
22443 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
22444
22445         * toplev.c (output_quoted_string): Write unprintable
22446         characters with octal escapes.
22447
22448 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
22449
22450         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
22451         really_call_used[VRSAVE_REGNO] if not Altivec.
22452
22453 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
22454
22455         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
22456         MODE_MASK.
22457         (constant_pool_expr_1): Fix formatting.
22458         (rs6000_legitimize_reload_address): Likewise.
22459
22460 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22461
22462         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
22463         now that we have one.
22464
22465 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
22466
22467         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
22468         end of first block of bitfields (which was only seven bits);
22469         rename dummy to unused_1; remove comment which is no longer true.
22470
22471 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
22472
22473         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
22474
22475 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
22476
22477         PR 5399
22478         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
22479         if generating PIC.
22480
22481         PR 5054
22482         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
22483         arm_is_longcall_p rather than inspecting call-type cookie
22484         directly.
22485         (call_value_insn) [TARGET_THUMB]: Likewise.
22486
22487 2002-02-19  Graham Stott  <grahams@redhat.com>
22488
22489         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
22490
22491 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
22492
22493         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
22494         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
22495         (FP_SAVE_INLINE): Delete.
22496
22497         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
22498         * config/rs6000/eabi.asm: Remove ABI save restore routines.
22499         * config/rs6000/t-ppccomm: Build crtsavres.o.
22500         * config/rs6000/crtsavres.asm: New file.
22501
22502 2002-02-19  Philip Blundell  <philb@gnu.org>
22503
22504         * config/arm/arm.c (use_return_insn): Don't reject interrupt
22505         functions.
22506         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
22507         (output_return_instruction): Allow interrupt functions to return with
22508         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
22509         (arm_expand_prologue): Subtract 4 before stacking LR in an
22510         interrupt function.
22511
22512 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
22513
22514         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
22515         decl, not just FUNCTION_DECL.
22516         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
22517         (arm_assemble_integer): Likewise.
22518         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
22519         marked local.
22520
22521 2002-02-19  matthew green  <mrg@eterna.com.au>
22522
22523         * config.gcc (sparc-*-netbsdelf*): Enable target.
22524         (sparc64-*-netbsd*): New target.
22525         * config/sparc/netbsd-elf.h: New file.
22526         * config/sparc/t-netbsd64: New file.
22527
22528 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
22529
22530         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
22531
22532 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
22533
22534         * doc/invoke.texi: explicitly list the style guidelines that
22535         -Weffc++ checks for.
22536
22537 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
22538
22539         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
22540
22541 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
22542
22543         PR other/5718
22544         * gcc.c (cpp_unique_options): Treat -o as indicating object file
22545         only if not -E.  If -E, pass -o through to the preprocessor.
22546
22547 2002-02-19  Kazu Hirata  <kazu@hxi.com>
22548
22549         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
22550         register number with an appropriate macro.
22551
22552 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
22553
22554         * doc/rtl.texi (Constants): Close @code tag.
22555
22556 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
22557
22558         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
22559         ("mmx_uavgv4hi3"): Same.
22560         ("pmulhrwv4hi3"): Same.
22561
22562         * tree-inline.c (walk_tree): Handle vectors.
22563
22564         * c-common.c (constant_expression_warning): Handle vectors.
22565         (overflow_warning): Same.
22566
22567         * sched-deps.c (sched_analyze_2): Handle vectors.
22568
22569         * rtlanal.c (rtx_unstable_p): Handle vectors.
22570         (rtx_varies_p): Same.
22571         (count_occurrences): Same.
22572         (regs_set_between_p): Same.
22573         (modified_between_p): Same.
22574         (modified_in_p): Same.
22575         (volatile_insn_p): Same.
22576         (volatile_refs_p): Same.
22577         (side_effects_p): Same.
22578         (may_trap_p): Same.
22579         (inequality_comparisons_p): Same.
22580         (replace_regs): Same.
22581         (computed_jump_p_1): Same.
22582
22583         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
22584         argument.
22585         (inner_mode_array): New.
22586         (copy_rtx): Handle vectors.
22587         (copy_most_rtx): Same.
22588         (rtx_equal_p): Same.
22589         (get_mode_alignment): Adjust for vectors.
22590
22591         * resource.c (mark_referenced_resources): Handle vectors.
22592         (mark_set_resources): Same.
22593
22594         * reload1.c (eliminate_regs): Handle vectors.
22595         (elimination_effects): Same.
22596         (scan_paradoxical_subregs): Same.
22597
22598         * reload.c (subst_reg_equivs): Handle vectors.
22599
22600         * regrename.c (scan_rtx): Handle vectors.
22601
22602         * regclass.c (reg_scan_mark_refs): Handle vectors.
22603
22604         * recog.c (find_single_use_1): Handle vectors.
22605
22606         * local-alloc.c (equiv_init_varies_p): Handle vectors.
22607         (contains_replace_regs): Same.
22608         (memref_referenced_p): Same.
22609
22610         * integrate.c (copy_rtx_and_substitute): Handle vectors.
22611         (subst_constants): Same.
22612
22613         * genattrtab.c (attr_copy_rtx): Handle vectors.
22614         (encode_units_mask): Same.
22615         (clear_struct_flag): Same.
22616         (count_sub_rtxs): Same.
22617
22618         * gcse.c (want_to_gcse_p): Handle vectors.
22619         (oprs_unchanged_p): Same.
22620         (hash_expr_1): Same.
22621         (oprs_not_set_p): Same.
22622         (expr_killed_p): Same.
22623         (compute_transp): Same.
22624         (store_ops_ok): Same.
22625
22626         * function.c (purge_addressof_1): Do not allow paradoxical subregs
22627         of vectors.
22628         (fixup_var_refs_1): Same.
22629         (instantiate_virtual_regs_1): Same.
22630
22631         * fold-const.c (operand_equal_p): Handle vectors.
22632         (fold): Same.
22633         (rtl_expr_nonnegative_p): Same.
22634
22635         * flow.c (mark_used_regs): Handle vectors.
22636
22637         * df.c (df_uses_record): Handle vectors.
22638
22639         * cselib.c (cselib_subst_to_values): Handle vectors.
22640         (cselib_mem_conflict_p): Same.
22641         (hash_rtx): Same.
22642
22643         * cse.c (canon_reg): Handle vectors.
22644         (fold_rt): Same.
22645         (cse_process_notes): Same.
22646         (count_reg_usage): Same.
22647         (canon_hash): Same.
22648
22649         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
22650
22651         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
22652
22653         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
22654         (gen_rtx): Handle CONST_VECTOR.
22655         (gen_const_vector_0): New.
22656         (copy_rtx_if_shared): CONST_VECTORs can be shared.
22657         (reset_used_flags): Same.
22658         (copy_insn_1): Same.
22659         (initializer_constant_valid_p): Handle VECTOR_CST.
22660
22661         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
22662
22663         * doc/rtl.texi (Constants): Document const_vector.
22664         (CONST0_RTX): Update for vectors.
22665         (RTL sharing): Same.
22666
22667         * print-tree.c (print_node): Add case for VECTOR_CST.
22668
22669         * tree.h (TREE_VECTOR_CST_ELTS): New.
22670         (struct tree_vector): New.
22671         (union tree_node): Add vector node.
22672         (build_vector): Add prototype.
22673
22674         * tree.def (VECTOR_CST): New.
22675
22676         * tree.c (build_vector): New.
22677
22678         * expmed.c (make_tree): Handle CONST_VECTOR.
22679
22680         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
22681         (CONST_VECTOR_ELT): New.
22682         (CONST_VECTOR_NUNITS): New.
22683
22684         * machmode.h (GET_MODE_INNER): New.
22685         (DEF_MACHMODE): Accept 8th arg.
22686
22687         * machmode.def: Add 8th argument for vector inner mode.
22688         Add inner vector modes for vectors.
22689
22690         * rtl.def (VEC_CONST): Remove.
22691         (CONST_VECTOR): New.
22692
22693         * expr.c (clear_storage): Allow vectors.
22694         (is_zeros_p): Handle VECTOR_CST.
22695
22696         * varasm.c (output_constant_pool): Handle vectors.
22697         (rtx_const): Add veclo and vechi fields.
22698         (kind): Add RTX_VECTOR.
22699         (decode_rtx_const): Add case for vector.
22700
22701         * config/rs6000/rs6000-protos.h: Add zero_constant.
22702
22703         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
22704         constants.  Force easy vector constants into memory.
22705         (easy_vector_constant): New.
22706         (emit_easy_vector_constant): New.
22707         (rs6000_legitimize_reload_address): Do not generate bad reloads on
22708         darwin.
22709
22710         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
22711         instruction does.
22712         ("altivec_lvxl"): Same.
22713         (altivec_lvebx): Same.
22714         (altivec_lvehx): Same.
22715         (altivec_lvewx): Same.
22716         ("*movv4si_const0"): New.
22717         ("*movv4sf_const0"): New.
22718         ("*movv8hi_const0"): New.
22719         ("*movv16qi_const0"): New.
22720
22721 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22722
22723         * config/h8300/h8300.c (notice_update_cc): Use
22724         cc_status.value2.
22725
22726 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22727
22728         * config/h8300/h8300.md (divmod patterns): Change the
22729         constraints for operands[1] to register_operand.
22730
22731 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22732
22733         * config/h8300/h8300-protos.h: Remove the prototype for
22734         p_operand.
22735         * config/h8300/h8300.c (p_operand): Remove.
22736         * config/h8300/h8300.md: Replace p_operand with
22737         const_int_operand.
22738
22739 2002-02-18 Philip Blundell <pb@nexus.co.uk>
22740
22741         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
22742         comment.
22743         (output_return_instruction): Allow use of LDR to unstack
22744         return addresss even for interrupt handlers or when
22745         interworking.  If compiling for ARMv5, use interworking-safe
22746         return instructions by default.  Remove duplicated code and
22747         lengthy "strcat" sequences.
22748
22749 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22750
22751         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
22752         (LINK_EH_SPEC): Define.
22753         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
22754
22755 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
22756
22757         * config/s390/s390.c (s390_emit_prologue): Do not set the
22758         frame_related flag for call-clobbered registers.
22759
22760 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
22761
22762         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
22763         (construct_container): Fix handling of SSE operands.
22764         (ix86_expand_builtin): Fix handling of 64bit pointers.
22765         (mmx_maskmovq_rex): New pattern.
22766
22767 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
22768
22769         * regrename.c (kill_set_value): Handle subregs properly.
22770
22771 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
22772
22773         * objc/objc-act.c (handle_impent): Remove leading '*'
22774         from objc_class_name.
22775
22776 2002-02-17  Richard Henderson  <rth@redhat.com>
22777
22778         * config/alpha/alpha.c (some_small_symbolic_operand,
22779         some_small_symbolic_operand_1, split_small_symbolic_operand,
22780         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
22781         Handle small SYMBOL_REFs anywhere, not just inside memories.
22782         * config/alpha/alpha-protos.h: Update.
22783         * config/alpha/alpha.h (PREDICATE_CODES): Update.
22784         * config/alpha/alpha.md (small symbolic operand splitter): Update.
22785
22786 2002-02-17  Roland McGrath  <roland@frob.com>
22787
22788         * config.gcc (powerpc-*-gnu-gnualtivec*,
22789         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
22790         * config/rs6000/gnu.h: New file.
22791         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
22792         Grok "gnu" in rs6000_abi_name.
22793         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
22794         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
22795         Grok -mcall-gnu analogous to -mcall-linux et al.
22796         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22797         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
22798         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
22799
22800 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
22801
22802         PR c/3444:
22803         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
22804         shortening.
22805
22806 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22807
22808         * config/cris/cris.h: Undefine STARTFILE_SPEC and
22809         ENDFILE_SPEC before (re)defining them.
22810
22811 2002-02-17  Kazu Hirata  <kazu@hxi.com>
22812
22813         * config/h8300/h8300.c: Fix formatting.
22814         * config/h8300/h8300.h: Likewise.
22815
22816 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22817
22818         * doc/tm.texi: Explain why empty strings should not be
22819         marked for translation.
22820
22821 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22822
22823         * final.c (output_operand_lossage): Changed to accept
22824         printf style arguments. Change calls where necessary.
22825         * output.h (output_operand_lossage): Change declaration
22826         accordingly. Update copyright.
22827         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
22828         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
22829         Update copyright date where necessary.
22830
22831         * config/i386/i386.c (print_operand): Likewise. Remove use of
22832         sprintf.
22833
22834         * config/cris/cris.c (cris_operand_lossage): Likewise.
22835         Rename parameter so that exgettext recognizes it as
22836         translatable message.
22837         (LOSE_AND_RETURN): Rename parameter to msgid.
22838
22839 2002-02-17  Kazu Hirata  <kazu@hxi.com>
22840
22841         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
22842         hard coded register number with an appropriate macro.
22843         (HARD_REGNO_MODE_OK): Likewise.
22844         (ARG_POINTER_REGNUM): Likewise.
22845         (STATIC_CHAIN_REGNUM): Likewise.
22846         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
22847         * config/h8300/h8300.md (define_constants): Define more
22848         register numbers.
22849
22850 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22851
22852         * config/i386/i386.h: Don't mark empty strings for translation.
22853
22854 2002-02-16  H.J. Lu <hjl@gnu.org>
22855
22856         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
22857
22858 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
22859
22860         * cppinit.c (merge_include_chains): Check for brack being
22861         NULL before attempting to merge it with qtail.
22862
22863 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
22864
22865         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
22866         DBX_DEBUG.
22867
22868 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22869
22870         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
22871
22872 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22873
22874         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
22875         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
22876         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
22877
22878 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22879
22880         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
22881         now only if !TARGET_FIX.
22882         (*movsi_nt_vms_fix): New pattern.
22883
22884 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
22885
22886         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
22887         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
22888         (alpha_sa_mask, alpha_sa_size): Reflect above change.
22889         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
22890         (alpha_start_function, alpha_expand_epilogue): Likewise.
22891         (unicosmk_gen_dsib): Likewise.
22892
22893 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22894
22895         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
22896
22897 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
22898
22899         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
22900         check_and_change_labels, s390_final_chunkify): Delete.
22901         (s390_split_branches, s390_chunkify_pool): New functions.
22902         (s390_function_prologue): Call them.
22903
22904         * config/s390/s390.h (S390_REL_MAX): Delete.
22905         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
22906
22907         * config/s390/s390.md (cjump, icjump, jump): Fix length
22908         attribute calculation.
22909
22910
22911 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
22912
22913         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
22914         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
22915
22916 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22917
22918         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
22919         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
22920         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
22921
22922 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
22923
22924         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
22925
22926 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
22927
22928         * reload.c (find_dummy_reload): Check that an output register
22929         is valid for its mode.
22930
22931 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
22932
22933         * combine.c (known_cond): After replacing the REG of a SUBREG, try
22934         to simplify it.
22935
22936         * function.c (assign_parms): Demote promoted argument passed by
22937         transparent reference.
22938
22939 2001-02-14      Joel Sherrill <joel@OARcorp.com>
22940
22941         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
22942         -Acpu() and -Amachine() to eliminate warnings.
22943
22944 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
22945
22946         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
22947
22948 2002-02-14  Kazu Hirata  <kazu@hxi.com>
22949
22950         * config/h8300/h8300-protos.h: Update the prototype for
22951         const_costs.
22952         * config/h8300/h8300.c (const_costs): Treat SET as a little
22953         more expensive operation.
22954         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
22955         reference to const_costs.
22956
22957 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
22958
22959         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
22960
22961 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
22962
22963         PR c/5503:
22964         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
22965         use arguments from newtype.
22966
22967 2002-02-13  Eric Christopher  <echristo@redhat.com>
22968
22969         * config/mips/mips.c (override_options): Add check for march/mipsX
22970         on the same command line. Fix error message in cpu processing.
22971         Remove architecture and ISA checks.
22972
22973 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
22974
22975         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
22976
22977         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
22978
22979 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
22980
22981         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
22982         alternatives.
22983         ("*movv8hi_internal1"): Same.
22984         ("*movv16qi_internal1"): Same.
22985         ("*movv4sf_internal1"): Same.
22986
22987         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
22988         not push_reload for altivec modes.
22989
22990 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
22991
22992         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
22993         all RTEMS targets including removal of #includes from config/*/rtems*.h
22994         file and adding them to tm_file setting. Added xm_defines=POSIX to
22995         many targets.
22996         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
22997         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
22998         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
22999         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
23000         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
23001         config/m68k/rtemself.h: Ditto.
23002         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
23003         config/mips/rtems64.h: Ditto.
23004         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
23005         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
23006         Ditto.
23007         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
23008         config/sparc/rtemself.h: Ditto.
23009         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
23010         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
23011         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
23012         more like arm-elf.
23013         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
23014         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
23015         target made more similar to i386-elf.
23016         * config/i386/t-rtems-i386: Added soft float support and multilibs.
23017         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
23018         be similar to config/m68k/t-m68kelf.
23019         * gthr-rtems.h: Encapsulate with extern "C" for C++.
23020
23021 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
23022
23023         * regmove.c (kill_value): Handle subregs.
23024
23025 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
23026
23027         * i386.md (mul patterns): Allow memory operand to be first;
23028         add expanders where needed; fix constraints.
23029         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
23030         Allow memory operand to be the first.
23031
23032         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
23033         operands.
23034
23035 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23036
23037         PR c/5681:
23038         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
23039         GET_MODE (x).
23040
23041 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23042
23043         PR optimization/5547:
23044         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
23045         all valid IA-32 address modes involving non-scaled %ebx and
23046         GOT/GOTOFF as displacement.
23047
23048 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
23049
23050         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
23051         after emitting ltorg insns.
23052
23053         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
23054         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
23055         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
23056         *abssf2): Fix "op_type" attribute.
23057
23058 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
23059
23060         * mkconfig.sh: Avoid using a subshell redirect.
23061         ($output.T): Change to $(output)T.
23062         (ENABLE_NLS): Remove unneeded undef.
23063
23064         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
23065         * config/alpha/x-vms (libsubdir): Define.
23066
23067         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
23068         register frame procedures. Optimize retrieving context.
23069
23070         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
23071         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
23072         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
23073
23074 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23075
23076         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
23077         Make same change as for find_base_value.
23078
23079 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23080
23081         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
23082         of QImode and SImode.
23083
23084 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23085
23086         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
23087         length computation of movsi.
23088         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
23089
23090 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23091
23092         * config/h8300/h8300.md (subqi3): Tighten the predicate for
23093         operands[2] to register_operand.
23094
23095 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
23096
23097         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
23098
23099 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
23100
23101         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
23102         for altivec_lvx* and altivec_stvx*.
23103         ("*movv4si_internal"): Add constraint for loading from GPRs.
23104         ("*movv8hi_internal1"): Same.
23105         ("*movv16qi_internal1"): Same.
23106         ("*movv4sf_internal1"): Same.
23107
23108         * config/rs6000/rs6000.c (altivec_register_operand): New.
23109
23110         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
23111         altivec_register_operand.
23112
23113 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
23114
23115         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
23116         handle SYMBOL_REF.
23117
23118 2002-02-13  Stan Shebs  <shebs@apple.com>
23119
23120         * c-typeck.c (digest_init): Handle vectors.
23121         (really_start_incremental_init): Same.
23122         (pop_init_level): Same.
23123         (process_init_element): Same.
23124
23125         * varasm.c (output_constant): Same.
23126
23127         * expr.c (clear_storage): Same.
23128         (store_constructor): Same.
23129
23130 2002-02-12  Eric Christopher  <echristo@redhat.com>
23131
23132         * explow.c (hard_function_value): Add comment explaining
23133         signed/unsigned comparison.
23134
23135 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
23136
23137         * jump.c (never_reached_warning): Add finish argument.
23138         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
23139         real insn after end.
23140         * rtl.h (never_reached_warning): Adjust prototype.
23141         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
23142         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
23143         never_reached_warning.
23144
23145 2002-02-12  Graham Stott  <grahams@redhat.com>
23146
23147         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
23148
23149 2002-02-12  Kazu Hirata  <kazu@hxi.com>
23150
23151         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
23152         logical shifts on H8/300.
23153         (shift_alg_si): Improve several shifts on H8/300.
23154         (get_shift_alg): Likewise.
23155
23156 2002-02-12  Graham Stott  <grahams@redhat.com>
23157
23158         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
23159
23160 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23161
23162         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
23163         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
23164
23165 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
23166
23167         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
23168         non-CONST_INT through default_assemble_integer.
23169         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
23170         <case 8>: Abort for CONST_DOUBLE.
23171
23172 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23173
23174         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
23175         is specified.
23176         * config/pa/pa-linux.h (LIB_SPEC): Delete.
23177         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
23178
23179 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
23180
23181         * config/stormy16/stormy16.md (zero_extendqihi2): New.
23182
23183 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
23184
23185         * regrename.c (regrename_optimize): Don't accept a
23186         part-clobbered register if the replaced register is not part
23187         clobbered.
23188
23189         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
23190         take padding into account when computing the argument value.
23191
23192         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
23193
23194         * combine.c (try_combine): Apply substitutions in
23195         CALL_INSN_FUNCTION_USAGE too.
23196
23197 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
23198
23199         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
23200         __builtin_altivec_abs*.
23201         (bdesc_abs): New.
23202
23203         * config/rs6000/rs6000.h (rs6000_builtins): Add
23204         ALTIVEC_BUILTIN_ABS*.
23205
23206         * config/rs6000/altivec.h: Use const char for builtins expecting
23207         literals.
23208         (vec_abs): New versions for C and C++.
23209         (vec_abss): Same.
23210
23211 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23212
23213         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
23214         using Pmode.
23215
23216 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23217
23218         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
23219         constant definition from h8300.md.
23220         (FRAME_POINTER_REGNUM): Likewise.
23221         * config/h8300/h8300.md (define_constants): Add FP_REG.
23222
23223 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23224
23225         * config/h8300/h8300.c (print_operand): Remove redundant code.
23226
23227 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23228
23229         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
23230         * config/h8300/h8300.c (byte_reg): Make it static.
23231
23232 2002-02-10  Richard Henderson  <rth@redhat.com>
23233
23234         PR c/5623
23235         * c-typeck.c (incomplete_type_error): Handle flexible array members.
23236
23237 2002-02-10  Richard Henderson  <rth@redhat.com>
23238
23239         PR c++/5624
23240         * tree.c (append_random_chars): Don't abort if main_input_filename
23241         does not exist.
23242
23243 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
23244
23245         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
23246
23247 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23248
23249         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
23250         (pushhi1): Likewise.
23251
23252 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23253
23254         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
23255         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
23256
23257 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
23258
23259         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
23260         remove MASK_VIS.
23261         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
23262
23263 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23264
23265         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
23266         a half of an SImode register on H8/300.
23267
23268 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
23269
23270         * i386.md (movdi_2): Add missing '!'.
23271
23272 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23273
23274         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
23275         definitions.
23276
23277 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23278
23279         * config/h8300/h8300.md (length): Correct the distance valid
23280         for the short branch.
23281
23282 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23283
23284         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
23285
23286 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
23287
23288         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
23289         registers in SImode.
23290         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
23291         part-clobbered.
23292
23293         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
23294         patch.
23295
23296         Contribute sh64-elf.
23297         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
23298         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
23299         (sh_cannot_modify_jumps_p): New function.
23300         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
23301         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
23302         (sh_ms_bitfield_layout_p): New function.
23303         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
23304                     Zack Weinberg  <zack@codesourcery.com>
23305         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
23306         expand_simple_binop instead of expand_binop.
23307         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
23308         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
23309         use of .quad and .uaquad.
23310         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
23311         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
23312         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23313         * config/sh/sh.md (movdi_const, movdi_const_32bit,
23314         movdi_const_16bit): Make sure all CONSTs have modes.
23315         (sym2PIC): Ditto, but by adjusting all callers.
23316         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
23317         if the prologue calls the SHmedia argument decoder or register
23318         saver.
23319         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23320         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
23321         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
23322         (sh_expand_epilogue): Don't emit USE of return target register.
23323         (prepare_move_operands): Legitimize DImode PIC addresses.
23324         (sh_media_register_for_return): Skip tr0, used to initialize the
23325         PIC register.
23326         (sh_expand_prologue): Remove explicit USE of return register.
23327         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
23328         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
23329         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
23330         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
23331         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
23332         EXTRA_CONSTRAINT_T.
23333         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
23334         (MOVI_SHORI_BASE_OPERAND_P): New.
23335         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
23336         (EXTRA_CONSTRAINT_T): Define in terms of them.
23337         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
23338         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
23339         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
23340         alternatives supporting TARGET_REGS.
23341         (UNSPEC_GOTPLT): New constant.
23342         (movdi split): Move incrementing of LABEL_NUSES...
23343         (movdi_const, movdi_const_32bit): Here.  Use
23344         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
23345         (movdi_const_16bit): New.
23346         (call, call_value) [flag_pic]: Use GOTPLT.
23347         (call_pop, call_value_pop): New expands.
23348         (call_pop_compact, call_pop_rettramp): New insns.
23349         (call_value_pop_compact, call_value_pop_rettramp): New insns.
23350         (sibcall) [flag_pic]: Use GOT.
23351         (builtint_setjmp_receiver): Remove bogus, unused expand.
23352         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
23353         (*pt, *ptb, ptrel): New insns.
23354         (sym2GOT): Handle DImode GOT.
23355         (sym2GOTPLT, symGOTPLT2reg): New expands.
23356         (sym2PIC): New expand.
23357         (shcompact_return_tramp): Use GOTPLT to return trampoline.
23358         (shcompact_return_tramp_i): Use return register explicitly.
23359         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
23360         disable flag_reorder_blocks.
23361         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
23362         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
23363         clobbers, for clarity.
23364         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
23365         restoring of r0 in macl as MAYBE_DEAD.
23366         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
23367         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
23368         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
23369         alter_subreg all over.
23370         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
23371         reload, instead of emitting instructions that would require
23372         reloading.
23373         (casesi_load_media): Add missing modes.
23374         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
23375         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
23376         as used if the argument decoder is called.
23377         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
23378         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
23379         Pmode, then extend it to DImode if necessary.
23380         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
23381         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
23382         constants in FPU-enabled SHmedia, let them be loaded from memory.
23383         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
23384         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
23385         Adjust whitespace in assembly output templates.
23386         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
23387         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
23388         mode of if_then_else.
23389         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
23390         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
23391         sh.h.
23392         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
23393                     Joern Rennecke <amylaar@redhat.com>
23394         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
23395         (SUBTARGET_CPP_PTR_SPEC): New.
23396         (SUBTARGET_CPP_SPEC): Remove.
23397         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
23398         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
23399         Fix typo in previous checkin.
23400         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
23401         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
23402         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
23403                     Alexandre Oliva  <aoliva@redhat.com>
23404         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
23405         what single FP register can hold for SHmedia target.
23406         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
23407                     Alexandre Oliva  <aoliva@redhat.com>
23408         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
23409         Do not split into SUBREG.
23410         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
23411         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
23412         and added new functions as specified in SH5 ABI r9.
23413         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
23414         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
23415         8-byte boundary.
23416         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
23417         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
23418         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
23419         and consttable_window_ends.
23420         2001-06-03  Graham Stott  <grahams@redhat,com>
23421         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
23422         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
23423         * config/sh/sh.c (print_operand): Handle floating-point pair,
23424         vector and matrix registers.
23425         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
23426         vector modes into account.
23427         * config/sh/sh.md (movv2sf): Split move between registers into
23428         movdf.
23429         (movv4sf, movv16sf): Introduce insns that get split only after
23430         reload.
23431         * config/sh/shmedia.h: Fix Copyright dates.
23432         * config/sh/ushmedia.h: Likewise.  Move loop counter
23433         declarations into conditionals that uses them.
23434         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
23435         loop boundary.
23436         * config/sh/sshmedia.h: Fix Copyright dates.
23437         (sh_media_PUTCFG): Fix constraints.
23438         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
23439         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
23440         ptrmemfunc_vbit_in_delta for SH5.
23441         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
23442         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
23443         * invoke.texi: Likewise.
23444         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
23445         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
23446         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
23447         GCC_pop_shmedia_regs_nofpu): New global symbols.
23448         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
23449         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
23450         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
23451         compact function with nonlocal labels.
23452         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
23453         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
23454         (initial_elimination_offset): Account for their stack space.
23455         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
23456         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
23457         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
23458         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
23459         least one of the operands to be a register.
23460         (movv2sf): Likewise.  Renamed to movv2sf_i.
23461         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
23462         prepare_move_operands() before emitting SHmedia insns.
23463         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
23464         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
23465         Don't save nor initialize r12.  Don't mis-align the stack.
23466         Pad the code with a nop.
23467         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
23468         stack.
23469         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
23470         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
23471         [__SHMEDIA__]: Implement.
23472         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
23473         * config/sh/sh.md: Set latency of `pt' closer to reality.
23474         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
23475         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
23476         Set move, load and store type attributes.
23477         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
23478         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
23479         profiling.
23480         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
23481         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
23482         * config/sh/sh.c (sh_media_register_for_return): New function.
23483         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
23484         branch-target register.
23485         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
23486         * config/sh/sh.md (return_media_i): Use any call-clobbered
23487         branch-target register.
23488         (return_media): If r18 wasn't copied in the prologue, copy it
23489         here.
23490         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
23491         Clear class FP0_REGS.
23492         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
23493         from elf.h.
23494         2001-03-08  DJ Delorie  <dj@redhat.com>
23495         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
23496         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
23497         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
23498         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
23499         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
23500         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
23501         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
23502         return value correctly for call_cookie.
23503         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
23504         * config/sh/crt1.asm (start): Modified so as to call
23505         ___setup_argv_and_call_main.
23506         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
23507         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
23508         SHmedia mode.
23509         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
23510         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
23511         (STRIP_NAME_ENCODING): Use it.
23512         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
23513         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
23514         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
23515         prepare_scc_operands().
23516         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
23517         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
23518         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
23519         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
23520         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
23521         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
23522         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
23523         used in shcompact_incoming_args.
23524         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
23525         change.
23526         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
23527         mode.
23528         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
23529         Adjust accordingly.
23530         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
23531         Simplify.  Adjust.  Add sanity check.
23532         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
23533         FPU_SINGLE_BIT.
23534         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
23535         TARGET_SHCOMPACT.
23536         (udivsi3, divsi3): Use them.
23537         (force_mode_for_call): New insn.
23538         (call, call_value, sibcall_value): Emit it before SHcompact
23539         calls.
23540         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
23541         * config/sh/sh.md (call, call_value, sibcall): Make sure the
23542         call cookie is non-NULL before taking its value.
23543         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
23544         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
23545         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
23546         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
23547         block.
23548         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
23549         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
23550         temporary for stack adjusts.  Use MACL and MACH to pass
23551         arguments to shcompact_incoming_args.
23552         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
23553         clobber r1.
23554         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
23555         (nested_trampoline): Load static chain address into r1.
23556         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
23557         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
23558         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
23559         fp_arith_reg_operand().
23560         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
23561         * config/sh/sh.md (casesi): Sign-extend the first two operands,
23562         and use signed compares for them.
23563         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
23564         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
23565         ones properly aligned.
23566         (find_barrier): Account for extra alignment needed for 8-byte wide
23567         constants.
23568         (machine_dependent_reorg): Require a label for the second 4-byte
23569         constant after an 8-byte one.
23570         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
23571         change.
23572         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
23573         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
23574         last_float when switching float modes.
23575         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
23576         auto-increment for general-purpose registers.
23577         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
23578         result.
23579         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
23580         for stack adjust.
23581         * config/sh/sh.c (sh_builtin_saveregs): Support using all
23582         registers for varargs.
23583         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
23584         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
23585         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
23586         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
23587         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
23588         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
23589         call_cookie accordingly.
23590         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
23591         (SHCOMPACT_BYREF): Likewise.
23592         (SHCOMPACT_FORCE_ON_STACK): New macro.
23593         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
23594         (sh_builtin_saveregs): Likewise.
23595         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23596         shcompact_incoming_args): Use new shift values.  Support
23597         sequences of consecutive and non-consecutive pushes/pops.
23598         * config/sh/sh.md (return): Don't explicitly use PR_REG.
23599         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
23600         * config/sh/sh.h (TEXT_SECTION): Define.
23601         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
23602         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
23603         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
23604         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
23605         return values on FPU-enabled SHmedia.
23606         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
23607         FPU-enabled SHmedia.
23608         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
23609         value is returned in a non-FP reg and is not returned by
23610         reference.
23611         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
23612         jump_ind.
23613         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
23614         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
23615         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
23616         quad-aligned to be passed by callee-copy reference.
23617         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
23618         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
23619         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
23620         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
23621         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
23622         copying low-numbered FP regs to r7 and r8.
23623         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
23624         FP regs to general-purpose regs only if the copy was passed on the
23625         stack.
23626         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
23627         copying FP reg to r9.
23628         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
23629         copy FP regs to general-purpose regs only in outgoing calls.
23630         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
23631         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
23632         HOST_WIDE_INT.
23633         * config/sh/sh.h (struct sh_args): Document all fields.
23634         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
23635         passed partially on the stack should not consider making
23636         sibcalls.
23637         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
23638         stack_regs only for incoming calls.  When passing FP args,
23639         make sure there are FP regs available before modifying
23640         call_cookie.
23641         (SHCOMPACT_BYREF): Pass double args in general-purpose
23642         registers by reference.
23643         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
23644         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
23645         attempt to generate sibcalls if the caller got any arguments
23646         by reference.
23647         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
23648         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
23649         to 8-byte boundaries.
23650         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
23651         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
23652         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
23653         stored in the stack.
23654         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
23655         for the offsets to have the ISA bit set.
23656         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
23657         invocation.  Use beq instead of bgt to mark end of sequence of
23658         loads.
23659         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
23660         bgt to mark end of sequence of stores.
23661         * config/sh/sh.c (arith_operand): Don't check whether
23662         CONST_OK_FOR_J for now.
23663         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
23664         instead of long for conversion.
23665         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
23666         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
23667         before passing it to fprintf.
23668         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
23669         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
23670         Call set_fpscr before reading/writing SR.
23671         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
23672         Call set_fpscr.
23673         * config/sh/lib1funcs.asm: Add `.align 2' directives before
23674         SHmedia code.
23675         (FMOVD_WORKS): Define on SH5 with FPU.
23676         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
23677         setting.
23678         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
23679         _fpscr_values.
23680         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
23681         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
23682         address.
23683         (ia_main_table): Ditto.
23684         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
23685         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
23686         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
23687         the definitions from sh.h.
23688         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
23689         TARGET_SH5.
23690         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
23691         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
23692         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
23693         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
23694         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
23695         Increment LABEL_NUSES.
23696
23697         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
23698         TARGET_SH5.
23699         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
23700         defined.
23701         * config/sh/elf.h (SIZE_TYPE): Likewise.
23702         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
23703         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23704         shcompact_incoming_args): Load switch table addresses using
23705         datalabel.
23706         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
23707         (NO_BUILTIN_SIZE_TYPE): Define.
23708         (SIZE_TYPE): Don't define.
23709         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
23710         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
23711         definition of __SH5__=32 for -m5-compact-nofpu.
23712         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
23713         ADDR_DIFF_VEC.
23714         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
23715         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
23716         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
23717         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
23718         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
23719         (INSN_LENGTH_ALIGNMENT): Likewise.
23720         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23721         * config/sh/sh.md (call, call_value, sibcall): Simplify
23722         copying of non-branch-target register.
23723         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23724         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
23725         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
23726         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23727         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
23728         floating-point values as structs.
23729         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
23730         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
23731         general-purpose register.
23732         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
23733         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
23734         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
23735         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
23736         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
23737         (ENCODE_SECTION_INFO): Enclose variables and constants in
23738         DATALABEL unspecs.
23739         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
23740         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
23741         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
23742         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
23743         only for LABEL_REFs.  For SYMBOL_REFs, prepend
23744         SH_DATALABEL_ENCODING to the symbol name.
23745         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
23746         convert_mode().
23747         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
23748         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
23749         UNSPEC_DATALABEL.
23750         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
23751         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
23752         (DATALABEL_REF_P): Don't require CONST.
23753         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
23754         REL label.
23755         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
23756         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
23757         right.
23758         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
23759         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
23760         Use shallow_copy_rtx and PUT_MODE to change the mode of
23761         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
23762         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
23763         on SHmedia using GENERAL_REGs.
23764         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
23765         bltu_media_i): Fix reversion of conditions.
23766         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
23767         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
23768         * config/sh/sh.c (output_far_jump): Save r13 in macl.
23769         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
23770         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
23771         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
23772         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
23773         (GCC_nested_trampoline): Likewise.
23774         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
23775         * config/sh/sh.c (gen_datalabel_ref): Define.
23776         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
23777         (INITIALIZE_TRAMPOLINE): Likewise.
23778         (TRAMPOLINE_ADJUST_ADDRESS): Define.
23779         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
23780         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
23781         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
23782         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
23783         (ic_invalidate): Adjust for SH5.
23784         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
23785         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
23786         _nested_trampoline.
23787         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
23788         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
23789         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
23790         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
23791         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
23792         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
23793         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
23794         * config/sh/sh.c (target_reg_operand): Match only target-branch
23795         registers and pseudos that aren't virtual registers.
23796         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
23797         Copy operands that don't match target_reg_operand to pseudos.
23798         (call_media, call_value_media, sibcall_media): Use
23799         target_reg_operand instead of target_operand.
23800         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
23801         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
23802         * config/sh/sh.c (target_reg_operand): Match hardware registers
23803         other than branch-target registers.
23804         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
23805         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
23806         (fpscr_values) [SH5 == 32]: Define.
23807         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
23808         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
23809         Handle function addresses coming in SUBREGs.
23810         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
23811         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23812         shcompact_return_trampoline): Use datalabel where appropriate.
23813         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
23814         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
23815         general-purpose register to copy one branch-target register to
23816         another.
23817         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
23818         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
23819         SYMBOL_REFs with VOIDmode.
23820         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
23821         bltu_media_i): New insns.
23822         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
23823         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
23824         (INIT_CUMULATIVE_ARGS): Likewise.
23825         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
23826         * machmode.def (V16SFmode): New mode.
23827         * c-common.c (type_for_mode): Support V2SF and V16SF.
23828         * tree.c (build_common_tree_nodes_2): Likewise.
23829         * tree.h (tree_index): Likewise.
23830         * calls.c (emit_call_1): Take args_so_far.  Adjust all
23831         callers.  Introduce CALL_POPS_ARGS.
23832         * tm.texi (CALL_POPS_ARGS): Document.
23833         * config/sh/crt1.asm: Implement in SHmedia mode.
23834         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
23835         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
23836         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
23837         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
23838         Implement divsi and udivsi in SHmedia mode.  Introduce
23839         SHcompact trampolines.
23840         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
23841         only in SHmedia64.
23842         (regno_reg_class): Rewrite.
23843         (fp_reg_names): Remove.
23844         (sh_register_names, sh_additional_register_names): New.
23845         (print_operand): Added `u'.  Support SUBREGs in addresses.
23846         Add parentheses around shifted CONSTs.
23847         (output_file_start): Output .mode and .abi directives.
23848         (shiftcosts, addsubcosts, multcosts): Adjust.
23849         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
23850         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
23851         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
23852         bytes, not registers.  Take into account the need for the
23853         SHcompact incoming args trampoline.  Adjust all callers.
23854         (sh_expand_prologue): Take stack_regs into account.  Call
23855         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
23856         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
23857         stack aligned as per SH5 ABI.
23858         (sh_builtin_saveregs): Support SH5 ABI.
23859         (sh_build_va_list, sh_va_start): Likewise.
23860         (initial_elimination_offset): Take alignment into account.
23861         Compute location of PR according to the SH5 stack frame.
23862         (arith_reg_operand): Reject branch-target registers.
23863         (shmedia_6bit_operand): New.
23864         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
23865         (target_reg_operand): Match DImode only.  Accept SUBREGs.
23866         (target_operand): New.
23867         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
23868         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
23869         SIBCALL_REGS for SHmedia.
23870         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
23871         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
23872         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
23873         (TARGET_SWITCHES): New SH5 flags.
23874         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
23875         VALID_REGISTER_P to disable unsupported registers.
23876         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
23877         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
23878         (FUNCTION_ARG_PADDING): Define.
23879         (FASTEST_ALIGNMENT): Adjust.
23880         (SH_REGISTER_NAMES_INITIALIZER): New.
23881         (sh_register_names): Declare.
23882         (DEBUG_REGISTER_NAMES): Define.
23883         (REGISTER_NAMES): Define based on sh_register_names.
23884         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
23885         (sh_additional_register_names): Declare.
23886         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
23887         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
23888         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
23889         (REGISTER_NATURAL_MODE): Define.
23890         (FIRST_PSEUDO_REGISTER): Adjust.
23891         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
23892         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
23893         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
23894         (VECTOR_MODE_SUPPORTED_P): Define.
23895         (REG_CLASS_CONTENTS): Adjust.
23896         (SMALL_REGISTER_CLASSES): Adjust.
23897         (REG_ALLOC_ORDER): Adjust.
23898         (INDEX_REG_CLASS): Adjust.
23899         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
23900         (CONST_OK_FOR_LETTER_P): Adjust.
23901         (PREFERRED_RELOAD_CLASS): Adjust.
23902         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
23903         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
23904         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
23905         (FIRST_FP_PARM_REG): Adjust.
23906         (CALL_POPS_ARGS): Define.
23907         (FUNCTION_ARG_REGNO_P): Adjust.
23908         (struct sh_args): New fields.
23909         (GET_SH_ARG_CLASS): Adjust.
23910         (INIT_CUMULATIVE_ARGS): Adjust.
23911         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
23912         (FUNCTION_ARG_ADVANCE): Adjust.
23913         (FUNCTION_ARG): Adjust.
23914         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
23915         (FUNCTION_ARG_CALLEE_COPIES): Define.
23916         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
23917         (STRICT_ARGUMENT_NAMING): Define.
23918         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
23919         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
23920         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
23921         (SETUP_INCOMING_VARARGS): Adjust.
23922         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
23923         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
23924         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
23925         (SUBREG_OK_FOR_INDEX_P): Adjust.
23926         (EXTRA_CONSTRAINT_S): Update.
23927         (EXTRA_CONSTRAINT_T): New.
23928         (EXTRA_CONSTRAINT): Adjust.
23929         (GO_IF_LEGITIMATE_INDEX): Adjust.
23930         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
23931         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
23932         (MOVE_MAX): Adjust.
23933         (MAX_MOVE_MAX): Define.
23934         (Pmode): Adjust.
23935         (CONST_COSTS): Adjust.
23936         (REGISTER_MOVE_COST): Adjust.
23937         (BRANCH_COST): Adjust.
23938         (TEXT_SECTION_ASM_OP): Adjust.
23939         (DBX_REGISTER_NUMBER): Adjust.
23940         (ASM_OUTPUT_DOUBLE_INT): New.
23941         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
23942         (PREDICATE_CODES): Adjust.
23943         (PROMOTE_MODE): Adjust.
23944         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
23945         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
23946         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
23947         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
23948         (DR0_REG, DR2_REG, DR4_REG): Renumber.
23949         (TR0_REG, TR1_REG, TR2_REG): New.
23950         (XD0_REG): Renumber.
23951         (UNSPEC_COMPACT_ARGS): New.
23952         (type): Added pt and ptabs.
23953         (length): Default to 4 on SHmedia.  Default pt length to 12
23954         and     20 on SHmedia32 and SHmedia64, respectively.
23955         (pt): New function unit.
23956         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
23957         Add whitespace between operands of SHmedia instructions.
23958         (movdicc): Fix.
23959         (adddi3_media, addsi3_media): Adjust constraints.
23960         (subsi3) [SHmedia]: Force operand 1 into a register.
23961         (udivsi3_i1_media, udivsi3_i4_media): New.
23962         (udivsi3): Support SHmedia.
23963         (divsi3_i1_media, divsi3_i4_media): New.
23964         (divsi3): Support SHmedia.
23965         (anddi3, iordi3, xordi3): Adjust constraints.
23966         (zero_extendhidi2, zero_extendqidi2): New.
23967         (extendsidi2, extendhidi2, extendqidi2): New.
23968         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
23969         (pop_e, pop_fpul, pop_4): Likewise.
23970         (movsi_media): Support FP and BT registers.
23971         (movsi_media_nofpu): New.  Adjust splits to DImode.
23972         (lduw, ldub): Renamed to zero_extend* above.
23973         (movqi_media): Fix typo.
23974         (movdi_media): Support FP and BT registers.
23975         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
23976         (movdi_const_32bit): New.
23977         (shori_media): Require immediate operand.  Use `u' for output.
23978         (movdf_media, movsf_media): Simplified.
23979         (movdf_media_nofpu, movsf_media_nofpu): New.
23980         (movdf, movsf): Adjust
23981         (movv2sf, movv2sf, movv16sf): New.
23982         (beq_media, beq_media_i): Adjust constraints.  Don't use
23983         scratch BT register.
23984         (bne_media, bne_media_i): Likewise.
23985         (bgt_media, bgt_media_i): Likewise.
23986         (bge_media, bge_media_i): Likewise.
23987         (bgtu_media, bgtu_media_i): Likewise.
23988         (bgeu_media, bgeu_media_i): Likewise.
23989         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
23990         bunordered): Emit jump insn.  Force operands to registers when
23991         needed.
23992         (jump_media, jump): Simplify.
23993         (call_compact, call_compact_rettramp): New.
23994         (call_value_compact, call_value_compact_rettramp): New.
23995         (call_media, call_value_media): Simplify.
23996         (sibcall_compact, sibcall_media): New.
23997         (call, call_value): Adjust for SHmedia and SHcompact.
23998         (sibcall, sibcall_value, untyped_call): Likewise.
23999         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
24000         (indirect_jump): Adjust for SHmedia.
24001         (casesi_jump_media): New.
24002         (nop): Re-enable for SHmedia.
24003         (call_site): Restrict to SH1.
24004         (casesi): Adjust for SHmedia.
24005         (casesi_shift_media, casesi_load_media): New.
24006         (return): Explicitly use PR register.  Call return trampoline
24007         on SHcompact.
24008         (return_i): Explicitly use PR register.
24009         (shcompact_return_tramp, shcompact_return_tramp_i): New.
24010         (return_media): Adjust.
24011         (shcompact_incoming_args): New.
24012         (epilogue): Adjust.
24013         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24014         (movstrsi): Disable on SH5.
24015         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
24016         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
24017         (subsf3, subsf3_media): Likewise.
24018         (mulsf3, mulsf3_media, mac_media): Likewise.
24019         (divsf3, divsf3_media): Likewise.
24020         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
24021         (floatsisf2, fux_truncsfsi2): Likewise.
24022         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
24023         constraints.
24024         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
24025         (cmpunsf_media, cmpsf): Likewise.
24026         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
24027         (abssf2, abssf2_media): Likewise.
24028         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
24029         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
24030         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
24031         (floatsidf2, fix_truncdfsi2): Likewise.
24032         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
24033         constraints.
24034         (cmpeqdf_media, cmpgtdf_media): Likewise.
24035         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
24036         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
24037         (absdf2, absdf2_media): Likewise.
24038         (extendsfdf2, extendsfdf2_media): Likewise.
24039         (truncsfdf2, truncsfdf2_media): Likewise.
24040         * config/sh/sh64.h: New file.
24041         * config/sh/t-sh64: New file.
24042         * config/sh/shmedia.h: New file.
24043         * config/sh/ushmedia.h: New file.
24044         * config/sh/sshmedia.h: New file.
24045         * configure.in: Added sh64-*-elf.
24046         * configure: Rebuilt.
24047         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
24048         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
24049         (reg_class_from_letter): Use `b' for TARGET_REGS.
24050         (print_operand): Support `%M', `%m', `AND' and
24051         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
24052         (andcosts): Adjust for SHmedia.
24053         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
24054         Likewise.
24055         (target_reg_operand): New function.
24056         * config/sh/sh-protos.h (target_reg_operand): Declare.
24057         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
24058         FP registers on SH5.
24059         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
24060         on SH4.
24061         (TARGET_REGISTER_P): New macro.
24062         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
24063         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
24064         (EXTRA_CONSTRAINT_S): New macro.
24065         (EXTRA_CONSTRAINT): Adjust.
24066         (FLOAT_TYPE_SIZE): Define to 32.
24067         (Pmode): DImode on SHmedia.
24068         (CONST_COSTS): Adjust for SHmedia literals.
24069         (PREDICATE_CODES): Added target_reg_operand.
24070         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
24071         * config/sh/sh.md: Remove all attrs from SHmedia insns.
24072         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
24073         (cmpdi): Accept SHmedia.
24074         (movdicc_false, movdicc_true): New insns.
24075         (movdicc): New expand.
24076         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
24077         no_new_pseudos.
24078         (addsi3_media): Match `S' constraint.
24079         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
24080         (negdi2): Expand for SHmedia.
24081         (one_cmpldi2): New expand.
24082         (zero_extendsidi2): Change from expand to insn.
24083         (extendsidi2): Add constraints.
24084         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
24085         LD/ST address.  Fix SI immediate loading split.
24086         (movhi_media, movqi_media, lduw, ldub): New insns.
24087         (movhi, movqi): Accept SHmedia.
24088         (shori_media, movdi_media): Relax input constraints.  Split
24089         symbolic constants.
24090         (movdf_media, movsf_media): New insn.  New split to movdi.
24091         (movdf, movsf): Match on SHmedia.
24092         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
24093         bgeu_media): New insns and splits.  New insns with `_i' suffix.
24094         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
24095         (bunordered): New expand.
24096         (jump_compact): Renamed from `jump'.
24097         (jump_media): New insn.
24098         (jump): New expand.
24099         (call_media, call_value_media): New insns.
24100         (call, call_value): Adjust.
24101         (indirect_jump_compact): Renamed from `indirect_jump'.
24102         (indirect_jump_media): New insn.
24103         (indirect_jump): New expand.
24104         (untyped_call, return): Accept SHmedia.
24105         (return_media): New insn.
24106         (prologue, epilogue, blockage): Accept SHmedia.
24107         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24108         (sunordered): New expand.
24109         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
24110         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
24111         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
24112         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
24113         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
24114         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
24115         abssf2_media): New insns.
24116         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
24117         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
24118         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
24119         floatdidf2, floatsidf2_media, fix_truncdfdi2,
24120         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
24121         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
24122         absdf2_media): New insns.
24123         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
24124         (extendsfdf2_media, truncdfsf2_media): New insns.
24125         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
24126         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
24127         * config/sh/sh.h (CONST_OK_FOR_J): Document.
24128         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
24129         * config/sh/sh.md (adddi3): New expand.
24130         (adddi3_media, adddi3z_media): New insns.
24131         (adddi3_compact): Renamed from adddi3.
24132         (addsi3_media): Use add.l r63 to add constant zero.
24133         (subdi3): New expand.
24134         (subdi3_media): New insn.
24135         (subdi3_compact): Renamed from subdi3.
24136         (mulsidi3): New expand.
24137         (mulsidi3_media): New insn.
24138         (mulsidi3_compact): Renamed from mulsidi3.
24139         (umulsidi3): New expand.
24140         (umulsidi3_media): New insn.
24141         (umulsidi3_compact): Renamed from umulsidi3.
24142         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
24143         (ashlsi3, ashrsi3, lshrsi3): Use them.
24144         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
24145         (ashldi3, ashrdi3, lshrdi3): Use them.
24146         (zero_extendsidi2): New expand.
24147         (extendsidi2): New insn.
24148         (movsi_media): New insn.  Split to movdi to load constants.
24149         (movsi): Enable for shmedia.
24150         (movdi_media): New insn.  Use shori_media to load wide constants.
24151         (short_media): New insn.
24152         (movdi): Enable for shmedia.
24153         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
24154         * config/sh/sh.h (CPP_SPEC): Added `m5'.
24155         (SUBTARGET_CPP_SPEC): Added `!m5'.
24156         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
24157         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
24158         to all other SH variants.
24159         (TARGET_DEFAULT): Set to SH1_BIT.
24160         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
24161         (BITS_PER_WORD): Raise to 64 on shmedia.
24162         (MAX_BITS_PER_WORD): Change to 64.
24163         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
24164         (INT_TYPE_SIZE): Keep as 32.
24165         (UNITS_PER_WORD): Raise to 8 on shmedia.
24166         (MIN_UNITS_PER_WORD): Keep as 4.
24167         (POINTER_SIZE): Raise to 64 on shmedia.
24168         (CONST_OK_FOR_J): New macro.
24169         (CONST_OK_FOR_LETTER_P): Use it.
24170         (processor_type): Add PROCESSOR_SH5.
24171         * config/sh/sh.md: Conditionalize all expands, insns and
24172         splits to TARGET_SH1.
24173         (cpu): Added sh5.
24174         (addsi3_compact): Renamed from...
24175         (addsi3): Now an expand.
24176         (addsi3_media, subsi3_media): New insns.
24177         (subsi3): Don't negate constants with SHmedia.
24178
24179         * hooks.c: New file.
24180         * hooks.h: New file.
24181         * Makefile.in (HOOKS_H): New.
24182         (TARGET_DEF_H): Added $(HOOKS_H).
24183         (OBJS): Added hooks.o.
24184         (cfgcleanup.o, bb-reorder.o): Added target.h.
24185         (hooks.o): Added dependencies.
24186         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
24187         (TARGET_INITIALIZER): this.
24188         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
24189         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
24190         * bb-reorder.c: Include target.h.
24191         (reorder_basic_blocks): Skip if cannot modify jumps.
24192         * cfgcleanup.c: Include target.h.
24193         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
24194
24195 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
24196
24197         * config/mips/mips.md (casesi_internal, casesi_internal_di):
24198         Protect jump delay slot instructions with .set noreorder and
24199         .set nomacro.
24200
24201 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
24202
24203         * config/mips/mips.md (casesi_internal_di): Calculate
24204         the index into the target offset table correctly.
24205
24206 2002-02-08  Richard Henderson  <rth@redhat.com>
24207
24208         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
24209         * final.c (output_addr_const): Accept and discard SUBREG.
24210         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
24211         mark them unknown instead.
24212         (simplify_subtraction): Handle RTX_UNKNOWN.
24213         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
24214
24215 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
24216
24217         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
24218
24219 2002-02-08  Richard Henderson  <rth@redhat.com>
24220
24221         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
24222
24223 2002-02-08  Andreas Jaeger  <aj@suse.de>
24224
24225         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
24226         * config/i386/t-linux64: New file.
24227
24228 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
24229
24230         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
24231         * c-parse.in (compstmt): Clear last_expr_type.
24232
24233 2002-02-07  Richard Henderson  <rth@redhat.com>
24234
24235         * loop.c (strength_reduce): Sink final_value when not
24236         eliminating a biv.
24237
24238 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
24239
24240         * config/sparc/freebsd.h: Fix mismatched spec {.
24241
24242 2002-02-07  Richard Henderson  <rth@redhat.com>
24243
24244         * cfgrtl.c: Include recog.h and insn-config.h.
24245         (keep_with_call_p): Fix general_operand invocation.
24246         * Makefile.in (cfgrtl.o): Update dependencies.
24247
24248 2002-02-07  Kazu Hirata  <kazu@hxi.com>
24249
24250         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
24251         comment.  Accept HImode only if TARGET_H8300.
24252
24253 2002-02-07  Eric Christopher  <echristo@redhat.com>
24254
24255         * config/mips/crtn.asm: Cleanup #ifdefs.
24256
24257 2002-02-07  Eric Christopher  <echristo@redhat.com>
24258
24259         * config/mips/crti.asm: Add changes for mips16. mips16 uses
24260         register 7 as RA instead of $31.
24261         * config/mips/crtn.asm: Ditto.
24262         * config/mips/mips.c (mips_move_2words): Add case for
24263         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
24264         (compute_frame_size): Fix typo.
24265         (save_restore_insns): Ditto.  Make documentation about using
24266         register $7 as return register more precise.
24267         (mips_expand_epilogue): Fix comment. Add code to work around not
24268         being able to add to the stack pointer directly.
24269         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
24270         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
24271         epilogue.
24272
24273 2002-02-07  Tom Rix  <trix@redhat.com>
24274
24275         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
24276         immediates in ldu and stdu DS opcode field.
24277         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
24278         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
24279         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
24280
24281 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
24282
24283         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
24284         offset for stack bias.
24285
24286 2002-02-07  H.J. Lu <hjl@gnu.org>
24287
24288         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
24289
24290 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
24291
24292         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
24293
24294 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
24295
24296         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
24297         * i386.c (x86_order_regs_for_local_alloc): New global function.
24298         * i386.h (REG_ALLOC_ORDER): CLeanup.
24299         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
24300
24301 2002-02-07  Richard Henderson  <rth@redhat.com>
24302
24303         PR optimization/2463
24304         * alias.c (find_base_value): Recall base values for fixed hard regs.
24305         * loop.c (loop_regs_update): Don't use single_set on non-insns.
24306
24307 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
24308
24309         * config/mips/mips.md (define_delay) [mips16]: Adjust required
24310         length.
24311
24312 2002-02-06  Richard Henderson  <rth@redhat.com>
24313
24314         PR c/5609
24315         * stmt.c (resolve_operand_name_1): Take more care with mixed
24316         named and unnamed operands.
24317
24318 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
24319             Jan Hubicka  <jh@suse.cz>
24320
24321         * loop.c (remove_constant_addition): Avoid clobbering a shared
24322         CONST expression.
24323
24324 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
24325
24326         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
24327         * config/s390/t-linux64: New file.
24328         * config/s390/libgcc-glibc.ver: New file.
24329
24330 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
24331
24332         * config/s390/linux64.h: Delete file.
24333         * config/s390/s390x.h: New file.
24334         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
24335         as target header file.
24336         * config/s390/linux.h (TARGET_VERSION): Define depending on
24337         DEFAULT_TARGET_64BIT.
24338         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
24339         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
24340         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
24341         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
24342         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
24343         (EXTRA_SPEC): New define.
24344         * config/s390/s390.h (TARGET_VERSION): Define depending on
24345         DEFAULT_TARGET_64BIT.
24346         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
24347
24348 2002-02-06  Jason Merrill  <jason@redhat.com>
24349
24350         * c-decl.c (finish_function): Warn about a non-void function with
24351         no return statement and no abnormal exit.
24352         (current_function_returns_abnormally): New variable.
24353         (start_function): Clear it.
24354         (struct c_language_function): Add returns_abnormally.
24355         (push_c_function_context): Save it.
24356         (pop_c_function_context): Restore it.
24357         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
24358         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
24359         an explicit return type.
24360         * c-tree.h: Declare current_function_returns_abnormally.
24361         (C_FUNCTION_IMPLICIT_INT): New macro.
24362         * c-typeck.c (build_function_call): Set it.
24363         (c_expand_return): Set current_function_returns_value even if the
24364         value is erroneous.
24365
24366 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
24367
24368         PR c/5420:
24369         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
24370         unsafe for reevaluation.
24371
24372 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
24373
24374         PR c/5482:
24375         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
24376         EXPR_STMT, but COMPOUND_STMT, recurse into it.
24377
24378 2002-02-06  Richard Henderson  <rth@redhat.com>
24379
24380         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
24381         be a general_operand.  Dest for function value must be a pseudo.
24382
24383 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
24384
24385         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
24386         as SYMBOL_REFs from the constant pool.
24387
24388 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
24389
24390         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
24391         passed by invisible reference.
24392
24393 2002-02-05  Richard Henderson  <rth@redhat.com>
24394
24395         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
24396
24397 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
24398
24399         Implement using "base addresses" in insn operands as default.
24400         * config/mmix/mmix.c (mmix_conditional_register_usage): if
24401         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
24402         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
24403         used to read the rtx value.
24404         (mmix_target_asm_function_epilogue): Fix spacing.
24405         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
24406         (mmix_legitimate_address): Ditto.
24407         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
24408         should be loaded with a GETA insn.  Don't allocate needless extra
24409         char for nul termination and fix misleading comment.
24410         (mmix_print_operand_address): Handle constants if
24411         TARGET_BASE_ADDRESSES.
24412         (mmix_output_register_setting): Use base addressing if
24413         TARGET_BASE_ADDRESSES and the number of insns is 3.
24414         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
24415         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
24416         to use R as constraint, add LDA to match s.
24417         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
24418         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
24419         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
24420         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
24421         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
24422         order with other fixed registers.
24423         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
24424         other parameter/call-clobbered registers.
24425         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
24426         -mbase-addresses, -mno-base-addresses.
24427         (MMIX Options): Ditto.
24428
24429 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24430
24431         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
24432
24433 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
24434
24435         * config/rs6000/altivec.h: Change elem to _S_elem.
24436
24437 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
24438
24439         * config/netbsd.h (WCHAR_TYPE): Define.
24440         (WCHAR_TYPE_SIZE): Ditto.
24441         (WINT_TYPE): Ditto.
24442         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
24443         (WCHAR_UNSIGNED): Ditto.
24444         (WCHAR_TYPE_SIZE): Ditto.
24445         (WINT_TYPE): Ditto.
24446         * config/arm/netbsd.h: Likewise.
24447         * config/i386/netbsd-elf.h: Likewise.
24448         * config/i386/netbsd.h: Likewise.
24449         * config/m68k/netbsd-elf.h: Likewise.
24450         * config/m68k/netbsd.h: Likewise.
24451         * config/ns32k/netbsd.h: Likewise.
24452         * config/sparc/netbsd.h: Likewise.
24453         * config/vax/netbsd.: Likewise.
24454
24455 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
24456
24457         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
24458         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
24459         (TARGET_INITIALIZER): this.
24460         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
24461         (BITFIELD_NBYTES_LIMITED): Markup fix.
24462         * tree.h (default_ms_bitfield_layout_p): Declare.
24463         (record_layout_info): Added prev_field.
24464         * tree.c (default_ms_bitfield_layout_p): New fn.
24465         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
24466         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
24467         * stor-layout.c: Include target.h.
24468         (start_record_layout): Initialize prev_field.
24469         (place_field): Handle MS bit-field layout, and disregard
24470         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
24471         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
24472         * Makefile.in (stor-layout.o): Adjust dependencies.
24473
24474 2002-02-05  Jason Merrill  <jason@redhat.com>
24475
24476         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
24477
24478 2002-02-05  Andreas Jaeger  <aj@suse.de>
24479
24480         * crtstuff.c: Fix comments.
24481
24482 2002-02-05  Richard Henderson  <rth@redhat.com>
24483
24484         PR fortran/3393
24485         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
24486         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
24487
24488         PR fortran/3392
24489         * config/mips/mips.c (function_arg): Handle TImode.
24490         (function_arg_advance): Likewise.
24491
24492 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24493
24494         * config/rs6000/altivec.h (vec_step_help): Rename to
24495         __vec_step_help.
24496
24497 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24498
24499         * config/rs6000/altivec.h: Fix typos.
24500
24501 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
24502
24503         * config/arm/netbsd.h: Correct a comment.
24504
24505 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24506
24507         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
24508         building void typed builtins.
24509
24510         * config/rs6000/altivec.h (vec_ld*): Fix typos.
24511         (vec_step): Implement for C++.
24512
24513 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24514
24515         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
24516
24517 2002-02-04  Richard Henderson  <rth@redhat.com>
24518
24519         * combine.c (nonzero_bits): Re-introduce special case for
24520         sp/fp/ap wrt REGNO_POINTER_ALIGN.
24521
24522 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24523
24524         * doc/extend.texi: Warn about unsupported usage of altivec
24525         builtins.
24526
24527         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
24528         (altivec_predicate_*): New.
24529
24530         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
24531         Add C++ version of vec_*() functions.
24532
24533         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
24534         (bdesc_2arg): Remove altivec predicates.
24535         (altivec_expand_builtin): Handle predicates.
24536         (altivec_init_builtins): Handle predicates.
24537         (altivec_expand_predicate_builtin): New.
24538
24539 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24540
24541         * pa.c (DO_FRAME_NOTES): Move forward.
24542         (store_reg): Revise handling of frame notes.
24543         (load_reg): Likewise.
24544         (set_reg_plus_d): Likewise.
24545         (hppa_expand_prologue): Likewise.
24546         (hppa_expand_epilogue): Likewise.
24547
24548 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24549
24550         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
24551
24552 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24553
24554         PR c/4475, c++/3780:
24555         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
24556         * c-common.h (SWITCH_TYPE): Define.
24557         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
24558         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
24559         Rename spareness variable to sparseness.
24560         (expand_end_case_type): Renamed from expand_end_case, use orig_type
24561         if non-NULL instead of TREE_TYPE (orig_index).
24562         * tree.h (expand_end_case_type): Renamed from expand_end_case.
24563         (expand_end_case): Define using expand_end_case_type.
24564         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
24565         to expand_end_case_type.
24566         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
24567
24568 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24569
24570         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
24571         (BIGGEST_ALIGNMENT): Change to 128.
24572
24573 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24574
24575         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
24576
24577 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24578
24579         * pa.md (call_internal_reg_64bit): Remove unused variable.
24580
24581 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
24582
24583         * config/arm/arm.h (machine_function): Add uses_anonymous_args
24584         field.
24585         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
24586         * config/arm/arm.c (current_function_anonymous_args): Delete,
24587         replace uses with cfun->machine->uses_anonymous_args.
24588         (arm_reorg): Do not reset uses_anonymous_args.
24589
24590         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
24591         any geenral register.
24592
24593 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
24594
24595         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
24596         the entry block.
24597
24598 2002-02-04  Richard Henderson  <rth@redhat.com>
24599
24600         * combine.c (force_to_mode): Remove STACK_BIAS code.
24601         (nonzero_bits): Likewise.  Replace sp/fp special case with
24602         REGNO_POINTER_ALIGN.
24603
24604         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
24605         (HARD_FRAME_POINTER_REGNUM): New.
24606         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
24607         (FIXED_REGS, CALL_USED_REGS): Update.
24608         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
24609         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
24610         (HARD_REGNO_NREGS): Update for SFP.
24611         (STACK_POINTER_OFFSET): Include bias here ...
24612         (FIRST_PARM_OFFSET): ... not here.
24613         (STACK_BIAS): Remove.
24614         (INIT_EXPANDERS): New.
24615         (STARTING_FRAME_OFFSET): Do not include bias.
24616         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
24617         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
24618         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
24619         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
24620         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
24621         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
24622         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
24623         (MUST_SAVE_REGISTER): Likewise.
24624         (sparc_flat_function_prologue): Likewise.
24625         (sparc_flat_function_epilogue): Likewise.
24626         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
24627         (sparc_init_modes): SFP is GENERAL_REGS.
24628         (sparc_builtin_saveregs): SFP does not have bias applied.
24629
24630 2002-02-04  Richard Henderson  <rth@redhat.com>
24631
24632         * config/alpha/alpha.c (current_function_is_thunk): Don't check
24633         current_function_is_thunk.
24634         (alpha_sa_mask): Distinguish between current_function_is_thunk
24635         called from ASM_OUTPUT_MI_THUNK and not.
24636         (alpha_does_function_need_gp): Thunks always need gp.
24637         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24638         (alpha_output_mi_thunk_osf): New.
24639         * config/alpha/alpha-protos.h: Update.
24640         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
24641
24642 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
24643
24644         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
24645         function types, not when they're taken away.
24646
24647 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
24648
24649         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
24650         CODE_LABEL and jump table when replacing a table jump with a
24651         simple jump.
24652
24653 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
24654
24655         * config/s390/s390-protos.h (legitimize_la_operand,
24656         s390_secondary_input_reload_class, s390_plus_operand,
24657         s390_expand_plus_operand): Add prototypes.
24658
24659         config/s390/s390.c (s390_secondary_input_reload_class,
24660         s390_plus_operand, s390_expand_plus_operand): New functions.
24661
24662         (struct s390_address): New member 'pointer'.
24663         (s390_decompose_address): Compute it.
24664         (legitimate_la_operand_p): Use it.
24665         (legitimize_la_operand): New function.
24666         (movti, movdi, movdf splitters): Call it.
24667
24668         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
24669         (PREDICATE_CODES): Add s390_plus_operand.
24670
24671         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
24672         (la_ccclobber): Allow GENERAL_REGS as output operand.
24673
24674         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
24675         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
24676         (*la_64, *la_31, reload_indi, reload_insi): ... these.
24677
24678 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
24679
24680         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
24681         register names for regular asm () construct.
24682
24683 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24684
24685         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
24686         registers.
24687
24688 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24689
24690         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
24691         pat for recog.
24692
24693 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
24694
24695         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
24696         constant pool to be identical by string address and index.
24697
24698 2002-02-04  Anthony Green  <green@redhat.com>
24699
24700         * output.h (SECTION_OVERRIDE): Define.
24701         * varasm.c (named_section): Obey SECTION_OVERRIDE.
24702
24703 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
24704
24705         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
24706         by existing arm*-*-netbsd* (a.out) target.
24707         (ns32k-*-netbsdelf*): Likewise.
24708         (sparc-*-netbsdelf*): Likewise.
24709         (vax-*-netbsdelf*): Likewise.
24710
24711 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
24712
24713         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
24714         headers and libobjc headers.
24715
24716 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
24717
24718         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
24719         (_mingw.h): Remove duplicate include.
24720
24721 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
24722
24723         * config.gcc: Set cpu_type to m68k for 68010, as well.
24724         (m68010-*-netbsdelf*): New...
24725         (m68k*-*-netbsdelf*): ...targets.
24726         * config/m68k/netbsd-elf.h: New file.
24727
24728 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24729
24730         * config/h8300/h8300.c (hand_list): Move inside function_arg.
24731
24732 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24733
24734         * config/h8300/h8300.c (h8_push_ops): Move inside
24735         h8300_init_once.
24736         (h8_pop_ops): Likewise.
24737         (h8_move_ops): Likewise.
24738
24739 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24740
24741         * config/h8300/h8300.c (os_task): Make it static.
24742         (monitor): Likewise.
24743         (pragma_saveall): Likewise.
24744
24745 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
24746
24747         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
24748         constant is a valid sign-extension for Pmode.
24749
24750 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24751
24752         * config/h8300/h8300.c: Fix formatting.
24753
24754 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24755
24756         * config/h8300/h8300.md: Fix formatting.
24757
24758 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24759
24760         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
24761         predicates of operands[1].  Split the patterns for each
24762         processor variant.
24763
24764 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24765
24766         * config/h8300/h8300.md (xor patterns): Tighten the predicates
24767         of operands[1] to register_operand.
24768
24769 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
24770
24771         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
24772         * cpphash.c (_cpp_init_hashtable): Similarly.
24773         * cppinit.c (cpp_create_reader): Default the signed_char flag.
24774         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
24775         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
24776         (cpp_handle_option): Handle the new options.
24777         * cpplex.c (cpp_interpret_charconst): Use new flag.
24778         * cpplib.h (struct cpp_options): New member signed_char.
24779         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
24780         (cpp_options): Handle -fsigned-char and -funsigned-char.
24781         (static_specs): Remove signed_char_spec.
24782         (do_spec1): Don't handle %c.
24783         * system.h: Poison SIGNED_CHAR_SPEC.
24784         * tradcif.y (yylex): Use flag_signed_char.
24785         * tradcpp.h (flag_signed_char): New.
24786         * tradcpp.c (flag_signed_char): New.
24787         (main): Handle new command-line options.
24788         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
24789 config:
24790         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
24791         * avr/avr.h: Remove old comments.
24792         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
24793         (CC1_SPEC): Pass -fsigned-char if -mic*.
24794         (SIGNED_CHAR_SPEC): Remove.
24795 doc:
24796         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
24797
24798 2002-02-01  Eric Christopher  <echristo@redhat.com>
24799
24800         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
24801         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
24802         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
24803         (ASM_OUTPUT_REG_POP): Ditto.
24804
24805 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
24806
24807         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
24808         patch.
24809
24810 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
24811
24812         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
24813
24814 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
24815
24816         PR c/5304:
24817         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
24818         unconditionally.
24819
24820 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
24821
24822         * cfganal.c: Include tm_p.h.
24823         (keep_with_call_p): Fix the test that determines if a register holds
24824         the return value of a call.
24825
24826 2002-02-01  DJ Delorie  <dj@redhat.com>
24827
24828         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
24829         we are given conflicting registers, switch to the other one we
24830         had allocated for us.
24831         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
24832         as TImode so we know when the "other" register is available.
24833
24834 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
24835
24836         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
24837         sparc/sparc_bi.h.
24838
24839 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
24840
24841         * cfganal.c (keep_with_call_p): New function.
24842         (flow_call_edges_add): Prevent splitting a block between a call and
24843         a single-set instruction that should be kept in the same block.
24844
24845 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24846
24847         * doc/install.texi (avr): Update outdated URL.
24848
24849 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
24850
24851         * config/stormy16/stormy16.md (pushqi): New.
24852         (popqi): New.
24853         (pushhi): New.
24854         (pophi): New.
24855         (movhi): Remove stack operands.
24856         (movqi): Likewise.
24857         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
24858         nonimmediate_nonstack_operand.
24859         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
24860         New.
24861         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
24862         New.
24863
24864 2002-01-31  Jason Merrill  <jason@redhat.com>
24865
24866         * Makefile.in (c-parse.c): Handle .output file.
24867         * objc/Make-lang.in (objc-parse.c): Likewise.
24868
24869 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
24870
24871         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
24872         the -me[lb] option is given.  Don't output the default flag
24873         twice.
24874
24875 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
24876
24877         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
24878         the primary source file; this has not been done yet.
24879         * c-decl.c (c_expand_body): Reset input_filename from
24880         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
24881
24882 2002-01-31  Kazu Hirata  <kazu@hxi.com>
24883
24884         * rtlanal.c (subreg_regno_offset): Do not use
24885         SUBREG_REGNO_OFFSET.
24886         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
24887         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
24888
24889 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
24890
24891         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
24892         version rather than GNATS version in --version output.
24893
24894 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
24895
24896         * ifcvt.c (noce_process_if_block): Make a copy of the destination
24897         when copying back from a temporary.
24898
24899 2002-01-30  Richard Henderson  <rth@redhat.com>
24900
24901         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
24902         and new_dest are the same.
24903
24904 2002-01-30  Richard Henderson  <rth@redhat.com>
24905
24906         PR opt/5076
24907         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
24908         * rtl.c (note_insn_name): Update.
24909         * emit-rtl.c (remove_unnecessary_notes): Kill it.
24910         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
24911         to perform loop rotation.
24912         (expand_exit_loop_top_cond): New.
24913         * tree.h (expand_exit_loop_top_cond): Declare it.
24914         * c-semantics.c (genrtl_while_stmt): Use it.
24915         (genrtl_for_stmt): Likewise.
24916
24917 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
24918
24919         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
24920         arguments to 64-bit boundaries on 64-bit ABIs.
24921
24922 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
24923
24924         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
24925
24926 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
24927
24928         * c-decl.c (grokdeclarator): Handle type being a typedef for an
24929         invalid type.
24930
24931 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
24932
24933         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
24934         * config/sparc/sparc_bi.h: Remove file.
24935         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
24936
24937 2002-01-30  Richard Henderson  <rth@redhat.com>
24938
24939         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
24940
24941 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
24942
24943         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
24944
24945 2002-01-30  Jason Merrill  <jason@redhat.com>
24946
24947         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
24948         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
24949         (reg_save): Use DW_CFA_offset_extended_sf instead.
24950
24951         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
24952
24953 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
24954
24955         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
24956         in cselib_lookup.
24957
24958 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
24959
24960         * rs6000.md ("*call_value_local32"): Remove constraints.
24961         ("*call_value_local64"): Same.
24962         ("*call_value_indirect_nonlocal_aix32"): Same.
24963         ("*call_value_nonlocal_aix32"): Same.
24964         ("*call_value_indirect_nonlocal_aix64"): Same.
24965         ("*call_value_nonlocal_aix64"): Same.
24966         ("*call_value_nonlocal_sysv"): Same.
24967
24968 2002-01-29  Richard Henderson  <rth@redhat.com>
24969
24970         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
24971
24972 2002-01-29  Richard Henderson  <rth@redhat.com>
24973
24974         * expr.c (force_operand): Ignore flag_pic for detecting pic
24975         address loads.
24976         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
24977         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
24978         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
24979         instead of open-coded loop.
24980         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
24981         be fixed when in use.
24982
24983 2002-01-29  Richard Henderson  <rth@redhat.com>
24984
24985         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
24986         * sched-rgn.c (propagate_deps): Update them.
24987         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
24988         clobbers list when either gets too long.
24989
24990 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
24991
24992         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
24993         and INDEX_REGS the same as GENERAL_REGS.
24994         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
24995
24996 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
24997
24998         * tree.c (build_nonstandard_integer_type): Correct prototype.
24999
25000 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
25001
25002         * config/s390/s390.md (movstrsico, movstrdix_64,
25003         movstrsix_31): Remove, replace by ...
25004         (movstrdi_short, movstrsi_short, movstrdi_long,
25005         movstrsi_long): ... these.  New.
25006         (movstrdi, movstrsi): Adapt.
25007
25008         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
25009         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
25010         Remove unnecessary CC clobber.
25011         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
25012         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
25013
25014         (divmoddi4): Don't partially initialize TImode register.
25015
25016 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
25017
25018         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
25019
25020 2002-01-29  Richard Henderson  <rth@redhat.com>
25021
25022         * flow.c (print_rtl_and_abort): Remove.
25023         (print_rtl_and_abort_fcn): Remove.
25024         (verify_local_live_at_start): Use dump_bb instead.
25025         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
25026         (verify_wide_reg_1): Return 2 on mode test failure.
25027
25028 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
25029
25030         PR c/3325, c/3326, c/2511, c/3347
25031         * c-decl.c (enum_decl_context): Remove BITFIELD.
25032         (grokdeclarator): Take bitfield width as an input.
25033         Ensure bitfields are given the correct type.  Perform
25034         bitfield width validation with build_bitfield_integer_type
25035         rather than waiting for finish_struct.
25036         (grok_typename, grok_typename_in_parm_context, start_decl,
25037         push_parmdecl, grokfield, start_function): Update calls to
25038         grokdeclarator.
25039         (build_bitfield_integer_type): New function.
25040         (finish_struct): Move bitfield validation to grokdeclarator
25041         and build_bitfield_integer_type.
25042         * tree.c (build_nonstandard_integer_type): New function.
25043         * tree.h (build_nonstandard_integer_type): New prototype.
25044 objc:
25045         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
25046
25047 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25048
25049         PR other/1502:
25050         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
25051         don't ignore unrecognized -W* options.
25052         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
25053         * cpplib.h (cpp_handle_option): Adjust prototype.
25054         * c-decl.c (c_decode_options): Pass 0 as last argument to
25055         cpp_handle_option.
25056
25057         PR c/2896:
25058         * gcc.c (cpp_unique_options): Split from cpp_options.
25059         (cpp_options): Source cpp_unique_options.
25060         (default_compilers): Use cpp_unique_options instead of cpp_options
25061         when used together with cc1_options.
25062         (static_specs): Add cpp_unique_options.
25063         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
25064         when used together with cc1_options.
25065
25066 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25067
25068         * config/h8300/h8300-protos.h: Update the prototype of
25069         output_a_shift.
25070         * config/h8300/h8300.c (output_a_shift): Remove an unused
25071         argument 'insn'.  Remove redundant code.
25072         * config/h8300/h8300.md: Adust to the new prototype of
25073         output_a_shift.
25074
25075 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25076
25077         * config/h8300/h8300-protos.h: Update the prototypes of
25078         emit_a_rotate and expand_a_rotate.
25079         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
25080         first argument to 'enum rtx_code'.
25081         (expand_a_rotate): Likewise.
25082
25083 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25084
25085         * config/h8300/h8300-protos.h: Update the prototype of
25086         output_simode_bld.
25087         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
25088         'log2'.
25089         * config/h8300/h8300.md: Adjust to the new prototype.
25090
25091 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25092
25093         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
25094         redundant code.
25095
25096 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25097
25098         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
25099         is a fixed register before returning pic_offset_table_rtx.
25100         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
25101         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
25102
25103 2002-01-28  Jason Merrill  <jason@redhat.com>
25104
25105         * dwarf2.h: Sync with src version.
25106
25107 2002-01-28  Paul Koning  <pkoning@equallogic.com>
25108
25109         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
25110         BT_FN_VOID_PTR_VAR.
25111         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
25112         * doc/extend.texi (__builtin_prefetch): Update documentation:
25113         first argument is now const void ptr.
25114
25115 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25116
25117         * config/h8300/h8300-protos.h: Remove an unused prototype.
25118
25119 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
25120
25121         * toplev.c (lang_independent_init): Round up identifier size.
25122
25123 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
25124
25125         * config.gcc: Revert previous change.
25126
25127 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
25128
25129         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
25130
25131 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
25132
25133         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
25134         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
25135         other non-elf netbsd config frags.
25136         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
25137         collect2 will does that.
25138         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
25139         shared-lib frobbing will work.
25140
25141 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25142
25143         * config/h8300/h8300.h: Fix formatting.
25144         * config/h8300/h8300.md: Likewise.
25145
25146 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
25147
25148         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
25149         the old, removed AAA_standards fix.
25150         * fixinc/fixincl.x: Rebuilt.
25151
25152 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
25153
25154         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
25155         atexit call in crtbegin, hooked in after call to frame_dummy;
25156         register EH before registering __fini__start.
25157
25158 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
25159
25160         * config/rs6000/altivec.h: Remove spurious semicolons.
25161
25162 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25163
25164         * config/h8300/h8300.md: Replace dead bit extraction patterns
25165         with ones that work.
25166
25167 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25168
25169         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
25170         if not STRICT_ALIGNMENT.
25171         * rtl.h (MEM_ALIGN): Likewise.
25172
25173 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25174
25175         * doc/invoke.texi (-fdump-translation-unit): Revert this
25176         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25177
25178 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25179
25180         * config/h8300/h8300.md (define_constants): New.
25181         (anonymous patterns) Use defined constants appropriately.
25182
25183 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25184
25185         * config/h8300/h8300.c (function_arg): Remove redundant code.
25186
25187 2002-01-26  Richard Henderson  <rth@redhat.com>
25188
25189         * sched-deps.c (reg_pending_uses_head): New.
25190         (reg_pending_barrier): Rename from reg_pending_sets_all.
25191         (find_insn_list): Don't mark inline.
25192         (find_insn_mem_list): Remove.
25193         (add_dependence_list, add_dependence_list_and_free): New.
25194         (flush_pending_lists): Replace only_write param with separate
25195         for_read and for_write parameters.  Update all callers.  Use
25196         add_dependence_list_and_free.
25197         (sched_analyze_1): Do not add reg dependencies here; just set
25198         the pending bits.  Use add_dependence_list.
25199         (sched_analyze_2): Likewise.
25200         (sched_analyze_insn): Replace schedule_barrier_found with
25201         reg_pending_barrier.  Add all dependencies for pending reg
25202         uses, sets, and clobbers.
25203         (sched_analyze): Don't add reg dependencies for calls, just
25204         set pending bits.  Use regs_invalidated_by_call.  Treat
25205         sched_before_next_call as a normal list, not a fake insn.
25206         (init_deps): No funny init for sched_before_next_call.
25207         (free_deps): Free pending mems lists.  Don't zero reg_last.
25208         (init_deps_global): Init reg_pending_uses.
25209         (finish_deps_global): Free it.
25210         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
25211         (find_insn_mem_list): Remove.
25212         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
25213         (propagate_deps): Use them.  Zero temp mem lists.
25214
25215 2002-01-26  Richard Henderson  <rth@redhat.com>
25216
25217         * Makefile.in (CRTSTUFF_CFLAGS): New.
25218         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
25219         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
25220         crtstuff.c instead of alpha assembly version.
25221         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
25222         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
25223         not FORCE_{INIT,FINI}_SECTION_ALIGN.
25224         (__do_global_dtors_aux): Mark used.
25225         (frame_dummy, __do_global_ctors_aux): Mark used.
25226         (fini_dummy, init_dummy): Remove.
25227
25228         * config/alpha/crtbegin.asm: Remove file.
25229         * config/alpha/crtend.asm: Remove file.
25230         * config/alpha/t-crtbe: Remove file.
25231         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
25232         (LINK_EH_SPEC): New.
25233
25234         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
25235         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
25236         calling constructors.
25237         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
25238
25239         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
25240         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
25241         CRT_END_INIT_DUMMY hack.
25242         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
25243         FORCE_{INIT,FINI}_SECTION_ALIGN.
25244
25245         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
25246         FORCE_{INIT,FINI}_SECTION_ALIGN.
25247
25248         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
25249         invocation sequence.
25250         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
25251
25252         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
25253         (FORCE_CODE_SECTION_ALIGN): New.
25254
25255 2002-01-26  Richard Henderson  <rth@redhat.com>
25256
25257         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
25258
25259 2002-01-26  Richard Henderson  <rth@redhat.com>
25260
25261         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
25262         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
25263
25264 2002-01-26  Kazu Hirata  <kazu@hxi.com>
25265
25266         * config/h8300/h8300.md: Remove bit extraction patterns that
25267         cannot be triggered.
25268         Restrict each bit extraction pattern to a variant on which the
25269         pattern is tested.
25270
25271 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
25272
25273         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
25274
25275 2002-01-26  Kazu Hirata  <kazu@hxi.com>
25276
25277         * config/h8300/h8300.md: Remove bit test patterns that cannot
25278         be triggered.
25279         Restrict each bit test pattern to a variant on which the
25280         pattern is tested.
25281
25282 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25283
25284         * builtins.c (expand_builtin_strncat): Remove redundant check for
25285         INTEGER_CST.
25286
25287 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
25288
25289         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
25290         default setting.
25291         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
25292         existing setting.
25293
25294 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
25295
25296         * dbxout.c (dbxout_init): Use assemble_name rather than just
25297         stripping off the first character.
25298         (dbxout_source_file): Likewise.
25299
25300 2002-01-25  DJ Delorie  <dj@redhat.com>
25301
25302         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
25303         using rtx_equal_p, not by comparing pointers.
25304
25305 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
25306
25307         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
25308         for PIC_OFFSET_TABLE_REGNUM.
25309         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
25310
25311 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
25312
25313         * config.gcc (x86_64-*-freebsd*): New target.
25314         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
25315         value.
25316         (i[34567]86-*-freebsd*): Don't include svr4.h.
25317         * config/i386/freebsd64.h: New file.
25318
25319 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
25320
25321         * config/alpha/x-vms (version): Make static.
25322
25323         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
25324         in previous checkin.
25325
25326         * Makefile.in (install-headers-cp): New target.
25327         * config.gcc (alpha-dec-*vms*): Install headers with
25328         install-headers-cp
25329
25330 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
25331
25332         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
25333         avoid it's copies.
25334
25335 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25336
25337         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
25338         of compare_tree_int.
25339         (expand_builtin_strncat): Likewise.
25340         * c-decl.c (finish_struct): Use tree_low_cst.
25341         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
25342         * tree.c (compare_tree_int): Likewise.
25343
25344 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
25345
25346         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
25347         adjustments even if they are implemented by more than two insns.
25348
25349 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
25350
25351         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
25352         * df.h (struct ref): Kill B.
25353         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
25354
25355         * basic-block.h (PROP_EQUAL_NOTES): New flag.
25356         * flow.c (propagate_one_insn): Use it.
25357         (mark_used_regs): Handle NIL.
25358
25359 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
25360
25361         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
25362         to help folding.
25363
25364 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
25365
25366         * rs6000.md (prefetch): Make address V4SI mode so that the address
25367         is restricted to legitimate form for instruction.
25368
25369 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
25370
25371         * doc/install.texi (xtensa-*-elf): New target.
25372         (xtensa-*-linux*): New target.
25373         * doc/contrib.texi: Add myself.
25374
25375 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
25376
25377         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
25378         purpose register to hold an SImode (or smaller) value.
25379
25380 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
25381
25382         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
25383         registry only.
25384         * crtstuff.c: Likewise.
25385
25386 2002-01-25  Kazu Hirata  <kazu@hxi.com>
25387
25388         * config/h8300/h8300.md (negation patterns): Tighten
25389         predicates to register_operand.
25390
25391 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
25392
25393         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
25394         mode, not Pmode.
25395
25396         * builtins.c (expand_builtin_prefetch): Same.
25397
25398 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25399
25400         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
25401         modes.
25402
25403 2002-01-24  Kazu Hirata  <kazu@hxi.com>
25404
25405         * config/h8300/h8300.c (print_operand): Remove support for
25406         operand character 'A'.
25407         * config/h8300/h8300.md (three anonymous patterns): Replace
25408         operand character 'A' with either 'T' or 'S'.
25409
25410 2002-01-24  Kazu Hirata  <kazu@hxi.com>
25411
25412         * config/h8300/h8300.c (print_operand): Remove support for
25413         operand character 'U'.
25414
25415 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
25416
25417         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
25418
25419 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
25420
25421         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
25422         values to be assigned to the stack pointer.
25423
25424 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
25425
25426         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
25427         to const_double needs to be done right for big-endian systems.
25428
25429 2002-01-24  Jason Merrill  <jason@redhat.com>
25430
25431         PR c++/2432
25432         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
25433         to can_throw_internal.
25434
25435 2002-01-23  Richard Henderson  <rth@redhat.com>
25436
25437         * fold-const.c (fold): Change UINT_MAX test to check vs precision
25438         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
25439
25440 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25441
25442         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
25443         (symGOT2reg): Use them, then set as GOT value as unchanging.
25444         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
25445         as a temporary, if possible.
25446         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
25447         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
25448
25449 2002-01-23  Kazu Hirata  <kazu@hxi.com>
25450
25451         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
25452         accept to accept 0x80 as operands[2].
25453
25454 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25455
25456         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
25457
25458 2002-01-23  Richard Henderson  <rth@redhat.com>
25459
25460         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
25461
25462 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
25463
25464         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
25465         (parmlist_or_identifiers_1): Verify that only a parmlist follows
25466         an attribute.
25467
25468 2002-01-23  Richard Henderson  <rth@redhat.com>
25469
25470         * expr.c (move_by_pieces_1): Extend size before negation.
25471
25472         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
25473         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
25474         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
25475         * config/m68k/t-m68kelf: Likewise.
25476
25477 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
25478
25479         * config/xtensa/elf.h: New file.
25480         * config/xtensa/lib1funcs.asm: New file.
25481         * config/xtensa/lib2funcs.S: New file.
25482         * config/xtensa/linux.h: New file.
25483         * config/xtensa/t-xtensa: New file.
25484         * config/xtensa/xtensa-config.h: New file.
25485         * config/xtensa/xtensa-protos.h: New file.
25486         * config/xtensa/xtensa.c: New file.
25487         * config/xtensa/xtensa.h: New file.
25488         * config/xtensa/xtensa.md: New file.
25489         * config.gcc (xtensa-*-elf*): New target.
25490         (xtensa-*-linux*): New target.
25491         * cse.c (canon_hash): Compare rtx pointers instead of register
25492         numbers.  This is required for the Xtensa port.
25493         * integrate.c (copy_insn_list): Handle case where the static
25494         chain is in memory and the memory address has to be copied to
25495         a register.
25496         * doc/invoke.texi (Option Summary): Add Xtensa options.
25497         (Xtensa Options): New node.
25498         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
25499
25500 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
25501
25502         * diagnostic.c (internal_error): Do ICE suppression only
25503         when ENABLE_CHECKING is not defined.
25504
25505         * c-typeck.c (require_complete_type): Return error_mark_node
25506         if type is error_mark_node.
25507
25508 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
25509
25510         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
25511         -Os and issue a warning.
25512
25513 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
25514
25515         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
25516         current (lack of) need for host configuration by hand.
25517
25518         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
25519         references.  Documentation of some target macros moved from
25520         hostconfig.texi to tm.texi.
25521
25522 2002-01-23  Will Cohen  <wcohen@redhat.com>
25523
25524         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
25525         defined.
25526
25527 2002-01-23  Kazu Hirata  <kazu@hxi.com>
25528
25529         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
25530         operand[3].
25531
25532 2002-01-23  Jason Merrill  <jason@redhat.com>
25533
25534         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
25535
25536         * function.c (assign_parms): Don't put args of inline functions
25537         into registers when not optimizing.
25538
25539 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
25540
25541         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
25542         (prologue_use): New pattern.
25543         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
25544         preference to gen_rtx_USE.
25545         (thumb_expand_prologue): Use gen_prologue_use in preference to
25546         gen_rtx_USE.
25547         (thumb_expand_epilogue): Use gen_prologue_use in preference to
25548         gen_rtx_USE.
25549
25550 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
25551
25552         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
25553
25554 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
25555
25556         PR c/3504
25557         * doc/extend.texi: Correct documentation of __alignof__.
25558
25559 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
25560
25561         * params.h: Rename arguments of DEFPARAM so that it will be
25562         recognized as a translation keyword.
25563
25564 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25565
25566         * extend.texi: Document altivec functions.
25567         Fix N-bit adjectives in X86 builtin documentation.
25568
25569 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
25570
25571         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
25572         auto_inc_dec values.
25573
25574 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
25575
25576         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
25577         after backslash.
25578         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
25579
25580 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
25581
25582         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
25583
25584 2002-01-22  Richard Henderson  <rth@redhat.com>
25585
25586         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
25587         copy_insn not copy_rtx.
25588
25589 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
25590
25591         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
25592         "nonzero" as that might add "1" bits.  Ensure "constop" is
25593         properly sign extened.
25594         (force_to_mode): Tweak for sign extended constop.
25595
25596 2002-01-22  Richard Henderson  <rth@redhat.com>
25597
25598         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
25599         for_each_rtx instead of assuming we're already looking at the MEM.
25600         (split_small_symbolic_mem_operand): Likewise.
25601         * config/alpha/alpha.h (PREDICATE_CODES): Update.
25602         * config/alpha/alpha.md (small symbolic memory splitters): Update.
25603
25604 2002-01-22  Richard Henderson  <rth@redhat.com>
25605
25606         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
25607         sequence number for the literal.
25608         (divmoddi_internal_er): Likewise.
25609
25610 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25611
25612         PR java/4972
25613         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
25614         in LIBICONV variable.
25615         * configure: Regenerated.
25616
25617 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
25618
25619         * dependence.c (build_def_use): Remove array_idx.
25620
25621         * dwarfout.c (last_filename): Remove.
25622         (output_compile_unit_die): Remove last_filename.
25623
25624 2002-01-22  Roger Sayle  <roger@eyesopen.com>
25625             Richard Henderson  <rth@redhat.com>
25626
25627         PR opt/3640
25628         * fold-const.c (fold): Optimize unsigned comparisons against
25629         UINT_MAX (and similar unsigned constants).
25630
25631 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
25632
25633         * Makefile.in (loop.o): Depend on OPTABS_H.
25634         * loop.c (emit_prefetch_instructions): Check the prefetch operand
25635         against the predicate.
25636
25637         PR target/5379
25638         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
25639         for the address operand.
25640
25641 2002-01-22  Richard Henderson  <rth@redhat.com>
25642
25643         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
25644
25645 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25646
25647         PR other/5450
25648         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
25649         preprocessor flags.
25650
25651 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
25652
25653         * config.gcc (x86_64-*-netbsd*): New target.
25654         * config/i386/netbsd64.h: New file.
25655
25656 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25657
25658         * regrename.c (kill_value): Fix typo.
25659
25660 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25661
25662         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
25663
25664         * config/rs6000/rs6000.h: Same.
25665
25666         * function.c (instantiate_virtual_regs): Remove
25667         STARTING_FRAME_PHASE.
25668         (assign_stack_local_1): Same.
25669         Calculate frame phase.
25670
25671 2002-01-22  Nick Clifton  <nickc@redhat.com>
25672
25673         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
25674         variable declaration to outer scope in order to simplify
25675         future extensions.
25676         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
25677         arm_hard_regno_mode_ok.
25678         * config/arm/arm-protos.h: Add a prototype for
25679         arm_hard_regno_mode_ok.
25680         * config/arm/arm.c (soft_df_operand): Remove now redundant
25681         check for DImode values using IP_REGNUM.
25682         (nonimmediate_soft_df_operand): Remove now redundant check for
25683         DImode values using IP_REGNUM.
25684         (arm_hard_regno_mode_ok): New function. New check: make sure
25685         that DImode values are not stored in IP_REGNUM.
25686
25687         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
25688         note with a USE.
25689         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
25690
25691 2002-01-22  Jason Merrill  <jason@redhat.com>
25692
25693         * c-semantics.c (genrtl_compound_stmt): Only check nesting
25694         consistency if this COMPOUND_STMT is scoped.
25695
25696 2002-01-22  Kazu Hirata  <kazu@hxi.com>
25697
25698         * predict.c: Fix formatting.
25699         * print-tree.c: Likewise.
25700         * protoize.c: Likewise.
25701         * real.h: Likewise.
25702         * rtl.h: Likewise.
25703         * sbitmap.h: Likewise.
25704         * scan.c: Likewise.
25705         * sched-deps.c: Likewise.
25706         * sched-vis.c: Likewise.
25707         * sdbout.c: Likewise.
25708         * sibcall.c: Likewise.
25709         * ssa.c: Likewise.
25710         * ssa-ccp.c: Likewise.
25711         * ssa-dce.c: Likewise.
25712         * stmt.c: Likewise.
25713         * stor-layout.c: Likewise.
25714         * system.h: Likewise.
25715
25716 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25717
25718         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
25719         if fits in bounds of base type.
25720
25721         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
25722         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
25723         (add_bound_info, default): If can't find a context, make a
25724         SAVE_EXPR.
25725         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
25726
25727 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
25728
25729         * c-typeck.c (parser_build_binary_op): If result from
25730         build_binary_op is ERROR_MARK just return error_mark_node without
25731         further processing.
25732
25733 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
25734
25735         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
25736         Split a.out-specific bits into...
25737         * config/netbsd-aout.h: ...this.
25738         * config/netbsd-elf.h: New file.
25739         * config/alpha/netbsd-elf.h: Remove.
25740         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
25741         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
25742         (STARTFILE_SPEC): Remove redundant definition.
25743         (ENDFILE_SPEC): Likewise.
25744         (LINK_SPEC): Likewise.
25745         (CPP_SPEC): Likewise.
25746         (ASM_SPEC): Likewise.
25747         (LIB_SPEC): Likewise.
25748         (SWITCH_TAKES_ARG): Likewise.
25749         (TARGET_MEM_FUNCTIONS): Likewise.
25750         (CPP_PREDEFINES): Redefine.
25751         (ASM_FINAL_SPEC): Remove redefinition.
25752         (ASM_COMMENT_START): Redefine.
25753         (FUNCTION_PROFILER): Define.
25754         (TARGET_VERSION): Redefine.
25755         Comment and formatting cleanup.
25756         * config/i386/netbsd.h: Include <netbsd-aout.h>.
25757         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
25758         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
25759         big- or little-endian.
25760         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
25761         * config.gcc (*-*-netbsd*): Add definitions common to all
25762         NetBSD configs.
25763         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
25764         gnu_ld definitions.  Add netbsd-elf.h to and remove
25765         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
25766         tmake_file, and don't lose previous tmake_file contents.
25767         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
25768         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
25769         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
25770         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
25771         (mipsel-*-netbsd*): Rename this to...
25772         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
25773         mips/little.h to tm_file for mips*el-*.
25774         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
25775         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
25776         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
25777
25778 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25779
25780         * pa-protos.h (reg_before_reload_operand): New function prototype.
25781         * pa.c (reg_before_reload_operand): New function implementation.
25782         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
25783         contraints to "*m".
25784
25785 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
25786
25787         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
25788
25789 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25790
25791         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
25792         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
25793         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
25794         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
25795         (ENDFILE_SPEC): Undefine.
25796         (STARTFILE_SPEC): Redefine for PA.
25797
25798 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
25799
25800         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
25801
25802 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
25803
25804         * config.gcc: Add entries to supported PowerPC --with-cpu
25805         types.
25806
25807 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
25808
25809         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
25810         true for 64-bit mode only SSE registers in 32-bit mode.
25811
25812 2002-01-21  Kazu Hirata  <kazu@hxi.com>
25813
25814         * unwind-dw2.c: Fix formatting.
25815         * unwind-dw2-fde.c: Likewise.
25816         * unwind-dw2-fde.h: Likewise.
25817         * unwind-pe.h: Likewise.
25818         * varasm.c: Likewise.
25819         * varray.h: Likewise.
25820
25821 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
25822
25823         Remove workaround for register stack overwrite bug in mmix.
25824         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
25825         support for TARGET_REG_STACK_FILL_BUG.
25826         * config/mmix/mmix.h: Remove member has_call_without_parameters.
25827         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
25828         Delete.
25829         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
25830         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
25831         -mno-reg-stack-fill-bug-workaround.
25832         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
25833         machine member has_call_without_parameters.
25834         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
25835         -mreg-stack-fill-bug-workaround and
25836         -mno-reg-stack-fill-bug-workaround.
25837         (MMIX Options): Ditto.
25838
25839 2002-01-21  Kazu Hirata  <kazu@hxi.com>
25840
25841         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
25842         as appropriate.
25843         Remove redundant code.
25844
25845 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
25846
25847         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
25848         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
25849         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
25850         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
25851         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
25852         out target macro definitions and non-target-specific comments
25853         mostly taken from old versions of the manual.
25854
25855 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25856
25857         * config/h8300/h8300.h: Fix comment formatting.
25858         * config/ia64/aix.h: Likewise.
25859         * config/ia64/ia64-protos.h: Likewise.
25860         * config/ia64/ia64.c: Likewise.
25861         * config/ia64/ia64.h: Likewise.
25862         * config/ia64/ia64intrin.h: Likewise.
25863         * config/ia64/linux.h: Likewise.
25864         * config/ia64/unwind-aix.c: Likewise.
25865         * config/ia64/unwind-ia64.c: Likewise.
25866
25867 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25868
25869         * config/h8300/h8300.c: Revise comments about shift code.
25870
25871 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25872
25873         * config/h8300/h8300.c (function_arg): Update a comment.
25874
25875 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25876
25877         * config/h8300/h8300.md: Update the comments at the beginning
25878         of the file.
25879
25880 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25881
25882         * config/i370/i370.c: Fix comment formatting.
25883         * config/i370/i370.h: Likewise.
25884         * config/i370/i370.md: Likewise.
25885         * config/i370/linux.h: Likewise.
25886
25887 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25888
25889         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
25890
25891         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
25892         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
25893         in incomplete case.
25894
25895 2002-01-20  Graham Stott  <grahams@redhat.com>
25896
25897         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
25898
25899 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25900
25901         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
25902
25903 2002-01-19  Tom Rix  <trix@redhat.com>
25904
25905         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
25906
25907 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
25908
25909         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
25910
25911         * function.c (assign_stack_local_1): Adjust x_frame_offset with
25912         STARTING_FRAME_PHASE.
25913         (STARTING_FRAME_PHASE): New.
25914         (instantiate_virtual_regs): Check saneness of
25915         STARTING_FRAME_PHASE.
25916
25917         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
25918
25919 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
25920
25921         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
25922
25923 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25924
25925         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
25926         be used for bootstrapping GCC 3.0.
25927
25928 2002-01-18  Kazu Hirata  <kazu@hxi.com>
25929
25930         * config/h8300/h8300.md: Fix an insn length.
25931
25932 2002-01-18  Kazu Hirata  <kazu@hxi.com>
25933
25934         * bitmap.h: Fix comment formatting.
25935         * combine.c: Likewise.
25936         * cppfiles.c: Likewise.
25937         * c-pragma.h: Likewise.
25938         * c-typeck.c: Likewise.
25939         * df.c: Likewise.
25940         * dwarf2out.c: Likewise.
25941         * function.c: Likewise.
25942         * gcc.c: Likewise.
25943         * genattrtab.c: Likewise.
25944         * gthr-win32.h: Likewise.
25945         * haifa-sched.c: Likewise.
25946         * predict.c: Likewise.
25947         * rtlanal.c: Likewise.
25948         * rtl.h: Likewise.
25949         * unwind-dw2-fde.h: Likewise.
25950         * unwind-pe.h: Likewise.
25951         * vmsdbgout.c: Likewise.
25952
25953 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25954
25955         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
25956         if type_required and passed decl.
25957
25958 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
25959
25960         * config.gcc (cpu_type): Include altivec.h in powerpc
25961         extra_headers.
25962         Same for darwin.
25963
25964         * config/rs6000/altivec.h: New.
25965
25966 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
25967
25968         * doc/install.texi (*-ibm-aix*): Update assembler and exception
25969         handling information.
25970         * doc/trouble.texi (Interoperation): Add libstdc++ information
25971         for AIX.
25972         (Misunderstandings): Add template instantiation and static template
25973         member information for AIX.
25974
25975 2002-01-17  Jason Merrill  <jason@redhat.com>
25976
25977         * dbxout.c (dbxout_type): Support const and volatile.
25978
25979         * except.c (add_partial_entry): Remove backwards compatibility code.
25980         (end_protect_partials): Likewise.
25981
25982 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
25983
25984         * config/ia64/ia64.md (prologue_use): New.
25985         * config/ia64/ia64.c (ia64_expand_prologue): Use
25986         gen_prologue_use instead of gen_rtx_USE.
25987         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
25988         as CODE_FOR_pred_rel_mutex.
25989         (ia64_sched_reorder2): Likewise.
25990
25991 2002-01-16  Eric Christopher  <echristo@redhat.com>
25992
25993         * config/mips/r3900.h: Reformat.
25994         (SUBTARGET_CPP_SIZE_SPEC): Remove.
25995         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
25996         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
25997         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
25998         * config/mips/t-elf: Remove mips3 multilib.
25999
26000 2002-01-16  H.J. Lu <hjl@gnu.org>
26001
26002         * config/mips/linux.h: Include "mips/abi64.h".
26003
26004 2002-01-16  H.J. Lu <hjl@gnu.org>
26005
26006         * config/mips/t-linux: New.
26007
26008         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
26009
26010         * config/mips/linux.h: Don't include "gofast.h".
26011         (INIT_SUBTARGET_OPTABS): Removed.
26012
26013 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26014
26015         * config/h8300/h8300-protos.h: Replace emit_a_shift with
26016         output_a_shift.
26017         * config/h8300/h8300.c: Likewise.
26018         * config/h8300/h8300.md: Likewise.
26019
26020 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26021
26022         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
26023         spaces after an opcode name.
26024         (pushqi1_h8300hs): Likewise.
26025         (pushhi1_h8300hs): Likewise.
26026
26027 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26028
26029         * doc/extend.texi: Replace "option" with "attribute"
26030         appropriately.
26031
26032 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26033
26034         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
26035         (and:DI () (const_int -8)).
26036         (split_small_symbolic_mem_operand): Split
26037         (mem (and:DI () (const_int -8)).
26038
26039 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26040
26041         PR target/5309:
26042         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
26043         same way as TYPE_IMUL.
26044         (ultrasparc_sched_reorder): Likewise.
26045         * config/sparc/sparc.md (type): Add comment to update
26046         ultrasparc_sched_reorder when making changes.
26047
26048 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26049
26050         * doc/invoke.texi: Change the dump file name of block
26051         reordering pass from 28.bbro to 29.bbro.
26052         Mention -dk option.
26053
26054 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
26055
26056         * i386.md (minsf splitter): Fix pasto.
26057
26058 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26059
26060         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
26061         to frame pointer initialisation instruction.
26062         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
26063         initialisation instruction.
26064         (soft_df_operand): Do not accept the IP register.
26065         (nonimmediate_soft_df_operand): Do not accept the IP register.
26066
26067 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26068
26069         PR target/5357:
26070         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
26071         MASK_V8 being both set.
26072
26073 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
26074
26075         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
26076         insn for GOT register; add REG_MAYBE_DEAD notes instead.
26077         config/s390/s390.md (call, call_value): Add GOT register to
26078         CALL_INSN_FUNCTION_USAGE where needed.
26079         (call_exp, call_value_exp): New.
26080
26081 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26082
26083         * config/arm/arm.c: General formatting tidy up.
26084
26085 2002-01-16  Graham Stott  <grahams@redhat.com>
26086
26087         * calls.c (try_to_integrate): Use "(size_t)" intermediate
26088         cast and when casting an integer literal to "rtx" pointer.
26089         (expand_call): Likewise.
26090         * flow.c (try_pre_increment): Likewise.
26091         (find_use_as_address): Likewise.
26092         * integrate.c (expand_iline_function): Likewise.
26093         * regmove.c (try_auto_increment): Likewise.
26094
26095 2002-01-16  Graham Stott  <grahams@redhat.com>
26096
26097         * sched-rgn.c (passed): Use sbitmap_free.
26098         (header): Likewise.
26099         (inner): Likewise.
26100         (in_queue): Likewise.
26101         (in_stack): Likewise.
26102
26103 2002-01-15  Eric Christopher  <echristo@redhat.com>
26104
26105         * flow.c (propagate_one_insn): Change to use fatal_insn.
26106
26107 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26108
26109         * expmed.c (extract_fixed_bit_field): Remove unused code.
26110         * system.h: Poison SLOW_ZERO_EXTEND.
26111         * doc/tm.texi: Remove.
26112         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
26113         * config/arm/arm.h: Likewise.
26114         * config/avr/avr.h: Likewise.
26115         * config/clipper/clipper.h: Likewise.
26116         * config/convex/convex.h: Likewise.
26117         * config/d30v/d30v.h: Likewise.
26118         * config/dsp16xx/dsp16xx.h: Likewise.
26119         * config/elxsi/elxsi.h: Likewise.
26120         * config/fr30/fr30.h: Likewise.
26121         * config/h8300/h8300.h: Likewise.
26122         * config/i370/i370.h: Likewise.
26123         * config/i386/i386.h: Likewise.
26124         * config/m68k/m68k.h: Likewise.
26125         * config/mips/mips.h: Likewise.
26126         * config/ns32k/ns32k.h: Likewise.
26127         * config/pdp11/pdp11.h: Likewise.
26128         * config/pj/pj.h: Likewise.
26129         * config/s390/s390.h: Likewise.
26130         * config/sh/sh.h: Likewise.
26131         * config/stormy16/stormy16.h: Likewise.
26132         * config/v850/v850.h: Likewise.
26133         * config/vax/vax.h: Likewise.
26134         * config/we32k/we32k.h: Likewise.
26135
26136 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
26137
26138         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
26139         (altivec_lvsl): Change constraint to b.
26140         (altivec_lvsr): Same.
26141         (altivec_lvebx): Same.
26142         (altivec_lvehx): Same.
26143         (altivec_lvewx): Same.
26144         (altivec_lvxl): Same.
26145         (altivec_lvx): Same.
26146         (altivec_stvx): Add parallel.
26147         (altivec_stvxl): Same.
26148         (altivec_stvehx): Same.
26149         (altivec_stvebx): Same.
26150         (altivec_stvebx): Same.
26151
26152 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
26153
26154         * config.gcc: Change altivec.h to altivec-defs.h.
26155
26156         * config/rs6000/altivec.h: Delete.
26157
26158         * config/rs6000/altivec-defs.h: Add.
26159
26160 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26161
26162         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
26163         and UMOD modes.
26164
26165         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
26166         less than or equal to eight bytes.
26167
26168         * vax.md (andsi3): Remove constraints and change SET destination
26169         operand type to nonimmediate_operand.
26170         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
26171         when it is a CONST_INT.
26172
26173 2002-01-15  Jason Merrill  <jason@redhat.com>
26174
26175         * c-common.def (FILE_STMT): New code.
26176         * c-common.c (statement_code_p): It's a statement.
26177         * c-common.h (stmt_tree_s): Add x_last_filename.
26178         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
26179         (last_expr_filename): New macro.
26180         * c-semantics.c (begin_stmt_tree): Initialize it.
26181         (add_stmt): If the filename changed, also insert a
26182         FILE_STMT.
26183         (expand_stmt): Handle seeing one.
26184
26185 2002-01-15  Eric Christopher  <echristo@redhat.com>
26186
26187         * flow.c (propagate_one_insn): Add error message and print out
26188         insn for debugging.
26189
26190 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
26191
26192         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
26193         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
26194         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
26195         TRAMPOLINE_ALIGNMENT.
26196         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
26197         to be in bits.
26198         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
26199         PCC_BITFIELD_TYPE_MATTERS.
26200         * config/interix.h (STDC_VALUE): Remove.  Use
26201         STDC_0_IN_SYSTEM_HEADERS.
26202         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
26203         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
26204         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
26205
26206 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26207
26208         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
26209         not work on this platform currently.
26210
26211 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
26212
26213         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
26214         readonly_warning in _().
26215
26216 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
26217
26218         * gcc.c (delete_if_ordinary): Backout previous change.
26219
26220 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26221
26222         * config/h8300/h8300.c (print_operand): Remove support for
26223         unused operand characters.
26224
26225         * read-rtl.c: Fix formatting.
26226         * real.c: Likewise.
26227         * recog.c: Likewise.
26228         * regclass.c: Likewise.
26229         * regmove.c: Likewise.
26230         * reg-stack.c: Likewise.
26231         * reload1.c: Likewise.
26232         * rtlanal.c: Likewise.
26233
26234 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26235
26236         * config/i386/i386.c: Fix formatting.
26237
26238 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
26239
26240         * c-typeck.c (process_init_element): Don't save_expr
26241         COMPOUND_LITERAL_EXPR if just its initializer will be used.
26242
26243 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
26244
26245         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
26246         emit optional traceback table if optimize_size or TARGET_ELF.
26247         * config/rs6000/rs6000.md (prefetch): New.
26248
26249 2002-01-15  Andreas Jaeger  <aj@suse.de>
26250
26251         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
26252
26253 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26254
26255         * mips-tfile.c: Fix formatting.
26256
26257 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
26258
26259         * unroll.c (final_reg_note_copy): Fix previous commit.
26260
26261 2002-01-14  Kazu Hirata  <kazu@hxi.com>
26262
26263         * config/h8300/h8300-protos.h: Remove the prototype for
26264         eq_operator.
26265         * config/h8300/h8300.c (eq_operator): Remove.
26266
26267 2002-01-14  Richard Henderson  <rth@redhat.com>
26268
26269         * config/i386/i386.md (prefetch): Tidy.
26270         (prefetch_3dnow): Fix locality operand.
26271
26272 2002-01-14  Richard Henderson  <rth@redhat.com>
26273
26274         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
26275         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
26276
26277 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
26278
26279         * reload1.c (reload_combine): Pass reg_sum replacement through
26280         copy_rtx in loop performing multiple changes.
26281
26282 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
26283
26284         * except.c (remove_unreachable_regions): New.
26285         (free_eh_status): Clear exception_handler_labels.
26286         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
26287         (find_exception_handler_labels): Don't add the same label more than
26288         once.
26289         (remove_exception_handler_label): Don't die if
26290         find_exception_handler_labels hasn't been called for the current
26291         function yet.
26292
26293 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
26294
26295         * toplev.c (rest_of_compilation): Rebuild jump labels after
26296         gcse.
26297
26298 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
26299
26300         * doc/extend.texi: Move documentation of X86 built-in functions
26301         here.
26302         * doc/invoke.texi: From here.
26303         * doc/sourcebuild.texi: Document location of documentation for
26304         machine built-in functions.
26305
26306 2002-01-13  Christopher Faylor  <cgf@redhat.com>
26307
26308         * cppfiles.c (TEST_THRESHOLD): New macro.
26309         (SHOULD_MMAP): Ditto.
26310         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
26311         be used.
26312
26313 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
26314
26315         * unroll.c (final_reg_note_copy): Properly handle
26316         REG_LABEL
26317         (unroll_loops): Fix LOOP_CONDITION heuristics.
26318
26319 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
26320
26321         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
26322         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
26323
26324 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
26325
26326         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
26327         threaded loop.
26328
26329 2002-01-14  Tom Rix  <trix@redhat.com>
26330
26331         * config/rs6000/rs6000.md: Fix typo with sradi.
26332
26333 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
26334
26335         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
26336         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
26337         (clrstrdi, clrstrsi): Adapt callers.
26338
26339         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
26340
26341         (movti splitter): Never use register 0 as base register.
26342
26343 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
26344
26345         * combine.c (simplify_shift_const): Always generate new rtx
26346         for shift expression instead of reusing given expression.
26347
26348 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26349
26350         * config/alpha/alpha.c (alpha_expand_mov): Don't call
26351         alpha_legitimize_address unless mode is Pmode.
26352
26353 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
26354
26355         * doc/md.texi (Modifiers): Document the '*' constraint for the
26356         user.
26357
26358         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
26359         * doc/extend.texi (Function Attributes): 'interrupt' is valid
26360         for xstormy16 too.
26361
26362 2002-01-13  Richard Henderson  <rth@redhat.com>
26363
26364         * reload.c (find_reloads): Use a hard reg destination as reload reg
26365         for an input reload of the source.
26366
26367 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
26368
26369         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
26370         more generic.
26371
26372 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
26373
26374         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26375         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26376
26377         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
26378
26379 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26380
26381         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
26382
26383 2002-01-12  Tom Rix  <trix@redhat.com>
26384
26385         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
26386         TARGET_POWERPC64.
26387
26388 2002-01-12  Richard Henderson  <rth@redhat.com>
26389
26390         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
26391
26392         * doc/invoke.texi: Update Alpha options.
26393
26394         * doc/invoke.texi: Update i386 built-in function lists.
26395
26396 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
26397
26398         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
26399         referencing outside.
26400
26401 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26402
26403         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
26404         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
26405         offsets, and change line folding.
26406         * optabs.c (expand_binop): Remove warnings.
26407         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
26408
26409 2002-01-12  Graham Stott <grahams@redhat.com>
26410
26411         * attribs.c (handle_deprecated_attribute): constify WHAT.
26412         * diagnostic.c (warn_deprecated_use): Add braces, fixes
26413         dangling else warning and constify WHAT.
26414         * except.h (struct function, struct inline_remap): Move
26415         struct tag forward defs before all prototypes.
26416         (duplicate_eh_regions): Whitespace.
26417
26418 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
26419
26420         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26421         MODE_BASE_REG_CLASS.
26422         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
26423
26424 2002-01-12  Richard Henderson  <rth@redhat.com>
26425
26426         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
26427         (ix86_expand_vector_move): New.
26428         (bdesc_2arg): Remove andps, andnps, orps, xorps.
26429         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
26430         Remove old prefetch builtins.  Special case the logicals removed above.
26431         (ix86_expand_builtin): Likewise.
26432         (safe_vector_operand): Use V4SFmode, not TImode.
26433         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
26434         (ix86_expand_timode_binop_builtin): New.
26435         * config/i386/i386-protos.h: Update.
26436         * config/i386/i386.h (enum ix86_builtins): Update.
26437         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
26438         Use ix86_expand_vector_move in vector move expanders.
26439         (movti_internal, movti_rex64): Add xorps alternative.
26440         (sse_clrv4sf): Rename and adjust from sse_clrti.
26441         (prefetch): Don't work so hard.
26442         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
26443         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
26444         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
26445
26446 2002-01-11  Richard Henderson  <rth@redhat.com>
26447
26448         * config/i386/mmintrin.h: New file.
26449         * config/i386/xmmintrin.h: New file.
26450         * config.gcc (i?86-*-*): Add extra_headers.
26451         * simplify-rtx.c (simplify_unary_operation): Handle saturating
26452         truncation codes.
26453         (simplify_binary_operation): Handle saturating arithmetic codes.
26454         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
26455         not the lowpart subreg.
26456         (ix86_expand_builtin): Return a TImode dummy register instead of 0
26457         on error.
26458         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
26459
26460 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26461
26462         * conflict.c (conflict_graph_compute): Free regsets when finished.
26463         * ssa.c (compute_coalesced_reg_partition): Likewise.
26464
26465 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26466
26467         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
26468         every where we allocate a register.
26469
26470 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26471
26472         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
26473         * lcm.c (compute_earliest, compute_farthest): Likewise.
26474
26475 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
26476
26477         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
26478
26479 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
26480
26481         * doc/rtl.texi (Insns): Fix 2 typos.
26482
26483 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
26484
26485         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
26486         options.  Use @table @gcctabopt for MMIX options.  Add index
26487         entries for MMIX options.  Start new paragraph with first
26488         heading of the machine-dependent options.
26489
26490 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26491
26492         PR other/5299
26493         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
26494         * combine.c (force_to_mode): Same.
26495         * reload1.c (clear_reload_reg_in_use): Same.
26496
26497 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
26498
26499         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
26500         and 'subtargets'.
26501
26502 2002-01-11  Andreas Jaeger  <aj@suse.de>,
26503             Brad Lucier <lucier@math.purdue.edu>
26504
26505         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
26506         mcpu.
26507
26508 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
26509
26510         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
26511         Protect with IN_LIBGCC.
26512         (LINK_EH_SPEC): Add required trailing space.
26513
26514 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
26515
26516         * c-tree.h: Move function declarations so that they are listed
26517         under the filename which contains them.
26518         (check_identifier, finish_decl_top_level,
26519         lookup_name_current_level_global, shadow_record_fields): Remove.
26520
26521 2002-01-11  Andreas Jaeger  <aj@suse.de>
26522
26523         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
26524         march.
26525
26526 2002-01-10  Richard Henderson  <rth@redhat.com>
26527
26528         * config/alpha/alpha.c (print_operand): Add 'J'.
26529         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
26530         new operand with the sequence number for the lituse.  When splitting
26531         the insns, use gen_movdi_er_high_g and generate a sequence number.
26532         (gen_movdi_er_high_g): Print the sequence number if non-zero.
26533
26534 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
26535
26536         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
26537         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
26538         stvxl.
26539         (altivec_expand_builtin): Same.
26540         (altivec_expand_stv_builtin): New.
26541
26542         * config/rs6000/rs6000.h (rs6000_builtins): Same.
26543
26544         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
26545         ("altivec_lvehx"): New.
26546         ("altivec_lvewx"): New.
26547         ("altivec_lvxl"): New.
26548         ("altivec_lvx"): New.
26549         ("altivec_stvx"): New.
26550         ("altivec_stvebx"): New.
26551         ("altivec_stvehx"): New.
26552         ("altivec_stvewx"): New.
26553         ("altivec_stvxl"): New.
26554
26555 2002-01-10  Richard Henderson  <rth@redhat.com>
26556
26557         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
26558         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
26559         care not to delete instructions twice.
26560
26561 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
26562
26563         * toplev.c: Don't declare environ (it's not used anywhere).
26564         * configure.in: Don't check for declaration of environ.
26565         * config/i386/xm-mingw32.h: Don't #define environ.
26566         * config.in, configure: Regenerate.
26567
26568 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
26569
26570         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
26571         * configure: Regenerate.
26572
26573         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
26574         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
26575         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
26576         alpha/xm-vms.h.
26577         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
26578         LIMITS_H_TEST here, not in m68k/x-next.
26579         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
26580         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
26581
26582         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
26583         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
26584         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
26585
26586         * config/i386/x-djgpp: Renamed i386/t-djgpp.
26587         * config/m88k/x-dolph: Renamed m88k/t-dolph.
26588         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
26589         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
26590         replacement of quadlib.asm with quadlib.c.
26591
26592         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
26593         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
26594         config/rs6000/xm-beos.h: Delete file.
26595
26596         * config.gcc: Update to match above changes.
26597
26598 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26599
26600         * config/h8300/h8300.h: Fix comment typos.
26601         * config/h8300/h8300.md: Likewise.
26602         * config/h8300/lib1funcs.asm: Likewise.
26603
26604 2002-01-10  Dale Johannesen  <dalej@apple.com>
26605
26606         PR optimization/5269
26607         * unroll.c (precondition_loop_p): Make *increment be the correct
26608         sign when n_iterations known, to avoid confusing caller.
26609
26610 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26611
26612         * doc/extend.texi (deprecated): Fix a typo.
26613
26614 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
26615
26616         * basic-block.h (update_br_prob_note): Declare.
26617         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
26618         (try_forward_edges): Care negative frequencies and update note.
26619         (outgoing_edges_match): Tweek conditional merging heuristics.
26620         (try_crossjump_to_edge): use update_br_prob_note.
26621         * cfglayout.c (fixup_reorder_chain): Likewise.
26622         * cfrtl.c (update_br_prob_note): New.
26623         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
26624
26625         * i386.c (ix86_decompose_address): Return -1 if address contains
26626         shift.
26627         (legitimate_address_p): Require ix86_decompose_address to return 1.
26628
26629         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
26630         (cprop_insn): Likewise.
26631
26632 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26633
26634         * toplev.c: Fix formatting.
26635         * tree.c: Likewise.
26636         * tree-dump.c: Likewise.
26637         * unroll.c: Likewise.
26638         * unwind-dw2.c: Likewise.
26639         * unwind-dw2-fde.c: Likewise.
26640         * unwind-dw2-fde-glibc.c: Likewise.
26641         * unwind-sjlj.c: Likewise.
26642
26643 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
26644
26645         * doc/invoke.texi: Document PDP-11 options.
26646
26647 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26648
26649         * config/h8300/h8300.h: Fix formatting.
26650
26651 2002-01-10  Ira Ruben   <ira@apple.com>
26652
26653         Add __attribute__ ((deprecated)).
26654         * extend.texi: Document __attribute__ ((deprecated)).
26655         * invoke.texi: Document -Wno-deprecated-declarations.
26656         * testsuite/g++.dg/other/deprecated.C: New C++ test.
26657         * testsuite/gcc.dg/deprecated.c: New C test.
26658         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
26659         (c_common_attribute_table): Add "deprecated" entry.
26660         (handle_deprecated_attribute): New function.
26661         * c-decl.c (deprecated_states): New enum.
26662         deprecated_state: State of "deprecated" handling.
26663         (start_decl): Set deprecated_state based on attributes.
26664         (grokdeclarator): Test for deprecated uses, propagate attribute.
26665         * c-typeck.c (build_component_ref): Test for deprecated fields.
26666         (build_external_ref): Test for deprecated primaries.
26667         * diagnostic.c (warn_deprecated_use) New function to issue
26668         warnings about __attribute__ ((depricated)) references.
26669         * flags.h (warn_deprecated_decl): Extern declared for
26670         -W[no-]deprecated-declarations option.
26671         * print-tree.c (print_node): Show deprecated flag status.
26672         * toplev.c (warn_deprecated_decl): Defined.
26673         (W_options): Added "deprecated-declaration".
26674         * toplev.h (warn_deprecated_use): Extern declared.
26675         * tree.h (struct tree_common): Define deprecated_flag.
26676         (TREE_DEPRECATED): New macro to access flag.
26677         * cp/call.c (build_call): Test for deprecated calls.
26678         * cp/class.c (add_implicitly_declared_members): Set global
26679         flag to tell grokdeclarator to not issue deprecated warnings.
26680         * cp/cp-tree.h: Add extern for adding_implicit_members.
26681         * cp/decl.c (deprecated_states): New enum.
26682         (start_decl): Set deprecated_state based on attributes.
26683         (grokdeclarator): Test for deprecated uses, propagate attribute.
26684         * cp/lex.c (do_identifier): Test for deprecated primaries.
26685         * cp/typeck.c (build_component_ref): Test for deprecated fields.
26686
26687 2002-01-10  Ira Ruben   <ira@apple.com>
26688
26689         Fix to assign attributes to inline member functions.
26690         * cp/decl.c (start_method): Handle attrlist.
26691
26692 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26693
26694         * combine.c (expand_field_assignment): Use subreg_lsb().
26695
26696 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
26697
26698         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
26699         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
26700         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
26701         Recurse for any operand of AND as long as constant is non-zero.
26702
26703 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26704
26705         * config/h8300/h8300.md: Remove constraints from expanders.
26706
26707 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26708
26709         * varasm.c: Fix formatting.
26710         * varray.c: Likewise.
26711         * vmsdbgout.c: Likewise.
26712         * xcoffout.c: Likewise.
26713
26714 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
26715
26716         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
26717         update edge probabilities to match.
26718
26719 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
26720
26721         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
26722         dependencies.
26723         * doc/languages.texi, doc/sourcebuild.texi: New files.
26724         * doc/configfiles.texi: Make a subsubsection.  Update.
26725         * doc/configterms.texi: Add @node.  Remove warning that this isn't
26726         instructions for building GCC.
26727         * doc/makefile.texi: Make a subsection.
26728         * doc/gccint.texi: Update.
26729
26730 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
26731
26732         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
26733
26734 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
26735
26736         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
26737
26738 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
26739
26740         * optabs.c (expand_fix): Look for wider integer modes first.
26741
26742         * i386.md (mov?f): Avoid the fake const double trick for medium
26743         memory model.
26744         (min?f*/max?f*): Prohibit memory operands for i387 variant.
26745         (fop_df_4): Disable for SSE compilation.
26746
26747 2002-01-10  Graham Stott  <grahams@redhat.com>
26748
26749         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
26750         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
26751
26752 2002-01-10  Richard Henderson  <rth@redhat.com>
26753
26754         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
26755
26756 2002-01-10  Richard Henderson  <rth@redhat.com>
26757
26758         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
26759         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
26760
26761 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26762
26763         * combine.c (can_combine_p): Fix a comment typo.
26764
26765 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
26766
26767         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
26768         empty list correctly.  Change loop index $t to $f for
26769         consistency with rest of Makefile.
26770
26771 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
26772
26773         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
26774         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
26775
26776         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
26777         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
26778         (altivec_init_builtins): Same.
26779         (altivec_expand_unop_builtin): Return NULL_RTX on error.
26780         (altivec_expand_binop_builtin): Same.
26781         (altivec_expand_ternop_builtin): Same.
26782         (bdesc_dst): New.
26783
26784         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
26785         ("altivec_vctuxs"): Fix typo.
26786         ("altivec_vnmsubfp"): Same.
26787         ("altivec_dssall"): New.
26788         ("altivec_mfvscr"): New.
26789         ("altivec_dss"): New.
26790         ("altivec_lvsl"): New.
26791         ("altivec_lvsr"): New.
26792         ("altivec_dstt"): New.
26793         ("altivec_dstst"): New.
26794         ("altivec_dststt"): New.
26795         ("altivec_dst"): New.
26796
26797         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
26798         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
26799
26800 2002-01-09  Richard Henderson  <rth@redhat.com>
26801
26802         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
26803
26804 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
26805
26806         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
26807         function.
26808         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
26809         prototype.
26810         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
26811
26812 2002-01-09  Kazu Hirata  <kazu@hxi.com>
26813
26814         * read-rtl.c: Fix formatting.
26815         * real.c: Likewise.
26816         * regclass.c: Likewise.
26817         * regrename.c: Likewise.
26818         * reg-stack.c: Likewise.
26819         * reload1.c: Likewise.
26820         * reload.c: Likewise.
26821         * rtl.c: Likewise.
26822
26823 2002-01-09  Kazu Hirata  <kazu@hxi.com>
26824
26825         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
26826         to extract items in the expr_list chain.
26827
26828 2002-01-09  Richard Henderson  <rth@redhat.com>
26829
26830         * config/vax/vax.c (vax_rtx_cost): Never abort.
26831
26832         * config/vax/vax.h (REAL_ARITHMETIC): Define.
26833
26834 2002-01-09  Jan Hubicka  <jh@suse.cz>
26835
26836         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
26837
26838 2002-01-09  Richard Henderson  <rth@redhat.com>
26839
26840         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
26841         Unify code from various alternatives.
26842
26843 2002-01-09  Richard Henderson  <rth@redhat.com>
26844
26845         * regrename.c (copy_value): Ignore the copy if the source register
26846         is present in the value chain with a narrower mode.
26847
26848 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
26849
26850         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
26851         for the c4x target. Also improve layout.
26852
26853 2002-01-09  Richard Henderson  <rth@redhat.com>
26854
26855         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
26856         * config/m32r/m32r.md (and ior xor splitters): Swap operands
26857         to match insn patterns.
26858
26859 2002-01-09  Richard Henderson  <rth@redhat.com>
26860
26861         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
26862         (copyprop_hardreg_forward_1): Likewise.
26863
26864 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26865
26866         * pa.md (decrement_and_branch_until_zero): Change predicate for
26867         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
26868
26869 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
26870
26871         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
26872         gets undefined. For Darwin.
26873
26874 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26875
26876         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
26877
26878 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26879
26880         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
26881
26882 2002-01-08  Richard Henderson  <rth@redhat.com>
26883
26884         * regrename.c (copy_value): Ignore overlapping copies.
26885
26886 2002-01-08  Richard Henderson  <rth@redhat.com>
26887
26888         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
26889         as needed to avoid shared structure.
26890
26891 2002-01-08  Kazu Hirata  <kazu@hxi.com>
26892
26893         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
26894         H8/300H and H8/S.
26895
26896 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
26897
26898         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
26899         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
26900         documentation of obsolete macros.
26901         * system.h: Poison these macros.
26902         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
26903         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
26904         config/c4x/c4x.h, config/clipper/clipper.h,
26905         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
26906         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
26907         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
26908         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
26909         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
26910         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
26911         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
26912         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
26913         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
26914         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
26915         config/sparc/sparc.h, config/stormy16/stormy16.h,
26916         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
26917         definitions and commented out definitions of obsolete macros.
26918         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
26919         of MAX_INT_TYPE_SIZE.
26920
26921 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
26922
26923         * config/s390/s390.c (s390_preferred_reload_class): Never
26924         return ADDR_REGS if it isn't a subset of the given class.
26925         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
26926         FP_REGS, but all superclasses as well.
26927
26928         * config/s390/s390.c (s390_function_profiler): Fix thinko.
26929
26930         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
26931         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
26932         must not be a const_int.
26933
26934 2002-01-08  Richard Henderson  <rth@redhat.com>
26935
26936         * Makefile.in (toplev.o): Depend on options.h.
26937         (gcc.o): Depend on specs.h.
26938
26939 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
26940
26941         * expr.c (store_expr): Convert VOIDmode constants back to target's
26942         mode.
26943
26944 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
26945
26946         * doc/invoke.texi: Markup gcc as @command.  Refer to
26947         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
26948         of http://gcc.gnu.org/thanks.html.
26949
26950 2002-01-08  Dale Johannesen  <dalej@apple.com>
26951
26952         * config/rs6000/rs6000.md: Add missing int register
26953         target case to movdf_low.
26954
26955 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
26956
26957         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
26958         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
26959         (cppinit.o): Depend on except.h.
26960         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
26961         s-specs): New rules.
26962
26963         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
26964         Don't create specs.h/options.h/gencheck.h here.  Remove
26965         unnecessary variable settings from last argument of AC_OUTPUT.
26966         * config.in, configure: Regenerate.
26967         * intl.c: Hardcode package name as "gcc".
26968
26969         * cppinit.c: Include except.h.
26970         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
26971         appropriate.
26972         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
26973         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
26974         (!)USING_SJLJ_EXCEPTIONS.
26975         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
26976
26977 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
26978
26979         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
26980         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
26981         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
26982         documentation of obsolete macros.
26983         * system.h: Poison these macros.
26984         * config/d30v/d30v.h, config/ns32k/encore.h,
26985         config/stormy16/stormy16.h: Remove definitions and commented out
26986         definitions of obsolete macros.
26987
26988 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
26989
26990         * objc/objc-act.c (handle_class_ref): Mark the declaration of
26991         %sobjc_class_ref_%s as used - to prevent unwanted compiler
26992         warnings.
26993
26994 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
26995
26996         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
26997         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
26998         to insn adjusting stack/frame pointer.
26999         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
27000         accept operands that cause the insn to be non-splittable.
27001
27002 2002-01-08  Graham Stott  <grahams@redhat.com>
27003
27004         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
27005         (C_TYPE_FIELDS_VOLATILE): Likewise.
27006         (C_TYPE_BEING_DEFINED): Likewise.
27007         (C_IS_RESERVED_WORD): Likewise.
27008         (C_TYPE_VARIABLE_SIZE): Likewise.
27009         (C_DECL_VARIABLE_SIZE): Likewise.
27010         (C_MISSING_PROTOTYPE_WARNED): Likewise.
27011         (C_SET_EXP_ORIGINAL_CODE): Likewise.
27012         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
27013         parenthesis.
27014         (C_DECL_ANTICIPATED): Likewise.
27015         (c_build_type_variant): Add parenthesis.
27016
27017 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27018
27019         * gcc.c (option_map): Remove --version.
27020         (process_command): Handle -fversion following the GNU Coding
27021         Standards.  Partially addresses PR other/704.
27022
27023 2002-01-08  Graham Stott  <grahams@redhat.com>
27024
27025         * combine.c (combine_instructions): Fix typo.
27026
27027 2002-01-08  Graham Stott  <grahams@redhat.com>
27028
27029         * debug.h: Use "tree" and "rtx" throughout.
27030
27031         * debug.c: Likewise.
27032
27033 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
27034
27035         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
27036         constant pool, use the pool's version of the symbol instead.
27037
27038 2002-01-07  Richard Henderson  <rth@redhat.com>
27039
27040         * regrename.c (find_oldest_value_reg): Ignore the value chain if
27041         the original register was copied in a mode with a fewer number of
27042         hard registers than the desired mode.
27043         (copyprop_hardreg_forward_1): Likewise.
27044         (debug_value_data): Fix loop test.
27045         * toplev.c (parse_options_and_default_flags): Reenable
27046         -fcprop-registers at -O1.
27047
27048 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27049
27050         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
27051         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
27052
27053         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
27054         predicates.
27055
27056         * config/rs6000/rs6000.md: Add altivec predicate patterns.
27057
27058 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27059
27060         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
27061         (pa_output_function_prologue): Output local label at the beginning of
27062         the prologue when profiling.
27063         (hppa_profile_hook): Use the local label rather than the function label.
27064         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
27065
27066 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27067
27068         * config/rs6000/rs6000.c (print_operand): Remove extra space.
27069         (altivec_expand_unop_builtin): Fix thinko.
27070         (altivec_expand_binop_builtin): Same.
27071         (altivec_expand_ternop_builtin): Same.
27072         (altivec_expand_builtin): Same.
27073
27074 2002-01-07  Richard Henderson  <rth@redhat.com>
27075
27076         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
27077
27078 2002-01-07  Jason Merrill  <jason@redhat.com>
27079
27080         * unwind-dw2.c (execute_cfa_program): Use < again.
27081
27082 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27083
27084         * predict.c (combine_predictions_for_insn): Avoid division by zero.
27085
27086 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27087
27088         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
27089         Don't allow -1 - x -> ~x simplifications in the first pass.
27090
27091 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27092
27093         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
27094         arguments.
27095         (altivec_expand_binop_builtin): Same.
27096         (altivec_expand_unop_builtin): Same.
27097         (print_operand): Fix typo.
27098         (bdesc_1arg): Add vupk* variants.
27099
27100         * rs6000.h (rs6000_builtins): Add vupk* enums.
27101
27102         * rs6000.md: Add altivec_vupk* variants.
27103
27104 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
27105
27106         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
27107         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
27108         and last update dates.
27109
27110 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
27111
27112         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
27113
27114 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
27115
27116         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
27117         * config/avr/avr.h (CPP_SPEC): Likewise.
27118         (LINK_SPEC): Likewise.
27119         (CRT_BINUTILS_SPECS): Likewise.
27120         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
27121         * doc/invoke.texi (AVR Options): Document them.
27122
27123 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
27124
27125         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
27126         LABEL_NUSES.
27127
27128 2002-01-07  Graham Stott  <grahams@redhat.com>
27129
27130         * config/i386/i386.h: Update copyright date.
27131         (HALF_PIC_PTR): Add parenthesis.
27132         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
27133         (CONSTANT_ALIGNMENT): Add parenthesis.
27134         (DATA_ALIGNMENT): Likewise.
27135         (LOCAL_ALIGNMENT): Likewise.
27136         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
27137         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
27138         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
27139         (HARD_REGNO_NREGS): Add paranethesis.
27140         (VALID_SSE_REG_MODE): Whitespace.
27141         (VALID_MMX_REG_MODE): Whitespace.
27142         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
27143         (ix86_hard_regno_mode_ok): Add parenthesis.
27144         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
27145         (RETURN_IN_MEMORY): Whitespace.
27146         (N_REG_CLASSES): Add parenthesis.
27147         (INTEGER_CLASS_P): Add parenthesis and wrap.
27148         (FLOAT_CLASS_P): Likewise.
27149         (SSE_CLASS_P): Likewise.
27150         (MMX_CLASS_P): Likewise.
27151         (MAYBE_INTEGER_CLASS_P): Likewise.
27152         (MAYBE_FLOAT_CLASS_P): Likewise.
27153         (MAYBE_SSE_CLASS_P): Likewise.
27154         (MAYBE_MMX_CLASS_P): Likewise.
27155         (Q_CLASS_P): Likewise.
27156         (GENERAL_REGNO_P): Uppercase macro parameter.
27157         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
27158         (FP_REGNO_P): Likewise.
27159         (ANY_FP_REGNO_P): Uppercase macro parameter.
27160         (SSE_REGNO_P): Likewise.
27161         (SSE_REGNO): Likewise.
27162         (SSE_REG_P): Likewise.
27163         (SSE_FLOAT_MODE_P): Likewise.
27164         (MMX_REGNO_P): Likewise.
27165         (MMX_REG_P):Likewise.
27166         (STACK_REG_P): Likewise.
27167         (NON_STACK_REG_P): Likewise.
27168         (STACK_TOP_P): Likewise.
27169         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
27170         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
27171         (SECONDARY_MEMORY_NEEDED): Likewise.
27172         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
27173         (MD_ASM_CLOBBERS): Whitespace and wrap.
27174         (MUST_PASS_IN_STACK): Whitespace and wrap.
27175         (RETURN_POPS_ARGS): Add parenthesis.
27176         (INIT_CUMULATIVE_ARGS): Likewise.
27177         (FUNCTION_ARG): Likewise.
27178         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
27179         (SETUP_INCOMING_VARARGS): Likewise.
27180         (BUILD_VA_LIST_TYPE):  Add parenthesis.
27181         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
27182         parenthsis.
27183         (EXPAND_BUILTIN_VA_ARG): Likewise.
27184         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
27185         (INITIALIZE_TRAMPOLINE): Add parenthesis.
27186         (INITIAL_ELIMINATION_OFFSET): Likewise.
27187         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
27188         (REGNO_OK_FOR_BASE_P): Likewise.
27189         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
27190         (REGNO_OK_FOR_DIREG_P): Likewise.
27191         (REG_OK_FOR_INDEX_P): Whitespace.
27192         (REG_OK_FOR_BASE_P): Whitespace.
27193         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
27194         parenthesis.
27195         (FIND_BASE_TERM): Fix typo.
27196         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
27197         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
27198         (SYMBOLIC_CONST; Whitespace.
27199         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
27200         (ENCODE_SECTION_INFO): Whitespace.
27201         (FINALIZE_PIC): Remove do { ... } while (0).
27202         (PROMOTE_MODE): Wrap in do { ... } while (0).
27203         (CONST_COSTS): Whitespace.
27204         (RTX_COSTS): Add paramethesis, whitespace and wrap.
27205         (REGISTER_MOVE_COST): Add parenthesis.
27206         (MEMORY_MOVE_COST): Likewise.
27207         (EXTRA_CC_MODES): Whitespace.
27208         (SELECT_CC_MODE): Add parenthesis and whitespace.
27209         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
27210         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
27211         (ASM_OUTPUT_LABEL): Add paramethesis.
27212         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
27213         (ASM_OUTPUT_REG_POP): Likewise.
27214         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
27215         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
27216
27217         * config/i386/i386.c: Update copyright.
27218         (CHECK_STACK_LIMIT): Add parenthesis.
27219         (AT_BP): Uppercase macro parameter.
27220         (x86_64_int_parameter_registers): Constify.
27221         (x86_64_int_return_registers): Likewise.
27222         (ix86_compare_op0): Use rtx.
27223         (construct_container): Constify INTREG parameter.
27224         (function_arg): Use rtx.
27225
27226         * diagnostic.h: Update copyright date.
27227         (output_buffer_state): Add parenthesis.
27228         (output_buffer_format_args): Likewise.
27229
27230         * combine.c (combine_instructions): Replace XEXP (links, 0)
27231         with link.
27232
27233 2002-01-06  H.J. Lu <hjl@gnu.org>
27234
27235         * cfgcleanup.c (thread_jump): Fix 2 typos.
27236
27237 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
27238
27239         * config.gcc: Add support for --enable-altivec.
27240
27241 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27242
27243         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
27244
27245 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
27246
27247         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
27248         __objc_class_name_*.
27249
27250 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27251
27252         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
27253
27254 2002-01-06  Richard Henderson  <rth@redhat.com>
27255
27256         * reorg.c (emit_delay_sequence): Remove death notes, not merely
27257         nop them out.  Increment label reference count for REG_LABEL.
27258         (fill_slots_from_thread): Frob label reference count around
27259         delete_related_insns.
27260
27261 2002-01-05  Richard Henderson  <rth@redhat.com>
27262
27263         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
27264         jump threading.
27265
27266 2002-01-05  Richard Henderson  <rth@redhat.com>
27267
27268         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
27269         * integrate.c (output_inline_function): Likewise.
27270         * toplev.c (rest_of_compilation): Do it here instead.  Move call
27271         to remove_unnecessary_notes after emitting abstract instance.
27272         Force an emitted nested function to have its parent emited as well.
27273         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
27274         for null.
27275         (rtl_for_decl_location): Do not look at reload data structures
27276         before reload has run.
27277
27278 2002-01-05  Kazu Hirata  <kazu@hxi.com>
27279
27280         * cse.c: Fix formatting.
27281         * dwarf2asm.c: Likewise.
27282         * dwarf2out.c: Likewise.
27283         * explow.c: Likewise.
27284         * expmed.c: Likewise.
27285         * function.c: Likewise.
27286         * gcov.c: Likewise.
27287         * gencheck.c: Likewise.
27288         * genrecog.c: Likewise.
27289         * ggc-common.c: Likewise.
27290         * ggc-page.c: Likewise.
27291         * global.c: Likewise.
27292
27293 2002-01-05  Kazu Hirata  <kazu@hxi.com>
27294
27295         * combine.c: Fix formatting.
27296
27297 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
27298
27299         PR middle-end/1557
27300         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
27301
27302 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
27303
27304         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
27305         as 1 for __powerpc64__ as well.
27306
27307         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
27308
27309         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
27310         return it.
27311
27312 2002-01-05  Daniel Berlin  <dan@dberlin.org>
27313
27314         * lcm.c: Revert change, due to performance regression it causes on
27315         SPEC because it's slightly more conservative (sigh, I hate
27316         edge-based LCM).
27317
27318 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
27319
27320         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
27321
27322 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
27323
27324         * doc/cppinternals.texi: Update.
27325
27326 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
27327
27328         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
27329         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
27330         negatives.
27331         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
27332         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
27333         kludge for pre-october-14th mmix versions to handle new-found bug
27334         with PUSHJ/PUSHGO and the register stack.
27335         * config/mmix/mmix.h (struct machine_function): Rename member
27336         has_call_value_without_parameters to has_call_without_parameters.
27337         All referers changed.
27338         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
27339         TARGET_MASK_BRANCH_PREDICT): New macros.
27340         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
27341         -mno-reg-stack-fill-bug-workaround.
27342         * config/mmix/mmix.md ("call"): Set struct machine member
27343         has_call_without_parameters.
27344
27345 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
27346
27347         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
27348
27349 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
27350
27351         * cfgcleanup.c: Include tm_p.h
27352         (mark_effect): Fix handling of hard register; fix handling of SET
27353
27354 2002-01-04  Kazu Hirata  <kazu@hxi.com>
27355
27356         * config/h8300/h8300.md (anonymous patterns): Check that
27357         operands are registers before using REGNO on them.
27358
27359 2002-01-03  Roland McGrath  <roland@frob.com>
27360
27361         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
27362
27363 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
27364
27365         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
27366         * c-common.h (genrtl_expr_stmt_value): Likewise.
27367         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
27368         (expand_expr_stmt_value): Add maybe_last argument.
27369         Don't warn about statement with no effect if it is the last statement
27370         in expression statement.
27371         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
27372         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
27373         expand_expr_stmt_value.
27374         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
27375         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
27376         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
27377         as maybe_last to expand_expr_stmt_value.
27378
27379 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
27380
27381         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
27382         be passed in, do not build it.
27383         (c_begin_if_stmt): New function.
27384         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27385         * c-common.h (c_expand_start_cond): Update prototype.
27386         (c_begin_if_stmt): Prototype new function.
27387         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27388         * c-parse.in (if_prefix): Use c_begin_if_stmt,
27389         c_begin_while_stmt and c_finish_while_stmt_cond.
27390
27391 2002-01-04  William Cohen  <wcohen@redhat.com>
27392
27393         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
27394         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
27395         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
27396         * config/pa/som.h (ASM_FILE_START): Likewise.
27397
27398 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
27399
27400         * lcm.c: Include df.h.
27401         Add available_transfer_function prototype.
27402         (compute_available): Rework to use iterative dataflow framework.
27403         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
27404         with bb_info in df.h
27405         (available_transfer_function): New function.
27406
27407         * Makefile.in (lcm.o): add df.h to dependencies.
27408
27409 2002-01-04  Richard Henderson  <rth@redhat.com>
27410
27411         * config/alpha/alpha.c (some_operand): Accept HIGH.
27412         (input_operand): Likewise; accept simple references to globals.
27413         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
27414         (alpha_const_double_ok_for_letter_p): Likewise.
27415         (alpha_extra_constraint): Likewise.
27416         (alpha_preferred_reload_class): Likewise.  Do not force
27417         symbolic constants to memory.
27418         (alpha_legitimate_address_p): Accept simple references
27419         to small_symbolic_operand.
27420         (alpha_legitimize_address): New arg scratch.  Be prepared to be
27421         called when no_new_pseudos.  Emit simple symbolic references.
27422         Split integers into low, high, and rest.
27423         (alpha_expand_mov): Use alpha_legitimize_address.
27424         (some_small_symbolic_mem_operand): New.
27425         (split_small_symbolic_mem_operand): New.
27426         * config/alpha/alpha-protos.h: Update.
27427         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
27428         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
27429         (EXTRA_CONSTRAINT): Likewise.
27430         (PREFERRED_RELOAD_CLASS): Likewise.
27431         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
27432         (PREDICATE_CODES): Update.
27433         * config/alpha/alpha.md: New post-reload splitters to convert
27434         simplfied symbolic operands to the form that references $29.
27435         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
27436         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
27437
27438 2002-01-03  Richard Henderson  <rth@redhat.com>
27439
27440         * local-alloc.c (function_invariant_p): Update commentary.
27441
27442 2002-01-04  H.J. Lu <hjl@gnu.org>
27443
27444         * toplev.c (rest_of_compilation): Fix a typo when calling
27445         cleanup_cfg.
27446
27447 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27448
27449         * c-common.c: Fix formatting.
27450         * diagnostic.c: Likewise.
27451         * doloop.c: Likewise.
27452         * dwarf2out.c: Likewise.
27453
27454 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27455
27456         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
27457         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
27458
27459 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
27460
27461         * cpperror.c: Update comments and copyright.
27462         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
27463         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
27464
27465 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27466
27467         * collect2.c (main): Use strcmp when testing for "-shared".
27468
27469 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
27470
27471         * cppmacro.c: Don't include intl.h.  Update comments.
27472         (new_number_token): Allocate enough buffer for 64-bit unsigned
27473         integers; update prototype.
27474         * cppmain.c: Update comments.
27475
27476 2002-01-03  William Cohen  <wcohen@redhat.com>
27477
27478         * function.h (struct function): Add profile.
27479         (current_function_profile): New.
27480         doc/extend.texi: Update documentation.
27481         * final.c (final_start_function): Use current_function_profile
27482         instead of profile_flag.
27483         (profile_after_prologue): Likewise.
27484         * function.c (expand_function_start): Likewise.
27485         (expand_function_start): Likewise.
27486         * config/alpha/alpha.c (direct_call_operand):
27487         (alpha_does_function_need_gp): Likewise.
27488         (alpha_expand_prologue): Likewise.
27489         * config/arm/arm.c (arm_expand_prologue): Likewise.
27490         thumb_expand_prologue: Likewise.
27491         * config/d30v/d30v.c (d30v_stack_info): Likewise.
27492         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
27493         (fr30_expand_prologue): Likewise.
27494         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
27495         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
27496         * config/i386/i386.h (FINALIZE_PIC): Likewise.
27497         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
27498         * config/i960/i960.c (i960_output_function_prologue): Likewise.
27499         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
27500         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
27501         (m32r_expand_prologue): Likewise.
27502         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
27503         (m88k_expand_prologue): Likewise.
27504         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
27505         * config/mips/mips.c (compute_frame_size): Likewise.
27506         (mips_expand_prologue): Likewise.
27507         (mips_can_use_return_insn): Likewise.
27508         * config/pa/elf.h (ASM_FILE_START): Likewise.
27509         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
27510         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
27511         * config/pa/som.h (ASM_FILE_START): Likewise.
27512         * config/romp/romp.c (romp_using_r14): Likewise.
27513         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
27514         (rs6000_stack_info): Likewise.
27515         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
27516         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
27517         * config/v850/v850.c (compute_register_save_size): Likewise.
27518
27519 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
27520
27521         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
27522         gen_lowpart_common fails, use gen_lowpart_SUBREG.
27523
27524 2002-01-03  Turly O'Connor  <turly@apple.com>
27525
27526         * darwin.c (machopic_output_possible_stub_label): Don't generate
27527         stub routines for pseudo-stubs which we've just defined.
27528
27529 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27530
27531         * builtins.c: Fix formatting.
27532         * c-typeck.c: Likewise.
27533         * combine.c: Likewise.
27534         * expr.c: Likewise.
27535         * loop.c: Likewise.
27536
27537 2002-01-03  Andreas Schwab  <schwab@suse.de>
27538
27539         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
27540         and return true if _cpp_push_next_buffer pushed a new include
27541         file.
27542         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
27543         _cpp_pop_file_buffer did not push a new file.
27544         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
27545
27546 2002-01-02  Eric Christopher  <echristo@redhat.com>
27547
27548         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
27549         FIND_REG_INC_NOTE call. Update copyright.
27550         * loop.c (canonicalize_condition): Ditto.
27551         * reorg.c (delete_scheduled_jump): Ditto.
27552
27553 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27554
27555         * gcse.c: Fix formatting.
27556
27557 2002-01-03  Graham Stott  <grahams@redhat.com>
27558
27559         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
27560         forward defs for struct tags rtx_def, union_tree, rtvec_def
27561         also output corresponding typedefs for rtx, tree, and rtvec.
27562
27563         * system.h: Move forward defs for struct tags rtx_def, union_tree,
27564         rtvec_def along with corresponding typedefs for rtx, tree, and
27565         rtvec to config.h, hconfig.h, tconfig.h.
27566
27567 2002-01-03  Graham Stott  <grahams@redhat.com>
27568
27569         * tree.h: Update copyright date.
27570         (IS_EXPR_CODE_CLASS): Add parenthesis.
27571         (TREE_SET_CODE): Add whitespace.
27572         (TREE_CHECK): Add parenthesis.
27573         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
27574         (CST_OR_CONSTRUCTOR_CHECK):
27575         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
27576         (TREE_SYMBOL_REFERENCED): Whitespace.
27577         (INT_CST_LT): Likewise.
27578         (INT_CST_LT_UNSIGNED): Likewise.
27579         (tree_real_cst): Unwrap comment.
27580         (tree_string): Likewise.
27581         (tree_complex): Likewise.
27582         (IDENTIFIER_POINTER): correct cast.
27583         (SAVE_EXPR_CONTEXT): Whitespace.
27584         (EXPR_WFL_FILENAME_NODE): Likewise.
27585         (EXPR_WFL_FILENAME): Remove parenthesis.
27586         (DECL_ORIGIN): Add parenthesis.
27587         (DECL_FROM_INLINE): Use NULL_TREE.
27588         (build_int_2): Whitespace.
27589         (build_type_variant): Add parenthesis.
27590
27591         * gcc/jcf-parse.c: Update copyright date.
27592         (yyparse): Constify resource_filename.
27593
27594 2002-01-03  Graham Stott  <grahams@redhat.com>
27595
27596         * rtl.h: Update copyright date.
27597         (RTL_CHECK1): Wrap long line.
27598         (RTL_CHECK2): Likewise.
27599         (RTL_CHECKC1): Wrap long line and whitespace.
27600         (RTL_CHECKC2): Likewise.
27601         (XWINT): Whitespace.
27602         (XINT): Likewise.
27603         (XSTR): Likewise.
27604         (XEXP): Likewise.
27605         (XVEC): Likewise.
27606         (XMODE): Likewise.
27607         (XBITMAP): Likewise.
27608         (XTREE): Likewise.
27609         (XBBDEF): Likewise.
27610         (XTMPL): Likewise.
27611         (X0WINT): Likewise.
27612         (X0INT):Likewise.
27613         (X0UINT): Likewise.
27614         (X0STR): Likewise.
27615         (X0EXP): Likewise.
27616         (X0VEC): Likewise.
27617         (X0MODE): Likewise.
27618         (X0BITMAP): Likewise.
27619         (X0TREE): Likewise.
27620         (X0BBDEF): Likewise.
27621         (X0ADVFLAGS): Likewise.
27622         (X0CSELIB): Likewise.
27623         (X0MEMATTR): Likewise.
27624         (XCWINT): Likewise.
27625         (XCINT): Likewise.
27626         (XCUINT): Likewise.
27627         (XCSTR): Likewise.
27628         (XCEXP): Likewise.
27629         (XCVEC): Likewise.
27630         (XCMODE): Likewise.
27631         (XCBITMAP): Likewise.
27632         (XCTREE): Likewise.
27633         (XCBBDEF): Likewise.
27634         (XCADVFLAGS): Likewise.
27635         (XCCSELIB): Likewise.
27636         (XC2EXP): Likewise.
27637         (INSN_UID): Likewise.
27638         (PREV_INSN): Likewise.
27639         (PATTERN): Likewise.
27640         (INSN_CODE): Likewise.
27641         (PUT_REG_NOTE_KIND): Likewise.
27642         (CODE_LABEL_NUMBER): Likewise.
27643         (NOTE_SOURCE_FILE): Likewise.
27644         (NOTE_BLOCK): Likewise.
27645         (NOTE_EH_HANDLER): Likewise.
27646         (NOTE_RANGE_INFO): Likewise.
27647         (NOTE_LIVE_INFO): Likewise.
27648         (NOTE_BASIC_BLOCK): Likewise.
27649         (NOTE_EXPECTED_VALUE): Likewise.
27650         (NOTE_LINE_NUMBER): Likewise.
27651         (LABEL_NAME): Likewise.
27652         (LABEL_NUSES): Likewise.
27653         (LABEL_ALTERNATE_NAME): Likewise.
27654         (ADDRESSOF_DECL): Likewise.
27655         (JUMP_LABEL): Likewise.
27656         (LABEL_NEXTREF): Likewise.
27657         (REGNO): Likewise.
27658         (ORIGINAL_REGNO: Likewise.
27659         (HARD_REGISTER_NUM_P): Add parenthesis.
27660         (SUBREG_REG): Whitespace.
27661         (SUBREG_BYTE): Likewise.
27662         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
27663         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
27664         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
27665         (ASM_OPERANDS_INPUT_VEC): Likewise.
27666         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
27667         (ASM_OPERANDS_INPUT): Likewise.
27668         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
27669         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
27670         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
27671         (ASM_OPERANDS_INPUT_MODE): Likewise.
27672         (ASM_OPERANDS_SOURCE_FILE): Likewise.
27673         (ASM_OPERANDS_SOURCE_LINE): Likewise.
27674         (MEM_SET_IN_STRUCT_P): Minor reformat.
27675         (TRAP_CONDITION): Whitespace.
27676         (TRAP_CODE): Likewise.
27677         (COND_EXEC_TEST): Likewise.
27678         (COND_EXEC_CODE): Likewise.
27679         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
27680         (PHI_NODE_P): Add parenthesis.
27681         (plus_constant): Whitespace and add parenthesis.
27682
27683 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27684
27685         * config/avr/avr.c: Fix comment typos.
27686         * config/c4x/c4x.md: Likewise.
27687         * config/dsp16xx/dsp16xx.h: Likewise.
27688         * config/dsp16xx/dsp16xx.md: Likewise.
27689         * config/i386/i386.md: Likewise.
27690         * config/ia64/ia64.c: Likewise.
27691         * config/m32r/m32r.h: Likewise.
27692         * config/m68hc11/m68hc11.md: Likewise.
27693         * config/mmix/mmix.c: Likewise.
27694         * config/mn10200/mn10200.c: Likewise.
27695         * config/romp/romp.c: Likewise.
27696         * config/sh/sh.c: Likewise.
27697         * config/stormy16/stormy16.c: Likewise.
27698         * config/stormy16/stormy16.h: Likewise.
27699         * config/stormy16/stormy16.md: Likewise.
27700
27701 2002-01-03  Graham Stott  <grahams@redhat.com>
27702
27703         * loop.h: Update copyright date.
27704         (LOOP_MOVABLES): Fix typo.
27705         (LOOP_REGS): Likewise.
27706         (LOOP_IVS): Likewise.
27707
27708 2002-01-03  Graham Stott  <grahams@redhat.com>
27709
27710         * cppinit.c: Update copyright date.
27711         Don't include output.h
27712         * Makefile.in: Update copyright date.
27713         Update dependency.
27714
27715 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27716
27717         PR c/5226
27718         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
27719         (-pthread) Add to RS/6000 options.
27720
27721 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27722
27723         * except.c: Fix comment typos.
27724         * loop.c: Likewise.
27725         * varasm.c: Likewise.
27726         * doc/tm.texi: Fix a typo.
27727
27728 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
27729
27730         * c-typeck.c (output_init_element): Allow initializing static storage
27731         duration objects with compound literals.
27732
27733 2002-01-02  Richard Henderson  <rth@redhat.com>
27734
27735         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
27736         after abusing it.
27737
27738 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27739
27740         * gcc.c (default_compilers): Const-ify.
27741         * mips-tdump.c (stab_names): Likewise.
27742         * mips-tfile.c (map_coff_types, map_coff_storage,
27743         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
27744         pseudo_ops_t, pseudo_ops): Likewise.
27745         * protoize.c (default_include): Likewise
27746
27747         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
27748         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
27749         Add array size in declaration.
27750         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
27751         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
27752         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
27753         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
27754         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
27755         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
27756         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
27757         emtens, make_nan): Const-ify.
27758         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
27759         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
27760
27761 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
27762
27763         * config.gcc (ia64-*-*): Set extra_headers.
27764         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
27765         * config/alpha/t-osf: Remove.
27766         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
27767
27768 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
27769
27770         * config/rs6000/t-aix43: Revert previous change.
27771
27772 2002-01-02  Jason Merrill  <jason@redhat.com>
27773
27774         * c-decl.c (c_expand_body): Call outlining_inline_function when
27775         emitting an inline function out of line.
27776
27777 2002-01-02  Richard Henderson  <rth@redhat.com>
27778
27779         * dwarf2out.c (limbo_die_node): Add created_for member.
27780         (new_die): New argument created_for.  Update all callers.
27781         (mark_limbo_die_list): New.
27782         (dwarf2out_init): Register limbo_die_list as a root.
27783         (dwarf2out_finish): Force insert limbo dies into their function
27784         context.
27785
27786 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
27787
27788         PR c++/5089
27789         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
27790
27791 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27792
27793         * config/h8300/fixunssfsi.c: Update copyright.
27794         Fix comment typos.
27795         Fix formatting.
27796         * config/h8300/h8300.c: Update copyright.
27797         Eliminate warnings.
27798
27799 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27800
27801         * config/romp/romp.c: Fix comment formatting.
27802         * config/romp/romp.h: Likewise.
27803         * config/romp/romp.md: Likewise.
27804         * config/s390/s390.c: Likewise.
27805         * config/stormy16/stormy16.c: Likewise.
27806         * config/stormy16/stormy16.h: Likewise.
27807
27808 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
27809
27810         * c-common.h (genrtl_expr_stmt_value): Declare.
27811         * c-semantics.c (genrtl_goto_stmt): Redirect to...
27812         (genrtl_goto_stmt_value): ... this new function.  Pass new
27813         argument down to expand_expr_stmt_value, taking
27814         TREE_ADDRESSABLE into account.
27815         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
27816         STMT_EXPR as addressable, i.e., one whose result we want.
27817         * expr.c (expand_expr): Don't save expression statement value
27818         of labeled_blocks or loop_exprs.
27819         * stmt.c (expand_expr_stmt): Redirect to...
27820         (expand_expr_stmt_value): ... this new function.  Use new
27821         argument to tell whether to save expression value.
27822         (expand_end_stmt_expr): Reset last_expr_type and
27823         last_expr_value if we don't have either.
27824         * tree-inline.c (declare_return_variable): Mark its use
27825         statement as addressable.
27826         * tree.h: Document new use of TREE_ADDRESSABLE.
27827         (expand_expr_stmt_value): Declare.
27828
27829 2002-01-01  Tom Rix  <trix@redhat.com>
27830
27831         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
27832         rs6000_emit_allocate_stack.
27833
27834 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
27835
27836         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
27837         ${srcdir}/ginclude/ to every entry in extra_headers.
27838         * configure: Regenerate.
27839         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
27840         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
27841         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
27842         * ginclude/proto.h: Rename to config/convex/proto.h.
27843
27844 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27845
27846         * attribs.c (handle_vector_size_attribute): Use host_integerp
27847         and tree_int_cst; remove warnings.
27848         * caller-save.c (insert_restore): Add cast to get rid of warning.
27849         (insert_save): Likewise.
27850         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
27851         * regmove.c (find_matches): Add temporary var to kill a warning.
27852
27853 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
27854
27855         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
27856         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
27857         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
27858         (vms-dwarf2eh.o): Add Makefile rule.
27859         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
27860         * config/alpha/vms-dwarf2eh.asm: New file.
27861
27862         * gcc.c (delete_if_ordinary): Delete all versions.
27863
27864 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
27865
27866         * config/mmix/mmix.md: Update FIXME to not mention
27867         define_constants.
27868         (MMIX_rJ_REGNUM): New define_constants constant.
27869         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
27870         "*movdicc_real"): Adjust contraints formatting.
27871         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
27872         for branch prediction.
27873         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
27874         output template.
27875         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
27876         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
27877         number.  Delete related FIXMEs.
27878         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
27879         from number to MMIX_rJ_REGNUM.
27880         (TARGET_MASK_BRANCH_PREDICT): New.
27881         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
27882         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
27883         value.  Add -mbranch-predict and -mno-branch-predict.
27884         (TARGET_VERSION): Drop date.
27885         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
27886         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
27887         for finding out global symbols.
27888         (mmix_asm_output_labelref): Revert condition for global symbol.
27889         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
27890         (mmix_print_operand_punct_valid_p): A '+' is valid.
27891
27892 See ChangeLog.6 for earlier changes.