* ChangeLog: Follow spelling conventions.
[official-gcc.git] / gcc / ChangeLog
bloba947f748ef70d82f497ada4dbcebb0fd365e6c8a
1 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3         * ChangeLog: Follow spelling conventions.
4         * ChangeLog.0: Likewise.
5         * ChangeLog.2: Likewise.
6         * ChangeLog.3: Likewise.
7         * ChangeLog.4: Likewise.
8         * ChangeLog.5: Likewise.
9         * ChangeLog.6: Likewise.
10         * cppfiles.c: Likewise.
11         * cppinit.c: Likewise.
12         * cpplib.h: Likewise.
13         * cse.c: Likewise.
14         * debug.h: Likewise.
15         * df.c: Likewise.
16         * dominance.c: Likewise.
17         * hashtable.c: Likewise.
18         * hashtable.h: Likewise.
19         * loop.c: Likewise.
20         * config/arm/README-interworking: Likewise.
21         * config/arm/arm.c: Likewise.
22         * config/arm/arm.h: Likewise.
23         * config/arm/arm.md: Likewise.
24         * config/dsp16xx/dsp16xx.h: Likewise.
25         * config/frv/frv.c: Likewise.
26         * config/frv/frv.h: Likewise.
27         * config/ip2k/ip2k.h: Likewise.
28         * config/rs6000/rs6000.c: Likewise.
29         * config/stormy16/stormy-abi: Likewise.
30         * config/stormy16/stormy16.h: Likewise.
31         * config/v850/v850.c: Likewise.
33 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
35         * loop.c: Fix a comment typo.
37 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
39         * config/fr30/fr30.h: Fix comment typos.
40         * config/frv/frv.c: Likewise.
41         * config/i386/xmmintrin.h: Likewise.
42         * config/mips/mips.c: Likewise.
43         * config/sh/sh.c: Likewise.
45 2002-09-14  Kazu Hirata  <kazu@cs.umass.edu>
47         * haifa-sched.c: Follow spelling conventions.
48         * regclass.c: Likewise.
49         * regrename.c: Likewise.
50         * config/fp-bit.c: Likewise.
51         * config/frv/frv.h: Likewise.
52         * config/m88k/m88k.c: Likewise.
53         * config/mcore/mcore.c: Likewise.
54         * config/rs6000/darwin.h: Likewise.
55         * config/rs6000/gnu.h: Likewise.
56         * config/rs6000/linux.h: Likewise.
57         * config/rs6000/linux64.h: Likewise.
58         * config/rs6000/rs6000.c: Likewise.
59         * config/rs6000/rs6000.h: Likewise.
60         * config/sh/sh.c: Likewise.
61         * config/sparc/sparc.c: Likewise.
62         * config/sparc/ultra1_2.md: Likewise.
64 2002-09-14  Stephane Carrez  <stcarrez@nerim.fr>
66         * config/m68hc11/m68hc11.md ("movdi_internal"): Allow any offsetable
67         memory operand when source is 0 (K constraint).
68         ("movsi_internal"): Likewise.
69         ("movdf_internal"): Likewise.
70         ("movsf_internal"): Likewise.
72 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
74         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Use
75         targetm.binds_local_p to set SYMBOL_REF_FLAG.
76         (rs6000_xcoff_encode_section_info): Likewise.
77         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
79 2002-09-10  Theodore A. Roth  <troth@verinet.com>
81         * gcc/config/avr/avr.h: Set default options for C++ for avr.
83 2002-09-13  Richard Henderson  <rth@redhat.com>
85         * Makefile.in (toplev.o): Depend on real.h.
86         (print-rtl.o, varasm.o, ifcvt.o): Likewise.
88 2002-09-14  Alan Modra  <amodra@bigpond.net.au>
90         * doc/tm.texi (DBX_OUTPUT_NFUN): Describe.
91         * dbxout.c (dbxout_function_end): Use DBX_OUTPUT_NFUN.
92         * config/rs6000/linux64.h (DBX_OUTPUT_NFUN): Define.
94 2002-09-13  Nathan Sidwell  <nathan@codesourcery.com>
96         * ggc-common.c (ggc_mark_roots): Don't iterate NULL hash tables.
98 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
100         * config.gcc (ia64*-*-aix*, ia64*-*-elf*, ia64*-*-freebsd*,
101         ia64*-*-linux*): Set extra_parts.
102         * config/ia64/t-aix (EXTRA_PARTS): Remove.
103         * config/ia64/t-ia64 (EXTRA_PARTS): Remove.
105 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
107         * config/h8300/fixunssfsi.c: Replace H8/S with H8S.
108         * config/h8300/h8300.c: Likewise.
109         * config/h8300/h8300.h: Likewise.
110         * config/h8300/h8300.md: Likewise.
111         * doc/invoke.texi: Likewise.
113 2002-09-13  Kazu Hirata  <kazu@cs.umass.edu>
115         * config/h8300/h8300.c (h8300_init_once): Fix formatting.
117 2002-09-13  Matt Austern  <austern@apple.com>
119         * cp/cp-tree.h, cp/tree.c: New function non_cast_lvalue_p.
120         * cp/call.c: Change call-by-const-reference mechanism to use
121         non_cast_lvalue_p when deciding whether the create a temporary.
122         We need a temporary when passing, e.g. (long) x by const ref.
123         * testsuite/g++.dg/other/constref[12].C: New, regression tests for
124         passing a cast expression to a function by const reference.
125         
126 2002-09-13  Richard Henderson  <rth@redhat.com>
128         * config/alpha/alpha.md (attr type): Add callpal.
129         (imb, trap, load_tp, set_tp): Use it.
130         * config/alpha/ev4.md (ev4_callpal): New.
131         * config/alpha/ev5.md (ev5_callpal): New.
132         * config/alpha/ev6.md (ev6_ibr): Handle callpal.
133         * config/alpha/alpha.c (alphaev4_insn_pipe): Handle TYPE_CALLPAL.
134         (alphaev5_insn_pipe): Likewise.
136 2002-09-13  Andreas Jaeger  <aj@suse.de>
138         * Makefile.in (print-rtl.o): Depend on CONFIG_H.
140 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
142         * config/ia64/t-hpux (LIBGCC1_TEST, STMP_FIXPROTO,
143         LIB2ADDEH): New, set to NULL.
144         (SHLIB_EXT, SHLIB_LINK, SHLIB_INSTALL, SHLIB_MKMAP): New.
146 2002-09-13  Steve Ellcey  <sje@cup.hp.com>
148         * config/ia64/quadlib.c (_U_Qfcmp): Make extern.
149         (_U_Qfcnvfxt_quad_to_sgl): Remove declaration.
150         (_U_Qfeq, _U_Qfne, _U_Qfgt, _U_Qfge, U_Qflt, U_Qfle, _U_Qfcomp):
151         Add declarations.
152         (_U_Qfneg): Remove.
154 2002-09-13 Dhananjay Deshpande  <dhananjayd@kpit.com>
156         * config/h8300/h8300.h (EIGHTBIT_CONSTANT_ADDRESS_P): Add support
157         for H8/300, H8/S aa:8 mode.
158         (TINY_CONSTANT_ADDRESS_P): Add support for H8/S aa:16 mode.
159         * config/h8300/h8300.c (h8300_adjust_insn_length): Adjust length
160         for H8/300 aa:8 mode.
162 2002-09-13  Hartmut Penner  <hpenner@de.ibm.com>
164         * config/s390/s390.md ("trap", "conditional_trap", "*trap"): New
165         insns.
167 2002-09-12  Richard Henderson  <rth@redhat.com>
169         * Makefile.in (HOST_PRINT): Use print-rtl1.o
170         (print-rtl.o): Don't define GENERATOR_FILE.
171         (print-rtl1.o): Rename from $(BUILD_PREFIX_1)print-rtl.o.
172         * print-rtl.c (print_rtx): Include CONST_DOUBLE fp decimal output
173         unless GENERATOR_FILE.
175 2002-09-12  Stan Shebs  <shebs@apple.com>
177         * config/darwin.h (USER_LABEL_PREFIX): Define here...
178         * config/i386/darwin.h: ... instead of here.
180         * target.h (struct gcc_target): New field
181         terminate_dw2_eh_frame_info.
182         * target-def.h (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
183         (TARGET_INITIALIZER): Add it.
184         * dwarf2out.c (output_call_frame_info): Use target hook.
185         * dwarf2asm.c (dw2_asm_output_delta): Use macro
186         ASM_OUTPUT_DWARF_DELTA if defined.
187         * doc/tm.texi (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Document.
188         (ASM_OUTPUT_DWARF_DELTA): Ditto.
189         (ASM_OUTPUT_DWARF_OFFSET): Ditto.
190         (ASM_OUTPUT_DWARF_PCREL): Ditto.
191         * config.gcc (i[34567]86-*-darwin*): Define extra_parts.
192         (powerpc-*-darwin*): Ditto.
193         * crtstuff.c [OBJECT_FORMAT_MACHO]: Update the Mach-O bits
194         to work correctly for Darwin.
195         * config/darwin.h (OBJECT_FORMAT_MACHO): Define.
196         (STARTFILE_SPEC): Add crtbegin.o.
197         (ENDFILE_SPEC): Define.
198         (EXTRA_SECTION_FUNCTIONS): Put gcc_except_tab in data segment.
199         (ASM_PREFERRED_EH_DATA_FORMAT): Handle more cases.
200         (ASM_OUTPUT_DWARF_DELTA): Define.
201         (TARGET_TERMINATE_DW2_EH_FRAME_INFO): Define.
202         * config/darwin.c (darwin_asm_output_dwarf_delta): New function.
204 2002-09-13  Alan Modra  <amodra@bigpond.net.au>
206         * config/rs6000/rs6000.c (rs6000_emit_load_toc_table): Remove "if"
207         nesting.  Correct test for non-PowerPC64 ELF ABI_AIX.
208         * config/rs6000/rs6000.md (load_toc_v4_PIC*): Disable when ABI_AIX.
210 2002-09-12  Zack Weinberg  <zack@codesourcery.com>
212         * toplev.c: Move default definition of USER_LABEL_PREFIX...
213         * defaults.h: ... here.
215 2002-09-12  Richard Henderson  <rth@redhat.com>
217         * vax.c: Include tree.h earlier.
219 2002-09-12  Stan Shebs  <shebs@apple.com>
221         * config/darwin.c (machopic_finish): Remove #if 0 chunks.
222         (machopic_operand_p): Ditto.
224 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
226         * config/arm/arm.c (arm_compute_initial_elimination_offset):
227         Fix a comment typo.
229 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
231         * toplev.c (do_abort): Fix a comment typo.
233 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
235         * cselib.c: Fix comment formatting.
236         * gengtype.c: Likewise.
238 2002-09-12  Kazu Hirata  <kazu@cs.umass.edu>
240         * config/h8300/h8300.md (udivmodqi4): Do not use an expander.
241         (udivmodhi4): Likewise.
243 2002-09-12  Graham Stott  <graham.stott@btinternet.com>
244             Roger Sayle  <roger@eyesopen.com>
246         * i386.c (any_fp_register_operand, fp_register_operand,
247         register_and_not_any_fp_reg_operand, register_and_not_fp_reg_operand):
248         New predicate functions.
249         * i386-protos.h:  Add their prototypes.
250         * i386.h: Add them to PREDICATE_CODES.
251         * i386.md ("*pushsf_rex64"+2, "*pushsf_rex64"+3, "*pushdf_integer"+1,
252         "*pushdf_integer"+2, "*pushtf_integer"+1, "*pushtf_integer"+2,
253         "*pushtf_integer"+3, "*pushtf_integer"+4, "*dummy_extendsfdf2"+1,
254         "*dummy_extendsfdf2"+2, "*dummy_extendsfxf2"+1,
255         "*dummy_extendsftf2"+1, "*dummy_extendsftf2"+2,
256         "*dummy_extenddfxf2"+1, "*dummy_extenddftf2"+1,
257         "*dummy_extenddftf2"+2, "*negsf2_if"+1, "*negsf2_if"+2,
258         "*negdf2_if_rex64"+1, "*negdf2_if_rex64"+2, "*negxf2_if"+1,
259         "*negxf2_if"+2, "*negtf2_if"+1, "*negtf2_if"+2, "*abssf2_if"+1,
260         "*abssf2_if"+2, "*absdf2_if_rex64"+1, "*absdf2_if_rex64"+2,
261         "*absxf2_if"+1, "*absxf2_if"+2, "*abstf2_if"+1, "*abstf2_if"+2):
262         Use these new predicates to simplify and correct the use of
263         FP_REG_P, ANY_FP_REG_P, FP_REGNO_P and any ANY_FP_REGNO_P.
265 2002-09-12  Jason Merrill  <jason@redhat.com>
267         * diagnostic.c (output_add_identifier): New fn.
268         * diagnostic.h: Declare it.
270         * calls.c (store_one_arg): Use size_in_bytes to determine the
271         amount of space to push.
273 2002-09-12  Jakub Jelinek  <jakub@redhat.com>
275         * config/sparc/linux64.h (STARTFILE_SPEC32): Fix a typo.
277 2002-09-12  Ulrich Weigand  <uweigand@de.ibm.com>
279         * config/s390/s390-modes.def (CCAPmode, CCANmode): New CC modes.
280         * config/s390/s390.c (s390_match_ccmode_set): Support new CC modes.
281         (s390_select_ccmode): Likewise.
282         (s390_branch_condition_mask): Likewise.
283         (optimization_options): Do not set flag_branch_on_count.
284         (s390_split_branches): Handle doloop branches.
285         (s390_chunkify_pool): Likewise.
286         * config/s390/s390.md ("*adddi3_imm_cc", "*addsi3_imm_cc"): New insns.
287         ("doloop_end"): New expander.
288         ("doolop_si", "*doloop_si_long", "doloop_di", "*doloop_di_long",
289         associated splitters): New.
291 2002-09-11  Hartmut Penner  <hpenner@de.ibm.com>
293         * fold-const.c (make_range): Only narrow to signed range if
294         the signed range is smaller than the unsigned range.
296 2002-09-12  Alan Modra  <amodra@bigpond.net.au>
298         * emit-rtl.c (set_mem_size): New function.
299         * expr.h (set_mem_size): Declare.
300         * config/rs6000/rs6000.c (expand_block_move_mem): Exterminate.
301         (expand_block_move): Instead, use adjust_address and
302         replace_equiv_address to generate proper aliasing info.
303         Move common code out of conditionals.  Localize vars.
305 2002-09-09  Eric Botcazou  ebotcazou@libertysurf.fr
307         * optabs.c (expand_binop): Minor cleanup.
308         (expand_twoval_binop): Convert CONST_INTs like in expand_binop.
310 2002-09-11  Dan Nicolaescu  <dann@ics.uci.edu>
312         * print-tree.c (print_node): Print the restrict qualifier.
314 2002-09-11  Janis Johnson  <janis187@us.ibm.com>
316         * doc/install.texi: Fix typos.
318 2002-09-11  Zack Weinberg  <zack@codesourcery.com>
320         * Makefile.in: Remove all references to s-under and underscore.c.
321         * collect2.c, tlink.c: Change all uses of prepends_underscore
322         to look directly at USER_LABEL_PREFIX.
324 2002-09-11  David Edelsohn  <edelsohn@gnu.org>
326         * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Append
327         alignment to csect.
328         (rs6000_xcoff_unique_section): Only set section name for public
329         data.
330         (rs6000_xcoff_section_type_flags): Store log2 alignment in flags.
331         * config/rs6000/xcoff.h (TARGET_ASM_SELECT_SECTION): Remove
332         duplicate definition.
334 2002-09-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
336         * pa.md (extzv): Check predicates before emitting extzv_32.
337         (insv): Likewise.
339 2002-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
341         * config/s390/s390.h (MOVE_MAX): Define to correct value.
342         (MAX_MOVE_MAX): Define.
343         (MOVE_BY_PIECES_P): Define.
344         (CLEAR_BY_PIECES_P): Define.
346 2002-09-10  Denis Chertykov  <denisc@overta.ru>
348         * config/avr/avr.md (movstrhi): Use right operands for conversion.
350 2002-09-10  Richard Earnshaw  <rearnsha@arm.com>
352         PR c/7873
353         * arm.md (insv): Use reg_or_int_operand for operand[3].
355 2002-09-10  David Edelsohn  <edelsohn@gnu.org>
357         * rs6000.c (rs6000_assemble_visibility): Protect declaration
358         inside macro.  Correct function definition typo.
359         (rs6000_xcoff_section_type_flags): New function.
360         (TARGET_SECTION_TYPE_FLAGS): Remove definition.
361         (rs6000_elf_section_type_flags): Call default_section_type_flags_1
362         with appropriate PIC test.
363         (rs6000_xcoff_select_section): Use decl_readonly_section_1 to
364         determine readonly.
365         (rs6000_binds_local_p): Combine PIC flags.
366         * sysv4.h (TARGET_SECTION_TYPE_FLAGS): Define.
367         * xcoff.h (TARGET_SECTION_TYPE_FLAGS): Define.
369 2002-09-09  Per Bothner  <per@bothner.com>
371         * print-tree.c (print_node):  In a STRING_CST, escape non-ascii
372         characters, and only print TREE_STRING_LENGTH chars.
374 2002-09-09  Steve Ellcey  <sje@cup.hp.com>
376         * config/ia64/hpux.h (TARGET_HPUX_LD): New, define true.
377         (ASM_FILE_END) New.
378         * config/ia64/ia64.h (TARGET_HPUX_LD): New, define false.
379         * config/ia64/ia64-protos.h (ia64_hpux_asm_file_end): New.
380         * config/ia64/ia64.c (ia64_asm_output_external): Create list
381         of external functions if TARGET_HPUX_LD is true.
382         (ia64_hpux_add_extern_decl): New, routine to put names on
383         list of external functions.
384         (ia64_hpux_asm_file_end): Put out declarations for external
385         functions if and only if they are used.
387 2002-09-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
389         * pa.md (exception_receiver, builtin_setjmp_receiver): Add blockage
390         on TARGET_64BIT before pic register restore.
392 2002-09-09  David Edelsohn  <edelsohn@gnu.org>
394         * doc/tm.texi (TARGET_HAVE_SRODATA_SECTION): New description.
395         (TARGET_HAVE_TLS): New description.
397 2002-09-09  Janis Johnson  <janis187@us.ibm.com>
399         * doc/extend.texi (Statement Exprs): Fix broken link.
401 2002-09-09  Denis Chertykov  <denisc@overta.ru>
403         * config/avr/avr.md (movstrhi, clrstrhi): Use gen_int_mode for
404         right conversion of operands[1].
406 2002-09-09  Ulrich Weigand  <uweigand@de.ibm.com>
408         * config/s390/s390.md ("*tmdi_reg", "*tmsi_reg"): Do not mark as
409         commutative.  Use "nonimmediate_operand" instead of "register_operand"
410         as predicate for operand 0.  Move to after the "*tmXX_mem" insns.
412         ("*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem"): Do not mark
413         as commutative.
415         ("*anddi3_ni", "*andsi3_ni", "*iordi3_ni", "*iorsi3_ni"): Do not
416         mark as commutative.  Use "nonimmediate_operand" instead of
417         "register_operand" as predicate for operand 1.
419         ("movstrictsi"): Fix typo in insn name.
421 2002-09-09  Jan Hubicka  <jh@suse.cz>
423         * i386.c (index_register_operand): New.
424         * i386.h (predicate_codes): Add new predicate.
425         * i386.md (lea_general_*): Use index_regsiter_operand
426         (ashift to lea splitter): Do not produce invalid leas
427         (ashift to mov+ashift split): New.
429 2002-09-09  Nick Clifton  <nickc@redhat.com>
431         * config/fr30/fr30.c (output.h): Move after inclusion of tree.h.
432         Fix folding marks.
434 2002-09-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
435             J"orn Rennecke <joern.rennecke@superh.com>
437         * sh/sh.h (OVERRIDE_OPTIONS): align_functions is in bytes, not bits.
439 2002-09-09  Alan Modra  <amodra@bigpond.net.au>
441         * config/rs6000/rs6000.c (rs6000_binds_local_p): Return bool.
442         (function_ok_for_sibcall): Use binds_local_p.  Respect longcall
443         attributes.
445 2002-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
447         * fr30.c (fr30_print_operand): Fix bug in output of CONST_DOUBLE.
449 2002-09-08  Richard Henderson  <rth@redhat.com>
451         * dwarf2.h (DW_OP_call_ref): Rename from DW_OP_calli.
452         (DW_OP_GNU_push_tls_address): New.
453         (DW_OP_lo_user): Fix.
454         * dwarf2out.c (INTERNAL_DW_OP_tls_addr): New.
455         (dwarf_stack_op_name): Handle it, plus other dwarf3 opcodes.
456         (size_of_loc_descr): Likewise.
457         (output_loc_operands): Handle INTERNAL_DW_OP_tls_addr.
458         (add_AT_location_description): Take a dw_loc_descr_ref not an rtx.
459         (loc_descriptor_from_tree): Handle TLS variables.
460         (rtl_for_decl_location): Do avoid_constant_pool_reference here ...
461         (add_location_or_const_value_attribute): ... not here.  Defer
462         to loc_descriptor_from_tree for TLS variables.
464         * config/i386/i386.h (ASM_OUTPUT_DWARF_DTPREL): New.
465         * config/i386/i386.c (i386_output_dwarf_dtprel): New.
466         * config/i386/i386-protos.h: Update.
468 2002-09-08  Roger Sayle  <roger@eyesopen.com>
470         PR optimization/6405
471         * unroll.c (loop_iterations): last_loop_insn should be the previous
472         non-note instruction before loop->end.
473         * loop.c (strength_reduce): The conditional jump is the last
474         non-note instruction before loop->end (as above).
476 2002-09-08  Roger Sayle  <roger@eyesopen.com>
478         * combine.c (try_combine): Handle the case that undobuf.other_insn
479         has been turned into a return or unconditional jump, by inserting
480         a BARRIER if necessary.
481         (simplify_set):  Test if a condition code setter has a constant
482         comparison at compile time, if so convert this insn to a no-op move
483         and update/simplify the condition code user (undobuf.other_insn).
485 2002-09-08  Krister Walfridsson  <cato@df.lth.se>
487         * config/arm/netbsd.h (INITIALIZE_TRAMPOLINE): Redefine.
488         (CLEAR_INSN_CACHE): Define.
490 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
492         * basic-block.h: Fix comment formatting.
493         * c-common.c: Likewise.
494         * c-common.h: Likewise.
495         * c-lex.c: Likewise.
496         * c-pretty-print.c: Likewise.
497         * cfglayout.c: Likewise.
498         * cfgloop.c: Likewise.
499         * defaults.h: Likewise.
500         * et-forest.c: Likewise.
501         * explow.c: Likewise.
502         * function.h: Likewise.
503         * gcov.c: Likewise.
504         * genattrtab.c: Likewise.
505         * gengtype.c: Likewise.
506         * ifcvt.c: Likewise.
507         * libgcc2.c: Likewise.
508         * loop.c: Likewise.
509         * profile.c: Likewise.
510         * ra-build.c: Likewise.
511         * real.c: Likewise.
512         * rtl.h: Likewise.
513         * tracer.c: Likewise.
514         * tree-inline.c: Likewise.
515         * varasm.c: Likewise.
517 2002-09-08  Jan Hubicka  <jh@suse.cz>
519         * emit-rtl.c (set_mem_attributes_minus_bitpos): Fix array_ref
520         handling.
522         * loop.c (loop_gics_reduce):  Emit addition after.
524 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
526         * varasm.c (default_assemble_visibility): Rename from
527         assemble_visibility.
528         * output.h: Here too.
529         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): And here.
530         * config/rs6000/rs6000.c (rs6000_assemble_visibility): And here.
532 2002-09-08  Alan Modra  <amodra@bigpond.net.au>
534         * reload.c (find_reloads <p constraint>): Pass operand_mode to
535         find_reloads_address.
537 2002-09-08  Kazu Hirata  <kazu@cs.umass.edu>
539         * config/h8300/h8300.md (udivmodqi4): Enable on H8/300.
540         (anonymous pattern): Likewise.
542 2002-09-07  Scott Snyder  <snyder@fnal.gov>
544         PR target/7374
545         * config/alpha/alpha.md (abstf2): Fix typo: 'neg' for 'abs'.
547 2002-09-07  Roger Sayle  <roger@eyesopen.com>
549         * basic-block.h (struct loop): Remove unused cont_dominator field.
551 2002-09-07  Igor Shevlyakov <igor@microunity.com>
553         * varasm.c (decode_rtx_const): Don't check undefined field for
554         CONST_VECTOR.
556 2002-09-07  Glen Nakamura  <glen@imodulo.com>
558         PR opt/7814
559         * sched-deps.c (sched_analyze_insn): Make sure to add insn
560         to reg_last->sets after flushing the dependency lists to guarantee
561         that subsequent clobbers will be dependent on it.
563 2002-09-07  Igor Shevlyakov <igor@microunity.com>
565         * combine.c (simplify_shift_const): Calculate rotate count
566         correctly for vector operands.
568 2002-09-07  Ansgar Esztermann  <ansgar@thphy.uni-duesseldorf.de>
570         * c-typeck.c (c_tree_expr_nonnegative_p): New function.
571         (build_binary_op): Call c_tree_expr_nonnegative_p rather than
572         tree_expr_nonnegative_p.
573         (build_conditional_expr): Likewise.
574         * c-tree.h (c_tree_expr_nonnegative_p): Declare.
576 2002-09-07  Richard Henderson  <rth@redhat.com>
578         * builtins.def (inf, inff, infl): Mark const.
579         (huge_val, huge_valf, huge_vall): Likewise.
580         (BUILT_IN_GETEXP, BUILT_IN_GETMAN): Remove.
582         * real.c (ereal_inf): Clear E before use.
584 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
586         * config/h8300/h8300.md (udivmodqi4): Split the pattern into
587         an expander and an anonymous pattern.  Zero out the upper half
588         of the dividend in the expander.
589         (udivmodqi4): Likewise.
591 2002-09-07  Kazu Hirata  <kazu@cs.umass.edu>
593         * config/h8300/h8300.c: Fix formatting.
594         * config/h8300/h8300.h: Likewise.
595         * config/h8300/h8300.md: Likewise.
597 2002-09-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
599         * cfgcleanup.c (try_crossjump_to_edge): Fix updating of liveness
600         information.
602 2002-09-07  Graham Stott  <graham.stott@btinternet.con>
604        * rtlanal.c (dead_or_set_regno_p): Fix typo.
606 2002-09-07  Alan Modra  <amodra@bigpond.net.au>
608         * config/rs6000/linux64.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
610         * doc/tm.texi (TARGET_ASM_ASSEMBLE_VISIBILITY): Describe.
611         * target-def.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
612         (TARGET_ASM_OUT): Add the above here.
613         * target.h (struct gcc_target): Add "visibility" field.
614         * varasm.c (maybe_assemble_visibility): Call targetm visibility func.
615         * config/rs6000/rs6000.c (rs6000_assemble_visibility): New function.
616         (TARGET_ASM_ASSEMBLE_VISIBILITY): Define.
617         (rs6000_legitimize_reload_address, first_reg_to_save): Formatting.
619 2002-09-06  Ziemowit Laski <zlaski@apple.com>
621         * c-lang.c (objc_is_id): New stub.
622         * c-tree.h (objc_is_id): New forward declaration.
623         * c-typeck.c (build_c_cast): Do not strip protocol
624         qualifiers from 'id' type.
625         * objc/objc-act.c (objc_comptypes): Correct handling
626         of protocol qualifiers.
627         (objc_is_id): New.
629 Fri Sep  6 13:10:08 2002  Jeffrey A Law  (law@redhat.com)
631         * pentium.md (pentium-firstvboth): Fix typo.
633 2002-09-06      Dhananjay Deshpande <dhananjayd@kpit.com>
635         * h8300.c (enum shift_alg): Move to earlier in h8300.c.
636         (enum shift_type, enum h8_cpu): Likewise.
637         (INL, ROT, LOP, SPC macros): Likewise.
638         (shift_alg_qi, shift_alg_hi, shift_alg_si): Likewise.  Lose
639         const designator.
640         (h8300_init_once): Update shift_alg_{qi,hi,si} to use more
641         space efficient algorithms when optimize for codesize.
643 Fri Sep  6 16:35:32 2002  Nicola Pero  <n.pero@mi.flashnet.it>
645         Fix PR/1727 and long-standing failing testcase
646         objc/formal-protocol-6.m.
647         * objc-act.c (build_protocol_expr): If compiling for the GNU
648         runtime, create a list of Protocol statically allocated instances
649         if it doesn't exist, then add the Protocol object to this same
650         list.
651         (get_objc_string_decl): Fixed typo/bug - TREE_VALUE had been used
652         instead of TREE_CHAIN.
654 Fri Sep  6 16:17:33 2002  Nicola Pero  <n.pero@mi.flashnet.it>
656         * objc/objc-act.c (dump_interface): Enlarged the char * buffer to
657         10k.  Fixed category dumping - print out category names with the
658         proper syntax.  Print '@end\n' and not '\n@end' at the end of the
659         interface.
660         (finish_objc): Fixed the -gen-decls option.  It was printing out
661         only the last class.  Dump an interface declaration of all classes
662         being compiled instead.
664 2002-09-06  Jason Thorpe  <thorpej@wasabisystems.com>
666         * config/arm/arm-protos.h (arm_gen_return_addr_mask): New
667         prototype.
668         * config/arm/arm.c (arm_gen_return_addr_mask): New function.
669         * config/arm/arm.h (MASK_RETURN_ADDR): Use arm_gen_return_addr_mask
670         if not APCS26 and not Thumb or ARMv4-or-higher.  Use gen_int_mode
671         rather than GEN_INT.
672         * config/arm/arm.md (UNSPEC_CHECK_ARCH): Define.
673         (return_addr_mask, *check_arch2): New.
675 2002-09-06  Ulrich Weigand  <uweigand@de.ibm.com>
677         * config/s390/s390.md ("*adddi3_cc", "*adddi3_cconly",
678         "*adddi3_cconly2", "*adddi3_64", "*adddi3_31", "adddi3",
679         "*addsi3_carry1_cc", "*addsi3_carry1_cconly",
680         "*addsi3_carry2_cc", "*addsi3_carry2_cconly",
681         "*addsi3_cc", "*addsi3_cconly", "*addsi3_cconly2", "addsi3",
682         "adddf3", "*adddf3", "*adddf3_ibm",
683         "addsf3", "*addsf3", "*addsf3_ibm",
684         "muldi3", "mulsi3", "mulsidi3",
685         "muldf3", "*muldf3", "*muldf3_ibm",
686         "mulsf3", "*mulsf3", "*mulsf3_ibm",
687         "*anddi3_cc", "*anddi3_cconly", "anddi3",
688         "*andsi3_cc", "*andsi3_cconly", "andsi3",
689         "*iordi3_cc", "*iordi3_cconly", "iordi3",
690         "*iorsi3_cc", "*iorsi3_cconly", "iorsi3",
691         "*xordi3_cc", "*xordi3_cconly", "xordi3",
692         "*xorsi3_cc", "*xorsi3_cconly", "xorsi3"): Use "nonimmediate_operand"
693         instead of "register_operand" as predicate for "%0" operand.
695 2002-09-06  Jakub Jelinek  <jakub@redhat.com>
697         * configure.in (HAVE_AS_OFFSETABLE_LO10): Use -xarch=v9
698         unconditionally when gcc_cv_as_flags64 checks are gone.
699         * configure: Rebuilt.
701 2002-09-06  Alan Modra  <amodra@bigpond.net.au>
703         * config/rs6000/rs6000.md (extzvsi_internal2): Revert most of
704         2002-07-26 change.  Comment.
706 2002-09-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
708         * frv.c (frv_unique_section, frv_select_section,
709         frv_select_rtx_section): Delete.
710         (frv_in_small_data_p): New.
711         (TARGET_ASM_UNIQUE_SECTION, TARGET_ASM_SELECT_SECTION,
712         TARGET_ASM_SELECT_RTX_SECTION): Delete.
713         (TARGET_IN_SMALL_DATA_P): Define.
715 2002-09-05  Dale Johannesen  <dalej@apple.com>
717         * reload1.c (reload):  Retain only those memory clobbers
718         added for variable-array handling.
720 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
722         * config/arm/arm.c (arm_return_in_memory): Implement ATPCS
723         return-in-memory rules.
724         * config/arm/arm.h (ARM_FLAG_ATPCS, TARGET_ATPCS): Define.
726 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
728         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Delete.
729         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Delete.
731 2002-09-05  Jason Thorpe  <thorpej@wasabisystems.com>
733         * real.c: Avoid parse error if FLOAT_WORDS_BIG_ENDIAN is
734         not a compile-time constant for the non-IBM case.
735         * config/arm/arm-protos.h (arm_float_words_big_endian): New
736         prototype.
737         * config/arm/arm.c (arm_float_words_big_endian): New function.
738         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define __VFP_FP__
739         if TARGET_VFP  and not TARGET_HARD_FLOAT.
740         (ARM_FLAG_VFP, TARGET_VFP): Define.
741         (FLOAT_WORDS_BIG_ENDIAN): Use arm_float_words_big_endian.
743 2002-09-05  David Edelsohn  <edelsohn@gnu.org>
745         * doc/install.texi: Correct text of s390-*-linux* and s390x-*-linux*
746         URLs.  Fix AIX wording.
748 2002-09-05  Stan Shebs  <shebs@apple.com>
750         * config/rs6000/rs6000.c (rs6000_override_options): Make -fpic and
751         -fPIC equivalent on Darwin.
753 Thu Sep  5 16:27:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
755         * sh.c (sh_expand_builtin): Return early if encountering an
756         error_mark for a type.
758 2002-09-05  Ulrich Weigand  <uweigand@de.ibm.com>
760         * config/s390/s390.c (s390_expand_plus_operand): Do not require
761         double-word scratch register.
762         config/s390/s390.md ("reload_indi", "reload_insi"): Adapt.
764         ("*tmqi_ext", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem", "*tmqi_mem",
765         "*cli"): Replace s_operand by memory_operand.
766         ("cmpstrdi", "cmpstrsi"): Replace s_operand by general_operand.
768 2002-09-05  Kazu Hirata  <kazu@cs.umass.edu>
770         * config/h8300/h8300.c (asm_file_start): Add a missing
771         semicolon.
773 2002-09-04  Krister Walfridsson  <cato@df.lth.se>
775         * config/i386/i386.h (GOT_SYMBOL_NAME): Define.
776         * config/i386/i386.c (output_set_got): Use GOT_SYMBOL_NAME.
777         (ix86_output_addr_diff_elt) Likewise.
778         (x86_output_mi_thunk) Likewise.
779         * config/i386/netbsd.h (GOT_SYMBOL_NAME): Redefine.
781 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
783         * frv.c (frv_encode_section_info): Fix error in last change.
785 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
787         * config/rs6000/rs6000.c (rs6000_flag_pic): New variable.
788         (rs6000_elf_encode_section_info): ATTRIBUTE_UNUSED.
789         (TARGET_BINDS_LOCAL_P): Define.
790         (rs6000_override_options): Save original flag_pic value.
791         (rs6000_elf_select_section): Call default_elf_select_section_1.
792         (rs6000_elf_unique_section): Call default_unique_section_1.
793         (rs6000_elf_in_small_data_p): New function.
794         (rs6000_xcoff_asm_named_section): Determine storage mapping class.
795         (rs6000_xcoff_select_section): Update based on defaults.
796         (rs6000_xcoff_unique_section): Set to basic name if not common.
797         (rs6000_binds_local_p): New function.
798         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Set
799         targetm.have_srodata_section if SDATA_EABI.
800         (TARGET_IN_SMALL_DATA_P): Define.
802 2002-09-04  Dale Johannesen  <dalej@apple.com>
804         * varasm.c (struct rtx_const, decode_rtx_const):
805         Make veclo and vechi fields not share storage.
807 Thu Sep  5 00:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
809         * loop.c (scan_loop): Don't mark separate insns out of a libcall
810         for moving.
811         (move_movables): Abort if we see the first insn of a libcall.
813 2002-09-04  Richard Henderson  <rth@redhat.com>
815         * builtin-types.def (BT_FN_FLOAT): New.
816         (BT_FN_DOUBLE, BT_FN_LONG_DOUBLE): New.
817         * builtins.def (BUILT_IN_INF, BUILT_IN_INFF, BUILT_IN_INFL,
818         BUILT_IN_HUGE_VAL, BUILT_IN_HUGE_VALF, BUILT_IN_HUGE_VALL): New.
819         * builtins.c (fold_builtin_inf): New.
820         (fold_builtin): Call it.
821         * real.c (ereal_inf): New.
822         * real.h: Declare it.
823         * doc/extend.texi: Document new builtins.
825 2002-09-04  Richard Henderson  <rth@redhat.com>
827         * cse.c (cse_insn): Avoid subreg games if the equivalence
828         is already in the proper mode.
830 2002-09-04  Eric Botcazou  <ebotcazou@multimania.com>
832         PR c/7102
833         * optabs.c (expand_binop): Convert CONST_INTs in all cases.
835 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
837         * pa.md (setccfp0, setccfp1): New patterns.
839 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
841         * frv-protos.h (frv_init_builtins, frv_expand_builtin,
842         frv_select_section, frv_select_rtx_section,
843         frv_encode_section_info, frv_unique_section): Delete.
844         * frv.c: Update for target hooks.
845         * frv.h (STRIP_NAME_ENCODING, SLOW_ZERO_EXTEND, SELECT_SECTION,
846         SELECT_RTX_SECTION, ENCODE_SECTION_INFO, UNIQUE_SECTION,
847         EASY_DIV_EXPR, MD_INIT_BUILTINS, MD_EXPAND_BUILTIN): Delete.
849 2002-09-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
851         * ip2k-protos.h (function_prologue, function_epilogue,
852         encode_section_info): Update to match target hook specification.
853         * ip2k.c: Wrap `MDR' code in IP2K_MD_REORG_PASS.
854         (function_prologue, function_epilogue, encode_section_info):
855         Update to match target hook specification.
856         * ip2k.h (SELECT_SECTION, SELECT_RTX_SECTION, ASM_OPEN_PAREN,
857         ASM_CLOSE_PAREN, EASY_DIV_EXPR): Delete.
858         (NOTICE_UPDATE_CC): Cast to void.
859         * ip2k.md: Add defaults in switch statements.
861 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
863         * doc/trouble.texi (Interoperation): Update information about C++ ABI
864         issues.
866 2002-09-04  Jason Thorpe  <thorpej@wasabisystems.com>
868         * config/sparc/t-netbsd64: Disable multilib for now.
870 2002-09-04  David Edelsohn  <edelsohn@gnu.org>
872         * target-def.h (TARGET_HAVE_SRODATA_SECTION): New macro.
873         * target.h (gcc_target): Add have_srodata_section member.
874         * varasm.c (section_category): Add SECCAT_SRODATA.
875         (categorize_decl_for_section): Return SECCAT_SRODATA for sdata if
876         READONLY_SDATA_SECTION defined.
877         (decl_readonly_section_1): True for SECCAT_SRODATA also.
878         (default_elf_select_section_1): Map SECCAT_SRODATA to .sdata2.
879         (default_unique_section_1): Likewise.
881 2002-09-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
883         * expr.c (emit_group_load): Revise to allow splitting TCmode source
884         into DImode pieces.
886         * pa-64.h (LONG_DOUBLE_TYPE_SIZE): Define to 128.
887         * pa64-regs.h (CLASS_CANNOT_CHANGE_MODE_P): Inhibit changes from SImode
888         for floating-point register class.
889         * pa.c (function_arg): Fix handling of modes wider than one word for
890         TARGET_64BIT.
892 Wed Sep  4 18:48:10 2002  J"orn Rennecke <joern.rennecke@superh.com>
894         * combine.c (make_compound_operation): Don't generate zero / sign
895         extensions in floating point modes.
897 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
899         * doc/c-tree.texi: Fix overfull hboxes.
900         * doc/cppopts.texi: Ditto.
901         * doc/extend.texi: Ditto.
902         * doc/gty.texi: Ditto.
903         * doc/invoke.texi: Ditto.
904         * doc/makefile.texi: Ditto.
905         * doc/rtl.texi: Ditto.
906         * doc/standards.texi: Ditto.
907         * doc/tm.texi: Ditto.
909 2002-09-04  Richard Henderson  <rth@redhat.com>
911         * c-common.c (builtin_define_with_hex_fp_value): New.
912         (builtin_define_float_constants): Use it.  Fix H_FLOAT mant_dig.
914 2002-09-04  Janis Johnson  <janis187@us.ibm.com>
916         * doc/invoke.texi (-fshort-wchar): Move to Code Generation Options.
917         (-fpcc-struct-return, -freg-struct-return, -fshort-enums,
918         -fshort-double, -fshort-wchar, -fpack-struct, -fleading-underscore):
919         Warn that these options can break ABI compatibility.
921 2002-09-04  Richard Henderson  <rth@redhat.com>
923         * real.c (ereal_to_decimal): Add digits parameter.
924         * real.h (REAL_VALUE_TO_DECIMAL): Remove format; add digits parameter.
925         * c-pretty-print.c (pp_c_real_literal): Update call.
926         * print-rtl.c (print_rtx): Likewise.
927         * print-tree.c (print_node_brief, print_node): Likewise.
928         * sched-vis.c (print_value): Likewise.
929         * config/arc/arc.c (arc_print_operand): Likewise.
930         * config/c4x/c4x.c (c4x_print_operand): Likewise.
931         * config/i370/i370.h (PRINT_OPERAND): Likewise.
932         * config/i386/i386.c (print_operand): Likewise.
933         * config/i960/i960.c (i960_print_operand): Likewise.
934         * config/ip2k/ip2k.c (asm_output_float): Likewise.
935         * config/m32r/m32r.c (m32r_print_operand): Likewise.
936         * config/m68hc11/m68hc11.c (print_operand): Likewise.
937         * config/m68k/hp320.h (PRINT_OPERAND, ASM_OUTPUT_FLOAT_OPERAND,
938         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
939         * config/m68k/m68k.h (ASM_OUTPUT_FLOAT_OPERAND,
940         ASM_OUTPUT_DOUBLE_OPERAND, ASM_OUTPUT_LONG_DOUBLE_OPERAND): Likewise.
941         * config/m68k/sun2o4.h (ASM_OUTPUT_FLOAT_OPERAND,
942         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
943         * config/m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND,
944         ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
945         * config/mips/mips.c (print_operand): Likewise.
946         * config/ns32k/ns32k.c (print_operand): Likewise.
947         * config/pdp11/pdp11.h (PRINT_OPERAND): Likewise.
948         * config/vax/vax.h (PRINT_OPERAND): Likewise.
949         * doc/tm.texi (REAL_VALUE_TO_DECIMAL): Update docs.
951 2002-09-04  Bob Wilson  <bob.wilson@acm.org>
953         * config/xtensa/elf.h (TARGET_SECTION_TYPE_FLAGS): Define to
954         xtensa_multibss_section_type_flags.
955         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Define.
957 2002-09-04  Richard Henderson  <rth@redhat.com>
959         * doc/install-old.texi: Don't mention enquire.
960         * doc/sourcebuild.texi: Update float.h description.
962 Wed Sep  4 11:22:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
964         * sh.md (mperm_w_little, mperm_w_big): Supply mode for zero_extract.
966 2002-09-03  David Edelsohn  <edelsohn@gnu.org>
968         * varasm.c (default_section_type_flags): Append _1 to name with
969         shlib parameter.  Use original name to call new function with
970         implicit flag_pic.
971         (decl_readonly_section): Likewise.
972         (default_elf_select_section): Likewise.
973         (default_unique_section): Likewise.
974         (default_bind_local_p): Likewise.
975         (categorize_decl_for_section): Add shlib parameter to use in place
976         of implicit flag_pic.
977         * output.h: Declare new functions with _1 and shlib argument.
979 2002-09-03  Janis Johnson  <janis187@us.ibm.com>
981         * doc/install.texi: Fix typos, formatting problems, and obvious
982         overfull/underfull boxes.
984         * Makefile.in (TEXI_GCC_FILES): Add compat.texi.
985         * doc/gcc.texi (Top): Add new chapter, Binary Compatibility, and
986         include its file, compat.texi.
987         * doc/compat.texi: New file with new chapter, Binary Compatibility.
989 2002-09-03  Neil Booth  <neil@daikokuya.co.uk>
991         Debian BTS Bug #157416
992         * cpphash.h (FIRST, LAST, CUR, RLIMIT): Fix definitions.
993         * cpplib.c (destringize_and_run): Kludge around getting
994         tokens from in-progress macros.
995         (_cpp_do__Pragma): Simplify.
997 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
999         * config/ia64/ia64.h (EXTRA_SPECS): Remove cpp_cpu.
1000         (CPP_CPU_SPEC): Remove.
1001         (TARGET_CPU_CPP_BUILTINS): New.
1002         * config/ia64/hpux.h (CPP_PREDEFINES): Remove.
1003         (CPP_SPEC): Remove.
1004         (TARGET_OS_CPP_BUILTINS): New.
1005         * config/ia64/linux.h (CPP_PREDEFINES): Remove.
1006         (TARGET_OS_CPP_BUILTINS): New.
1007         * config/ia64/aix.h (CPP_SPEC): Move some stuff to
1008         TARGET_OS_CPP_BUILTINS.
1009         (CPP_PREDEFINES): Remove.
1010         (CPLUSPLUS_CPP_SPEC): Remove.
1011         (TARGET_OS_CPP_BUILTINS): New.
1013 2002-09-03  Richard Henderson  <rth@redhat.com>
1015         * Makefile.in (USER_H): Add ginclude/float.h.
1016         (FLOAT_H): Remove.
1017         (stmp-int-hdrs, install-mkheaders): Don't handle FLOAT_H.
1018         (mostlyclean): Don't remove float.h intermediate files.
1019         (distclean): Don't remove float.h.
1020         * config.gcc: Remove all float_format references.
1021         * configure.in (float_format, float_h_file): Remove.
1023         * c-common.c: Include tree-inline.h.
1024         (builtin_define_with_int_value): New.
1025         (builtin_define_type_precision): Use it.
1026         (builtin_define_float_constants): New.
1027         (cb_register_builtins): Use it.  Define __FLT_RADIX__ and
1028         __FLT_EVAL_METHOD__.
1029         * defaults.h (TARGET_FLT_EVAL_METHOD): New.
1030         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): New.
1031         * config/m68k/m68k.h (TARGET_FLT_EVAL_METHOD): New.
1032         * doc/tm.texi (INTEL_EXTENDED_IEEE_FORMAT): Mention moto 96-bit format.
1033         (TARGET_FLT_EVAL_METHOD): New.
1035         * config/float-c4x.h, config/float-i128.h, config/float-i32.h,
1036         config/float-i386.h, config/float-i64.h, config/float-m68k.h,
1037         config/float-sh.h, config/float-sparc.h, config/float-vax.h: Remove.
1038         * ginclude/float.h: New.
1040 2002-09-03  Stan Shebs  <shebs@apple.com>
1042         * config/darwin.h (WARN_FOUR_CHAR_CONSTANTS): Remove, never used.
1043         (DWARF2_DEBUGGING_INFO): Remove until assembler accepts Dwarf-2.
1044         (PREFERRED_DEBUGGING_TYPE): Ditto.
1045         (ASM_OUTPUT_IDENT): Remove empty definition.
1047 2002-09-03  Steve Ellcey  <sje@cup.hp.com>
1049         * config.gcc (ia64*-*-hpux*): Add ia64-c.o to c_target and
1050         cxx_target.
1051         * config/ia64/hpux.h (REGISTER_TARGET_PRAGMAS): Register pragma
1052         handling routine for builtin pragma.
1053         * config/ia64/ia64-protos.h (ia64_hpux_handle_builtin_pragma):
1054         Registered pragma handling routine.
1055         * ia64-c.c (ia64_hpux_handle_builtin_pragma): Ditto.
1056         (ia64_hpux_add_pragma_builtin) New subroutine used by above.
1057         If builtin pragma seen for math routine and C89 conformance is
1058         requested use different math function in order to set errno.
1059         * t-ia64 (ia64-c.o): Add new rule for new file.
1061 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1063         * config/s390/s390.md ("movti"): Add Q->Q alternative.
1064         ("*movdi_64", "*movdi_31", "*movsi", "movhi", "movqi_64",
1065         "movqi", "*movdf_64", "*movdf_31", "*movsf"): Likewise.
1067         ("*movti_ss", "*movdi_ss", "*movsi_ss", "*movdf_ss",
1068         "*movsf_ss"): Remove.
1070 2002-09-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1072         * pa32-regs.h (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P):
1073         Delete macros.
1075 2002-09-03   Arati Dikey  <aratid@kpit.com>
1077         * h8300.c (asm_file_start): Corrected optimization comment.
1079 2002-09-03  Stan Shebs  <shebs@apple.com>
1081         * c-lang.c (recognize_objc_keyword): Remove, no longer used.
1082         * c-tree.h (recognize_objc_keyword): Remove decl.
1083         * c-typeck.c (comp_target_types): Update a comment.
1085 2002-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
1087         * config/s390/s390.c (s390_decompose_address): Remove STRICT parameter
1088         and register validity checks.
1089         (general_s_operand): Adapt to s390_decompose_address interface change.
1090         (q_constraint): Likewise.
1091         (s390_expand_plus_operand): Likewise.
1092         (legitimiate_address_p): Likewise.
1093         (legitimate_la_operand_p): Likewise.
1094         (legitimize_la_operand): Likewise.
1095         (print_operand_address): Likewise.
1096         (print_operand): Likewise.
1098 Tue Sep  3 11:32:14 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1100         PR objc/5956:
1101         * objc/objc-act.c (build_typed_selector_reference): Fix typo which
1102         was causing the new selector never to match the existing ones
1103         (Patch by Alexander Malmberg <alexander@malmberg.org>).
1105 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1107         * config/i386/i386.md ("femms"): Add "memory" attr "none".
1109 2002-09-03  Graham Stott  <graham.stott@btinternet.com>
1111         * expr.c (expand_expr): Remove extraneous comment and code.
1113 2002-08-31  Richard Henderson  <rth@redhat.com>
1115         * expr.c (block_move_libcall_safe_for_call_parm): Fix thinko.
1117 2002-08-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1119         * pa.c (pa_globalize_label): Add ATTRIBUTE_UNUSED to prototype.
1121 2002-08-30  Richard Henderson  <rth@redhat.com>
1123         PR opt/7515
1124         * c-objc-common.c: Include target.h.
1125         (c_cannot_inline_tree_fn): Don't auto-inline functions that
1126         don't bind locally.  Factor setting DECL_UNINLINABLE.
1127         * Makefile.in (c-objc-common.o): Update.
1129 2002-08-30  Janis Johnson  <janis187@us.ibm.com>
1131         * doc/install.texi (Configuration, Building): Fix a typo and
1132         some formatting directives.
1134 2002-08-30  Paul Koning <pkoning@equallogic.com>
1136         * doc/c-tree.texi (RDIV_EXPR): Fix typo.
1137         * doc/rtl.texi (post_modify): Remove misplaced text, remove "not
1138         implemented" note.
1139         * doc/md.texi (IP2K): Move machine-specific constraints before MIPS
1140         for alphabetic order.
1141         * doc/tm.texi (TARGET_FLOAT_FORMAT): Update description for
1142         VAX_FLOAT_FORMAT.  Remove reference to HOST_FLOAT_FORMAT.
1143         (VAX_HALFWORD_ORDER): Document.
1144         (LARGEST_EXPONENT_IS_NORMAL): Remove note about being only for
1145         IEEE float format.
1146         (TARGET_SCHED_ISSUE_RATE): Reword reference to MAX_DFA_ISSUE_RATE.
1147         (ASM_OUTPUT_LABEL_REF): Fix font.
1148         (CASE_VECTOR_SHORTEN_MODE): Ditto.
1150 2002-08-30  Denis Chertykov  <denisc@overta.ru>
1152         * config/ip2k/ip2k.c (ip2k_set_compare): Remove all const_double
1153         stuff.
1154         (ip2k_gen_unsigned_comp_branch): Handle CONST_INT and
1155         CONST_DOUBLE constants.
1157 2002-08-30  Jason Thorpe  <thorpej@wasabisystems.com>
1159         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Move language-
1160         related defines to...
1161         (SUBTARGET_LANGUAGE_CPP_BUILTINS): ...here.
1162         * config/alpha/netbsd.h (SUBTARGET_LANGUAGE_CPP_BUILTINS): Redefine
1163         as a no-op.
1165 2002-08-30  Krister Walfridsson  <cato@df.lth.se>
1167         * config/arm/arm.c (arm_asm_output_labelref): New function.
1168         * config/arm/arm.h (ASM_OUTPUT_LABELREF): Call arm_asm_output_labelref.
1169         * config/arm/arm-protos.h: Add prototype for arm_asm_output_labelref.
1171 2002-08-29  Rodney Brown  <rbrown64@csc.com.au>
1173         * doc/install.texi (Specific, alpha*-dec-osf*): Add "virtual
1174         memory exhausted" workarounds.
1176 2002-08-30  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1178         * diagnostic.c (fancy_abort): Don't repeat "internal error".
1179         * toplev.c (crash_signal): Likewise.
1181 Fri Aug 30 00:33:37 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1183         * doc/cpp.texi (__NEXT_RUNTIME__): Extended documentation.
1184         * doc/invoke.texi (-fnext-runtime, -Wno-protocol, -Wselector):
1185         Extended, updated documentation.
1186         (-Wundeclared-selector): Documented.
1188 2002-08-29  Jason Thorpe  <thorpej@wasabisystems.com>
1190         * config/chorus.h: Consistently define *_DEBUGGING_INFO with
1191         the value 1.  Do not undef before defining.
1192         * config/darwin.h: Likewise.
1193         * config/dbx.h: Likewise.
1194         * config/dbxcoff.h: Likewise.
1195         * config/dbxelf.h: Likewise.
1196         * config/elfos.h: Likewise.
1197         * config/interix.h: Likewise.
1198         * config/lynx-ng.h: Likewise.
1199         * config/lynx.h: Likewise.
1200         * config/netware.h: Likewise.
1201         * config/psos.h: Likewise.
1202         * config/svr3.h: Likewise.
1203         * config/alpha/alpha.h: Likewise.
1204         * config/alpha/elf.h: Likewise.
1205         * config/alpha/vms.h: Likewise.
1206         * config/arc/arc.h: Likewise.
1207         * config/arm/aout.h: Likewise.
1208         * config/arm/coff.h: Likewise.
1209         * config/c4x/c4x.h: Likewise.
1210         * config/h8300/h8300.h: Likewise.
1211         * config/i386/cygwin.h: Likewise.
1212         * config/i386/djgpp.h: Likewise.
1213         * config/i386/gas.h: Likewise.
1214         * config/i386/gstabs.h: Likewise.
1215         * config/i386/i386-coff.h: Likewise.
1216         * config/i386/i386-interix.h: Likewise.
1217         * config/i386/sco5.h: Likewise.
1218         * config/i386/svr3dbx.h: Likewise.
1219         * config/i386/sysv3.h: Likewise.
1220         * config/i386/win32.h: Likewise.
1221         * config/i386/x86-64.h: Likewise.
1222         * config/i960/i960.h: Likewise.
1223         * config/ia64/ia64.h: Likewise.
1224         * config/ip2k/ip2k.h: Likewise.
1225         * config/m32r/m32r.h: Likewise.
1226         * config/m68k/3b1.h: Likewise.
1227         * config/m68k/3b1g.h: Likewise.
1228         * config/m68k/ccur-GAS.h: Likewise.
1229         * config/m68k/coff.h: Likewise.
1230         * config/m68k/hp2bsd.h: Likewise.
1231         * config/m68k/hp310g.h: Likewise.
1232         * config/m68k/hp320g.h: Likewise.
1233         * config/m68k/hp3bsd.h: Likewise.
1234         * config/m68k/hp3bsd44.h: Likewise.
1235         * config/m68k/linux-aout.h: Likewise.
1236         * config/m68k/m68k-aout.h: Likewise.
1237         * config/m68k/mot3300.h: Likewise.
1238         * config/m68k/netbsd.h: Likewise.
1239         * config/m68k/openbsd.h: Likewise.
1240         * config/m68k/pbb.h: Likewise.
1241         * config/m68k/plexus.h: Likewise.
1242         * config/m68k/sun2.h: Likewise.
1243         * config/m68k/sun3.h: Likewise.
1244         * config/m68k/tower-as.h: Likewise.
1245         * config/m68k/vxm68k.h: Likewise.
1246         * config/m88k/aout-dbx.h: Likewise.
1247         * config/m88k/m88k-aout.h: Likewise.
1248         * config/mcore/mcore-elf.h: Likewise.
1249         * config/mcore/mcore-pe.h: Likewise.
1250         * config/mips/elf.h: Likewise.
1251         * config/mips/elf64.h: Likewise.
1252         * config/mips/iris5gas.h: Likewise.
1253         * config/mips/iris6.h: Likewise.
1254         * config/mips/mips.h: Likewise.
1255         * config/mips/sni-gas.h: Likewise.
1256         * config/mmix/mmix.h: Likewise.
1257         * config/ns32k/netbsd.h: Likewise.
1258         * config/pa/pa64-hpux.h: Likewise.
1259         * config/romp/romp.h: Likewise.
1260         * config/rs6000/sysv4.h: Likewise.
1261         * config/rs6000/xcoff.h: Likewise.
1262         * config/sh/coff.h: Likewise.
1263         * config/sh/elf.h: Likewise.
1264         * config/sparc/linux64.h: Likewise.
1265         * config/sparc/liteelf.h: Likewise.
1266         * config/sparc/netbsd.h: Likewise.
1267         * config/sparc/openbsd.h: Likewise.
1268         * config/sparc/pbd.h: Likewise.
1269         * config/sparc/sp64-elf.h: Likewise.
1270         * config/sparc/sp86x-elf.h: Likewise.
1271         * config/sparc/sparc.h: Likewise.
1272         * config/vax/vax.h: Likewise.
1273         * config/vax/vaxv.h: Likewise.
1275 2002-08-29  "Dhananjay R. Deshpande" <dhananjayd@kpit.com>
1277         * h8300.c (shift_alg_hi): Various tweaks to improve performance
1278         of HImode shifts.
1279         (get_shift_alg): Corresponding changes.
1281 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1283         * som.h (ALWAYS_STRIP_DOTDOT): Define to 1.
1285 2002-08-29  Richard Henderson  <rth@redhat.com>
1287         * expr.h (enum block_op_methods): New.
1288         (emit_block_move): Update prototype.
1289         * expr.c (block_move_libcall_safe_for_call_parm): New.
1290         (emit_block_move_via_loop): New.
1291         (emit_block_move): Use them.  New argument METHOD.
1292         (emit_push_insn): Always respect the given alignment.
1293         (expand_assignment): Update call to emit_block_move.
1294         (store_expr, store_field, expand_expr): Likewise.
1295         * builtins.c (expand_builtin_apply): Likewise.
1296         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
1297         * function.c (expand_function_end): Likewise.
1298         * config/sh/sh.c (sh_initialize_trampoline): Likewise.
1299         * config/sparc/sparc.c (sparc_va_arg): Likewise.
1300         * calls.c (expand_call, emit_library_call_value_1): Likewise.
1301         (save_fixed_argument_area): Use emit_block_move with
1302         BLOCK_OP_CALL_PARM instead of move_by_pieces.
1303         (restore_fixed_argument_area): Likewise.
1304         (store_one_arg): Fix alignment parameter to emit_push_insn.
1306 2002-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1308         * install.texi (hppa64-hp-hpux11*): Document installation procedure.
1310 2002-08-29  Catherine Moore  <clm@redhat.com>
1312         * config/v850/v850.h (MULDI3_LIBCALL, UCMPDI2_LIBCALL, CMPDI2_LIBCALL,
1313         NEGDI2_LIBCALL, INIT_TARGET_OPTABS, MASK_STRICT_ALIGN): Define.
1314         (PREDICATE_CODES): Include new predicates.
1315         (RTX_COSTS): Handle UMOD and UDIV.  Tune MULT for v850e.
1316         (TARGET_SWITCHES):  Add strict-align.
1317         (TARGET_STRICT_ALIGN): New.
1318         (MASK_DEFAULT, STRICT_ALIGNMENT):  Redefine.
1319         * config/v850/t-v850 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
1320         Define.
1321         (LIB1ASMFUNCS): Add v850_negdi2, v850_cmpdi2, v850_ucmpdi2,
1322         v850_muldi3.
1323         * config/v850/lib1funcs.asm (L_callt_save_r2_r29, L_return_r2_r29,
1324         L_callt_save_r2_r31, L_return_r2_r31,
1325         L_save_all_interrupt): Change addi to add.
1326         (L_save_interrupt, L_return_interrupt): Rework.
1327         (__return_r31):  Correct .size directive.
1328         (mulsi3, divsi3, udivsi3, umodsi3, modsi3): Tune for v850e.
1329         (v850_negdi2, v850_cmpdi2, v850_ucmpdi2, v850_muldi3):
1330         New routines.
1331         * config/v850/v850.c (expand_prologue): Call
1332         gen_callt_save_interrupt, gen_callt_restore_all_interrupt,
1333         gen_callt_return_interrupt and gen_callt_save_all_interrupt.
1334         (reg_or_int9_operand): New predicate.
1335         (reg_or_const_operand): New routine.
1336         * config/v850/v850.md (return_interrupt): Changed from
1337         restore_interrupt.
1338         (callt_save_all_interrupt): Changed from save_all_interrupt_v850e.
1339         (callt_save_interrupt): Change save sequence.
1340         (callt_return_interrupt): New.
1341         (save_interrupt): Don't use runtime function for LONG_CALLS
1342         and TARGET_PROLOG_FUNCTION.
1343         (save_all_interrupt): Likewise.
1344         (mulsi3): Use new predicate.
1345         (moviscc): Disallow some combination of constants.
1346         Fix define_split for sasf insns, so that it will not generate bad
1347         code if operand0 and operand5 are the same.
1348         * config/v850/v850-protos.h: Prototype new predicates.
1350 2002-08-28  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1352         * c-common.c (builtin_define_type_precision): New function.
1353         (cb_register_builtins): Use it.  Define __WCHAR_UNSIGNED__ is
1354         wchar_t is unsigned in C++.
1355         * doc/cpp.texi (Common Predefined Macros): Document
1356         __WCHAR_UNSIGNED__, __CHAR_BIT__, __WCHAR_BIT__, __SHRT_BIT__,
1357         __INT_BIT__, __LONG_BIT__, __LONG_LONG_BIT__, __FLOAT_BIT__,
1358         __DOUBLE_BIT__, __LONG_DOUBLE_BIT__.
1360 2002-08-28  Sylvain Pion <pion@cs.nyu.edu>
1362         * doc/invoke.texi (-Wreorder): Remove remaining pieces from the generic
1363         section.  Mention that it is enabled by -Wall.
1364         (-Wall): Mention that there can be language-specific warnings as well.
1365         (-Wctor-dtor-privacy): Mention that it is enabled by default.
1366         (-Wnon-virtual-dtor): Mention that it is enabled by -Wall.
1368 Wed Aug 28 15:35:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
1370         * sh.c (calc_live_regs): Save FPSCR_REG in an interrupt handler
1371         if it is ever live.
1373         * sh.c (sh_handle_interrupt_handler_attribute): Reject interrupt_handler
1374         attribute for SHCOMPACT.
1376         * sh.h (OVERRIDE_OPTIONS): If align_function isn't set, set it
1377         appropriately.
1378         (FUNCTION_BOUNDARY): Specify only the minimum alignment required
1379         by the ABI.
1381         * sh.h (SH5_WOULD_BE_PARTIAL_NREGS): Also handle TImode case.
1383 2002-08-28  Jason Thorpe  <thorpej@wasabisystems.com>
1385         * config.gcc (mips*-*-netbsd*): Set target_cpu_default to
1386         "MASK_GAS|MASK_ABICALLS".
1387         * config/mips/netbsd.h (TARGET_ENDIAN_DEFAULT)
1388         (TARGET_DEFAULT): Remove.
1389         (MACHINE_TYPE): Undefine before defining.
1390         (DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE): Remove.
1392 2002-08-27  Mark Mitchell  <mark@codesourcery.com>
1394         * c-common.c (warn_abi): New variable.
1395         * c-common.h (warn_abi): Likewise.
1396         * c-opts.c (COMMAND_LINE_OPTIONS): Add -Wabi.
1397         (c_common_decode_option): Handle it.
1398         * doc/invoke.texi: Document -Wabi.
1400 Tue Aug 27 23:03:52 2002  Nicola Pero  <n.pero@mi.flashnet.it>
1402         * c-common.c (warn_undeclared_selector): New variable.
1403         * c-common.h (warn_undeclared_selector): Idem.
1404         * c-opts.c (c_common_decode_option): Set warn_undeclared_selector
1405         to on when -Wundeclared-selector is found.
1406         (COMMAND_LINE_OPTIONS): Added -Wundeclared-selector.
1407         * objc/objc-act.c (build_selector_expr): If
1408         warn_undeclared_selector is set, check that the selector has
1409         already been defined, and emit a warning if not.
1411 2002-08-27  Nick Clifton  <nickc@redhat.com>
1412             Catherine Moore  <clm@redhat.com>
1413             Jim Wilson  <wilson@cygnus.com>
1415         * config.gcc: Add v850e-*-* target.
1416         Add --with-cpu= support for v850.
1417         * config/v850/lib1funcs.asm: Add v850e callt functions.
1418         * config/v850/v850.h: Add support for v850e target.
1419         * config/v850/v850.c: Add functions to support v850e target.
1420         * config/v850/v850-protos.h: Add prototypes for new functions in v850.c.
1421         * config/v850/v850.md: Add patterns for v850e instructions.
1422         * doc/invoke.texi: Document new v850e command line switches.
1424 Tue Aug 27 18:30:47 2002  J"orn Rennecke <joern.rennecke@superh.com>
1425                           Aldy Hernandez <aldyh at redhat dot com>
1427         * doc/tm.texi: Applied numerous fixes to the automaton based
1428         scheduler descrition.
1430 Tue Aug 27 19:51:05 CEST 2002  Jan Hubicka  <jh@suse.cz>
1432         * i386.c (classify_argument): Handle variable sized objects.
1434 Tue Aug 27 19:18:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
1436         * i386.c (ix86_expand_int_movcc): Fix RTL sharing problem
1438 Tue Aug 27 18:01:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1440         * libgcc2.c (__bb_exit_func): Properly write the summarized statistics.
1442 Tue Aug 27 18:00:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1444         * i386.c (classify_argument): Properly compute word size of the analyzed object.
1446 Tue Aug 27 14:39:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
1448         * sh.md (attribute type): Add types mt_group, fload, pcfload, fpul_gp,
1449         mac_gp ftrc_s and cwb.  Add / Adjust definitions in individual insn
1450         accordingly.
1451         (attribute insn_class): Provide default definitions based on type.
1452         Remove all insn-specific settings.
1453         (various function units): Remove old SH4 scheduling.
1454         (branch_zero, dfp_comp, late_fp_use, any_fp_comp, any_int_load):
1455         New attributes.  Set them where appropriate.
1456         (cpu unit FS): Don't define / use.
1457         (F3, load_store): New cpu units.
1458         (F01): New reservation.
1459         (all insn_reservations): Make dependent on sh4 pipeline model.
1460         Fix latencies.
1461         (nil, reg_mov, freg_mov, sh4_fpul_gp, sh4_call): New insn_reservations.
1462         (sh4_mac_gp, fp_arith_ftrc, arith3, arith3b): Likewise.
1463         (mt insn_reservation): Use type mt_group.
1464         (insn_reservation load_store): Split into sh4_load, sh4_load_si,
1465         sh4_fload and sh4_store.
1466         (insn_reservation branch_zero and branch): Replace with sh4_branch.
1467         (insn_reservation branch_far): Replace with sh4_return.
1468         (insn_reservation return_from_exp): Rename to:
1469         (sh4_return_from_exp).  Change to be just d_lock*5.
1470         (insn_reservation lds_to_pr): Rename to:
1471         (sh4_lds_to_pr).  Change to be just d_lock*2.
1472         (insn_reservation ldsmem_to_pr, sts_from_pr): Change to be just
1473         d_lock*2.
1474         (insn_reservation prload_mem): Rename to:
1475         (sh4_prstore_mem).  Change to d_lock*2,nothing,memory.
1476         (insn_reservation fpscr_store): Rename to:
1477         (fpscr_load).  Change to d_lock,nothing,F1*3.
1478         (insn_reservation fpscr_store_mem): Rename to:
1479         (fpscr_load_mem).  Change to d_lock,nothing,(F1+memory),F1*2.
1480         (insn_reservation multi): Change to
1481         d_lock,(d_lock+f1_1),(f1_1|f1_2)*3,F2.
1482         (insn_reservation fp_arith): Change to issue,F01,F2.
1483         (insn_reservation fp_div: Change to issue,F01+F3,F2+F3,F3*7,F1+F3,F2.
1484         (insn_reservation dp_float): Change to issue,F01,F1+F2,F2.
1485         (insn_reservation fp_double_arith): Change to issue,F01,F1+F2,fpu*4,F2.
1486         (insn_reservation fp_double_cmp): Change to
1487         d_lock,(d_lock+F01),F1+F2,F2.
1488         (insn_reservation dp_div): Change to
1489         issue,F01+F3,F1+F2+F3,F2+F3,F3*16,F1+F3,(fpu+F3)*2,F2.
1490         * sh.c (flow_dependent_p, flow_dependent_p_1): New functions.
1491         (sh_adjust_cost, SHcompact): Differentiate between different
1492         kinds of dependencies.  Drop factor of ten for superscalar.
1493         Use new instruction types.  Add new exception rules.
1495         * sh.md (mulhisi3, umulhisi3: Add a REG_EQUAL note.
1497         * sh.md (mperm_w): Add DONE.
1499 2002-08-27  David Edelsohn  <edelsohn@gnu.org>
1501         * longlong.h: Import current PowerPC defintion from GMP-4.1.
1503         * config/rs6000/rs6000.h (MIN_UNITS_PER_WORD): Add IN_LIBGCC2 case.
1505         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Undef before define.
1507 Tue Aug 27 13:53:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1509         * sh.h (MAX_FIXED_MODE_SIZE): Define.
1511 2002-08-27  Gabriel Dos Reis  <gdr@soliton.integrable-solutions.net>
1513         * doc/cpp.texi (Common Predefined Macros): Don't mess with table
1514         delimiter.
1516 2002-08-27  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1518         * c-common.c (cpp_define_data_format): New function.
1519         (cb_register_builtins): Call it.
1521         * doc/cpp.texi (Common Predefined Macros): Document
1522         __TARGET_BITS_ORDER__, __TARGET_BYTES_ORDER__,
1523         __TARGET_INT_WORDS_ORDER__, __TARGET_FLOAT_WORDS_ORDER__,
1524         __TARGET_FLOAT_FORMAT__, __TARGET_USES_VAX_F_FLOAT__,
1525         __TARGET_USES_VAX_D_FLOAT__, __TARGET_USES_VAX_G_FLOAT__,
1526         __TARGET_USES_VAX_H_FLOAT__.
1528 2002-08-26  Ziemowit Laski <zlaski@apple.com>
1530         * objc/objc-act.c (get_super_receiver): If inside a class method
1531         of a category, cast the receiver to 'id' before accessing the 'isa'
1532         field so that <objc/objc-class.h> is not needed.  For NeXT runtime.
1534 2002-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
1536         * config/s390/s390-protos.h (s390_function_prologue,
1537         s390_function_epilogue): Remove.
1538         config/s390/s390.c (s390_function_prologue, s390_function_epilogue,
1539         TARGET_ASM_FUNCTION_PROLOGUE, TARGET_ASM_FUNCTION_EPILOGUE): Remove.
1541         config/s390/s390.c (s390_machine_dependent_recorg): New function.
1542         config/s390/s390-protos.h (s390_machine_dependent_reorg): Declare it.
1543         config/s390/s390.h (MACHINE_DEPENDENT_REORG): Call it.
1544         config/s390/s390.c (s390_split_branches, s390_chunkify_pool): Adapt
1545         to being called from MACHINE_DEPENDENT_REORG.  Update regs_ever_live.
1547         config/s390/s390.c (s390_frame_info): Inline save_fprs_p.  Always
1548         assume BASE_REGISTER and RETURN_REGNUM need to be saved.
1549         (s390_emit_prologue): Assume RETURN_REGNUM to be saved iff
1550         function is not a leaf function.  Use save_gprs and restore_gprs.
1551         (s390_emit_epilogue): Likewise.
1552         (save_gprs, restore_gprs): New functions.
1553         (struct s390_frame): Remove return_reg_saved_p member.
1554         (save_fprs_p): Remove.
1555         (s390_optimize_prolog): New function.
1556         (s390_legitimate_reload_constant): Remove now unnecessary check.
1558         (s390_function_count): Remove.
1559         (s390_output_symbolic_const): Replace s390_function_count by
1560         current_function_funcdef_no.
1561         (s390_output_constant_pool): Likewise.
1563         (legitimize_pic_address): Use regs_ever_live to track PIC register
1564         instead of current_function_uses_pic_offset_table.
1565         (s390_emit_prologue): Likewise.
1566         config/s390/s390.md ("call", "call_value"): Likewise.
1568 2002-08-26  Neil Booth  <neil@daikokuya.co.uk>
1570         * c-opts.c (find_opt): Don't complain about wrong languages
1571         here.  Return exact matches even for wrong language.
1572         (c_common_decode_option): Complain about wrong languages
1573         here.
1575 2002-08-24  Stuart Hastings  <stuart@apple.com>
1577         * function.h (struct function): Add flag
1578         all_throwers_are_sibcalls.
1579         * except.c (set_nothrow_function_flags): Replaces
1580         nothrow_function_p. Set new flag.
1581         * except.h (set_nothrow_function_flags): Replaces
1582         nothrow_function_p.
1583         * dwarf2out.c (struct dw_fde_struct): Add flag
1584         all_throwers_are_sibcalls.
1585         (output_call_frame_info): Test it.
1586         (dwarf2out_begin_prologue) Propagate it from cfun to
1587         dw_fde_struct.
1588         * toplev.c (rest_of_compilation): Update calls to
1589         nothrow_function_p.
1591 2002-08-23  Zack Weinberg  <zack@codesourcery.com>
1593         * ggc-page.c (compute_inverse): Short circuit calculation for
1594         object sizes larger than half a page.
1596 2002-08-23  David Edelsohn  <edelsohn@gnu.org>
1598         * config/rs6000/rs6000.c (rs6000_elf_select_section): Treat
1599         DEFAULT_ABI == ABI_AIX like PIC.  Test PIC & reloc for readonly
1600         default.
1601         (rs6000_elf_unique_section): Likewise.
1603 2002-08-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1605         * ns32k.c (ns32k_globalize_label): Delete.
1606         * ns32k.h (ASM_OUTPUT_LABEL, TARGET_ASM_GLOBALIZE_LABEL): Delete.
1608 2002-08-23  Alan Modra  <amodra@bigpond.net.au>
1610         * config/rs6000/rs6000.c (output_mi_thunk): Don't determine insns
1611         for loading delta with num_insns_constant_wide.  Calculate
1612         delta_low, delta_high without using a conditional.
1614 2002-08-22  Jason Merrill  <jason@redhat.com>
1616         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
1617         * c-common.def: Adjust.
1618         * c-dump.c (c_dump_tree): Adjust.
1619         * c-semantics.c (genrtl_return_stmt): Adjust.
1620         * c-pretty-print.c (pp_c_statement): Adjust.
1621         * tree-inline.c (copy_body_r): Adjust.
1623 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
1625         * ggc-page.c: Avoid division in ggc_set_mark.
1626         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
1627         compute_inverse): New.
1628         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
1629         (init_ggc): Initialize inverse_table.
1631 2002-08-22  Tom Tromey  <tromey@redhat.com>
1633         * doc/install.texi (Configuration): Document --datadir.
1635 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
1637         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
1639 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
1641         * gengtype-lex.l (ID): Allow underscore as first character.
1643 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
1645         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
1646         function.
1647         (rs6000_xcoff_asm_named_section): Rename.
1648         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
1650 2002-08-21  Tom Tromey  <tromey@redhat.com>
1652         For PR java/6005 and PR java/7611:
1653         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
1654         (fold): Likewise.
1655         * langhooks.c (lhd_can_use_bit_fields_p): New function.
1656         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
1657         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
1658         (LANG_HOOKS_INITIALIZER): Use it.
1659         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
1660         field.
1662 2002-08-21  Stan Shebs  <shebs@apple.com>
1664         * tree.c (finish_vector_type): Fix a typo in a comment.
1665         * Makefile.in: Fix "the the" stutters in comments.
1666         * genautomata.c: Ditto.
1667         * ifcvt.c: Ditto.
1668         * regrename.c: Ditto.
1669         * config/alpha/alpha.c: Ditto.
1670         * config/alpha/vms-crt0-64.c: Ditto.
1671         * config/alpha/vms-crt0.c: Ditto.
1672         * config/alpha/vms-psxcrt0-64.c: Ditto.
1673         * config/alpha/vms-psxcrt0.c: Ditto.
1674         * config/d30v/d30v.h: Ditto.
1675         * config/fr30/fr30.h: Ditto.
1676         * config/rs6000/rs6000.c: Ditto.
1677         * config/stormy16/stormy16.h: Ditto.
1678         * doc/md.texi: Ditto.
1680 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1682         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
1684 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
1686         * c-decl.c (grokdeclarator): Make invalid combinations with long,
1687         short, signed or unsigned into hard errors.  Fixes PR c/4319.
1688         Also make duplicate modifiers such as "short short" into hard
1689         errors.
1691 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
1692             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1694         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
1695         to the actual end.  Add '@end table' and '@table @code'.
1697 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
1699         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
1701         * unroll.c (biv_total_increment): Don't try to compute the total
1702         increment for FP BIVs.
1704 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1706         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
1707         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
1708         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1709         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
1710         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
1711         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
1712         (GLOBAL_ASM_OP): Define.
1713         * arm.c (aof_globalize_label): New function.
1714         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
1715         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1716         * c4x.c (c4x_globalize_label): New function.
1717         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
1718         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
1719         (GLOBAL_ASM_OP): Define.
1720         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
1721         * darwin-protos.h (darwin_globalize_label): Declare.
1722         * darwin.c (darwin_globalize_label): New function.
1723         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
1724         (ASM_GLOBALIZE_LABEL): Delete.
1725         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
1726         * dsp16xx.c (asm_output_common): Use target hook.
1727         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
1728         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
1729         (GLOBAL_ASM_OP): Define.
1730         * i370.c (i370_globalize_label): New function.
1731         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
1732         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
1733         * i386.c (ix86_asm_file_end): Use target hook.
1734         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
1735         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
1736         * ia64.c (ia64_asm_output_external): Likewise.
1737         * ia64/sysv4.h: Update comment.
1738         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1739         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1740         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
1741         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
1742         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
1743         * mmix-protos.h (mmix_asm_globalize_label): Delete.
1744         * mmix.c (mmix_asm_globalize_label): Likewise.
1745         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
1746         (GLOBAL_ASM_OP): Define.
1747         * ns32k.c (ns32k_globalize_label): New function.
1748         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
1749         (ASM_GLOBALIZE_LABEL): Delete.
1750         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
1751         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
1752         * pa.c (pa_globalize_label): New function.
1753         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
1754         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
1755         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
1756         (GLOBAL_ASM_OP): Define.
1757         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
1758         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
1759         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
1760         (GLOBAL_ASM_OP): Define.
1761         * v850.c (v850_output_aligned_bss): Use target hook.
1762         * vax.c (vms_globalize_label): New function.
1763         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
1764         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
1765         (GLOBAL_ASM_OP): Define.
1766         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
1767         * doc/tm.texi: Update docs.
1768         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
1769         target hook.
1770         * final.c (output_alternate_entry_point): Likewise.
1771         * hooks.c (hook_FILEptr_constcharptr_void): New function.
1772         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
1773         * output.h (assemble_global): Delete.
1774         (default_globalize_label): Declare.
1775         * system.h (ASM_GLOBALIZE_LABEL): Poison.
1776         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
1777         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
1778         * target.h (gcc_target): Add globalize_label member.
1779         * varasm.c (asm_output_bss, asm_output_aligned_bss,
1780         globalize_decl): Use target hook.
1781         (assemble_global): Delete.
1782         (default_globalize_label): New function.
1784 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1786         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
1788 2002-08-20  Devang Patel  <dpatel@apple.com>
1789         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
1791 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1793         * arc.c (output_shift): Use stdio instead of asm_fprintf.
1794         * arm.c (thumb_output_function_prologue): Likewise.
1795         * avr.c (print_operand): Likewise.
1796         * c4x.c (c4x_print_operand): Likewise.
1797         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
1798         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
1799         * cris.c (cris_target_asm_function_prologue,
1800         cris_asm_output_mi_thunk): Likewise.
1801         * h8300.c (print_operand): Likewise.
1802         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1803         * ip2k.c (print_operand): Likewise.  Fix format specifier.
1804         * m68hc11.c (asm_print_register, print_operand,
1805         print_operand_address): Use stdio instead of asm_fprintf.
1806         (print_operand_address): Fix format specifier.
1807         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
1808         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
1809         asm_fprintf.
1810         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1811         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
1812         * m68k.c (m68k_output_function_prologue,
1813         m68k_output_function_epilogue, print_operand): Likewise.
1814         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
1815         Likewise.  Fix format specifier.
1816         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1817         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1818         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
1820 2002-08-15  Eric Christopher  <echristo@redhat.com>
1821             Jeff Knaggs  <jknaggs@redhat.com>
1823         * config.gcc (mipsisa64sr71k-elf): New target.
1824         * config/mips/sr71k.md: New file.
1825         * config/mips/mips.md: Use it.
1826         (rot*): Add sr71k specifics.
1827         * config/mips/t-sr71k: New file.
1828         * config/mips/mips.h (sr71k): New cpu.
1829         (TARGET_SR71K): Use it.
1830         (TUNE_SR71K): Ditto.
1831         (GENERATE_BRANCHLIKELY): Ditto.
1832         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
1833         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
1834         * config/mips/mips.c (sr71k): New cpu.
1835         (mips_use_dfa_pipeline_interface): Use.
1837 2002-08-15  Eric Christopher  <echristo@redhat.com>
1838             Richard Sandiford <rsandifo@redhat.com>
1839             Aldy Hernandez  <aldyh@redhat.com>
1840             Graham Stott    <grahams@redhat.com>
1841             Michael Meissner  <meissner@redhat.com>
1842             Gavin Romig-Koch  <gavin@redhat.com>
1843             Ken Raeburn  <raeburn@cygnus.com>
1844             Alexandre Oliva <aoliva@redhat.com>
1846         * config.gcc (mips64vr-elf): New target.
1847         * config/mips/5400.md: New file.
1848         * config/mips/5500.md: Ditto.
1849         * config/mips/mips.md: Use them.
1850         (frsqrt): New.
1851         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
1852         cpus.
1853         (mips_issue_rate): Use them.
1854         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
1855         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
1856         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
1857         cpus.
1858         (TARGET_MIPSx): Use them.
1859         (TUNE_MIPSx): Ditto.
1860         (GETNATE_MULT3_SI): Ditto.
1861         (ISA_HAS_BRANCHLIKELY): Ditto.
1862         (ISA_HAS_CONDMOVE): Ditto.
1863         (ISA_HAS_NMADD_NMSUB): Ditto.
1864         (ISA_HAS_MULHI): New. Ditto.
1865         (ISA_HAS_MULS): Ditto.
1866         (ISA_HAS_MSAC): Ditto.
1867         (ISA_HAS_MACC): Ditto.
1868         (ISA_HAS_ROTR_SI): Ditto.
1869         (ISA_HAS_ROTR_DI): Ditto.
1870         (RTX_COSTS): Use.
1872 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1874         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
1875         at head.
1876         (remove_dup_nonsys_dirs): New function.
1877         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
1878         (merge_include_chains): Remove non-system include directories from
1879         quote and bracket include chains when they duplicate equivalent system
1880         directories.
1881         * doc/cpp.texi (-I): Update.
1882         * doc/cppopts.texi (-I): Update.
1883         * doc/install.texi (--with-local-prefix): Further document usage of
1884         this option.
1885         * doc/invoke.texi (-I): Update.
1887 2002-08-20  Richard Henderson  <rth@redhat.com>
1889         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
1890         (emit_block_move): Split out subroutines.
1891         (emit_block_move_via_movstr): New.
1892         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
1893         (emit_block_move_libcall_fn): New.  Construct function prototype for
1894         bcopy as well.
1895         (clear_storage): Split out subroutines.
1896         (clear_storage_via_clrstr): New.
1897         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
1898         (clear_storage_libcall_fn): New.  Construct function prototype for
1899         bzero as well.
1900         (emit_push_insn): Use emit_block_move.
1901         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
1902         (store_constructor): Likewise.
1904 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
1906         * objc/objc-act.c (building_objc_message_expr): Rename to
1907         current_objc_message_selector.
1909 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
1911         * objc/objc-act.c (build_ivar_chain): Remove.
1912         (objc_copy_list): Likewise.
1913         (get_class_ivars): Inline call to removed build_ivar_chain
1914         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
1915         slot; use that slot (rather than CLASS_IVARS) when accessing
1916         ivars for base classes.  Call copy_list and chainon instead of
1917         objc_copy_list.
1918         (build_private_template): Call get_class_ivars instead of
1919         build_ivar_chain.
1920         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
1921         (continue_class): Call get_class_ivars instead of
1922         build_ivar_chain.
1923         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
1924         of DECL_BIT_FIELD (which may have been cleared).
1925         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
1927 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1929         * genautomata.c (output_translate_vect, output_state_ainsn_table,
1930         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
1931         in output file.
1932         (output_internal_min_issue_delay_func): Initialize variable in
1933         output file.
1935 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
1937         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
1938         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
1940 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
1941             Steve Ellcey  <sje@cup.hp.com>
1943         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
1944         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
1945         * explow.c (trunc_int_for_mode): Abort when the mode is not
1946         a scaler integer mode.
1947         * combine.c (expand_compound_operation): Don't expand Vector
1948         or Complex modes into shifts.
1949         (expand_field_assignment): Don't do bitwise arithmatic and
1950         shifts on Vector or Complex modes.
1951         (simplify_comparison): Don't call trunc_int_for_mode
1952         for VOIDmode.
1953         * recog.c (general_operand): Likewise.
1954         (immediate_operand): Likewise.
1955         (nonmemory_operand): Likewise.
1957 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
1959         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
1960         multi-instruction SImode constant.  Add REG_EQUAL note.
1961         * config/rs6000/rs6000.md (movsi splitter): Use
1962         rs6000_emit_set_const.
1964 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1966         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
1967         the macro test controlling its use.
1969 2002-08-18  H.J. Lu  (hjl@gnu.org)
1971         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
1972         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
1973         gnu_ld=yes.
1974         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
1975         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
1976         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
1977         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
1978         here.
1979         (cris-*-linux*): Remove setting thread_file here.
1981 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
1983         PR preprocessor/7602
1984         * cppinit.c (path_include): Treat the system environment
1985         variables as being cxx_aware.
1987 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
1989         * c-decl.c (flexible_array_type_p): New function.
1990         (grokdeclarator, finish_struct): Use it.
1991         * doc/extend.texi: Document constraints on use of structures with
1992         flexible array members.
1994 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
1996         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
1997         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
1998         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
2000 2002-08-16  Stan Shebs  <shebs@apple.com>
2002         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
2003         for ObjC with -fnext-runtime.
2004         * doc/cpp.texi: Document it.
2006 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
2008         * doc/install.texi (Final installation): Replace links to individual
2009         build status pages with a link to a common page that lists them all.
2011 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
2013         * doc/invoke.texi: Fix typo.
2015 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
2017         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
2019 2002-08-16  Andrew Haley  <aph@redhat.com>
2021         * tree-inline.c: Add includes for Java inliner.
2022         (remap_decl): Don't handle anonymous types for Java.
2023         (remap_block): Add handling for Java trees.
2024         (copy_scope_stmt): Conditionalize for non-Java use only.
2025         (copy_body_r): Handle Java trees.  Add handling for
2026         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
2027         (initialize_inlined_parameters):  Handle Java trees.
2028         (declare_return_variable): Likewise.
2029         (expand_call_inline): Handle Java trees.
2030         (walk_tree): Likewise.
2031         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
2032         (add_stmt_to_compound): New function.
2034 2002-08-15  Richard Henderson  <rth@redhat.com>
2036         * Makefile.in (LOOSE_WARN): Remove -fno-common.
2037         (NOCOMMON_FLAG): New substitution point.
2038         (GCC_WARN_CFLAGS): Include it.
2039         * configure.in (ac_checking): Set nocommon_flag.
2040         (nocommon_flag): New substitution point.
2042 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
2044         * c-tree.h (skip_evaluation): Move declaration...
2045         * c-common.h: ... here.
2046         * c-typeck.c (build_external_ref): Don't assemble_external nor
2047         mark a tree as used if skip_evaluation is set.
2048         * c-parse.in (typeof): New non-terminal to set skip_evaluation
2049         around TYPEOF.
2050         (typespec_nonreserved_nonattr): Use it.
2052 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
2054         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
2055         (xcoff_debug_hooks): Update end_prologue.
2056         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
2057         * debug.h (end_prologue): Add file arg.
2058         (end_epilogue): Add line and file args.
2059         (dwarf2out_end_epilogue): Add line and file args.
2060         (vmsdbgout_after_prologue): Remove.
2061         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
2062         (dwarf2_debug_hooks): Update end_prologue.
2063         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
2064         (dwarfout_end_prologue): Add file arg.
2065         * final.c (vmsdbgout_after_prologue): Remove
2066         (final_end_function): Update end_epilogue call.
2067         (final_scan_insn): Update end_prologue call.
2068         * sdbout.c (sdbout_end_epilogue): Add line and file args.
2069         (sdbout_end_prologue): Add file arg.
2070         (sdb_debug_hooks): Update end_prologue.
2071         (sdb_begin_prologue): Update sdbout_end_prologue call.
2072         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
2073         vmsdbgout_end_function.
2074         (vmsdbgout_end_prologue): New function renamed from
2075         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
2076         (vmsdbgout_end_function): New function.
2077         (vmsdbgout_end_epilogue): Add line and file args. Call
2078         vmsdbgout_source_line.
2079         (write_pclines): Write only valid line numbers.
2080         (write_srccorr): Don't write source correlation records if 0 lines.
2081         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
2083 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
2085         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
2086         (_Unwind_Internal_Ptr): 32 bit version for use in
2087         read_encoded_value_with_base.
2088         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
2089         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
2090         right size.
2092 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2094         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
2095         signed/unsigned warnings.
2097         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
2098         record_reg_classes): Likewise.
2100         * reload.c (reload_inner_reg_of_subreg, push_reload,
2101         find_reloads_address_1): Likewise.
2103 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
2105         * rs6000.c (output_mi_thunk): Return to function section on
2106         TARGET_ELF.
2108         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
2110 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
2112         * config/s390/s390.c (legitimize_address): Optimize loading
2113         of large displacements.
2115 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
2117         * config/alpha/alpha-protos.h: Update.
2119         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
2120         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
2121         (alpha_linkage_symbol_p): New static function.
2122         (print_operand_address): Print linkage operand.
2124         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
2125         variables.
2126         (reloc_kind): New enum.
2127         (struct alpha_funcs): New struct.
2128         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
2130         (alpha_need_linkage): Rewrite.
2131         (alpha_use_linkage): New global function.
2132         (alpha_write_linkage): Rewrite and make static.
2133         (alpha_write_one_linkage): Rewrite
2135         (alpha_start_function): Remove procedure descriptor output.
2136         (alpha_end_function): Write linkages at end of each function.
2138         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
2139         (call_vms_1, call_value_vms_1): Rewrite.
2141         * config/alpha/vms.h (ASM_FILE_END): Remove.
2143 2002-08-14  Richard Henderson  <rth@redhat.com>
2145         * ggc-page.c (RTL_SIZE): New.
2146         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
2147         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
2149 2002-08-14  Richard Henderson  <rth@redhat.com>
2151         * calls.c: Include target.h.
2152         * Makefile.in (calls.o): Update.
2154         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
2155         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
2157 2002-08-14  Richard Henderson  <rth@redhat.com>
2159         * Makefile.in (LOOSE_WARN): Add -fno-common.
2160         * c-common.h (constant_string_class_name): Add missing extern.
2162 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
2164         PR preprocessor/7358
2165         * c-opts.c (check_deps_environment_vars): Ignore main file
2166         for SUNPRO_DEPENDENCIES.
2167         * cppfiles.c (stack_include_file): Ignore main file if
2168         appropriate.
2169         * cpplib.h (struct cpp_options): New member in deps.
2170         * doc/cppenv.texi: Update.
2172 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2174         PR preprocessor/7526
2175         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
2177 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
2179         * doc/invoke.texi (-a): Remove documentation.
2180         (-fprofile-arcs): Remove reference to -a, -ax options.
2181         * doc/gcov.texi (Gcov Data Files): Data might be merged.
2183 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2185         Fix PR/7566
2186         * c-semantics.c (genrtl_case_label): Don't (mis)use
2187         warning_with_decl.
2189 2002-08-14  Dale Johannesen  <dalej@apple.com>
2191         * explow.c (emit_stack_restore):  Emit memory clobbers
2192         preceding the stack pop, to prevent the scheduler from
2193         moving refs to variable arrays below this pop.
2194         * reload1.c (reload):  Preserve these clobbers for sched2.
2195         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
2197 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2199         * c-opts.c (c_common_post_options): Correct test.
2201 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2203         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
2204         order in call to fprintf.
2206 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2208         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
2210 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
2212         * reload.c (find_reloads): Handle constraint letters marked by
2213         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
2214         (alternative_allows_memconst): Likewise.
2215         * reload1.c (maybe_fix_stack_asms): Likewise.
2216         * recog.c (asm_operand_ok, preprocess_constraints,
2217         constrain_operands): Likewise.
2218         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
2219         * local-alloc.c (block_alloc, requires_inout): Likewise.
2220         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
2222         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
2223         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
2224         * doc/tm.texi: Document these two new target macros.
2226         * config/s390/s390.c (s390_expand_plus_operand): Accept already
2227         valid operands.
2228         (q_constraint): New function.
2229         config/s390/s390-protos.h (q_constraint): Declare it.
2230         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
2231         (EXTRA_MEMORY_CONSTRAINT): New macro.
2233         * config/s390/s390.md: Throughout the machine description,
2234         replace all instances of the constraint combinations 'Qo'
2235         or 'oQ' with simply 'Q'.
2237 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2239         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
2240         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
2241         (LIBGCC2_CFLAGS): Compile with -mrelax.
2243 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2245         * doc/invoke.texi: Document -minmax for 68HC12.
2247         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
2248         ("uminqi3"): Likewise.
2249         ("uminhi3", "umaxhi3"): Likewise.
2251         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
2252         (TARGET_MIN_MAX): Define.
2253         (TARGET_SWITCHES): New option -minmax/-mnominmax.
2255 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2257         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
2258         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
2260         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
2261         (ret, declare, farsym): New gas macros.
2262         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
2263         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
2264         and declare the symbol far when compiled with -mlong-calls.
2265         (__far_trampoline): New for 68HC12 trampoline code to invoke a
2266         far handler using jsr/bsr.
2268         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
2269         (jsr): New macro to transform a 'jsr' into a 'call'.
2271 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
2273         * doc/invoke.texi: Document -mlong-calls for 68HC12.
2275         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
2276         -mlong-calls is specified.
2277         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
2278         assembler directives.
2279         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
2280         (TARGET_SWITCHES): Add -mlong-calls options.
2281         (current_function_far): Declare.
2283         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
2284         into account the page register saved on the stack.
2285         (m68hc11_override_options): Take into account -mlong-calls option.
2286         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
2288         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
2289         if the function is going to be in 68HC12 banked memory (-mlong-calls).
2290         ("*return_16bit"): Likewise.
2291         ("*return_void"): Likewise.
2292         ("call", "call_value"): Use call for a far function call.
2294 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
2296         * toplev.c (parse_options_and_default_flags): Don't call
2297         post_options here.
2298         (general_init): Initialize GC, pools and tree hash here,
2299         instead of lang_independent_init.
2300         (lang_independent_init): Rename backend_init.
2301         (do_compile): Call post_options hook; exit early if there
2302         have been errors after switch processing.
2303         (toplev_main): Update.
2305 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2307         * c-pretty-print.h: Guard against multiple inclusion.
2308         Robustify macros.
2309         (pp_c_attributes): Declare.
2310         * c-pretty-print.c (pp_c_attributes): New function.
2312 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2314         * m68k.c (m68k_output_function_prologue,
2315         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
2316         and NEWS/MOTOROLA.
2317         * genattrtab.c: Remove dpx2 comment.
2318         * libgcc2.c (__enable_execute_stack): Delete versions for
2319         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
2320         sony_news/SYSTYPE_BSD.
2321         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
2322         __gmicro__, __i860__, __NeXT__ and __pyr__.
2323         * rtl.h: Remove convex comment.
2324         * varasm.c: Likewise.
2326 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2328         * c-opts.c (lang_flags): Const-ify.
2329         * ra-build.c (undef_table): Likewise.
2330         * ra.c (eliminables): Likewise.
2332 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
2334         * tree.h: Guard against multiple inclusion.
2336 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
2338         * reload1.c (reload_cse_simplify): Before checking
2339         REG_FUNCTION_VALUE_P, check REG_P.
2341 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
2343         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
2345 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2347         * c-opts.c (c_common_init_options): Extra braces needed.
2349 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
2351         * sh.c (sh_init_builtins): Add PARAMS to declaration.
2352         (sh_media_init_builtins, sh_expand_builtin): Likewise.
2353         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
2354         (sh_expand_binop_v2sf): Likewise.
2355         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
2356         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
2357         (sh_initialize_trampoline): Likewise.
2359 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
2361         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
2362         new condition code modes.
2363         s390.c (s390_match_ccmode_set): Handle those new CC modes.
2364         (s390_select_ccmode): Likewise.
2365         (s390_branch_condition_mask): Likewise.
2367         * s390-protos.h (s390_tm_ccmode): Declare.
2368         s390.c (s390_tm_ccmode): New function.
2369         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
2371         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
2372         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
2373         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
2375         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
2376         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
2377         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
2378         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
2379         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
2381         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
2382         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
2383         "*cmpqi_ccs_0"): Remove, replace by ...
2384         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
2385         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
2386         "*tstqi", "*tstqi_cconly"): ... these new patterns.
2388         ("*cmpsidi_ccs"): Remove, replace by ...
2389         ("*cmpsi_ccs_sign"): ... this new pattern.
2390         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
2392         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
2393         ("*cli"): ... this new pattern.
2395         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
2396         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
2397         New patterns.
2398         ("adddi3_64"): Rename to "*adddi3_64".
2399         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
2400         ("adddi3"): Adapt expander.
2402         ("*addsi3_cc"): Allow "general_operand" for operand 2.
2403         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
2404         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
2406         ("addhi3", "addqi3"): Remove, replace by ...
2407         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
2409         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
2410         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
2411         ("subdi3"): Replace by insn and splitter "*subdi3_31".
2412         ("subdi3"): New expander.
2414         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
2416         ("subhi3", "subqi3"): Remove, replace by ...
2417         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
2419         ("*muldi3_sign"): New pattern.
2420         ("muldi3"): Do not clobber CC.
2421         ("mulsi3"): Likewise.
2422         ("mulsi_6432"): Likewise.
2424 2002-08-13  Denis Chertykov  <denisc@overta.ru>
2426         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
2427         which can change CC0.
2429 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
2431         * gcse.c (adjust_libcall_notes): New function.
2432         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
2434 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
2436         * libgcc2.c (L_bb): Remove unneeded #includes.
2437         (__global_counters, __gthreads_active): Remove unused globals.
2438         (__bb_exit_func): Merge counts into files rather than appending.
2439         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
2440         (ALL_CFLAGS): ... to here.
2442 2002-08-13  Denis Chertykov  <denisc@overta.ru>
2444         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
2445         (function_epilogue): Don't calculate function size.
2446         (ip2k_set_compare): Don't use lookup_const_double.
2447         (asm_file_start): Initialization of commands_in_file removed.
2448         (asm_file_end): Output of commands_in_file removed.
2450         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
2451         __INT_MAX__.
2453 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2455         * c-opts.c (c_common_init_options): Check option array is
2456         sorted if checking enabled.
2458 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
2460         * c-pretty-print.c: #include "c-tree.h".
2461         (pp_c_simple_type_specifier): Tweak.
2462         (pp_c_storage_class_specifier): New.
2463         (pp_c_function_specifier): Likewise.
2464         (pp_c_declaration_specifiers): Likewise.
2465         (pp_c_init_declarator): Likewise.
2466         (pp_c_declaration): Likewise.
2467         (pp_c_direct_declarator): Stub.
2468         (pp_c_declarator): Likewise.
2469         (pp_c_parameter_declaration): Likewise.
2471 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
2473         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
2474         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
2475         struct deferred_opt): New.
2476         (COMMAND_LINE_OPTIONS): Add -M*.
2477         (missing_arg): Update.
2478         (c_common_decode_option): Handle -M*.
2479         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
2480         don't call cpp_post_options.
2481         (c_common_finish, check_deps_environment_vars): Update.
2482         * cppfiles.c (stack_include_file, handle_missing_header): Update.
2483         * cpphash.h (CPP_PRINT_DEPS): Remove.
2484         * cppinit.c: Don't include version.h.
2485         (cpp_create_reader): Don't call deps_init.  Initialize
2486         warn_long_long.
2487         (cpp_read_main_file): Init deps if necessary.
2488         (cpp_destroy): Conditionally free deps.
2489         (cpp_finish): Update.
2490         (no_tgt): Remove.
2491         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
2492         (cpp_post_options): Rename post_options.
2493         * cpplib.h (struct cpp_options): Remove some dependency options;
2494         move others to a new structure.
2495         (cpp_post_options): Remove.
2496         (cpp_finish): Comment.
2497         * fix-header.c (read_scan_file): Don't call cpp_post_options.
2499 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
2501         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
2502         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
2503         MMIX_rR_REGNUM as clobbered.
2504         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
2506 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
2508         * diagnostic.h (output_formatted_scalar): Rename from
2509         output_formatted_integer.
2510         * diagnostic.def: Add DK_DEBUG.
2511         * diagnostic.c (output_decimal): Adjust.
2512         (output_long_decimal): Likewise.
2513         (output_unsigned_decimal): Likewise.
2514         (output_octal): Likewise.
2515         (output_long_octal): Likewise.
2516         (output_hexadecimal): Likewise.
2517         (output_long_hexadecimal): Likewise.
2518         * c-pretty-print.c (pp_c_type_specifier): New function.
2519         (pp_c_specifier_qualifier_list): Likewise.
2520         (pp_c_abstract_declarator): Likewise.
2521         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
2523 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
2525         * doc/trouble.texi (Disappointments): Add static constructor and
2526         destructor dependency information for AIX.
2528 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
2530         * cpphash.h (struct printer): New from cppmain.c.
2531         (cpp_reader): New member.
2532         * cppmain.c (struct printer): Move to cpphash.h.
2533         (options, print): Remove.
2534         (account_for_newlines, print_line, maybe_print_line,
2535         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
2536         scan_translation_unit_trad, cb_line_change, cb_ident,
2537         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
2538         cb_def_pragma): Make reentrant.
2540 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2542         * real.c (ieee_64): Always define.
2543         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
2544         (dec_h): Not used yet, hide it.
2545         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
2546         macro controlling use.
2547         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
2549 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
2551         * i386.md (tablejump): Sign extend the operand.
2552         * i386.c (classify_argument): Fix missed case from previous patch.
2554 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
2556         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
2557         to c-copts.c.
2558         (warn_multichar): Die.
2559         (cb_register_builtins): Export.
2560         * c-common.h (warn_multichar, preprocess_file): Remove.
2561         (cb_register_builtins): New.
2562         * c-lang.c (c_init): Remove.
2563         (LANG_HOOKS_INIT): Use c_objc_common_init.
2564         * c-lex.c (init_c_lex): Don't canonicalize filename.
2565         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
2566         (preprocess_file): Make static.  Update for cpplib.
2567         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
2568         (c_common_post_options): Set some cpp options here.
2569         (c_common_init): Move from c-common.c.
2570         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
2571         * cpplib.h (struct cpp_options): Remove in_fname.
2572         (cpp_preprocess_file): Update.
2573         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
2575 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2577         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
2579 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2581         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
2582         backslash in comment preceeding macro definition.
2583         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
2584         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
2585         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
2587 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
2589         * expr.c (store_expr): In condition for checking if value is
2590         generated in TARGET, move call to expr_size last.
2592 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
2594         * c-common.c (c_common_init): Call preprocess_file instead.
2595         (c_common_finish): Move to c-opts.c.
2596         * c-common.h (preprocess_file): new.
2597         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
2598         check_deps_environment_vars, c_common_finish): New.
2599         (c_common_decode_option): Update for out_fname and dependencies.
2600         * cppinit.c (init_dependency_output, output_deps): Remove.
2601         (cpp_destroy): Update prototype.
2602         (cpp_add_dependency_target): New.
2603         (cpp_read_main_file): Don't overlay a buffer.
2604         (cpp_finish): Take a deps output stream and write deps to it.
2605         Return the error count.
2606         (cpp_post_options): Don't canonicalize out_fname, or do anything
2607         with dependencies.
2608         * cpplib.h (struct cpp_options): Remove out_fname and
2609         preprocess_only.
2610         (cpp_add_dependency_target): New.
2611         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
2612         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
2613         set preprocess_only.  Don't handle the output stream directly.
2615 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2617         * dsp16xx.c (print_operand): Fix format specifier.
2618         * dsp16xx.md: Avoid automatic aggregate initialization.
2619         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
2620         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
2621         integer constant modifier.
2622         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
2623         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
2624         guards.
2625         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
2626         * v850.c (v850_select_section): Mark parameter with
2627         ATTRIBUTE_UNUSED.
2628         * global.c (global_alloc): Const-ify.
2629         * ra-colorize.c (hardregset_to_string): Fix format specifier.
2631 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2633         * darwin-c.c (darwin_pragma_options): Const-ify.
2634         * darwin.c (machopic_non_lazy_ptr_name,
2635         machopic_validate_stub_or_non_lazy_ptr): Likewise.
2636         (machopic_indirect_data_reference): Wrap variables in macros
2637         controlling their use.
2638         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
2639         (machopic_select_section): Use parentheses around && within ||.
2640         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
2642 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2644         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
2645         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
2646         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
2647         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
2648         mdr_try_remove_redundant_insns, track_w_reload,
2649         mdr_try_wreg_elim): Make function static to match prototype.
2650         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
2651         parameter with ATTRIBUTE_UNUSED.
2653 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2655         * arc.c (arc_init): Don't use ISO C style function definitions.
2656         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
2657         arm_get_strip_length, arm_strip_name_encoding): Likewise.
2658         * avr.h (progmem_section): Likewise.
2659         * h8300.c h8300_asm_insn_count): Likewise.
2660         * m32r.c (init_idents): Likewise.
2661         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
2662         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
2663         * xtensa.c (xtensa_build_va_list): Likewise.
2665 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
2667         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
2668         * c-opts.c (parse_option): Rename find_opt.
2669         (set_std_c99): New function.
2670         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
2671         (missing_arg): Remove OPT_std_bad.  Handle -o.
2672         (c_common_decode_option): Handle input and output file names,
2673         -o and -remap.  Clean up -std= handling.
2674         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
2675         (cpp_handle_option): Similarly.  Don't handle filenames.
2677 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
2679         * i386.c (classify_argument): Fix computing of field's offsets.
2681 2002-08-11  Andreas Jaeger  <aj@suse.de>
2683         PR target/7531:
2684         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
2686 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
2688         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
2689         reference to clk_objective_c with flag_objc.
2690         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
2691         Likewise.
2692         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
2694 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
2696         * c-opts.c (set_std_cxx98, set_std_c89): New.
2697         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
2698         (c_common_decode_option): Handle new switches from cppinit.c.
2699         Add -std=gnu++98.
2700         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
2701         (no_arg, no_num): Remove.
2702         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
2703         switches apart from -lang-objc and lang-asm.
2704         (cpp_handle_option): Similarly.
2705         * cpplib.h (cpp_set_lang): New.
2706         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
2707         -std=gnu++98.
2708         * objc/lang-specs.h: Remove -ansi.
2710 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2711                                Graham Stott
2713         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
2714         errors.
2716 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2718         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
2719         emit_jump_insn): Fix uninitialized variable.
2720         * gcov.c (init_line_info): Likewise.
2721         * genautomata.c (transform_3): Add braces around ambiguous
2722         else.
2723         * ifcvt.c (cond_exec_process_insns): Mark parameter with
2724         ATTRIBUTE_UNUSED.
2725         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
2726         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
2727         variable.
2729         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
2730         warnings in output files.
2732 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
2734         * c-common.c (flag_objc): New.
2735         * c-common.h (c_language_kind): Get rid of clk_objective_c
2736         enum value.
2737         (flag_objc): New extern declaration.
2738         * c-decl.c (implicitly_declare): Call objc_check_decl
2739         instead of maybe_objc_check_decl.
2740         (finish_decl): Likewise.
2741         (grokfield): Likewise.
2742         (finish_struct): Likewise.
2743         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
2744         (maybe_objc_comptypes): Rename to objc_comptypes.
2745         (maybe_building_objc_message_expr): Rename to
2746         objc_message_selector.
2747         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
2748         replace with flag_objc as needed.
2749         * c-opts.c (c_common_init_options): Likewise.
2750         (c_common_decode_option): Likewise.
2751         * c-parse.in (init_reswords): Likewise.
2752         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
2753         (maybe_objc_comptypes): Rename to objc_comptypes.
2754         (maybe_building_objc_message_expr): Rename to
2755         objc_message_selector.
2756         * c-typeck.c (comptypes): Call objc_comptypes instead of
2757         maybe_objc_comptypes, and/or objc_message_selector instead of
2758         maybe_building_objc_message_expr.
2759         (comp_target_types): Likewise.
2760         (convert_for_assignment): Likewise.
2761         (warn_for_assignment): Likewise.
2762         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
2763         independently of those for other languages.
2764         * objc/objc-act.c (maybe_objc_comptypes): Delete.
2765         (maybe_objc_check_decl): Delete.
2766         (maybe_building_objc_message_expr): Rename to
2767         objc_message_selector.
2768         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
2769         clk_objective_c; set flag_objc flag.
2771 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
2773         * ifcvt.c (find_if_case_2): Test correct basic block for size.
2775 2002-08-09  Dale Johannesen  <dalej@apple.com>
2777         * config/rs6000/rs6000.md: Add sibcall patterns.
2778         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
2779         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
2780         Rewritten to handle sibcalls.
2781         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
2782         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
2784 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2786         * profile.c (da_file_name): New static var.
2787         (init_branch_prob): Initialize it.
2788         (end_branch_prob): Remove da file.
2790         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
2791         * configure.in (coverage_flags): Default to nothing.
2792         * configure: Rebuilt.
2794 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
2796         * Makefile.in (c-opts.o): Update
2797         * c-opts.c: Include intl.h.
2798         (print_help): Move from cppinit.c.  Remove unused options.
2799         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
2800         (missing_arg): Complain for switches without an argument.
2801         (c_common_decode_option): Reject missing joined arguments.
2802         Handle new switches from cppinit.c.
2803         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
2804         (cpp_handle_option): Similarly.
2805         (print_help): Moved to c-opts.c.
2806         * cpplib.h (struct cpp_options): Remove help_only.
2807         * gcc.c (cpp_unique_options): Remove -$.
2808         * doc/cppopts.texi: Undocument -h.
2810 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2812         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
2813         legitimate constant.
2814         (legitimate_pic_operand_p): Neither pic operand.
2815         (legitimate_address_p): But legitimate address.
2816         (get_thread_pointer): Generate MEM/u instead of CONST around
2817         UNSPEC_TP.
2818         (print_operand): Remove printing of UNSPEC_TP.
2819         (print_operand_address): And print it here.
2821 2002-08-08  Devang Patel  <dpatel@apple.com>
2823         * objc/objc-act.c (build_selector_translation_table): Issue warning,
2824         when  -Wselector is used,if method for which selector is being
2825         created does not exist.
2827 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
2829         * config/sh/sh.c (prepare_move_operands): Only call
2830         target_reg_operand if TARGET_SHMEDIA.
2832 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2834         * config/rs6000/rs6000.h, config/rs6000/aix.h,
2835         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
2836         two patches.
2837         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
2839 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
2840             Richard Henderson  <rth@redhat.com>
2842         * emit-rtl.c (gen_rtx_REG): After reload, only return
2843         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
2845 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2847         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
2848         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
2849         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
2850         macro.
2852 2002-08-08  Adam Nemet  <anemet@lnxw.com>
2854         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
2855         register.
2856         (thumb_expand_prologue): Likewise.
2857         (thumb_output_function_prologue): Likewise.
2858         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
2859         the additional push of the PIC register.
2861 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
2863         * configure.in (enable_coverage): New enable switch.
2864         * configure: Rebuilt.
2865         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
2866         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
2867         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
2868         (mostlyclean): Remove coverage files.
2869         * doc/install.texi: Document enable_coverage.
2871         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
2872         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
2873         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
2874         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
2875         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
2876         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
2877         files.
2879 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
2881         * c-opts.c (cpp_opts): New.
2882         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
2883         (c_common_decode_options): Handle cpplib switches.
2884         (c_common_init_options): Set cpp_opts.
2885         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
2886         (cpp_handle_option): Similarly.
2888 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
2890         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
2891         (TARGET_ALTIVEC_ABI): Same.
2892         (TARGET_ALTIVEC_VRSAVE): Same.
2894         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
2895         icode not CODE_FOR_nothing.  Change switch to if.
2897 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
2899         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
2901 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
2903         * stor-layout.c (place_union_field): For bitfields if
2904         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
2905         TYPE_USER_ALIGN.
2907 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2909         * pa.c (struct deferred_plabel): Constify name field.
2911 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
2913         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
2915 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2917         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
2918         local_prefix are the same.
2919         * configure: Rebuilt.
2921 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
2922             Richard Henderson  <rth@redhat.com>
2924         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
2925         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
2926         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
2927         (place_field): Likewise.
2928         * config/i386/i386.c (x86_field_alignment): Don't check
2929         DECL_USER_ALIGN here.
2930         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
2931         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
2932         prototype.
2933         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
2934         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
2935         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
2936         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
2937         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
2938         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
2940 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
2942         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
2943         * c-common.c: Don't include tree-inline.h.
2944         (c_common_init_options, c_common_post_options): Move to c-opts.c.
2945         * c-common.h (c_common_decode_option): New.
2946         * c-decl.c (c_decode_option): Remove.
2947         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
2948         * c-opts.c: New file.
2949         * c-tree.h (c_decode_option): Remove.
2950         * doc/passes.texi: Update.
2951         * objc/objc-act.c (objc_decode_option): Remove.
2952         * objc/objc-act.h (objc_decode_option): Remove.
2953         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
2954         c_common_decode_option.
2956 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
2958         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
2959         dependency on TARGET_DOUBLE_FLOAT.
2961 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
2963         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
2964         overwrite callee-save registers.  Fix comment.
2966 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
2968         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
2969         in target_flags based on ISA, if it was not set on the command
2970         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
2971         support Branch Likely instructions.
2972         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
2973         (TARGET_BRANCHLIKELY): Likewise.
2974         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
2975         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
2976         ISA_HAS_BRANCHLIKELY.
2977         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
2978         * doc/invoke.texi: Document new MIPS -mbranch-likely and
2979         -mno-branch-likely options.
2981 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2983         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
2985         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
2986         $(GCONFIG_H).
2988 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
2990         * c-decl.c (duplicate_decls): Error out for incompatible TLS
2991         declarations.
2993         * testsuite/gcc.dg/tls/diag-3.c: New.
2995 2002-08-06  Dale Johannesen  <dalej@apple.com>
2997         * c-common.c (fname_decl): Use line number 0 for
2998         __func__, to avoid confusing debuggers.
3000 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
3002         * gcov.c: Tidy.
3003         (struct line_info, struct coverage): New structures.
3004         (gcov_file_name, gcov_file): Remove globals.
3005         (output_data): Take source file parameter. Fix memory leak. Break
3006         up into ...
3007         (init_line_info, output_line_info, make_gcov_file_name,
3008         accumulate_branch_counts): ... here.
3009         (calculate_branch_probs, function_summary): Adjust.
3010         (main): Adjust.
3011         (function_*): Remove global variables.
3013 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3015         * dwarf2out.c: Remove unused macros.
3017 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3019         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
3021 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
3023         * cppinit.c (struct lang_flags): Rename trigraphs std.
3024         (set_lang): Update.
3025         * cpplib.h (struct cpp_options): New member std.
3026         * cppmacro.c (_cpp_builtin_macro_text): Use std.
3027         (collect_args): Flag whether to swallow a possible future
3028         comma pasted with varargs.
3029         (replace_args): Use this flag.
3030         * doc/cpp.texi: Update varargs extension documentation.
3032 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3034         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
3036 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3038         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
3039         and MODE_CLASS_INT modes.
3041 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
3043         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
3044         --{enable,disable}-threads is given to configure.
3045         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
3046         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
3047         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
3048         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
3049         Remove thread_file setting here.
3051 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
3053         * doc/install.texi (Binaries): Update Bull Freeware URL.
3055 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3057         * doc/gcc.texi (Top): Rename Index to Keyword Index.
3059 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
3061         * gcov.c (output_data): Round to % to nearest, tweak formatting.
3063 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
3065         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
3066         of the operands into MINUS_EXPR if code is PLUS_EXPR.
3068 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
3070         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
3071         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
3072         drectve_section): Define.
3073         * config/i386/t-interix: Replace interix.o rule with winnt.o.
3074         * config/i386/interix.c: Remove.
3076 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
3078         * attribs.c: Don't include obstack.h.
3079         * builtins.c: Likewise.
3080         * cfganal.c: Likewise.
3081         * cfgbuild.c: Likewise.
3082         * cfgcleanup.c: Likewise.
3083         * emit-rtl.c: Likewise.
3084         * loop.c: Likewise.
3085         * stmt.c: Likewise.
3087         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
3089 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
3091         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
3093 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
3095         * doc/invoke.texi: Remove duplicated paragraph describing
3096         TARGET_SWITCHES.
3098 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
3100         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
3101         * collect2.h (permanent_obstack): Delete declaration.
3102         * collect2.c (permanent_obstack): Delete definition.
3103         (main): Don't initialize permanent_obstack.  Use xstrdup instead.
3104         * expr.c: Don't include obstack.h.
3105         (permanent_obstack): Delete declaration.
3106         * function.c: Don't include obstack.h.
3107         (permanent_obstack): Delete declaration.
3108         * integrate.c: Don't include obstack.h.
3109         (function_maybepermanent_obstack): Delete declaration.
3110         * print-tree.c (debug_tree): Use x*alloc not permalloc.
3111         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
3112         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
3113         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
3114         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
3115         of permalloc, expralloc, perm_calloc.
3116         * tree.c (permanent_obstack): Delete definition.
3117         (init_ttree): Rename from init_obstacks.
3118         (permalloc): Delete.
3119         (perm_calloc): Delete.
3120         (dump_tree_statistics): Don't print information about
3121         permanent_obstack.
3122         * varasm.c (assemble_start_function): Use xstrdup instead of
3123         permalloc/strcpy.
3124         (assemble_variable): Likewise.
3125         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
3126         permalloc.
3127         (unicosmk_add_extern): Likewise.
3128         * config/c4x/c4x.c (c4x_external_ref): Likewise.
3129         (c4x_global_label): Likewise.
3130         * config/frv/frv.c (frv_encode_section_info): Likewise.
3131         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
3132         (i386_pe_record_exported_symbol): Likewise.
3133         * config/mips/mips.c (mips_output_external): Likewise.
3134         (mips_output_external_libcall): Likewise.
3135         * config/pa/pa.c: (permanent_obstack): Delete declaration.
3136         (output_call): Use ggc_strdup instead of allocating on
3137         permanent_obstack.
3138         * config/romp/romp.c: Include ggc.h.
3139         (get_symref): Don't declare permanent_obstack, use ggc_strdup
3140         intead of permanent_obstack.
3141         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
3142         instead of permalloc.
3143         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
3144         instead of permalloc
3145         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
3146         instead of permalloc.
3147         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
3148         permalloc.
3150 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
3152         Contribute a port developed primarily by Michael Meissner,
3153         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
3154         * config.gcc: Add frv-elf target.
3155         * config/frv/cmovd.c: New file.
3156         * config/frv/cmovh.c: New file.
3157         * config/frv/cmovw.c: New file.
3158         * config/frv/frv-abi.h: New file.
3159         * config/frv/frv-asm.h: New file.
3160         * config/frv/frv-modes.def: New file.
3161         * config/frv/frv-protos.h: New file.
3162         * config/frv/frv.c: New file.
3163         * config/frv/frv.h: New file.
3164         * config/frv/frv.md: New file.
3165         * config/frv/frvbegin.c: New file.
3166         * config/frv/frvend.c: New file.
3167         * config/frv/lib1funcs.asm: New file.
3168         * config/frv/media.h: New file.
3169         * config/frv/modi.c: New file.
3170         * config/frv/t-frv: New file.
3171         * config/frv/uitod.c: New file.
3172         * config/frv/uitof.c: New file.
3173         * config/frv/ulltod.c: New file.
3174         * config/frv/ulltof.c: New file.
3175         * config/frv/umodi.c: New file.
3176         * config/frv/xm-frv.h: New file.
3178         * config/frv/media.h: Removed again.
3180 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3182         * gcov.c (bb_file_time): New static variable.
3183         (object_directory): May also be object file.
3184         (preserve_paths): New static variable.
3185         (print_usage): Adjust.
3186         (options): Adjust.
3187         (process_args): Adjust.
3188         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
3189         file. Find modification date on bb file.
3190         (read_profile): Don't rewind a NULL file.
3191         (format_hwint): New static function.
3192         (function_summary): Use format_hwint.
3193         (output_data): SOURCE_FILE_NAME is never relative to
3194         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
3195         mangling. Adjust output format to make it more machine readable.
3196         * doc/gcov.texi: Document & clarify semantics.
3198 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
3200         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
3202 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3204         * gcc.c (cc1_options): Pass output file as auxbase when
3205         appropriate.
3206         * profile.c (init_branch_prob): FILENAME has already had ending
3207         stripped.
3208         * final.c (end_final): Likewise.
3209         * toplev.c (aux_base_name): New global.
3210         (compile_file): Pass aux_base_name to init init_branch_prob and
3211         end_final.
3212         (independent_decode_option, case 'a'): New auxinfo options.
3213         (case 'd'): Protect against mising basename.
3214         (do_compile): Initialize aux_base_name.
3215         * toplev.h (aux_base_name): New global.
3216         * doc/invoke.texi: Adjust documentation.
3218 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
3220         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
3221         of TARGET_ALIGN_DOUBLE.
3223 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
3225         * diagnostic.c (inform): New function.
3226         * diagnostic.h (inform): Declare.
3228 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
3230         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
3231         (movhi_internal): Same.
3232         (movqi_internal): Same.
3233         (movdi_internal64): Same.
3235         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
3237         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
3238         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
3239         (COMMON_ASM_OP): Define.
3240         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
3241         Use ALIGN parameter.
3242         (LOCAL_COMMON_ASM_OP): Define.
3243         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
3245 2002-08-03  Roger Sayle  <roger@eyesopen.com>
3247         * builtins.def: Define new builtin functions exp, expf, expl,
3248         log, logf and logl (and their __builtin_* variants).
3249         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
3250         Define exp_optab and log_optab.
3251         * optabs.c (init_optans): Initialize exp_optab and log_optab.
3252         * genopinit.c (optabs): Implement exp_optab and log_optab
3253         using exp?f2 and log?f2 patterns.
3254         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
3255         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
3256         (expand_builtin): Ignore the new builtins (and all cos and
3257         sin variants) when not optimizing.  Expand new builtins via
3258         expand_builtin_mathfn when flag_unsafe_math_optimizations.
3260         * doc/extend.texi: Document new exp and log builtins.
3261         * doc/md.texi: Document new exp?f2 and log?f2 patterns
3262         (and previously undocumented cos?f2 and sin?f2 patterns).
3264 2002-08-03  Jason Merrill  <jason@redhat.com>
3266         * explow.c (int_expr_size): New fn.
3267         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
3268         * expr.h: Declare it.
3270 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
3272         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
3273         gengtype-* dependencies.
3275 2002-08-02  Eric Christopher  <echristo@redhat.com>
3277         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
3278         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
3279         #ifndef to #undef.
3280         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
3282 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
3284         PR optimize/7067
3285         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
3286         small if optimizing for size.
3288 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
3290         * configure.in (FORBUILD): Use $build_alias.
3291         * configure: Regenerated.
3293 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
3295         * config.gcc: Don't include mips/abi64.h in $tm_file.
3296         * hard-reg-set.h (call_really_used_regs): Declare.
3297         * config/mips/abi64.h: Remove file.
3298         * config/mips/linux.h,
3299         * config/mips/iris6.h: Don't include it.
3300         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
3301         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
3302         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
3303         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
3304         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
3305         Bring across definitions from abi64.h.
3306         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
3307         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
3308         (struct mips_args): Use it.
3309         * config/mips/mips.c (mips_conditional_register_usage): Define.
3311 2002-08-02  Jason Merrill  <jason@redhat.com>
3313         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
3314         * langhooks.c (lhd_expr_size): Define default.
3315         * langhooks.h (struct lang_hooks): Add expr_size.
3316         * explow.c (expr_size): Call it.
3317         * expr.c (store_expr): Don't copy an expression of size zero.
3318         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
3319         to store.
3320         * Makefile.in (builtins.o): Depend on langhooks.h.
3322 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3324         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
3325         * ra-debug.c: Include "tm_p.h".
3326         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
3328 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
3330         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
3331         when not honoring signalling NaNs.
3332         (simplify_ternary_operation): a == b has a definite value
3333         when not honoring NaNs.
3335 2002-08-02  Jason Merrill  <jason@redhat.com>
3337         * gdbinit.in (pct): New macro.
3339 2002-08-01  Stan Shebs  <shebs@apple.com>
3340             Andreas Tobler  <toa@pop.agri.ch>
3342         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
3343         plays nice with Darwin headers.
3344         (_BSD_RUNE_T_DEFINED_): Likewise.
3346 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
3348         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
3349         * cppinit.c (cpp_post_options): Likewise.
3351         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
3352         warning about 'LL' suffix (but not 'ULL' etc) when
3353         -Wno-long-long is in effect.
3355         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
3356         Check for failing time()/localtime(), issue a warning, and
3357         make __TIME__ and __DATE__ expand to fallback strings.
3359         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
3360         and __TIME__ when the date and time cannot be determined.
3362 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
3364         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
3366 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
3368         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
3370 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
3372         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
3373         (mipsisa64sb1el-*-elf*): Likewise.
3374         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
3375         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
3376         (TARGET_SB1, TUNE_SB1): New macros.
3377         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
3378         -mtune flags.
3380 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
3382         * varasm.c (asm_emit_uninitialized): Return false if global BSS
3383         and ASM_EMIT_BSS not supported by target.
3384         (assemble_variable): Do not duplicate uninitialized logic.
3385         Fall through if asm_emit_uninitialized failed.
3387 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
3389         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
3391 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
3393         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
3394         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
3396         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
3397         HOST_BITS_PER_WIDE_INT == 64.
3399 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3401         * df.c (df_insn_table_realloc): Change parameter to unsigned.
3402         * optabs.c (expand_binop): Make variable unsigned.
3403         * simplify-rtx.c (simplify_subreg): Likewise.
3404         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
3406 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3408         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
3410 2002-08-01  Richard Henderson  <rth@redhat.com>
3412         * toplev.c (parse_options_and_default_flags): Don't set
3413         flag_reorder_blocks for -Os.
3415         * config/avr/avr.c (avr_optimization_options): Remove.
3416         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
3417         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
3418         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
3420 2002-08-01  H.J. Lu <hjl@gnu.org>
3421             Richard Henderson  <rth@redhat.com>
3423         * output.h (DECL_READONLY_SECTION): Remove.
3424         (decl_readonly_section): Declare.
3425         * varasm.c (decl_readonly_section): New.
3426         (default_section_type_flags, default_select_section): Use it.
3427         * config/arm/pe.c (arm_pe_unique_section): Likewise.
3428         * config/i386/interix.c (i386_pe_unique_section): Likewise.
3429         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
3430         * config/mcore/mcore.c (mcore_unique_section): Likewise.
3431         * config/mips/mips.c (mips_unique_section): Likewise.
3433 2002-08-01  Richard Henderson  <rth@redhat.com>
3435         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
3436         refers to a subroutine parameter.
3438 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
3440         * varasm.c (assemble_visibility): Strip name encoding.
3442 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
3444         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
3445         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
3446         when there is no frame pointer.
3447         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
3448         registers properly.
3449         * config/ns32k/__unorddf2.c: New file.
3450         * config/ns32k/__unordsf2.c: New file.
3451         * config/ns32k/t-ns32k: New file.
3452         * config.gcc (ns32k-*-netbsd*): Use it.
3454 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
3456         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
3458 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3460         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
3462 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
3464         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
3466 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
3468         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
3470 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3472         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
3473         n_sets): Removed.
3474         (expr_hash_table, set_hash_table): Type changed to ...
3475         (struct hash_table): New type.
3476         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
3477         insert_expr_in_table, insert_set_in_table, compute_hash_table,
3478         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
3479         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
3480         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
3481         (alloc_hash_table): New.
3482         (free_set_hash_table, free_expr_hash_table): Merged to ...
3483         (free_hash_table): New.
3484         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
3485         (compute_hash_table_work): New.
3486         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
3487         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
3488         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
3489         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
3490         hoist_code, one_code_hoisting_pass,
3491         trim_ld_motion_mems): Altered due to changed type of hash tables.
3493 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
3495         * final.c (output_alternate_entry_point):
3496         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
3498 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3500         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
3501         avoid ISO C style function definition.
3503         * expr.c (expand_assignment): Delete unused variable.
3505 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
3507         * c-common.c (cb_register_builtins): Set
3508         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
3509         is given, and to 0 otherwise.
3510         * combine.c (simplify_if_then_else): HONOR_NANS
3511         implies FLOAT_MODE_P.
3513 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3515         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
3516         (cpp_handle_option): Don't handle it.
3517         (print_help): Update.
3518         * doc/cppopts.texi: Update.
3520 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3522         * c-common.c (cb_register_builtins): If C++, define
3523         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
3524         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
3526         * lang-specs.h: Simplify in accordance with new code in
3527         c-common.c.
3529 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
3531         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
3532         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
3533         * c-decl.c: Move all warning and flag variables to c-common.c.
3534         * c-format.c: Move all warning variables to c-common.c.
3535         * c-tree.h: Move all warning and flag declarations to c-common.h.
3536         * objc/objc-act.c: Move all warning variables to c-common.c.
3537         (flag_warn_protocol): Rename warn_protocol.
3539 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3541         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
3543 2002-07-31  Graham Stott  <graham.stott@btinternet.com>
3545         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
3546         .section prefix.
3548 2002-07-31  Stan Shebs  <shebs@apple.com>
3550         * config.gcc (i[34567]86-*-darwin*): New configuration.
3551         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
3552         defining.
3553         (TARGET_ENCODE_SECTION_INFO): Ditto.
3554         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
3555         * config/darwin.c (machopic_indirect_data_reference): Remove
3556         setting of RTX_UNCHANGING_P.
3557         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
3558         not to be applied to sums.
3559         * config/i386/t-darwin: New file.
3560         * config/i386/darwin.h: New file.
3561         * config/i386/i386.h (TARGET_MACHO): Add default definition.
3562         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
3563         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
3564         label and not the GOT add.
3565         (constant_address_p): For Mach-O, seeing a CONST is enough.
3566         (legitimate_pic_address_disp_p): Add a Mach-O case.
3567         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
3568         (legitimize_pic_address): Use generic Mach-O code to legitimize.
3569         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
3570         if outputting a difference.
3571         (ix86_output_addr_diff_elt): Add Mach-O case.
3572         (ix86_expand_move): Similarly.
3573         (ix86_expand_call): Similarly.
3574         (current_machopic_label_num): New global.
3575         (machopic_output_stub): New function.
3576         (ix86_value_regno): New function.
3577         (ix86_function_value): Use it instead of VALUE_REGNO.
3578         (ix86_libcall_value): Ditto.
3579         * config/i386/unix.h (VALUE_REGNO): Remove.
3581 2002-07-31  Graham Stott  <grahas@btinternet.com>
3583         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
3584         hash for LABEL_REF's.
3586 2002-07-31  Graham Stott  <grahams@btinternet.com>
3588         * config/rs6000/rs6000.c (spe_init_builtins,
3589         altivec_init_builtins, rs6000_common_init_builtins):
3590         Replace ANSI with K&R function def.
3592 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
3594         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
3595         for CCFPmode.
3597 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
3599         * config/mips/crtn.asm: Don't use __mips16 to determine the
3600         return-address offset.  Define RA to a suitable temporary
3601         register for the return address.
3603 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
3605         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
3606         constraints to 'd'.
3608 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
3610         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
3611         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
3612         patch on 2002-07-29.)
3613         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3615 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3617         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
3618         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
3619         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
3620         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
3621         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
3622         (ASM_GLOBALIZE_LABEL): Delete.
3623         (GLOBAL_ASM_OP): Define.
3625         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
3627         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
3628         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
3630 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
3632         * doc/extend.texi (Hints implementation): Document that GCC
3633         mostly ignores `register'.
3635 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
3637         * flags.h: Declare flag_finite_math_only.
3638         Use it in definition of HONOR_NANS and
3639         HONOR_INFINITIES.
3640         * c-common.c (cb_register_builtins): Emit
3641         __FINITE_MATH_ONLY__ when flag_finite_math_only
3642         is set.
3643         * combine.c (simplify_if_then_else): If
3644         flag_finite_math_only is set, a == b has a
3645         definite value.
3646         * toplev.c: Initialize flag_finite_math_only.
3647         (set_flags_fast_math): Set it on -ffast-math.
3648         (flag_fast_math_set_p): Test it.
3649         * doc/invoke.texi: Document -ffinite-math-only.
3651 2002-07-30  Richard Henderson  <rth@redhat.com>
3653         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
3654         (noce_process_if_block): Likewise.
3656 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
3658         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
3659         Bail out early if false_expr is NULL and we'd crash due to this.
3660         * genemit.c (gen_expand): Recognize return insns even if the return
3661         appears in a parallel.
3662         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
3663         * config/fp-bit.c: Likewise.
3664         * doc/tm.texi: Document it.
3666 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
3667             Zack Weinberg  <zack@codesourcery.com>
3669         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
3670         CODE_FOR_nothing.  Change switch to if.
3671         (rs6000_expand_binop_builtin): Same.
3672         (rs6000_expand_builtin): Expand builtin if target support enabled.
3673         (rs6000_init_builtins): Init builtin if target support enabled.
3674         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
3676 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3678         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
3680 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
3682         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
3684 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
3686         * sh.md (cond_delay_slot): New attribute.
3687         (cbranch delay): Use it for anulled-true case.
3688         (stuff_delay_slot): New pattern.
3689         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
3690         delay slot insn.
3691         (gen_far_branch): Emit stuff_delay_slot pattern.
3693 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
3695         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
3697 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
3699         * fold-const.c: Fix comment typos.
3700         * gcse.c: Likewise.
3701         * reload1.c: Likewise.
3703 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3705         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
3706         for TARGET_SPE.
3708 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3710         * c-pretty-print.h (pp_c_statement): Declare.
3711         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
3712         (pp_c_statement): Define.
3714 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3716         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
3717         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
3718         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
3719         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
3720         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
3721         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
3723         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
3724         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
3726 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3728         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
3729         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
3730         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
3731         (pp_c_expression): Update.
3733 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3735         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
3736         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
3737         * alpha/vms-ld.c (main): Likewise.
3738         * dsp16xx.c (double_reg_to_memory): Likewise.
3739         * mcore.c (mcore_expand_prolog): Likewise.
3740         * cppfiles.c (read_name_map): Likewise.
3741         * gensupport.c (process_rtx, identify_predicable_attribute,
3742         alter_test_for_insn): Likewise.
3743         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
3745 2002-07-29  Roger Sayle  <roger@eyesopen.com>
3747         * builtins.c (expand_builtin):  Change the default behavior to
3748         only issue an error if the builtin function doesn't have a
3749         fallback library call.  Remove several cases handled by the
3750         new default.
3752 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
3754         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
3755         floating point format of the target is IEEE.
3756         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
3757         format of the target is DEC.
3759 2002-07-29  Richard Henderson  <rth@redhat.com>
3761         * unroll.c (verify_addresses): Remove.
3762         (find_splittable_givs): Never split DEST_ADDR givs.
3764 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
3766         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
3767         is exhaustive.
3768         (Files): Improve documentation on generated source files.
3770         * doc/extend.texi (Translation implementation): Document what
3771         diagnostics look like.
3772         (Identifiers implementation): Document that there's normally no
3773         limit on identifier names.
3774         (Integers implementation): Document two's complement.
3775         (Hints implementation): Document that GCC honours 'inline', mostly.
3776         (Preprocessing directives implementation): Document that GCC
3777         requires the current time.
3779 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
3781         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
3782         (pp_initializer): New macro.
3783         (pp_c_initializer): Declare.
3784         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
3785         (pp_c_initializer): Define.
3786         (pp_c_initializer_list): New function.
3787         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
3788         VECTOR_CST, CONSTRUCTOR.
3789         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
3790         IMAGPART_EXPR.
3791         (pp_c_cast_expression): Handle FLOAT_EXPR.
3792         (pp_c_assignment_expression): Handle INIT_EXPR.
3793         (pp_c_expression): Update.
3795 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
3797         * objc/objc-act.c (objc_init): Return immediately if filename
3798         is NULL.
3800 2002-07-29  Eric Christopher  <echristo@redhat.com>
3802         * config/mips/elf.h: Remove ecoff.h and gofast includes.
3803         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
3804         (SDB_DEBUGGING_INFO): Undefine.
3805         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
3806         (PUT_SDB_SIZE): Remove.
3807         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
3808         (STARTFILE_SPEC): Add isa3264 define.
3809         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
3810         * config/mips/ecoff.h: Remove. and here...
3811         * config/mips/iris3.h: and here...
3812         * config/mips/sni-svr4.h: and here...
3813         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
3814         Add assembler -mmdebug options for non-dwarf debugging.
3815         * config/mips/r3900.h: Remove debug info defines.
3816         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
3817         * config/mips/isa3264.h: Ditto.
3818         * config/mips/t-isa3264: Fix up for file removal and gofast configure
3819         change.
3820         * config/mips/t-elf: Ditto.
3821         * config/mips/t-ecoff: Ditto.
3822         * config/mips/t-r3900: Ditto.
3823         * config/mips/t-iris5-6: Ditto.
3824         * config/mips/t-isa3264: Ditto.
3825         * config/mips/t-linux: Remove.
3826         * config/mips/t-netbsd: Remove.
3827         * config/mips/t-mips: New file.
3828         * config/mips/t-gofast: Ditto.
3829         * config/mips/netbsd.h: Remove unnecessary undefines.
3830         * config/mips/linux.h: Remove #include of mips.h.
3831         * config.gcc: Add mips.h include for elf targets. Remove tm_file
3832         for ecoff. Add gofast configure option for mips.
3834 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
3836         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
3837         linker scripts use STARTUP directives consistently.
3838         * configure: Regenerate.
3839         * config.in: Regenerate.
3840         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
3841         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
3842         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
3843         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
3844         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
3845         will be the same.
3847 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3849         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
3851 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3853         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
3855 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
3857         * config/rs6000/rs6000.md: Move altivec patterns from here...
3859         * config/rs6000/altivec.md: ...to here.
3861 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3863         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
3865 2002-07-29  Richard Henderson  <rth@redhat.com>
3867         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
3868         set_mem_attributes and add BITPOS argument.  Subtract it from
3869         OFFSET when same is adjusted.
3870         (set_mem_attributes): New wrapper function.
3871         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
3872         remove offset adjustment hack.
3873         * expr.h (set_mem_attributes_minus_bitpos): Declare.
3875 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
3877         * Makefile.in (C_OBJS): Include c-pretty-print.o
3878         (c-pretty-print.o): Add depency rule.
3879         * pretty-print.h: Add more macros.
3880         * c-pretty-print.c: New file.
3881         * c-pretty-print.h: Likewise.
3883 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
3885         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
3886         constants to __ev64_s32__.
3887         (__internal_ev_mwhgsmian): Same.
3888         (__internal_ev_mwhgsmfan): Same.
3889         (__internal_ev_mwhgssfan): Same.
3890         (__internal_ev_mwhgumiaa): Same.
3891         (__internal_ev_mwhgsmiaa): Same.
3892         (__internal_ev_mwhgsmfaa): Same.
3893         (__internal_ev_mwhgssfaa): Same.
3895 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
3897         * varasm.c (assemble_variable): Narrow test for uninitialized
3898         without BSS target support.
3900 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
3902         * profile.c: Add file comment describing the overall algorithm and
3903         structures.
3904         (struct edge_info): Add comments.
3905         (struct bb_info): Add comments.
3906         * basic-block.h (EDGE_*): Add comments.
3907         * doc/gcov.texi (Gcov Data Files): Document bit flags.
3909 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
3911         * config/xtensa/elf.h, config/xtensa/linux.h
3912         (TARGET_OS_CPP_BUILTINS): Define.
3913         (CPP_PREDEFINES): Remove.
3914         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
3915         (CPP_SPEC): Remove.
3917 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
3919         * gensupport.c: Include hashtab.h.
3920         (insn_elision, condition_table, hash_c_test, cmp_c_test,
3921         maybe_eval_c_test): New routines and data structures to
3922         support insn elision.
3923         (init_md_reader): Read and initialize the condition_table.
3924         (read_md_rtx): Discard insn patterns whose C test is provably
3925         always false.
3926         * gensupport.h: Declare new functions and data structures.
3928         * genconditions.c, dummy-conditions.c: New files.
3929         * Makefile.in: Build genconditions; run it to construct
3930         insn-conditions.c; build that and link it into most gen*
3931         programs.
3932         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
3933         (GEN): Delete, unused.
3934         (STAGESTUFF): Update.
3936         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
3937         CODE_FOR_nothing for all elided patterns.
3938         (main): Tweaked to support this.
3939         * genflags.c (gen_proto): Emit a static inline generator
3940         function here for all elided patterns, which simply returns
3941         NULL_RTX.
3942         (gen_insn): Do not define HAVE_xxx for elided patterns.
3943         (main): Tweaked to support this.  No need to forward-declare
3944         struct rtx_def.
3945         * genrecog.c: Do not bother emitting the C test if it's known
3946         to be true at compile time.
3948 2002-07-29  Mike Stump  <mrs@apple.com>
3950         * config.gcc (target_gtfiles): Initialize, as otherwise cross
3951         compilers hosted on powerpc-apple-darwin6.0 won't even build.
3953 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
3955         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
3956         remove clobber of LR.
3957         (sibcall_insn, sibcall_value_insn): Update accordingly.
3958         (sibcall_epilogue): Remove debugging comment from assembler stream.
3960 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
3962         * pretty-print.h: Define more macros.
3963         * diagnostic.h (output_formatted_integer): Moved from...
3964         * diagnostic.c: ... here.
3966 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3968         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
3970 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
3972         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
3973         arguments.  Always use ".-symbol" as expression argument.
3974         * doc/tm.texi: Update to match.  Document requirement for
3975         ".size symbol, .-symbol" to be acceptable to assembler.
3977         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
3978         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
3979         config/i386/freebsd-aout.h, config/i386/sco5.h,
3980         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
3981         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
3983 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3985         * Makefile.in (gengtype-lex.c): Fix error in last change.
3987         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
3988         backslash.
3990         * Makefile.in (vmsdbgout.o): Depend on function.h.
3992         * vmsdbgout.c: Include function.h.
3994 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
3996         * prefix.c (update_path): Don't strip single `.' path components
3997         unless stripping a later `..' component.  Exit loop as soon as
3998         a valid path is found.
4000 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4002         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
4003         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
4004         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
4005         floating point unordered comparisons (e.g. __builtin_isgreater)
4006         as const, and leave the remaining GCC_BUILTINs unchanged.
4008         * c-decl.c (builtin_function): No need to explicitly mark
4009         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
4011 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4013         * Makefile.in: rtlanal.o now depends upon real.h.
4015         * flags.h [flag_signaling_nans]: New flag.
4016         [HONOR_SNANS]: New macro.
4018         * toplev.c [flag_signaling_nans]: Initialize to false.
4019         (f_options): Add processing for "-fsignaling-nans".
4020         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
4021         (process_options): flag_signaling_nans implies flag_trapping_math.
4023         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
4024         when -fsignaling-nans.  First step to implementing WG14's N965.
4026         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
4027         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
4028         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
4030         * simplify-rtx.c (simplify_relational_operation): Conditionalize
4031         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
4033         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
4034         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
4035         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
4036         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
4037         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
4039         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
4041 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4043         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
4044         * gengtype-lex.l (YY_USE_PROTOS): Undef.
4045         (YY_DECL): Define.
4047 2002-07-27  Roger Sayle  <roger@eyesopen.com>
4049         * doc/invoke.texi: Document that both -fno-builtin-foo and
4050         -fno-builtin are supported by the g++ front-end.
4052 2002-07-27  Stan Shebs  <shebs@apple.com>
4054         * configure.in: Rename config_gtfiles to target_gtfiles.
4055         * configure: Regenerate.
4056         * doc/gty.texi: Update reference.
4057         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
4058         instead of appending to it.
4060 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
4062         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
4063         vectors are split into two registers.
4064         (function_arg): Same.
4066 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
4068         * pa.md (extv): Check predicates before emitting extv_32.
4070 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
4072         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
4073         (rs6000_traceback): New var.
4074         (rs6000_override_options): Set rs6000_traceback.
4075         (rs6000_output_function_epilogue): Implement traceback options.
4076         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
4077         (rs6000_traceback_name): Declare.
4079         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
4080         label reference when NO_PROFILE_COUNTERS.
4082 2002-07-26  Jason Merrill  <jason@redhat.com>
4084         * function.c (assign_parms): Handle frontend-directed pass by
4085         invisible reference.
4087 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4089         * doc/cppopts.texi: Update.
4091 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4093         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
4094         warnings on assertions.
4096 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
4098         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
4099         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
4100         RID_COMPL): Remove.
4101         * c-parse.in (rid_to_yy): Similarly.
4103 2002-07-26  Jason Merrill  <jason@redhat.com>
4105         * c-dump.c: Resurrect.
4106         * tree-dump.c: Move C-specific stuff to c-dump.c.
4107         * c-common.h: Declare c_dump_tree.
4108         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
4109         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
4110         (c-dump.o): New rule.
4112 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
4114         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
4115         PowerPC64.  Replace "T" and "S" constraints with "n" when the
4116         predicate will do.  Formatting fixes.
4117         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
4118         as for extzvsi_internal1.
4120 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4122         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
4123         DERIV_END_LABEL_FMT): Remove.
4124         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
4126 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4128         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
4129         Remove.
4131 2002-07-25  Stan Shebs  <shebs@apple.com>
4133         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
4134         local var dwarfp.
4135         (output_compiler_stub): Remove unused locals.
4136         (output_call): Always initialize line number.
4138 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4140         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
4141         * sh.md (truncdiqi2, movqi_media): Likewise.
4143 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4145         * gcse.c (obstack_chunk_alloc): Remove.
4146         (gcse_alloc): Fix to count allocated bytes.
4147         * collect2.c (SYMBOL__MAIN): Remove.
4149 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4151         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
4152         HAVE_TARGET_EXECUTABLE_SUFFIX.
4154 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4156         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
4157         SIZE, EXPR and OFFSET.
4159 2002-07-25  Richard Henderson  <rth@redhat.com>
4161         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
4162         in ARRAY_REF of DECL_P case.
4164 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4166         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
4167         description.  Document -mips32, -mips64, and the associated -march
4168         values.  Describe the "mipsN" arguments to -march.  Say that the
4169         -mipsN options are equivalent to -march.  Reword the description
4170         of default type sizes.
4171         * toplev.h (target_flags_explicit): Declare.
4172         * toplev.c (target_flags_explicit): New var.
4173         (set_target_switch): Update target_flags_explicit.
4174         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
4175         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
4176         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
4177         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
4178         * config/mips/mips.h (mips_cpu_info): New struct.
4179         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4180         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
4181         (MIPS_CPP_SET_PROCESSOR): New macro.
4182         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
4183         Define _MIPS_ARCH and _MIPS_TUNE.
4184         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
4185         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
4186         MIPS_ISA_DEFAULT were already defined.
4187         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
4188         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
4189         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
4190         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
4191         (ABI_GAS_ASM_SPEC): Remove.
4192         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
4193         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
4194         Invoke %(asm_abi_default_spec) if no ABI was specified.
4195         (CC1_SPEC): Remove ISA -> register-size rules.
4196         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
4197         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
4198         (mips_cpu_string, mips_explicit_type_size_string): Remove.
4199         (mips_cpu_info_table): New array.
4200         (mips_set_architecture, mips_set_tune): New fns.
4201         (override_options): Rework to make -mipsN equivalent to -march.
4202         Detect more erroneous cases, including those removed from CC1_SPEC.
4203         Don't change the ABI based on architecture, or vice versa.
4204         Unify logic with GAS.
4205         (mips_asm_file_start): Get architecture name from mips_arch_info.
4206         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
4207         (mips_parse_cpu): Take the name of the option as argument.  Handle
4208         'from-abi'.  Raise an error if the option is wrong.
4209         (mips_cpu_info_from_isa): New fn.
4211 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
4213         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
4214         (tablejump_mips162): Likewise.
4216 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
4218         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
4219         int_mode_for_mode.
4221 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
4223         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
4224         complaining.
4225         * c-common.h (c_sizeof): Adjust definition.
4226         (c_alignof): Likewise.
4227         * c-tree.h (c_sizeof_nowarn): Now macro.
4228         * c-typeck.c (c_sizeof_nowarn): Remove definition.
4230 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
4232         * c-decl.c (c_decode_option): No need to handle switches
4233         cpplib handles.
4235 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
4237         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
4238         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
4239         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
4240         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4242         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
4243         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
4244         config/cris/aout.h, config/i386/freebsd-aout.h,
4245         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
4246         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
4247         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
4248         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
4249         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
4250         config/xtensa/elf.h, config/xtensa/linux.h:
4251         Use the new macros.
4252         Where possible, remove redundant definitions of SIZE_ASM_OP,
4253         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
4255 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
4257         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
4258         TARGET_ISEL, and TARGET_FPRS.
4260         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
4261         -mabi=spe, -mabi=no-spe, and -misel=.
4263         * config/rs6000/rs6000-protos.h: Add output_isel.
4264         Move vrsave_operation prototype here.
4266         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
4267         (smaxsi3): Same.
4268         (uminsi3): Same.
4269         (umaxsi3): Same.
4270         (abssi2_nopower): Disallow when TARGET_ISEL.
4271         (*ne0): Same.
4272         (negsf2): Change to expand and rename old pattern to *negsf2.
4273         (abssf2): Change to expand and rename old pattern to *abssf2.
4275         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
4276         fixunssfsi2.
4278         Change patterns that check for TARGET_HARD_FLOAT or
4279         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
4281         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
4282         rs6000_isel, rs6000_fprs, rs6000_isel_string.
4283         (rs6000_override_options): Add 8540 case to
4284         processor_target_table.
4285         Set rs6000_isel for the 8540.
4286         Call rs6000_parse_isel_option.
4287         (enable_mask_for_builtins): New.
4288         (rs6000_parse_isel_option): New.
4289         (rs6000_parse_abi_options): Add spe and no-spe.
4290         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
4291         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
4292         for TARGET_HARD_FLOAT.
4293         Add case for SPE_VECTOR_MODE.
4294         (rs6000_legitimize_reload_address): Handle SPE vector modes.
4295         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
4296         vector modes.
4297         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
4298         (rs6000_emit_move): Check for TARGET_FPRS.
4299         Add cases for SPE vector modes.
4300         (function_arg_boundary): Return 64 for SPE vector modes.
4301         (function_arg_advance): Check for TARGET_FPRS and
4302         Handle SPE vectors.
4303         (function_arg): Same.
4304         (setup_incoming_varargs): Check for TARGET_FPRS.
4305         (rs6000_va_arg): Same.
4306         (struct builtin_description): Un-constify mask field.  Move up in
4307         file.
4308         (bdesc_2arg): Un-constify and add SPE builtins.
4309         (bdesc_1arg): Same.
4310         (bdesc_spe_predicates): New.
4311         (bdesc_spe_evsel): New.
4312         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
4313         (rs6000_expand_binop_builtin): Same.
4314         (bdesc_2arg_spe): New.
4315         (spe_expand_builtin): New.
4316         (spe_expand_predicate_builtin): New.
4317         (spe_expand_evsel_builtin): New.
4318         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
4319         (rs6000_init_builtins): Initialize SPE builtins.  Call
4320         rs6000_common_init_builtins.
4321         (altivec_init_builtins): Move all non-altivec builtin code to...
4322         (rs6000_common_init_builtins): ...here.  New function.
4323         (branch_positive_comparison_operator): Allow NE code for SPE.
4324         (ccr_bit): Return correct ccr bit for SPE fp.
4325         (print_operand): Emit crnor in 'D' case for SPE.
4326         New case 't'.
4327         Add SPE code for 'y' case.
4328         (rs6000_generate_compare): Generate rtl for SPE fp.
4329         (output_cbranch): Handle SPE hard floats.
4330         (rs6000_emit_cmove): Handle isel.
4331         (rs6000_emit_int_cmove): New.
4332         (output_isel): New.
4333         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
4334         64-bits for SPE.
4335         (debug_stack_info): Add SPE info.
4336         (gen_frame_mem_offset): New.
4337         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
4338         Change mode of frame pointer, when saving it, to Pmode.
4339         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
4340         Misc cleanups and use gen_frame_mem_offset when appropriate.
4342         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
4343         (TARGET_SPE_ABI): New.
4344         (TARGET_SPE): New.
4345         (TARGET_ISEL): New.
4346         (TARGET_FPRS): New.
4347         (FIXED_SCRATCH): New.
4348         (RTX_COSTS): Add PROCESSOR_PPC8540.
4349         (ASM_CPU_SPEC): Add case for 8540.
4350         (TARGET_OPTIONS): Add isel= case.
4351         (rs6000_spe_abi): New.
4352         (rs6000_isel): New.
4353         (rs6000_fprs): New.
4354         (rs6000_isel_string): New.
4355         (UNITS_PER_SPE_WORD): New.
4356         (LOCAL_ALIGNMENT): Adjust for SPE.
4357         (HARD_REGNO_MODE_OK): Same.
4358         (DATA_ALIGNMENT): Same.
4359         (MEMBER_TYPE_FORCES_BLK): New.
4360         (FIRST_PSEUDO_REGISTER): Set to 113.
4361         (FIXED_REGISTERS): Add SPE registers.
4362         (reg_class): Same.
4363         (REG_CLASS_NAMES): Same.
4364         (REG_CLASS_CONTENTS): Same.
4365         (REGNO_REG_CLASS): Same.
4366         (REGISTER_NAMES): Same.
4367         (DEBUG_REGISTER_NAMES): Same.
4368         (ADDITIONAL_REGISTER_NAMES): Same.
4369         (CALL_USED_REGISTERS): Same.
4370         (CALL_REALLY_USED_REGISTERS): Same.
4371         (SPE_ACC_REGNO): New.
4372         (SPEFSCR_REGNO): New.
4373         (SPE_SIMD_REGNO_P): New.
4374         (HARD_REGNO_NREGS): Adjust for SPE.
4375         (VECTOR_MODE_SUPPORTED_P): Same.
4376         (REGNO_REG_CLASS): Same.
4377         (FUNCTION_VALUE): Same.
4378         (LIBCALL_VALUE): Same.
4379         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
4380         (SPE_VECTOR_MODE): New.
4381         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
4382         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
4383         (rs6000_stack): Add spe_gp_size, spe_padding_size,
4384         spe_gp_save_offset.
4385         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
4386         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
4387         (SPE_CONST_OFFSET_OK): New.
4388         (rs6000_builtins): Add SPE builtins.
4390         * testsuite/gcc.dg/ppc-spe.c: New.
4392         * config/rs6000/eabispe.h: New.
4394         * config/rs6000/spe.h: New.
4396         * config/rs600/spe.md: New.
4398         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
4399         __SIMD__ for TARGET_SPE.
4401         * config.gcc: Add powerpc-*-eabispe* case.
4402         Add spe.h to user headers for powerpc.
4404 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
4406         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
4407         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4408         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
4410 2002-07-24  Richard Henderson  <rth@redhat.com>
4412         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
4413         form when not optimizing.
4415 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
4417         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
4418         thread_pointer_rtx as unchanging.
4420 2002-07-24  Michael Matz  <matz@suse.de>
4422         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
4423         (free_reg): Use it.
4425 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
4427         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
4428         pattern.
4429         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
4430         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
4432 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
4434         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
4435         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
4436         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
4438 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4440         * toplev.c (rest_of_compilation): Dump loops before clobbering
4441         the structure.
4443 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
4445         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
4447 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
4449         PR optimization/7291
4450         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
4451         problem on x86_64.
4453 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
4455         * pretty-print.h: Add macros from cp/error.c
4457 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
4459         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
4460         (mask64_2_operand): Declare.
4461         (build_mask64_2_operands): Declare.
4462         (and64_2_operand): Declare.
4463         (extract_MB): Declare.
4464         (extract_ME): Declare.
4465         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
4466         CONST_DOUBLE code.
4467         (mask_operand_wrap): New insn predicate.
4468         (mask64_2_operand): Likewise.
4469         (and64_2_operand): Likewise.
4470         (build_mask64_2_operands): New function.
4471         (extract_MB): New function.
4472         (extract_ME): New function.
4473         (print_operand <case m,M>): Use extract_MB and extract_ME.
4474         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
4475         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
4476         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
4477         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
4478         * config/rs6000/rs6000.md (andsi3_internal3): New
4479         (andsi3_internal3+1): Enable split for powerpc64.
4480         (andsi3_internal3+2): New split.
4481         (andsi3_internal4): Renamed old andsi3_internal3.
4482         (andsi3_internal5): New.
4483         (andsi3_internal5+1): Enable split for powerpc64.
4484         (andsi3_internal5+2): New split.
4485         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
4486         (anddi3): Handle 't' constraint.
4487         (anddi3+1): New split.
4488         (anddi3_internal2): Handle 't' constraint.
4489         (anddi3_internal2+1): New split.
4490         (anddi3_internal3): Handle 't' constraint.
4491         (anddi3_internal3+1): New split.
4493 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
4495         * config/rs6000/rs6000.md: Remove scratch reg on insns using
4496         addze and similar (plus (comparison r1 r2) r3) insns.  Add
4497         missing scratch reg in one case.  Formatting fixes.
4499 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
4501         * cppexp.c (parse_defined): Mark macro used.
4502         * cpphash.h (struct cpp_macro): New member "used".
4503         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
4504         (struct cpp_reader): New member.
4505         * cppinit.c (cpp_finish_options): Set first_unused_line.
4506         (cpp_finish): Warn of unused macros if requested.
4507         (OPT_TABLE): New switches.
4508         (cpp_handle_option): Handle them.
4509         * cpplib.c (do_undef): Warn if macro unused.
4510         (do_ifdef, do_ifndef): Mark macro used.
4511         * cpplib.h (struct cpp_options): New member.
4512         * cppmacro.c (_cpp_warn_if_unused_macro): New.
4513         (enter_macro_context): Mark macro used.
4514         (_cpp_create_definition): Mark macro unused; warn if unused
4515         when redefined.
4516         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
4517         Mark macros used.
4518         * doc/cppopts.texi: Update.
4520 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4522         * dwarf2out.c (SECTION_ASM_OP,
4523         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4524         * system.h (SECTION_ASM_OP): Poison.
4525         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
4526         * config/alpha/alpha-interix.h, config/mips/linux.h
4527         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4528         * config/mmix/mmix-protos.h, config/mmix/mmix.c
4529         (mmix_asm_output_define_label_difference_symbol): Remove.
4530         * config/mmix/mmix.h
4531         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
4532         * doc/tm.texi: Remove documentation.
4534 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
4536         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
4537         (constrain_operands): Likewise.
4538         * regclass.c (record_reg_classes): Likewise.
4539         * reload.c (find_reloads): Likewise.
4540         * doc/md.texi: Likewise.
4542         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
4543         * simplify-rtx.c (simplify_subreg): When converting to a non-int
4544         mode, try to convert to an integer mode of matching size first.
4546         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
4547         from individual subregs, check that each subreg has been generated
4548         sucessfully.
4550 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4552         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
4553         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
4554         FOR_EACH_BB_IN_SBITMAP): Remove.
4555         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
4556         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
4557         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
4558         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
4559         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
4560         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
4562 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4564         * pretty-print.h: New file.
4566 2002-07-23      Paul Koning     <pkoning@equallogic.com>
4568         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
4569         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
4570         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
4571         (TARGET_G_FLOAT): Default to 0 if not defined.
4572         (ieeetoe): New, common routine to convert target format floats
4573         to internal form.
4574         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
4575         vs. others.
4576         (e113toe): Change to use ieeetoe.
4578 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
4580         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
4581         IBM.
4582         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
4583         (e64toe): Remove special cases for DEC and IBM. Remove support for
4584         ARM_EXTENDED_IEEE_FORMAT.
4585         (e24toe): Remove special cases for DEC.
4586         (significand_size): Simplify. Indent.
4587         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
4588         (etoieee, toieee): New.
4589         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
4590         etoieee and toieee for IEEE arithmetic.
4592 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4594         * doc/extend.texi: Say ISO C90, not ISO C89.
4595         * doc/invoke.texi: Likewise.
4596         * doc/standards.texi: Likewise.
4598 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
4600         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
4601         Fix permutation of conversion and plus/mult.
4602         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
4603         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
4604         (expand_builtin_strncpy) Ditto.
4605         (expand_builtin_memset) Ditto.
4607 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
4609         Fix PR/7363:
4610         * c-common.c (c_sizeof_or_alignof_type): New function.
4611         (c_alignof): Remove definition.
4612         * c-common.h (c_sizeof, c_alignof): Define as macros.
4613         (c_sizeof_or_alignof_type): Declare.
4614         (my_friendly_assert): Moved from cp/cp-tree.h
4615         * c-typeck.c (c_sizeof): Remove definition.
4617 2002-07-23  Jan Hubicka  <jh@suse.cz>
4619         * gcse.c (try_replace_reg): Use num_changes_pending.
4620         * recog.c (num_changes_pending): New function.
4621         (validate_replace_src): Use validate_repalce_src_group.
4622         (validate_replace_src_group): New.
4623         * recog.h (validate_repalce_src_group): New.
4624         (num_changes_pending): Likewise.
4626 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
4628         * calls.c (emit_library_call_value_1): If
4629         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
4630         libcall, const call nor pure call.
4632 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4634         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
4636 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4638         * vmsdbgout.c (SECTION_ASM_OP): Remove.
4640 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4642         * config/i386/i386.c (AT_BP): Remove.
4644 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
4646         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
4647         Default definition.
4648         * gcse.c: Don't define obstack_chunk_free.
4649         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
4650         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
4651         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
4652         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
4653         Don't define obstack macros.
4655 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
4657         PR target/6744
4658         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
4659         ASM_OPERANDS instructions.
4661 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
4663         PR target/7361
4664         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
4665         constant addresses only on 68HC12.
4667 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
4669         * cppfiles.c (stack_include_file): Correct test of whether
4670         a dependency should be output.
4672 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
4674         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
4676 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
4678         * arm.md (movqi): If optimizing and we can create pseudos, use
4679         a ZERO_EXTEND to load from memory, then copy the result into the
4680         target.
4681         (movhi): Likewise, but only for ARMv4.
4683 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
4685         * ssa-ccp.c (PHI_PARMS): Remove.
4687 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
4689         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
4690         on big-endian targets.
4692 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4694         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
4695         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
4696         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
4697         New formatting macros.
4699         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
4701 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
4703         * rtlanal.c (subreg_regno_offset): Return correct offset for
4704         big endian paradoxical subregs.
4706         * optabs.c (expand_vector_unop): Don't expand using sub_optab
4707         if we got the wrong mode.
4709         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
4710         * genrecog.c (write_switch, write_cond): Use it.
4711         * genemit.c (gen_exp): Likewise.
4713 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
4715         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
4717 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
4719         * c-decl.c (build_compound_literal): Defer compound literal decls
4720         until until file end to emit them only if they are actually used.
4722 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4724         * ra-build.c (check_conflict_numbers): Hide unused function.
4725         (livethrough_conflicts_bb): Avoid automatic aggregate
4726         initialization.
4727         (parts_to_webs_1): Avoid `U' integer constant modifier.
4728         (conflicts_between_webs): Wrap a variable in the macro controlling
4729         its usage.
4730         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
4731         (dump_igraph, dump_graph_cost): Avoid string concatenation
4732         (dump_static_insn_cost): Avoid automatic aggregate
4733         initialization.
4734         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
4735         initialization.
4736         (dump_cost): Avoid string concatenation
4738 2002-07-21  Richard Henderson  <rth@redhat.com>
4740         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
4741         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
4743 2002-07-21  Richard Henderson  <rth@redhat.com>
4745         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
4746         that are not unrolled completely.
4748 2002-07-21  Richard Henderson  <rth@redhat.com>
4750         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
4751         * loop.c (strength_reduce): Update.
4752         * toplev.c (rest_of_compilation): Do unrolling in the first
4753         loop pass, not the second.
4755 2002-07-21  Richard Henderson  <rth@redhat.com>
4757         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
4758         when flag_argument_noalias == 2.
4759         * alias.c (nonoverlapping_memrefs_p): Handle that.
4760         * print-rtl.c (print_mem_expr): Likewise.
4762 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
4764         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
4765         instead of __negdi2 directly.
4767 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4769         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
4770         * function.c (SYMBOL__MAIN): Remove definition.
4771         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
4772         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
4773         * profile.c (GCOV_INDEX_TO_BB): Remove.
4774         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
4775         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
4777 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4779         * c-lex.c (GET_ENVIRONMENT): Remove.
4780         * collect2.c (GET_ENV_PATH_LIST): Remove.
4781         (prefix_from_env): Use GET_ENVIRONMENT.
4782         * cppinit.c (GET_ENV_PATH_LIST): Remove.
4783         (init_standard_includes): Use GET_ENVIRONMENT.
4784         * defaults.h (GET_ENVIRONMENT): Define here if not already.
4785         * gcc.c (GET_ENV_PATH_LIST): Remove.
4786         (make_relative_prefix, process_command): Update.
4787         * protoize.c (GET_ENV_PATH_LIST): Remove.
4788         (do_processing): Update.
4790 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
4792         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
4793         (grokdeclarator): Likewise.
4794         * c-format.c (C_STD_NAME): Likewise.
4795         * c-lex.c (interpret_integer): Likewise.
4796         * c-typeck.c (build_array_ref): Likewise.
4797         * cpplex.c (_cpp_lex_direct): Likewise.
4798         * toplev.c (documented_lang_options): Likewise.
4800 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4802         * c-format.c (T99_I, T99_UI): Remove.
4804 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
4806         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
4808 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4810         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
4811         do_local_cprop.
4813 2002-07-21  Andreas Jaeger  <aj@suse.de>
4815         * reload1.c (fixup_abnormal_edges): Remove unused variable.
4817 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
4819         Improvements for the ifcvt pass from Michael Meissner, with patches
4820         by Richard Sandiford <rsandifo@redhat.com>
4821         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
4822         * ifcvt.c (cond_exec_changed_p): New static variable.
4823         (last_active_insn): New function, renamed from last_active_insn_p
4824         and changed to return the last active insn in a basic block. All
4825         callers updated.
4826         (block_fallthru): New function.
4827         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
4828         IFCVT_MODIFY_INSN.  All callers updated.
4829         Return false if START or END are NULL.
4830         Handle case where we're processing an insn that is already
4831         conditional.
4833         (noce_process_if_block): CE_INFO argument rather than
4834         multiple args containing the involved basic blocks.  All callers
4835         changed.
4836         (process_if_block, merge_if_block, find_if_block,
4837         cond_exec_process_if_block): Likewise.
4839         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
4840         changed.
4841         Use new function last_active_insn to simplify some code.
4842         New code to handle multiple tests.
4843         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
4844         cond_exec_changed_p to TRUE.
4846         (process_if_block): New code to handle multiple tests.
4847         (merge_if_block): Likewise.
4848         (find_if_header): New arg PASS.  Changed to return the currently
4849         processed basic block or NULL instead of true/false. All callers
4850         changed.
4851         Call IFCVT_INIT_EXTRA_FIELDS.
4852         (block_jumps_and_fallthru_p): New function.
4853         (find_if_block): Discover opportunities to convert multiple tests.
4854         Add additional debugging output.
4855         Update the ce_info structure before returning.
4857         (if_convert): Run multiple passes of if-conversion.
4858         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
4859         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
4860         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
4861         these macros.
4863 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4865         * gcse.c: Include cselib.h
4866         (constptop_register): Break out from ...
4867         (cprop_insn): ... here; kill basic_block argument.
4868         (do_local_cprop, local_cprop_pass): New functions.
4869         (one_cprop_pass): Call local_cprop_pass.
4871 2002-07-20  Roger Sayle  <roger@eyesopen.com>
4873         * simplify-rtx.c (simplify_relational_operation): Optimize
4874         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
4876 2002-07-20  Michae Matz  <matz@suse.de>
4878         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
4880 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
4882         * cppexp.c (struct op): Add token pointer.
4883         (check_promotion, CHECK_PROMOTION): New.
4884         (optab): Update.
4885         (_cpp_parse_expr): Update, use token pointer of struct op.
4886         (reduce): Warn about change of sign owing to promotion.
4887         * cppinit.c (cpp_handle_option): New warning if -Wall.
4888         * cpplib.h (struct cpp_options): New member.
4890 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
4892         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
4893         fpu list.  Separate Power4 compare and delayed_compare.  Correct
4894         Power4 fpcompare.
4895         (fix_truncdfsi2_internal): Restore FPR preference.
4896         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
4897         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
4899 2002-07-19  Momchil Velikov <velco@fadata.bg>
4901         * reload1.c (reload_as_needed): Duplicate oldpat.
4903 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
4905         PR optimization/7130
4906         * loop.h (struct loop_info): Add "preconditioned".
4907         * unroll.c (unroll_loop): Set it.
4908         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
4910 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
4912         * rtl.def (CODE_LABEL): Remove slot 8.
4913         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
4914         (LABEL_ALTERNATE_NAME): Delete.
4915         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
4916         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
4918         * final.c (output_alternate_entry_point): New.
4919         (final_scan_insn): Use it instead of
4920         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
4921         of a case label being an alternate entry point.
4923         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
4924         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
4925         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
4926         (field deleted).
4927         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
4929         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
4930         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
4931         * doc/tm.texi: Delete documentation of
4932         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
4934 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4936         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
4937         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
4938         (LINK_SPEC): Define.
4939         (STARTFILE_SPEC): Define.
4940         (ENDFILE_SPEC): Define.
4942         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
4943         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
4945         * config/mips/iris6-o32-gas.h: New file.
4946         * config.gcc (mips-sgi-irix6*o32): Use it.
4948         * config/mips/t-iris5-gas: New file.
4949         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
4951 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
4953         * cppexp.c (ALWAYS_EVAL): Remove.
4954         (optab, reduce): Always evaluate.
4955         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
4956         only if not skipping evaluation.
4958 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4960         * config/avr/avr.c (debug_hard_reg_set): Remove.
4962 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
4964         * gcc.c (cpp_options): Include "%1" (cc1_spec).
4966 2002-07-19  Richard Henderson  <rth@redhat.com>
4968         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
4970 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
4972         * prefix.c (update_path): Don't zap single `.' path components
4973         unless followed by another `.' and fix typo last patch.
4975 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
4977         * cppexp.c (cpp_num_mul): Remove unused parameter.
4978         (UNARY, BINARY, OTHER, binary_handler): Remove.
4979         (ALWAYS_EVAL): New.
4980         (optab): Update.
4981         (reduce): Refactor to a large switch, don't use a function
4982         pointer.
4984 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
4986         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
4988 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
4990         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
4991         (sh_expand_binop_v2sf): Likewise.
4992         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
4993         (int_gpr_dest, trunc_hi_operand): New functions.
4994         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
4995         trunc_hi_operand.
4996         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
4997         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
4998         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
4999         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
5000         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
5001         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
5002         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
5003         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
5004         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
5005         (movsf_ie+1): Likewise.
5006         (loaddi_trunc): Use int_gpr_dest predicate.
5007         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
5008         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
5009         (casesi_worker_0+[12], casesi_worker): Likewise.
5010         (shcompact_preserve_incoming_args): Likewise.
5011         (mov_nop): Use any_register_operand predicate.
5012         (mperm_w0): Use trunc_hi_operand predicate.
5014 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5016         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
5017         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
5018         numbering.
5020 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5022         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
5024 2002-07-18  Richard Henderson  <rth@redhat.com>
5026         PR optimization/7147
5027         * ifcvt.c (noce_get_condition): Make certain that the condition
5028         is valid at JUMP.
5030 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
5032         * sh.c (barrier_align, push): Shut up compiler warnings.
5033         (initial_elimination_offset,sh_media_init_builtins): Likewise.
5034         (reg_no_subreg_operand): Delete.
5036 2002-07-17  Bo Thorsen  <bo@suse.de>
5038         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
5039         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
5040         (STARTFILE_SPEC): Remove hardcoded library paths.
5041         (ENDFILE_SPEC): Likewise.
5043 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
5045         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
5047         * gcse.c (try_replace_reg): Do not return false positives.
5049 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5051         * prefix.c: (update_path): Strip ".." components when prior dir
5052         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
5054         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
5055         (ASM_OUTPUT_REG_POP): Likewise.
5057 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
5059         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
5060         adjustments to first_reg for profiling case.
5061         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
5062         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
5063         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
5064         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
5065         (ASM_OUTPUT_REG_POP): Define.
5066         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
5067         (ASM_OUTPUT_REG_POP): Undef.
5069 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5071         * cpplib.c (do_sccs): Handle #sccs on all systems.
5072         * system.h (SCCS_DIRECTIVE): Poison.
5073         * config/darwin.h, config/freebsd.h, config/netbsd.h,
5074         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
5075         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
5076         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
5077         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
5078         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
5079         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
5080         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
5081         Remove all references to SCCS_DIRECTIVE.
5082         * doc/cpp.texi, doc/tm.texi: Update.
5084 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
5086         * regrename.c (maybe_mode_change): New function.
5087         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
5089 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
5091         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
5092         suppress addition when either ct or cf are zero.
5094 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
5095             Glen Nakamura <glen@imodulo.com>
5097         PR optimization/6713
5098         * loop.c (loop_givs_rescan): Explicitly delete the insn that
5099         sets a non-replaceable giv after issuing the new one.
5101 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
5103         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
5104         eval_token): Clarify and correct use of "bool" variables.
5105         * cpplib.h (struct cpp_options): Similarly.
5106         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
5107         * cpptrad.c (recursive_macro): Similarly.
5109 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
5111         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
5112         SHmedia code.
5114         * sh.md (cmpgtudi_media): Remove spurious @.
5116         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
5117         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
5119         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
5120         * sh-protos.h (sh_initialize_trampoline): Declare.
5121         * sh.c (sh_initialize_trampoline): New function.
5122         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
5123         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
5124         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
5125         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
5126         * sh.md (initialize_trampoline, double_shori): New patterns.
5127         (initialize_trampoline_compact): Likewise.
5128         (shmedia32_initialize_trampoline_big): Remove.
5129         (shmedia32_initialize_trampoline_little): Likewise.
5131         * sh-protos.h (binary_float_operator): Remove declaration.
5132         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
5133         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
5134         (unary_float_operator, sh_expand_unop_v2sf): New functions.
5135         (sh_expand_binop_v2sf): Likewise.
5136         (zero_vec_operand): Delete.
5137         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
5138         all non-shared ones.
5139         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
5140         Enable nsb and byterev.
5141         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
5142         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
5143         in general regs.
5144         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
5145         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
5146         immediate operands.
5147         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
5148         Add DF_HI_REGS.
5149         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
5150         lowpart fp regs - only for big endian for now.
5151         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
5152         when FPU is in use.
5153         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
5154         (LOAD_EXTEND_OP): NIL for SImode.
5155         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
5156         general and fp registers is 4.
5157         PREDICATE_CODES: Amend binary_float_operator entry.
5158         Remove zero_vec_operand.  Add unary_float_operator.
5159         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
5160         subreg SET_DEST.
5161         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
5162         (truncdiqi2): Do sign extension.
5163         (movsi_media, movdi_media): Allow to use r63 to an fp register.
5164         (movdf_media, movsf_media): Likewise.
5165         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
5166         Collapse to one define_insn_and_split.  Allow immediate sources.
5167         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
5168         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
5169         (movv4sf): Allow immediate sources.
5170         (movsf_media_nofpu+1): Don't split moves to FP registers.
5171         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
5172         (movv8qi_i+3): Check against CONST0_RTX.
5173         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
5174         for input and output operands.  Fix argument 3 to gen_mextr_rl.
5175         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
5176         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
5177         (mshf0_w, fipr, ftrv): Likewise.
5178         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
5180 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
5182         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
5183         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
5184         * arm.c: Similarly.
5186 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
5188         * config/mips/mips-protos.h (mips_sign_extend): Declare.
5189         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
5190         (TARGET_SWITCHES): Remove debugh.
5191         (ISA_HAS_TRUNC_W): New macro.
5192         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
5193         (PREDICATE_CODES): Remove se_nonimmediate_operand.
5194         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
5195         any SImode move_operand.
5196         (se_nonimmediate_operand): Remove.
5197         (mips_sign_extend): New.
5198         (mips_move_2words): Use it for sign-extended source operands.
5199         (override_options): Allow integers to be put into single FPRs.
5200         (mips_secondary_reload_class): Handle integers in float registers.
5201         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
5202         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
5203         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
5204         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
5205         (fix_truncdfdi2): Provide only a single alternative, in which the
5206         integer is in a float register.  Depend on TARGET_FLOAT64 rather
5207         than TARGET_64BIT.
5208         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
5209         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
5210         (movdi_internal2): Don't allow the source operand to be sign-extended.
5211         Add alternatives for float registers.
5212         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
5213         allows sign-extension.
5214         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
5215         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
5216         float registers.  Remove TARGET_DEBUG_H_MODE test.
5217         (movhi_internal1): Rename to movhi_internal.  Don't check
5218         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
5219         (movqi_internal1): Rename to movqi_internal and remove
5220         TARGET_DEBUG_H_MODE dependency.
5221         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
5223 2002-07-16  Jim Wilson  <wilson@redhat.com>
5225         * toplev.c (lang_dependent_init): Create function context for
5226         init_expr_once.
5228 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
5230         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
5231         --gc-sections if -r.
5232         * config/cris/cris.h: Ditto.
5234 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
5236         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
5237         the comparison directly gives a mask suppress addition when cf is
5238         zero by complementing the mask.
5240 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
5242         * Makefile.in: Delete references to enquire.
5243         * enquire.c: Move to contrib.
5245 2002-07-16  Stan Shebs  <shebs@apple.com>
5247         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
5248         config/rs6000/darwin.h.
5249         (ASM_OUTPUT_SKIP): Ditto.
5250         (TEXT_SECTION_ASM_OP): Ditto.
5251         (DATA_SECTION_ASM_OP): Ditto.
5252         (ASM_APP_ON): Define.
5253         (ASM_APP_OFF): Define.
5254         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
5255         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
5257         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
5258         (machopic_function_base_name): Declare result to be const.
5259         (machopic_non_lazy_ptr_name): Ditto.
5260         (machopic_stub_name): Ditto.
5261         * config/darwin-protos.h: Ditto for the prototypes.
5263 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
5265         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
5267 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
5269         * i386.md (prefetch): Fix for 64bit mode.
5270         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5272 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
5274         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
5275         * i386.c (x86_machine_dependent_reorg): New function.
5276         * i386-protos.h (x86_machine_dependent_reorg): Declare.
5278 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
5280         * builtins.c (std_expand_builtin_va_start): Remove unused
5281         first argument.
5282         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
5283         std_expand_builtin_va_start with just two arguments.
5284         * expr.h: Update prototypes.
5286         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
5287         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
5288         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
5289         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
5290         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
5291         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
5292         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
5293         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
5294         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
5295         argument from all implementations of EXPAND_BUILTIN_VA_START
5296         and all uses of std_expand_builtin_va_start.
5298 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
5300         * regrename.c (copy_value): Don't record high part copies.
5302 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
5304         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
5305         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
5306         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
5308 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
5310         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
5312         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
5313         into addsi3 using register class "x" and "y".
5315         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
5316         "earlyclobber" constraint modifier for some alternative.
5318         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
5319         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
5320         unordered.
5321         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
5323         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
5324         (TARGET_SWITCHES): Add -mieee-compare option.
5325         (OVERRIDE_OPTIONS): 32332 is a subset of
5326         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
5327         (TARGET_SWITCHES): Fix description of bitfield option.
5328         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
5329         -mieee-compare option. Remove 32332 flag.
5331 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
5333         * explow.c (convert_memory_address): Remove special handling
5334         when POINTERS_EXTEND_UNSIGNED < 0.
5335         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
5336         (movedi_symbolic): Fix typo.
5337         (load_fptr): Remove mode restriction so it works for SI and DI.
5338         (load_fptr_internal1): Ditto.
5339         (load_gprel): Ditto.
5340         (load_symptr_internal1): Ditto.
5341         (call_pic): Ditto.
5342         * config/ia64.c (call_operand): Modify mode check.
5343         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
5344         (ia64_expand_move): Ditto.
5345         (ia64_assemble_integer): Handle SImode function pointers.
5346         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
5347         (ia64_expand_op_and_fetch): Ditto.
5348         (ia64_expand_compare_and_swap): Ditto.
5349         (ia64_expand_lock_test_and_set): Ditto.
5350         (ia64_expand_lock_release): Ditto.
5352 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5354         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
5356 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
5357             Richard Earnshaw  <rearnsha@arm.com>
5359         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
5360         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
5362 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
5364         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
5365         understands to be a memory clobber.
5366         * arm.c (arm_expand_prologue): Use it.
5368 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
5370         * ra-rewrite.c: #include reload.h, insn-config.h
5371         * ra-build.c: #include reload.h
5372         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
5373         depend on reload.h, insn-config.h.
5375 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
5377         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
5378         the same size as a word.
5380         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
5381         BYTES_BIG_ENDIAN into account.
5383 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
5385         * i386.md (prefetch): Fix for 64bit mode.
5386         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
5388         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
5390 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5392         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
5394 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
5396         * ginclude/varargs.h: Replace with stub which issues #error.
5397         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
5398         __builtin_va_start.
5400         * builtins.def (BUILT_IN_VARARGS_START): Delete.
5401         (BUILT_IN_VA_START): New.
5402         * builtins.c (expand_builtin_va_start): Eliminate first
5403         argument and code to implement pre-ISO varargs.
5404         (std_expand_builtin_va_start): Ignore first argument; it is
5405         always 1.
5406         (expand_builtin): Handle BUILT_IN_VA_START and
5407         BUILT_IN_STDARG_START identically.  Delete
5408         BUILT_IN_VARARGS_START case.
5410         * function.c (assign_parms): Delete hide_last_arg and all
5411         its uses.
5412         (mark_varargs): Delete function.
5413         * function.h (struct function): Delete 'varargs' bit.
5414         (current_function_varargs): Delete macro.
5415         * tree.h: Don't declare mark_varargs.
5417         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
5418         (c_expand_body): Don't call mark_varargs.
5419         * c-objc-common.c: Handle BUILT_IN_VA_START and
5420         BUILT_IN_STDARG_START identically.  Delete
5421         BUILT_IN_VARARGS_START case.
5422         * c-tree.h: Don't declare c_mark_varargs.
5423         * c-parse.in: Remove grammar rules for '&...' (which has been
5424         commented out since before 2.7.2) and for '...' in K+R
5425         argument declarations.
5427         * builtins.c, function.c, integrate.c, sibcall.c,
5428         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
5429         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
5430         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
5431         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
5432         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
5433         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
5434         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
5435         config/stormy16/stormy16.c: Delete all references to
5436         current_function_varargs, and code predicated on that flag.
5438         * config/alpha/alpha.c (alpha_va_start),
5439         config/arc/arc.c (arc_va_start),
5440         config/i386/i386.c (ix86_va_start),
5441         config/mips/mips.c (mips_va_start),
5442         config/mn10300/mn10300.c (mn10300_va_start),
5443         config/rs6000/rs6000.c (rs6000_va_start),
5444         config/s390/s390.c (s390_va_start),
5445         config/sh/sh.c (sh_va_start),
5446         Ignore first argument; it is always 1.
5448         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
5449         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
5450         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
5451         Delete m68hc11_va_start.
5452         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
5453         No need to define EXPAND_BUILTIN_VA_START.
5455         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
5456         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
5458 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
5460         PR optimization/7153
5461         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
5462         dies in more than one insn.
5464 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
5466         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
5468 2002-07-15  Michael Matz  <matz@suse.de>,
5469             Daniel Berlin  <dberlin@dberlin.org>,
5470             Denis Chertykov  <denisc@overta.ru>
5472         Add a new register allocator.
5474         * ra.c: New file.
5475         * ra.h: New file.
5476         * ra-build.c: New file.
5477         * ra-colorize.c: New file.
5478         * ra-debug.c: New file.
5479         * ra-rewrite.c: New file.
5481         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
5482         (ra-rewrite.o): New .o files for libbackend.a.
5483         (GTFILES): Add basic-block.h.
5485         * toplev.c (flag_new_regalloc): New.
5486         (f_options): New option "new-ra".
5487         (rest_of_compilation): Call initialize_uninitialized_subregs()
5488         only for the old allocator.  If flag_new_regalloc is set, call
5489         new allocator, instead of local_alloc(), global_alloc() and
5490         friends.
5492         * doc/invoke.texi: Document -fnew-ra.
5493         * basic-block.h (FOR_ALL_BB): New.
5494         * config/rs6000/rs6000.c (print_operand): Write small constants
5495         as @l+80.
5497         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
5498         (df_reg_table_realloc): Make size at least as large as max_reg_num().
5499         (df_insn_table_realloc): Size argument now is absolute, not relative.
5500         Changed all callers.
5502         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
5503         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
5505         2002-06-20  Michael Matz  <matz@suse.de>
5507         * df.h (struct ref.id): Make unsigned.
5508         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
5510         2002-06-13  Michael Matz  <matz@suse.de>
5512         * df.h (DF_REF_MODE_CHANGE): New flag.
5513         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
5514         involving subregs with invalid mode changes, when
5515         CLASS_CANNOT_CHANGE_MODE is defined.
5517         2002-05-07  Michael Matz  <matz@suse.de>
5519         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
5521         2002-05-03  Michael Matz  <matz@suse.de>
5523         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
5525         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
5527         * regclass.c (regclass): Work with all regs which have sets or
5528         refs.
5529         (reg_scan_mark_refs): Count regs inside (clobber ...).
5531         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
5533         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
5534         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
5535         add new refs.
5536         (df_bb_refs_update): Don't clear insns_modified here, ...
5537         (df_analyse): ... but here.
5539         * sbitmap.c (dump_sbitmap_file): New.
5540         (debug_sbitmap): Use it.
5542         * sbitmap.h (dump_sbitmap_file): Add prototype.
5544         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
5546         * df.c (df_insn_modify): Grow the UID table if necessary, rather
5547         than assume all emits go through df_insns_modify.
5549         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
5551         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
5552         increase REG_N_REFS (like flow does), so that regclass doesn't
5553         think a reg is useless, and thus, not calculate a class, when it
5554         really should have.
5556         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
5558         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
5559         dataflow analysis.
5561 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
5563         PR middle-end/7245
5564         * config/i386/i386.c (const_int_1_31_operand): New.
5565         * config/i386/i386.h (PREDICATE_CODES): Add it.
5566         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
5567         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
5568         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
5570 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
5572         PR target/7282
5573         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
5574         (floatunssidf2): Likewise.
5575         (floatsidf_ppc64): New insn_and_split.
5576         (floatunssidf_ppc64): Likewise.
5578 2002-07-14  Andreas Jaeger  <aj@suse.de>
5580         * config.gcc (sh64): Remove unused
5581         target_requires_64bit_host_wide_int.
5583 2002-07-12  Roger Sayle  <roger@eyesopen.com>
5585         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
5586         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
5587         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
5588         whether clear_by_pieces should be used to clear storage.
5589         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
5591         * doc/tm.texi: Document these two new target macros.
5593 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
5595         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
5596         the scratch register.
5597         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
5598         of it, forbid reload to use it.
5600 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5602         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
5603         usage on 64-bit hosts, return value was truncated to 32 bits.
5605 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
5607         * simplify-rtx.c (simplify_subreg): Handle floating point
5608         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
5609         the element mode is requested, compute a subreg with an
5610         integer mode of the same size as the element mode first.
5612 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5614         * combine.c (try_combine): When converting a paradoxical subreg
5615         to an extension, take LOAD_EXTEND_OP into account.
5617 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5619         * config.gcc (mips-sgi-irix6*o32): New configuration.
5621         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
5622         configurations.
5623         * configure: Regenerate.
5625         * config/mips/iris6-o32-as.h: New file.
5626         * config/mips/iris6-o32.h: New file.
5628         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
5629         (NM_FLAGS): Define.
5630         (HAVE_AS_SHF_MERGE): Undefine.
5632         * config/mips/t-iris5-as: New file.
5633         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
5635         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
5636         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
5637         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
5638         dp-bit.c, fp-bit.c): Move ...
5639         * config/mips/t-iris5-6: ... here.
5640         New file, shared by IRIX 5 and IRIX 6.
5641         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
5642         mips-sgi-irix5*): Use it.
5644         * config/mips/iris6.h: Remove duplicate comment.
5646         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
5647         !TARGET_IRIX6]: Define.
5648         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
5650         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
5652 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5654         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
5655         and delete code to force constant to register.
5656         * pa-protos.h (adddi3_operand): Add prototype.
5657         * pa.c (adddi3_operand): New function.
5659 2002-07-11  Roger Sayle  <roger@eyesopen.com>
5661         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
5662         non-ANSI builtin functions.
5664 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
5666         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
5667         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
5668         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
5669         (gen_const_vector_0): Use it.
5671 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5673         * pa.md (adddi3): For 32-bit targets, force constants to a register
5674         if they don't fit in an 11-bit immediate.  Change insn predicate to
5675         arith11_operand.  Remove comment.
5676         * pa.c (cint_ok_for_move): Fix comment.
5677         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
5678         targets.
5680 2002-07-11  Tim Josling  <tej@melbpc.org.au>
5682         Remove front end hard coding from gengtype.c.
5684         * Makefile.in
5685         (STAGESTUFF): add gtyp-gen.h
5686         (GTFILES): Remove front end specific files.
5687         (GTFILES_FILES_LANGS): New, from configure..
5688         (GTFILES_FILES_FILES): Likewise.
5689         (GTFILES_LANG_DIR_NAMES): Likewise.
5690         (GTFILES_SRCDIR): Likewise.
5691         (gtyp-gen.h): Build from configure information.
5692         (s-gtype): Remove command line parameters from gengtype.
5693         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
5694         (mostlyclean): Delete files generated by and for gengtype.
5696         * c-config-lang.in: New file.
5698         * configure.in (all_gtfiles_files_langs): New. Accumulate files
5699         for each language.
5700         (all_gtfiles_files_files): New. Accumulate language for each file
5701         accumulated.
5702         (gtfiles): Pick up value for C.
5703         (srcdir): AC-SUBST this variable.
5704         (all_gtfiles_files_langs): AC-SUBST this variable.
5705         (all_gtfiles_files_files): AC-SUBST this variable.
5707         * configure: Regenerate.
5709         * gengtype-lex.l (parse_file): Make parameter const.
5711         * gengtype.c (toplevel): include gtyp-gen.h.
5712         (BASE_FILE_<language> unnamed enum): Delete.
5713         (lang_names): Delete (replaced by gtyp-gen.h)
5714         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
5715         all references.
5716         (NUM_GT_FILES): New.
5717         (NUM_LANG_FILES): New.
5718         (srcdir_len): New.
5719         (NUM_BASE_FILES): Change calculation.
5720         (open_base_files): Change prototype to avoid warning.
5721         (startswith): Delete.
5722         (get_file_basename): Iterate through generated language list not
5723         hard coded list.
5724         (get_base_file_bitmap): Use generated list of files and languages.
5725         (close_output_files): Add prototype to rmove warning.
5726         (main): Iterate through list of generated files from gtyp-gen.h
5727         rather than command line paramaters.  Ignore duplicated file
5728         names.
5730         * gengtype.h (parse_file): Amend prototype for const parameter.
5732         * doc/sourcebuild.texi: Document gtfiles variable.
5734         * doc/gty.texi: Document changes to gtfiles variable for front
5735         ends.
5737         * objc/config-lang.in (gtfiles): Add files needed for objc front
5738         end.
5740 2002-07-10  Roger Sayle  <roger@eyesopen.com>
5742         PR c/2454
5743         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
5744         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
5746 2002-07-10  Roger Sayle  <roger@eyesopen.com>
5747             Zack Weinberg <zack@codesourcery.com>
5749         * builtins.def: Make the argument types of abort and exit
5750         independent of the front-end.
5752 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
5754         * config/rs6000/linux64.h (ASM_SPEC): Define.
5756 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
5758         * config/rs6000/rs6000.c (emit_frame_save): New.
5759         (rs6000_frame_related): Replace reg2 before reg.
5760         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
5761         and eh_return registers.
5763 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
5765         Revert all patches for optimization of Complex .op. Real.
5766         * complex_part_zero_p: Remove
5767         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
5768         with x.
5769         * expand_cmplxdiv_wide: Ditto.
5770         * expand_binop: Ditto.
5772 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
5774         * config/avr/avr.md: Fix two 0x80000000 constants to make them
5775         negative also on 64-bit hosts.
5777         Default to -fno-reorder-blocks when optimizing for size.
5778         * config/avr/avr-protos.h (avr_optimization_options): Declare.
5779         * config/avr/avr.c (avr_optimization_options): New function.
5780         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
5782         Optimize returning from simple functions.
5783         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
5784         * config/avr/avr.c (avr_simple_epilogue): New function.
5785         * config/avr/avr.md (return): New insn.
5787 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
5789         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
5790         HAS_INIT_SECTION to protection.
5792 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
5794         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
5795         deprecated.
5797 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
5799         * combine.c (gen_lowpart_for_combine): Handle vector modes.
5800         Supply non-VOID mode to simplify_gen_subreg.
5802 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
5804         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
5806 2002-07-10  Jeffrey A Law  <law@redhat.com>
5808         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
5809         as appropriate.
5811         * mn10200.c (expand_epilogue): Fix test to determine which scratch
5812         register to use.
5814 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
5816         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
5817         Get mode from dest.
5818         If simplify_gen_subreg fails, try next equivalent.
5820 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
5822         * diagnostic.h: #include location.h
5823         (location_t): Move definition to..
5824         * location.h: ... here.  New file.
5825         * tree.h: #include location.h
5826         (DECL_SOURCE_LOCATION): New macro.
5827         (DECL_SOURCE_FILE): Use.
5828         (DECL_SOURCE_LINE): Likewise.
5829         (struct tree_decl): REplace filename and linenum with locus.
5830         * Makefile.in (TREE_H): add location.h
5831         (diagnostic.o): Depends on gt-location.h
5832         (gt-location.h): Depends on s-gtype
5834 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
5836         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
5837         TARGET_OS_CPP_BUILTINS.
5838         * config/rs6000/aix31.h: Likewise.
5839         * config/rs6000/aix41.h: Likewise.
5840         * config/rs6000/aix43.h: Likewise.
5841         * config/rs6000/aix51.h: Likewise.
5842         * config/rs6000/beos.h: Likewise.
5843         * config/rs6000/darwin.h: Likewise.
5844         * config/rs6000/eabi.h: Likewise.
5845         * config/rs6000/eabisim.h: Likewise.
5846         * config/rs6000/linux.h: Likewise.
5847         * config/rs6000/linux64.h: Likewise.
5848         * config/rs6000/lynx.h: Likewise.
5849         * config/rs6000/mach.h: Likewise.
5850         * config/rs6000/rtems.h: Likewise.
5851         * config/rs6000/sysv4.h: Likewise.
5852         * config/rs6000/vxppc.h: Likewise.
5854 2002-07-09 Devang Patel <dpatel@apple.com>
5855         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
5856         Do not allow ObjC objects as a parameter type for Objective-C methods.
5857         My previous patch restricted  'struct' also.
5859 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
5861         * cpperror.c (cpp_error): Default to directive_line within
5862         directives here.
5863         * cppexp.c (cpp_interpret_integer): Only use traditional
5864         number semantics in directives.
5865         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
5866         (do_include_common): Similarly.
5867         * cpptrad.c (scan_out_logical_line): Implement accurate
5868         quoting of <> in #include.
5869         * doc/cpp.texi: Update.
5871 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
5872                           J"orn Rennecke <joern.rennecke@superh.com>
5874         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
5875         * sh.md (attribute issues): Replace with:
5876         (attribute pipe_model).  All users changed.
5877         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
5878         All users changed.
5879         (function units sh5issue, sh5fds): New.
5880         (attribute is_mac_media): New.
5881         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
5882         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
5883         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
5884         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
5885         (call_media, call_value_media, sibcall_media): Likewise.
5886         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
5887         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
5888         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
5889         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
5890         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
5891         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
5892         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
5893         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
5894         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
5895         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
5896         (truncdfsf2_media): Likewise.
5897         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
5898         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
5900 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
5902         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
5903         * sh.c (general_extend_operand, inqhi_operand): New functions.
5904         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
5905         alternatives using 'N' modifier.  Add type.
5906         (adddi3z_media): Likewise.  Enable generator function generation.
5907         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
5908         exact predicates / constraints.  Add type.
5909         (subsi3): Allow 0 for SHMEDIA.
5910         (udivsi3_i4_media): Use match_operand for input values
5911         rather than hard registers.
5912         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5913         unnecessarily through hard registers.  Keep copies of pseudo
5914         registers outside of the libcall sequence.
5915         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
5916         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
5917         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
5918         (extendhidi2, extendqidi2): Likewise.
5919         (andsi3_compact): Name.
5920         (andcdi3): Enable generator function generation.
5921         (zero_extendhisi2, zero_extendqisi2): Rename to
5922         (zero_extendhisi2_compact, zero_extendqisi2_compact).
5923         (extendhisi2, extendqisi2): Rename to
5924         (extendhisi2_compact, extendqisi2_compact).
5925         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
5926         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
5927         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
5928         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
5929         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
5930         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
5931         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
5932         (shmedia32_initialize_trampoline_big): Likewise.
5933         (shmedia32_initialize_trampoline_little): Likewise.
5934         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
5935         (negdi2): Remove spurious T clobber.
5936         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
5937         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
5938         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
5939         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
5940         (ic_invalidate_line_media): Write back data cache before invalidating
5941         instruction cache.  Add type.
5942         (movsf_media): Sign-extend when the destination is a general
5943         purpose register.  Add type.
5944         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
5945         (casesi_worker_0+1): Only increment ref count for proper label.
5946         (casesi_worker_0+2): Likewise.
5948 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
5950         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
5952 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
5954         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
5955         from Pmode to ptr_mode.
5956         (get_exception_pointer): Ditto.
5957         (connect_post_landing_pads): Ditto.
5958         (dw2_build_landing_pads): Ditto.
5960 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
5961         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
5962         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
5963         (handle_pragma_redefine_extname): Change to use new function.
5965 2002-07-08  Roger Sayle  <roger@eyesopen.com>
5967         * combine.c (combine_simplify_rtx): Add an explicit cast
5968         to avoid signed/unsigned comparison warning.
5969         (simplify_if_then_else): Likewise.
5970         (extended_count): Likewise.
5971         (simplify_shift_const): Likewise.
5972         (simplify_comparison): Likewise.
5974 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
5976         * config/mips/mips.md: Add imadd type.  Update scheduler description
5977         to use imadd as well as imul.
5978         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
5979         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
5980         (*mul_sub_si): Likewise for first alternative.  Change second
5981         alternative from imul to multi.
5983 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
5985         * c-common.c (c_common_post_options): Update prototype;
5986         don't init backends if preprocessing only.
5987         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
5988         * langhooks.h (struct lang_hooks): Update post_options to
5989         return a boolean.
5990         * toplev.c (parse_options_and_default_flags, do_compile,
5991         lang_independent_init): Update prototypes.  Allow the
5992         front end to specify that there is no need to initialize
5993         the back end.
5994         (general_init): Move call to hex_init here...
5995         (toplev_main): ...from here.  Pass flag for back end init
5996         suppression.
5998 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6000         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
6001         (PREDICATE_CODES): Add entries for equality_comparison_operator,
6002         greater_comparison_operator and less_comparison_operator.
6003         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
6004         more operators.
6005         (equality_comparison_operator): New function.
6006         (greater_comparison_operator, less_comparison_operator): Likewise.
6007         * sh.md (beq_media_i): Disable generator function generation.
6008         Use match_operator to handle a whole class of comparisons.  Add
6009         modifier in output template to provide branch prediction.  Add type.
6010         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
6011         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
6012         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
6013         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
6015 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
6017         Emit MMIX function prologue and epilogue as rtl.
6018         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
6019         not unprototyped get_hard_reg_initial_val.
6020         ("call_value", "nonlocal_goto_receiver"): Ditto.
6021         ("return"): Make define_expand.  Move real insn to...
6022         ("*expanded_return"): New pattern.
6023         ("prologue", "epilogue"): New define_expands.
6024         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
6025         (struct machine_function): New member in_prologue.
6026         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
6027         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
6028         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
6029         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
6030         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
6031         (LOCAL_REGNO): Define.  Adjust comment.
6032         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
6033         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
6034         leaf_function_p.
6035         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
6036         the prologue.
6037         (mmix_target_asm_function_prologue): Make static.  Just mark that
6038         the prologue is being emitted.  Move guts to...
6039         (mmix_expand_prologue): New function.  Adjust for emitting
6040         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
6041         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
6042         \n.  Move guts to...
6043         (mmix_expand_epilogue): New function.  Adjust for emitting
6044         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
6045         (mmix_target_asm_function_end_prologue): Mark that the prologue
6046         has ended.
6047         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
6048         (mmix_conditional_register_usage): Improve comments.
6049         (mmix_local_regno): New function.
6050         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
6051         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
6052         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
6053         (mmix_get_hard_reg_initial_val): Ditto.
6055 2002-07-06  Andreas Jaeger  <aj@suse.de>
6057         * toplev.c (set_fast_math_flags): Don't use ISO C style function
6058         definitions.
6059         * gengtype.c (open_base_files): Likewise.
6060         (close_output_files): Likewise.
6061         * tracer.c (find_best_predecessor): Likewise.
6062         (find_best_successor): Likewise.
6063         (ignore_bb_p): Likewise.
6065 2002-07-05  Roger Sayle  <roger@eyesopen.com>
6067         PR c++/7099
6068         * builtin-attrs.def: Define new attribute lists for use in
6069         builtins.def.
6070         * builtins.def [DEF_BUILTIN]: Modify to take an additional
6071         ATTRS argument, an enumerated value defined in builtin-attrs.def
6072         that represents the attribute list for the builtins.  Modify
6073         all builtin functions to pass an appropriate attribute list.
6074         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
6075         their required noreturn attributes.
6076         * tree.h (enum_builtin_function): Ignore the additional parameter
6077         to DEF_BUILTIN.
6078         * builtins.c (built_in_names): Likewise.
6079         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
6080         argument with a tree representing the functions attribute list.
6081         Pass this "attrs" argument to builtin_function.  No longer handle
6082         the noreturn_p processing manually.
6083         (built_in_attributes): Move the definitions from builtin-attrs.def
6084         before c_common_nodes_and_builtins.
6085         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
6086         DEF_BUILTIN, passing it to both builtin_function and the changed
6087         builtin_function_2.
6089         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
6090         __builtin__exit and __builtin__Exit.
6092 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6094         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
6095         QI mode registers in soft registers.
6096         ("zero_extendqihi2"): Do not take into account soft registers
6097         for register allocation (use '*' constraint).
6099 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6101         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
6102         it is dead.
6103         ("*ashrsi3"): Likewise.
6104         ("*lshrsi3"): Likewise.
6106 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
6108         * genautomata.c (output_max_insn_queue_index_def): Take latencies
6109         into account.
6111 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
6113         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
6114         address computation and memory moves.
6116 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
6118         PR c++/6706
6119         * dwarfout.c (output_reg_number): Fix warning message.
6120         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
6121         before using it.
6123 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6125         * gcc/gcc.c (asm_debug): Move initialization ...
6126         (init_spec): ... here.
6128 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6130         * c-parse.in (extdef): Append ';'.
6131         (old_style_parm_decls): Append ';'.
6133 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
6135         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
6136         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
6137         to gcc_cv_as_gstabs_flag.
6138         * configure: Rebuilt.
6140 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
6142         * ggc.h (ggc_add_root): Document as obsolete.
6144 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
6146         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
6147         (mshflo_w): Likewise.
6149 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
6151         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
6152         vector mode subregs of constants to finding integer mode
6153         subregs of constants.
6154         * cse.c (cse_insn): Use simplify_gen_subreg.
6155         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
6156         From a vector mode expression of different size than the
6157         target mode.
6159 2002-07-03  Eric Christopher  <echristo@redhat.com>
6161         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
6162         * config/mips/mips.h: Remove deprecated -m<processor> options
6163         and cc1_cpu_spec associated.
6164         (CONSTANT_ADDRESS_P): Fix last patch.
6165         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
6166         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
6167         sunge_sf): Remove.
6169 2002-07-03  Stan Shebs  <shebs@apple.com>
6171         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
6172         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
6173         (CPP_SPEC): Remove insertion of APPLE_CC definition.
6175 2002-07-03  Roger Sayle  <roger@eyesopen.com>
6177         * combine.c (struct_undo): Change types of recorded substitutions
6178         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
6179         (do_SUBST_INT): Change types of the substitution from unsigned int
6180         to int, to avoid compilation warning from SUBST_INT's only caller.
6182         (make_extraction): Add cast to avoid compilation warning.
6183         (force_to_mode): Remove cast to avoid compilation warning.
6185 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
6186             Jeff Law  <law@redhat.com>
6188         * i386.md (length_immediate attribute): Fix typo.
6189         (length_address attribute): Likewise.
6190         (modrm attribute): Set it to 0 for immediate call instructions.
6191         (jcc_1 pattern): Set modrm attribute to 0.
6192         (jcc_2 pattern ): Likewise.
6193         (jump pattern): Likewise.
6194         (doloop_end_internal pattern): Explicitly set length.
6195         (leave pattern): Fix typo.
6196         (leave_rex64 pattern): Likewise.
6198 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
6200         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
6201         in FPR as preference.
6202         (fctiwz): Same.
6203         (floatdidf2, fix_truncdfdi2): Same.
6204         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
6205         (floatditf2): Same.
6206         (floatsitf2, fix_trunctfsi2): SImode in GPR.
6207         (ctrdi): Remove FPR alternative and splitter.
6209 2002-07-03  Will Cohen  <wcohen@redhat.com>
6211         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
6213 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
6215         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
6216         than UNITS_PER_WORD, unless this is little endian and the first unit
6217         in this word.  Let extract_bit_field decide how to load an element.
6218         Force arguments to matching mode.
6219         (expand_vector_unop): Likewise.
6221         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
6222         consist of word_mode elements.
6223         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
6224         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
6225         (build_unary_op): Allow vector types for BIT_NOT_EPR.
6226         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
6227         CONST_VECTOR.
6228         * optabs.c (expand_vector_binop): Try to perform operation in
6229         smaller vector modes with same inner size.  Add handling of AND, IOR
6230         and XOR.  Reject expansion to inner-mode sized scalars when using
6231         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
6232         (expand_vector_unop): Try to perform operation in smaller vector
6233         modes with same inner size.  Add handling of one's complement.
6234         When there is no vector negate operation, try a vector subtract
6235         operation.  Use simplify_gen_subreg on constants.
6236         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
6237         constants into smaller vectors with same inner mode, and to
6238         integer CONST_DOUBLEs.
6240 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6242         * c-parse.in (parsing_iso_function_signature): New variable.
6243         (extdef_1): New, copied from...
6244         (extdef): ... here.  Reset parsing_iso_function_signature.
6245         (old_style_parm_decls):  Reset parsing_iso_function_signature.
6246         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
6247         Warn about ISO C style function definitions.
6248         (nested_function, notype_nested_function): Reset
6249         parsing_iso_function_signature.
6250         (parmlist_2): Set parsing_iso_function_signature.
6252         * doc/invoke.texi (-Wtraditional): Document new behavior.
6254 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
6256         * config.gcc (mips*el-*-*): Use tm_defines to set
6257         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
6258         * config/mips/little.h: Remove.
6260 2002-07-02 Devang Patel <dpatel@apple.com>
6262         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
6263         object as parameter. Prevent something like 'NSObject' to be
6264         used as the type for a method argument.
6266 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
6268         * cpptrad.c: Update comment.
6270 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
6272         * doc/cpp.texi: Update for traditional preprocessing changes.
6273         * goc/cppopts.texi: Similarly.
6275 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
6277         * c-parse.in (designator): Enable designated initializers if ObjC.
6278         (objcmessageexpr): Remove references to objc_receiver_context.
6279         * objc/objc-act.h (objc_receiver_context): Remove decl.
6280         * objc/objc-act.c (objc_receiver_context): Remove.
6281         (lookup_objc_ivar): Test objc_method_context instead of
6282         objc_receiver_context.
6284 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
6286         * sh.c (print_operand, case 'N'): Allow zero vector.
6287         (arith_reg_or_0_operand): Likewise.
6288         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
6289         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
6290         IOR, XOR, PLUS and SET and take their respective constant
6291         ranges into account.
6292         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
6293         * sh.md (subdi3, subdi3_media): Allow zero operand.
6294         (movv8qi_i+3): Only vector that is not split is the zero vector.
6295         Fix operand 3 to simplify_subreg.
6296         (movv2si_i): Split alternative 1.
6297         (mshfhi_l_di_rev+1): New splitter.
6299 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
6301         PR preprocessor/7029
6302         * cppinit.c (cpp_handle_option):  Suppress warnings with an
6303         implicit "-w" for "-M" and "-MM".
6304         * doc/cppopts.texi: Update.
6306 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6308         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
6309         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
6310         builtin_function.
6312 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
6314         * README.Portability: Fix typos.
6316 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
6318         PR target/7177
6319         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
6320         of indirections for register inside sign-extended mem part.
6322 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6324         * tree.h:  Modify builtin_function interface to take an extra
6325         argument ATTRS, which is a tree representing an attribute list.
6327         * c-decl.c (builtin_function): Accept additional parameter.
6328         * objc/objc-act.c (builtin_function): Likewise.
6329         * f/com.c (builtin_function): Likewise.
6330         * java/decl.c (builtin_function): Likewise.
6331         * ada/utils.c (builtin_function): Likewise.
6332         * cp/decl.c (builtin_function): Likewise.
6333         (builtin_function_1): Likewise.
6335         * c-common.c (c_common_nodes_and_builtins): Pass an additional
6336         NULL_TREE argument to builtin_function.  (builtin_function_2):
6337         Likewise.
6338         * cp/call.c (build_java_interface_fn_ref): Likewise.
6339         * objc/objc-act.c (synth_module_prologue): Likewise.
6340         * java/decl.c (java_init_decl_processing): Likewise.
6341         * f/com.c (ffe_com_init_0): Likewise.
6343         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
6344         NULL_TREE argument to builtin_function.
6345         * config/arm/arm.c (def_builtin): Likewise.
6346         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
6347         * config/i386/i386.c (def_builtin): Likewise.
6348         * config/ia64/ia64.c (def_builtin): Likewise.
6349         * config/rs6000/rs6000.c (def_builtin): Likewise.
6351 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
6353         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
6354         * config/mips/t-isa3264: Likewise.
6355         * config/mmix/t-mmix: Likewise.
6357 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6359         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
6361 2002-07-01  Roger Sayle  <roger@eyesopen.com>
6363         PR opt/4046
6364         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
6365         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
6366         B are truth values.
6368 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6370         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
6372 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
6374         * README.Portability (Function prototypes): Give an example of
6375         declaring and defining a function with no arguments.
6377         * README.Portability (Function prototypes): Document new
6378         variable-argument function macros.
6380 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
6382         * sh.c (langhooks.h): Include.
6383         (sh_init_builtins, sh_media_init_builtins): New functions.
6384         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
6385         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
6386         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
6387         (builtin_description): New struct tag.
6388         (signature_args, bdesc): New arrays.
6389         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
6390         (print_operand): Add 'N' modifier.
6391         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
6392         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
6393         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
6394         (CONST_COSTS): Add special case for SHmedia AND.
6395         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
6396         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
6397         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
6398         target_operand can also be const or unspec.
6399         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
6400         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
6401         (attribute type): Add new types.
6402         (anddi3): Add splitter.
6403         (movdi_const_16bit+1): Add code to handle vector constants and
6404         bitmasks efficiently.
6405         (shori_media): Have generator function made.
6406         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
6407         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
6408         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
6409         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
6410         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
6411         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
6412         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
6413         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
6414         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
6415         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
6416         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
6417         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
6418         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
6419         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
6420         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
6421         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
6422         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
6423         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
6424         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
6425         (ftrv): Likewise.
6427         (fpu_switch+1, fpu_switch+2): Remove constraint.
6429 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
6431         * tree.c (build_function_type_list): Update function comment.
6432         Rename first argument to return_type.
6434 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
6436         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
6437         tradcif.y and related files.
6439 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
6441         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
6443 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6445         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
6447 2002-06-30  Devang Patel  <dpatel@apple.com>
6449         * objc/objc-act.c (finish_file): Avoid finish_objc() if
6450         -fsyntax-only.
6452 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
6453                           Frank Ch. Eigler  <fche@redhat.com>
6454                           Matthew Green  <mrg@redhat.com>
6455                           Richard Henderson <rtl@redhat.com>
6456                           Dave Hudson  <dave.hudson@ubicom.com>
6457                           Jeff Johnston  <jjohnstn@redhat.com>
6458                           Alan Lehotsky <apl@alum.mit.edu>
6459                           Bernd Schmidt  <bernds@redhat.com>
6460                           Graham Stott  <grahams@redhat.com>
6462         * doc/extend.texi: Add ip2k port to description of attribute
6463         naked.
6464         * doc/install.texi (Specific): Add ip2k description.
6465         * doc/install-old.texi (Configurations): Add ip2k to possible
6466         cpu types.
6467         * doc/md.texi: Document ip2k constraints.
6468         * config/ip2k/crt0.S: New file.
6469         * config/ip2k/ip2k-protos.h: New file.
6470         * config/ip2k/ip2k.c: New file.
6471         * config/ip2k/ip2k.h: New file.
6472         * config/ip2k/ip2k.md: New file.
6473         * config/ip2k/libgcc.S: New file.
6474         * config/ip2k/t-ip2k: New file.
6476 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
6478         * config/mmix/mmix.md ("return"): New pattern.
6479         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
6480         (TARGET_USE_RETURN_INSN): New macros.
6481         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
6482         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
6483         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
6484         (MMIX_POP_ARGUMENT): New macro.
6485         (mmix_target_asm_function_prologue): When no epilogue is executed,
6486         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
6487         (mmix_print_operand) <case '.'>: New case.
6488         (mmix_print_operand_punct_valid_p): Match '.'.
6489         (mmix_use_simple_return): New function.
6490         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
6491         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
6492         -msingle-exit, -mno-single-exit.
6493         (MMIX Options): Ditto.
6495 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
6497         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
6499 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6501         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
6503 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
6505         * unroll.c (loop_iterations): Handle EQ loops.
6507 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
6509         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
6510         constraint in define_expand, not splitter.
6511         Formatting.
6513 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
6515         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
6516         build_function_type_list instead of build_function_type.
6518         * config/ia64/ia64.c (ia64_init_builtins): Same.
6520         * config/alpha/alpha.c (alpha_init_builtins): Same.
6522         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
6524         * config/arm/arm.c (arm_init_builtins): Same.
6526         * tree.h: Add build_function_type_list prototype.
6528         * tree.c (build_function_type_list): New.
6530 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6532         * collect2.c (scan_prog_file): Fix typo in message.
6534 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
6536         * fold-cont.c: Remove unused CHARMASK.
6538 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
6540         PR preprocessor/7150
6541         * cppmain.c (scan_translation_unit_trad): Simplify.
6542         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
6544 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
6546         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
6547         Don't use CPP_PREDEFINES.
6548         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
6549         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
6550         * config/i386/djgpp.h, config/i386/i386-coff.h,
6551         config/i386/i386-interix.h, config/i386/i386-interix3.h,
6552         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6553         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
6554         config/i386/uwin.h: Similarly.
6556 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
6558         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
6559         flag_inline_trees to enable inlining.
6561 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
6563         * configure.in (gcc_gxx_include_dir):  Change to match versioned
6564         C++ headers if --enable-version-specific-runtime-libs is used.
6565         * configure:  Regenerate.
6567 2002-06-28  Jan Hubicka  <jh@suse.cz>
6569         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
6571 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
6573         * combine.c (combine_simplify_rtx): Pass the mode of the
6574         shift count, not the shift operation when trying to simplify
6575         a shift on a SHIFT_COUNT_TRUNCATED target.
6577 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6579         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
6580         avoid the auto increment addressing modes.
6581         ("*subsi3"): Likewise.
6582         (split for add/sub on address): For 68HC12 push the value on
6583         the stack and do the operation with a pop.
6585 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
6587         * cpplib.c (_cpp_handle_directive): Move #define-specific
6588         code to the #define handler...
6589         (do_define): ...here.
6590         (lex_macro_node): No longer a need to check for comments here.
6592 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6594         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
6595         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
6596         Declare.
6597         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
6598         do not reorder basic blocks at the end when optimizing for size.
6600 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
6602         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
6603         (m68hc11_make_autoinc_notes): New function.
6604         (m68hc11_split_move): Be very cautious when spliting a move with
6605         auto increment/decrement modes because this may result in incompatible
6606         directions; add REG_INC notes to the resulting insn for CSE reg.
6608 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
6610         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
6611         can be a valid address.
6613 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
6615         * config/rs6000/rs6000.c: Remove unusued variables from last
6616         patch.
6618 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6620         Revert:
6621         * config/rs6000/rs6000.c (rs6000_override_options): Move
6622         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
6624 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6626         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
6627         lvx/stv/dst builtins...
6628         (altivec_expand_ld_builtin): ...to here.
6629         (altivec_expand_st_builtin): ...here.
6630         (altivec_expand_dst_builtin): ...and here (respectively).
6632 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
6634         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
6636 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
6638         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
6639         subregs.
6640         * recog.c (general_operand, register_operand): Disallow them.
6642 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
6644         PR preprocessor/7138
6645         * cpplib.c (_cpp_handle_directive): Do traditional
6646         preparation after setting state.angled_headers.
6647         * cpptrad.c (scan_out_logical_line): Fix potential
6648         quote bug.
6650 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
6652         * config/rs6000/rs6000.c (rs6000_override_options): Move
6653         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
6655 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
6657         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
6658         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
6659         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
6661 2002-06-27  Roger Sayle  <roger@eyesopen.com>
6663         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
6664         * config/stormy16/stormy16.h: Likewise.
6666         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
6667         with #define.
6669 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6671         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
6672         Hitachi entry.  Make punctuation more consistent.
6674 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
6676         * doc/install.texi: Change ` bit' to `-bit'.
6677         * doc/md.texi: Change `-bits' to `-bit'.
6678         * doc/tm.texi: Change `-bits' to ` bits'.
6680 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
6682         * gcse.c (hoist_code): Rewrite to only get list of dominated
6683         blocks once per BB. Also fix reversed test (by removing need for
6684         the test at all).
6686 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
6688         * cpphash.h (_cpp_set_trad_context): Remove.
6689         * cpplib.c (prepare_directive_trad): Do nothing for #define.
6690         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
6691         * cpptrad.c: Update comments.
6692         (_cpp_read_logical_line_trad): Let scan_logical_line handle
6693         updating the current context.
6694         (scan_logical_line): Update the current context.
6695         (_cpp_create_trad_definition): Similarly.
6696         (_cpp_set_trad_context): Remove.
6698 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
6700         PR preprocessor/7070
6701         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
6703 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
6705         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
6706         config/xtensa/xtensa.c (xtensa_return_addr): New function.
6707         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
6708         config/xtensa/xtensa.md (fix_return_addr): New pattern.
6710 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6712         * mips.c (coprocessor_operand, coprocessor2_operand,
6713         symbolic_operand): Move prototypes from here...
6714         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
6715         symbolic_operand): ...to here.
6717 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6719         * config/sh/crt1.asm: remove _stack label definition
6720         and sentinel value.
6722 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6724         * varasm.c: Include real.h before output.h.
6726 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
6728         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
6729         check for TARGET_ALTIVEC.
6731 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6733         * config.gcc (vax-*-vms*): Make obselete.
6735 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6737         * gcc.c (warn_std): Delete.
6739 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
6741         * doc/extend.texi: Fix formatting of last checkin.
6743 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6745         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
6746         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
6748 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
6750         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
6751         discrepancies from motorola's documentation.
6753 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
6755         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
6756         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
6758         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
6759         produce a 32 bit result before normalization, then normalize with a
6760         left shift.  Compute approximative error of 2nd reciprocal
6761         approximation in 2's complement.  Fix mask generation from upper
6762         longword of second divide stage result.
6763         For large divisor, fix shift count used to truncate first stage
6764         divide result; make decision if to adjust upwards based on comparison
6765         of higher parts of normalized values.
6766         (udivdi): Likewise.  Undo normalization of result for large divisor
6767         case.
6769 2002-06-25  David S. Miller  <davem@redhat.com>
6771         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
6773 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
6775         * cpplib.c (do_include_common): Revert to correct line number
6776         if -traditional.
6777         * cpptrad.c (scan_out_logical_line): Treat null directive as
6778         white space.  Invlidate MI optimization for non-whitespace
6779         text outside a directive.
6781 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6783         * Makefile.in (SHELL): Set to @SHELL@.
6784         * fixinc/Makefile.in (SHELL): Likewise.
6786         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
6787         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
6788         initialization.
6790 2002-06-24  Jeff Law <law@redhat.com>
6792         * flow.c (propagate_one_insn): When removing an insn
6793         with a REG_LIBCALL note but not the entire libcall sequence,
6794         delete the associated REG_RETVAL note.
6796 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
6798         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
6799         (udivsi3): Likewise.  Rewrite SH1 implementation.
6800         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
6801         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
6802         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
6803         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
6804         (_moddi3): Likewise.
6806         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
6808         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
6809         arguments into account for stack_regs.
6811 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
6813         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
6814         in examples.
6816 2002-06-24  Art Haas  <ahaas@neosoft.com>
6818         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
6819         * doc/tm.texi (Frame Layout): Likewise.
6821 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
6823         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
6824         Set float_format to i128.
6826 2002-06-24  David S. Miller  <davem@redhat.com>
6828         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
6829         32-bit ABI libfuncs to NULL.
6831         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
6832         strings instead of quoted strings for code blocks.
6834         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
6835         optabs if op1 is const0_rtx.
6837         * Makefile.in (GTFILES): Add basic-block.h
6838         * basic-block.h (label_value_list, tail_recursion_label_list):
6839         Mark with GTY.
6841 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
6843         * cpptrad.c (scan_out_logical_line): Check recursing only when
6844         we know we have a macro invocation in the function-like case.
6845         Only call _cpp_handle_directive if we know we have a good
6846         directive, or we want to reject a bad directive.
6848 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
6850         * doloop.c (doloop_valid_p): Correct comment.
6851         (doloop_modify_runtime <abs_inc != 1>): Simplify.
6852         (doloop_modify_runtime <do-while>): Don't emit code when NE.
6854 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
6856         * config.gcc: Add support for ip2k.
6858 2002-06-23  Jan Hubicka  <jh@suse.cz>
6859             Jeff Law <law@redhat.com>
6861         * function.h (struct emit_status): Clarify potential contents
6862         of regno_reg_rtx array.
6863         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
6864         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
6866         * reg-stack.c (convert_regs_exit): Push the registers to stack in
6867         proper order.
6869 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
6871         PR middle-end/6963
6872         * function.c (assign_stack_temp_for_type): Do not return
6873         the same MEM rtx for multiple uses of a stack slot.
6875 2002-06-22  David S. Miller  <davem@redhat.com>
6877         PR target/6841 target/6770 target/6719
6878         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
6879         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
6880         GENERAL_OR_EXTRA_FP_REGS.
6882 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
6884         * cpptrad.c (struct fun_macro): Add line number.
6885         (scan_out_logical_line): Set it, and use it to report unterminated
6886         macro invocations.
6888 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6890         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
6891         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
6892         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
6893         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
6894         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
6895         REGEXP_ONEOF, check_name): Const-ify.
6897 2002-06-21  Matt Thomas  <matt@3am-software.com>
6899         * config/vax/vax.c (vax_output_function_prologue): Use
6900         REGISTER_PREFIX.  Fix some indentation.
6901         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
6902         (VAX_ISTREAM_SYNC): Define.
6903         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
6904         i-stream sync to the end.
6905         (REGISTER_PREFIX): Define as "".
6906         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
6908 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
6910         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
6911         configurations.
6913 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6915         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
6916         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
6918 2002-06-21  Matt Thomas  <matt@3am-software.com>
6920         * config/vax/netbsd.h: Adjust a comment.
6921         (TARGET_DEFAULT): Redefine as 0.
6923 2002-06-21  Richard Henderson  <rth@redhat.com>
6925         * bb-reorder.c (make_reorder_chain_1): Search harder for the
6926         vax casesi fallthru edge.
6927         * cfglayout.c (cleanup_unconditional_jumps): Use
6928         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
6929         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
6930         block after ADDR_VEC.
6932 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6934         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
6936 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
6938         * cpperror.c (cpp_error): For traditional CPP, default to
6939         diagnostics on pfile->line.
6940         * cpplib.c (prepare_directive_trad): Set line number for
6941         diagnostics for #define too.
6942         * cpptrad.c (skip_whitespace): Skip comments properly.
6943         (_cpp_expansions_different_trad): Initialize quote2.
6945 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
6947         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
6948         * config/mmix/mmix.h: Ditto.
6949         * config/mmix/mmix-protos.h: Ditto.
6950         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
6951         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
6952         comment.  Comment extra CC modes.
6954 2002-06-20 Jan Hubicka  <jh@suse.cz>
6956         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
6957         (scope_to_insns_finalize): Do not call set_block_levels; handle
6958         sequences.
6959         (choose_inner_scope): New.
6960         * rtl.h (choose_inner_scope): Declare.
6962 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6964         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
6965         HOST_WIDE_INT.
6966         * pa.c (pa_asm_output_mi_thunk): Likewise.
6967         (n_deferred_plabels): Change type to size_t.
6968         (output_deferred_plabels, output_call): Use size_t instead of int.
6970 2002-06-20  Richard Henderson  <rth@redhat.com>
6972         PR target/4041
6973         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
6974         pattern and adjust constraints for coldfire.
6976 2002-06-20  Richard Henderson  <rth@redhat.com>
6978         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
6980 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
6982         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
6984 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
6986         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
6988 2002-06-20  Stan Shebs  <shebs@apple.com>
6990         * dominance.c: Include errors.h instead of error.h.
6992 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
6994         * cppexp.c (cpp_interpret_integer): Don't force traditional
6995         numbers to be unsigned.
6996         * cpplib.c (prepare_directive_trad): Set line number for
6997         diagnostics.
6998         * cpptrad.c (scan_out_logical_line): Continue scanning out
6999         at start of buffer.
7000         * gcc.c (trad_capable_cpp): Use cc1 always.
7002 2002-06-20  Jeffrey Law  <law@redhat.com>
7004         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
7005         elimination in leaf functions by default yet.
7007 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
7009         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
7011 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7013         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
7014         multilibs.
7015         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
7016         Fixes PR other/6836.
7018 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
7019                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
7021         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
7023         * basic-block.h: Do not include et-forest.h
7024         (dominance_info): Declare as struct dominance-info.
7025         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
7026         deleting block.
7027         * dominance.c (struct dominance_info): Define.
7028         (BB_NODE, SET_BB_NODE): New macros.
7029         (bb_hash_func, bb_eq_func): Kill.
7030         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
7031         nearest_common_dominator, dominated_by_p, recount_dominator,
7032         add_to_dominance_info, delete_from_dominance_info): update for new
7033         representation.
7034         (get_dominated_by, redirect_immediate_dominators): Rewrite using
7035         enumerate_sons.
7036         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
7037         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
7038         structure.
7040         * et-forest.h: Update copyright; revamp all function to operate on
7041         nodes
7042         (et_forest_value): Kill.
7043         (et_forest_enumerate_sons, et_forest_node_value): New.
7044         * et-forest.c: Update copyright.
7045         * et-forest.h: Update copyright; revamp all function to operate on
7046         nodes
7047         (et_forest_value): Kill.
7048         (et_forest_enumerate_sons, et_forest_node_value): New.
7050         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
7052         * basic-block.h: Inlude et-forest.h
7053         (basic_block_def): Kill dominator.
7054         (dominance_info): New type.
7055         (loops): Use dominace_info.
7056         (dominace handling functions): Take dominace_info as argument
7057         instead of bitmaps.
7058         (create_preheader): Likewise.
7059         * cfg.c (entry_exit_blocks): Kill dominator.
7060         (dump_flow_info): Do not dump dominators.
7061         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
7062         dominators.
7063         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
7064         (flow_loops_pre_header_scan, make_forwarder_block,
7065         canonicale_loop_headers, flow_loops_find): Likewise.
7066         * dominance.c: Include error.h
7067         (idoms_to_doms): Kill.
7068         (bb_hash_func, bb_eq_func): New static functions.
7069         (debug_dominace_info): New global function.
7070         (calculate_dominance_info): Use new et forest structure.
7071         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
7072         get_dominated_by, redirect_immediate_dominators,
7073         nearest_common_dominator, dominated_by_p, verify_dominators,
7074         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
7075         delete_from_dominance_info): New global functions.
7076         * gcse.c (domnators): CHange to dominance_info.
7077         (alloc_hoist_mem): Do not alloc dominators
7078         (free_code_hoist_mem): Use free_dominance_info.
7079         (compute_code_hoist_data): Use dominance_info.
7080         (hoist_code): Likewise.
7081         * ifcvt.c (post_dominators): Likewise.
7082         (find_if_case_2, if_convert): Likewise.
7083         * predict.c (process_note_predictions, process_note_prediction,
7084         estimate-probability): Likewise.
7085         * sched-rgn.c (find_rgns, init_regions): Likewise.
7086         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
7087         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
7088         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
7089         find_evaluations, convert_to_ssa): Likewise.
7090         * ssa.h (compute_dominance_frontiers): Likewise.
7092         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
7094         * Makefile.in (et-forest.c): Add.
7095         * et-forest.c: New file.
7096         * at-forest.h: New file.
7098 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7100         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
7101         array size calculation.
7102         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
7103         Likewise.
7105         * diagnostic.c (diagnostic_kind_text): Const-ify.
7106         * gengtype.c (lang_names): Likewise.
7108 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
7110         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
7112 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7114         * config/sol2.h: New file.
7115         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
7116         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
7117         (sparc-*-chorusos*): Likewise.
7118         (sparc-*-elf*): Likewise.
7119         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
7120         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
7121         (sparc-hal-solaris2*): Likewise.
7122         (sparc-*-solaris2*): Likewise.
7123         (sparclite-*-elf*): Likewise.
7124         (sparc86x-*-elf*): Likewise.
7125         (sparc64-*-elf*): Likewise.
7127         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
7128         config/sol2.h.
7129         (ASM_SPEC): Override config/sol2.h version for now.
7130         Removed obsolete GAS_REJECTS_MINUS_S variant.
7131         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
7132         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7133         (TARGET_OS_CPP_BUILTINS): Likewise.
7134         Assert system=unix.
7135         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
7136         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
7137         config/sol2.h.
7138         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7139         (ASM_CPU_SPEC): Define.
7140         (SUBTARGET_EXTRA_SPECS): Define.
7142         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
7143         in config/sparc/sol2.h.
7144         (ASM_SPEC): Moved to config/sol2.h.
7145         (CPP_CPU_SPEC): Simplified.
7146         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
7147         consistency.
7148         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
7149         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
7150         STARTFILE_ARCH64_SPEC.
7151         (STARTFILE_SPEC): Moved to config/sol2.h
7152         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
7153         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
7154         (LINK_ARCH64_SPEC): Simplified.
7155         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
7156         (LINK_SPEC): Moved to config/sol2.h
7158         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
7159         config/sol2.h.
7160         Use BITS_PER_WORD for size.
7161         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
7162         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
7163         (CPP_PREDEFINES): Removed OS-specific part handled by
7164         TARGET_OS_CPP_BUILTINS.
7165         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
7166         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
7167         (ASM_SPEC): Moved to config/sol2.h.
7168         (PREFERRED_DEBUGGING_TYPE): Likewise.
7169         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
7170         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
7171         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
7172         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
7174         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
7175         * config/i386/sol2gas.h: Removed.
7177 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
7179         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
7181 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
7183         * gcc.c-torture/execute/simd-1.c: New.
7185         * gcc.dg/simd-1.c: New.
7187         * doc/extend.texi (Vector Extensions): Document that we can
7188         specify simd types not specifically supported by the hardware.
7189         Document that simd types can be used as function arguments.
7190         Document that signness does make a difference in SIMD types.
7191         Misc cleanups and revisions to the vector extensions section.
7193         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
7194         constants.
7196         * expr.c (vector_mode_valid_p): New.
7198         * expr.h: Add vector_mode_valid_p.
7200         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
7202         * c-common.c (type_for_mode): Always build vector nodes regardless
7203         of VECTOR_MODE_SUPPORTED_P.
7204         (handle_mode_attribute): Error if we can't emulate a nonexisting
7205         vector mode.
7206         (handle_vector_size_attribute): Same.
7208         * optabs.c (expand_binop): Open-code vector operations.
7209         (expand_unop): Open-code vector unops.
7210         (expand_vector_binop): New.
7211         (expand_vector_unop): New.
7213         * c-typeck.c (build_binary_op): Allow vectors in binops.
7214         Allow vectors in conditional operatiors.
7215         (build_unary_op): Allow vectors in unary minus.
7217         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
7218         TARGET_ALTIVEC.
7220 2002-05-20  Richard Henderson  <rth@redhat.com>
7222         * c-common.c (c_common_get_alias_set): Correctly handle characters.
7223         Rearrange order of expressions; don't handle vectors here.
7224         * alias.c (get_alias_set): Let vectors match their components.
7226 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
7228         * config/mips/mips.c (mips_emit_prefetch): Use hints which
7229         match desired locality.
7231 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
7233         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
7234         (h8300_insert_attributes): New.
7236 2002-06-19  Akim Demaille  <akim@epita.fr>
7238         * c-parse.in (initelt: identifier ':' initval): Add an empty
7239         action to fix a type clash.
7240         (aliasdecl, classdef): Add the missing closing `;'.
7241         Whitespace changes.
7242         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
7243         $$ = $1 type clashes.
7245 2002-06-19  Eric Christopher  <echristo@redhat.com>
7247         * config/mips/mips.c (symbol_operand): New function.
7248         (mips_emit_prefetch): Ditto.
7249         * config/mips/mips-protos.h: Define.
7250         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
7251         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
7252         (LEGITIMIZE_ADDRESS): Ditto.
7253         * config/mips/mips.md (prefetch, prefetch_si_address,
7254         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
7256 2002-06-19  Eric Christopher  <echristo@redhat.com>
7258         * config/fp-bit.h: Add unordered defines for gofast.
7260 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
7262         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
7263         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
7264         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
7265         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
7266         checking and without it.
7267         (decl_name, decl_mode_check_failed, regexp_name,
7268         regexp_mode_check_failed): New functions.
7269         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
7270         gen_presence_set, gen_absence_set, gen_automaton,
7271         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
7272         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
7273         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
7274         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
7275         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
7276         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
7277         (decl_hash, decl_eq_p): Use the macros.
7278         (find_decl): Ditto.  Set up mode of work_decl.
7279         (process_excls, process_presence_absence, process_decls,
7280         check_automaton_usage, process_regexp, process_regexp_decls,
7281         check_usage, loop_in_regexp, check_loops_in_regexps,
7282         process_regexp_cycles, add_advance_cycle_insn_decl,
7283         initiate_states, initiate_excl_sets,
7284         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
7285         transform_2): Use the macros.
7286         (transform_3): Ditto.  Check mode before making transformations of
7287         ALLOF.
7288         (regexp_transform_func, transform_insn_regexps,
7289         process_unit_to_form_the_same_automaton_unit_lists,
7290         form_the_same_automaton_unit_lists_from_regexp,
7291         form_the_same_automaton_unit_lists,
7292         process_seq_for_forming_states, process_alts_for_forming_states,
7293         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
7294         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
7295         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
7296         units_to_automata_heuristic_distr, create_ainsns,
7297         units_to_automata_distr, create_automata): Use the macros.
7298         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
7299         (longest_path_length, min_issue_delay_pass_states,
7300         output_dead_lock_vect, output_tables, output_insn_code_cases,
7301         output_internal_insn_latency_func, output_print_reservation_func,
7302         output_description, output_automaton_units, generate): Use the
7303         macros.
7304         (make_insn_alts_attr): Ditto.  Check case when there are not
7305         alternatives in the reservation.
7306         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
7307         make_bypass_attr, form_important_insn_automata_lists,
7308         expand_automata): Use the macros.
7310 2002-06-20  Tim Josling  <tej@melbpc.org.au>
7312         * Makefile.in: Clean up code to check for misspecified languages
7313         in enable-languages.
7315 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
7317         * cpptrad.c (_cpp_replacement_text_len): initialize len.
7319 2002-06-19  Jason Merrill  <jason@redhat.com>
7321         * Makefile.in (unstrap, restrap): New targets.
7322         (bootstrap): Mention restrap.
7324 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
7326         * except.c (ehl_free): Remove.
7328         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
7329         builtin_define and builtin_define_std.
7331 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
7333         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
7334         (sCOND): Restrict operand class so that gcc knows how to reload them.
7335         (bitfield_set): Merge two unnamed insn's using alternatives.
7336         (call_value): Remove constraint on unused uperand.
7337         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
7338         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
7340         * longlong.h (count_trailing_zeros): Escape newline and beautify.
7342 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
7344         * Makefile.in (QMTEST_DIR): Simplify definition.
7346 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
7348         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
7349         #define.
7351 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
7353         * cpphash.h (struct cpp_reader): Make date and time strings.
7354         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
7355         _cpp_replacement_text_len): New.
7356         * cppinit.c (cpp_create_reader): Update.
7357         (init_builtins): Register appropriate builtins for -traditional-cpp.
7358         * cppmacro.c (new_number_token): Remove.
7359         (_cpp_builtin_macro_text): New.
7360         (builtin_macro): Use it.
7361         (cpp_macro_definition): Update to handle traditional macros.
7362         * cppmain.c (cb_line_change): Don't do column positioning for
7363         traditional output.
7364         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
7365         state ls_fun_close.
7366         (skip_whitespace): Fix.
7367         (maybe_start_funlike): Don't set state.parsing_args.
7368         (scan_out_logical_line): Remove duplicate error.  Use lex_state
7369         rather than state.parsing_args.
7370         (push_replacement_text): Handle builtins.
7371         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
7373 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
7374             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7376         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
7377         attribute __always_inline__.
7379 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
7381         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
7382         when generating the call to _mcount.
7383         (NO_PROFILE_COUNTERS): Define.
7385 2002-06-18  Richard Henderson  <rth@redhat.com>
7387         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
7388         2002-06-02 change.
7390 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
7392         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
7393         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
7394         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
7395         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
7397         * sh-protos.h (sh_pr_interrupt): Declare.
7398         * sh.c (sh_pr_interrupt): New function.
7399         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
7400         (sh_hard_regno_rename_ok): Likewise.
7401         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
7403 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
7405         * rtl.def (DEFINE_AUTOMATON): Add description of new options
7406         `time' and `v'.  Fix incorrect description of option `w'.
7408         * doc/md.texi: Ditto.
7410         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
7411         (gen_automata_option): Process the new options.
7412         (transform_2, transform_3): Initialize some variables.
7413         (initiate_automaton_gen): Use the new macros.
7415 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
7417         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
7418         (mips_set_return_address, mips_restore_gp): Declare.
7419         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
7420         (current_frame_info): Remove.
7421         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
7422         * config/mips/mips.c: Remove uses of current_frame_info.
7423         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
7424         (struct machine_function): Add 'frame' and 'insns_len'.
7425         (current_frame_info, zero_frame_info): Remove.
7426         (mips_restore_gp, mips_set_return_address): New.
7427         (mips_initial_elimination_offset): New.
7428         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
7429         (eh_return define_split): Use mips_set_return_address.
7431 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
7433         * cpplib.c (dtable): Update.
7434         (end_directive): Decrement expansion prevention count.
7435         Clear state.in_expression.
7436         (prepare_directive_trad): Set state.in_expression.
7437         Increment expansion prevention count.
7438         * cpptrad.c (enum ls): New.
7439         (_cpp_overlay_buffer): Set overlaid_buffer.
7440         (_cpp_remove_overlay): Use overlaid_buffer.
7441         (_cpp_read_logcial_line_trad): Update buffer when it might
7442         have changed.
7443         (scan_out_logical_line): Handle state transitions for assertions
7444         and defined() in #if, and for funlike invocations including the
7445         directive case.  Handle '<' and '>' as a quote mechanism in
7446         #include.  Warn about unterminated macro invocations.
7447         * cpphash.h (struct lexer_state): New member in_expression.
7448         (struct cpp_reader): New member overlaid buffer.
7450 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
7452         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
7453         __always_inline__.
7455 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
7457         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
7459         * doloop.c (doloop_optimize): Extract pattern from insn.
7461 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
7463         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
7465 2002-06-17  Jeff Law <law@redhat.com>
7467         * libgcc2.c: Do not include symcat.h or machmode.h.
7469 2002-06-17  Richard Henderson  <rth@redhat.com>
7471         PR target/6922
7472         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
7474 2002-06-17  Tom Tromey  <tromey@redhat.com>
7476         * dwarfout.c: Include function.h.
7478 2002-06-17  Andreas Schwab  <schwab@suse.de>
7480         * print-rtl.c (print_rtx): Print space before vector, not after.
7481         (debug_rtx): Clear sawclose before printing.
7482         (debug_rtx_list): Print newline after each list element.
7483         (debug_rtx_range): Likewise.
7485 2002-06-17  Richard Henderson  <rth@redhat.com>
7487         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
7488         (current_function_funcdef_no): Similarly.
7489         * function.c (funcdef_no): Similarly.
7490         (prepare_function_start): Set current_function_funcdef_no.
7491         (expand_function_start): Don't set current_function_profile_label_no.
7492         * dwarf2out.h (current_funcdef_number): Remove.
7493         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
7494         current_function_funcdef_no throughout.
7495         * dwarfout.c, vmsdbgout.c: Similarly.
7496         * except.c (sjlj_funcdef_number): Remove.
7497         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
7498         (output_function_exception_table): Likewise.
7499         * final.c (profile_function): Use current_function_funcdef_no
7500         instead of current_function_profile_label_no.
7502 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
7504         * sched-ebb.c (init_ready_list): Check INSN_P first.
7506 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
7508         * sh.md (divsi3): Update way how to find insns in a sequence.
7510         * reload1.c (merge_assigned_reloads): Don't change reloads
7511         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
7512         to RELOAD_OTHER when there are conflicting input reloads.
7514 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
7516         * function.c (epilogue_done): Correctly build a sequence of insns for
7517         a sibcall epilogue.
7519 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
7521         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
7522         #define.
7524         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
7526 2002-06-16  Richard Henderson  <rth@redhat.com>
7528         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
7529         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
7531 2002-06-16  Richard Henderson  <rth@redhat.com>
7533         PR opt/6722
7534         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
7536 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7538         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
7539         * config/i386/i386-aout.h, config/i386/i386elf.h,
7540         config/i386/sysv4.h: Remove CPP_PREDEFINES.
7541         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
7542         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
7543         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
7544         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
7545         CPP_PREDEFINES and part of CPP_SPEC.
7546         * config/i386/sysv4-cpp.h: New.
7548 2002-06-16  Richard Henderson  <rth@redhat.com>
7550         PR c/7030
7551         * dwarf2out.c (modified_type_die): Don't assign the qualified die
7552         to the unqualified type.
7554 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
7556         * i386-protos.h (x86_field_alignment): Declare.
7557         * i386.c (x86_field_alignment): Define.
7558         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
7559         (BIGGEST_FIELD_ALIGNMENT): Kill.
7561 2002-06-16  Richard Henderson  <rth@redhat.com>
7563         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
7565 2002-06-16  Richard Henderson  <rth@redhat.com>
7567         * c-common.c (flag_ms_extensions): Move from c++ front end.
7568         * c-common.h (flag_ms_extensions): Declare.
7569         * c-decl.c (c_decode_option): Add -fms-extensions.
7570         (grokfield): Don't accept anonymous structures in ISO C mode;
7571         accept only unnamed anonymous structures in GNU C mode; accept
7572         Plan 9 extensions in MS mode.
7573         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
7574         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
7575         (extension): Clear flag_iso.
7576         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
7578 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
7580         PR target/7042
7581         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
7582         early if current_function_epilogue_delay_list is non-empty.
7583         * config/cris/cris.md ("return"): Add sanity check asserting that
7584         current_function_epilogue_delay_list is empty.
7586 2002-06-16  Jeff Law <law@redhat.com>
7588         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
7589         sharing of hard registers.
7591         * toplev.c (rest_of_compilation): Remove redundant conditional.
7593         * toplev.c (rest_of_compilation): Perform a simpler, less costly
7594         cleanup of the CFG when not optimizing.
7596 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
7598         * gcc.c (main): Correct startfile_prefix_spec check.
7600 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
7602         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
7603         include both darwin.o and rs6000-c.o.
7605 2002-06-15  Roger Sayle  <roger@eyesopen.com>
7607         * expr.c (compare_from_rtx): Call simplify_relational_operation
7608         on all comparisons, not just those between integer constants,
7609         with the correct (possibly unsigned) comparison code.
7610         (do_compare_rtx_and_jump): Likewise.
7612 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7614         * Makefile.in (tm_defines): New configuration variable.
7615         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
7616         Pass tm_defines in TM_DEFINES.
7617         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
7618         * config.gcc (tm_defines): New configuration variable.
7619         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
7620         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
7621         * configure.in: Substitute tm_defines.
7622         * configure: Rebuilt.
7623         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
7624         * doc/install.texi: Update.
7625         * pa/pa-700.h: Delete file.
7626         * pa/pa-7100.h: Delete file.
7628 2002-06-15  Roger Sayle  <roger@eyesopen.com>
7630         * fold-const.c (comparison_to_compcode): New function to convert
7631         an comparison TREE CODE into a bit-based representation.
7632         (compcode_to_comparison): New function to convert from this bit
7633         based representation back to a comparison TREE CODE.
7634         (fold_truthop): Simplify (x<y) && (x==y) and related composite
7635         comparisons.
7637 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
7639         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
7641         * stor-layout.c (compute_record_mode): Remove check for
7642         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
7643         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
7644         MEMBER_TYPE_FORCES_BLK.
7646         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
7648         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
7650 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
7652         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
7654 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
7656         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
7657         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
7658         * configure, config.in: Regenerate.
7660 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7662         * loop.c (check_final_value): Use v->always_executed
7663         instead of v->always_computable.
7664         * unroll.c (final_giv_value): Don't calculate the final
7665         value as a function of the biv if the giv is not computed
7666         for every loop iteration.
7668 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7670         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
7672 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
7674         PR c/6677
7675         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
7676         the truncation down when the target type is signed.
7677         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
7678         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
7679         the conversion if the target type is a smaller type.
7681 2002-06-14  Richard Henderson  <rth@redhat.com>
7683         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
7684         earlier.  Re-factor comparisons vs extrema.
7686 2002-06-14  Richard Henderson  <rth@redhat.com>
7688         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
7690 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7692         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
7693         * sched-deps.c (add_dependence): Likewise.
7694         (group_leader): Likewise.
7695         * sched-rgn.c (init_ready_list): Likewise.
7696         * doc/rtl.texi: Adjust accordingly.
7698 2002-06-13  Jeffrey Law  <law@redhat.com>
7700         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
7701         null pointer checks were eliminated.  Update prototype.
7702         (delete_null_pointer_checks): Similarly.
7703         * rtl.h (delete_null_pointer_checks): Update prototype.
7704         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
7705         delete_null_pointer_checks deletes one or more null
7706         pointer checks.  Do not run cleanup_cfg before gcse, the
7707         CFG is accurate and optimized at that point..
7709         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
7710         of hard registers.
7712 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
7714         * Makefile.in (libgcc.mk): Depend on specs.
7716 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
7718         * sh.md (mulsi3): Update way how to find insns in a sequence.
7720 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
7722         * sh.h: Define HARD_REGNO_RENAME_OK
7723         * sh.c: sh_hard_regno_rename_ok: New. If current function has
7724         interrupt_handler attribute, only registers saved on stack are OK.
7725         * sh-protos.h: Declare sh_hard_regno_rename_ok.
7727 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
7729         * config/sh/sh.md (jump): Emit jump insn.
7730         (call_pcrel): Get pattern of the result of gen_call_site.
7731         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
7733 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7735         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
7736         * cpptrad.c: Update comments.
7737         (skip_whitespace, copy_comment): Take a new parameter.
7738         (skip_escaped_newlines): Don't duplicate escaped newline test.
7739         (copy_comment): Different location for CUR, decide here how
7740         to copy / replace the comment.
7741         (skip_whitespace): Copy whitespace.
7742         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
7743         (scan_out_logical_line): Let copy comment handle keeping or
7744         replacing comments.
7745         (scan_parameters, _cpp_create_trad_definition): Update.
7747 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
7749         * reload.c (get_secondary_mem,find_reloads_address,
7750         find_reloads_address_1): Pass reference to MEM to find_reloads_address
7751         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
7753 2002-06-13  Jessica Han  <jessica@cup.hp.com>
7755         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
7756         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
7757         * doc/tm.texi: Document them.
7758         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
7759         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
7760         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
7761         (ASM_OUTPUT_FDESC): Likewise.
7763 2002-06-13  Eric Christopher  <echristo@redhat.com>
7765         * diagnostic.c (output_format): Fix thinko.
7767 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
7769         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
7770         (DWARF2_UNWIND_INFO): Define to 0.
7772         * config/sh/sh.c (calc_live_regs): Don't use initial_value
7773         optimization for PR_MEDIA_REG.
7775 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7777         * cpphash.h (_cpp_lex_identifier_trad): Remove.
7778         * cpplib.c (end_directive): Don't skip, always remove overlay
7779         apart from #define.
7780         (prepare_directive_trad): Handle NULL pfile->directive.
7781         (_cpp_handle_directive): Always call prepare_directive_trad
7782         if traditional.
7783         * cppmain.c (check_multiline_token): Rename account_for_newlines,
7784         generalize inputs.
7785         (scan_translation_unit_trad): Use it.
7786         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
7787         output, get escaped newline in comment close correct.
7788         (check_output_buffer, skip_whitespace): Update.
7789         (_cpp_lex_identifier_trad): Remove.
7790         (scan_out_logical_line): Handle -C and comments in directives
7791         properly.
7793 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7795         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
7796         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
7797         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
7798         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
7799         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
7800         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
7801         (SELECT_SH5_COMPACT_NOFPU): Likewise.
7802         (TARGET_SWITCHES): Use them.
7803         (TARGET_CPU_DEFAULT): Define if not already defined.
7804         (TARGET_DEFAULT): Use it.
7805         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
7806         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
7807         * config/sh/t-monolib: New file.
7809 2002-06-13  Roger Sayle  <roger@eyesopen.com>
7811         * toplev.c (rest_of_compilation): Simplify (and correct) the
7812         logic of the first delete-null-pointer-checks pass.
7814 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
7816         * i386.c (ix86_expand_movstr):  Fix pasto.
7818 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
7820         * reload.c (find_valid_class):  Fix thinko in my previous patch.
7822 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
7824         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
7825         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
7826         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
7827         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
7829 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
7831         * tree-inline.c (expand_call_inline): Don' mess with _DECL
7832         fields.
7834 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
7836         * diagnostic.c (output_format): Recognize "%H" as a format
7837         specifier for a location_t.
7838         (text_specifies_location): New function.
7839         (diagnostic_set_info): Use it.
7841 2002-06-13  Jeffrey Law  <law@redhat.com>
7843         * emit-rtl.c (static_regno_reg_rtx): Define.
7844         (init_emit_once): Initialize static_regno_reg_rtx.
7845         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
7846         of building new hard reg objects once per function.
7847         (gen_rtx_REG): Try to share hard regs.
7848         * regclass.c (init_fake_stack_mems): New function broken out from
7849         init_regs.
7850         * rtl.h (init_fake_stack_mems): Declare.
7851         * toplev.c (lang_independent_init): Call init_regs before
7852         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
7854         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
7856         * alias.c (argument_registers): Remove.
7857         (init_alias_once): Initialize static_reg_base_value here.  Remove
7858         initialization of argument_registers.
7859         (init_alias_once_per_function): Remove.
7860         (init_alias_analysis): Copy all the entries from static_reg_base_value
7861         into new_reg_base_value all at once.
7862         * rtl.h (init_alias_once_per_function): Remove declaration.
7863         * function.c (prepare_function_start): Do not call
7864         init_alias_once_per_function.
7866         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
7867         starting a sequence and emitting an INSN.
7869 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
7871         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
7873 2002-06-13  David S. Miller  <davem@redhat.com>
7875         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
7877 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
7879         * cpplib.c (end_directive): Handle line skipping.  Only remove
7880         the rest of the line if the directive was valid.
7881         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
7882         expanding a traditional macro.
7883         * cpptrad.c (recursive_macro): New.
7884         (read_logical_line_trad): Handle skipping.
7885         (scan_out_logical_line): Continue after a successful directive.
7886         Don't expand macros whilst skipping, or if recursing.
7887         (_cpp_create_trad_definition): scan_out_logical_line now sets
7888         the output current position.
7890 2002-06-12  Eric Christopher  <echristo@redhat.com>
7892         From Chris Demetriou  <cgd@broadcom.com>
7893         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
7894         comment.
7895         (ISA_HAS_MADD_MSUB): Ditto.
7896         (ISA_HAS_NMADD_NMSUB): Ditto.
7898 2002-06-12  Eric Christopher  <echristo@redhat.com>
7900         * config.gcc: Consolidate little endian handling and
7901         little/big endian targets.
7902         * config/mips/elfl.h: Remove file.
7903         * config/mips/elfl64.h: Ditto.
7904         * config/mips/ecoffl.h: Ditto.
7905         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
7907 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
7909         * gengtype.h (xvasprintf): New prototype.
7910         (xasprintf): New prototype.
7911         (struct outf): New.
7912         (get_output_file): Return an outf_p.
7913         (header_file): Is now an outf_p.
7914         (base_files): Now are outf_p.
7915         (oprintf): New.
7916         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
7917         rather than stdio operations.  Use xasprintf in a few places,
7918         when appropriate.
7919         (xvasprintf): New.
7920         (xasprintf): New.
7921         (struct filemap): Delete.
7922         (files): Delete.
7923         (output_files): New.
7924         (oprintf): New.
7925         (create_file): Create an outf_p.  Add parameter to indicate output
7926         file name, change all callers.
7927         (open_base_files): Create gtype-desc.c here.
7928         (get_output_file_with_visibility): Rewrite.
7929         (get_output_file_name): Just look at 'name' field in struct outf.
7930         (close_output_files): Rewrite.
7932 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
7934         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
7935         (MASK_G_FLOAT): Define.
7936         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
7937         (TARGET_SWITCHES): Likewise.
7938         (TARGET_DEFAULT): Likewise.
7940 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
7942         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
7943         * config/mips/mips.c (mips_output_filename): Don't print a
7944         ".file" directive if we are using DWARF-2.
7945         (mips_output_function_prologue): Do not emit source file
7946         name for TARGET_GAS.
7948 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
7950         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
7951         decide whether emit the short opcode.
7952         * i386.h (x86_shift1): Declare.
7953         (TARGET_SHIFT1): New macro.
7954         * i386.c (x86_shift1): New global variable.
7956         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
7957         unconditionally; make loop to rebuild CFG; kill unnecesary
7958         find_basic_block calls; kill compute_bb_for_insn call.
7959         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
7960         * haifa-sched.c (sched_init): Likewise.
7961         * ssa-ccp.c (ssa_const_prop): Likewise.
7962         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
7964 2002-06-11  David S. Miller  <davem@redhat.com>
7966         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
7967         active_insn_p.
7969 2002-06-11  Richard Henderson  <rth@redhat.com>
7971         * c-common.c (builtin_define_type_max): New.
7972         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
7973         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
7975         From Joseph S. Myers:
7976         * glimits.h: Rewrite to expect the double underscore definitions
7977         from the compiler.
7979         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
7980         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
7981         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
7982         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
7983         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
7984         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
7985         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
7986         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
7988 2002-06-11  Richard Henderson  <rth@redhat.com>
7990         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
7991         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
7992         (code_for_builtns): Update.
7993         (alpha_init_builtins): Add __builtin_thread_pointer and
7994         __builtin_set_thread_pointer.
7995         (alpha_expand_builtin): Handle void builtins.
7996         * doc/extend.texi (Alpha Built-in Functions): Update.
7998 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
8000         PR target/6997
8001         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
8003 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8005         * config.gcc: Make the name of the extra-modes file adjustable
8006         by target stanzas.
8007         (s390x, strongarm, xscale stanzas): Use this facility.
8008         * configure.in: Update to match.
8009         * configure: Regenerate.
8011 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
8013         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
8014         max/mins as unsigned GE compares.
8016 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
8018         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
8019         * config/vax/bsd.h: New file.
8020         * config/vax/netbsd.h: Add missing notice.
8021         (CPP_PREDEFINES): Remove.
8022         (TARGET_OS_CPP_BUILTINS): Define.
8023         (CPP_SPEC): Use NETBSD_CPP_SPEC.
8024         * config/vax/openbsd.h: Update copyright years.
8025         (CPP_PREDEFINES): Remove.
8026         (TARGET_OS_CPP_BUILTINS): Define.
8027         * config/vax/ultrix.h: Likewise.
8028         * config/vax/vaxv.h: Likewise.
8029         * config/vax/vms.h: Likewise.
8030         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
8031         (CPP_PREDEFINES, CPP_SPEC): Remove.
8033 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
8035         * i386.md (addqi_1_slp, subqi_1_slp
8036         (andqi_ext0, testqi_ext0): Remove unnecesary check.
8037         (addhi*, addqi*): Simplify "dec" condition.
8038         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
8039         (and, or, xor to QImode splitters): New.
8040         (iorqi_ext*): New.
8041         (xorqi_ext_0): New.
8042         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
8043         (andqi_ext_1_rex64): New.
8044         (ashrqi*_slp): New.
8045         (ashlqi*_slp): New.
8046         (lshlqi*_slp): New.
8047         (rotrqi3*_slp): New.
8048         (rotlqi3*_slp): New.
8050 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8052         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
8053         softfloat.h.
8054         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
8055         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8056         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
8057         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
8058         __LONG_DOUBLE_128__ setting, _CALL_* setting.
8059         (CPP_DEFAULT_SPEC): Delete.
8060         (CPP_FLOAT_DEFAULT_SPEC): Delete.
8061         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
8062         (CPP_SYSV_DEFAULT_SPEC): Delete.
8063         (CPP_ENDIAN_BIG_SPEC): Delete.
8064         (CPP_ENDIAN_LITTLE_SPEC): Delete.
8065         (CPP_ENDIAN_SPEC): Delete.
8066         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
8067         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
8068         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
8069         cpp_longdouble_default.
8070         * config/rs6000/softfloat.h: Delete.
8071         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
8072         (EXTRA_SPECS): Delete cpp_cpu.
8073         (TARGET_CPU_CPP_BUILTINS): New.
8074         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
8075         prototype.
8076         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
8077         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
8078         (CPP_DEFAULT_SPEC): Delete.
8079         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
8080         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
8081         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
8082         (CPP_DEFAULT_SPEC): Delete.
8083         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8084         (CPLUSPLUS_CPP_SPEC): Likewise.
8085         (CPP_CPU_SPEC): Delete.
8086         (CPP_DEFAULT_SPEC): Delete.
8087         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
8088         (CPLUSPLUS_CPP_SPEC): Likewise.
8089         (CPP_CPU_SPEC): Delete.
8090         (CPP_DEFAULT_SPEC): Delete.
8091         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
8092         (CPP_DEFAULT_SPEC): Delete.
8093         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
8094         (CPP_DEFAULT_SPEC): Delete.
8096         * doc/gty.texi: Small updates.
8098 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
8100         * objc/objc-act.c (warn_with_ivar): Adjust calls to
8101         diagnostic_count_error.
8102         (warn_with_method): Likewise.
8104         * diagnostic.h (warnings_are_errors_message): New field of
8105         diagnostic_context.
8106         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
8107         match semantics.
8108         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
8109         (diagnostic_count_diagnostic): Make aware of other kinds of
8110         diagnostics.
8111         (diagnostic_initialize): Initialize warnings_are_errors_message field.
8113 2002-06-11  Tom Tromey  <tromey@redhat.com>
8115         For PR java/6520:
8116         * fold-const.c (fold_convert): Don't modify existing tree's type.
8118 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
8120         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
8122 2002-06-11  Richard Henderson  <rth@redhat.com>
8124         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
8126 2002-06-11  Richard Henderson  <rth@redhat.com>
8128         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
8129         DWARF2_UNWIND_INFO is false.
8131 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
8133         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
8135         * config/s390/s390.c (emit_prologue): gen_store_multiple
8136         returns an insn now, not a pattern.
8138 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8140         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
8141         $(TEXI2DVI) -o.
8143 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
8145         * i386.c (x86_promote_QImode): Set for Athlon
8146         (x86_fast_prefix): New global variable.
8147         (x86_arch_always_fancy_math_387): Fix formating.
8148         * i386.h (x86_fast_prefix): Declare
8149         (TARGET_FAST_PREFIX): define.
8150         * i386.md (and to strict_low_part, HI to SI
8151         promoting splitter): Use new macro.
8153         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
8155 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
8157         * Makefile.in (distclean): Delete junk left in testsuite
8158         directory, too.
8160 2002-06-11  Jeffrey Law <law@redhat.com>
8162         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
8163         last insn created by the splitter.
8165         * caller-save.c (init_caller_save): Move creation of SAVEINSN
8166         and RESTINSN into into the scope of the sequence.
8168         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
8169         RETURN insns.
8171         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
8173         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
8174         not the pattern.  So extract the pattern from the insn.
8176         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
8178 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8180         * config/s390/s390.md (movsi): Only use floating point
8181         register alternatives when operands are already fprs.
8182         (movdi_31, movdi_64): Likewise.
8184 2002-06-11  David S. Miller  <davem@redhat.com>
8186         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
8187         Only run RTX equality checks on INSN_P rtl.
8189 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
8191         * config/s390/s390.md (reload_base, ltorg): Remove.
8192         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
8193         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
8194         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
8195         s390_asm_output_pool_prologue): Likewise.
8196         * s390.h (s390_pool_start_insn): Likewise.
8198         * s390.c (s390_output_symbolic_const): Remove support for
8199         old-style pool chunks.
8200         (s390_function_epilogue): Likewise.
8201         (s390_output_constant_pool): Likewise.  Also, fix incorrect
8202         alignment for 64-bit literal pools.
8203         (print_operand_address): Remove 'y' and 'Y' format flags.
8204         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
8205         old-style pool chunks.
8206         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
8207         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
8208         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
8210         * s390.c (consttable_operand): New function.
8211         * s390-protos.h (consttable_operand): Declare it.
8212         * s390.h (PREDICATE_CODES): Add consttable_operand.
8213         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
8214         consttable_sf, consttable_df, pool_start_31, pool_end_31,
8215         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
8216         * s390.c (struct constant, struct constant_pool): New data types.
8217         (constant_modes, gen_consttable): New variables.
8218         (s390_start_pool, s390_end_pool, s390_add_pool,
8219         s390_dump_pool, s390_free_pool): New functions.
8220         (s390_chunkify_pool): Completely reimplement literal pool
8221         overflow handling.
8223         * s390.c (s390_pool_overflow): New variable.
8224         * s390.h (s390_pool_overflow): Declare it.
8225         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
8226         jumps in literal pool overflow situations.
8228         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
8229         (s390_frame_info): Account for possible use of RETURN_REGNUM
8230         by new literal pool overflow code.
8231         (s390_emit_prologue): Likewise.
8233 2002-06-05  David S. Miller  <davem@redhat.com>
8235         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
8236         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
8237         emit_insns_before_scope, emit_insns_after,
8238         emit_insns_after_scope): Delete declaration.
8239         * ada/misc.c (insert_code_for): Use emit_insn* instead of
8240         emit_insns_foo.
8241         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
8242         (alpha_set_memflags): Fix comment.
8243         (set_frame_related_p): Use get_insns instead of gen_sequence.
8244         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
8245         emitting no insns.
8246         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
8247         gen_sequence.
8248         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
8249         * config/fr30/fr30.c (fr30_move_double): Likewise.
8250         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
8251         Likewise.
8252         * config/ia64/ia64.c (spill_restore_mem): Likewise.
8253         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
8254         no insns.
8255         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
8256         instead of gen_sequence.
8257         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
8258         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
8259         * config/sh/sh.c (sh_need_epilogue): Likewise.
8260         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
8261         attributes.
8262         (setjmp pattern and split): Use them to avoid splitter which emits
8263         no RTL.
8264         * genattrtab.c (main): Emit include of function.h
8265         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
8266         get_insns instead of gen_sequence.
8267         * config/cris/cris.c (cris_split_movdx): Likewise.
8268         * emit-rtl.c (emit_insns*): Kill.
8269         (try_split): Expect insn list instead of SEQUENCE.
8270         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
8271         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
8272         Make them abort if a SEQUENCE is given and RTL checking is
8273         enabled.
8274         (emit_*_scope): Don't forget to set scope on final insn.
8275         (gen_sequence): Move from here...
8276         * ssa.c (gen_sequence): To here as private function.
8277         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
8278         comments.
8279         (expand_builtin_return, expand_builtin_mathfn): Likewise.
8280         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
8281         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
8282         (expand_builtin_expect_jump): Use get_insns and fix comments.
8283         * calls.c (try_to_integrate): Use emit_insn_foo.
8284         (expand_call, emit_library_call_value_1): Likewise.
8285         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
8286         (emit_move_insn_1): Use get_insns instead of gen_sequence.
8287         (expand_expr): Use emit_insn_foo.
8288         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
8289         * except.c (build_post_landing_pads): Likewise.
8290         * flow.c (attempt_auto_inc): Likewise.
8291         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
8292         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
8293         * function.c (fixup_var_refs_insn): Use get_insns instead of
8294         gen_sequence.
8295         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
8296         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
8297         (fixup_stack_1, purge_addressof_1, expand_main_function,
8298         get_arg_pointer_save_area): Likewise.
8299         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
8300         expand_function_end): Use emit_insn_foo.
8301         (record_insns, keep_stack_depressed): Work with insn list instead
8302         of SEQUENCE, fix comments.
8303         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
8304         noce_try_store_flag_constants, noce_try_store_flag_inc,
8305         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
8306         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
8307         (noce_process_if_block): Use get_insns instead of gen_sequence.
8308         * optabs.c (add_equal_note): Work with insn list, fix comments.
8309         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
8310         (expand_unop, expand_complex_abs, expand_unop_insn,
8311         expand_no_conflict_block): Likewise.
8312         (gen_move_insn): Use get_insns instead of gen_sequence.
8313         (gen_cond_trap): Likewise.
8314         * integrate.c (copy_rtx_and_substitute): Likewise.
8315         (emit_initial_value_sets): Use emit_insn_foo.
8316         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
8317         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
8318         now that RTL generators give insn lists.
8319         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
8320         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
8321         instead of gen_sequence.
8322         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
8323         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
8324         instead of gen_sequence.
8325         * loop.c (move_movables, emit_prefetch_instructions,
8326         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
8327         Likewise.
8328         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
8329         (product_cheap_p): Likewise, and add commentary about RTL wastage
8330         here.
8331         * lcm.c (optimize_mode_switching): Use get_insns instead of
8332         gen_sequence.
8333         * profile.c (gen_edge_profiler): Likewise.
8334         * regmove.c (copy_src_to_dest): Likewise.
8335         * reg-stack.c (compensate_edge): Likewise and fix comment.
8336         * gcse.c (process_insert_insn): Likewise.
8337         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
8338         * jump.c (delete_prior_computation): Update comment.
8339         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
8340         of gen_sequence, update comments to match.
8341         * recog.c (peephole2_optimize): Work with insn lists instead of
8342         SEQUENCE rtl.
8343         * sched-vis.c (print_pattern): Abort on SEQUENCE.
8344         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
8345         Use get_insns instead of gen_sequence.
8346         (copy_loop_body): Likewise and don't emit dummy NOTE.
8347         * genrecog.c: Don't mention SEQUENCE rtl in comments.
8348         * combine.c (try_combine): Expect insn lists from split generator.
8349         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
8350         hand.
8352 2002-06-11  Roger Sayle  <roger@eyesopen.com>
8353             Andreas Jaeger <aj@suse.de>
8355         * cfgbuild.c: Update copyright years.
8357 2002-06-11  Andreas Schwab  <schwab@suse.de>
8359         * config/m68k/m68k.h (PREDICATE_CODES): Define.
8361 2002-06-11  Eric Christopher  <echristo@redhat.com>
8363         * doc/tm.texi (Run-time Target): Add comment about flag_iso
8364         and strict ANSI.
8365         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
8366         * config/mips/ecoffl.h: Ditto.
8367         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
8368         (CPP_PREDEFINES): Ditto.
8369         * config/mips/elfl64.h: Ditto.
8370         * config/mips/elfl.h: Ditto.
8371         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
8372         out until irix header consolidation.
8373         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
8374         with SUBTARGET_OS_CPP_BUILTINS.
8375         * config/mips/iris6.h: Ditto.
8376         (CPLUSPLUS_CPP_SPEC): Remove.
8377         * config/mips/linux.h: Ditto.
8378         * config/mips/netbsd.h: Ditto.
8379         * config/mips/openbsd.h: Ditto.
8380         * config/mips/rtems.h: Ditto.
8381         * config/mips/rtems64.h: Ditto.
8382         * config/mips/sni-svr4.h: Ditto.
8383         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
8384         ISA_MIPS32, ISA_MIPS64): New defines.
8385         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
8386         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
8387         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
8388         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
8389         (TARGET_CPU_CPP_BUILTINS): Define.
8390         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
8391         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
8392         (movdicc): Remove check for ISA_MIPS32.
8393          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
8394         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
8395         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
8396         sunge_sf, sunle_df, sunle_sf): New patterns.
8398 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8400         * Makefile.in: Update cppmain.o.
8401         * cpphash.h (struct cpp_reader): Move some members to a
8402         nested structure.
8403         (trad_line): Rename saved_line.
8404         (_cpp_read_logical_line_trad): Update.
8405         (_cpp_remove_overlay): New.
8406         * cppinit.c (cpp_create_reader): No need to set saved_line.
8407         (cpp_destroy): Update.
8408         (cpp_read_main_file): Only overlay if compiling.
8409         * cpplex.c (continue_after_nul): Return false if in directive.
8410         * cpplib.c (EXPAND): New.
8411         (directive_table, SEEN_EOL): Update.
8412         (end_directive): Remove overlay if traditional; don't skip
8413         line in traditional #define.
8414         (prepare_directive_trad): New.
8415         (_cpp_handle_directive, run_directive): Update for traditional
8416         directives.
8417         (lex_macro_node): Simplify, don't use lex_identifier_trad.
8418         * cpplib.h (struct options): Add preprocess_only.
8419         * cppmain.c: Don't include intl.h.
8420         (cpp_preprocess_file): Set options->preprocess_only.
8421         (scan_translation_unit_trad): Fix, and print line numbers.
8422         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
8423         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
8424         save_replacement_text, _cpp_create_trad_definition): Update for
8425         variable renaming.
8426         (_cpp_overlay_buffer): Save line number.
8427         (_cpp_remove_overlay): Rename from restore_buff, restore line.
8428         (_cpp_read_logical_line_trad): Don't handle overlays here.
8429         (scan_out_logical_line): Process directives.
8431 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
8433         * gthr-win32.h: Wrap functions in extern "C".
8434         (__gthread_key_t): Typedef as unsigned long,
8435         not win32 DWORD.
8436         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
8437         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
8438         (__gthr_win32_once, __gthr_win32_key_create,
8439         __gthr_win32_key_delete, __gthr_win32_getspecific,
8440         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8441         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8442         __gthr_win32_mutex_unlock): Declare.
8443         (__gthread_once,__gthread_key_create,
8444         __gthread_key_delete, __gthread_getspecific,
8445         __gthread_setspecific, __gthread_mutex_init_function,
8446         __gthread_mutex_lock,__gthread_mutex_trylock,
8447         __gthread_mutex_unlock): Call corresponding
8448         __gthr_win32_* extern implementations if #defined
8449         __GTHREAD_HIDE_WIN32API.
8450         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
8451         $(srcdir)/config/i386/gthr-win32.c
8452         * config/i386/gthr-win32.c: New implementation file.
8453         (__gthr_win32_once, __gthr_win32_key_create,
8454         __gthr_win32_key_delete, __gthr_win32_getspecific,
8455         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
8456         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
8457         __gthr_win32_mutex_unlock): New functions, based on
8458         static inlines in gthr-win32.h.
8460 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
8462         * config/xtensa/xtensa.c (override_options): Don't warn about
8463         using -fpic or -fPIC when PIC is enabled by default.
8465 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8467         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
8469 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8471         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
8472         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
8473         exists, substitute its pathname as @extra_modes_file@, define
8474         EXTRA_MODES_FILE to be an appropriate string to #include it
8475         with, and define EXTRA_CC_MODES to 1.
8477         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
8478         it's defined.  Get rid of redundancy in calling sequence for
8479         CC; don't use it to define CCmode, to avoid a warning.
8480         * libgcc2.c: Include symcat.h for the sake of machmode.def.
8482         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
8483         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
8484         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
8485         New files.
8486         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
8487         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
8489         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
8490         defining extra CC modes.
8492 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8493             Andreas Jaeger <aj@suse.de>
8495         * cfgrtl.c (create_basic_block_structure):  Remove index argument
8496         and use last_basic_block++ instead.  (create_basic_block): Update.
8497         * cfgbuild.c (find_basic_blocks_1): Likewise.
8499         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
8500         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
8501         * sched-ebb.c (schedule_ebbs): Likewise.
8502         * sched-rgn.c (schedule_insns): Likewise.
8503         * ssa-ccp.c (ssa_const_prop): Likewise.
8504         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
8505         * toplev.c (rest_of_compilation): Likewise.
8506         * config/ia64/ia64.c (ia64_reorg): Likewise.
8508 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8510         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
8511         of matching registers.
8513 2002-06-10  Roger Sayle  <roger@eyesopen.com>
8515         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
8516         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
8518 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
8520         * config/mmix/mmix.h: Improve comments.
8521         (CPP_SPEC, CPP_PREDEFINES): Don't define.
8522         (TARGET_CPU_CPP_BUILTINS): Define.
8523         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
8524         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
8525         unused predicate.
8526         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
8527         compiler warning.
8528         (mmix_constant_address_p): Remove another
8529         redundant test before case.
8530         (mmix_canonicalize_comparison): Remove unused function.
8531         (mmix_print_operand_address): Don't test and adjust for operand in
8532         non-canonical format.
8533         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
8534         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
8536 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8538         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
8539         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
8540         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
8541         (gen_compare): Use CCmode unconditionally.
8543 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8545         PR optimization/6759
8546         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
8547         the REQ_EQUAL note.
8549 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8551         PR c/6660
8552         * c-decl.c (grokfield): Allow user defined types if they declare
8553         structs or unions for unnamed fields.
8555 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8557         PR c/6809
8558         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
8560 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8562         PR optimization/6842
8563         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
8564         operand subreg cannot be simplified.
8566 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8568         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
8569         (compare_constant): Likewise.
8570         (output_addressed_constants): Likewise.
8572 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
8574         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
8575         merge bb with itself.
8577 2002-06-10  Richard Henderson  <rth@redhat.com>
8579         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
8580         (builtin_zapnot): Likewise.
8582         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
8583         reservation.
8585 2002-06-10  Eric Christopher  <echristo@redhat.com>
8587         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
8588         prototype and function.
8589         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
8590         (call_insn_operand): Remove half pic references.
8591         (legitimate_address_p): Ditto.
8592         * config/i386/i386.h: Remove half pic defines.
8594 2002-06-10  Eric Christopher  <echristo@redhat.com>
8596         * doc/extend.texi (Return Address): Add note explaining the side-
8597         effects of inlining on __builtin_return_address.
8599 2002-06-10  Tom Tromey  <tromey@redhat.com>
8601         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
8602         (c-common.o): Depend on langhooks.h.
8604 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8606         * cpphash.h (_cpp_read_logical_line_trad,
8607         _cpp_expansions_different_trad): Update prototypes.
8608         * cpplex.c (continue_after_nul): New.
8609         * cppmain.c: Include cpphash.h.
8610         (scan_translation_unit_trad): New.
8611         (cpp_preprocess_file): Call it.
8612         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
8613         overlay.
8614         (_cpp_expansions_different_trad): Update prototype.
8616 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
8618         Fix cfi generation for SH[1-4]:
8620         * sh.c (frame_insn): New function.
8621         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
8622         (push): Now returns rtx.  Use frame_insn.
8623         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
8624         of a DF register.
8625         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
8627 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
8629         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
8630         and gtype-desc.c.
8631         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
8632         (distclean): ... not here.  But do delete all testsuite/*.log,
8633         testsuite/*.sum files here.  Delete mkheaders.  Delete
8634         po/*.gmo and the testsuite directory in a split tree build.
8636 2002-06-10  Jeffrey Law  <law@redhat.com>
8638         * alias.c (static_reg_base_value): New to hold RTL for
8639         items allocated once per function for the aliasing code.
8640         (init_alias_once_per_function): Initialize static_reg_base_value.
8641         (init_alias_analysis): Avoid throw-away allocations of RTL by
8642         using pre-computed values in static_reg_base_value.
8643         * function.c (prepare_function_start): Call
8644         init_alias_once_per_function appropriately.
8645         * rtl.h (init_alias_once_per_function): Declare.
8646         * caller-save (init_caller_save): Restructure slightly to
8647         avoid lots of silly RTL generation.
8648         * expr.c (init_expr_once): Likewise.
8649         * reload1.c (reload_cse_regs_1): Allocate throw-away register
8650         RTL object here.  Pass it into children.
8651         (reload_cse_simplify_operands): Use passed-in register RTL
8652         object.
8653         (reload_cse_simplify): Pass through throw-away register
8654         RTL object.
8656 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
8658         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
8660 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
8662         * gcc.c (process_command): Avoid assignment to read-only location.
8663         Fix sizeof calculation.
8665 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
8667         * cpphash.h (struct cpp_macro): Put comments on their own lines.
8668         (_cpp_expansions_different_trad): New.
8669         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
8670         * cpptrad.c (canonicalize_text): New.
8671         (scan_out_logical_line): Handle no arguments correctly.
8672         (save_replacement_text): Commit memory when finished.
8673         (_cpp_expansions_different_trad): New.
8675 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8677         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
8678         TREELANG and COBOL.
8679         (lang_names): Add treelang and cobol.
8680         (get_file_basename): Add code to support treelang and cobol as
8681         4th and 5th users of c-common.c.
8683 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
8685         * Makefile.in (install-driver): Install driver as
8686         $(target_alias)-gcc-$(version).
8687         * gcc.c (spec_version): Make const.
8688         (process_command): Handle -V and -b by using exec.
8689         * doc/invoke.texi (Target Options): Restore -V option,
8690         update docs for -b option.
8692 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8694         * configure.in (remaining_languages_check):
8695         Added check that all languages specified were found.
8696         Exit if not found. Previous behaviour was silent failure.
8697         * configure: Regenerated.
8699 2002-06-10  Tim Josling  <tej@melbpc.org.au>
8701          First steps to making treelang documentation compliant, based on
8702          instructions in sourcebuild.texi. Also add to gcc.c list of
8703          default languages.
8705         * doc/contrib.texi: Add self as contributor of treelang.
8707         * doc/frontends.texi: Add mention of treelang.
8709         * doc/invoke.texi (Overall Options): Add mention of treelang.
8711         * doc/standards.texi:  Add mention of treelang.
8713 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
8715         * config/cris/cris.c: Include ggc.h
8717 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
8719         * cpphash.h (_cpp_push_text_context): Update.
8720         (_cpp_arguments_ok): New.
8721         * cppmacro.c (_cpp_arguments_ok): New, split out from...
8722         (collect_args): ...here.
8723         (_cpp_push_text_context): Change inputs.
8724         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
8725         replace_args_and_push): New.
8726         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
8727         Don't use IS macros directly.
8728         (scan_out_logical_line): Handle function-like macro argument
8729         collection.
8730         (push_replacement_text): Update.
8731         (replacement_length): Remove.
8732         (_cpp_create_trad_definition): Don't skip whitespace before
8733         checking for '('.
8735 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8737         * config/avr/avr.c (avr_mcu_types): Update for new devices.
8738         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
8739         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
8740         * config/avr/avr.md ("type" and "length" attributes): New type
8741         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
8742         output a single "call" or "rcall" insn depending on device size.
8743         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
8745 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
8747         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
8748         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
8749         assembler option.
8750         (CPP_CPU_SPEC): Add power3 and power4.
8751         (PROCESSOR_DEFAULT): Change to 604e.
8752         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
8753         (CPP_CPU_SPEC): Similar additions.
8754         (enum process_type): Add POWER4.
8755         (RTX_COSTS): Add POWER4.
8756         (CPP_CPU_SPEC): Similar additions.
8757         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
8758         (PROCESSOR_DEFAULT64): Define.
8759         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
8760         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
8761         branch adjustment.
8762         (rs6000_issue_rate): Add Power4.
8763         * config/rs6000/rs6000.md (cpu attr): Add power4.
8764         (iu compare): Remove 604, 604e, 620, 630.
8765         Add basic Power4 scheduling information.
8766         (mfcr/mtcrf): Change type attribute to cr_logical.
8768 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8770         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
8771         ATTRIBUTE_PRINTF_2.
8772         * gengtype-lex.l: Fix format specifier warning.
8774         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
8775         not isspace.
8776         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
8777         lieu of isspace/IDchar.
8778         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
8779         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
8780         ISSPACE.
8782 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
8784         * Makefile.in (LIBCPP_OBJS): Take out version.o.
8785         * cpphash.h (cpp_reader): Take out print_version member.
8786         * cppinit.c: (cpp_handle_option): Don't do anything with
8787         -version.  Just set help_only for --version, --target-help.
8788         Just set verbose option for -v.
8789         (cpp_post_options): Don't print a version string.
8791 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8793         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
8794         (avr_section_type_flags): New, handle .noinit* sections.
8796 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8798         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
8799         and include netbsd_entry_point.
8800         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
8801         (NETBSD_ENTRY_POINT): Define.
8803 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8805         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
8806         if not already defined.
8807         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
8809 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8811         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
8812         in a noreturn function.
8813         (avr_output_function_prologue, avr_output_function_epilogue):
8814         Correct function size calculation.  Do not crash on empty function.
8815         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
8817 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8819         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
8820         netbsd_link_spec and netbsd_entry_point.
8821         (LINK_SPEC): Use %(netbsd_link_spec).
8822         (NETBSD_ENTRY_POINT): Define.
8824 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8826         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
8827         linker emulation.
8828         (LINK_ARCH64_SPEC): Likewise.
8829         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
8830         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
8832 2002-06-08  Marc Espie  <espie@openbsd.org>
8834         * lists.c (free_list):  Fix typo in comment.
8836 2002-06-08  Andreas Jaeger  <aj@suse.de>
8838         * lcm.c (optimize_mode_switching): Add unused attribute for
8839         variable.
8841         * sched-deps.c (sched_analyze): Remove unused variable.
8843 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
8845         * diagnostic.def: Don't capitalize diagnostict descriptors.
8847 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8849         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
8850         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
8851         (NETBSD_ENTRY_POINT): Define.
8853 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8855         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
8856         NETBSD_LINK_SPEC_ELF.
8857         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
8858         (NETBSD_ENTRY_POINT): Define.
8859         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
8860         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
8861         netbsd_entry_point.
8862         (NETBSD_ENTRY_POINT): Define.
8864 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8866         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
8867         netbsd_link_spec and netbsd_entry_point.
8868         (LINK_SPEC): Use %(netbsd_link_spec).
8869         (NETBSD_ENTRY_POINT): Define.
8871 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
8873         * config/netbsd-elf.h (LINK_SPEC): Rename to...
8874         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
8875         to specify program entry point.
8877 2002-06-07  Jeff Law <law@redhat.com
8879         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
8880         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
8881         than creating a new register.
8882         (distribute_notes): Likewise.
8883         * df.c (df_reg_use_gen): Likewise.
8884         (df_reg_clobber_gen): Likewise.
8885         (df_ref_record): Likewise.
8886         * expr.c (use_regs): Likewise.
8887         * flow.c (propagate_one_insn): Likewise.
8888         (mark_set_1): Likewise.
8889         (mark_used_reg): Likewise.
8890         * reload.c (emit_reload_insns): Likewise.
8892 2002-06-07  Roger Sayle  <roger@eyesopen.com>
8894         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
8895         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
8896         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
8897         comparison code comp can be reversed.
8899 2002-06-07  Roger Sayle  <roger@eyesopen.com>
8901         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
8902         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
8903         equivalent x > -1.0 when -ffast-math.
8905 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8907         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
8908         * config/mips/t-netbsd: New file.
8910 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
8912         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
8913         options their own entries.
8914         (parse_option): Clarify comment.
8915         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
8916         special case.  Replace if/strcmp chain for -W options with
8917         use of new OPT_* entries for them.
8918         (cpp_handle_options): Update to match.
8919         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
8920         * c-decl.c: Update call to cpp_handle_option.
8922 2002-06-07  Akim Demaille  <akim@epita.fr>
8924         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
8925         Whitespace changes.
8927 2002-06-07  Jeffrey Law  <law@redhat.com>
8929         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
8930         on empty lists.
8932 2002-06-07  H.J. Lu  (hjl@gnu.org)
8934         * configure.in: Add --enable-__cxa_atexit.
8935         * configure: Regenerated.
8936         * config.in: Likewise.
8938         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
8939         not defined.
8941 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
8943         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
8945 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8947         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
8949 2002-06-07  Jason Merrill  <jason@redhat.com>
8951         * cppexp.c (num_equality_op): Use a temporary variable to work
8952         around gcc 3.0.4 bug.
8954 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
8956         * diagnostic.c (diagnostic_build_prefix): Tidy.
8958 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
8960         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
8961         scan_parameters, save_replacement_text, replacement_length): New.
8962         (scan_out_logical_line): Take a macro and save parameters if
8963         non-NULL.
8964         (_cpp_logical_line_trad): Update.
8965         (_cpp_create_trad_definition): Update to handle function-like
8966         macros.
8967         * cpplex.c (new_buff): Update.
8968         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
8969         * cpphash.h: ...here.
8970         (CPP_ALIGN2, _cpp_save_parameter): New.
8971         * cppmacro.c (save_parameter): Rename, export.
8972         (parse_params): Update.
8974 2002-06-07  Andreas Jaeger  <aj@suse.de>
8976         * config/mmix/mmix.c: Remove extra broken prototype for
8977         mmix_init_machine_status.
8979 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
8981         * gengtype.c: Add comments before all the routines.
8983 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
8985         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
8986         from and add t-sh64 to ${tmake_file}.
8987         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
8988         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
8989         * config/sh/t-netbsd-sh5-32: Remove.
8990         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
8991         MULTILIB_ENDIAN.
8992         (MULTILIB_DIRNAMES): Define.
8994 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
8996         * i386.md (and promoting splitters): Disable QI to SImode promoting
8997         when doing so changes immediate to be 32bit.
8999         * rtl.h (emit_*_scope): Declare.
9000         * emit-rtl.c (emit_*_scope): New global functions.
9001         (try_split): Copy scope.
9002         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
9003         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
9004         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
9005         noce_process_if_block, find_cond_trap): Copy scopes.
9006         * recog.c (peephole2_optimize): likewise.
9008 2002-06-06  Jeffrey Law  <law@redhat.com>
9010         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
9012 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
9014         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
9016 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9018         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
9019         ($(docdir)/gccinstall.info): New target.
9020         (info): Depend on it.
9021         (gccinstall.dvi): New target.
9022         (dvi): Depend on it.
9023         * doc/.cvsignore: Ignore new info files.
9024         * doc/install.texi (@setfilename): Reflect new info filename.
9026 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
9028         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
9029         on an UNSPEC.
9031 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
9033         PR objc/6834
9034         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
9035         c_common_get_alias_set.
9036         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
9038 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9040         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
9041         functions.
9042         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
9043         * avr/avr.c (avr_output_function_epilogue): Use above to determine
9044         function size.
9045         * pa/pa.c (pa_output_function_prologue): Likewise.
9047 2002-06-05  David S. Miller  <davem@redhat.com>
9049         * integrate.c (subst_constants): Handle 'B' RTL format.
9051 2002-06-05  Eric Christopher  <echristo@redhat.com>
9053         * varasm.c (make_decl_rtl): Fix comment for removed
9054         halfpic.c.
9056 2002-06-05  Eric Christopher  <echristo@redhat.com>
9058         * Makefile.in: Remove missed halfpic bits.
9060 2002-06-05  Eric Christopher  <echristo@redhat.com>
9062         * toplev.c: Remove half-pic.
9063         * config/mips/mips.c: Ditto.
9064         * config/mips/mips.h: Ditto. Remove unused defines.
9065         * config/mips/openbsd.h: Update comment to reflect above.
9066         * config/mips/mips.md: Remove half-pic constraints.
9067         * halfpic.h: Delete.
9068         * halfpic.c: Ditto.
9070 2002-06-05  Jeffrey Law  <law@redhat.com>
9072         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
9073         rejects (mem (lo_sum (reg) (unspec))), but will allow
9074         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
9076 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9078         * cpphash.h (_cpp_create_definition): Update prototype.
9079         (_cpp_push_text_context, _cpp_create_trad_definition): New.
9080         ( cpp_lex_identifier_trad): New.
9081         (_cpp_set_trad_context): New.
9082         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
9083         * cpplib.c (SEEN_EOL): Update.
9084         (lex_macro_node): Update for -traditional.
9085         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
9086         * cppmacro.c (_cpp_create_definition): Split into
9087         create_iso_definition() and _cpp_create_trad_definition().
9088         (warn_of_redefinition): Update prototype; handle traditional
9089         macros.
9090         (_cpp_push_text_context): New.
9091         * cpptrad.c (skip_whitespace, push_replacement_text): New.
9092         (lex_identifier): Call ht_lookup with correct start.
9093         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
9094         _cpp_set_trad_context): New.
9095         (scan_out_logical_line): Update to handle changing contexts.
9097 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
9099         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
9100         (shl*-*-elf*): Add.
9101         * config/sh/t-be (MULTILIB_ENDIAN): Set.
9102         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
9103         * t-sh (MULTILIB_ENDIAN): Set.
9104         (MULTILIB_OPTIONS): Use it.
9105         * t-sh64 (MULTILIB_OPTIONS): Likewise.
9106         (MULTILIB_DIRNAMES): Likewise.
9108 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
9110         * toplev.h (report_error_function): Remove.
9112         * diagnostic.h (location_t): New datatype.
9113         (text_info): Likewise.
9114         (diagnostic_info): Likewise.
9115         (output_prefix): New macro.
9116         (diagnostic_last_function_changed): Likewise.
9117         (diagnostic_set_last_function): Likewise.
9118         (diagnostic_last_module_changed): Likewise.
9119         (diagnostic_set_last_module): Likewise.
9120         (report_diagnostic): Now macro.
9121         (diagnostic_set_info): Declare.
9123         * diagnostic.c (report_problematic_module): Rename to
9124         diagnostic_repor_current_module.
9125         (set_diagnostic_context): Remove.
9126         (count_error): Rename to diagnostic_error_count.
9127         (error_function_changed): Remove.
9128         (record_last_error_function): Likewise.
9129         (error_module_changed): Likewise.
9130         (record_last_error_module): Likewise.
9131         (context_as_prefix): Rename to diagnostic_build_prefix.
9132         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
9133         (diagnostic_set_info): New function.
9135         * objc/objc-act.c: #include diagnostic.h
9136         (error_with_ivar): Adjust call to count_error.
9137         (warn_with_method): Likewise.
9138         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
9140 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
9142         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
9143         lang_hooks.types.make_type instead of make_node; set up
9144         __va_list_tag type decl.
9145         (xtensa_builtin_saveregs): Remove broken use of
9146         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
9147         for saved registers; add varargs alias set.
9149 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9151 config:
9152         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
9153         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
9154         CPP_PREDEFINES and part of CPP_SPEC.
9155         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
9156         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
9158 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
9160         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
9162 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
9164         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
9166 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
9168         * gengtype-yacc.y: Make sure all rules end with a semicolon.
9170 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
9172         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
9173         typo in function prototype and include "ggc.h" header.
9175 2002-06-04  Richard Henderson  <rth@redhat.com>
9177         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
9178         (print_operand) ['U']: Likewise.
9179         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
9180         (alpha_expand_unaligned_store_words): Likewise.
9181         (alpha_expand_builtin_vector_binop): Fix typo.
9182         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
9183         umulh, and cix insns.
9184         (one_arg_builtins): Add cix builtins.
9185         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
9186         (alpha_expand_builtin): Fix typo in arity.
9187         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
9188         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
9189         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
9190         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
9191         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
9192         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
9193         builtin_ctlz, builtin_ctpop): New.
9194         * doc/extend.texi (Alpha Built-in Functions): Update.
9196 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
9198         * gengtype.c (write_gc_root): Don't unnecessarily prevent
9199         global variable-length arrays being roots.
9201         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
9202         * configure.in (config_gtfiles): New variable.
9203         (all_gtfiles): Initialize from config_gtfiles.
9204         * configure: Regenerate.
9206 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9208 config/i386:
9209         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
9210         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
9211         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
9212         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
9213         win32.h (CPP_SPEC): Remove cpp_cpu.
9214         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
9215         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
9217 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
9219         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
9221 2002-06-04  Jeff Law <law@redhat.com.
9222             David Edelsohn <edelsohn@gnu.org>
9223             Michael Matz <matz@kde.org>
9225         * sched-int.h (struct deps): New field libcall_block_tail_insn.
9226         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
9227         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
9228         is set, then mark the current insn as being part of a libcall
9229         scheduling group.
9230         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
9232         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
9233         insns against the issue rate.
9235 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
9237         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
9238         * final.c (final_scan_insn): Likewise.
9239         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
9240         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
9241         * haifa-sched.c (unlink_other_notes): Likeewise.
9242         (reemit_notes): Likewise.
9243         * print-rtl.c (print_rtx): Likewise.
9244         * sched-deps (sched-analyze): Likewise.
9245         * rtl.c (note_insn_name): Likewise.
9246         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
9247         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
9248         (RANGE_*): Kill.
9250 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
9252         * varasm.c (mark_constants): Handle RTX format 'B'.
9254 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
9256         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
9257         (struct cpp_context): Add traditional fields.
9258         * cppmacro.c (paste_all_tokens, push_ptoken_context,
9259         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
9260         * cpptrad.c (skip_comment, lex_identifier,
9261         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
9263 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
9265         * gbl-ctors.h: Fix formatting.
9266         * gcc.c: Likewise.
9267         * gccspec.c: Likewise.
9268         * gcov.c: Likewise.
9269         * gcov-io.h: Likewise.
9270         * gcse.c: Likewise.
9271         * ggc-common.c: Likewise.
9272         * ggc.h: Likewise.
9273         * ggc-page.c: Likewise.
9274         * ggc-simple.c: Likewise.
9275         * global.c: Likewise.
9276         * graph.h: Likewise.
9277         * gthr-dce.h: Likewise.
9278         * gthr.h: Likewise.
9279         * gthr-posix.h: Likewise.
9280         * gthr-rtems.h: Likewise.
9281         * gthr-solaris.h: Likewise.
9282         * gthr-win32.h: Likewise.
9284 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
9286         Merge from pch-branch:
9288         * gengtype.h (UNION_OR_STRUCT_P): New macro.
9289         * gengtype.c (write_gc_structure_fields): Use it.
9290         (write_gc_root): Use it here too.
9292         * gengtype.c (write_gc_structure_fields): Assume that lengths
9293         of typenames fit into an 'int'; don't pass a size_t to "%d" in
9294         printf.
9295         (write_gc_marker_routine_for_structure): Likewise.
9296         (write_gc_types): Likewise.
9297         (write_gc_root): Likewise.
9299         * varray.h (VARRAY_CLEAR): New.
9300         (varray_clear): Prototype.
9301         * varray.c (varray_clear): New.
9302         * cselib.c (reg_values_old): New.
9303         (used_regs_old): New.
9304         (cselib_init): Use cached varrays if available to avoid
9305         generating large amounts of garbage.
9306         (cselib_finish): Don't throw away old varrays.
9308         * final.c (insn_addresses_): Move out of ifdef.
9310         * varray.c (uses_ggc): Make more varray kinds GCable.
9311         * varray.h (union varray_data_tag): Let gengtype see
9312         fields 'generic' and 'te'.
9313         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
9314         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
9315         (reg_to_stack): Don't call VARRAY_FREE.
9316         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
9317         (insn_addresses_): Use gengtype to mark.
9318         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
9319         pointers; handle generic pointers in unused union fields.
9320         (get_output_file_with_visibility): Include cselib.h,
9321         insn-addr.h in gtype-desc.c.
9322         * function.c (prologue): Use gengtype to mark.
9323         (epilogue): Likewise.
9324         (sibcall_epilogue): Likewise.
9325         * dependence.c: Include gt-dependence.h, ggc.h.
9326         (struct def_use): Use gengtype to mark.
9327         (struct loop): Likewise.
9328         (struct induction): Likewise.
9329         (struct dependence): Likewise.
9330         (def_use_chain): Likewise.
9331         (dep_chain): Likewise.
9332         (loop_chain): Likewise.
9333         (induction_chain): Likewise.
9334         (init_dependence_analysis): Don't free anything, just clear pointers.
9335         (build_def_use): Use GGC to allocate def_use.
9336         (add_loop): Use GGC to allocate loop.
9337         (find_induction_variable): Use GGC to allocate induction.
9338         (check_node_dependence): Use GGC to allocate induction, dependence.
9339         (dump_node_dependence): Don't free varrays.
9340         (end_dependence_analysis): Likewise.
9341         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
9342         (struct elt_loc_list): Likewise.
9343         (struct elt_list): Likewise.
9344         * cselib.c: Don't include obstack.h.
9345         (hash_table): Use gengtype to mark.
9346         (reg_values): Use gengtype to mark.
9347         (used_regs): Use gengtype to mark.
9348         (cselib_obstack): Delete.
9349         (cselib_startobj): Delete.
9350         (empty_vals): Mark as deletable.
9351         (empty_elt_lists): Mark as deletable.
9352         (empty_elt_loc_lists): Mark as deletable.
9353         (new_elt_list): Use GGC to allocate struct elt_list.
9354         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
9355         (clear_table): Don't delete obstack; don't unnecessarily clear
9356         deletable variables.
9357         (new_cselib_val): Use GGC to allocate struct cselib_val.
9358         (cselib_init): Don't set up obstacks.  Use GGC to allocate
9359         hash table.
9360         (cselib_finish): Just clear variables, don't free anything.
9361         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
9362         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
9363         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
9364         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
9365         (gt-reg-stack.h): New rule.
9366         (gt-dependence.h): New rule.
9367         (gtype-desc.o): Add cselib.h, insn-addr.h.
9369         * varray.c: Use only necessary headers.
9370         (element_size): New.
9371         (uses_ggc): New.
9372         (varray_init): Take type, not size.  Use GGC if appropriate.
9373         (varray_grow): Update for change to struct varray_head_tag.
9374         Use GGC if appropriate.
9375         * varray.h (struct const_equiv_data): Use gengtype.
9376         (enum varray_data_enum): New.
9377         (union varray_data_tag): Use gengtype.
9378         (struct varray_head_tag): Use gengtype.  Replace size field with
9379         enum varray_data_enum.
9380         (varray_init): Update prototype.
9381         (VARRAY_SCHED_INIT): Delete.
9382         (VARRAY_*_INIT): Update for change to varray_init.
9383         (VARRAY_SCHED): Delete.
9384         (VARRAY_PUSH_SCHED): Delete.
9385         (VARRAY_TOP_SCHED): Delete.
9386         * tree.h: Update for change to length specifier.
9387         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
9388         (clone_body): Likewise.
9389         * ssa.h (ssa_definition): Use gengtype to mark.
9390         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
9391         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
9392         * rtl.h (struct rtvec_def): Update for change to length specifier.
9393         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
9394         (struct initial_value_struct): Update for change to length specifier.
9395         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
9396         (ggc_add_tree_varray_root): Delete prototype.
9397         (ggc_mark_rtx_varray): Delete prototype.
9398         (ggc_mark_tree_varray): Delete prototype.
9399         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
9400         (ggc_add_tree_varray_root): Delete.
9401         (ggc_mark_rtx_varray): Delete.
9402         (ggc_mark_tree_varray): Delete.
9403         (ggc_mark_rtx_varray_ptr): Delete.
9404         (ggc_mark_tree_varray_ptr): Delete.
9405         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
9406         (create_varray): Delete prototype.
9407         * gengtype.c (varrays): Delete.
9408         (create_varray): Delete.
9409         (adjust_field_type): Detect array of string pointers.
9410         (process_gc_options): Remove code to handle varray_type option.
9411         (set_gc_used_type): Remove TYPE_VARRAY case.
9412         (output_escaped_param): New.
9413         (write_gc_structure_fields): Use output_escaped_param on all
9414         parameters.  Handle 'skip' with 'use_param' option.  Handle
9415         arrays of strings.  Remove TYPE_VARRAY handling.
9416         (write_gc_roots): Use boolean to detect 'length' option.
9417         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
9418         (struct_fields): Call adjust_field_type on array fields.
9419         (type): Remove VARRAY_TYPE case.
9420         (type_option): Likewise.
9421         * gengtype-lex.l: Don't consider varray_type a keyword.
9422         * function.h: Update for change to length specifier.
9423         (free_eh_status): Delete prototype.
9424         * function.c (free_after_compilation): Don't call free_eh_status.
9425         (reorder_blocks): Don't use VARRAY_FREE.
9426         * except.c (struct eh_status): Update for change to length specifier.
9427         remove varray_type specifier.
9428         (free_eh_status): Delete.
9429         * dwarf2out.c: Include gt-dwarf2out.h.
9430         (used_rtx_varray): Use gengtype to mark, move
9431         outside ifdefs.
9432         (incomplete_types): Likewise.
9433         (decl_scope_table): Likewise.
9434         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
9435         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
9436         * c-tree.h (struct lang_type): Update for change to length specifier.
9437         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
9438         * c-objc-common.c: Include gt-c-objc-common.h.
9439         (deferred_fns): Mark for gengtype.
9440         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
9441         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
9442         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
9443         (gtype-desc.o): Update dependencies.
9444         (dwarf2out.o): Add gt-dwarf2out.h.
9445         (varray.o): Update dependencies.
9446         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
9447         (gt-c-objc-common.h): New rule.
9448         (gt-dwarf2out.h): New rule.
9449         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
9451         * doc/gty.texi (GTY Options): Correct spelling.
9452         (GGC Roots): Likewise.
9453         * Makefile.in (TEXI_CPP_FILES): New.
9454         (TEXI_GCC_FILES): New.
9455         (TEXI_GCCINT_FILES): New.
9456         (TEXI_CPPINT_FILES): New.
9457         ($(docdir)/cpp.info): Use new macros.
9458         ($(docdir)/gcc.info): Likewise.
9459         ($(docdir)/gccint.info): Likewise.
9460         ($(docdir)/cppinternals.info): Likewise.
9461         (cpp.dvi): Likewise.
9462         (gcc.dvi): Likewise.
9463         (gccint.dvi): Likewise.
9464         (cppinternals.dvi): Likewise.
9466         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
9467         * doc/gccint.texi (Top): Include gty.texi.
9468         * doc/gty.texi: New file.
9470         * bitmap.c: Include ggc.h, gt-bitmap.h.
9471         (bitmap_ggc_free): New.
9472         (bitmap_elem_to_freelist): New.
9473         (bitmap_element_free): Use bitmap_elem_to_freelist.
9474         (bitmap_element_allocate): Allow use of GGC.
9475         (bitmap_clear): Use bitmap_elem_to_freelist.
9476         (bitmap_copy): Update for change to bitmap_element_allocate.
9477         (bitmap_set_bit): Likewise.
9478         (bitmap_operation): Update for changes elsewhere.
9479         (bitmap_initialize): Allow to create bitmaps that will use GGC.
9480         * bitmap.h (struct bitmap_element_def): Use gengtype.
9481         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
9482         (bitmap_initialize): Add extra parameter.
9483         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
9484         (BITMAP_ALLOCA): Delete.
9485         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
9486         (BITMAP_GGC_ALLOC): New.
9487         * Makefile.in (gtype-desc.o): Add bitmap.h.
9488         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
9489         (GTFILES): Add bitmap.c.
9490         (gt-bitmap.h): New rule.
9491         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
9492         * basic-block.h: Update for changes to bitmap_initialize.
9493         * except.c (exception_handler_label_map): Move into...
9494         (struct eh_status): Here.
9495         (struct eh_region): Make 'aka' GCable.
9496         (free_eh_status): Don't need to specially handle
9497         exception_handler_label_map.
9498         (add_ehl_entry): Update for changes to exception_handler_label_map.
9499         (find_exception_handler_labels): Likewise.
9500         (remove_exception_handler_label): Likewise.
9501         (maybe_remove_eh_handler): Likewise.
9502         (for_each_eh_label): Likewise.
9503         (remove_eh_handler): Allocate 'aka' using GGC.
9504         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
9505         to list of includes.
9507         * gengtype.c (write_gc_marker_routine_for_structure): Name
9508         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
9509         (write_gc_types): Arrange for the tests with NULL to be inlined.
9510         (write_gc_roots): Update uses of procedure pointers.
9511         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
9513         * Makefile.in (explow.o): Add dependency on gt-explow.h.
9514         (sdbout.o): Add dependency on gt-sdbout.h.
9516         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
9517         (mem_attrs_htab): Likewise.
9518         (init_emit_once): Don't call ggc_add_deletable_htab.
9519         * fold-const.c (size_htab): Use gengtype to clear unused entries.
9520         (size_int_type_wide): Don't call ggc_add_deletable_htab.
9521         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
9522         parameters, use them, change callers.
9523         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
9524         (write_gc_roots): Handle 'if_marked' option.
9525         (main): Don't need to call set_gc_used_type any more.
9526         * ggc.h (ggc_htab_marked_p): Delete.
9527         (ggc_htab_mark): Delete.
9528         (struct ggc_cache_tab): New.
9529         (gt_ggc_cache_rtab): New declaration.
9530         * ggc-common.c (struct d_htab_root): Delete.
9531         (d_htab_roots): Delete.
9532         (ggc_add_deletable_htab): Delete.
9533         (ggc_htab_delete): Handle new htab-deleting mechanism.
9534         (ggc_mark_roots): Use new htab-deleting mechanism.
9535         * tree.c (type_hash_table): Use gengtype to clear unused entries.
9536         Make static.
9537         (init_obstacks): Don't call ggc_add_deletable_htab.
9539         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
9540         (struct hashed_entry): Likewise.
9541         (nst_method_hash_list): Likewise.
9542         (cls_method_hash_list): Likewise.
9543         (HASH_ALLOC_LIST_SIZE): Delete.
9544         (ATTR_ALLOC_LIST_SIZE): Delete.
9545         * objc/objc-act.c (hash_init): Use ggc to allocate
9546         nst_method_hash_list, cls_method_hash_list.
9547         (hash_enter): Use ggc to allocate; allocate one entry at a time.
9548         (hash_add_attr): Likewise.
9549         (ggc_mark_hash_table): Delete.
9550         (objc_act_parse_init): Delete.
9551         (objc_init): Delete reference to objc_act_parse_init.
9552         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
9553         obstack.h.  Replace references to 'struct hash_table' with htab_t.
9554         (struct symbol_hash_entry): Replace hash header with key field.
9555         (struct file_hash_entry): Replace hash header with key field.
9556         (struct demangled_hash_entry): Replace hash header with key field.
9557         (hash_string_eq): New.
9558         (hash_string_hash): New.
9559         (symbol_hash_newfunc): Delete.
9560         (symbol_hash_lookup): Modify to use htab_t.
9561         (file_hash_newfunc): Delete.
9562         (file_hash_lookup): Modify to use htab_t.
9563         (demangled_hash_newfunc): Delete.
9564         (demangled_hash_lookup): Modify to use htab_t.
9565         (tlink_init): Modify to use htab_t.
9566         * hash.h: Delete.
9567         * hash.c: Delete.
9568         * ggc.h: Delete forward structure declarations.
9569         Delete prototypes for deleted functions.
9570         * ggc-common.c: Don't include hash.h.
9571         (ggc_add_tree_hash_table_root): Delete.
9572         (ggc_mark_tree_hash_table_entry): Delete.
9573         (ggc_mark_tree_hash_table): Delete.
9574         (ggc_mark_tree_hash_table_ptr): Delete.
9575         * gengtype.c (write_gc_structure_fields): Allow param_is option.
9576         (write_gc_marker_routine_for_structure): Use visibility of
9577         the parameter if there is one.
9578         * function.c: Replace hash.h with hashtab.h.  Replace references
9579         to 'struct hash_table *' with htab_t.
9580         (struct insns_for_mem_entry): Include a plain key.
9581         (fixup_var_refs_insns_with_hash): Update to use htab_t.
9582         (insns_for_mem_newfunc): Delete.
9583         (insns_for_mem_hash): Update to use htab_t.
9584         (insns_for_mem_comp): Likewise.
9585         (insns_for_mem_walk): Likewise.
9586         * c-lang.c: Include ggc.h.
9587         * Makefile.in (OBJS): Remove hash.o.
9588         (c-lang.o): Add GGC_H.
9589         (COLLECT2_OBJS): Remove hash.o.
9590         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
9591         (ggc-common.o): Remove hash.h.
9592         (function.o): Remove hash.h, add HASHTAB_H.
9593         (genautomata.o): Remove hash.h, add HASHTAB_H.
9595         * varasm.c (mark_const_str_htab_1): Delete.
9596         (mark_const_str_htab): Delete.
9597         (const_str_htab_del): Delete.
9598         (const_str_htab): Use gengtype to mark.
9599         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
9600         allocate them.
9601         * tree.c (mark_tree_hashtable_entry): Delete.
9602         (mark_tree_hashtable): Delete.
9603         * tree.h (mark_tree_hashtable): Delete prototype.
9604         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
9605         (ggc_mark): Likewise.
9606         (ggc_calloc): New.
9607         (htab_create_ggc): New.
9608         * ggc-common.c (ggc_calloc): New.
9609         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
9610         (struct type): Add param_struct structure.
9611         * gengtype.c (param_structs): New.
9612         (adjust_field_type): Handle param_is option.
9613         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
9614         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
9615         (write_gc_structure_fields): Add new PARAM parameter.  Update
9616         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
9617         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
9618         Use it to generate function name.  Update callers.
9619         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
9620         Process them.
9621         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
9622         option.
9623         (main): Define PTR as pointer-to-scalar.  Don't specially
9624         mark deferred_string or ehl_map_entry.
9625         * gengtype-yacc.y (PARAM_IS): Add new token.
9626         (externstatic): Use adjust_field_type.
9627         (type_option): Add PARAM_IS.
9628         * gengtype-lex.l: Add rule for typedef of function pointers.
9629         Add rule for PARAM_IS.
9630         (IWORD): Add size_t.
9631         * except.c (exception_handler_label_map): Use gengtype to mark.
9632         (type_to_runtime_map): Likewise.
9633         (mark_ehl_map_entry): Delete.
9634         (mark_ehl_map): Delete.
9635         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
9636         (t2r_mark_1): Delete.
9637         (t2r_mark): Delete.
9638         * Makefile.in (gtype-desc.o): Correct dependencies.
9639         (GTFILES): Add hashtab.h.
9640         (genautomata.o): Actually uses hashtab.h.
9642         * Makefile.in (stringpool.o): Add $(GGC_H).
9643         (dwarf2asm.o): Likewise.
9644         (GTFILES): Add hashtable.h.
9645         * c-common.h (struct c_common_identifier): Use gengtype.
9646         * c-decl.h (c_mark_tree): Delete.
9647         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
9648         * c-tree.h (struct lang_identifier): Use gengtype.
9649         (union lang_tree_node): New.
9650         (c_mark_tree): Delete prototype.
9651         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
9652         dwarf2_debug_hooks.
9653         * gengtype-lex.l (IWORD): Allow 'bool'.
9654         (ptr_alias): Match.
9655         * gengtype-yacc.y (ALIAS): New token.
9656         (type_option): New rule.
9657         (option): Use type_option.
9658         * gengtype.c (process_gc_options): New.
9659         (set_gc_used_type): Use it.
9660         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
9661         Add new variable 't' to hold the type of the field being processed.
9662         Add more error checking.  Use UNION_P when looking at 'desc' option.
9663         Handle language-specific structures containing other
9664         language-specific structures.
9665         (write_gc_types): Handle 'ptr_alias' option.
9666         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
9667         * ggc-common.c (ggc_pending_trees): Delete.
9668         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
9669         (ggc_mark_trees): Delete.
9670         (gt_ggc_m_tree_node): Delete.
9671         * ggc.h (ggc_pending_trees): Delete.
9672         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
9673         * hashtable.h (ht_identifier): Use gengtype.
9674         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
9675         * langhooks.h (struct lang_hooks): Delete mark_tree.
9676         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
9677         anyway.
9678         * system.h: Poison LANG_HOOKS_MARK_TREE.
9679         * tree.c (tree_node_structure): New.
9680         * tree.h (struct tree_common): Use gengtype.
9681         (struct tree_int_cst): Likewise.
9682         (struct tree_real_cst): Likewise.
9683         (struct tree_string): Likewise.
9684         (struct tree_complex): Likewise.
9685         (struct tree_vector): Likewise.
9686         (struct tree_identifier): Likewise.
9687         (struct tree_list): Likewise.
9688         (struct tree_vec): Likewise.
9689         (struct tree_exp): Likewise.
9690         (struct tree_block): Likewise.
9691         (struct tree_type): Likewise.
9692         (struct tree_decl): Likewise.
9693         (enum tree_structure_enum): New.
9694         (union tree_node): Use gengtype, with an alias.
9695         (tree_node_structure): Prototype.
9696         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
9698         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
9699         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
9700         to LANG_HOOKS_FUNCTION_FINAL.
9701         * Makefile.in (GTFILES): Add bitmap.h.
9702         * except.c (struct eh_region): Mark field 'aka' to be skipped.
9704         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
9705         (alpha_init_machine_status): Give proper type.
9706         * Makefile.in (c-lang.o): Depend on gtype-c.h.
9707         (optabs.o): Depend on gt-optabs.h.
9708         (GTFILES): Add optabs.o.
9709         (gt-optabs.h): Add rule.
9710         * optabs.c: Include gt-optabs.h.
9712         * gengtype.c (set_gc_used_type): Correct some errors in last change.
9713         (write_gc_structure_fields): If a field which should be NULL is
9714         not, abort.
9715         * c-pragma.c: Move struct align_stack and variable alignment_stack
9716         out from the ifdef.
9718         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
9719         * config/xtensa/xtensa.c: Include gt-cris.h.
9720         (struct machine_function): Use gengtype to mark.
9721         * config/mmix/mmix.h (struct machine_function): Use gengtype
9722         to mark.
9723         * config/cris/t-cris: Add dependencies for gt-cris.h.
9724         * config/cris/cris.c: Include gt-cris.h.
9725         (struct machine_function): Use gengtype to mark.
9726         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
9727         to mark.
9728         * doc/tm.texi (Per-Function Data): Delete references to
9729         mark_machine_status.
9730         * config/ia64/ia64.c (ia64_override_options): Don't set
9731         mark_machine_status.
9732         * config/i386/i386.c (override_options): Likewise.
9733         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
9734         * config/arm/arm.c (arm_init_expanders): Likewise.
9735         * config/alpha/alpha.c (override_options): Likewise.
9736         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
9737         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
9738         (write_gc_structure_fields): Don't handle 'really' option.
9739         Handle 'maybe_null' option.
9740         (write_gc_types): Handle 'maybe_null' option.
9741         * function.h (struct function): Don't use "really".
9742         (mark_machine_status): Delete declaration.
9743         (mark_lang_status): Delete declaration.
9744         (gt_ggc_mr_machine_function): Delete prototype.
9745         (gt_ggc_mr_language_function): Delete prototype.
9746         * function.c (mark_machine_status): Delete.
9747         (mark_lang_status): Delete.
9748         (gt_ggc_mr_machine_function): Delete.
9749         (gt_ggc_mr_language_function): Delete.
9750         * c-tree.h (mark_c_function_context): Delete prototype.
9751         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
9752         * c-decl.c (struct language_function): Rename from struct
9753         c_language_function.  Update uses.  Use gengtype to mark.
9754         (mark_c_function_context): Delete.
9755         * c-common.h (struct c_language_function): Rename from struct
9756         language_function.
9757         (mark_stmt_tree): Delete prototype.
9758         (c_mark_lang_decl): Delete prototype.
9759         (mark_c_language_function): Delete prototype.
9760         * c-common.c (mark_stmt_tree): Delete.
9761         (c_mark_lang_decl): Delete.
9762         (mark_c_language_function): Delete.
9764         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
9765         (lang_bitmap): New typedef.  Use where appropriate.
9766         (struct type): Add gc_used field, lang_struct field.
9767         (UNION_P): New macro.
9768         (new_structure): New prototype.
9769         (find_structure): Remove 'pos' parameter.  Change all callers.
9770         * gengtype-lex.l: Update for changes to find_structure.
9771         * gengtype-yacc.y (typedef_struct): Use new_structure.
9772         (yacc_ids): Suppress warning.
9773         (type): Use new_structure.
9774         * gengtype.c (string_type): Update for changes to struct type.
9775         (find_structure): Just find a structure, don't worry about
9776         creating one.
9777         (new_structure): New.
9778         (note_yacc_type): Use new_structure.
9779         (set_gc_used_type): New.
9780         (set_gc_used): New.
9781         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
9782         (write_gc_types): Handle TYPE_LANG_STRUCT.
9783         (write_gc_marker_routine_for_structure): New.
9784         (main): Call set_gc_used.  Add some calls to set_gc_used_type
9785         for places where GCC doesn't use gengtype properly yet.
9786         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
9787         (gt_ggc_m_tree_node): Likewise.
9789         * varasm.c (copy_constant): Call expand_constant if we hit
9790         something we can't recognise.
9792         * ggc-common.c (ggc_mark_rtvec_children): Delete.
9793         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
9794         (lang_mark_false_label_stack): Delete.
9795         * rtl.h (struct rtvec_def): Use gengtype to mark.
9796         * ggc.h (ggc_mark_rtvec): Delete.
9797         (gt_ggc_m_rtvec_def): Delete.
9798         (ggc_mark_nonnull_tree): Delete.
9799         (ggc_mark_rtvec_children): Delete prototype.
9800         (lang_mark_false_label_stack): Delete declaration.
9802         * gengtype.h (note_yacc_type): Add prototype.
9803         * gengtype.c (note_yacc_type): New function.
9804         * gengtype-lex.l: Add lexer support for yacc files.
9805         * gengtype-yacc.y (start): Extract union from yacc files.
9806         (yacc_union): New rule.
9807         (yacc_typematch): New rule.
9808         (yacc_ids): New rule.
9809         (enum_items): Tweak for efficiency.
9810         (optionseq): Likewise.
9812         * c-common.h (struct language_function): Use gengtype.
9813         (struct c_lang_decl): Likewise.
9814         * c-tree.h (struct lang_decl): Likewise.
9815         (struct lang_type): Likewise.
9816         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
9817         tree language substructures.
9819         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
9820         ggc_mark_tree.
9821         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
9823         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
9825         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
9826         mark. Remove 'data.block.cleanup_ptr' field.
9827         (struct stmt_status): Use usual technique to mark struct nesting.
9828         (gt_ggc_mr_nesting_cond): Delete.
9829         (gt_ggc_mr_nesting_loop): Delete.
9830         (gt_ggc_mr_nesting_block): Delete.
9831         (gt_ggc_mr_nesting_case_stmt): Delete.
9832         (expand_start_cond): Set discriminator.
9833         (expand_start_loop): Likewise.
9834         (expand_start_null_loop): Likewise.
9835         (expand_start_bindings_and_block): Set discriminator.  Don't set
9836         deleted fields.
9837         (expand_decl_cleanup): Replace 'cleanup_ptr' with
9838         &thisblock->data.block.cleanups.
9839         (expand_start_case): Set discriminator.
9840         (expand_start_case_dummy): Set discriminator.
9842         * ggc-callbacks.c: Remove.
9844         * gengtype.h (struct type): Add 'u.s.bitmap' field.
9845         (find_structure): Add 'pos' parameter.
9846         * gengtype-lex.l: Update callers to find_structure.
9847         * gengtype-yacc.y: Likewise.
9848         * gengtype.c (find_structure): Allow for structures to be defined
9849         in multiple language backends.
9850         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
9851         (counter): Rename to gc_counter.
9852         (write_gc_structure_fields): Fail when writing out fields for
9853         an incomplete structure.  Ignore arrays of scalars.  Handle
9854         'tree_vec' special.
9855         (write_gc_types): Reset counter for each procedure written.
9857         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
9858         (free_case_nodes): Delete.
9859         (expand_end_case_type): Delete call to free_case_nodes.
9861         * Makefile.in (cselib.o): Include gt-<filename>.h.
9862         (gcse.o): Likewise.
9863         (profile.o): Likewise.
9864         (alias.o): Likewise.
9865         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
9866         alphabetize backend files.
9867         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
9868         * alias.c: Use gengtype for roots.
9869         * c-common.h (struct stmt_tree_s): Use gengtype.
9870         * c-decl.c: Use gengtype for roots.
9871         * cselib.c: Use gengtype for roots.
9872         * expr.c: Use gengtype for roots.
9873         * fold-const.c: Use gengtype for roots.
9874         * gcse.c: Use gengtype for roots.
9875         * gengtype-lex.l: Handle typedefs of function types.
9876         Allow for empty array bounds.
9877         Allow processing to stop on initializers.
9878         * gengtype-yacc.y (externstatic): Stop processing on initializers.
9879         (semiequal): New rule.
9880         * gengtype.c (create_file): Tidy output files.
9881         (get_output_file_with_visibility): Fix paren warning.  Fix bug
9882         involving multiple input files mapping to one output file.
9883         (write_gc_structure_fields): Skip arrays of scalars.
9884         (write_gc_types): Tidy output files.
9885         (write_gc_root): New function.
9886         (write_gc_roots): Fix bugs, add support for roots that are
9887         structures.
9888         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
9889         (ggc_mark_tree_ptr): Delete.
9890         (ggc_add_rtx_root): Delete.
9891         (ggc_add_tree_root): Delete.
9892         (ggc_del_root): Delete.
9893         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
9894         allocate struct initial_value_struct.
9895         * profile.c: Use gengtype for roots.
9896         * sdbout.c: Use gengtype for roots.
9897         * varasm.c (mark_weak_decls): Delete unused prototype.
9898         (mark_const_hash_entry): Delete unused function.
9899         * config/darwin-protos.h: Use gengtype for roots.
9900         (machopic_add_gc_roots): Delete.
9901         * config/arm/arm.c: Use gengtype for roots.
9902         * config/arm/arm.h: Use gengtype for roots.
9903         * config/c4x/c4x-protos.h: Use gengtype for roots.
9904         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
9905         * config/d30v/d30v-protos.h: Use gengtype for roots.
9906         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
9907         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
9908         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
9909         * config/ia64/ia64-protos.h: Use gengtype for roots.
9910         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
9911         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
9912         * config/m68hc11/m68hc11.c (z_reg): Make global.
9913         (z_reg_qi): Make global.
9914         (m68hc11_add_gc_roots): Delete.
9915         * config/mcore/mcore-protos.h: Use gengtype for roots.
9916         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
9917         * config/mips/mips.c (mips_add_gc_roots): Delete.
9918         * config/mips/mips.h: Use gengtype for roots.
9919         * config/mmix/mmix.c (override_options): Use gengtype for roots.
9920         * config/mmix/mmix.h: Use gengtype for roots.
9921         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
9922         * config/mn10200/mn10200.h: Use gengtype for roots.
9923         * config/pa/pa.c: Use gengtype for roots, marking.
9924         (struct deferred_plabel): Use GGC, gengtype.
9925         (pa_add_gc_roots): Delete.
9926         (mark_deferred_plabels): Delete.
9927         * config/pj/pj-protos.h: Use gengtype for roots.
9928         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
9929         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
9930         machopic_add_gc_roots.
9931         * config/rs6000/rs6000.h: Use gengtype for roots.
9932         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
9933         (gt-darwin.h): Add rule.
9934         * config/sh/sh.c: Use gengtype for roots.
9935         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
9936         (gt-sh.h): Add rule.
9937         * config/sparc/sparc.c: Use gengtype for roots.
9938         (sparc_add_gc_roots): Delete.
9939         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
9940         (mark_ultrasparc_pipeline_state): Delete.
9941         * config/sparc/sparc.h: Use gengtype for roots.
9943         * Makefile.in (c-parse.o): Update dependencies.
9944         (c-common.o): Likewise.
9945         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
9946         Add dependencies for the files they generate.
9947         * c-common.c: Replace ggc_add_* uses with GTY annotations.
9948         * c-common.h: Likewise.
9949         * c-decl.c: Likewise.
9950         (gt_ggc_mp_binding_level): Delete.
9951         * c-lang.c: Include gtype-c.h.
9952         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
9953         gt-c-parse.h.
9954         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
9955         (gt_ggc_mp_align_stack): Delete.
9956         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
9957         * function.c: Replace ggc_add_* uses with GTY annotations.
9958         (gt_ggc_mp_function): Delete.
9959         * function.h: Replace ggc_add_* uses with GTY annotations.
9960         * gengtype.c (lang_names): New.
9961         (NUM_BASE_FILES): New.
9962         (open_base_files): Create language base files.
9963         (startswith): New.
9964         (get_file_basename): New.
9965         (get_base_file_bitmap): New.
9966         (get_output_file_with_visibility): Rename from get_output_file.
9967         Add more mappings for various C/Objc filenames.
9968         (finish_root_table): New.
9969         (write_gc_roots): Handle dependencies and scoping properly.
9970         * gengtype.h: Add prototypes for new functions.
9971         * ggc-common.c (struct deletable_root): Delete.
9972         (deletables): Delete.
9973         (ggc_add_deletable_root): Delete.
9974         (ggc_mark_roots): No need to deal with deleted functionality.
9975         * ggc.h (ggc_add_deletable_root): Delete prototype.
9976         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
9977         (gtype-objc.h): Add rule to create.
9978         * objc/config-lang.in (gtfiles): New.
9979         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
9980         ggc_add_* with GTY markers.  Include gtype-objc.h.
9981         (ggc_mark_imp_list): Delete.
9982         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
9983         * objc/objc-lang.c: Random Whitespace Change.
9985         * except.h (exception_handler_labels): Delete.
9986         (get_exception_handler_labels): New.
9987         * except.c (exception_handler_labels): Delete.
9988         (struct eh_status): Add exception_handler_labels field.
9989         (doing_eh): Don't add exception_handler_labels as root.
9990         (free_eh_status): Don't need to free exception_handler_labels.
9991         (get_exception_handler_labels): New.
9992         (find_exception_handler_labels): Update for move of
9993         exception_handler_labels.
9994         (remove_exception_handler_label): Likewise.
9995         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
9996         * jump.c (rebuild_jump_labels): Likewise.
9997         * loop.c (find_and_verify_loops): Likewise.
9998         * sched-rgn.c (is_cfg_nonregular): Likewise.
10000         * gengtype.c (write_gc_structure_fields): Handle variable-length
10001         TYPE_ARRAYs.
10003         * varasm.c (struct weak_syms): Use GGC, gengtype.
10004         (mark_weak_decls): Delete.
10005         (weak_decls): Likewise.
10006         (add_weak): Likewise.
10007         (remove_from_pending_weak_list): Likewise.
10008         (init_varasm_once): Likewise.
10010         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
10011         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
10012         stor-layout.c, regclass.c, and lists.c.
10013         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
10014         gt-regclass.h and gt-lists.h on s-gtype.
10015         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
10016         * except.c: Use gengtype for roots.
10017         * explow.c: Use gengtype for roots.  Include gt-explow.h.
10018         * expr.h (init_stor_layout_once): Delete prototype.
10019         * function.c: Use gengtype for roots.
10020         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
10021         * gengtype-yacc.y (start): Can also be an externstatic.
10022         (externstatic): New production.
10023         (struct_fields): Correct array bounds inversion for 2-d arrays.
10024         * gengtype.c (variables): New variable.
10025         (note_variable): New function.
10026         (get_output_file): Include libfuncs.h into gtype-desc.c.
10027         (get_output_file_name): New function.
10028         (write_gc_structure_fields): Suppress warnings.
10029         (write_gc_types): Make static.
10030         (put_mangled_filename): New function.
10031         (write_gc_roots): New function.
10032         (main): Call write_gc_roots.
10033         * gengtype.h (note_variable): Prototype.
10034         (get_output_file_name): Prototype.
10035         (write_gc_types): Delete prototype.
10036         * ggc.h: Clean up unnecessary structure predefinitions.
10037         (struct ggc_root_tab): Define.
10038         (gt_ggc_m_rtx_def): Make function, not macro.
10039         (gt_ggc_m_tree_node): Likewise.
10040         * libfuncs.h: Use gengtype for roots.
10041         * lists.c: Use gengtype for roots.  Include gt-lists.h.
10042         (init_EXPR_INSN_LIST_cache): Delete.
10043         * optabs.c: Use gengtype for roots.
10044         (gt_ggc_mp_optab): Delete.
10045         * optabs.h: Use gengtype for roots.
10046         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
10047         * rtl.h: Use gengtype for roots.
10048         (init_EXPR_INSN_LIST_cache): Delete prototype.
10049         * stor-layout.c: Use gengtype for roots.
10050         Include gt-stor-layout.h.
10051         (init_stor_layout_once): Delete.
10052         * toplev.c: Use gengtype for roots.  Delete calls to deleted
10053         routines.
10054         * tree.c: Use gengtype for roots.
10055         * tree.h: Use gengtype for roots.
10056         * varasm.c: Use gengtype for roots.
10058         * Makefile.in (GTFILES): Add @all_gtfiles@.
10059         * configure: Regenerate.
10060         * configure.in: Construct all_gtfiles from the gtfiles definitions
10061         in config-lang.in.
10062         * gengtype-yacc.y (type): Warn about duplicate structure names.
10063         * gengtype.c (get_output_file): Handle .c files in language
10064         subdirectories.
10066         * Makefile.in (GTFILES): Run gengtype on all the config files
10067         and on the target .c file.
10068         * except.c (mark_eh_region): Delete.
10069         (init_eh_for_function): Use GGC on struct eh_status.
10070         (mark_eh_status): Delete.
10071         (free_eh_status): Use GGC.
10072         (expand_eh_region_start): Use GGC to
10073         (collect_eh_region_array): Allocate last_region_number using GGC.
10074         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
10075         (remove_eh_handler): Let GGC free struct eh_region.
10076         (add_call_site): Use GGC to reallocate call_site_record array.
10077         * function.c (init_machine_status): Update calling sequence.
10078         (mark_machine_status): Likewise.
10079         (mark_lang_status): Likewise.
10080         (prepare_function_start): Update init_machine_status call.
10081         (mark_function_status): Delete.
10082         (maybe_mark_struct_function): Delete.
10083         (ggc_mark_struct_function): Delete.
10084         (gt_ggc_mp_function): New.
10085         (gt_ggc_mr_machine_function): New.
10086         (gt_ggc_mr_language_function): New.
10087         (init_function_once): Use canonical names.
10088         * function.h (struct function): Use gengtype.
10089         (init_machine_status): Return the structure.
10090         (mark_machine_status): Take a 'void *'.
10091         (mark_lang_status): Likewise.
10092         * ggc-common.c (ggc_mark_trees): Use canonical name for
10093         ggc_mark_struct_function.
10094         * tree.h (ggc_mark_struct_function): Delete prototype.
10095         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
10096         (alpha_init_machine_status): Likewise.
10097         (override_options): Use canonical name for alpha_mark_machine_status.
10098         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
10099         * config/arm/arm.h (struct machine_function): Use gengtype.
10100         * config/arm/arm.c (arm_mark_machine_status): Delete.
10101         (arm_init_machine_status): Update calling sequence.
10102         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
10103         * config/cris/cris.c (cris_init_machine_status): Update
10104         calling sequence.
10105         * config/d30v/d30v.h (struct machine_function): Use gengtype.
10106         * config/d30v/d30v.c (d30v_init_machine_status): Update
10107         calling sequence.
10108         (d30v_mark_machine_status): Delete.
10109         * config/i386/i386.c: Include gt-i386.h.
10110         (struct machine_function): Use gengtype.
10111         (ix86_init_machine_status): Update calling sequence.
10112         (ix86_mark_machine_status): Delete.
10113         (override_options): Use canonical namke for ix86_mark_machine_status.
10114         * config/ia64/ia64.h (struct machine_function): Use gengtype.
10115         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
10116         sequence.
10117         (ia64_mark_machine_status): Delete.
10118         (ia64_override_options): Use canonical name for
10119         ia64_mark_machine_status.
10120         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
10121         sequence.
10122         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
10123         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
10124         * gengtype.c (get_output_file): Fix warning.
10125         (main): Add prototype to suppress warning.
10126         * tree.c: Remove tree_hash_mark prototype.
10128         * tree.h (init_stmt): Delete prototype.
10129         * toplev.c (lang_independent_init): Don't call init_stmt.
10130         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
10131         (stmt_obstack): Delete.
10132         (POPSTACK): No need to free 'struct nesting'.
10133         (gt_ggc_mr_nesting_cond): Use canonical names.
10134         (gt_ggc_mr_nesting_loop): Use canonical names.
10135         (gt_ggc_mr_nesting_block): Use canonical names.
10136         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
10137         (mark_stmt_status): Delete.
10138         (init_stmt): Delete.
10139         (clear_last_expr): Clear both last_expr_type and last_expr_value.
10140         Use it everywhere that last_expr_type was cleared.
10141         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
10142         (zap_lists): Delete.
10143         * ggc.h (ggc_add_deletable_root): Prototype.
10144         (mark_stmt_status): Remove prototype.
10145         * ggc-common.c (ggc_add_deletable_root): New.
10146         (ggc_mark_roots): Handle deletable roots.
10147         * function.c (ggc_mark_struct_function): Use canonical name
10148         for mark_stmt_status.
10149         * emit-rtl.c (free_sequence_stack): New.
10150         (start_sequence): Use a freelist for sequences.
10151         (end_sequence): Likewise.
10152         (init_emit_once): Add free_sequence_stack as a deleteable root.
10153         * c-pragma.c Include gt-c-pragma.h.
10154         (struct align_stack): Use gengtype.
10155         (push_alignment): Use GGC for struct align_stack.
10156         (mark_align_stack): Delete.
10157         (gt_ggc_mp_align_stack): New.
10158         (init_pragma): Use canonical name for mark_align_stack.
10159         * c-decl.c: Include gt-c-decl.h.
10160         (struct binding_level): Use gengtype.
10161         (make_binding_level): Use GGC; handle the freelist here.
10162         (pop_binding_level): New.
10163         (pushlevel): Move code into make_binding_level.
10164         (push_label_level): Likewise.
10165         (poplevel): Move code into pop_binding_level.
10166         (pop_label_level): Likewise.
10167         (mark_binding_level): Delete.
10168         (gt_ggc_mp_binding_level): New.
10169         (c_init_decl_processing): Use canonical name for mark_binding_level.
10170         Add free_binding_level as deletable root.
10171         (mark_c_function_context): Use canonical name for mark_binding_level.
10172         * Makefile.in (c-decl.o): Add gt-c-decl.h.
10173         (c-pragma.o): Add gt-c-pragma.h.
10174         (GTFILES): Add c-decl.c and c-pragma.c.
10175         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
10177         * tree.c (struct type_hash): Use gengtype.
10178         (init_obstacks): Use canonical name for type_hash_mark.
10179         (type_hash_mark): Delete.
10180         Include gt-tree.h.
10181         * rtl.h (struct mem_attrs): Use gengtype.
10182         * optabs.h (struct optab): Use gengtype.
10183         * optabs.c (expand_binop): Squish signed/unsigned warning.
10184         (mark_optab): Make local, use canonical name, use autogenerated
10185         marker procedure.
10186         (init_optabs): Use canonical name for mark_optab.
10187         (new_optab): Use GGC to allocate optabs.
10188         * ggc.h: Delete mark_optab prototype.
10189         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
10190         mem_attrs marker procedure.
10191         * gengtype.c (get_output_file): Include headers in gtype-desc.c
10192         explicitly rather than deducing them from file names.
10193         (write_gc_structure_fields): Handle arrays of structures.
10194         (main): Return non-zero exit code if errors occur during output.
10195         * emit-rtl.c (mem_attrs_mark): Delete.
10196         (init_emit_once): Use canonical name for mem_attrs marker procedure.
10197         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
10198         (tree.o): Depend on gt-tree.h.
10199         (GTFILES): Add rtl.h, optabs.h, tree.c.
10200         (gt-tree.h): Add it to s-gtype rule.
10202         * .cvsignore: Ignore gengtype flex/bison generated files.
10203         * Makefile.in (GGC_H): Add gtype-desc.h.
10204         (OBJS): Add gtype-desc.o.
10205         (GEN): Add gengtype.
10206         (STAGESTUFF): Add gengtype.
10207         (varasm.o): Add gt-varasm.h.
10208         (stmt.o): Add gt-stmt.h.
10209         (except.o): Add gt-except.h.
10210         (integrate.o): Add gt-integrate.h.
10211         (GTFILES): New.
10212         Add new rules for new files.
10213         * configure: Regenerate.
10214         * configure.in: Correct defaults.h paths.
10215         * emit-rtl.c (mark_sequence_stack): Delete.
10216         (mark_emit_status): Delete.
10217         (start_sequence): Allocate sequence structures using GGC.
10218         (end_sequence): Allocate sequence structures using GGC.
10219         * except.c: Use gengtype for various structures.  Include
10220         gt-except.h.
10221         * expr.c (mark_expr_status): Delete.
10222         * function.c: Use gengtype for various structures.  Include
10223         gt-function.h.
10224         (mark_function_status): Use standard gt_ggc names for marker functions.
10225         (ggc_mark_struct_function): Likewise.
10226         * function.h: Use gengtype for various structures.
10227         * gengtype-lex.l: New file.
10228         * gengtype-yacc.y: New file.
10229         * gengtype.c: New file.
10230         * gengtype.h: New file.
10231         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
10232         the standard names.  Remove some now-unnecessary prototypes.
10233         * integrate.c: Use gengtype for various structures.  Include
10234         gt-integrate.h.
10235         (mark_hard_reg_initial_vals): Delete.
10236         * integrate.h (mark_hard_reg_initial_vals): Delete.
10237         * stmt.c: Use gengtype for various structures.  Include
10238         gt-stmt.h.
10239         (mark_case_node): Delete.
10240         (mark_goto_fixup): Delete.
10241         (mark_stmt_status): Use standard gt_ggc names for marker functions.
10242         * system.h: Define GTY to empty.   In flex/bison files,
10243         don't poison malloc or realloc, instead just define them to
10244         xmalloc and xrealloc.
10245         * varasm.c: Use gengtype for various structures.  Include
10246         gt-varasm.h.  Use standard gt_ggc names for marker functions.
10247         (mark_pool_constant): Delete.
10248         (mark_varasm_status): Delete.
10249         (decode_rtx_const): #if 0 out non-typesafe hack.
10251         * function.h (free_lang_status): Mark as obsolete.
10252         * function.c (free_lang_status): Mark as obsolete.
10253         * c-decl.c (push_c_function_context): Use GC to allocate and free
10254         struct language_function.
10255         (pop_c_function_context): Likewise.
10256         * c-common.c (mark_c_language_function): Mark struct
10257         language_function.
10259         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
10260         Document that the machine_function structures must be allocated
10261         using GC.  Update mark_machine_status documentation.
10262         * function.h: Don't declare free_machine_status.
10263         * function.c (free_machine_status): Don't define.
10264         (free_after_compilation): Don't call free_machine_status.
10265         (ggc_mark_struct_function): Mark f->machine.  Call
10266         mark_machine_status only on non-NULL pointers.
10267         * system.h: Poison free_machine_status.
10268         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
10269         struct machine_function.
10270         (xtensa_free_machine_status): Delete.
10271         (override_options): Don't set free_machine_status.
10272         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
10273         free_machine_status.
10274         (rs6000_init_machine_status): Use GC on struct machine_function.
10275         (rs6000_free_machine_status): Delete.
10276         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
10277         machine_function.
10278         (ia64_mark_machine_status): Likewise.
10279         (ia64_free_machine_status): Delete.
10280         (ia64_override_options): Don't set free_machine_status.
10281         * config/i386/i386.c (override_options): Don't set
10282         free_machine_status.
10283         (ix86_init_machine_status): Use GC on struct machine_function.
10284         (ix86_mark_machine_status): Likewise.
10285         (ix86_free_machine_status): Delete.
10286         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
10287         machine_function.
10288         (d30v_mark_machine_status): Likewise.
10289         (d30v_free_machine_status): Delete.
10290         (d30v_init_expanders): Don't set free_machine_status.
10291         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
10292         machine_function.
10293         (arm_init_machine_status): Likewise.
10294         (arm_free_machine_status): Delete.
10295         (arm_init_expanders): Don't set free_machine_status.
10296         * config/alpha/alpha.c (override_options): Don't set
10297         free_machine_status.
10298         (alpha_init_machine_status): Use GC on struct machine_function.
10299         (alpha_mark_machine_status): Likewise.
10300         (alpha_free_machine_status): Delete.
10302         * varasm.c (compare_constant): Fix typo.
10304         * varasm.c: Don't include obstack.h.
10305         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
10306         (struct rtx_const): Give substructures names, improve formatting.
10307         (struct constant_descriptor): Delete.
10308         (struct constant_descriptor_tree): New, based on constant_descriptor.
10309         (const_hash_table): Is a hash table of trees.
10310         (mark_const_hash_entry): Is used for hashes of trees.  Mark
10311         constant_descriptor_tree structure.
10312         (mark_const_str_htab_1): Mark deferred_string structure.
10313         (compare_constant): Rewrite to compare trees.
10314         (compare_constant_1): Delete.
10315         (record_constant): Delete.
10316         (record_constant_1): Delete.
10317         (output_constant_def): Use struct constant_descriptor_tree.
10318         Don't duplicate trees twice.
10319         (struct constant_descriptor_rtx): New.
10320         (struct pool_constant): Used for rtx constants.
10321         (init_varasm_status): Update for change to struct varasm_status.
10322         (mark_varasm_status): Likewise.
10323         (free_varasm_status): Delete.
10324         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
10325         (record_constant_rtx): Likewise.
10326         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
10327         (force_const_mem): Likewise.
10328         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
10329         * function.c (free_after_compilation): Don't use free_varasm_status.
10330         * function.h: Don't prototype free_varasm_status.
10332         * ggc-common.c (ggc_realloc): Handle X being NULL.
10334         * ggc-common.c (ggc_realloc): New function.
10335         * ggc.h: Prototype it.
10336         * emit-rtl.c (free_emit_status): Delete.
10337         (init_emit): Allocate emit subarrays using GC.
10338         (gen_reg_rtx): Reallocate subarrays using GC.
10339         (init_emit): Use GC to allocate 'struct emit_status' and its
10340         subarrays.
10341         (mark_emit_status): Mark structure and its subarrays.
10342         * stmt.c (free_stmt_status): Delete.
10343         * expr.c (free_expr_status): Delete.
10344         * function.h: Remove prototypes for deleted functions.
10345         * function.c (free_after_compilation): Don't use deleted functions.
10346         Don't call free() on x_parm_reg_stack_loc.
10347         (free_after_parsing): Don't use free_stmt_status.
10348         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
10349         (mark_function_status): Mark x_parm_reg_stack_loc.
10351         * varasm.c (init_varasm_status): Use GC to allocate
10352         'struct varasm_status' and its fields x_const_rtx_hash_table
10353         and x_const_rtx_sym_hash_table.
10354         (mark_varasm_status): Mark them.
10355         (free_varasm_status): Use GC to free them.
10356         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
10357         (mark_expr_status): Mark the structure itself.
10358         (free_expr_status): Use GC to free the structure.
10359         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
10360         (mark_stmt_status): Mark the 'struct stmt_status' itself.
10361         (init_stmt_for_function): Allocate the structure for GC.
10363         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
10364         (equate_type_number_to_die): Likewise.
10365         * tree.h (TYPE_SYMTAB_DIE): New macro.
10366         (struct die_struct): Predeclare.
10367         (struct tree_type): Add field symtab.die.   Add a tag
10368         to the union type of field symtab.
10370         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
10371         'struct rtvec_def *', not 'struct rtvec_def'.
10373         * function.h (original_arg_vector): Make a real rtvec.
10374         * function.c (ggc_mark_struct_function): Adjust.
10375         * integrate.c (expand_inline_function): Adjust.
10377 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
10379         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
10380         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
10381         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
10382         (TARGET_VERSION_CPU): Define according to the
10383         default target.
10384         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
10385         TARGET_VERSION_CPU.
10386         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
10387         if TARGET_SHMEDIA64.
10388         (LINK_DEFAULT_CPU_EMUL): Define according to the
10389         default target.
10390         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
10391         (SUBTARGET_LINK_SPEC): Define.
10392         (LINK_SPEC): Use SH_LINK_SPEC.
10393         (ASM_SPEC): Remove.
10394         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
10395         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
10396         and TARGET_SHMEDIA64 which abort, for now.
10397         * config/sh/t-netbsd-sh5: New file.
10398         * config/sh/t-netbsd-sh5-32: New file.
10399         * config/sh/t-netbsd-sh5-64: New file.
10401 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
10402             Richard Henderson  <rth@redhat.com>
10404         * config/alpha/alpha.c (reg_or_const_int_operand): New.
10405         (some_operand, input_operand): Accept CONST_VECTOR.
10406         (alpha_extra_constraint): Add 'W'.
10407         (alpha_expand_zap_mask): New.
10408         (alpha_expand_builtin_vector_binop): New.
10409         (enum alpha_builtin): New.
10410         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
10411         (alpha_init_builtins, alpha_expand_builtin): New.
10412         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
10413         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
10414         (PREDICATE_CODES): Update.
10415         * config/alpha/alpha-protos.h: Update.
10416         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
10417         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
10418         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
10419         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
10420         (movv2si, movv2si_fix, movv2si_nofix): New.
10421         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
10422         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
10423         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
10424         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
10425         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
10426         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
10427         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
10428         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
10429         builtin_unpkbw, unpkbw): New.
10430         * doc/extend.texi (Alpha Built-in Functions): New.
10432 2002-06-03  Richard Henderson  <rth@redhat.com>
10434         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
10435         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
10437 2002-06-03  Richard Henderson  <rth@redhat.com>
10439         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
10441         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
10442         (const0_operand): New.
10443         (reg_or_fp0_operand, fp0_operand): Remove.
10444         * config/alpha/alpha.h (PREDICATE_CODES): Update.
10445         * config/alpha/alpha-protos.h: Update.
10446         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
10447         and fp0_operand with reg_or_0_operand and const0_operand.
10449 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
10451         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
10453 2002-06-03  Roger Sayle  <roger@eyesopen.com>
10455         * gcse.c (cprop_jump): Use single_set to get the pattern
10456         from the setcc argument.
10458 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
10460         * diagnostic.h (diagnostic_count): Move from output_buffer to
10461         diagnostic_context.
10462         (diagnostic_kind_count): Adjust definition.
10464 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
10466         * except.c (except.c): Do not rebuild CFG.
10467         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
10468         optimization.
10470 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
10472         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
10473         * toplev.c: Include cfglahout.h
10474         * Makefile.in (toplev.c): Add dependnecy.
10476 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
10478         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
10479         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
10480         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
10482 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
10484         * config/ns32k/netbsd.h: Update copyright years.
10485         (TARGET_OS_CPP_BUILTINS): Define.
10486         (CPP_PREDEFINES): Remove.
10487         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
10488         (TARGET_CPU_CPP_BUILTINS): Define.
10490 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
10492         * emit-rtl.c: Fix formatting.
10493         * errors.h: Likewise.
10494         * except.c: Likewise.
10495         * explow.c: Likewise.
10496         * expmed.c: Likewise.
10497         * expr.c: Likewise.
10498         * expr.h: Likewise.
10500 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
10502         * config/h8300/elf.h: Fix formatting.
10503         * config/h8300/rtems.h: Likewise.
10505 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
10507         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
10509 2002-06-02  Tom Tromey  <tromey@redhat.com>
10511         * fixinc/fixincl.x: Rebuilt.
10512         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
10514 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10516 config/i370:
10517         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
10518         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
10519         * mvs.h: Similarly.
10520         * oe.h: Similarly.
10522 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
10524         * final.c (final):  Allow notes to not have computed addresses;
10525         kill no longer needed STACK_REGS ifdef.
10527 2002-06-02  Richard Henderson  <rth@redhat.com>
10529         * gcse.c (bypass_conditional_jumps): Fix typo last change.
10531 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
10533         * loop.c (emit_prefetch_instructions): Properly place the address
10534         computation.
10536 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
10538         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
10539         (set_block_for_insn): Turn into macro.
10540         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
10541         * cfglayout.c (insn_scopes): Kill.
10542         (scope_to_insns_initialize): Do not use insn_scopes.
10543         (scope_to_insns_finalize): Likewise.
10544         (duplicate_insn_chain): Likewise.
10545         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
10546         * cfgrtl.c (basic_block_for_insn): Kill.
10547         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
10548         (create_basic_block_structure): Use reorder_insns.
10549         (compute_bb_for_insn): Do not use basic_block_for_insn.
10550         (merge_blocks_nomove): Likewise.
10551         (update_bb_for_insn): Likewise.
10552         (verify_flow_info): Likewise.
10553         (set_block_for_insn): Kill.
10554         * combine.c (try_combine): Update gen_rtx_INSN call.
10555         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
10556         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
10557         scopes and BBs.
10558         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
10559         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
10560         Clear BB.
10561         (emit_insns_after): Simplify.
10562         (emit_copy_of_insn_after): Copy scope.
10563         * final.c (final_start_function): Lower scopes.
10564         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
10565         * integrate.c (copy_insn_list): Cope scopes.
10566         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
10567         * loop.c (loop_optimize): Do not care block notes.
10568         * print-rtl.c (print_rtx): Print BB.
10569         * recog.c (apply_change_group): Simplify.
10570         * rtl.c (copy_rtx): Handle 'B'.
10571         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
10572         * rtl.h (Field accessors): Update indexes.
10573         * sched-ebb.c (schedule_ebbs): Do not lower notes.
10574         * sched-rgn.c (schedule_insns): Likewise.
10575         * toplev.c (rest_of_compilation): Lower notes.
10576         * unroll.c (unroll_loop): Do not care scoping notes.
10577         (copy_loop_body): Copy scopes.
10579 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10581 config/h8300:
10582         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
10583         SUBTARGET_SPEC.
10584         * rtems.h: Similarly.
10585         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
10586         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
10587         (TARGET_CPU_CPP_BUILTINS): Use.
10589 2002-06-02  Richard Henderson  <rth@redhat.com>
10591         * alias.c: Include target.h.
10592         (mark_constant_function): Use targetm.binds_local_p instead
10593         of checking TREE_PUBLIC ourselves.
10594         * Makefile.in (alias.o): Add TARGET_H.
10596 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10598         * c-lex.c: Update copyright and file description.
10600 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10602         * config/fr30/fr30.h: Update to new CPP macros.
10604 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10606         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
10608 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10609             Zack Weinberg <zack@codesourcery.com>
10611         * c-common.c (c_common_init): Override cpplib's default
10612         warn_long_long setting.
10613         * c-lex.c (lex_number): Replace with interpret_integer,
10614         interpret_float, narrowest_unsigned_type and
10615         narrowest_signed_type, taking advantage of the new
10616         cpplib functionality.
10617         * cpperror.c (_cpp_begin_message): If a warning is turned
10618         into an error, avoid printing "warning:".
10619         * cppexp.c (cpp_num_sign_extend): New.
10620         * cppinit.c: Update comment.
10621         * cpplib.h (cpp_num_sign_extend): New.
10622         * tree.h: Update comment.
10624 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10626         * diagnostic.h (struct diagnostic_context):  Add new member
10627         internal_error.
10628         (internal_error_function): Remove declaration.
10629         * diagnostic.c (internal_error_function): Remove definition..
10630         (internal_error): Adjust use.
10632 2002-06-02  Richard Henderson  <rth@redhat.com>
10634         * rtl.h (CC0_P): New.
10635         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
10636         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
10637         (bypass_block): Save old dest block for dump text.
10638         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
10639         Allow only true SET insns, not single_set.
10641 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
10643         * diagnostic.c (diagnostic_finish): Rename to output_flush.
10644         (clear_disgnostic_info): Rename to output_clear_data.  Use false
10645         instead of 0 for boolean value.
10646         Adjust function call throughout.
10648 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
10650         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
10651         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
10653 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10655         * d30v.h (CPP_PREDEFINES): Replace with
10656         (TARGET_CPU_CPP_BUILTINS): New.
10658 2002-06-02  Roger Sayle  <roger@eyesopen.com>
10660         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
10662 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
10664         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
10666 2002-06-02  Richard Henderson  <rth@redhat.com>
10668         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
10670 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10672         Support for C++ constructors/destructors.
10673         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
10674         instead of looping if main() returns.
10675         (asm_file_start): Output global symbols that cause .data and .bss
10676         initialization code to be linked in, unconditionally for now.
10677         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
10678         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
10679         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10680         (LIBSTDCXX): New.
10681         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
10682         (__tablejump__): New.
10683         (__do_copy_data, __do_clear_bss): New.
10684         (__do_global_ctors, __do_global_dtors): New.
10685         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
10686         _ctors, _dtors.
10688 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
10690         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
10691         (CPP_SPEC, CPP_PREDEFINES): Kill.
10692         * c4x/rtems.h (CPP_PREDEFINES): Kill.
10693         (TARGET_OS_CPP_BUILTINS): New.
10695 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
10697         * Makefile.in (tracer.o): New.
10698         * params.def (TRACER_*): New options.
10699         * rtl.h (tracer): Declare.
10700         * timevar.def (TV_TRACER): New.
10701         * toplev.c (dump_file_index): Add DFI_tracer.
10702         (dump_file_info): Add tracer.
10703         (flag_tracer): New.
10704         (lang_indepdenent_options): Add tracer.
10705         (rest_of_compilation): Call tracer.
10706         * tracer.c: New file.
10707         * invoke.texi (-ftracer): Document.
10708         (--param tracer-*): Document.
10710 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
10712         * tree-inline.c (expand_call_inline): Make the statement
10713         expression we generate have a COMPOUND_STMT.
10715 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10717         * gcse.c (cprop_cc0_jump): Function deleted.
10718         (cprop_jump): Take an additional argument which is the possibly
10719         NULL cc setting insn immediately before the conditional jump.
10720         When a MODE_CC set is present, substitute it into the JUMP_INSN
10721         before attempting the constant propagation.
10722         (cprop_insn):  Recognize cc setters followed by conditional jumps
10723         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
10724         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
10725         (find_bypass_set): New function based upon find_avail_set used by
10726         cprop, but finds constant expressions available at the end of
10727         basic blocks.
10728         (bypass_block): New function.  Given a basic block that begins
10729         with a conditional jump and multiple incoming edges, perform
10730         the jump bypass optimization.
10731         (bypass_conditional_jumps): New function.  Call bypass_block with
10732         each suitable basic block in the CFG using a simple single pass.
10734 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10736         * tree.c (real_minus_onep): New function to test for -1.0.
10737         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
10739 2002-06-01  Roger Sayle  <roger@eyesopen.com>
10741         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
10742         and "!p && !q" into "(p|q) == 0" under suitable conditions.
10744 2002-06-01  Andreas Jaeger  <aj@suse.de>
10746         * cppexp.c (cpp_classify_number): Cast precission to int for
10747         correct printf format.
10749 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10751         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
10752         expected, but don't really exist: atmega83, atmega85, attiny10.
10753         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
10754         emulations for all devices.
10755         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
10756         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
10758 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
10760         * config/h8300/h8300-protos.h: Add a prototype for
10761         h8300_shift_needs_scratch_p.
10762         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
10763         * config/h8300/h8300.h (OK_FOR_R): New.
10764         (OK_FOR_S): Likewise.
10765         (OK_FOR_T): Likewise.
10766         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
10767         * config/h8300/h8300.md (anonymous shift patterns): Use
10768         constraints R, S, and T.
10770 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10772         * basic-block.h (struct basic_block_def): New field loop_father.
10773         (BB_VISITED): New flag.
10774         (struct loop): New field pred, removed field shared.
10775         (struct loops): New field parray.
10776         (LOOP_EXITS_DOMS): Removed.
10777         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
10778         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
10779         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
10780         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
10781         verify_loop_structure): Declare.
10782         * cfg.c (entry_exit_blocks): Initialize loop_father field.
10783         * cfganal.c (dfs_enumerate_from): New function.
10784         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
10785         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
10786         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
10787         flow_loop_dump, flow_loops_dump, flow_loops_free,
10788         flow_loop_tree_node_add, flow_loop_level_compute,
10789         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
10790         flow_loop_outside_edge_p): Modified for new infrastructure.
10791         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
10792         redirect_edge_with_latch_update, flow_loop_free): New static functions.
10793         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
10794         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
10795         find_common_loop, verify_loop_structure, loop_latch_edge,
10796         loop_preheader_edge): New functions.
10797         (flow_loops_cfg_dump): Do not show dominators, as this information
10798         does not remain up to date long.
10799         (flow_loops_find): Store results in new format.
10800         * predict.c (propagate_freq, estimate_probability,
10801         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
10802         infrastructure.
10804 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
10806         * except.c (nothrow_function_p): Walk epilogue delay list
10807         checking the insn, not the chain for potential throws.
10809 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
10811         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
10812         (install): Refer to install-cpp directly.
10813         (uninstall-cpp): Folded into uninstall rule.
10814         * configure.in: Delete all code relating to --disable-cpp.
10815         * configure: Regenerate.
10816         * config/t-install-cpp: Delete.
10818 2002-05-31  Richard Henderson  <rth@redhat.com>
10820         * configure.in (HAVE_AS_TLS): Add alpha tests.
10821         * configure: Rebuild.
10822         * config/alpha/alpha.c (TARGET_AS_TLS): New.
10823         (alpha_tls_size, alpha_tls_size_string): New.
10824         (overide_options): Set it.  Always install machine_status hooks.
10825         (input_operand): Accept got tls predicates.
10826         (local_symbol_p): Merge into ...
10827         (local_symbolic_operand): ... here.  Reject tls symbols.
10828         (global_symbolic_operand): Likewise.
10829         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
10830         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
10831         (tp16_symbolic_operand, tp32_symbolic_operand): New.
10832         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
10833         (alpha_encode_section_info): Handle TLS symbols.
10834         (alpha_strip_name_encoding): Likewise.
10835         (alpha_legitimate_address_p): Likewise.
10836         (alpha_legitimize_address): Likewise.
10837         (alpha_expand_mov): Early exit to avoid nop moves.
10838         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
10839         (alpha_init_machine_status, alpha_mark_machine_status,
10840         alpha_free_machine_status): Always define.
10841         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
10842         (print_operand, print_operand_address): Add TLS relocs.
10843         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
10844         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
10845         (TARGET_SWITCHES): Add -mtls-kernel.
10846         (alpha_tls_size, alpha_tls_size_string): New.
10847         (TARGET_OPTIONS): Add -mtls-size=.
10848         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
10849         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
10850         (ASM_OUTPUT_LABELREF): Skip %.
10851         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
10852         (PREDICATE_CODES): Update.
10853         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
10854         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
10855         UNSPEC_TP, UNSPECV_SET_TP): New.
10856         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
10857         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
10858         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
10859         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
10860         (call_value_osf_2_er): Accept anything as op4.
10861         * config/alpha/alpha-protos.h: Update.
10862         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
10864 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
10866         * cppinit.c (append_include_chain): Always pay attention to
10867         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
10868         marker on argument.
10870 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
10872         * target.h: Fix formatting.
10873         * timevar.h: Likewise.
10874         * tlink.c: Likewise.
10875         * toplev.c: Likewise.
10876         * toplev.h: Likewise.
10877         * tree.c: Likewise.
10878         * tree-dump.h: Likewise.
10879         * tree.h: Likewise.
10880         * tree-inline.h: Likewise.
10881         * unroll.c: Likewise.
10882         * unwind-dw2.c: Likewise.
10883         * unwind-dw2-fde.c: Likewise.
10884         * unwind-dw2-fde-glibc.c: Likewise.
10885         * unwind-dw2-fde.h: Likewise.
10886         * unwind.h: Likewise.
10887         * unwind-sjlj.c: Likewise.
10888         * varasm.c: Likewise.
10889         * varray.h: Likewise.
10890         * vmsdbg.h: Likewise.
10891         * vmsdbgout.c: Likewise.
10892         * xcoffout.h: Likewise.
10894 2002-05-31  Igor Shevlyakov <igor@microunity.com>
10896         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
10897         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
10899 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
10901         * gcc.c (cpp_unique_options): Remove "-d" options.
10902         (cpp_debug_options): New spec string.
10903         (default_compilers): Use it.
10904         * objc/lang-specs.h: Likewise.
10906 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
10908         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
10909         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
10910         * gcc/mklibgcc.in: Likewise.
10911         * gcc/config/arc/t-arc: Likewise.
10912         * gcc/configure.in: Likewise.
10913         * gcc/configure: Regenerate.
10915 2002-05-31  Stan Shebs  <shebs@apple.com>
10916             Turly O'Connor  <turly@apple.com>
10918         * c-decl.c (struct binding_level): Change int field n_incomplete
10919         to tree list incomplete_list.
10920         (clear_binding_level): Init field with NULL.
10921         (pushdecl): Add incomplete type to list.
10922         (mark_binding_level): Mark the incomplete list.
10923         (finish_struct): Scan the incomplete list for types instead
10924         of all decls in the current binding level.
10926 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10928         * pa.c (output_millicode_call): Add missing '%' characters.
10929         (output_call): Likewise.
10931 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
10933         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
10934         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
10936 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
10938         * varasm.c (mark_constant_pool): Walk epilogue delay list
10939         checking the insn, not the chain for potential constants.
10941 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
10943         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
10945 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
10947         * i386.c (classify_argument): Properly handle base types.
10949         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
10950         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
10951         registers.
10953 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
10955         * gcse.c (gcse_emit_move_after): New.
10956         (pre_delete, hoist_store): Use it.
10958         * reload1.c (emit_input_reload_insns): Use constrain_operands
10959         instead of constraint_accepts_reg_p to verify optimization.
10960         (constraint_accepts_reg_p): Kill
10962         * reload1.c (reload_cse_delete_noop_set): Kill.
10963         (reload_cse_simplify): use delte_insn_and_edges.
10965 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10967         * cfgloop.c (flow_loops_find): Initialize first and last fields
10968         correctly.
10970 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
10972         * c-common.c (builtin_define_std): Correct logic.
10974 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10976         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
10977         (output_call): Likewise.
10979 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10981         * pa.c: Move output.h include after tree.h include.
10982         (pa_asm_output_mi_thunk): Constify identifier lab.
10984 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
10986         * config/ns32k/ns32k.h: Define named constants for the
10987         bits in target_flags and use them.
10988         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
10990 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10992         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
10993         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
10994         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
10995         default scheduling model.
10996         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
10997         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
10998         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
10999         * doc/install.texi (hppa*-*-*): Document default scheduling.
11001 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11003         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
11005 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11007         * config.gcc (ns32k-*-netbsd*): Set tm_file to
11008         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
11009         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
11010         netbsd.h, or netbsd-aout.h.
11012 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
11014         * longlong.h (count_trailing_zeros): Add missing \, and clean up
11015         whitespace in __ns32000__ case.
11017 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
11019         * expr.c (expand_expr): Output partially zeroed out vectors with
11020         output_constant_def.
11022 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11024         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
11025         (sh-*-netbsdelf*)
11026         (shl*-*-netbsdelf*): New targets.
11027         * config/sh/netbsd-elf.h: New file.
11028         * config/sh/t-netbsd: New file.
11030 2002-05-30  Richard Henderson  <rth@redhat.com>
11031             Eric Botcazou  <ebotcazou@multimania.com>
11033         PR optimization/6822
11034         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
11035         to unsigned int for op1 comparisons.  Use gen_int_mode.
11037 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
11039         * expmed.c (const_mult_add_overflow_p): New.
11040         * expr.h: Declare it.
11041         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
11042         Don't eliminate the biv if the giv has a constant multiplier and
11043         the rhs argument of the comparison does satisfy the predicate.
11044         Use expand_mult_add to compute the replacement constant.
11046 2002-05-30  Osku Salerma  <osku@iki.fi>
11048         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
11049         (c_common_get_alias_set): Handle it.
11050         * doc/extend.texi: Document it.
11052 2002-05-30  Richard Henderson  <rth@redhat.com>
11054         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11055         * toplev.c (process_options): Don't check it.
11056         * doc/tm.texi: Don't document it.
11057         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
11058         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
11059         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
11060         frame pointer optimization if current_function_profile.
11062 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
11064         * langhooks.c: Fix formatting.
11065         * langhooks.h: Likewise.
11066         * lcm.c: Likewise.
11067         * libgcc2.c: Likewise.
11068         * lists.c: Likewise.
11069         * local-alloc.c: Likewise.
11070         * loop.c: Likewise.
11071         * loop.h: Likewise.
11073 2002-05-30  Marc Espie <espie@openbsd.org>
11075         * config.gcc (sparc64-*-openbsd*): New.
11076         * config/sparc/openbsd1-64.h: New.
11077         * config/sparc/openbsd64.h: New.
11079 2002-05-30  Jeff Law <law@redhat.com>
11081         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
11082         a dead insn with a REG_RETVAL note when the entire libcall is not
11083         dead and remove the associated REG_LIBCALL note at the same time.
11085 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
11087         * lcm.c (output.h): #include.
11088         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
11089         as an ordinary block.
11090         (optimize_mode_switching): Don't pretend that the exit block is
11091         an ordinary block, or handle sucessors of entry block specially.
11092         Instead, split edges from entry block and to exit block, and
11093         put a computing definition on the thus gained post-entry-block,
11094         and a need on the pre-exit-block.
11096 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
11098         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
11099         * rtl.texi: Document 'B'
11101 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
11103         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
11104         at run-time.
11105         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
11107 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
11109         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
11110         const0_rtx instead of NULL_RTX when in error.
11111         (altivec_expand_abs_builtin): Same.
11112         (rs6000_expand_binop_builtin): Same.
11113         (altivec_expand_predicate_builtin): Same.
11114         (altivec_expand_stv_builtin): Same.
11115         (rs6000_expand_ternop_builtin): Same.
11116         (altivec_expand_builtin): Same.
11118 2002-05-29  David S. Miller  <davem@redhat.com>
11120         * rtl.h (clear_emit_caches): Delete.
11121         * integrate.c (output_inline_function): Don't call it.
11122         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
11123         (clear_emit_caches): Delete definition.
11124         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
11126 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
11128         * config/mmix/mmix.c: Include real.h.
11129         (mmix_constant_address_p): Remove redundant test before switch.
11131 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11133         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
11134         only if not already defined.
11136 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
11138         * config/h8300/h8300-protos.h: Remove prototypes for
11139         ok_for_bclr and small_power_of_two.
11140         * config/h8300/h8300.c (small_power_of_two): Remove.
11141         (ok_for_blcr): Likewise.
11142         (fix_bit_operand): Make WHAT deal with an integer instead of a
11143         constraint character.
11144         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
11145         (CONST_OK_FOR_P): Likewise.
11146         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
11147         CONST_OK_FOR_P any more.
11148         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
11149         of fix_bit_operand.
11150         (iorqi3): Likewise.
11151         (xorqi3): Likewise.
11153 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11155         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11156         (CPP_PREDEFINES): Make sure this is undefined.
11157         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
11158         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
11159         or -U__MIPSEB__ before defining one or the other.  Instead,
11160         use %(subtarget_endian_default) if neither -EB nor -EL are
11161         specified.
11162         (SUBTARGET_EXTRA_SPECS): Define.
11163         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
11164         %(netbsd_cpp_spec).
11166 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
11168         * doc/md.texi (Patterns): Note pattern condition pitfall
11169         for unnamed insn.
11171 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
11173         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
11174         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
11175         ternary operations from here...
11176         (rs6000_expand_builtin): ...to here.
11177         New argument expandedp.
11178         Change all instances of altivec_expand_binop_builtin to
11179         rs6000_expand_binop_builtin.
11180         (altivec_expand_unop_builtin): Rename to
11181         rs6000_expand_unop_builtin.
11182         (altivec_expand_binop_builtin): Rename to
11183         rs6000_expand_binop_builtin.
11184         (altivec_expand_ternop_builtin): Rename to
11185         rs6000_expand_ternop_builtin.
11187 2002-05-29  Richard Henderson  <rth@redhat.com>
11189         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
11190         (TARGET_BI_ARCH): Likewise.
11191         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
11192         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
11193         (TARGET_64BIT_DEFAULT): Default to 0.
11194         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
11196 2002-05-29  Richard Henderson  <rth@redhat.com>
11198         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
11199         (get_pc_thunk_name): New.
11200         (output_set_got): Use it.
11201         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
11202         into linkonce sections.
11204 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11206         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11207         (CPP_PREDEFINES): Make sure this is undefined.
11208         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
11209         (CPP_SUBTARGET_SPEC): Don't provide different versions for
11210         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
11211         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
11212         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
11213         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11214         (CPP_PREDEFINES): Make sure this is undefined.
11215         (SUBTARGET_EXTRA_SPECS): Define.
11216         (CPP_SPEC): Use %(netbsd_cpp_spec).
11218 2002-05-29  Jeff Law <law@redhat.com>
11220         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
11222         * flow.c (propagate_one_insn): Do not remove a dead insn if it
11223         contains a REG_RETVAL note.
11225         * haifa-sched (sched_analyze): Remove another useless clearing
11226         of SCHED_GROUP_P I missed yesterday.
11228         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
11229         * pa.c (pa_asm_output_mi_thunk): New function.
11230         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
11232 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11233             Marek Michalkiewicz  <marekm@amelek.gda.pl>
11235         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
11236         (avr_asm_only_p): Make non-static.
11237         (enum avr_arch): Remove.
11238         (avr_arch_types): New.
11239         (avr_mcu_types): Update.
11240         (avr_override_options): Use avr_arch_types table instead of switch.
11241         * avr.h (CPP_PREDEFINES): Die.
11242         (avr_base_arch_macro, avr_extra_arch_macro): New.
11243         (TARGET_CPU_CPP_BUILTINS): New.
11244         (CPP_SPEC, EXTRA_SPECS): Simplify.
11245         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
11246         CPP_AVR5_SPEC): Die.
11248 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11250         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11251         NETBSD_OS_CPP_BUILTINS_AOUT.
11252         (SUBTARGET_EXTRA_SPECS): Define.
11253         (CPP_SPEC): Use %(netbsd_cpp_spec).
11255 2002-05-29  Richard Henderson  <rth@redhat.com>
11257         * config/i386/i386.c (ix86_output_function_epilogue): New.
11258         (TARGET_ASM_FUNCTION_EPILOGUE): New.
11259         (pic_label_name): Remove.
11260         (pic_labels_used): New.
11261         (ix86_asm_file_end): Emit one pc load stub for each register used.
11262         (output_set_got): Generate deep pc load to any register.
11263         (ix86_select_alt_pic_regnum): New.
11264         (ix86_save_reg): Don't save pic register if we can find a valid
11265         call-clobbered replacement.
11266         (ix86_expand_prologue): If we found a valid replacement, renumber
11267         pic_offset_table_rtx.
11268         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
11269         pic_offset_table_rtx after reload.
11270         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
11271         * config/i386/i386.md (set_got): Make insn, not expander.
11272         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
11274 2002-05-29  Richard Henderson  <rth@redhat.com>
11276         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
11277         alignment for alloca.
11279 2002-05-29  Richard Henderson  <rth@redhat.com>
11281         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
11282         (print_operand_address): Only add rip for symbolic addresses
11283         for which we do not have another relocation type.
11285 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11287         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11288         (EXTRA_SPECS): Add netbsd_cpp_spec.
11289         (CPP_SPEC): Use %(netbsd_cpp_spec).
11290         (CPP_PREDEFINES): Remove.
11291         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11292         (EXTRA_SPECS): Define.
11293         (CPP_SPEC): Use %(netbsd_cpp_spec).
11294         (CPP_PREDEFINES): Remove.
11296 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11298         PR preprocessor/6844
11299         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
11300         NUL.
11302 2002-05-29  Eric Christopher  <echristo@redhat.com>
11304         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
11305         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
11307 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
11309         * config/fr30/fr30.md: Remove previous restriction on splits.
11310         Enforce conformance through gen_lowpart and cont_int_operand.
11311         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
11312         as the assembler does not support ".bss".
11314 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11316         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
11317         (CPP_PREDEFINES): Remove.
11318         (SUBTARGET_EXTRA_SPECS): Define.
11319         (CPP_SPEC): Use %(netbsd_cpp_spec).
11320         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
11321         (CPP_PREDEFINES): Remove.
11322         (SUBTARGET_EXTRA_SPECS): Define.
11323         (CPP_SPEC): Use %(netbsd_cpp_spec).
11324         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
11325         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
11326         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
11327         Add netbsd_cpp_spec.
11328         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
11330 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11331             Zack Weinberg <zack@codesourcery.com>
11333         * cppexp.c (cpp_num): Move to cpplib.h.
11334         (CPP_ERROR): Remove.
11335         (interpret_float_suffix, interpret_int_suffix): New.
11336         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
11337         (cpp_classify_number, cpp_interpret_integer): New.
11338         (interpret_number): Remove.
11339         (eval_token): Update to use new routines.
11340         * cpphash.h (cpp_num_part): Move to cpplib.h.
11341         * cppinit.c (cpp_post_options): Set warn_long_long.
11342         * cpplib.h (struct cpp_options): Add warn_long_long.
11343         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
11344         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
11345         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
11346         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
11347         cpp_interpret_integer): New.
11349 2002-05-29  Joel Sherrill <joel@OARcorp.com>
11351         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
11353 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
11355         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
11356         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
11357         (CPP_SUBTARGET_SPEC): Define.
11358         (SUBTARGET_EXTRA_SPECS): Define.
11359         (CPP_SPEC): Remove.
11361 2002-05-29  Chris Lattner  <sabre@nondot.org>
11363         * ssa.c (rename_insn_1): Rename uses of undefined registers to
11364         prevent confusion if/when the register is defined.
11366 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
11368         PR target/6838
11369         * config/cris/cris.md: Fix typos and thinkos in comments.
11370         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
11371         second alternative.
11372         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
11373         ("*mov_sideqi_mem"): Similar, but for operand 3.
11374         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
11375         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
11376         Remove spurious mode specifier on operand 2.
11378 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
11380         * config/h8300/h8300-protos.h: Remove the prototype for
11381         o_operand.
11382         Add prototypes for single_one_operand and single_zero_operand.
11383         * config/h8300/h8300.c (o_operand): Remove.
11384         (single_one_operand): New.
11385         (single_zero_operand): Likewise.
11386         (print_operand): For 'V' operand, and the operand with 0xff.
11387         For 'V' and 'W' operands, do not and the bit position with 7.
11388         * config/h8300/h8300.md (various anonymous patterns): Replace
11389         use of exact_log2 with single_one_operand/single_zero_operand.
11391 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
11393         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
11395 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
11397         * config/s390/s390.c (legitimate_pic_operand_p): Do not
11398         accept symbolic LARL operands.
11399         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
11400         epilogue insns.
11402 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
11404         * config/s390/s390.md (cmpstr_64/31): Mark whole
11405         input registers as used.
11407 2002-05-28  Richard Henderson  <rth@redhat.com>
11409         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
11410         not current_function_uses_pic_offset_table and
11411         current_function_uses_const_pool; examine current_function_profile.
11412         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
11413         input to blockage if needed.
11414         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
11415         (legitimize_pic_address): Likewise.  Set regs_ever_live for
11416         pic_offset_table_rtx when invoked during reload.
11417         * config/i386/i386.h (FINALIZE_PIC): Remove.
11418         * config/i386/i386.md (tablejump): Reformat.  Do not set
11419         current_function_uses_pic_offset_table.
11420         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
11421         (blockage): Accept anything as operand 0.
11423 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
11425         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
11426         common CPP built-ins for all NetBSD a.out targets.
11427         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
11428         common CPP built-ins for all NetBSD ELF targets.
11429         * config/netbsd.h: Add missing notice.
11430         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
11431         for all NetBSD targets.
11432         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
11433         for all NetBSD targets using an LP64 code model.
11434         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
11435         NetBSD targets.
11437 2002-05-28  Richard Henderson  <rth@redhat.com>
11439         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
11440         update if UPDATE_LIFE_LOCAL.
11442 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
11444         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
11446 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
11447                           Jason R. Thorpe <thorpej@wasabisystems.com>
11449         config/sh reorganization to factor out endianness and coff:
11451         * config/sh/little.h: New file.
11452         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
11453         defined, define to 0 to select big-endian.
11454         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
11455         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11456         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11457         * config/sh/t-be: New file.
11458         * config/sh/t-le: New file.
11460         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
11461         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
11462         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
11463         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
11464         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
11465         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
11466         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
11467         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
11468         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
11469         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
11470         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
11471         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
11472         (LINK_SPEC): Define to SH_LINK_SPEC.
11473         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
11474         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
11475         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
11476         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
11477         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
11478         * config/sh/coff.h: New file.
11479         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
11480         (TARGET_OBJFMT_CPP_BUILTINS): Define.
11481         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
11482         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
11483         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
11484         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
11485         (PTRDIFF_TYPE): Likewise.
11486         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
11487         (CPP_PREDEFINES): Don't define.
11488         (TARGET_OBJFMT_CPP_BUILTINS): Define.
11489         (LINK_SPEC): Define to SH_LINK_SPEC.
11490         (LINK_EMUL_PREFIX): Redefine.
11491         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
11492         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
11493         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
11494         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
11495         (TARGET_OS_CPP_BUILTINS): Define.
11496         (TARGET_DEFAULT): Redefine.
11497         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
11498         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
11499         (LINK_SPEC): Don't redefine.
11500         (LINK_DEFAULT_CPU_EMUL): Redefine.
11501         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
11502         * sh.c (sh_asm_named_section): Don't declare / define.
11503         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
11504         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
11505         (sh64-*-elf* tm_file): Likewise.
11506         (sh-*-rtemself* tm_file): Likewise.
11507         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
11508         (sh-*-linux* tmake_file): Add sh/t-le.
11509         (sh-*-rtems* tm_file): Add sh/coff.h
11510         (sh-*-* tm_file): Likewise.
11512 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
11514         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
11515         CONSTANT_POOL_ADDRESS_P.
11517         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
11519 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
11520             Jeff Law <law@redhat.com>
11522         * optabs.c (expand_binop): Fix nwords sign warnings.
11523         generate pseudo for add_optab.
11525         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
11526         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
11528 2002-05-28      Marc Espie <espie@openbsd.org>
11530         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
11531         inherited from gas.h.
11532         (ASM_QUAD):  Undef.  OpenBSD does not support it.
11534 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
11536         * doc/install.texi (binaries): Change mingw binaries
11537         link to www.mingw.org.
11539 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11541         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
11543 2002-05-28  Richard Henderson  <rth@redhat.com>
11545         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
11546         bottom alignment for leaf functions.
11548 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
11550         * config/pa/milli32.S, config/pa/lib1funcs.asm,
11551         config/sparc/sol2-g1.asm: Delete unused files.
11553 2002-05-28  Richard Henderson  <rth@redhat.com>
11555         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
11557         * flow.c (calculate_global_regs_live): Rename call_used to
11558         invalidated_by_call.  Initialize from regs_invalidated_by_call
11559         instead of call_used_regs.
11561         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
11562         DECL_EXTERNAL.
11564 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
11566         * tree.h: Don't include real.h.
11567         Forward-declare struct realvaluetype.
11568         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
11569         contain it.
11570         (TREE_REAL_CST_PTR): New accessor.
11571         (TREE_REAL_CST): Update.
11572         * real.h: Include machmode.h.
11573         (realvaluetype): Make it struct realvaluetype, not a typedef.
11574         (build_real): Prototype here.
11576         * tree.c: Include real.h.
11577         (build_real): Allocate the REAL_VALUE_TYPE as a separate
11578         object in GC memory, set TREE_REAL_CST_PTR to point to it.
11579         (build_real_from_int_cst): Use build_real.
11580         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
11581         REAL_CST.
11583         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
11584         fold-const.c, print-tree.c, real.c: Include real.h.
11585         * Makefile.in: Update dependency lists.
11587 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11589         * basic-block.h (last_basic_block): Declare.
11590         (expunge_block_nocompact): Declaration removed.
11591         (compact_blocks): Declare.
11592         * cfg.c (last_basic_block): New variable.
11593         (expunge_block_nocompact): Removed.
11594         (expunge_block): Do not compact basic blocks.
11595         (compact_blocks): New.
11596         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
11597         longer change.
11598         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
11599         last_basic_block.
11600         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
11601         real positions of blocks.
11602         (delete_unreachable_blocks): Simplified -- quadratic behavior now
11603         cannot occur.
11604         (cleanup_cfg): Compact blocks.
11605         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
11606         basic_block_info varray.
11607         (flow_delete_block): Comment update.
11608         (back_edge_of_syntactic_loop_p): Modify position check code.
11609         (verify_flow_info): Update checking.
11610         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
11611         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
11612         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
11613         indices no longer change.
11614         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
11615         last_basic_block.
11616         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
11617         * profile.c (branch_prob): Compact blocks.
11618         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
11619         last_basic_block.
11621 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
11623         * config/h8300/h8300.md (two anonymous patterns): New.
11625 2002-05-28  David S. Miller  <davem@redhat.com>
11627         * config/sparc/sparc.md (cpu): Tidy.
11628         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
11629         'trap'.
11630         (in_call_delay): Delete reference to 'return' type.
11631         (eligible_for_return_delay, in_return_delay, define_delay
11632         referencing those): Delete.
11633         (rest of file): Use new type attributes as appropriate.
11634         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
11635         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
11636         * config/sparc/ultra1_2.md (us1_single): New reservation.
11637         (us1_ialuX): Likewise.
11638         * config/sparc/ultra3.md (us3_single): Likewise.
11639         (us3_ialuX): Likewise.
11640         (us3_imul, us3_idiv): Tweak.
11642 2002-05-28  Richard Henderson  <rth@redhat.com>
11644         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
11645         STRING_CST.
11647 2002-05-28  Richard Henderson  <rth@redhat.com>
11649         * config.gcc: Obsolete mn10200.
11651 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11653         * cppexp.c (interpret_number): Optimize for single-digit
11654         and less-than-half-precision cases.
11655         (num_trim, num_positive, num_div_op): Cast constants.
11657 2002-05-27  Bo Thorsen  <bo@suse.de>
11659         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
11660         3.1 branch. The file was made by Jakub Jelinek.
11661         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
11662         support so multilib doesn't break. And don't define this at all
11663         when -Dinhibit_libc is used.
11664         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
11665         * config/i386/t-linux64: Implement full multilib support. Patch
11666         originally done by Andreas Jaeger and Jakub Jelinek.
11668 2002-05-27  Roger Sayle  <roger@eyesopen.com>
11670         * c-common.c: Add support for __attribute__((nothrow)) to specify
11671         that a function cannot throw an exception (using TREE_NOTHROW).
11672         (handle_nothrow_attribute): New function to process this attribute.
11674         * doc/extend.texi: Document the new nothrow function attribute.
11676 2002-05-27  H.J. Lu  (hjl@gnu.org)
11678         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
11679         (num_positive): Likewise.
11680         (num_div_op): Likewise.
11682 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11684         * c-common.c (c_common_init): Always use intmax_t.
11686 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11688         * c-common.c (c_common_init): Use intmax_t for now.
11690 2002-05-24  Andrew Haley  <aph@redhat.com>
11692         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
11693         if T is a boolean type.
11695 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11697         * basic-block.h (last_basic_block): Defined as synonym for
11698         n_basic_blocks.
11699         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
11700         flow_depth_first_order_compute, flow_preorder_transversal_compute,
11701         flow_dfs_compute_reverse_init): Replaced relevant occurences of
11702         n_basic_blocks with last_basic_block.
11703         * cfgbuild.c (make_edges): Likewise.
11704         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
11705         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
11706         * combine.c (combine_instructions): Likewise.
11707         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
11708         iterative_dataflow_bitmap): Likewise.
11709         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
11710         calc_idoms, idoms_to_doms): Likewise.
11711         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
11712         Likewise.
11713         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
11714         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
11715         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
11716         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
11717         delete_null_pointer_checks, compute_code_hoist_vbeinout,
11718         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
11719         compute_store_table, build_store_vectors): Likewise.
11720         * haifa-sched.c (sched_init): Likewise.
11721         * ifcvt.c (if_convert): Likewise.
11722         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
11723         pre_edge_lcm, compute_available, compute_nearerout,
11724         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
11725         Likewise.
11726         * predict.c (estimate_probability, process_note_prediction,
11727         note_prediction_to_br_prob): Likewise.
11728         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
11729         * recog.c (split_all_insns, peephole2_optimize): Likewise.
11730         * regrename.c (copyprop_hardreg_forward): Likewise.
11731         * resource.c (init_resource_info): Likewise.
11732         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
11733         init_regions, schedule_insns): Likewise.
11734         * ssa-ccp.c (ssa_const_prop): Likewise.
11735         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
11736         * ssa.c (compute_dominance_frontiers,
11737         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
11739         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
11740         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
11741         sizes consistently.
11743 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
11745         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
11746         new.
11747         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
11748         hoist_insn_after, hoist_insn_to_edge): New.
11750 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
11752         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
11753         (PROP_FINAL): Include.
11754         * flow.c (life_analysis, update_life_info,
11755         init_propagate_block_info, mark_set_1, mark_used_rgs):
11756         Support SCAN_DEAD_STORE.
11758 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11760         * c-common.c (c_common_init): Set CPP arithmetic precision.
11761         * cppexp.c (cpp_num_part): Move typedef ...
11762         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
11763         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
11764         (sanity_checks): Update.
11766 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
11768         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
11769         (mkheaders): New rule.
11770         (install-mkheaders): New rule.
11771         * configure.in (all_outputs): Add mkheaders.
11772         * configure: Regenerate.
11773         * mkheaders.in: New file.
11775 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
11777         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
11779 2002-05-26  Andreas Jaeger  <aj@suse.de>
11781         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
11783 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
11785         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
11786         right_shift): Remove.
11787         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
11788         HIGH_PART): New.
11789         (struct op): Use cpp_num.
11790         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
11791         num_part_mul, num_unary_op, num_binary_op, num_negate,
11792         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
11793         num_div_op, num_lshift, num_rshift, append_digit): New.
11794         (interpret_number, parse_defined, eval_token, reduce): Update
11795         for two-integer arithmetic.
11796         (binary_handler): New typedef.
11797         (optab): Update.
11798         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
11799         (_cpp_parse_expr, reduce): Update to handle two-integers.
11800         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
11802 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11804         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
11805         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
11806         branch insn into account, do not assume 1.
11807         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
11808         over single word insn.  Handle upper half of I/O space too.
11809         * config/avr/avr.md (*sbrx_branch): Use it.
11810         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
11811         (*sbix_branch, *sbix_branch_bit7): Likewise.
11812         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
11813         Use RTL peepholes to optimize register operand sign tests.
11815 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11817         * config/avr/avr.c (avr_asm_only_p): New variable.
11818         (avr_override_options): Set it here if AVR1.
11819         (asm_file_start): Test it here, report an error if set.
11821 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
11823         * alias.c: Fix formatting.
11824         * attribs.c: Likewise.
11825         * bb-reorder.c: Likewise.
11826         * bitmap.c: Likewise.
11827         * bitmap.h: Likewise.
11828         * builtins.c: Likewise.
11830 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
11832         * reload.c (find_valid_class): Accept new argument DEST,
11833         choose class accordingly.
11834         (push_reload): Update callers.
11836 2002-05-26  Andreas Jaeger  <aj@suse.de>
11838         * combine.c (combine_instructions): Do not indent #if for
11839         traditional C.
11841 2002-05-25  Richard Henderson  <rth@redhat.com>
11843         * c-pragma.c (apply_pragma_weak): Convert value identifier to
11844         string for decl_attributes.
11845         (handle_pragma_weak): Call assemble_alias if we're modifying
11846         an existing decl.
11848 2002-05-25  Richard Henderson  <rth@redhat.com>
11850         PR target/6788
11851         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
11852         using rtl instead of fprintf.
11853         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
11854         * config/sparc/sparc-protos.h: Update.
11856 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
11858         * Makefile.in (C_COMMON_H): Fix.
11859         Update other targets.
11860         * c-common.c: Don't include c-lex.h.
11861         (builtin_define_with_value): Make static and prototype.
11862         (builtin_define_std): Move from c-lex.h.
11863         * c-common.h (init_c_lex): Move from c-lex.h.
11864         * c-decl.c: Don't include c-lex.h.
11865         (make_pointer_declarator): Move from c-parse.in.
11866         * c-lex.c: Don't include c-lex.h.
11867         * c-lex.h: Remove.
11868         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
11869         (make_pointer_declarator): Move to c-decl.c.
11870         * c-pragma.c: Don't include c-lex.h.
11871         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
11872         * c-tree.h (make_pointer_declarator): New.
11873 doc:
11874         * passes.texi, tm.texi: Update.
11875 objc:
11876         * Make-lang.in: Update and correct.
11877         * objc-act.c: Don't include c-lex.h or cpplib.h.
11878 treelang:
11879         * treetree.c: Don't include c-lex.h.
11880 config:
11881         * darwin-c.c: Don't include c-lex.h.
11882         * c4x/c4x-c.c: Don't include c-lex.h.
11883         * c4x/t-c4x: Update.
11884         * i370/i370-c.c: Don't include c-lex.h.
11885         * i370/t-i370: Update.
11886         * i960/i960-c.c: Don't include c-lex.h.
11887         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
11888         * i960/t-960bare: Update.
11889         * i960/t-vxworks: Update.
11890         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
11891         * rs6000/t-darwin: Update.
11892         * rs6000/t-rs6000-c-rule: Update.
11893         * v850/v850-c.c: Don't include c-lex.h.
11894         * v850/v850.c: Don't include c-lex.h or cpplib.h.
11897 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
11899         * tree.def: Fix typos.
11900         * doc/install.texi: Likewise.
11902 2002-05-25  Richard Henderson  <rth@redhat.com>
11904         * configure.in (HAVE_AS_TLS): Add ia64 test.
11905         * configure: Rebuild.
11906         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
11907         (override_options): Set it.
11908         (TARGET_HAVE_TLS): New.
11909         (sdata_symbolic_operand): Look for 's'.
11910         (tls_symbolic_operand): New.
11911         (ia64_expand_load_address): Abort for tls symbols.
11912         (gen_tls_get_addr): New.
11913         (gen_thread_pointer): New.
11914         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
11915         (rtx_needs_barrier): Add new unspecs.
11916         (ia64_encode_section_info): Handle tls symbols.
11917         (ia64_strip_name_encoding): Strip two encoding chars.
11918         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
11919         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
11920         (TARGET_OPTIONS): Add tls-size.
11921         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
11922         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
11923         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
11924         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
11925         (movsf, movdf): Likewise.
11926         (movdi_symbolic): Use match_scratch.  Don't split if we won't
11927         have a scratch availiable.
11928         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
11929         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
11930         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
11931         * config/ia64/ia64-protos.h: Update.
11932         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
11933         sdata_symbolic_operand.
11934         (ASM_OUTPUT_LABELREF): Strip two characters.
11936 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
11938         * combine.c (simplify_set): Remove an unnecessary subreg.
11940 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11942         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
11944         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
11946 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
11948         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
11950 2002-05-25  Roger Sayle  <roger@eyesopen.com>
11952         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
11953         (cond (compare x y) 0) into the equivalent (cond x y).
11955 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
11957         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
11959 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
11961         * config.gcc: Remove all stanzas for previously obsoleted
11962         systems.  Where necessary, add explicit error stanzas to
11963         prevent removed systems from being misidentified as something
11964         else.  Begin a fresh obsoletions list, with the systems that
11965         were reprieved last round.
11966         * doc/install.texi: Remove all mention of dead targets.
11967         * fixinc/mkfixinc.sh: Likewise.
11969         * config/arm/arm.h: Bit 31 of target_flags is no longer
11970         reserved.
11972         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
11973         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
11974         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
11975         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
11976         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
11977         config/alpha/osf12.h, config/alpha/osf2or3.h,
11978         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
11979         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
11980         config/clipper/clipper-protos.h, config/clipper/clipper.c,
11981         config/clipper/clipper.h, config/clipper/clipper.md,
11982         config/clipper/clix.h, config/convex/convex-protos.h,
11983         config/convex/convex.c, config/convex/convex.h,
11984         config/convex/convex.md, config/convex/fixinc.convex,
11985         config/convex/proto.h, config/elxsi/elxsi-protos.h,
11986         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
11987         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
11988         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
11989         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
11990         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
11991         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
11992         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
11993         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
11994         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
11995         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
11996         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
11997         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
11998         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
11999         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
12000         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
12001         config/m68k/altos3068.h, config/m68k/apollo68.h,
12002         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
12003         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
12004         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
12005         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
12006         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
12007         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
12008         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
12009         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
12010         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
12011         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
12012         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
12013         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
12014         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
12015         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
12016         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
12017         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
12018         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
12019         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
12020         config/mips/dec-osf1.h, config/mips/elflorion.h,
12021         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
12022         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
12023         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
12024         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
12025         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
12026         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
12027         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
12028         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
12029         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
12030         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
12031         config/ns32k/sequent.h, config/ns32k/tek6000.h,
12032         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
12033         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
12034         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
12035         config/sparc/rtems.h, config/we32k/we32k-protos.h,
12036         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
12037         Delete file.
12039 2002-05-24  Richard Henderson  <rth@redhat.com>
12041         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
12042         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
12043         * config/i386/i386.c (tls_model_chars): Add leading space.
12044         (tls_symbolic_operand): Don't bias by 1.
12045         (legitimize_address): Don't unbias by 1.
12047 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
12049         * lcm.c (optimize_mode_switching): Change bb used as indices
12050         to bb->index.
12052 2002-05-24  Richard Henderson  <rth@redhat.com>
12054         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
12055         of update_life_info_in_dirty_blocks.
12057 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
12059         PR other/6782
12060         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
12062 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
12064         PR preprocessor/6780
12065         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
12067 2002-05-24  Jim Blandy  <jimb@redhat.com>
12069         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
12070         entry with a type code of zero, marking the end of the compilation
12071         unit's macro info.
12073 2002-05-24  Richard Henderson  <rth@redhat.com>
12075         * varasm.c (asm_output_bss): Always output one byte.
12076         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
12078 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12080         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
12081         namespace.
12083 2002-05-24  Andreas Jaeger  <aj@suse.de>
12085         * ggc-page.c (alloc_page): Cast variables of type size_t to
12086         unsigned long, adjust printf format string.
12087         (ggc_alloc): Likewise.
12088         (ggc_print_statistics): Likewise.
12089         (ggc_print_statistics): Correct printf format string for SCALE to
12090         use unsigned long.
12092 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
12094         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
12096 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
12097             Zack Weinberg     <zack@codesourcery.com>
12099         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
12100         quoted strings.
12101         * dwarf2out.c (lookup_filename): Properly quote filename in .file
12102         directive in assembly file.
12103         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12104         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
12105         * config/pj/pj.h (ASM_FILE_START): Likewise.
12106         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
12107         * config/avr/avr.c (asm_file_end): Likewise.
12108         * toplev.c (output_quoted_string): Handle possibly signed plain
12109         char.
12110         * toplev.h (output_clean_symbol_name): Declare
12111         * toplev.c (output_clean_symbol_name): Define.
12112         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
12113         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
12115 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
12117         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
12119 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
12121         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
12122         of size of unsigned.
12124 2002-05-23  Richard Henderson  <rth@redhat.com>
12126         * configure.in (HAVE_AS_TLS): New test.
12127         * config.in, configure: Rebuild.
12128         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
12129         (ix86_tls_dialect_string, ix86_tls_dialect): New.
12130         (override_options): Set it.
12131         (tls_model_chars, tls_symbolic_operand): New.
12132         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
12133         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
12134         (local_exec_symbolic_operand): New.
12135         (get_pic_label_name): Merge into output_set_got.
12136         (ix86_asm_file_end): Emit pic_label_name if defined.
12137         (legitimate_constant_p, constant_address_p): New.
12138         (legitimate_pic_operand_p): New.
12139         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
12140         (legitimate_address_p): Likewise.
12141         (ix86_encode_section_info): Rename from i386_; handle tls decls.
12142         (ix86_strip_name_encoding): New.
12143         (get_thread_pointer): New.
12144         (legitimize_address): Handle tls symbols.
12145         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
12146         Remove UNSPEC_PLT.
12147         (struct machine_function): Add some_ld_name.
12148         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
12149         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
12150         (output_addr_const_extra): New.
12151         (maybe_get_pool_constant): New.
12152         (ix86_split_to_parts): Use it.
12153         (ix86_expand_move): Handle tls symbols.
12154         (ix86_tls_get_addr): New.
12155         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
12156         (TARGET_OPTIONS): Add tls-dialect.
12157         (CONSTANT_ADDRESS_P): Use new out-of-line function.
12158         (LEGITIMATE_CONSTANT_P): Likewise.
12159         (LEGITIMATE_PIC_OPERAND_P): Likewise.
12160         (TARGET_STRIP_NAME_ENCODING): New.
12161         (ASM_OUTPUT_LABELREF): New.
12162         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
12163         (OUTPUT_ADDR_CONST_EXTRA): New.
12164         (PREDICATE_CODES): Update.
12165         (ix86_tls_dialect, ix86_tls_dialect_string): New.
12166         * config/i386/i386.md: Regroup and renumber unspec constants.
12167         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
12168         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
12169         (tls_global_dynamic, tls_local_dynamic_base): New.
12170         (tls_local_dynamic_once): New.
12171         * config/i386/i386-protos.h: Update.
12173 2002-05-23  Richard Henderson  <rth@redhat.com>
12175         * genemit.c (gen_insn): Print file:lineno comment before function.
12176         (main): likewise.
12177         * gensupport.c (struct queue_elem): Add filename member.
12178         (queue_pattern): Initialize it; update all callers.
12179         (process_include): Don't free filename.
12180         (read_md_rtx): Set read_rtx_filename.
12182 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
12184         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
12186 2002-05-23  Richard Henderson  <rth@redhat.com>
12188         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
12190 2002-05-23  Richard Henderson  <rth@redhat.com>
12192         * doc/extend.texi (C++98 Thread-Local Edits): Update with
12193         commentary from Mark.
12195 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12197         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
12198         Use FOR_EACH_BB macros to iterate over basic block chain.
12199         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
12200         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
12201         Likewise.
12202         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
12203         find_unreachable_blocks, create_edge_list, verify_edge_list,
12204         remove_fake_edges, add_noreturn_fake_exit_edges,
12205         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
12206         Likewise.
12207         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12208         find_sub_basic_blocks): Likewise.
12209         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
12210         Likewise.
12211         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
12212         Likewise.
12213         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
12214         Likewise.
12215         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
12216         commit_edge_insertions, commit_edge_insertions_watch_calls,
12217         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
12218         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
12219         * conflict.c (conflict_graph_compute): Likewise.
12220         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12221         df_modified_p, df_refs_unlink, df_dump): Likewise.
12222         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
12223         * final.c (compute_alignments): Likewise.
12224         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
12225         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
12226         count_or_remove_death_notes): Likewise.
12227         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
12228         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
12229         classic_gcse, compute_transp, cprop, compute_pre_data,
12230         compute_transpout, invalidate_nonnull_info,
12231         delete_null_pointer_checks_1, delete_null_pointer_checks,
12232         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
12233         compute_store_table, build_store_vectors, store_motion): Likewise.
12234         * global.c (global_conflicts, mark_elimination): Likewise.
12235         * graph.c (print_rtl_graph_with_bb): Likewise.
12236         * haifa-sched.c (sched_init): Likewise.
12237         * ifcvt.c (if_convert): Likewise.
12238         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
12239         compute_available, compute_nearerout, compute_rev_insert_delete,
12240         optimize_mode_switching): Likewise.
12241         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
12242         * predict.c (estimate_probability, note_prediction_to_br_prob,
12243         propagate_freq, counts_to_freqs, expensive_function_p,
12244         estimate_bb_frequencies): Likewise.
12245         * profile.c (instrument_edges, get_exec_counts,
12246         compute_branch_probabilities, compute_checksum, branch_prob,
12247         find_spanning_tree): Likewise.
12248         * recog.c (split_all_insns, peephole2_optimize): Likewise.
12249         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
12250         Likewise.
12251         * regclass.c (scan_one_insn, regclass): Likewise.
12252         * regmove.c (mark_flags_life_zones, regmove_optimize,
12253         record_stack_memrefs): Likewise.
12254         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
12255         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
12256         * resource.c (find_basic_block): Likewise.
12257         * sched-ebb.c (schedule_ebbs): Likewise.
12258         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
12259         find_single_block_region, find_rgns, schedule_insns)
12260         * sibcall.c (optimize_sibling_and_tail_recursive_call)
12261         * ssa-ccp.c (optimize_unexecutable_edges,
12262         ssa_ccp_df_delete_unreachable_insns): Likewise.
12263         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
12264         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
12265         rename_block, convert_to_ssa, compute_conservative_reg_partition,
12266         compute_coalesced_reg_partition, rename_equivalent_regs,
12267         convert_from_ssa): Likewise.
12268         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
12269         process_for_unwind_directive): Likewise.
12271         * df.c (FOR_ALL_BBS): Removed.
12272         * gcse.c (struct null_pointer_info): Type of current_block field
12273         changed.
12274         (struct reg_avail_info): Type of last_bb field changed.
12275         * config/ia64/ia64.c (block_num): Removed.
12276         (need_copy_state): Type changed.
12277         (last_block): New.
12279 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12281         * cppinit.c (mark_named_operators): Split out from init_builtins.
12282         (cpp_finish_options): Call it from here instead.
12284 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
12286         * builtin-attrs.def: Update copyright years.
12287         (ATTR_NONNULL): New attribute identifier.
12288         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
12289         attribute tree lists.
12290         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
12291         format operand.
12292         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
12293         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
12294         attribute lists.  Chain the appropriate nonnull attribute.
12295         * c-format.c (check_format_arg): Remove null format string
12296         warning.
12297         * testsuite/gcc.dg/format/null-1.c: New test.
12299 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12301         * Makefile.in (ADAC): Define.
12302         (SYSLIBS): Define.
12303         (.SUFFIXES): Move before language makefile fragments.
12304         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
12306 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
12308         * varasm.c (make_decl_rtl): Don't allow weak variables to be
12309         placed in common.
12311 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
12313         * cfg.c (dump_flow_info): Print results of
12314         maybe_hot/probably_never_executed predicates.
12315         * toplev.c (open_dump_file): Print function frequency.
12317 2002-05-23  David S. Miller  <davem@redhat.com>
12319         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
12320         regsets.
12322 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
12324         * c-common.c (warn_nonnull): Declare.
12325         (c_common_attribute_table): Add "nonnull" attribute.
12326         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
12327         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
12328         check_function_arguments_recurse): New functions.
12329         * c-common.h (warn_nonnull): Declare extern.
12330         (check_function_arguments, check_function_arguments_recurse): New
12331         prototypes.
12332         * c-decl.c (c_decode_option): Add -Wnonnull option.
12333         * c-format.c (set_Wformat): Set warn_nonnull if enabling
12334         format checking.
12335         (format_check_context): New structure.
12336         (check_format_info_recurse): Remove recursion and rename to...
12337         (check_format_arg): ...this.  Update comment.
12338         (check_format_info): Use check_function_arguments_recurse.
12339         * c-typeck.c (build_function_call): Call check_function_arguments
12340         instead of check_function_format.
12341         * doc/extend.texi: Document "nonnull" attribute.
12342         * doc/invoke.texi: Docuemnt -Wnonnull option.
12343         * testsuite/gcc.dg/nonnull-1.c: New test.
12344         * testsuite/gcc.dg/nonnull-2.c: New test.
12346 2002-05-23  David S. Miller  <davem@redhat.com>
12348         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
12349         * cfgcleanup.c (cleanup_cfg): If it is set do not
12350         attempt to delete trivially dead insns.
12351         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
12352         * toplev.c (rest_of_compilation): Document non-trivial aspect
12353         the RTL before optimize_save_area_alloca is run.
12355 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12357         * c-lex.c (indent_level): Remove.
12358         (cb_file_change, c_lex): Remove indent level handling.
12359         * c-lex.h (indent_level): Remove.
12360         * input.h (struct file_stack): Remove indent_level.
12361         * toplev.c (push_srcloc): Remove indent_level handling.
12363 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
12365         PR target/6753
12366         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
12367         of x in constraints for clarity.
12368         (sse_mov?fcc split): abort if op2 == op3.
12369         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
12370         sse_movsfcc_const0_4): Add earlyclobber.
12371         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
12372         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
12373         Use Y instead of x in constraints.
12375 2002-05-23  Richard Henderson  <rth@redhat.com>
12377         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
12378         (C++98 Thread-Local Edits): New subsection.
12380         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
12381         (ix86_arch): Set type to enum processor_type.
12383         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
12384         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
12386 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
12388         * configure.in: Fix as version test for binutils 2.12.1 releases
12389         (without dates).
12390         * configure: Rebuilt.
12392 2002-05-23  Richard Henderson  <rth@redhat.com>
12394         * config/i386/i386.c (get_pic_label_name): New.
12395         (load_pic_register): Remove.
12396         (output_set_got): New.
12397         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
12398         * config/i386/i386.md (UNSPEC_SET_GOT): New.
12399         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
12400         (prologue_set_got, prologue_get_pc): Remove.
12401         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
12402         (builtin_setjmp_receiver): Use gen_set_got.
12403         * config/i386/i386-protos.h: Update.
12405 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
12407         * gcse.c (hash_expr): Do not use alias set for hashing.
12409 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
12411         * dbxout.c (dbxout_class_name_qualifiers): New function.
12412         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
12414 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12416         * cpperror.c (_cpp_begin_message): No special casing
12417         of CPP_FATAL_LIMIT.
12418         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
12419         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
12420         * cpplib.c (do_include_common): Use DL_ERROR.
12421         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
12422         (DL_ICE): Renumber.
12423         * fix-header.c (read_scan_file): Update.
12425 2002-05-22  Richard Henderson  <rth@redhat.com>
12427         * config/i386/i386.c (ix86_expand_call): New function, extracted
12428         from md call patterns.  Add pic_offset_table_rtx to
12429         CALL_INSN_FUNCTION_USAGE when needed.
12430         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
12431         (call_value_pop, call_value, untyped_call): Likewise.
12432         (call_exp, call_value_exp): Remove.
12433         * config/i386/i386-protos.h: Update.
12435 2002-05-22  Richard Henderson  <rth@redhat.com>
12437         * varasm.c (default_section_type_flags): Check for VAR_DECL
12438         before using DECL_THREAD_LOCAL.
12440 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
12442         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
12443         (STARTFILE_SPEC): Delete PE crt0.o.
12444         * config/rs6000/aix51.h: Same.
12445         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
12446         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
12447         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
12448         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
12449         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
12451 2002-05-22  Richard Henderson  <rth@redhat.com>
12453         * varasm.c (default_section_type_flags): Handle tls data and
12454         default sections.
12455         (default_unique_section): Handle tls sections.
12457 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
12459         * configure.in (CROSS): Define NATIVE_CROSS.
12460         * configure: Regenerate.
12461         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
12462         (startfile_prefix_spec): New var.
12463         (static_specs): Add startfile_prefix_spec.
12464         (do_spec_2): Split out from..
12465         (do_spec): ..here.
12466         (main): Process startfile_prefix_spec.
12467         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
12468         dynamic linker.
12469         (STARTFILE_PREFIX_SPEC): Define.
12470         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
12471         absolute paths.
12473 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
12475         * cpperror.c: Fix formatting.
12476         * cppexp.c: Likewise.
12477         * cppfiles.c: Likewise.
12478         * cpphash.c: Likewise.
12479         * cpphash.h: Likewise.
12480         * cppinit.c: Likewise.
12481         * cpplex.c: Likewise.
12482         * cpplib.c: Likewise.
12483         * cppmacro.c: Likewise.
12484         * cppmain.c: Likewise.
12485         * cppspec.c: Likewise.
12487 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
12489         * combine.c (force_to_mode): Use gen_int_mode.
12490         Don't clear CONST_INT bits outside of mode.
12492 2002-05-22  Richard Henderson  <rth@redhat.com>
12494         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
12495         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
12497 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
12499         PR c/6643
12500         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
12501         if DECL_SIZE_UNIT is INTEGER_CST.
12503 2002-05-22  Richard Henderson  <rth@redhat.com>
12505         * flow.c (life_analysis): Delete broken reg_label check.
12507 2002-05-22  Richard Henderson  <rth@redhat.com>
12509         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
12510         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
12512 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
12514         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
12515         (embed-bb.c): New rule.
12516         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
12517         * config/sh/embed_bb.c: Delete.
12519 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
12521         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
12523 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
12525         * config/h8300/h8300.md (*andorqi3): New.
12527 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
12529         PR preprocessor/6517
12530         * Makefile.in: Update.
12531         * c-common.c (c_common_post_options): Add preprocessor
12532         errors to the error count.
12533         * c-lang.c (c_post_options): Kill.
12534         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
12535         * hooks.h: Add header guards.
12536         * langhooks-def.h: Include hooks.h.
12537         (LANG_HOOKS_POST_OPTIONS): Update.
12538         * langhooks.h (struct lang_hooks): Update post_options.
12539         * toplev.c (parse_options_and_default_flags): Update.
12540 objc:
12541         * objc-lang.c (objc_post_options): Kill.
12542         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
12544 2002-05-21  Bruce Korb  <bkorb@gnu.org>
12546         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
12547         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
12548         * fixinc/fixincl.x: regen.
12550 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
12552         * cfgbuild.c: Fix formatting.
12553         * cfg.c: Likewise.
12554         * cfgcleanup.c: Likewise.
12555         * cfglayout.c: Likewise.
12556         * cfgloop.c: Likewise.
12557         * cfgrtl.c: Likewise.
12559 2002-05-21  Richard Henderson  <rth@redhat.com>
12561         * c-common.h (enum rid): Add RID_THREAD.
12562         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
12563         (grokdeclarator): Grok __thread.
12564         * c-parse.in (reswords): Add __thread.
12565         (rid_to_yy): Add RID_THREAD.
12567         * tree.h (DECL_THREAD_LOCAL): New.
12568         (struct tree_decl): Add thread_local_flag.
12569         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
12570         * tree.c (staticp): TLS variables are not static.
12572         * target-def.h (TARGET_HAVE_TLS): New.
12573         * target.h (have_tls): New.
12574         * output.h (SECTION_TLS): New.
12575         * varasm.c (assemble_variable): TLS variables can't be common for now.
12576         (default_section_type_flags): Handle .tdata and .tbss.
12577         (default_elf_asm_named_section): Handle SECTION_TLS.
12578         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
12580         * flags.h (flag_tls_default): Declare.
12581         * toplev.c (flag_tls_default): Define.
12582         (display_help): Display help for it.
12583         (decode_f_option): Set it.
12585         * doc/extend.texi (Thread-Local): New node describing language-level
12586         thread-local storage.
12587         * doc/invoke.texi (-ftls-model): Document.
12589         * fixinc/inclhack.def (thread_keyword): New.
12590         * fixinc/fixincl.x: Rebuild.
12592 2002-05-21  Jeffrey A Law  <law@redhat.com>
12594         * optabs.c (expand_binop): For double-word integer multiplies,
12595         do not compute intermediate results into something that is
12596         not a register (such as a SUBREG or MEM).
12598         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
12599         (ix86_sched_reorder): Make sure to initialize scheduling
12600         data even when there's only one insn in the ready queue.
12602 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
12604         * genautomata.c (reserv_sets_hash_value): Fix a typo.
12606 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
12608         * genautomata.c (reserv_sets_hash_value): Define hash_value as
12609         set_el_t.  Transform the hash value into unsigned.
12610         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
12611         (transform_3): Add code to process `(A,B)+(D,E)'.
12613 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
12615         * reload1.c (do_output_reload): Run delete_output_reload
12616         only if optimizing.
12618 2002-05-21  Roger Sayle  <roger@eyesopen.com>
12620         PR middle-end/6600
12621         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
12622         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
12623         (can_store_by_pieces): ... and here to limit the largest mode used.
12624         Add a comment to document this function.
12626 2002-05-21  Richard Henderson  <rth@redhat.com>
12628         * flow.c (life_analysis): Fix test for deleted label.
12630 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
12632         * doc/tm.texi: Fix typo.
12634 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
12636         * c-common.c (c_common_init): Set options->unsigned_char from
12637         flag_signed_char.
12638         (cb_register_builtins): Define __STRICT_ANSI__ and
12639         __CHAR_UNSIGNED__ here...
12640         * cppinit.c (init_builtins): Not here.
12641         (cpp_create_reader): unsigned_char option defaults to 0, not
12642         !DEFAULT_SIGNED_CHAR.
12643         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
12644         and -funsigned-char.
12646         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
12647         * cpphash.c (_cpp_init_hashtable): Don't set it.
12648         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
12649         directly.  Clarify comment.
12651 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12653         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
12654         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
12655         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
12656         BASIC_BLOCK (n_basic_blocks - 1).
12657         * cfganal.c (can_fallthru, flow_call_edges_add,
12658         flow_preorder_transversal_compute): Too.
12659         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
12660         find_sub_basic_blocks): Too.
12661         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
12662         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
12663         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
12664         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
12665         * combine.c (this_basic_block): Type changed to basic_block.
12666         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
12667         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
12668         get_last_value, distribute_notes, distribute_links): Too.
12669         * final.c (compute_alignments): Too.
12670         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
12671         * function.c (thread_prologue_and_epilogue_insns): Too.
12672         * gcse.c (compute_code_hoist_vbeinout): Too.
12673         * global.c (build_insn_chain): Too.
12674         * ifcvt.c (find_if_block, find_cond_trap): Too.
12675         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
12676         * regmove.c (regmove_optimize): Too.
12677         * resource.c (find_basic_block): Too.
12678         * sched-ebb.c (schedule_ebbs): Too.
12679         * ssa-dce.c (find_control_dependence, find_pdom): Too.
12681 2002-05-21  Andreas Jaeger  <aj@suse.de>
12683         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
12685 2002-05-21  Richard Henderson  <rth@redhat.com>
12687         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
12688         unspec names, not numbers.
12690 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12692         * doc/sourcebuild.texi: Mention snapshot-README and
12693         snapshot-index.html as needing updating for new front ends.
12695 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12697         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
12698         disabling checking, and avoid multiple evaluation of RTX.
12700 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
12702         * bitmap.c (bitmap_find_bit): Return early if we have the correct
12703         element cached.
12705 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
12707         * profile.c (gen_edge_profiler):  Set alias set before the memory is
12708         used.
12710 2002-05-20  David S. Miller  <davem@redhat.com>
12712         * cselib.c (max_value_regs): New.
12713         (cselib_lookup, cselib_invalidate_regno): Initialize it when
12714         adding new entries to the REG_VALUES table and we are dealing with
12715         a hard register.
12716         (clear_table): Initialize it.
12717         (cselib_invalidate_regno): Use it to determine which hard
12718         registers to scan when mode is not VOIDmode.
12720 2002-05-20  Duraid Madina   <duraid@fl.net.au>
12722         * tradcpp.c (fixup_newlines): Use old-style function header.
12724 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
12726         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
12728 2002-05-20  H.J. Lu  (hjl@gnu.org)
12730         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
12732         * config/mips/mips.h (DFMODE_NAN): Defined.
12733         (SFMODE_NAN): Likewise.
12735 2002-05-20  Dale Johannesen  <dalej@apple.com>
12737         * combine.c (cant_combine_insn_p):  Back out my
12738         previous patch.
12740 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
12742         * params.c: Fix formatting.
12743         * params.h: Likewise.
12744         * predict.c: Likewise.
12745         * prefix.c: Likewise.
12746         * print-rtl.c: Likewise.
12747         * print-tree.c: Likewise.
12748         * profile.c: Likewise.
12750 2002-05-20  H.J. Lu  (hjl@gnu.org)
12752         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
12754 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
12756         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
12757         switches straight on to the assembler, do not abbreviate them.
12758         * config/arm/elf.h (ASM_SPEC): As above.
12759         * config/arm/semi.h (ASM_SPEC): As above.
12760         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
12761         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
12762         -mcpu=xscale on to the assembler by default.
12763         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
12765 2002-05-20  Richard Henderson  <rth@redhat.com>
12767         * cse.c (canon_hash): Reorder do_not_record test.  Always
12768         allow pic_offset_table_rtx.
12770 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
12772         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
12773         (expand_binop): Ditto (3 times).
12775 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
12777         * Makefile.in (distclean): Remove QMTest stuff.
12778         (QMTEST_PATH): New variable.
12779         (QMTESTFLAGS): Likewise.
12780         (QMTESTRUNFLAGS): Likewise.
12781         (QMTEST): Likewise.
12782         (QMTEST_GPP_TESTS): Likewise.
12783         (QMTEST_DIR): Likewise.
12784         (QMTEST_DIR/context): New target.
12785         (qmtest-g++): Likeise.
12786         (qmtest-gui): Likewise.
12787         (QMTEST_DIR/gpp-expected.qmr): Likewise.
12789 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
12791         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
12792         an altivec register if TARGET_ALTIVEC.
12794         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
12795         to ALTIVEC_VECTOR_MODE.
12796         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
12797         (rs6000_va_arg): Vectors may go in registers if they are not
12798         altivec vectors.
12800 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
12802         * protoize.c: Fix formatting.
12804 2002-05-19  Richard Henderson  <rth@redhat.com>
12806         * gensupport.c (init_include_reader): Merge into ...
12807         (process_include): ... here.  Simplify composite path creation.
12808         Plug memory leaks.  Fix file/line number tracking.  Do not
12809         process_define_cond_exec.  Return void.
12810         (process_rtx): Don't check process_include return value.
12812 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12814         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
12815         fields.
12816         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
12817         traversing basic block chain.
12818         (create_basic_block_structure, create_basic_block): Declaration changed.
12819         (link_block, unlink_block): Declare.
12820         * cfg.c (entry_exit_blocks): Initialize new fields.
12821         (link_block, unlink_block): New.
12822         (expunge_block_nocompact): Unlink basic block.
12823         (dump_flow_info): Print prev_bb/next_bb fields.
12824         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
12825         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
12826         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
12827         * cfgrtl.c (create_basic_block_structure, create_basic_block,
12828         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
12829         (verify_flow_info): Check that list agrees with numbering.
12831 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12833         * c-common.c (preprocessing_asm): New macro.
12834         * c-lex.h (builtin_define, builtin_assert): Use pfile.
12835 doc:
12836         * tm.texi: Update.
12837 config/alpha:
12838         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
12839         (CPP_SPEC): Simplify.
12840         (TARGET_CPU_CPP_BUILTINS): Update.
12841         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
12842         (CPP_SPEC): Simplify.
12843         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
12844         (TARGET_OS_CPP_BUILTINS): Update.
12845         * osf.h (CPP_XFLOAT_SPEC): Kill.
12846         (TARGET_OS_CPP_BUILTINS): Update.
12847         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
12848         * osf5.h (CPP_XFLOAT_SPEC): Kill.
12849         * vms.h (CPP_SUBTARGET_SPEC): Kill.
12850         (TARGET_OS_CPP_BUILTINS): Update.
12852 2002-05-19  Richard Henderson  <rth@redhat.com>
12854         * varasm.c (default_binds_local_p): Fix typo.
12856 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12858         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
12859         CONST_INT operand to the correct mode after adding 1 to it.
12861 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
12863         * config.gcc (powerpc-wrs-windiss*): New target.
12865 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12867         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
12868         (ashrdi3): Use it.
12870 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
12872         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
12873         alphasort.
12874         * config.in: Regenerated.
12875         * configure: Regenerated.
12877 2002-05-19  Richard Henderson  <rth@redhat.com>
12879         * target-def.h (TARGET_BINDS_LOCAL_P): New.
12880         * target.h (struct gcc_target): Move boolean fields to the end.
12881         Add binds_local_p.
12882         * varasm.c (default_binds_local_p): New.
12883         * output.h: Declare it.
12885         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
12886         * config/cris/cris.c (cris_encode_section_info): Likewise.
12887         * config/i386/i386.c (i386_encode_section_info): Likewise.
12888         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
12889         * config/sh/sh.c (sh_encode_section_info): Likewise.
12891         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
12892         (TARGET_BINDS_LOCAL_P): New.
12894 2002-05-19  Richard Henderson  <rth@redhat.com>
12896         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
12897         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
12898         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
12900         * toplev.c (display_help): Kill -a -ax help.
12902         * config/1750a/1750a.h, config/alpha/alpha.h,
12903         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
12904         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
12905         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
12906         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
12908         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
12909         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
12911         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
12912         (ix86_output_function_block_profiler): Kill.
12913         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
12914         (m68hc11_function_block_profiler): Kill.
12915         * config/m68hc11/m68hc11-protos.h: Update.
12916         * config/m88k/m88k.c (output_block_profiler): Kill.
12917         (output_function_block_profiler): Kill.
12918         * config/m88k/m88k-protos.h: Update.
12920 2002-05-19  Richard Henderson  <rth@redhat.com>
12922         * system.h (STRIP_NAME_ENCODING): Poison it.
12923         * output.h (STRIP_NAME_ENCODING): Remove.
12924         (default_strip_name_encoding): Declare.
12925         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
12926         * target.h (strip_name_encoding): New.
12927         * varasm.c (default_strip_name_encoding): New.
12929         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
12930         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
12931         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
12932         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
12933         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
12934         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
12935         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
12936         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
12937         config/v850/v850.h: Use the hook, not the macro.
12939         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
12940         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
12941         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
12942         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
12943         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
12944         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
12945         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
12946         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
12947         config/v850/v850.c, config/v850/v850.h:
12948         Move STRIP_NAME_ENCODING to out-of-line function and add
12949         TARGET_STRIP_NAME_ENCODING.
12951         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
12952         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
12953         with TARGET_STRIP_NAME_ENCODING referencing existing function;
12954         make function static.
12956         * xcoffout.c: Include target.h
12957         * Makefile.in (xcoffout.o): Update.
12959         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
12960         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
12961         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
12962         reloc argument unused.
12963         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
12965         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
12966         STRIP_NAME_ENCODING docs.
12968 2002-05-19  Andreas Jaeger  <aj@suse.de>
12970         * gengenrtl.c: Add prototype for excluded_rtx.
12972         * real.h: Add prototype for exact_real_truncate.
12974 2002-05-18  Richard Henderson  <rth@redhat.com>
12976         * system.h (ENCODE_SECTION_INFO): Poison it.
12977         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
12978         * target.h (encode_section_info): New.
12979         * varasm.c (make_decl_rtl, output_constant_def): Use it.
12980         * hooks.c (hook_tree_int_void): New.
12981         * hooks.h: Declare it.
12983         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
12984         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
12985         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
12986         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
12987         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
12988         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
12989         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
12990         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
12991         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
12992         config/mcore/mcore-protos.h, config/mcore/mcore.c,
12993         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
12994         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
12995         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
12996         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
12997         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
12998         referencing existing function.  Make function static.
13000         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
13001         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
13002         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
13003         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
13004         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
13005         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
13006         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
13007         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
13008         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
13009         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
13010         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
13011         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
13012         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
13013         Move ENCODE_SECTION_INFO to out-of-line function and add
13014         TARGET_ENCODE_SECTION_INFO.
13016         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
13017         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
13019         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
13020         from SUBTARGET_*
13021         (switch_to_section): Replace in_rdata case with in_readonly_data.
13023         * config/h8300/h8300.c (h8300_encode_label): Make static.
13024         * config/h8300/h8300-protos.h: Update.
13026         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
13027         from rs6000_encode_section_info; make static.
13028         (rs6000_xcoff_encode_section_info): New.
13030         * config/v850/v850.c (v850_encode_data_area): Make static.
13031         * config/v850/v850-protos.h: Update.
13033         * config/vax/vax.c: Include flags.h.
13034         (vms_select_section): Fix typo.
13036         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
13037         ENCODE_SECTION_INFO docs.
13039 2002-05-18  Richard Henderson  <rth@redhat.com>
13041         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
13042         REGISTER_TARGET_PRAGMAS.
13043         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
13045         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
13047 2002-05-18  Richard Henderson  <rth@redhat.com>
13049         * system.h (SELECT_RTX_SECTION): Poison.
13050         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
13051         * target.h (select_rtx_section): New.
13052         * varasm.c (output_constant_pool): Use it.
13053         (default_select_rtx_section, default_elf_select_rtx_section): New.
13054         * output.h: Declare them.
13056         * config/darwin.h (SELECT_RTX_SECTION): Move ...
13057         * config/darwin.c (machopic_select_rtx_section): ... here.
13058         * config/darwin-protos.h: Update.
13060         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
13061         * config/nextstep.c (machopic_select_rtx_section): ... here.
13062         (nextstep_select_section): Rename variable to avoid macro clash.
13063         * config/nextstep-protos.h: Update.
13065         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
13066         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
13067         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
13068         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
13069         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
13070         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
13071         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
13072         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
13073         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
13074         (SELECT_RTX_SECTION): Remove.
13076         * config/darwin.h, config/elfos.h, config/nextstep.h,
13077         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
13078         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
13079         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
13080         config/sparc/lynx.h, config/xtensa/xtensa.c
13081         (TARGET_ASM_SELECT_RTX_SECTION): New.
13083         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
13084         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
13085         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
13086         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
13087         (ia64_aix_select_rtx_section): New.
13088         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
13089         redefining.
13090         * config/mips/mips.c (mips_select_rtx_section): Make static.
13091         Support ELF SHF_MERGE features.
13092         * config/mips/mips-protos.h: Update.
13093         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
13094         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
13095         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
13096         make static, fall back to default_elf_select_rtx_section.
13097         * config/rs6000/rs6000-protos.h: Update.
13098         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
13099         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
13100         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
13101         * config/romp/romp.c (romp_select_rtx_section): New.
13102         * config/s390/s390.c (s390_select_rtx_section): New.
13103         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
13104         declarations before target macro definition.
13105         (xtensa_emit_call): Use static buffer.
13106         (xtensa_select_rtx_section): New.
13107         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
13108         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
13109         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
13111         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
13112         SELECT_RTX_SECTION docs.
13114 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
13116         * i386.md (movsi/movdi): Fix template.
13117         (sse2 patterns): Set attributes consistently.
13119         * i386.md (pushqi2, ashrqi_*): Fix constraint.
13121 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13123         * optabs.c (complex_part_zero_p): New.
13124         * (expand_cmplxdiv_straight): Use it.
13125         * (expand_cmplxdiv_wide): Ditto.
13126         * (expand_binop): Ditto.
13128 2002-05-18  Richard Henderson  <rth@redhat.com>
13130         * final.c (HAVE_READONLY_DATA_SECTION): New.
13131         (shorten_branches): Use it instead of ifdefs.
13132         * varasm.c (enum in_section): Add in_readonly_data.
13133         (text_section, data_section): Tidy.
13134         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
13136         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
13137         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
13138         (READONLY_DATA_SECTION): Don't undef.
13140         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
13141         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
13142         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
13144         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
13145         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
13146         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
13147         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
13149         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
13150         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
13151         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13152         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
13153         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
13154         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
13155         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
13156         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
13157         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
13159         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
13160         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
13161         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
13162         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
13163         config/pa/pa64-hpux.h, config/sparc/litecoff.h
13164         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13166         * config/elfos.h, config/netware.h, config/svr3.h,
13167         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13168         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
13169         config/h8300/h8300.h, config/i386/i386-interix.h,
13170         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13171         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
13173         * config/elfos.h, config/netware.h, config/svr3.h,
13174         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
13175         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
13176         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
13177         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
13179         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
13180         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
13181         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
13182         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
13183         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
13184         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
13185         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
13186         config/rs6000/sysv4.h, config/v850/v850.h
13187         (EXTRA_SECTIONS): Remove in_const/in_rdata.
13188         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
13190         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
13191         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
13192         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
13193         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
13194         * config/alpha/alpha.c (alpha_start_function): Likewise.
13195         (alpha_write_linkage): Likewise.
13196         * config/m32r/m32r.c (m32r_select_section): Likewise.
13197         * config/m88k/m88k.c (m88k_select_section): Likewise.
13198         * config/mips/mips.c (mips_select_rtx_section): Likewise.
13199         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
13200         (rs6000_elf_select_section): Likewise.
13201         * config/v850/v850.c (v850_select_section): Likewise.
13203         * config/1750a/1750a.h, config/i860/sysv3.h
13204         (READONLY_DATA_SECTION_ASM_OP): New.
13205         READONLY_DATA_SECTION_ASM_OP.
13206         * config/i386/interix.c, config/i386/winnt.c
13207         (i386_pe_unique_section): Always use .rdata prefix.
13208         * config/pa/som.h (readonly_data): Always switch to read-only section.
13209         (READONLY_DATA_SECTION): Predicate on flag_pic.
13210         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
13211         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
13212         (READONLY_DATA_SECTION): Update.
13214 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
13216         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
13217         is used without -Wformat.
13218         * c-common.h (warn_format_zero_length): Declare extern.
13219         * c-decl.c (warn_options): Add "format-zero-length".
13220         * c-format.c (warn_format_zero_length): Declare.
13221         (set_Wformat): Set warn_format_zero_length for -Wformat.
13222         (check_format_info): Only warn about zero-length formats if
13223         warn_format_zero_length is true.  Include the format type
13224         name in the warning message.
13225         * doc/invoke.texi: Document -Wformat-zero-length.
13226         * testsuite/gcc.dg/format/zero-length-1.c: New test.
13228 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
13230         * timevar.c: Fix formatting.
13231         * tlink.c: Likewise.
13232         * toplev.c: Likewise.
13233         * tree-dump.c: Likewise.
13234         * tree-inline.c: Likewise.
13236 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13238         * cppinit.c (cpp_post_options): If preprocessed, turn off
13239         traditional.  If traditional, turn off column numbers.
13240         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
13241         * cpptrad.c (handle_newline): Update line_base.
13242         (skip_comment): Handle -Wcomment.
13244 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
13246         * cppinit.c (struct builtin): Remove unused fields.
13247         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
13248         (operator_array): New - was second half of builtin_array.
13249         (init_builtins): Simplify loop over builtin_array/operator_array.
13251 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
13253         * defaults.h (UNIQUE_SECTION): Remove.
13254         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
13256 2002-05-17  Richard Henderson  <rth@redhat.com>
13258         * expr.c (init_expr_once): Don't use start/end_sequence.
13259         Use rtx_alloc instead of emit_insn.
13260         * toplev.c (lang_dependent_init): Run init_expr_once here ...
13261         (lang_independent_init): ... not here.
13263 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
13265         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
13267 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
13269         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
13270         for fixed registers, possibly used for global register variables.
13271         (initial_elimination_offset, avr_output_function_prologue,
13272         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
13274 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13276         * Makefile.in: Update for cpptrad.c.
13277         * cpphash.h (struct cpp_buffer): New members for buffer
13278         overlays.
13279         (struct cpp_reader): New members for traditional output.
13280         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
13281         * cppinit.c (cpp_create_reader): Set trad_line.
13282         (cpp_destroy): Free trad_out_base if used.
13283         (cpp_read_main_file): Overlay an empty buffer if traditional.
13284         (cpp_finish_options): Don't do builtins.
13285         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
13286         (cpp_handle_option): Handle it.
13287         * cpplex.c (continue_after_nul): New.
13288         (_cpp_lex_direct): Use handle_nul.
13289         * cpplib.h (struct cpp_options): New traditional option.
13290         * cpptrad.c: New file.
13292 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13294         * c-common.c (c_common_init_options): Use C89 for Objective-C,
13295         and set the options flag.
13296         * cppinit.c (lang_flags): Remove objc.
13297         (lang_defaults): Remove OBJC and OBJCXX.
13298         (set_lang): Update.
13299         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
13300         (cpp_handle_option): Remove -+ and -lang-objc++.
13301         For ObjC, just set a flag.
13302         (print_help): Update.
13303         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
13305 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13307         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
13308         bootstrap with -mips3.
13310 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
13312         * final.c: Fix formatting.
13313         * fix-header.c: Likewise.
13314         * flow.c: Likewise.
13315         * fold-const.c: Likewise.
13316         * function.c: Likewise.
13318 2002-05-17  David S. Miller  <davem@redhat.com>
13320         PR c/6689, PR optimization/6615
13321         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
13322         and make it a pointer to rtx.  Update comments.
13323         (update_equiv_regs): When scanning for equivalences, record
13324         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
13325         it while making the equiv replacements.
13327 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13329         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
13331 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
13333         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
13334         when encoding visibility into SYMBOL_REF_FLAG.
13336 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
13338         * expr.c (force_operand): Fix reversed move.
13340 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
13342         * doc/install.texi (Testing): Mention two common DejaGnu warnings
13343         that can be ignored.
13345 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13347         * doc/install.texi (Final install): Recommend to install into a
13348         "clean" target directory.
13350 2002-05-17  Richard Henderson  <rth@redhat.com>
13352         * config/ia64/ia64.md: Use braced strings instead of quoted strings
13353         for code blocks.  Tidy whitespace.
13355 2002-05-17  Richard Henderson  <rth@redhat.com>
13357         * hooks.c (hook_tree_bool_false): New.
13358         * hooks.h: Declare it.
13359         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
13360         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
13361         * target.h (select_section, unique_section): New.
13362         (in_small_data_p): New.
13363         * varasm.c (resolve_unique_section): Use hooks instead of macros.
13364         (variable_section, output_constant_def_contents): Likewise.
13365         (default_select_section, default_unique_section): New.
13366         (categorize_decl_for_section, default_elf_select_section): New.
13367         * output.h: Declare them.
13369         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
13370         (TARGET_ASM_SELECT_SECTION): New.
13371         (SELECT_SECTION): Move ...
13372         * config/darwin.c (machopic_select_section): ... here.
13373         * config/darwin-protos.h: Update.
13375         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
13376         (SELECT_SECTION): Move ...
13377         * config/nextstep.c (nextstep_select_section): ... here.
13378         * config/nextstep-protos.h: Update.
13380         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
13381         (TARGET_ASM_SELECT_SECTION): New.
13382         * config/svr3.h (SELECT_SECTION): Remove.
13384         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
13385         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
13386         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
13387         (alpha_encode_section_info): Use it.
13388         * config/alpha/alpha-protos.h: Update.
13389         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
13390         (SELECT_SECTION, UNIQUE_SECTION): Remove.
13391         (TARGET_ASM_SELECT_SECTION): New.
13392         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
13394         * config/arm/pe.h (UNIQUE_SECTION): Remove.
13395         (TARGET_ASM_UNIQUE_SECTION): New.
13397         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
13398         (avr_unique_section): Rename from unique_section; make static.
13399         * config/avr/avr-protos.h: Update.
13400         * config/avr/avr.h (UNIQUE_SECTION): Remove.
13402         * config/c4x/c4x.h (SELECT_SECTION): Remove.
13404         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
13405         (TARGET_ASM_UNIQUE_SECTION): New.
13406         * config/i386/i386-interix.h: Likewise.
13407         * config/i386/win32.h: Likewise.
13408         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
13409         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
13410         * config/i386/sco5.h (SELECT_SECTION): Remove.
13411         (TARGET_ASM_SELECT_SECTION): New.
13412         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
13414         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
13415         instead of SELECT_SECTION.
13416         * config/m68k/dpx2.h: Likewise.
13417         * config/rs6000/lynx.h: Likewise.
13419         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13420         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13421         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
13422         (ia64_in_small_data_p): New.
13423         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
13424         (ia64_aix_select_section, ia64_aix_unique_section): New.
13425         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
13426         (SELECT_SECTION, UNIQUE_SECTION): Remove.
13428         * config/m32r/m32r.h (SELECT_SECTION): Remove.
13429         (TARGET_ASM_SELECT_SECTION): New.
13430         * config/m32r/m32r.c (m32r_select_section): Take align argument.
13431         * config/m32r/m32r-protos.h: Update.
13433         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
13434         (SELECT_SECTION): Move ...
13435         * config/m88k/m88k.c (m88k_select_section): ... here.
13437         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
13438         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
13439         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
13440         (mcore_unique_section): Make static.
13441         * config/mcore/mcore-protos.h: Update.
13443         * config/mips/elf.h (UNIQUE_SECTION): Remove.
13444         (TARGET_ASM_UNIQUE_SECTION): New.
13445         * config/mips/elf64.h: Likewise.
13446         * config/mips/iris6gld.h: Likewise.
13447         * config/mips/linux.h: Likewise.
13448         * config/mips/mips-protos.h: Update.
13449         * config/mips/mips.c (mips_select_section): Add align argument.
13450         * config/mips/mips.h (SELECT_SECTION): Remove.
13451         (TARGET_ASM_SELECT_SECTION): New.
13453         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13454         * config/mmix/mmix.c (mmix_select_section): Remove.
13455         (mmix_unique_section): Remove.
13456         * config/mmix/mmix-protos.h: Update.
13458         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
13459         (SELECT_SECTION): Move ...
13460         * config/pa/pa.c (pa_select_section): ... here.
13461         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
13463         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
13464         from rs6000_select_section and make static.
13465         (rs6000_elf_unique_section): Similarly.
13466         (rs6000_xcoff_select_section): From xcoff.h.
13467         (rs6000_xcoff_unique_section): Likewise.
13468         * config/rs6000/rs6000-protos.h: Update.
13469         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
13470         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
13471         * config/rs6000/xcoff.h: Likewise.
13473         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
13474         (SELECT_SECTION): Move ...
13475         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
13477         * config/v850/v850.h (SELECT_SECTION): Move ...
13478         * config/v850/v850.c (v850_select_section): ... here.
13479         (TARGET_ASM_SELECT_SECTION): New.
13481         * config/vax/vms.h (SELECT_SECTION): Move ...
13482         * config/vax/vax.c (vms_select_section): ... here.
13483         (TARGET_ASM_SELECT_SECTION): New.
13485         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
13486         for the target hooks.
13488 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
13490         * config/arm/arm.c (emit_multi_reg_push): Do not set
13491         RTX_FRAME_RELATED_P on the SEQUENCE.
13493 2002-05-16  Richard Henderson  <rth@redhat.com>
13495         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
13496         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
13498 2002-05-16  Richard Henderson  <rth@redhat.com>
13500         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
13502         * config/ia64/ia64.c (saveable_obstack): Do not declare.
13504 2002-05-16  Richard Henderson  <rth@redhat.com>
13506         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
13507         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
13508         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
13509         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
13510         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
13511         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
13512         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
13513         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
13514         Revert "Basic block renumbering removal", and two followup patches.
13516 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
13518         * lcm.c (optimize_mode_switching): Revert previous change.
13520 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13522         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
13523         with only extant block numbers.
13525 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
13527         * lcm.c (optimize_mode_switching): Fix typo.
13529 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13531         * flow.c (calculate_global_regs_live): Queue blocks in program order.
13533 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13535         * doc/install.texi (Configuration): Document PWDCMD.
13537 2002-05-16  Dale Johannesen  <dalej@apple.com>
13539         * combine.c (cant_combine_insn_p):  Reenable combinations
13540         involving hard regs unless CLASS_LIKELY_SPILLED_P.
13542 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13544         * c-common.c (cb_register_builtins): Handle more built-ins
13545         here rather than in gcc.c specs.
13546         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
13547         (cpp_options): Pass -O flags even when only preprocessing.
13548         * toplev.c (set_fast_math_flags): New prototype.
13549         (fast_math_flags_set_p): New.
13550         (set_no_fast_math_flags): Remove.
13551         (decode_f_option): Update.
13552         * toplev.h (set_fast_math_flags): Update.
13553         (fast_math_flags_set_p): New.
13554         (set_no_fast_math_flags): Remove.
13555 config:
13556         * c4x/c4x.c (c4x_override_options): Update.
13558 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
13560         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
13561         Default-define here.
13562         (builtin_define_with_value): Can now wrap the expansion in
13563         quotation marks if such is wanted.
13564         (cb_register_builtins): Update calls to builtin_define_with_value.
13565         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
13566         here.
13567         (c_common_init): Set options->stdc_0_in_system_headers.
13568         * c-lex.h: Update prototype of builtin_define_with_value.
13569         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
13570         and REGISTER_PREFIX.
13572         * cppinit.c (VERS, ULP, C, X): Kill.
13573         (builtin_array): Remove entries for __VERSION__,
13574         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
13575         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
13576         a constant.
13577         (init_builtins): Kill off a bunch of now-dead code.
13578         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
13579         -fno-leading-underscore.
13580         (cpp_handle_option): Remove code to set user_label_prefix.
13581         (cpp_post_options): Likewise.
13583         * cpplib.h (struct cpp_options): Remove user_label_prefix.
13584         (stdc_0_in_system_headers): New.
13585         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
13586         stdc_0_in_system_headers) too to decide the value of __STDC__.
13588         * tradcpp.c (user_label_prefix): Kill.
13589         (main): Remove code handling -f(no-)leading-underscore.
13590         (initialize_builtins): Don't define __REGISTER_PREFIX__
13591         or __USER_LABEL_PREFIX__.
13592         (install_value): Wrap compound statement in dummy loop so the
13593         macro works properly in an if statement.
13596 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
13598         * loop.h (struct loop_info): Add member has_prefetch.
13599         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
13600         (prescan_loop): Initialize has_prefetch.
13601         (struct prefetch_info): Change prefetch_in_loop and
13602         prefetch_before_loop from bit fields to ints.
13603         (emit_prefetch_instructions): Several small fixes.
13604         (check_dbra_loop): Don't reverse loop that uses prefetch.
13606 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13608         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
13609         * configure.in: Likewise.
13610         * fixinc/check.tpl: Likewise.
13611         * fixinc/fixinc.dgux: Likewise.
13612         * fixinc/fixinc.svr4: Likewise.
13613         * fixinc/fixinc.winnt: Likewise.
13614         * fixinc/fixincl.sh: Likewise.
13615         * fixproto: Likewise.
13616         * configure: Regenerate.
13618 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13620         Basic block renumbering removal:
13621         * basic_block.h (struct basic_block_def): Renamed index to sindex,
13622         added prev_bb and next_bb fields.
13623         (n_basic_blocks): Renamed to num_basic_blocks.
13624         (last_basic_block): New, index of last basic block.
13625         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
13626         traversing basic block chain.
13627         (BLOCK_NUM): index -> sindex.
13628         (create_basic_block_structure, create_basic_block): Declaration changed.
13629         (debug_num2bb): Declare.
13630         (expunge_block_nocompact): Declaration removed.
13631         (link_block, unlink_block, compact_blocks): Declare.
13632         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
13633         * cfg.c (entry_exit_blocks): Initialize new fields.
13634         (clear_edges, alloc_block, expunge_block, cached_make_edge,
13635         redirect_edge_pred, dump_flow_info, dump_edge_info,
13636         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
13637         free_aux_for_edges): Modified.
13638         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
13639         (expunge_block_nocompact): Removed.
13640         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
13641         find_unreachable_blocks, create_edge_list, print_edge_list,
13642         verify_edge_list, flow_edge_list_print, remove_fake_successors,
13643         remove_fake_edges, flow_reverse_top_sort_order_compute,
13644         flow_depth_first_order_compute, flow_preorder_transversal_compute,
13645         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
13646         flow_dfs_compute_reverse_execute): Modified.
13647         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
13648         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
13649         Modified.
13650         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
13651         merge_blocks_move_predecessor_nojumps,
13652         merge_blocks_move_successor_nojumps, merge_blocks,
13653         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
13654         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
13655         * cfglayout.c (skip_insns_after_block, label_for_bb,
13656         record_effective_endpoints, scope_to_insns_finalize,
13657         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
13658         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
13659         cfg_layout_duplicate_bb): Modified.
13660         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
13661         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
13662         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
13663         flow_loops_find, flow_loop_outside_edge_p): Modified.
13664         * cfgrtl.c (create_basic_block_structure, create_basic_block,
13665         flow_delete_block, compute_bb_for_insn, split_block,
13666         try_redirect_by_replacing_jump, redirect_edge_and_branch,
13667         force_nonfallthru_and_redirect, tidy_fallthru_edge,
13668         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
13669         commit_edge_insertions, commit_edge_insertions_watch_calls,
13670         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
13671         purge_all_dead_edges): Modified.
13672         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
13673         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
13674         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
13675         Modified.
13676         * conflict.c (conflict_graph_compute): Modified.
13677         * df.c (FOR_ALL_BBS): Removed.
13678         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
13679         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
13680         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
13681         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
13682         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
13683         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
13684         * final.c (compute_alignments, final_scan_insn): Modified.
13685         * flow.c (verify_local_live_at_start, update_life_info,
13686         update_life_info_in_dirty_blocks, free_basic_block_vars,
13687         delete_noop_moves, calculate_global_regs_live,
13688         initialize_uninitialized_subregs, allocate_bb_life_data,
13689         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
13690         mark_used_reg, count_or_remove_death_notes): Modified.
13691         * function.c (thread_prologue_and_epilogue_insns): Modified.
13692         * gcse.c (struct null_pointer_info): Change typo of current_block
13693         to basic_block.
13694         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
13695         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
13696         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
13697         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
13698         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
13699         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
13700         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
13701         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
13702         pre_delete, one_pre_gcse_pass, compute_transpout,
13703         invalidate_nonnull_info, delete_null_pointer_checks_1,
13704         free_code_hoist_mem, compute_code_hoist_vbeinout,
13705         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
13706         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
13707         compute_store_table, build_store_vectors, insert_insn_start_bb,
13708         insert_store, replace_store_insn, free_store_memory, store_motion):
13709         Modified.
13710         * global.c (global_alloc, global_conflicts, mark_elimination,
13711         build_insn_chain): Modified.
13712         * graph.c (print_rtl_graph_with_bb): Modified.
13713         * haifa-sched.c (sched_init): Modified.
13714         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
13715         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
13716         if_convert): Modified.
13717         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
13718         compute_insert_delete, pre_edge_lcm, compute_available,
13719         compute_farthest, compute_nearerout, compute_rev_insert_delete,
13720         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
13721         Modified.
13722         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
13723         * loop.c (loop_dump_aux): Modified.
13724         * predict.c (combine_predictions_for_insn, estimate_probability,
13725         last_basic_block_p, process_note_prediction, process_note_predictions,
13726         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
13727         expensive_function_p, estimate_bb_frequencies,
13728         compute_function_frequency): Modified.
13729         * print-rtl.c (print_rtx): Modified.
13730         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
13731         get_exec_counts, compute_branch_probabilities, compute_checksum,
13732         branch_prob, find_spanning_tree): Modified.
13733         * recog.c (split_all_insns, peephole2_optimize): Modified.
13734         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
13735         convert_regs_1, convert_regs_2, convert_regs): Modified.
13736         * regclass.c (scan_one_insn, regclass): Modified.
13737         * regmove.c (mark_flags_life_zones, regmove_optimize,
13738         combine_stack_adjustments): Modified.
13739         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
13740         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
13741         * reorg.c (dbr_schedule): Modified.
13742         * resource.c (find_basic_block, init_resource_info): Modified.
13743         * sbitmap.c (sbitmap_intersection_of_succs,
13744         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
13745         sbitmap_union_of_preds): Modified.
13746         * sched-deps.c (init_dependency_caches): Modified.
13747         * sched-ebb.c (schedule_ebbs): Modified.
13748         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
13749         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
13750         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
13751         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
13752         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
13753         ssa_const_prop): Modified.
13754         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
13755         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
13756         * ssa.c (remove_phi_alternative, find_evaluations,
13757         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
13758         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
13759         make_regs_equivalent_over_bad_edges,
13760         make_equivalent_phi_alternatives_equival,
13761         compute_conservative_reg_partition,
13762         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
13763         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
13764         Modified.
13766 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
13768         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
13770 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
13772         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
13773         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
13774         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
13775         calling CONSTANT_POOL_ADDRESS_P.
13776         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
13777         to decide whether to define __arm__ or __thumb.
13778         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
13779         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
13781 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13783         * config/arc/arc.h (CPP_PREDEFINES): Remove.
13784         (CPP_SPEC): Update.
13785         (TARGET_CPU_CPP_BUILTINS): New.
13787 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
13789         * cpphash.h (cpp_macro): Move here, and make expansion a union.
13790         * cppmacro.c (cpp_macro): Remove.
13791         (enter_macro_context, replace_args, warn_of_redefinition,
13792         _cpp_create_definition, cpp_macro_definition): Update.
13794 2002-05-16  Jason Merrill  <jason@redhat.com>
13796         * config/mips/mips.c (mips_output_external): Don't do sdata
13797         optimization for a variable with DECL_COMDAT set.
13799 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13801         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
13802         Cleanups for accepting modifiers on pointers.
13803         Fix predicate typos.
13804         Allow long pointers as well as int pointers.
13806 2002-05-15  Richard Henderson  <rth@redhat.com>
13808         * varasm.c (merge_weak): Remove special case for extern and common.
13810 2002-05-15  Matt Hiller  <hiller@redhat.com>
13812         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
13813         XFAILing.
13814         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
13815         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
13816         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
13817         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
13818         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
13819         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
13821 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13823         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
13825 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
13827         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
13828         ("altivec_mfvscr"): Read from VSCR.
13830         Add vscr sets for the following insns: altivec_vctuxs,
13831         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
13832         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
13833         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
13834         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
13835         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
13836         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
13837         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
13838         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
13839         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
13840         altivec_vsum2sws, altivec_vsumsws.
13842         * config/rs6000/rs6000.h: Add VSCR fixed register.
13843         (CALL_REALLY_USED_REGISTERS): Add vscr.
13844         (CALL_USED_REGISTERS): Same.
13845         (FIXED_REGISTERS): Same.
13846         (REG_ALLOC_ORDER): Same.
13847         (reg_class): Add VSCR_REGS.
13848         (REG_CLASS_NAMES): Same.
13849         (REG_CLASS_CONTENTS): Same.
13850         (VSCR_REGNO): New.
13851         (REGISTER_NAMES): Add vscr.
13852         (DEBUG_REGISTER_NAMES): Same.
13853         (ADDITIONAL_REGISTER_NAMES): Same.
13854         (FIRST_PSEUDO_REGISTER): Increment.
13855         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
13857 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
13859         * fold-const.c (fold): Fix a typo.
13861 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
13863         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
13864         comparison against the highest or lowest integer value before
13865         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
13866         transformation and that of an unsigned comparison against 0
13867         right after.
13869 2002-05-15  Richard Henderson  <rth@redhat.com>
13871         * varasm.c (merge_weak): Error for any weakening after definition.
13872         Adjust weakening after use warning to catch more cases.
13873         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
13874         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
13876 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
13878         * invoke.texi (-malign-double): Re-add lost warning.
13880         * i386-protos.h (x86_output_mi_thunk): Declare.
13881         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
13882         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
13884         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
13885         when flag_asynchronous_unwind_tables is set.
13887         * flags.h (flag_reorder_functions): Declare.
13888         * function.c (prepare_function_start): Initialize frequnecy.
13889         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
13890         * Makefile.in (predict.o): Add dependency on target.h and params.h
13891         * defaults.h (HOT_TEXT_SECTION_NAME,
13892         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
13893         * predict.c (choose_function_section): New function.
13894         (estimate_bb_frequencies): Use it.
13895         * toplev.c (flag_reorder_functions): New global variable.
13896         (lang_independent_options): New.
13897         (parse_options_and_default_flags): Set.
13898         * varasm.c (assemble_start_function): Bypass functdion alignment
13899         for never executed functions.
13900         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
13901         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
13902         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
13903         Document.
13905         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
13907         * predict.c: Inlude profile.h
13908         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
13909         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
13910         Use the information about maximal counter in the program.
13912         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
13914         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
13915         probably_never_executed_bb_p): New functions.
13916         * cfgcleanup.c (outgoing_edges_match): Use them.
13917         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
13918         (maybe_hot_bb_p, probably_cold_bb_p,
13919         probably_never_executed_bb_p): New functions.
13921         * function.h (function): Add new field function_frequency.
13922         * predict.c (compute_function_frequency): New function.
13923         (estimate_probability): Call it.
13925 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
13927         PR optimization/5172, optimization/5200
13928         * gcse.c (gcse_main): Disable store_motion.
13930 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
13932         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
13933         (c_common_nodes_and_builtins): Use it.
13934         (builtin_define_with_value): New function.
13935         (cb_register_builtins): Define __SIZE_TYPE__,
13936         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
13937         using builtin_define_with_value.  Use consistent notation when
13938         defining __GXX_WEAK__.
13939         (WCHAR_TYPE_SIZE): Don't redefine.
13940         (combine_strings): Don't use WCHAR_TYPE_SIZE.
13942         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
13943         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
13944         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
13945         * tradcpp.c (initialize_builtins): Likewise.
13946         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
13948         * c-lex.h (builtin_define_with_value): Prototype.
13949         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
13950         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
13951         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
13953         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
13954         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
13955         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
13956         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
13957         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
13958         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
13959         config/sparc/sol2-bi.h, config/sparc/sparc.h:
13960         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
13961         to __SIZE_TYPE__ etc from all spec strings. When this makes
13962         extra specs empty, delete them.
13964 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13966         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
13967         for PA8000 or generating dwarf2 call frame information.
13968         (output_call): Remove DO_FRAME_NOTES check from return pointer
13969         optimization.
13970         (following_call): Return 0 when scheduling for PA8000 or generating
13971         dwarf2 call frame information.  Revise comment.
13973 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
13975 config/alpha:
13976         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
13977         and __IEEE_FP_INEXACT as appropriate.
13978         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
13979         (CPP_SPEC): Remove ieee defines.
13980         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
13982 2002-05-14  Richard Henderson  <rth@redhat.com>
13984         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
13985         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
13987 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
13989         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
13990         (CPP_SPEC): Update.
13991         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
13992         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
13993         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
13994         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
13995         (EXTRA_SPECS): Update.
13996         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
13997         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
13998         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
13999         define TARGET_OS_CPP_BUILTINS if necessary.
14001 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
14003         * gcc.c (cpp_options): Must pass -m* and -f* options
14004         to the front end even when only preprocessing.
14005         (cc1_options): Remove redundant -lang-c.
14006         * tradcpp.c (main): Ignore -m options.
14007 objc:
14008         * lang-specs.h: Similarly.
14010 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
14012         * genautomata.c (transform_3): Add code for transformation
14013         `(A,B,...)+C -> A+C,B,...'.
14015 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
14017         * final.c (end_final): Do not output profile_arcs constructor, when
14018         no functions are instrumented.
14020 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
14022         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
14024 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14026         * doc/install.texi: Remove special markup originally required for
14027         HTML generation with texi2html.
14029 2002-05-14  Andreas Schwab  <schwab@suse.de>
14031         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
14032         SELECT_SECTION.
14033         (UNIQUE_SECTION): Define to get small data correctly.
14035         * varasm.c (resolve_unique_section): Add third parameter
14036         flag_function_or_data_sections and use it instead of
14037         flag_function_sections.
14038         (assemble_start_function): Pass flag_function_sections.
14039         (asm_emit_uninitialised): Pass flag_data_sections.
14040         (assemble_variable): Likewise.
14042 2002-05-14  Richard Henderson  <rth@redhat.com>
14044         * config/i386/i386.md: Use define_constants for unspec numbers.
14045         * config/i386/i386.c: Likewise.
14047 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14049         * doc/contrib.texi: Update my entry.
14051 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
14053         * fixinc/inclhack.def (winidss_valist): Limit applicability.
14054         * fixinc/fixincl.x: Regenerated.
14055         * fixinc/tests/base/math.h: Update.
14056         * fixinc/tests/base/testing.h: Likewise.
14058 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
14060         * genattr.c (gen_attr): Don't emit a comma after the last
14061         enumerator.
14063 2002-05-13  Richard Henderson  <rth@redhat.com>
14065         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
14066         by non-local gotos.
14067         * recog.c (peephole2_optimize): Likewise.
14069 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
14071         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
14072         input to O_BINARY.
14074 2002-05-13  Jeffrey A Law  (law@redhat.com)
14076         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
14077         Update prototype and callers.
14078         (propagate_one_insn): Stack pointer adjustments kill MEMs on
14079         the mem_set_list which reference the stack pointer, as do
14080         calls to constant functions as they may clobber outgoing
14081         argument space.
14083         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
14085         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
14086         (ia32_multipass_dfa_lookahead): New function.
14088 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14090         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
14091         (translate_options): Remove 'V'.
14092         (process_command): Similarly.
14093 doc:
14094         * invoke.texi: Remove documentation of 'V'.
14096 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
14098         * config/s390/linux.h: Revert 2002-04-22 changes.
14100 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
14102         * config/fr30/fr30.md: Only allow splits of immediate loads
14103         if the destination is a register.
14105 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
14107         * Makefile.in (c-common.o, cppinit.o): Update.
14108         * c-common.c: Include except.h.
14109         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
14110         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
14111         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
14112         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
14113         CPP_PREDEFINES): Handle here.
14114 config:
14115         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
14116         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
14117         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
14118         TARGET_OS_CPP_BUILTINS.
14119         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
14120         (CPP_SPEC, EXTRA_SPECS): Update.
14121         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
14122         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
14123         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
14124         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
14125         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
14126 doc:
14127         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
14128         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
14130 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14132         * emit-rtl.c (global_rtl): Update comment.
14133         (const_double_htab, const_double_htab_hash,
14134         const_double_htab_hash, lookup_const_double): New.
14135         (const_int_htab_hash, const_int_htab_eq): Remove const
14136         qualifiers, which cause tons of warnings with RTL checking on.
14137         (gen_rtx_CONST_DOUBLE): Deleted.
14138         (const_double_from_real_value): New function - bears some
14139         resemblance to the former immed_real_const_1.
14140         (immed_double_const): Moved here from varasm.c and
14141         simplified.
14142         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
14143         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
14144         (gen_rtx): Use immed_double_const.
14145         (init_emit_once): Initialize the const_double_htab.  Use
14146         REAL_VALUE_FROM_INT where possible.  Can now use
14147         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
14148         * varasm.c (struct varasm_status): Remove x_const_double_chain.
14149         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
14150         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
14151         (init_varasm_status, mark_varasm_status): Don't touch
14152         x_const_double_chain.
14154         * output.h: Delete prototype for clear_const_double_mem.
14155         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
14156         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
14157         const_double_from_real_value, not immed_real_const_1, and use
14158         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
14159         CONST_DOUBLE_ATOF.
14160         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
14161         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
14162         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
14163         (gen_rtx_REG): Second arg is unsigned.
14165         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
14166         (excluded_rtx): New, return true for CONST_DOUBLE.
14167         (genmacro): Write nothing for excluded codes.
14168         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
14169         * expr.c (expand_expr): Likewise.
14170         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
14171         CONST_DOUBLE_CHAIN.
14172         * toplev.c (rest_of_compilation): Don't call
14173         clear_const_double_mem.
14175         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
14176         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
14177         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
14178         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
14179         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
14180         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
14181         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
14182         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
14184 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14186         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
14188 2002-05-12  Tom Tromey  <tromey@redhat.com>
14190         * tree.h (copy_node): Don't mention TREE_PERMANENT.
14192 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
14194         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
14195         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
14196         * gensupport.h: Prototype new routines.
14197         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
14198         use of printf.
14199         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
14200         (next_comma_elt): Use scan_comma_elt.
14202         * config/i386/i386.md: Use new attribute notation to break up
14203         long lines in define_attr forms.
14205 2002-05-12  Richard Henderson  <rth@redhat.com>
14207         * expr.c (compress_float_constant): New.
14208         (emit_move_insn): Use it.
14209         (float_extend_from_mem): New.
14210         (init_expr_once): Initialize it.
14211         * real.c (exact_real_truncate): New.
14213         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
14214         dropped into memory; penalize for size.
14215         (RTX_COSTS): FLOAT_EXTEND is free.
14216         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
14217         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
14219 2002-05-12  Richard Henderson  <rth@redhat.com>
14221         * profile.h (profile_info): Add missing extern to declaration.
14222         * profile.c (profile_info): Define it.
14224 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14226         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
14227         used for DImode and TImode.
14229 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14231         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
14232         fake a newline.
14234 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
14236         * config/rs6000/rs6000.c (rs6000_default_long_calls,
14237         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
14238         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
14239         (rs6000_override_options): Handle -m(no-)longcall.
14240         (init_cumulative_args, output_mi_thunk): Check for both
14241         longcall and shortcall attributes on the function.
14242         (rs6000_attribute_table): Add "shortcall".
14243         (rs6000_handle_longcall_attribute): Update comment.
14244         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
14245         altivec_expand_ternop_builtin): Add default clauses to switches
14246         to silence warnings.
14248         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
14249         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
14250         (TARGET_OPTIONS): Add longcall and no-longcall.
14252         * config/rs6000/rs6000.md (call_nonlocal_sysv,
14253         call_value_nonlocal_sysv): Split by alternatives.  One pair
14254         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
14255         the call cookie.  The other pair accepts only LR/CTR and has
14256         no restriction.
14258         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
14259         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
14260         tmake_file.
14261         * config/rs6000/rs6000-c.c: New file.
14262         * config/rs6000/t-rs6000-c-rule: New file.
14263         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
14264         Prototype rs6000_pragma_longcall.
14266         * doc/extend.texi: Document shortcall attribute.
14267         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
14269 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14271         * reorg.c (dbr_schedule): Remove unnecessary test.
14273 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
14275         * i386.md (testsi to testqi spliters): New.
14277         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
14279         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
14281         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
14283         * basic-block.h: New flag EDGE_CAN_FALLTHRU
14284         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
14285         that can be made fallthru.
14287         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
14289         * cfglayout.c (cleanup_unconditional_jumps): New static function.
14290         (cfg_layout_initialize): Use it.
14292 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14294         * config/avr/avr.c (avr_mcu_types): Update supported devices.
14295         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
14296         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14298 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
14300         * dbxout.c: Fix formatting.
14301         * dependence.c: Likewise.
14302         * df.c: Likewise.
14303         * diagnostic.c: Likewise.
14304         * doloop.c: Likewise.
14305         * dominance.c: Likewise.
14306         * doschk.c: Likewise.
14307         * dwarf2asm.c: Likewise.
14308         * dwarf2out.c: Likewise.
14309         * dwarfout.c: Likewise.
14311 2002-05-10  Richard Henderson  <rth@redhat.com>
14313         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
14314         Convert integers constants as needed.  Replace "nwords" field with
14315         "sizeof_bb".
14316         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
14317         * function.h: Fix typo in comment.
14318         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
14320 2002-05-10  Roger Sayle  <roger@eyesopen.com>
14322         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
14323         into the equivalent (signed char)c > 0.
14325 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
14327         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
14328         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
14329         (struct prefetch_info): Fix spelling of member bytes_accessed.
14330         (emit_prefetch_instructions): Make dump messages more regular;
14331         restructure code to add more dump messages; use new macros for
14332         heuristics. (There are no code generation changes in any of this).
14334 2002-05-10  David S. Miller  <davem@redhat.com>
14336         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
14337         (struct rtx_def): Update unchanging flag comment.
14338         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
14339         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
14340         to be handled to INSN too.
14341         (dbr_schedule): Likewise.
14342         * resource.c (next_insn_no_annul): Likewise.
14344         * cse.c (rtx_cost): Remove multiplication by power of 2 special
14345         casing.
14347 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14349         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
14350         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
14351         (possibly) work around broken /bin/sh.
14353 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14355         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
14356         . as N64/N32 libgcc_s.so subdirs.
14358 2002-05-10  David S. Miller  <davem@redhat.com>
14360         * config/sparc/sparc.md: Use define_constants for unspec numbers.
14362         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
14363         more accurately.
14364         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
14365         comment.
14366         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
14367         * doc/rtl.texi: Document these macros more accurately.
14368         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
14369         JUMP_INSNs and CALL_INSNs.
14370         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
14371         or INSN_FROM_TARGET_P if the code is appropriate.
14373 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14375         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
14376         before using SYMBOL_REF_FLAG (addr).
14378         * config/avr/avr-protos.h (avr_io_address_p): Declare.
14379         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
14380         Make non-static.  Update all callers.
14381         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
14382         New insns to clear/set/test a single bit in I/O address space.
14384 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14386         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
14388 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14390         * Makefile.in: Update.
14391         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
14392         builtin_define_std): New.
14393         (c_common_init): Register CPP builtins callback.
14394         * c-common.h (flag_iso, flag_undef): New.
14395         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
14396         * c-lex.c: Don't include target.h.
14397         (cb_register_builtins): Move to c-common.c.
14398         (init_c_lex): Don't register hook here.
14399         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
14400         (cpp_define, cpp_assert): Remove.
14401         * gcc.c (cc1_options): Pass -undef to front end.
14402         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
14403         (TARGET_INITIALIZER): Update.
14404         * target.h (struct cpp_reader): Don't predeclare.
14405         (struct gcc_target): Remove cpp builtin hook.
14406         * tree.c (default_register_cpp_builtins): Remove.
14407 doc:
14408         * tm.texi: Update.
14410 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14412         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
14414 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14416         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
14417         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
14419 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
14421         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
14422         * config/sparc/libgcc-sparc-glibc.ver: New file.
14423         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
14424         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
14426 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
14428         PR target/6429
14429         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
14430         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
14431         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
14432         base multilibs.
14433         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
14434         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
14435         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14436         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
14438 2002-05-09  Richard Henderson  <rth@redhat.com>
14440         * config/ia64/ia64.md: Use define_constants for unspec numbers.
14441         * config/ia64/ia64.c: Likewise.
14443 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
14445         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
14446         (save_restore_insns): Likewise.
14447         (mips_expand_prologue, mips_expand_epilogue): Update callers.
14448         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
14450 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
14452         * athlon.md, k6.md, pentium.md, ppro.md): New files.
14453         * i386.md: Move scheduling information into new files.
14455         * i386.md (type attribute): Add "rotate" for rotate insns.
14456         (rotate insns): Set type to "rotate".
14457         (various attributes and function units): Treat rotate like shift.
14458         (pent_pair attribute): Only rotates by one bit position are
14459         pairable.
14460         (sbb insns): Explicitly set pent_pair attribute on a couple
14461         that were missing it.
14463 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
14465         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
14466         make sure that buffer starts on odd word address.
14467         (sh_va_arg): Skip odd fp registers when reading a double precision
14468         value.
14470 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14472         * tree.h (preserve_data, object_permanent_p, type_precision):
14473         Remove.
14475 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
14477         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
14478         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
14479 doc:
14480         * cpp.texi: Update for removal of obsolete features.
14482 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
14483                           Jeffrey A Law  (law@redhat.com)
14485         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
14486         the DFA interface for Pentium processors.
14487         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
14488         (attr_pent_pair, ix86_pent_find_pair): Remove.
14489         (ix86_sched_reorder_pentium): Remove.
14490         (ix86_sched_reorder): Remove reordering for Pentium.
14491         * i386.md (Pentium scheduling): Rewrite using DFA description.
14493 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
14495         * cfganal.c (can_fallthru): Fix fast path.
14496         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
14497         with edges to the next block.
14499 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
14500                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
14502         * final.c (end_final): Use C trees to output data structures for profiling.
14504         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
14505         (profile.o): New dependency profile.h
14506         (final.o): New dependency profile.h
14507         * profile.h: New file. New global structure profile_info.
14508         * final.h (count_edges_instrumented_now): Declare.
14509         (current_function_cfg_checksum): Declare.
14510         (function_list): New structure.
14511         (functions_head, functions_tail): New static variables.
14512         (end_final): Emits more data, removed some -ax stuff.
14513         (final): Stores function names and chcksums.
14514         * gcov-io.h (__write_gcov_string): New function.
14515         (__read_gcov_string): New function.
14516         * gcov.c (read_profile): New function.
14517         (create_program_flow_graph): Uses read_profile instead of reading
14518         da_file.
14519         (read_files): Removed da_file checking, it's done by read_profile now.
14520         * libgcc2.c (bb_function_info): New structure.
14521         (bb): New field in structure, removed some -ax stuff.
14522         (__bb_exit_func): Changed structure of da_file.
14523         * profile.c (count_edges_instrumented_now): New global variable.
14524         (current_function_cfg_checksum): New global variable.
14525         (max_counter_in_program): New global variable.
14526         (get_exec_counts): New function.
14527         (compute_checksum): New function.
14528         (instrument_edges): Sets count_edges_instrumented_now.
14529         (compute_branch_probabilities): Uses get_exec_counts instead of
14530         reading da_file.
14531         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
14532         (init_branch_prob): Removed da_file checking, done in get_exec_counts
14533         now.
14534         (end_branch_prob): Removed da_file checking, done in get_exec_counts
14535         now.
14536         * gcov.texi: Updated information about gcov file format.
14538 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
14540         * sbitmap.c: Fix formatting.
14541         * scan.c: Likewise.
14542         * scan-decls.c: Likewise.
14543         * sched-deps.c: Likewise.
14544         * sched-ebb.c: Likewise.
14545         * sched-rgn.c: Likewise.
14546         * sched-vis.c: Likewise.
14547         * sdbout.c: Likewise.
14548         * sibcall.c: Likewise.
14549         * simplify-rtx.c: Likewise.
14550         * ssa.c: Likewise.
14551         * ssa-ccp.c: Likewise.
14552         * ssa-dce.c: Likewise.
14553         * stmt.c: Likewise.
14554         * stor-layout.c: Likewise.
14555         * stringpool.c: Likewise.
14557 2002-05-09  David S. Miller  <davem@redhat.com>
14559         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
14561 2002-05-07  David S. Miller  <davem@redhat.com>
14563         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
14564         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
14565         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
14566         library implementation clobbers the output before the inputs
14567         are fully consumed, use stack temporary for the output.
14569 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
14571         * config/netbsd.h (CPP_SPEC): Remove.
14572         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
14573         * config/i386/netbsd.h (CPP_SPEC): Define.
14574         * config/ns32k/netbsd.h (CPP_SPEC): Define.
14575         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
14576         * config/sparc/netbsd.h (CPP_SPEC): Define.
14577         * config/vax/netbsd.h (CPP_SPEC): Define.
14579 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
14581         * read-rtl.c: Fix formatting.
14582         * real.c: Likewise.
14583         * recog.c: Likewise.
14584         * regclass.c: Likewise.
14585         * regmove.c: Likewise.
14586         * reg-stack.c: Likewise.
14587         * reload1.c: Likewise.
14588         * reload.c: Likewise.
14589         * resource.c: Likewise.
14590         * rtlanal.c: Likewise.
14591         * rtl.c: Likewise.
14592         * rtl-error.c: Likewise.
14594 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14596         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
14597         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
14599 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
14601         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
14602         use __SSE2__ macro instead.
14603         * config/i386/xmmintrin.h: Likewise.
14605 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
14607         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
14608         and use it in all invocations of these macros.  Clean up comments.
14609         * rtl.c (rtl_check_failed_flag): Add an argument for the name
14610         of the flag access macro whose check failed.
14611         * doc/rtl.texi (Flags): Document additional flag uses.
14613 2002-05-08  Robert Spier <rspier@pobox.com>
14614             Neil Booth  <neil@daikokuya.demon.co.uk>
14616         PR preprocessor/6521
14617         * cppfiles.c (handle_missing_header): Don't do anything
14618         different for <> includes.
14619 doc:
14620         * cppopts.texi: Update documentation for -MG.
14622 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
14624         * cpplex.c (cpp_interpret_charconst): Truncate as well as
14625         sign-extend.
14626 doc:
14627         * cpp.texi: Clarify multichar charconst valuation.
14629 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
14631         * doc/invoke.texi: Document -mwindiss option.
14633 2002-05-08  Jason Merrill  <jason@redhat.com>
14635         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
14637         * dwarf2out.c (gen_type_die): Abort on broken recursion.
14639         PR c++/6381
14640         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
14641         REAL_CST.
14643 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
14645         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
14646         little-endian multilibs to override arm/thumb multilibs.
14647         Do not build hardware floating point multilibs, nor apcs-26
14648         multilibs for the Thumb.
14650 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
14652         PR c/6569.
14653         * varasm.c (mark_weak): New function.
14654         (merge_weak): Use it.  Do not call declare_weak.
14655         (declare_weak): Use merge_weak.
14657 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
14659         * cse.c (dead_libcall_p): Update counts.
14660         (delete_trivially_dead_insns): Update call of dead_libcall_p.
14662 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
14664         * cfglayout.c (function_tail_eff_head): Rename to ...
14665         (function_footer): ... this one.
14666         (unlink_insn_chain): New functions.
14667         (label_for_bb): Only call block_label and emit debug message.
14668         (record_effective_endpoints): Actually unlink the headers and footers.
14669         (fixup_reorder_cahin): Re-insert the unlinked sequences.
14670         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
14671         * cfglayout.h (struct reorder_block_def): New fields footer/header;
14672         remove eff_head/eff_end.
14673         * rtl.h (set_first_insn): Declare.
14674         * emit-rtl.c (set_first_insn): New function.
14676         * cfglayout.c (fixup_reorder_chain): Dump duplicated
14677         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
14678         cfg_layout_duplicate_bb): New global function.
14679         (duplicate_insn_chain): New static function.
14680         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
14681         cfg_layout_duplicate_bb): Declare.
14682         (struct reorder_block_def): Add "original" field.
14683         * emit-rtl.c (emit_copy_of_insn_after): New function.
14684         * rtl.h (emit_copy_of_insn_after): Declare.
14686         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
14687         (fixup_reorder_chain): properly handle edges to exit block.
14689 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14690                                Jan Hubicka  <jh@suse.cz>
14692         * basic-block.h (note_prediction_to_br_prob): declare.
14693         * c-semantics.c: Inlucde predit.h
14694         (expand_stmt): predict GOTO_STMT as not taken.
14695         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
14696         (cleanup_cfg): Do not free tail_recursion_list.
14697         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
14698         (flow_delete_block): Kill predictions past end of basic block.
14699         * output.h (delete_unreachable_blocks): Declare.
14700         * predict.c (predicted_by_p, process_note_predictions,
14701         process_note_prediction, last_block_p): New function.
14702         (estimate_probability): Bypass loop on PRED_CONTINUE;
14703         do not handle noreturn heuristics; kill PRED_RETURN; add
14704         PRED_EARLY_RETURN.
14705         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
14706         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
14707         * predict.h (IS_TAKEN): New constant.
14708         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
14709         * rtl.c (NOTE_INSN_PREDICTION): New.
14710         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
14711         New macro.
14712         (insn_note): add NOTE_INSN_PREDICTION.
14713         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
14714         CFG; free tail_recursion_label_list.
14715         * stmt.c: Include predict.h;
14716         (return_prediction): New.
14717         (expand_value_return): Use it.
14718         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
14720 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
14722         * config/mips/mips.md: Name the unspecs with define_constant.
14723         (*HILO_delay): Rename to 'hilo_delay' (no star).
14724         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
14725         (reload_outdi, reload_outsi): Likewise.
14727 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
14729         * toplev.c: Fix formatting.
14731 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
14733         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
14734         * configure.in (ac_rtlflag_checking): New.
14735         * doc/install.texi (--enable-checking): Document RTL flag checking.
14737 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14739         * c-common.c (c_common_init): Set options->unsigned_wchar.
14740         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
14741         group target dependencies.
14742         (init_builtins, cpp_handle_option): Update.
14743         * cpplex.c (cpp_interpret_charconst): Update.
14744         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
14745         signed_char to unsigned_char, group target dependencies.
14746         * defaults.h (WCHAR_UNSIGNED): Remove.
14747         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
14748 config:
14749         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
14750         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
14751         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
14752         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
14753         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
14754 doc:
14755         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
14757 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
14759         * fixinc/inclhack.def (windiss_math1): New fix.
14760         (windiss_math2): Likewise.
14761         (windiss_valist): Likewise.
14762         * fixinc/fixincl.x: Regenerated.
14764 2002-05-07  Andreas Jaeger  <aj@suse.de>
14766         * genautomata.c (output_internal_min_issue_delay_func): Add
14767         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
14768         (output_internal_trans_func): Likewise.
14770 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
14772         * pa.c (hppa_profile_hook): Use force_reg to get the address
14773         of the profile hook into an appropriate pseudo register.
14775 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
14777         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
14778         (LINK_START_SPEC): Handle it.
14779         (LINK_OS_SPEC): Likewise.
14780         (CPP_SPEC): Likewise.
14781         (STARTFILE_SPEC): Likewise.
14782         (LIB_SPEC): Likewise.
14783         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
14784         all platforms.
14785         (CRTSAVRES_DEFAULT_SPEC): New macro.
14786         (LIB_WINDISS_SPEC): New macro.
14787         (CPP_OS_WINDISS_SPEC): Likewise.
14788         (STARTFILE_WINDISS_SPEC): Likewise.
14789         (ENDFILE_WINDISS_SPEC): Likewise.
14790         (LINK_START_WINDISS_SPEC): Likewise.
14791         (LINK_OS_WINDISS_SPEC): Likewise.
14792         * config/rs6000/windiss.h: New file.
14794 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
14796         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
14798 2002-05-06  David S. Miller  <davem@redhat.com>
14800         * config/sparc/sparc.md (shift insns): Do not mask off
14801         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
14802         take care of it.
14804 2002-05-06  Richard Henderson  <rth@redhat.com>
14806         PR c++/6212
14807         * expr.c (highest_pow2_factor_for_type): New.
14808         (expand_assignment): Use it.
14810 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
14812         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
14813         unspec_volatile.
14814         ("altivec_mfvscr"): Same.
14816 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
14818         * rtl.h (struct rtx_def): Update comments.
14819         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
14820         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
14821         RTL_FLAG_CHECK macros with list of expected RTL codes.
14822         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
14823         (rtl_check_failed_flag): New.
14824         * reload1.c (reload): Use REG macro before changing rtx to MEM.
14825         (reload_cse_noop_set_p): Check rtx code before using access macro.
14826         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
14827         before using access macro.
14829 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
14831         * doc/rtl.texi (Flags): Update to reflect current usage.
14833 2002-05-06  Roger Sayle  <roger@eyesopen.com>
14835         PR opt/3995
14836         * fold-const.c (sign_bit_p): New function.
14837         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
14838         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
14839         Reapply fold when converting (A & C) == C into (A & C) != 0.
14840         (fold_binary_op_with_conditional_arg): Fix typo in comment.
14842 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
14844         * c-common.c (warn_multichar): New.
14845         (c_common_init): Set CPP's warn_multichar.
14846         * c-common.h (warn_multichar): New.
14847         * c-decl.c (warn_multichar): Remove.
14848         * c-lex.c (lex_charconst): Update.
14849         * c-tree.h (warn_multichar): Remove.
14850         * cppexp.c (eval_token): Sign-extend charconst value.
14851         * cppinit.c (cpp_create_reader): Set warn_multichar.
14852         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
14853         each character.  Update prototype.  Sign-extend the result.
14854         * cpplib.h: Fix conditions.
14855         (struct cpp_options): Add new warning flag.
14856         (cpp_interpret_charconst): Update prototype.
14857 doc:
14858         * cpp.texi: Update documentation.
14860 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
14862         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
14863         Fix typo in usage of allof instead of unit.
14865 2002-05-06  Richard Henderson  <rth@redhat.com>
14867         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
14868         and any jump or call for IN.
14870 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
14872         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
14873         -msse2.
14874         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
14876 2002-05-06  Roger Sayle  <roger@eyesopen.com>
14878         * fold-const.c (lshift-double): Cast the high word to an unsigned
14879         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
14880         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
14881         avoid compiler warning.  (fold): Remove redundant code from
14882         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
14884 2002-05-06  Jeff Law  <law@redhat.com>
14886         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
14887         * pa.c (pa_adjust_cost): Remove all true dependency cost
14888         adjustments.  Also remove support for non-DFA scheduling.
14889         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
14890         to adjust true dependency costs.  Update various comments.
14891         (7100lc, 7200, 7300 scheduling): Simplify by combining the
14892         FP ALU & MPY units into a single unit.
14894 2002-05-06  Catherine Moore  <clm@redhat.com>
14896         * config/v850/v850.c (compute_register_save_size): Make sure
14897         to count all of the registers that will be saved.
14899 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
14901         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
14903 2002-05-06  David S. Miller  <davem@redhat.com>
14905         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
14906         allow result to overlap input operands in memory.
14908 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14910 doc:
14911         * cpp.texi: Update multichar charconst docs.
14913 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
14915         * cpplex.c (cpp_interpret_charconst): Sign-extend each
14916         character.  Don't ignore excess characters.  Treat
14917         multicharacter character constants as signed.
14918         (cpp_parse_escape): Clarify diagnostic.
14920 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
14922         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
14923         use add instead of shift.
14924         (ashldi3_sp64): Likewise.
14925         (ashlsi3_const1, ashldi3_const1): Remove.
14926         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
14927         * config/sparc/sparc.c (const1_operand): New.
14929 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
14931         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
14933 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
14935         PR target/6561
14936         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
14938 2002-05-05  Richard Henderson  <rth@redhat.com>
14940         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
14941         memory latency adjustments.
14942         (alpha_variable_issue): Remove.
14943         (alpha_use_dfa_pipeline_interface): New.
14944         (alpha_multipass_dfa_lookahead): New.
14945         * config/alpha/alpha.md: Remove define_function_unit scheduling;
14946         include new dfa scheduling.
14947         (attr type): Add none.
14948         (blockage): Use it.
14949         * config/alpha/ev4.md: New.
14950         * config/alpha/ev5.md: New.
14951         * config/alpha/ev6.md: New.
14953 2002-05-05  David S. Miller  <davem@redhat.com>
14955         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
14957 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
14959         * cse.c: Fix formatting.
14960         * emit-rtl.c: Likewise.
14962 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
14964         * genautomata.c (initiate_states): Add additional guard to
14965         initialize `units_array'.
14967 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
14969         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
14970         process_unit_to_form_the_same_automaton_unit_lists,
14971         form_the_same_automaton_unit_lists
14972         check_unit_distributions_to_automata): New prototypes and
14973         functions.
14974         (check_automata): Rename it into `check_automata_insn_issues'.
14975         (unit_decl): New fields `the_same_automaton_unit' and
14976         `the_same_automaton_message_reported_p'.
14977         (unit_decl_t): New typedef.
14978         (the_same_automaton_lists): New gloval variable.
14979         (unit_regexp, unit_set_el, units_array, units_cmp,
14980         output_get_cpu_unit_code_func): Use the typedef.
14981         (evaluate_max_reserv_cycles): Increment
14982         `description->max_insn_reserv_cycles'.
14983         (initiate_states): Don't increment `max_cycles_num'.
14984         (transform_insn_regexps): Move code around transformation of
14985         regexps from `generate'.
14986         (generate): Remove call of `transform_insn_regexps'.
14987         (expand_automata): Call `transform_insn_regexps' and
14988         `check_unit_distributions_to_automata'.  Check errors before
14989         `generate'.
14991         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
14992         automaton `ultrasparc3_1'.
14994 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14996         * c-common.c (c_common_init): Set up CPP arithmetic.
14997         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
14998         something reasonable for the host.
14999         (sanity_checks): Add checks.
15000         (cpp_read_main_file): Call sanity_checks() from here...
15001         (cpp_post_options): ... not here.
15002         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
15003         * cpplib.h (struct cpp_options): New member int_precision.
15005 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15007         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
15009 2002-05-04  David S. Miller  <davem@redhat.com>
15011         * config/sparc/linux.h, config/sparc/linux64.h
15012         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
15014         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
15015         more RTX codes.
15016         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
15018         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
15019         of SETs.
15021 2002-05-05  Tim Josling  <tej@melbpc.org.au>
15023         * treelang; New directory for new sample language treelang.
15025 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15027         * Makefile.in (c-lex.o): Update.
15028         * c-lex.c: Include target.h.
15029         (cb_register_builtins): New.
15030         (init_c_lex): Set builtins callback.
15031         * c-lex.h (cpp_define, cpp_assert): New prototypes.
15032         * cppinit.c (init_builtins): Use callback, including for
15033         GXX_WEAK.
15034         * cpplib.h (struct cpp_callbacks): New member.
15035         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
15036         (TARGET_INITIALIZER): Update.
15037         * target.h (struct gcc_target): New hook.
15038         * tree.c (default_register_cpp_builtins): New.
15039         * tree.h (default_register_cpp_builtins): New.
15040 doc:
15041         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
15043 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15045         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
15046         (cpp_post_options): Move sanity checks to...
15047         (sanity_checks): New.
15048         * cpplex.c (maybe_read_ucs): Fix prototype.
15049         (parse_string, cpp_parse_escape): Cast for %c format specifier.
15050         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
15051         if necessary.
15053 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
15055         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
15056         builtins.  Use V2DI patterns instead of TI for logical operations.
15057         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
15058         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
15059         (ix86_expand_builtins): Change the pattern used for movntdq.
15060         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
15061         sse2_nandv2di3): New patterns.
15062         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
15063         on operands.
15064         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
15065         (cvtdq2pd): Correct mode on operand 1.
15066         (sse2_umulsidi3): Describe without unspec.
15067         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
15068         machine modes.
15069         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
15070         (ashlv2di3): Likewise, from sse2_ashlv2di3.
15071         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
15072         ashlv4si3, ashlv2di3): Use SImode for shift count.
15073         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
15074         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
15075         New patterns.
15076         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
15077         New typedefs.
15078         (__m128i, __m128d): New macros.
15079         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
15080         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
15081         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
15082         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
15083         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
15084         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
15085         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
15086         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
15087         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
15088         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
15089         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
15090         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
15091         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
15092         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
15093         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
15094         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
15095         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
15096         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
15097         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
15098         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
15099         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
15100         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
15101         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
15102         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
15103         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
15104         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
15105         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
15106         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
15107         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
15108         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
15109         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
15110         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
15111         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
15112         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
15113         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
15114         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
15115         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
15116         functions.
15117         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
15118         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
15120 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
15122         * dwarf2out.c: Fix formatting.
15123         * varasm.c: Likewise.
15125 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
15127         PR c/6543
15128         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
15129         clobber and use result as temporary value.
15131 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
15133         * expr.c (force_operand): Use expand_simple_* to handle more
15134         cases.
15136 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
15138         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
15139         and sign-extension.
15140         (lex_charconst): Update for change in prototype of
15141         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
15142         appropriately.
15143         * cpphash.h (BITS_PER_CPPCHAR_T): New.
15144         * cppinit.c (cpp_create_reader): Initialize them for no
15145         change in semantics.
15146         (cpp_post_options): Add sanity checks.
15147         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
15148         and truncation issues.  Calculate in type cppchar_t.
15149         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
15150         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
15151         run-time dependent precision correctly.  Return whether the
15152         result is signed or not.
15153         * cpplib.c (dequote_string): Use cppchar_t; update.
15154         * cpplib.h (cppchar_signed_t): New.
15155         struct cpp_options): New precision members.
15156         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
15157         * cppexp.c (eval_token): Update.
15159 2002-05-03  David S. Miller  <davem@redhat.com>
15161         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
15162         * config/sparc/sparc.c (sparc_rtx_costs): New function
15163         implementing RTX_COSTS and CONST_COSTS.
15164         * config/sparc/sparc.h (CONST_COSTS): Delete.
15165         (RTX_COSTS_CASES): Define.
15166         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
15167         the work.
15169         * config/sparc/sparc.md (DFA schedulers): Split out...
15170         * config/sparc/cypress.md, config/sparc/hypersparc.md,
15171         config/sparc/sparclet.md, config/sparc/supersparc.md,
15172         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
15174         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
15175         checks on it, always defined for Sparc.
15177         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
15178         Tweak, and add more detailed comments.
15180 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
15182         * Re-apply patch accidentally reverted with
15183         DFA scheduler merge: remove all rules and variables to slurp
15184         source files out of libiberty and rebuild them with HOST_CC.
15185         ($(HOST_PREFIX_1)varray.o): New rule.
15186         (genattrtab rule): Word wrap.
15188 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15190         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
15191         (CPP_SUBTARGET_SPEC): Define.
15192         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
15193         cpp_subtarget specs.
15194         (CPP_SPEC): Redefine to include %(cpp_subtarget).
15196 2002-05-03  David S. Miller  <davem@redhat.com>
15198         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
15199         * target.h (struct gcc_target): Delete cycle_display member.
15201         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
15202         (rtx_needs_barrier): Delete reference to cycle_display unspec.
15203         (ia64_sched_reorder2): Mention need for cycle display handling
15204         once such notes exist.
15206 2002-05-03  Richard Henderson  <rth@redhat.com>
15208         * real.c (etoasc): Strip most trailing zeros for clarity.
15209         * sched-vis.c: Include real.h.
15210         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
15211         * Makefile.in (sched-vis.o): Add real.h.
15213 2002-05-03  David S. Miller  <davem@redhat.com>
15215         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
15216         no longer needed.
15218 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
15220         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
15221         when we get an out of range literal.
15222         (altivec_expand_ternop_builtin): Same.
15223         (altivec_expand_unop_builtin): Same.
15224         (altivec_expand_builtin): Same, for dss.
15225         (altivec_expand_builtin): Use trees instead of rtl when
15226         determining literal argument validity.
15228 2002-05-03  David S. Miller  <davem@redhat.com>
15230         Delete cycle display scheduling hook.
15231         * config/ia64/ia64.c (ia64_cycle_display,
15232         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
15233         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
15234         and use emit_insn_before instead of ia64_emit_insn_before.
15235         * config/ia64/ia64.md (unspec usage): Delete cycle display.
15236         (cycle_display): Delete insn pattern.
15237         * config/sparc/sparc.md (unspec usage): Delete cycle display.
15238         (cycle_display): Delete insn pattern.
15239         * config/sparc/sparc.c (sparc_cycle_display,
15240         TARGET_SCHED_CYCLE_DISPLAY): Delete.
15241         * doc/md.texi (cycle_display): Don't mention.
15242         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
15244 2002-05-03  Richard Henderson  <rth@redhat.com>
15246         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
15247         * recog.h: Declare them.
15249         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
15250         * config/sparc/sparc.md: Use store_data_bypass_p instead.
15251         * config/sparc/sparc-protos.h: Update.
15253 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15255         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
15256         -D__arch64__.  Add -D_LP64.
15257         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
15258         from sparc.h.
15259         (CPP_ARCH64_SPEC): Likewise.
15260         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
15261         (NO_BUILTIN_SIZE_TYPE): Undef.
15263 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
15265         * genautomata.c (min_issue_delay_pass_states): Change return type
15266         in the prototype.
15267         (min_issue_delay_pass_states): Change the algorithm.
15268         (min_issue_delay): Set up min_insn_issue_delay for the state.
15269         (output_min_issue_delay_table): Interchange the nested loops and
15270         and initiate min_insn_issue_delay for states.
15272 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
15274         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
15275         jump is simplejump.
15277 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
15279         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
15280         sequence.
15282 2002-05-03  Richard Henderson  <rth@redhat.com>
15284         PR opt/6534
15285         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
15286         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
15287         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
15288         code before JUMP, not EARLIEST.
15290 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15292         * c-format.c (check_format_info_main): Don't check for presence of
15293         parameter for * width until after operand number has been read,
15294         and only check for it if format parameters are available.
15295         Fixes PR c/6547.
15297 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
15299         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
15300         (LINK_SPEC): Undef before defining.
15302 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15304         PR preprocessor/6489
15305         * tradcpp.c (fixup_newlines): New.
15306         (main, finclude): Use it.
15308 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
15310         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
15311         * config/mips/mips.c (mips_unique_section): Strip encoding from
15312         decl name.
15314 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15316         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
15317         mode.
15319 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15321         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
15322         (Specific): Removed buildstats references.
15323         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
15324         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
15325         Accomodate Solaris versions beyond 8.
15326         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
15327         (Specific, *-*-solaris2.8): Removed, obsolete.
15329 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
15331         PR target/6542
15332         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
15333         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
15334         fill leaf_reg_remap with identity.
15335         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
15337 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
15339         * config/h8300/crti.asm: Remove trailing spaces.
15340         * config/h8300/h8300.c: Likewise.
15341         * config/h8300/lib1funcs.asm: Likewise.
15343 2002-05-02  Jason Merrill  <jason@redhat.com>
15345         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
15346         * c-decl.c (c_init_decl_processing): Use it.
15347         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
15348         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
15349         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
15351 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
15353         * regrename.c: Fix formatting.
15354         * tree.c: Likewise.
15356 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
15358         * i386.md (attribute memory): Handle compares properly.
15360 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
15362         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
15363         to none.
15365 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
15367         * function.c: Fix formatting.
15369 2002-05-02  Jan Hubicka  <jh@suse.cz>
15371         * haifa-sched.c (schedule_insn): Print table of instructions and
15372         reservations.
15373         (sched_block): Do not print ready list at verbosity level 1.
15374         * sched-vis.c (print_insn): Make global.
15375         * sched-ebb.c (ebb_print_insn): Rename from...
15376         (print_insn): ... this one.
15377         * sched-int.h (print_insn): Declare
15379 2002-05-02  Richard Henderson  <rth@redhat.com>
15381         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
15382         emitted by cycle_display.
15384 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
15386         * doc/install.texi (*-*-freebsd*): Update to latest status.
15388 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
15390         PR target/6540
15391         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
15392         * config/float-sparc.h: Assume 128-bit long double if
15393         __LONG_DOUBLE_128__ is defined.
15395 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
15397         * genattrtab.c (write_function_unit_info): Add a dummy element
15398         when num_units == 0.
15400 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15402         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
15403         TYPE_MODE (double_type_node) instead of DFmode.
15405 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
15407         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
15408         jumps post reload.
15409         * toplev.c (rest_of_compilation): Revert Richard's patch.
15411 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15413         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
15415 2002-05-02  Catherine Moore  <clm@redhat.com>
15417         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
15419 2002-05-02  Kazu Hirata  <kazu@hxi.com>
15421         * combine.c: Fix comment typos.
15422         * expr.c: Likewise.
15423         * genautomata.c: Likewise.
15424         * stmt.c: Likewise.
15425         * tree.h: Likewise.
15427 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
15429         * doc/install.texi: State GNAT version requirements.
15431 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
15433         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
15434         of the frame pointer or arg pointer register which strict register
15435         checking is not enabled.
15437 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
15439         * gcc.dg/altivec-8.c: New.
15441         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
15442         PRE_INC and PRE_DEC for altivec modes.
15444 2002-05-01  Bruce Korb  <bkorb@gnu.org>
15446         * fixinc/check.tpl(set-writable): make sure the function exists first
15447         * fixinc/inclhack.def(alpha_assert): fix test_text
15448         * fixinc/tests/base/assert.h: add in missing result
15450 2002-05-01  Jeff Law  <law@redhat.com>
15452         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
15453         'T' constraint.
15455 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
15457         * dbxout.c (dbxout_type): Emit size information for range types,
15458         as well, but only when using GDB extensions.
15460 2002-05-01  Richard Henderson  <rth@redhat.com>
15462         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
15463         target-independent gnu binutils date test.
15465 2002-05-01  Richard Henderson  <rth@redhat.com>
15467         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
15468         info before expunging the block.
15470 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
15472         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
15473         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
15474         -M -or -MM is in effect.
15476 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
15478         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
15479         A29k configurations.
15480         * doc/install.texi: Update to match.
15482 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15484         PR bootstrap/6514
15485         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
15486         for duplicates. Always loop over whole list.
15488 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15490         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
15492 2002-05-01      Joel Sherrill <joel@OARcorp.com>
15494         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
15495         support routines.
15497 2002-05-01      Joel Sherrill <joel@OARcorp.com>
15499         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
15501 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
15503         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
15504         (nabs_nopower): Same.
15505         (floatdisf2): New pattern.
15506         (absdi2): Convert to define_insn_and_split.
15507         (nabsdi2): Same.
15508         (trunctfsf2): Same.
15509         (floatditf2): Same.
15510         (floatsitf2): Same.
15511         (fix_trunctfdi2): Same.
15512         (fix_trunctfsi2): Same.
15514 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
15516         * doc/install.texi: Update Texinfo version requirement
15517         documentation.
15519 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
15521         PR target/6512, PR target/5628
15522         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
15523         when memory is not aligned.
15524         (movdf_insn_v9only_vis): Likewise.
15525         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
15526         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
15527         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
15529 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
15531         * gcc.dg/altivec-7.c: New.
15533         * config/rs6000/altivec.h: Cleanup.
15535 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
15537         * doc/invoke.texi (Option Summary): Add -mvrsave=.
15538         (RS/6000 and PowerPC Options): Document -mvrsave=.
15540         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
15541         (rs6000_altivec_vrsave_string): Same.
15542         (rs6000_override_options): Call rs6000_parse_vrsave_option.
15543         (rs6000_parse_vrsave_option): New.
15544         (rs6000_stack_info): Only generate vrsave instructions when
15545         TARGET_ALTIVEC_VRSAVE.
15547         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
15548         (rs6000_altivec_vrsave_string): Define extern.
15549         (rs6000_altivec_vrsave): Same.
15550         (TARGET_ALTIVEC_VRSAVE): New.
15552 2002-04-30  Richard Henderson  <rth@redhat.com>
15554         PR opt/6516
15555         * toplev.c (rest_of_compilation): Don't run cross-jump before
15556         bb-reorder.
15558 2002-04-30  Tom Rix  <trix@redhat.com>
15560         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
15561         check which_alternative.
15563 2002-04-30  Kazu Hirata  <kazu@hxi.com>
15565         * cpplex.c: Fix comment formatting.
15566         * function.c: Likewise.
15567         * integrate.c: Likewise.
15568         * regrename.c: Likewise.
15569         * sibcall.c: Likewise.
15570         * simplify-rtx.c: Likewise.
15571         * tree-inline.c: Likewise.
15573 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15575         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
15576         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
15577         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
15578         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
15579         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
15580         * pa/x-ada: New file.  Define ADA_CFLAGS.
15582 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
15584         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
15585         from MMIX_LAST_REGISTER_FILE_REGNUM.
15586         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
15587         (struct machine_function): New member highest_saved_stack_register
15588         previously static variable in mmix.c.
15589         (MACHINE_DEPENDENT_REORG): Define.
15590         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
15591         (MMIX_OUTPUT_REGNO): New.
15592         (mmix_target_asm_function_prologue): Move calculation of last used
15593         saved-stack-register into...
15594         (mmix_machine_dependent_reorg): New function.  Update to also handle
15595         !TARGET_ABI_GNU.
15596         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
15597         register names, simplify somewhat by new variable regno.
15598         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
15599         register.
15600         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
15601         emitting register names.
15602         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
15603         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
15604         Remove fixed FIXME.
15605         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
15606         Declare.
15608         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
15610 2002-04-30  Richard Henderson  <rth@redhat.com>
15612         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
15613         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
15614         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
15615         emit_tfmode_cvt): New.
15616         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
15617         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
15618         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
15619         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
15620         * config/sparc/sparc-protos.h: Update.
15622 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
15624         * install.texi (Final install): Add to the list of info to include
15625         in a report of a successful bootstrap, and add link to 3.1 list.
15627 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
15629         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
15630         (mode): Add vector modes
15631         (i387): Kill attribute.
15632         (unit): New attribute.
15633         (length_immediate): Grok new types.
15634         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
15635         (modrm): Use "unit".
15636         (memory): Handle MMX/SSE properly.
15637         (scheduling descriptions): Kill uses of fop1.
15638         (sse, mmx, fp patterns): Set type and mode properly.
15640 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
15642         * pa.c (override_options): Default to PA8000 scheduling.
15643         * doc/invoke.texi (HP-PA options): Mention newly added 7300
15644         scheduling parameter.
15646         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
15647         handling of double precision multiplies.
15649         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
15650         fpdiv and fpsqrt instructions.
15651         (7200 & 7300 scheduling): Fix typo in handling of
15652         store-load and store-store penalties.
15654 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15656         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
15657         mips.  Add two missing commas.
15659 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
15661         * doc/contrib.texi (Contributors): Update Paolo Carlini's
15662         and Benjamin Kosnik's entries.
15664 2002-04-29  David S. Miller  <davem@redhat.com>
15666         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
15667         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
15668         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
15669         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
15671 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15673         * combine.c (find_split_point): Use gen_int_mode.
15675 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
15677         Merging code from dfa-branch:
15679         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
15681         * genautomata.c (output_reserv_sets): Fix typo.
15683         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
15685         * genautomata.c (output_reserv_sets): Remove
15686         next_cycle_output_flag.
15688         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
15690         * sched-rgn.c (init_ready_list): Make the DFA code handle
15691         USE/CLOBBER insns in the same way as the traditional
15692         scheduler.
15693         (new_ready): Similarly..
15695         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
15697         * haifa-sched.c (schedule_block): Change the DFA state only after
15698         issuing insn.
15700         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
15702         * pa.c (hppa_use_dfa_pipeline_interface): New function.
15703         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
15704         (override_options): Add PA7300 scheduling support.
15705         (pa_adjust_cost): Update various comments.  Properly
15706         handle anti and output dependencies when using the
15707         DFA scheduler.
15708         (pa_issue_rate): Add PA7300 scheduling support.
15709         (pa_can_combine_p): Call extract_insn before calling
15710         constrain_operands (taken from mainline tree).
15711         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
15712         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
15713         descriptions using DFA descriptions.  Add PA7300
15714         scheduling support.
15716         2002-03-30  David S. Miller  <davem@redhat.com>
15718         Add UltraSPARC-III DFA scheduling support.
15719         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
15720         Update FP conditional move on register insn patterns to use it, as
15721         appropriate.
15722         (define_attr cpu): Add ultrasparc3.
15723         (define_attr us3load_type): New, update integer load patterns to
15724         set it, as appropriate.
15725         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
15726         (rest): Add UltraSPARC3 scheduling description.
15727         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
15728         (PROCESSOR_ULTRASPARC3): New.
15729         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
15730         ({ASM,CPP}_CPU_SPEC): Likewise.
15731         (REGISTER_MOVE_COST): Likewise.
15732         (RTX_COSTS): Likewise.
15733         * config/sparc/sparc.c (sparc_override_options,
15734         sparc_initialize_trampoline, sparc64_initialize_trampoline,
15735         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
15736         sparc_issue_rate): Likewise.
15737         * config/sparc/sol2.h: Likewise.
15738         * config/sparc/sol2-sld-64.h: Likewise.
15739         * config/sparc/linux64.h: Likewise.
15741         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
15743         * doc/md.texi: Add comments about usage the latency time for the
15744         different dependencies and about case when two or more conditions
15745         in different define_insn_reservations returns TRUE for an insn.
15747         * doc/md.texi: Add reference for automaton based pipeline
15748         description.
15750         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
15752         * doc/passes.texi: Add missed information about genattrtab.
15754         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
15756         * genautomata.c (output_automata_list_transition_code): Check
15757         automata_list on NULL.
15759         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
15761         * genautomata.c (output_insn_code_cases,
15762         output_automata_list_min_issue_delay_code,
15763         output_automata_list_transition_code,
15764         output_automata_list_state_alts_code): Comment the functions.
15766         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
15768         * genautomata.c (automata_list_el_t): New typedef.
15769         (get_free_automata_list_el,free_automata_list_el,
15770         free_automata_list, automata_list_hash, automata_list_eq_p,
15771         initiate_automata_lists, automata_list_start, automata_list_add,
15772         automata_list_finish, finish_automata_lists,
15773         output_insn_code_cases, output_automata_list_min_issue_delay_code,
15774         output_automata_list_transition_code,
15775         output_automata_list_state_alts_code, add_automaton_state,
15776         form_important_insn_automata_lists): New functions and prototypes.
15777         (insn_reserv_decl): Add members important_automata_list and
15778         processed_p.
15779         (ainsn): Add members important_p.
15780         (automata_list_el): New structure.
15781         (first_free_automata_list_el, current_automata_list,
15782         automata_list_table): New global variables.
15783         (create_ainsns): Initiate member important_p.
15784         (output_internal_min_issue_delay_func): Generate the switch and
15785         call output_insn_code_cases.
15786         (output_internal_trans_func, output_internal_state_alts_func):
15787         Ditto.
15788         (generate): Call initiate_automata_lists.
15789         (automaton_states): New global variable.
15790         (expand_automata): Call form_important_insn_automata_lists.
15791         (write_automata): Call finish_automata_lists.
15793         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
15795         * genautomata.c (add_excls, add_presence_absence): Check that
15796         cpu units in the sets belong the same automaton.
15798         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
15799         about that cpu units in the sets belong the same automaton.
15801         * doc/md.texi: Ditto.
15803         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
15804                     Nitin Gupta  <niting@noida.hcltech.com>
15806         * config/sh/sh.c (sh_use_dfa_interface): New function.
15808         (sh_issue_rate): New Function.
15809         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
15810         TARGET_SCHED_ISSUE_RATE: define.
15812         * config/sh/sh.md: Add DFA based pipeline description for SH4.
15814         (define_attr insn_class): New attribute used for DFA
15815          scheduling.
15816         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
15817         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
15818          cmpeqdi_t): Likewise.
15820         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
15821          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
15822          ex_group.
15823         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
15825         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15827         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
15828         break.
15830         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
15832         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
15833         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
15834         necessary.
15835         (output_dfa_start_func): Initiate new variable insn_codes_length,
15836         (write_automata): Output definition of the new variable.
15838         2001-10-02  David S. Miller  <davem@redhat.com>
15840         * haifa-sched.c (advance_one_cycle): New function.
15841         (schedule_block): Use it.
15842         (queue_to_ready): Use it, and also make sure to advance the DFA
15843         state on all stall cycles, not just those where insn_queue links
15844         are found.
15846         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
15848         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
15849         non-zero if the highest-priority instruction could be scheduled.
15850         (choose_ready): Remove last argument from max_issue call.
15852         2001-09-28  David S. Miller  <davem@redhat.com>
15854         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
15855         ultrasparc and 3 for other multi-issue sparcs.
15857         2001-09-27  David S. Miller  <davem@redhat.com>
15859         * config/sparc/sparc.md (cycle_display): New pattern.
15860         * config/sparc/sparc.c (sparc_cycle_display): New.
15861         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
15863         2001-09-25  David S. Miller  <davem@redhat.com>
15865         Convert all of Sparc scheduling to DFA
15866         * config/sparc/sparc.md: Kill all define_function_unit
15867         directives and replace with DFA equivalent.
15868         * config/sparc/sparc.c (ultrasparc_adjust_cost,
15869         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
15870         ultra_fpmode_conflict_exists, ultra_find_type,
15871         ultra_build_types_avail, ultra_flush_pipeline,
15872         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
15873         ultrasparc_variable_issue, ultrasparc_sched_init,
15874         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
15875         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
15876         ultra_cur_hist, ultra_cycles_elapsed): Kill.
15877         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
15878         ultrasparc_store_bypass_p): New.
15879         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
15880         Declare.
15882         2001-09-24  David S. Miller  <davem@redhat.com>
15884         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
15885         ready->vec[foo] not ready[foo].
15887         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
15889         * doc/md.texi: Correct examples for define_insn_reservations
15890         `mult' and `div'.
15892         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
15894         * genautomata.c (create_automata): Print message about creation of
15895         each automaton.
15896         (generate): Remove printing meease about creation of
15897         automata.
15899         2001-09-05  David S. Miller  <davem@redhat.com>
15901         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
15902         * config/sparc/linux64.h: Likewise.
15904         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
15906         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
15907         schedule_block, sched_init, sched_finish): Add missed calls of
15908         use_dfa_pipeline_interface.
15910         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
15911         Ditto.
15913         * sched-vis.c (get_visual_tbl_length): Ditto.
15915         2001-08-27  Richard Henderson  <rth@redhat.com>
15917         * genattr.c (main): Emit state_t even when not doing scheduling.
15919         2001-08-27  Richard Henderson  <rth@redhat.com>
15921         * genautomata.c (expand_automata): Always create a description.
15923         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
15925         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
15926         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
15927         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
15928         RTL constructions.
15930         * genattr.c (main): New variable num_insn_reservations.  Increase
15931         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
15932         pipeline hazard recognizer interface.
15934         * genattrtab.h: New file.
15936         * genattrtab.c: Include genattrtab.h.
15937         (attr_printf, check_attr_test, make_internal_attr,
15938         make_numeric_value): Move protypes into genattrtab.h.  Define them
15939         as external.
15940         (num_dfa_decls): New global variable.
15941         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
15942         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
15943         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
15944         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
15946         * genautomata.c: New file.
15948         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
15950         * sched-int.h: (curr_state): Add the external definition for
15951         automaton pipeline interface.
15952         (haifa_insn_data): Add comments for members blockage and units.
15954         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
15955         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
15956         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
15957         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
15958         TARGET_SCHED_DFA_POST_CYCLE_INSN,
15959         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
15960         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
15961         macros.
15962         (TARGET_SCHED): Use the new macros.
15964         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
15965         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
15966         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
15967         dfa_bubble): New members in gcc_target.sched.
15969         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
15970         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
15971         (insn_queue): Redefine it as pointer to array.
15972         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
15973         INSN_QUEUE_SIZE.
15974         (max_insn_queue_index_macro_value): New variable.
15975         (curr_state, dfa_state_size, ready_try): New varaibles for
15976         automaton interface.
15977         (ready_element, ready_remove, max_issue): New function prototypes
15978         for automaton interface.
15979         (choose_ready): New function prototype.
15980         (insn_unit, blockage_range): Add comments.
15981         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
15982         FUNCTION_UNITS_SIZE == 0.
15983         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
15984         actual_hazard, potential_hazard): Add comments.
15985         (insn_cost): Use cost -1 as undefined value.  Remove
15986         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
15987         pipeline interface.
15988         (ready_element, ready_remove): New functions for automaton
15989         interface.
15990         (schedule_insn): Add new code for automaton pipeline interface.
15991         (queue_to_ready): Add new code for automaton pipeline interface.
15992         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
15993         (debug_ready_list): Print newline when the queue is empty.
15994         (max_issue): New function for automaton pipeline interface.
15995         (choose_ready): New function.
15996         (schedule_block): Add new code for automaton pipeline interface.
15997         Print ready list before scheduling each insn.
15998         (sched_init): Add new code for automaton pipeline interface.
15999         Initiate insn cost by -1.
16000         (sched_finish): Free the current automaton state and finalize
16001         automaton pipeline interface.
16003         * sched-rgn.c: Include target.h.
16004         (init_ready_list, new_ready, debug_dependencies): Add new code for
16005         automaton pipeline interface.
16007         * sched-vis.c: Include target.h.
16008         (get_visual_tbl_length): Add code for automaton interface.
16009         (target_units, print_block_visualization):  Add comments.
16011         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
16012         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
16013         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
16014         (getruntime.o, genautomata.o): New entries.
16015         (genattrtab.o): Add new dependency file genattrtab.h.
16016         (genattrtab): Add new dependencies.  Link it with `libm.a'.
16017         (getruntime.o, hashtab.o): New entries for canadian cross.
16019         * doc/md.texi: Description of automaton based model.
16021         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
16022         Add comments.
16023         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
16024         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
16025         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
16026         TARGET_SCHED_DFA_POST_CYCLE_INSN,
16027         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
16028         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
16029         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
16030         hook descriptions.
16031         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
16032         MAX_DFA_ISSUE_RATE): New macro descriptions.
16034         * doc/contrib.texi: Add dfa based scheduler contribution.
16036         * doc/gcc.texi: Add more information about genattrtab.
16038 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16040         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
16041         adjust_address_nv call.
16043 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
16045         * doc/install.texi (Testing): Provide additional information, and
16046         a stronger encouragement, for running the testsuites.
16048 2002-04-29  DJ Delorie  <dj@redhat.com>
16050         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
16051         given in upper case.
16053 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16055         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
16056         Solaris 2 <widec.h> if missing.
16057         * fixinc/fixincl.x: Regenerate.
16058         * fixinc/tests/base/widec.h: New file.
16060 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
16062         * toplev.c (f_options): Add "profile" switch so that
16063         -fno-profile can be used to disable -p.
16065 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
16067         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
16068         UV2DImode.
16069         * tree.c (build_common_tree_nodes_2): Likewise.
16070         * tree.h (enum tree_index): Likewise.
16071         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
16073         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
16074         entries.
16075         (init_mmx_sse_builtins): Initialize SSE2 builtins.
16076         (ix86_expand_builtin): Add support for SSE2 builtins.
16077         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
16078         (VALID_SSE_REG_MODE): Use it.
16079         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
16080         (enum ix86_builtins): Add SSE2 builtins.
16081         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
16082         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
16083         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
16084         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
16085         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
16086         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
16087         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
16088         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
16089         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
16090         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
16091         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
16092         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
16093         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
16094         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
16095         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
16096         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
16097         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
16098         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
16099         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
16100         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
16101         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
16102         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
16103         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
16104         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
16105         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
16106         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
16107         lfence_insn): New patterns.
16108         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
16109         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
16111 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
16113         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
16115 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16117         * doc/contrib.texi (Contributors): Add Paolo Carlini and
16118         Janis Johnson.
16119         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
16120         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
16121         and CPU instead of cpu.
16123 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
16125         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
16126         variables.
16127         (lang_independent_options): Add -fif-conversion, -fif-conversion2
16128         (rest_of_compilation): Do if conversion only when asked for.
16129         (parse_options_and_default_flags): Set new variables to 1 for -O1
16130         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
16132 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
16134         * i386.c (dbx64_register_map): Fix typo.
16136 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
16138         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
16139         real_one_half, real_bb_freq_max): New static variables.
16140         (debug_profile_bbauxs): Kill.
16141         (process_note_predictions): Kill unused variable.
16142         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
16143         volatile double.
16144         (propagate_freq): Use REAL_ARITHMETICS.
16145         (estimate_bb_frequencies): Likevise; init new static variables.
16146         * Makefile.in (predict.o): Add dependency on real.h
16148 2002-04-28  David S. Miller  <davem@redhat.com>
16150         PR target/6500
16151         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
16152         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
16153         several {reads,writes} instead.
16154         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
16155         Define.
16157 2002-04-27  David S. Miller  <davem@redhat.com>
16159         PR target/6494
16160         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
16161         of the stack bias.
16163         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
16164         including signal.h and sys/ucontext.h, not needed.
16166 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
16168         * varasm.c (output_constant_def): Correct test for not calling
16169         ENCODE_SECTION_INFO for INTEGER_CST.
16171 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
16173         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
16174         keep most cases as function eval_token.
16175         (eval_token): New function.
16176         (_cpp_parse_expr): Read token here for improved diagnostics.
16177         Don't use op_as_text.  Detect bad ':' here.
16178         (reduce): Don't detect bad ':' here.
16179         (op_as_text): Remove.
16180         * cpphash.h (_cpp_test_assertion): Change prototype.
16181         * cpplib.c (_cpp_test_assertion): Change prototype.
16183 2002-04-28  Richard Henderson  <rth@redhat.com>
16185         PR c/5154
16186         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
16187         (ggc_mark_rtx_children): New.
16189 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16191         PR target/6496
16192         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
16193         after call peepholes for UltraSPARC.
16194         (call + jump 64-bit peepholes): Remove.
16196 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16198         PR c/6497
16199         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
16200         result as temporary value.
16202 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16204         PR c++/6396
16205         * toplev.c (rest_of_compilation): Only run regrename and copy
16206         propagation if optimizing.
16208 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
16210         PR optimization/6475
16211         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
16212         register of REGNO_DECL (i).
16213         * Makefile.in (reload1.o): Add $(TREE_H).
16215 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
16217         * cppexp.c (lex): Update to use state.skip_eval.
16218         (struct op): Remove prio and flags members.
16219         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
16220         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
16221         (LEFT_ASSOC): New macro.
16222         (optab): New table of operator priorities and flags.
16223         (SHIFT): Update.
16224         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
16225         malloc-ed parser stack.
16226         (reduce): New; reduce the operator stack.
16227         (_cpp_expand_op_stack): Expand the operator stack as necessary.
16228         * cpphash.h (struct op): Predeclare.
16229         (struct cpp_reader): New members op_stack, op_limit.
16230         (struct lexer_state): New member skip_eval.
16231         (_cpp_parse_expr): Update.
16232         (_cpp_expand_op_stack): New.
16233         * cpplib.c (do_if): Update.
16234         * cppinit.c (cpp_create_reader): Create op stack.
16235         (cpp_destroy): And destroy it.
16236         * cpplib.h (CPP_LAST_CPP_OP): Correct.
16237         (TTYPE_TABLE): Correct.
16239 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
16241         PR c/6343
16242         * c-decl.c (duplicate_decls): Call merge_weak.
16243         * c-pragma.c (apply_pragma_weak): Warn about misuse.
16244         * output.h (merge_weak): Prototype merge_weak.
16245         * varasm.c (merge_weak): New function.
16246         (declare_weak): Make sure we don't give an error on VAR_DECLs.
16247         Mark RTL with SYMBOL_REF_WEAK.
16249 2002-04-27  Kurt Garloff <garloff@suse.de>
16251         * tree-inline.c (inlinable_function_p): Improve heuristics
16252         by using a smoother function to cut down allowable inlinable size.
16253         * param.def: Add parameters max-inline-insns-single,
16254         max-inline-slope, min-inline-insns that determine the exact
16255         shape of the above function.
16256         * param.h: Likewise.
16258 2002-04-26  Richard Henderson  <rth@redhat.com>
16260         * c-parse.in (malloced_yyss, malloced_yyvs): New.
16261         (yyoverflow): Re-add.  Set them.
16262         (free_parser_stacks): New.
16263         * c-common.h: Declare it.
16264         * c-lex.c (c_common_parse_file): Call it.
16266 2002-04-26  Richard Henderson  <rth@redhat.com>
16268         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
16269         for fallthru search.
16271 2002-04-26  Eric Christopher  <echristo@redhat.com>
16273         PR optimization/3700
16274         * config/mips/mips.c (mips_issue_rate): Define.  New function.
16275         (TARGET_SCHED_ISSUE_RATE): Use.
16277 2002-04-25  David S. Miller  <davem@redhat.com>
16279         PR target/6422
16280         * reorg.c (optimize_skip): Do not allow exception causing
16281         instructions to be considered for delay slots.
16282         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
16283         (relax_delay_slots): Do not try to consider exception causing
16284         instructions as redundant.
16286 2002-04-26  Richard Henderson  <rth@redhat.com>
16288         PR c/5225
16289         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
16291 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
16293         PR bootstrap/6445
16294         * config/i386/i386.md (untyped_call): Return the value in a float
16295         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
16296         TARGET_80387.
16298 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
16300         * tree.c (tree_int_cst_lt): Compare constants whose types differ
16301         in unsigned-ness correctly.
16303 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16305         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
16306         portable runtime model.
16308 2002-04-26  Richard Henderson  <rth@redhat.com>
16310         * c-parse.in (yyoverflow): Revert.
16312 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
16313             Richard Henderson  <rth@redhat.com>
16315         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
16316         result as temporary value.
16318 2002-04-26  Richard Henderson  <rth@redhat.com>
16320         PR c/3581
16321         * c-common.c (fix_string_type): Split out of ...
16322         (combine_strings): ... here.  Take a varray, not a tree list.
16323         (c_expand_builtin_printf): Use fix_string_type.
16324         * c-common.h: Update decls.
16325         * c-parse.in (string): Remove.  Update all uses to use STRING
16326         instead, and not call combine_strings.
16327         (yylexstring): New.
16328         (_yylex): Use it.
16329         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
16330         (build_asm_stmt): Likewise.
16331         * objc/objc-act.c (my_build_string): Use fix_string_type.
16332         (build_objc_string_object): Build varray for combine_strings.
16334 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
16336         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
16337         x86-64.
16339 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
16341         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
16342         (HAVE_NO_R_OPERAND): Remove.
16343         (HAVE_VALUE): Remove.
16344         (op_to_prio): Update.
16345         (UNARY): Don't alter flags.
16346         (_cpp_parse_expr): want_value used to indicate whether
16347         a number or unary operator is expected next.  Distinguish
16348         unary and binary +/-.
16349         (op_as_text): Update for unary operators.
16351 2002-04-25  Richard Henderson  <rth@redhat.com>
16353         PR c/2161
16354         * c-parse.in (yyoverflow): New.
16356 2002-04-25  Richard Henderson  <rth@redhat.com>
16358         PR c/2098
16359         * c-common.c (shorten_compare): Simplfy conditions leading to
16360         the generation of a warning.
16362 2002-04-25  Richard Henderson  <rth@redhat.com>
16364         PR c/2035
16365         * expmed.c (extract_bit_field): Fall through to generic code rather
16366         than aborting on subreg special case.
16368 2002-04-25  David S. Miller  <davem@redhat.com>
16370         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
16371         for DECL being NULL.
16373 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
16375         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
16377 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
16379         * c-decl.c (grokdeclarator): Remove outdated ??? note
16380         on invalid declaration of flexible array members.
16382 2002-04-25  Richard Henderson  <rth@redhat.com>
16384         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
16386 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
16388         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
16389         needed by the compiler, even if they are used as global regs.
16391 2002-04-25  Matt Hiller  <hiller@redhat.com>
16393         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
16394         functions.
16395         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
16396         of the corresponding functions.
16397         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
16398         New prototypes.
16400 2002-04-25  Matt Hiller  <hiller@redhat.com>
16402         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
16404         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
16405         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
16406         registers, adjust comment accordingly.
16407         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
16408         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
16409         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
16410         for coprocessor registers.
16411         (ADDITIONAL_REGISTER_NAMES): Include
16412         ALL_COP_ADDITIONAL_REGISTER_NAMES.
16414         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
16415         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
16416         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
16417         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
16418         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
16420         (mips_char_to_class): Adjust comment to include coprocessor
16421         constraint letters.
16423         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
16424         New functions.
16425         (mips_reg_names, mips_regno_to_class): Include coprocessor
16426         information.
16427         (mips_sw_reg_names): Ditto, make non-static.
16428         (mips_move_1word): Handle moves to and from coprocessor registers.
16429         (mips_move_2words): Handle moves to and from coprocessor
16430         registers.
16431         (mips_class_max_nregs, mips_register_move_cost): Handle
16432         coprocessor register classes.
16433         (override_options): Initialize mips_char_to_class and
16434         mips_hard_regno_mode_ok properly for coprocessor registers.
16436         * config/mips/mips.md (movdi_internal, movdi_internal2,
16437         movsi_internal1, movsi_internal2): Add constraint-sets for
16438         coprocessor registers.
16439         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
16440         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
16441         isn't mips.
16442         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
16443         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
16444         isn't mips.
16445         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
16446         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
16447         isn't mips.
16448         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
16449         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
16450         isn't mips.
16452         * doc/tm.texi: Document feature.
16454 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16456         * integrate.c (function_attribute_inlinable_p): Simplify.
16457         Check the table pointer is not NULL.
16459 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
16461         * doc/c-tree.texi: Fix typo in introduction.
16463 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
16465         * c-common.h (c_common_parse_file): Update.
16466         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16467         * c-lex.c (YYDEBUG): Get from c-lex.h.
16468         (c_common_parse_file): Update.
16469         * c-lex.h (YYDEBUG, yydebug): New.
16470         * c-parse.in (YYDEBUG): Get from c-lex.h.
16471         (c_set_yydebug): Remove.
16472         * c-tree.h (c_set_yydebug): Remove.
16473         * langhooks-def.h (lhd_do_nothing_i): New.
16474         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
16475         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
16476         * langhooks.c  (lhd_do_nothing_i): New.
16477         (lhd_set_yydebug): Remove.
16478         * langhooks.h (struct lang_hooks): Update.
16479         * toplev.c (set_yydebug): New.
16480         (compile_file): Update call to parse_file hook.
16481         (decode_d_option): Update.
16482 objc:
16483         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
16485 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
16487         * loop.c (load_mems): Don't change the interface of called functions.
16489         * calls.c (expand_call): Take current_function_pretend_args_size
16490         into account when setting argblock for sibcalls.
16492 2002-04-24  Matt Hiller  <hiller@redhat.com>
16494         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
16495         * c-lex.c: Ditto.
16497         * cpplex.c (skip_line_comment): Process comment one multibyte
16498         character at a time rather than one char at a time, if
16499         appropriate.
16500         (parse_string): Process string one multibyte character at a time
16501         rather than one char at a time, if appropriate.
16502         * c-lex.c (lex_string): Lex and copy multibyte strings
16503         appropriately.
16504         * cpplib.h (cppchar_t): Change to unsigned.
16506 2002-04-24  Richard Henderson  <rth@redhat.com>
16508         PR c/3467
16509         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
16510         for c99.
16512 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
16514         * sh.c (sh_va_arg): If argument was passed by reference,
16515         dereference the pointer.
16517         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
16519         * sh.md (divsi3_i4_media): Use match_operand for input values
16520         rather than hard registers.
16521         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
16522         unnecessarily through hard registers.  Keep copies of pseudo
16523         registers outside of the libcall sequence.
16525         * sh.md (casesi_shift_media): Add modes.
16527         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
16528         values in memory.
16530 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
16532         * attribs.c (c_common_attribute_table): Move table and handlers
16533         to c-common.c.
16534         (format_attribute_table, lang_attribute_table,
16535         lang_attribute_common): Remove.
16536         (init_attributes): Replace NULL pointers with pointers to the
16537         empty table.
16538         (handle_packed_attribute, handle_nocommon_attribute,
16539         handle_common_attribute, handle_noreturn_attribute,
16540         handle_noinline_attribute, handle_always_inline_attribute,
16541         handle_used_attribute, handle_unused_attribute,
16542         handle_const_attribute, handle_transparent_union_attribute,
16543         handle_constructor_attribute, handle_destructor_attribute,
16544         handle_mode_attribute, handle_section_attribute,
16545         handle_aligned_attribute, handle_weak_attribute,
16546         handle_alias_attribute, handle_visibility_attribute,
16547         handle_no_instrument_function_attribute, handle_malloc_attribute,
16548         handle_no_limit_stack_attribute, handle_pure_attribute,
16549         handle_deprecated_attribute, handle_vector_size_attribute,
16550         vector_size_helper): Move to c-common.c.
16551         * c-common.c (c_common_attribute_table,
16552         handle_packed_attribute, handle_nocommon_attribute,
16553         handle_common_attribute, handle_noreturn_attribute,
16554         handle_noinline_attribute, handle_always_inline_attribute,
16555         handle_used_attribute, handle_unused_attribute,
16556         handle_const_attribute, handle_transparent_union_attribute,
16557         handle_constructor_attribute, handle_destructor_attribute,
16558         handle_mode_attribute, handle_section_attribute,
16559         handle_aligned_attribute, handle_weak_attribute,
16560         handle_alias_attribute, handle_visibility_attribute,
16561         handle_no_instrument_function_attribute, handle_malloc_attribute,
16562         handle_no_limit_stack_attribute, handle_pure_attribute,
16563         handle_deprecated_attribute, handle_vector_size_attribute,
16564         vector_size_helper): Move from attribs.c.
16565         * c-common.h (c_common_attribute_table,
16566         c_common_format_attribute_table): New.
16567         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
16568         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
16569         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
16570         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
16571         (LANG_HOOKS_INITIALIZER): Update.
16572         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
16573         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
16574         * target.h: Update comment.
16575         * tree.c (default_target_attribute_table): Remove.
16576         * tree.h (default_target_attribute_table, format_attribute_table,
16577         lang_attribute_table, lang_attribute_common): Remove.
16578 objc:
16579         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
16580         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
16582 2002-04-24  Jason Merrill  <jason@redhat.com>
16584         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
16585         * dwarf2out.c (dwarf_attr_name): Support it.
16586         (gen_array_type_die): Emit it.
16587         (lookup_type_die): No special handling for VECTOR_TYPE.
16588         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
16590 2002-04-24  Richard Henderson  <rth@redhat.com>
16592         * config/mips/mips.md (movdi_usd): Renumber.
16594 2002-04-24  David S. Miller  <davem@redhat.com>
16596         PR target/6420
16597         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
16598         32-bit Sparc and current_function_returns_struct is true.
16600 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
16602         * loop.c (canonicalize_condition): Use gen_int_mode.
16604 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
16606         * config/rs6000/altivec.h: Cleanup file.  Add non individual
16607         variants.
16608         (vec_vaddubm): New.
16609         (vec_vadduhm): New.
16610         (vec_vadduwm): New.
16611         (vec_vaddfp): New.
16612         (vec_vaddcuw): New.
16613         (vec_vaddubs): New.
16614         (vec_vaddsbs): New.
16615         (vec_vadduhs): New.
16616         (vec_vadduws): New.
16617         (vec_vaddsws): New.
16618         (vec_vand): New.
16619         (vec_vandc): New.
16620         (vec_vavgub): New.
16621         (vec_vavgsb): New.
16622         (vec_vavguh): New.
16623         (vec_vavgsh): New.
16624         (vec_vavguw): New.
16625         (vec_vavgsw): New.
16626         (vec_vrfip): New.
16627         (vec_vcmpbfp): New.
16628         (vec_vcmpequb): New.
16629         (vec_vcmpequh): New.
16630         (vec_vcmpequw): New.
16631         (vec_vcmpeqfp): New.
16632         (vec_vcmpgefp): New.
16633         (vec_vcmpgtub): New.
16634         (vec_vcmpgtsb): New.
16635         (vec_vcmpgtuh): New.
16636         (vec_vcmpgtsh): New.
16637         (vec_vcmpgtuw): New.
16638         (vec_vcmpgtsw): New.
16639         (vec_vcmpgtfp): New.
16640         (vec_vcmpgefp): New.
16641         (vec_vcfux): New.
16642         (vec_vcfsx): New.
16643         (vec_vctsxs): New.
16644         (vec_vctuxs): New.
16645         (vec_vexptefp): New.
16646         (vec_vrfim): New.
16647         (vec_lvx): New.
16648         (vec_lvebx): New.
16649         (vec_lvehx): New.
16650         (vec_lde): Add vector float variant.
16651         (vec_lvewx): New.
16652         (vec_lvxl): New.
16653         (vec_vlogefp): New.
16654         (vec_vmaddfp): New.
16655         (vec_vmhaddshs): New.
16656         (vec_vmaxub): New.
16657         (vec_vmaxsb): New.
16658         (vec_vmaxuh): New.
16659         (vec_vmaxsh): New.
16660         (vec_vmaxuw): New.
16661         (vec_vmaxsw): New.
16662         (vec_vmaxsw): New.
16663         (vec_vmaxfp): New.
16664         (vec_vmrghb): New.
16665         (vec_vmrghh): New.
16666         (vec_vmrghw): New.
16667         (vec_vmrglb): New.
16668         (vec_vmrglh): New.
16669         (vec_vmrglw): New.
16670         (vec_vminub): New.
16671         (vec_vminsb): New.
16672         (vec_vminuh): New.
16673         (vec_vminsh): New.
16674         (vec_vminuw): New.
16675         (vec_vminsw): New.
16676         (vec_vminfp): New.
16677         (vec_vmladduhm): New.
16678         (vec_vmhraddshs): New.
16679         (vec_msumubm): New.
16680         (vec_vmsummbm): New.
16681         (vec_vmsumuhm): New.
16682         (vec_vmsumshm): New.
16683         (vec_vmsumuhs): New.
16684         (vec_vmsumshs): New.
16685         (vec_vmuleub): New.
16686         (vec_vmulesb): New.
16687         (vec_vmuleuh): New.
16688         (vec_vmulesh): New.
16689         (vec_vmuloub): New.
16690         (vec_mulosb): New.
16691         (vec_vmulouh): New.
16692         (vec_vmulosh): New.
16693         (vec_vnmsubfp): New.
16694         (vec_vnor): New.
16695         (vec_vor): New.
16696         (vec_vpkuhum): New.
16697         (vec_vpkuwum): New.
16698         (vec_vpkpx): New.
16699         (vec_vpkuhus): New.
16700         (vec_vpkshss): New.
16701         (vec_vpkuwus): New.
16702         (vec_vpkswss): New.
16703         (vec_vpkshus): New.
16704         (vec_vpkswus): New.
16705         (vec_vperm): New.
16706         (vec_vrefp): New.
16707         (vec_vrlb): New.
16708         (vec_vrlh): New.
16709         (vec_vrlw): New.
16710         (vec_vrfin): New.
16711         (vec_vrsqrtefp): New.
16712         (vec_vsel): New.
16713         (vec_vslb): New.
16714         (vec_vslh): New.
16715         (vec_vslw): New.
16716         (vec_vsldoi): New.
16717         (vec_vsl): New.
16718         (vec_vslo): New.
16719         (vec_vspltb): New.
16720         (vec_vsplth): New.
16721         (vec_vspltw): New.
16722         (vec_vspltisb): New.
16723         (vec_vspltish): New.
16724         (vec_vspltisw): New.
16725         (vec_vsrb): New.
16726         (vec_vsrh): New.
16727         (vec_vsrw): New.
16728         (vec_vsrab): New.
16729         (vec_vsrah): New.
16730         (vec_vsraw): New.
16731         (vec_vsr): New.
16732         (vec_vsro): New.
16733         (vec_stvx): New.
16734         (vec_stvebx): New.
16735         (vec_stvehx): New.
16736         (vec_stvewx): New.
16737         (vec_stvxl): New.
16738         (vec_vsububm): New.
16739         (vec_vsubuhm): New.
16740         (vec_vsubuwm): New.
16741         (vec_vsubfp): New.
16742         (vec_vsubcuw): New.
16743         (vec_vsububs): New.
16744         (vec_vsubsbs): New.
16745         (vec_vsubuhs): New.
16746         (vec_vsubshs): New.
16747         (vec_vsubuws): New.
16748         (vec_vsubsws): New.
16749         (vec_vsum4ubs): New.
16750         (vec_vsum4sbs): New.
16751         (vec_vsum4shs): New.
16752         (vec_vsum2sws): New.
16753         (vec_vsumsws): New.
16754         (vec_vrfiz): New.
16755         (vec_vupkhsb): New.
16756         (vec_vupkhpx): New.
16757         (vec_vupkhsh): New.
16758         (vec_vupklsb): New.
16759         (vec_vupklpx): New.
16760         (vec_vupklsh): New.
16761         (vec_vxor): New.
16763 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
16765         PR c/5430
16766         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
16767         added literals from substracted literals.
16768         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
16769         (fold) [associate]: Preserve MINUS_EXPR if needed.
16771 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
16773         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
16774         are obsoleted.
16776 2002-04-23  Tom Tromey  <tromey@redhat.com>
16778         * gcc.c: Added --resource.  For PR java/6314.
16780 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
16782         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
16783         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
16784         these libraries.
16786 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
16788         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
16790 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
16792         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
16793         workaround.
16794         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
16795         (ix86_expand_clrstr): Fix typo.
16796         * loop.c (gen_load_of_final_value): New.
16797         (loop_givs_rescan, strength_reduce, check_dbra_loop):
16798         Use it.
16800 2002-04-23  Roger Sayle  <roger@eyesopen.com>
16802         * builtins.c (builtin_memset_gen_str): New function.
16803         (expand_builtin_memset): Optimize the case of constant length, but
16804         unknown value.
16806 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
16808         * config/rs6000/altivec.h (vec_step): Remove extraneous
16809         parentheses.
16810         (vec_ctu): Cast return.
16812 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
16814         PR target/6413
16815         * function.h: (struct function): Add profile_label_no field.
16816         (current_function_profile_label_no): Define.
16817         * function.c: (profile_label_no): New static var.
16818         (expand_function_start): Increment it, and copy to
16819         current_function_profile_label_no.
16820         * output.h (profile_label_no): Delete.
16821         * final.c (profile_label_no): Delete.
16822         (profile_function): Use current_function_profile_label_no.
16823         (final_end_function): Don't increment profile_label_no here.
16824         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
16825         profile_label_no with current_function_profile_label_no.
16826         * config/pa/pa.c (current_function_number): Delete.
16827         (pa_output_function_prologue): Don't output profile label here.
16828         (hppa_profile_hook): Use label_no param rather than
16829         current_function_number.
16830         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
16831         * config/pa/pa.h: .. here.
16832         (FUNCTION_PROFILER): Output profile label here.
16834 2002-04-22  Eric Christopher  <echristo@redhat.com>
16836         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
16837         patch of 2002-04-09 due to binutils issues.
16838         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
16840 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
16842         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
16843         constraint to 'o' for m=r and r=m alternatives.
16844         ("*movv8hi_internal1"): Same.
16845         ("*movv16qi_internal1"): Same.
16846         ("*movv4sf_internal1"): Same.
16848 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
16850         * rtl.h (RTX_FLAG): New macro.
16851         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
16852         * final.c (alter_subreg): Use macro to access rtx flag.
16853         * integrate.c (copy_rtx_and_substitute): Use new access macro.
16854         * print-rtl.c (print_rtx): Use new access macro.
16856         * cse.c (insert): Check rtx code before accessing flag.
16858         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
16859         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
16860         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
16861         convert_const_symbol_ref, make_canonical, make_alternative_compare,
16862         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
16863         simplify_test_exp, optimize_attrs, simplify_by_exploding,
16864         find_and_mark_used_attributes, unmark_used_attributes,
16865         add_values_to_cover, simplify_with_current_value,
16866         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
16867         copy_rtx_unchanging, main): Use new access macros.
16869 2002-04-22  Tom Rix  <trix@redhat.com>
16871         * expmed.c (init_expmed): Generate shifted constant once.
16873 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
16875         * c-lex.c (lex_charconst): Call convert to get constant in
16876         proper type; don't just smash the type field.
16877         Fixes PR c/6300.
16879         * config.gcc: Add list of obsolete configurations.  Disallow
16880         building these without --enable-obsolete.
16881         * doc/install.texi: Document --enable-obsolete and obsoletion
16882         policy.  Mention obsoletion of individual targets in
16883         appropriate places.
16885 2002-04-22  Richard Henderson  <rth@redhat.com>
16887         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
16889 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
16891         PR f/6138.
16892         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
16893         (walk_fixup_memory_subreg): Likewise.
16894         (fixup_var_refs_insn): Adjust accordingly.
16895         (fixup_var_refs_1): Likewise.
16897 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
16899         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
16900         LIBPATH_ARCH64_SPEC): Define.
16901         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
16902         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
16903         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
16904         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
16906 2002-04-22      Joel Sherrill <joel@OARcorp.com>
16908         * gthr-rtems.h: Correct prototypes to remove warnings.
16910 2002-04-22  Richard Henderson  <rth@redhat.com>
16912         PR c/6344
16913         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
16915         * gcse.c (free_insn_expr_list_list): New.
16916         (clear_modify_mem_tables): Use it.  Fix bit set usage.
16917         (canon_list_insert): Use EXPR_LISTs for expressions.
16918         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
16920 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
16922         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
16923         file change and include code to _cpp_pop_buffer.
16924         * cpphash.h (struct pending_option): Predeclare.
16925         (struct cpp_reader): New member next_include_file.
16926         (_cpp_pop_file_buffer): Update.
16927         (_cpp_push_next_buffer): Update, rename.
16928         * cppinit.c (cpp_destroy): Free include chain and pending here.
16929         (cpp_finish_options): Simplify.
16930         (_cpp_push_next_buffer): Rename and clean up.
16931         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
16932         Clarify.
16933         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
16935 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
16937         * config/rs6000/altivec.h (vec_xor): Add variant for both args
16938         being vector signed int.
16939         (vec_andc): Same.
16940         (vec_xor): Add variant for both args being vector signed char.
16941         Remove redundant variant.
16942         (vec_andc): Same.
16944 2002-04-21  David S. Miller  <davem@redhat.com>
16946         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
16947         compare mode in output RTL.
16949 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
16951         * config/rs6000/rs6000.c (rs6000_override_options): Correct
16952         style and formatting of previous patch.
16954 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
16956         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
16957         flag_pic for ABI_AIX.
16959 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
16961         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
16962         * cppfiles.c (read_include_file): Similarly.
16963         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
16964         uxstrdup ustrchr, ufputs): Similarly.
16965         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
16966         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
16967         cpp_ideq, parse_identifier, parse_number): Similarly.
16968         * cpplib.c (struct directive, dequote_string, D, run_directive,
16969         cpp_push_buffer): Similarly.
16970         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
16971         _cpp_create_definition, check_trad_stringification,
16972         cpp_macro_definition): Similarly.
16974 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
16976         * cppmacro.c (funlike_invocation_p): Don't step back
16977         over CPP_EOF.
16979 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
16981         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
16982         labelno.
16984 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
16986         * doc/invoke.texi: Remove Chill references.
16987         * doc/gcc.texi: Update last modified date.
16989 2002-04-20  Kazu Hirata  <kazu@hxi.com>
16991         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
16992         push and pop.  Replace add.l with add.w.
16994 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16996         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
16997         multiply instructions for H8/300H case.
16999 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
17001         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
17002         Bum three instructions from each routine.
17004 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
17006         * Makefile.in: Update.
17007         * decl.c (push_c_function_context, pop_c_function_context,
17008         mark_c_function_context): Rename for consistency.
17009         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
17010         * c-tree.h (push_c_function_context, pop_c_function_context,
17011         mark_c_function_context): Rename for consistency.
17012         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17013         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17014         * function.c (init_lang_status, save_lang_status,
17015         restore_lang_status, mark_lang_status, free_lang_status):
17016         Move to langhooks.h.
17017         (push_function_context_to, pop_function_context_from,
17018         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
17019         Update.
17020         * function.h (init_lang_status, save_lang_status,
17021         restore_lang_status, mark_lang_status, free_lang_status):
17022         Move to langhooks.h.
17023         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
17024         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
17025         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
17026         LANG_HOOKS_FUNCTION_INITIALIZER): New.
17027         (LANG_HOOKS_INITIALIZER): Update.
17028         (lhd_do_nothing_f): New.
17029         * langhooks.h (struct lang_hooks_for_functions): New.
17030         (struct lang_hooks): New hooks.
17031         * langhooks.c (lhd_do_nothing_f): New.
17032 objc:
17033         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
17034         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
17036 2002-04-19  David S. Miller  <davem@redhat.com>
17038         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
17039         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
17041 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17043         PR optimization/3756
17044         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
17045         x = ((int) y < 0) ? cst1 : cst2.
17047 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
17049         PR c/6358
17050         * function.c: Reapply patch for c/6358.
17051         (expand_function_end): Copy decl_rtl's mode, not
17052         current_function_return_rtx mode.
17054 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
17056         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
17057         targets.
17059 2002-04-19  Tom Tromey  <tromey@redhat.com>
17061         * doc/install.texi (Specific): Update status of Solaris 2.8.
17062         For PR libgcj/6158.
17064 2002-04-19  Andreas Schwab  <schwab@suse.de>
17066         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
17067         (PUT_REAL): Restore old definition.
17069 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
17070             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17072         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
17073         binutils 2.11.2 and higher generate smaller binaries than Sun's
17074         native tools.
17076 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
17078         PR c++/6352
17079         * toplev.c (rest_of_compilation): Do not defer functions for which
17080         TREE_SYMBOL_REFERENCED has already been set.
17082 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
17084         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
17085         alternative.
17087 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
17089         * builtins.c: Include langhooks.h.
17090         (lang_type_promotes_to): Remove.
17091         (expand_builtin_va_arg): Use new hook.
17092         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
17093         (simple_type_promotes_to): Move to c-typeck.c.
17094         * c-common.h (simple_type_promotes_to): Remove.
17095         * c-decl.c (duplicate_decls, grokdeclarator): Update.
17096         * c-format.c: Include langhooks.h.
17097         (check_format_types): Update.
17098         * c-tree.h (c_type_promotes_to): New.
17099         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
17100         (type_lists_compatible_p): Update.
17101         * langhooks-def.h (lhd_type_promotes_to): New.
17102         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
17103         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17104         * langhooks.c (lhd_type_promotes_to): New.
17105         * langhooks.h (struct lang_hooks_for_types): New hook.
17106         * tree.h (lang_type_promotes_to): Remove.
17107 objc:
17108         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
17110 2002-04-18  Richard Henderson  <rth@redhat.com>
17112         * function.c: Revert patch for c/6358.
17114 2002-04-18  Richard Henderson  <rth@redhat.com>
17116         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
17117         blocks.  Handle multiple references to the TRAP block.  Handle
17118         non-adjacent THEN and OTHER blocks.
17120 2002-04-18  Richard Henderson  <rth@redhat.com>
17122         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
17123         crash with no type for by-mode libcalls.
17125         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
17127 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
17129         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
17130         __xtensa_nonlocal_goto): Use a syscall instructions to flush
17131         the register windows.
17133 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
17135         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
17136         appropriate.  Document need for extended precision even when
17137         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
17138         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
17139         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
17140         instead of relying on later syntax error when REAL_WIDTH > 5.
17141         * real.c: Define NE based only on whether or not we have a
17142         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
17143         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
17144         define GET_REAL and PUT_REAL as simple memcpy operations; no
17145         need to byteswap or round.
17146         Use #error instead of #ifdef-ing out the entire file, for
17147         prompt error detection.
17149         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
17151 2002-04-18  David S. Miller  <davem@redhat.com>
17153         * config/sparc/sparc.h (BRANCH_COST): Define.
17155         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
17156         does it.
17158 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
17160         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
17161         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
17162         propagate_block calls after relaxation loop using new variable
17163         stabilized_prop_flags.
17165 2002-04-18  Richard Henderson  <rth@redhat.com>
17167         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
17168         (ia64_va_arg): Expect variable sized types by reference.
17169         * config/ia64/ia64-protos.h: Update.
17170         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
17171         ia64_function_arg_pass_by_reference.
17173 2002-04-18  Richard Henderson  <rth@redhat.com>
17175         * ifcvt.c: Include except.h.
17176         (block_has_only_trap): Break out from find_cond_trap.
17177         (find_cond_trap): Use it.  Always delete the trap block.
17178         (merge_if_block): Allow then block null.  Be less simplistic about
17179         what insns can end a block.
17180         * Makefile.in (ifcvt.o): Depend on except.h.
17182         * config/ia64/ia64.md (trap, conditional_trap): New.
17184 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17186         PR c/6358
17187         * function.c (assign_parms): Assign hard current_function_return_rtx
17188         register here...
17189         (expand_function_end): ...not here.
17191 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
17193         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17194         * c-tree.h (c_incomplete_type_error): New.
17195         * c-typeck.c (require_complete_type, build_component_ref): Update.
17196         (incomplete_type_error): Rename.
17197         * langhooks-def.h (lhd_incomplete_type_error): New.
17198         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
17199         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
17200         * langhooks.c (lhd_incomplete_type_error): New.
17201         * langhooks.h (struct lang_hooks_for_types): New hook.
17202         * tree.c (size_in_bytes): Use new hook.
17203         * tree.h (incomplete_type_error): Remove.
17204 objc:
17205         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
17207 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
17209         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
17210         TARGET_FLOAT_FORMAT blocks.
17212 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17214         * doc/install.texi (Downloading the source): Do not mention Chill
17215         any longer, but mention Ada.
17216         (Configuration): Do not mention Chill any longer.
17218 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
17220         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
17222 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
17224         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
17225         in last patch.
17227 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17229         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
17230         instead of unsigned_type.
17232 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
17234         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
17235         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
17236         later.
17238 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
17240         * attribs.c (vector_type_node_list): New static variable.
17241         (handle_vector_size_attribute): Use it to avoid generating a
17242         new type node each time we are called.
17244         * combine.c (subst): Avoid trying to make a vector mode subreg of
17245         an integer constant.
17246         (gen_lowpart_for_combine): Likewise.
17248 2002-04-18  Roger Sayle  <roger@eyesopen.com>
17249             Jakub Jelinek  <jakub@redhat.com>
17251         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
17252         for integer constant c (if x has unsigned type or sign bit is not
17253         set in c).  This folds the zero/sign extension into the bit-wise and
17254         operation.
17256 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
17258         PR middle-end/6205
17259         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
17260         otherwise xorps.
17262 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
17264         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
17266 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
17268         * gcc.c (read_specs): Detect and fail if an attempt is made to
17269         rename a spec string to an already existing string.
17271 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
17273         * config/s390/s390.c (legitimize_pic_address): Do not generate
17274         illegal address constant without CONST.
17276 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17278         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
17279         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
17281 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
17283         PR optimization/6305
17284         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
17285         to make sure previous reloads are taken into account.  Generate
17286         better code if one operand is an in-range immediate constant.
17288 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
17290         * doc/install.texi (Building): libgcj requires GNU make.
17292 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
17294         PR bootstrap/6315
17295         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
17296         even if hard quad and register is not floating.
17297         (movtf reg<-mem split): Disallow splitting if hard quad and
17298         register is floating.
17299         (movtf mem<-reg split): Likewise.
17300         * config/sparc/sparc.c (fp_register_operand): New predicate.
17301         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
17303 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
17305         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
17306         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
17307         (unprotoize.o): Ditto.  Build from protoize.c.  Define
17308         UNPROTOIZE on command line.
17309         * protoize.c: Include cppdefault.h.  Delete include_defaults.
17310         (in_system_include_dir): Use cpp_include_defaults (defined in
17311         cppdefault.o).
17312         * unprotoize.c: Delete file.
17314 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
17316         * config/rs6000/altivec.h (vec_ld): Add array variants.
17317         (vec_lde): Same.
17318         (vec_ldl): Same.
17320 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
17321             Aldy Hernandez <aldyh@redhat.com>
17323         * config/rs6000/altivec.h: Define __ALTIVEC__.
17324         (bool): New.
17325         (__pixel): New.
17326         (pixel): New.
17327         (vec_cfux): New.
17328         (vec_vmaddfp): New.
17329         (vec_vsldoi): New.
17330         Add parentheses to all macro arguments.
17332 2002-04-16  Richard Henderson  <rth@redhat.com>
17334         PR c++/6320
17335         * except.c (remove_eh_handler): Insert inner regions at beginning
17336         of sibling chain.  Refactor expressions.
17338 2002-04-16  Richard Henderson  <rth@redhat.com>
17340         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
17341         * config/sparc/sol2-gas-bi.h: New file.
17342         * config.gcc (sparc*-solaris): Add it as needed.
17343         * configure.in (AS_SPARC64_FLAG): Remove check.
17344         * config.in, configure: Regenerate.
17346         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
17348 2002-04-16  Richard Henderson  <rth@redhat.com>
17350         * config/mips/mips.c (override_options): Don't override N32 for
17351         a 64-bit ISA.
17353         PR 6202
17354         * config/mips/mips.md (can_delay): Split out of existing define_delays.
17355         (HILO_delay): Set can_delay false.
17357 2002-04-16  Dale Johannesen <dalej@apple.com>
17359         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
17360         instruction addresses.
17361         (rs6000_output_function_epilogue): Likewise.
17363 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
17365         * c-parse.in (poplevel, compstmt_start,
17366         compstmt_primary_start): Add ending ';', in accordance
17367         with POSIX.
17369 2002-04-16  Richard Henderson  <rth@redhat.com>
17371         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
17372         Adjust tm_file order to get TARGET_DEFAULT set properly.
17373         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
17374         * doc/install.texi (sparc-solaris): Update.
17376 2002-04-16  Dale Johannesen <dalej@apple.com>
17378         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
17379         comparison operands do not match each other or if modes of
17380         conditions do not match result.
17382 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
17384         PR target/6305
17385         * config/s390/s390.md (mulsidi3): Set both subregs of the
17386         multiword register.
17388 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
17390         * config/rs6000/altivec.h (vec_addc): Type check.
17392 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
17394         PR middle-end/6279
17395         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
17397         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
17399 2002-04-15  Richard Henderson  <rth@redhat.com>
17401         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
17402         call_really_used_regs too.
17404 2002-04-15  Richard Henderson  <rth@redhat.com>
17406         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
17408 2002-04-15  David S. Miller  <davem@redhat.com>
17410         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
17411         as being CLOBBERed.
17413 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
17415         PR c/6290
17416         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
17417         CONST_VECTOR is { 0, ... 0 }.
17419 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
17421         * doc/install.texi (Installing GCC: Configuration): Clarify
17422         the only supported ways to configure gcc.
17424 2002-04-15  Roland McGrath  <roland@frob.com>
17426         * config.gcc (alpha*-*-gnu*): New target configuration.
17427         * config/alpha/gnu.h: New file for it.
17428         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
17430 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
17432         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
17433         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
17434         * tree.h (expand_start_stmt_expr): Update prototype.
17435         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
17436         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
17437         on the STMT_EXPR created for the inline function.
17439 2002-04-15  Richard Henderson  <rth@redhat.com>
17441         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
17442         config/i386/linux-aout.h, config/i386/linux-oldld.h,
17443         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
17444         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
17445         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
17446         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
17447         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
17448         Define __gnu_linux__, not gnu_linux.
17449         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
17451 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
17453         Remove Chill front end.
17454         * gcc.c (default_compilers): Remove Chill entries.
17455         * ch: Remove directory.
17456         * doc/frontends.texi: Remove information about Chill.
17457         * doc/sourcebuild.texi: Likewise.
17458         * doc/standards.texi: Likewise.
17460 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
17462         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
17463         (LONGLONG_STANDALONE): Define.
17465 2002-04-15  David S. Miller  <davem@redhat.com>
17467         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
17468         Call emit_library_call with LCT_NORMAL.
17469         (sparc_initialize_trampoline): Use LCT_foo instead of
17470         magic constant in emit_library_call invocations.
17471         (sparc64_initialize_trampoline): Likewise.
17472         (sparc_profile_hook): Likewise.
17473         * config/sparc/sparc.md: Likewise.
17475         * config/sparc/sparc.c (sparc_extra_constraint_check):
17476         Fix type of argument 'c'.
17477         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
17478         Likewise.
17480 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
17482         * diagnostic.h (output_buffer_state): Redefine.
17483         (output_format_decoder): New macro.
17484         (output_prefixing_rule): Likewise.
17485         (output_line_cutoff): Likewise.
17486         (diagnostic_format_decoder): Adjust.
17487         (diagnostic_prefixing_rule): Likewise.
17488         (diagnostic_line_cutoff): Likewise.
17489         (diagnostic_state): Likewise.
17490         (diagnostic_kind_count): Likewise.
17491         (diagnostic_buffer): Now a macro.
17493         * diagnostic.c (diagnostic_buffer): Remove definition.
17494         (output_is_line_wrapping): Adjust.
17495         (set_real_maximum_length): Likewise.
17496         (output_set_maximum_length): Likewise.
17497         (init_output_buffer): Likewise.
17498         (lhd_print_error_function): Likewise.
17499         (output_do_verbatim): Likewise.
17501 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
17503         * cpperror.c (print_location): Don't print include chain
17504         if line == 0.
17505         (cpp_begin_message): Update to use DL_ macros.
17506         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
17507         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
17508         cpp_notice, cpp_notice_from_errno): Remove.
17509         (cpp_error, cpp_error_with_line): Update to take a diagnostic
17510         level.
17511         (cpp_errno): New.
17512         * cppexp.c (CPP_ICE): Remove.
17513         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
17514         lex, integer_overflow, _cpp_parse_expr): Update.
17515         * cppfiles.c (read_include_file, find_include_file,
17516         handle_missing_header, _cpp_read_file, remap_filename): Update.
17517         * cpphash.h (enum error_type): Remove.
17518         (_cpp_begin_message): Update.
17519         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
17520         cpp_handle_option, cpp_post_options): Update.
17521         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
17522         skip_whitespace, parse_identifier, parse_slow, parse_string,
17523         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
17524         cpp_interpret_charconst): Update.
17525         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
17526         lex_macro_node, do_undef, glue_header_name, parse_include,
17527         do_include_common, read_flag, do_line, do_linemarker, do_ident,
17528         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
17529         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
17530         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
17531         _cpp_pop_buffer, do_diagnostic): Update.
17532         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
17533         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
17534         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
17535         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
17536         cpp_notice, cpp_notice_from_errno): Remove.
17537         (cpp_error, cpp_error_with_line): Update to take a diagnostic
17538         level.
17539         (cpp_errno): New.
17540         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
17541         collect_args, enter_macro_context, save_parameter, parse_params,
17542         _cpp_create_definition, check_trad_stringification,
17543         cpp_macro_definition): Update.
17544         * cppmain.c (cpp_preprocess_file): Update.
17545         * fix-header.c (read_scan_file): Update.
17547 2002-04-14  Andreas Schwab  <schwab@suse.de>
17549         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
17551 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
17553         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
17555 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
17557         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
17558         not gnu_hurd.
17560 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
17562         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
17564 2002-04-13      Joel Sherrill <joel@OARcorp.com>
17566         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
17567         sparc-elf and sparc-rtems targets.
17569 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
17571         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
17572         defined, and __gnu_hurd__ wherever __GNU__ is defined.
17573         * arm/linux-elf.h: Likewise.
17574         * cris/aout.h: Likewise.
17575         * cris/linux.h: Likewise.
17576         * i370/linux.h: Likewise.
17577         * i386/gnu.h: Likewise.
17578         * i386/linux-aout.h: Likewise.
17579         * i386/linux-oldld.h: Likewise.
17580         * i386/linux.h: Likewise.
17581         * i386/linux64.h: Likewise.
17582         * ia64/linux.h: Likewise.
17583         * m68k/linux-aout.h: Likewise.
17584         * m68k/linux.h: Likewise.
17585         * mips/linux.h: Likewise.
17586         * pa/pa-linux.h: Likewise.
17587         * pj/linux.h: Likewise.
17588         * rs6000/sysv4.h: Likewise.
17589         * s390/linux.h: Likewise.
17590         * sh/linux.h: Likewise.
17591         * sparc/linux-aout.h: Likewise.
17592         * sparc/linux.h: Likewise.
17593         * sparc/linux64.h: Likewise.
17594         * xtensa/linux.h: Likewise.
17596 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
17598         * stmt.c (check_unique_operand_names): Expect operand names to
17599         be strings rather than identifiers.  Use simple_cst_equal to
17600         compare them.
17601         (resolve_operand_name_1): Make same identifier to string change here.
17602         * c-parse.in (asm_operand): Convert a named operand into a string.
17603         * cp/parse.y (asm_operand): Likewise.
17605 2002-04-13  Andreas Schwab  <schwab@suse.de>
17607         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
17609 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
17611         Revert these changes:
17613         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
17615         PR c++/5571
17616         * stor-layout.c (layout_decl): Reset the RTL for the decl.
17618 2002-04-12  Richard Henderson  <rth@redhat.com>
17620         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
17621         (sparc*-*-solaris): Clean up header files.
17622         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
17623         and plan on generating 64-bit code.
17624         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
17625         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
17626         * config/sparc/sol2-sld-64.h: Rename ...
17627         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
17628         for AS_SPARC64_FLAG not defined.
17629         * config/sparc/sol2-gld-bi.h: New.
17630         * config/sparc/sol2-sld.h: Remove.
17631         * config/sparc/sol26-sld.h: New.
17632         * config/sparc/sol2.h: Tidy comments.
17633         * doc/install.texi: Document sparc-solaris configury changes.
17635 2002-04-12  Richard Henderson  <rth@redhat.com>
17637         * recog.c (offsettable_address_p): Match the logic in adjust_address.
17639         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
17640         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
17642 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17644         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
17646 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
17648         * pa.c (pa_can_combine_p): Call extract_insn before calling
17649         constrain_operands.
17651 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
17653         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
17654         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
17655         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
17656         (CPP_PREDEFINES): Handle __declspec.
17657         * config/i386/t-interix (USER_H): Remove.
17659 2002-04-12  DJ Delorie  <dj@redhat.com>
17661         * integrate.c (compare_blocks): Make comparisons safe for when
17662         sizeof(int) < sizeof(char *).
17663         (find_block): Likewise.
17665 2002-04-12  Jan Hubicka  <jh@suse.cz>
17666             David Edelsohn  <edelsohn@gnu.org>
17668         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
17669         registers.
17670         (symbol_ref_operand): New.
17671         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
17672         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
17674 2002-04-12  Andreas Schwab  <schwab@suse.de>
17676         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
17677         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
17678         overrides the definition in config/svr4.h.
17680 2002-04-12      Eric Norum <eric.norum@usask.ca>
17682         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
17683         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
17684         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
17685         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
17686         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
17687         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
17688         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
17689         definitions to config/rtems.h and make the targets more similar.
17691 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17693         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
17694         POINTERS_EXTEND_UNSIGNED.
17695         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
17696         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
17698         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
17699         not specified.
17701 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
17703         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
17704         depends on TARGET_SHMEDIA, not TARGET_SH5.
17706 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
17708         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
17709         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
17711 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
17713         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
17714         no r0 clobber.
17716 2002-04-12  Andreas Schwab  <schwab@suse.de>
17718         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
17720 2002-04-12  Richard Henderson  <rth@redhat.com>
17722         PR bootstrap/4191
17723         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
17725         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
17726         modes spanning multiple hard regs.
17728         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
17730 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17732         * pa.c (pa_output_function_prologue): Don't accumulate the total
17733         number of code bytes when using TARGET_64BIT, or gas, SOM and not
17734         the portable runtime.
17735         (output_deferred_plabels): Handle 64bit plabels.
17736         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
17737         generating pic code using the GAS assembler for object formats that
17738         are not SOM (ie., ELF32 and ELF64).
17739         (output_millicode_call): Check attribute type if attribute length is 28.
17740         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
17741         dbr_sequence_length once.
17742         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
17743         dbr_sequence_length once.
17744         * pa.h (TARGET_SOM): Define if not defined.
17745         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
17746         with GAS and not SOM.
17747         (jump, call_internal_reg, call_value_internal_reg): Likewise.
17748         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
17750 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17752         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
17753         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
17754         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
17755         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
17756         elfos.h and dbxelf.h values are fine now.
17757         * config/i386/freebsd.h, config/alpha/freebsd.h
17758         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
17760 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17762         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
17763         or set Acpu or Amachine.  Reformat.
17764         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17765         define.
17766         (LINK_SPEC): Do not need to undef.
17767         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
17768         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
17769         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17770         define.
17771         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
17772         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
17773         (LINK_SPEC): Do not need to undef.
17774         (DONT_USE_BUILTIN_SETJMP): Do not define.
17775         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
17776         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
17777         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
17778         Remove trailing spaces.
17779         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
17780         __ELF__, or set Acpu or Amachine.  Reformat.
17781         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
17782         define.
17784 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17786         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
17787         all other *-*-freebsd* targets.
17789 2002-04-11  Richard Henderson  <rth@redhat.com>
17791         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
17793 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
17795         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
17796         Include {cpu}/{cpu}.h thru tm_file.
17797         (alpha*-*-linux*ecoff): Remove target.
17798         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
17799         (LINK_SPEC): Remove, is not OS independent.
17800         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
17801         (LINK_SPEC): Do not need to #undef any longer.
17802         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
17803         any longer.
17804         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
17805         __ELF__.
17806         (LINK_SPEC): Moved here from alpha/elf.h.
17807         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
17808         SUB_CPP_PREDEFINES.
17809         * config/alpha/linux-ecoff.h: Remove.
17810         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
17811         (CPP_SPEC): Define _POSIX_SOURCE as needed.
17812         (CPP_SUBTARGET_SPEC): Do not define.
17813         (LINK_SPEC): Do not need to #undef any longer.
17814         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
17815         * config/alpha/vms.h: Likewise.
17817 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
17819         * doc/extend.texi: Remove old claim that typedefs cannot have
17820         an alignment attribute.
17822 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
17824         PR optimization/6177
17825         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
17826         bitpos is 0 and bitsize CONCAT size.
17828 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
17830         PR c/6223
17831         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
17833 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
17835         * config/alpha/freebsd.h: Minor reformatting.
17836         (CPP_SPEC): Define ELF and add cpp_subtarget.
17837         (ASM_SPEC): No longer needed.
17839 2002-04-11  Richard Henderson  <rth@redhat.com>
17841         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
17842         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
17843         (dimode mem/zero splitter): New.
17845 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
17847         * config/cris/cris.c (cris_override_options): Tweak error message
17848         for PIC not implemented.
17850         * config/cris/cris.h: Tweak comments related to parameter-passing.
17852         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
17854 2002-04-10  Richard Henderson  <rth@redhat.com>
17856         * except.c (add_ehl_entry): Allow duplicates after landing pad
17857         creation.
17859 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
17861         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
17863 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
17865         * c-decl.c (c_init_decl_processing): Move generation of
17866         decls for g77_integer_type_node and friends from here ...
17867         * c-common.c (c_common_nodes_and_builtins): ... to here.
17869 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
17871         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
17872         is only used as frame pointer when frame_pointer_needed is true.
17874 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
17876         PR target/817
17877         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
17878         for the fact that the pool entry uses two words.
17879         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
17880         1k bytes.
17881         (movdf_soft_insn): Similarly.
17882         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
17883         for the fact that the pool entry uses three words.
17885 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
17887         * config/mips/mips.c (mips_va_arg): When using the struct version
17888         of the EABI va_list, allow arguments in the register save area to
17889         take up less room than a stack argument.
17891 2002-04-10  Richard Henderson  <rth@redhat.com>
17893         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
17894         if EXPAND_INITIALIZER.
17896 2002-04-09  Richard Henderson  <rth@redhat.com>
17898         * config/alpha/alpha.md (movdi_er_maybe_g): New.
17899         * config/alpha/alpha.c (alpha_expand_mov): Use it.
17901 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
17903         PR optimization/6233
17904         * rtlanal.c (pure_call_p): New function.
17905         * rtl.h (pure_call_p): Declare.
17906         * loop.c (prescan_loop): Use it to set has_nonconst_call.
17907         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
17909 2002-04-09  Eric Christopher  <echristo@redhat.com>
17911         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
17912         information to .comm directive.
17914 2002-04-09  Richard Henderson  <rth@redhat.com>
17916         PR c/5078
17917         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
17919 2002-04-09  Richard Henderson  <rth@redhat.com>
17921         * basic-block.h (flow_delete_block_noexpunge): Declare.
17922         (expunge_block_nocompact): Declare.
17923         * cfg.c (expunge_block_nocompact): Split out from ...
17924         (expunge_block): ... here.
17925         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
17926         (flow_delete_block_noexpunge): Split out from ...
17927         (flow_delete_block): ... here.
17928         * cfgcleanup.c (delete_unreachable_blocks): Compact while
17929         removing dead blocks.
17930         * except.c (exception_handler_labels): Remove.
17931         (exception_handler_label_map): New.
17932         (struct eh_region): Add aka member.
17933         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
17934         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
17935         (for_each_eh_label, for_each_eh_label_1): New.
17936         (init_eh): Register exception_handler_label_map.
17937         (free_eh_status): Use free_region.
17938         (find_exception_handler_labels): Use the map, not the list.
17939         (remove_exception_handler_label): Likewise.
17940         (maybe_remove_eh_handler): Likewise.
17941         (remove_eh_handler): Use the region aka bitmap.
17942         * except.h (exception_handler_labels): Remove.
17943         (for_each_eh_label): Declare.
17944         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
17945         * loop.c (invalidate_loops_containing_label): New.
17946         (find_and_verify_loops): Use it.  Use for_each_eh_label.
17947         * sched-rgn.c (is_cfg_nonregular): Use
17948         current_function_has_exception_handlers.
17950 2002-04-09  Richard Henderson  <rth@redhat.com>
17952         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
17953         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
17954         Do not return changed status.
17955         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
17956         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
17957         New functions that do return changed status.
17958         * sbitmap.h: Update decls.
17959         * gcse.c, lcm.c: Use _cg functions as needed.
17961 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
17963         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
17964         (sh64-*-elf*, sh-*-rtemself*): Likewise.
17965         * config/sh/embed_bb.c: New file.
17966         * config/sh/embed-elf.h: New file.
17967         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
17968         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
17969         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
17970         __PTRDIFF_TYPE__ .
17971         (SUBTARGET_CPP_PTR_SPEC): Don't define.
17972         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
17973         Add subtarget_asm_endian_spec.
17974         (ASM_SPEC): Use subtarget_asm_endian_spec.
17975         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
17976         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
17977         (WCHAR_UNSIGNED): Define.
17978         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
17979         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
17980         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
17981         Fix value.
17982         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
17983         (sh_adjust_cost): Likewise.
17984         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
17985         __PTRDIFF_TYPE__ .
17986         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
17987         (WCHAR_TYPE_SIZE): Likewise.
17988         (ASM_SPEC): Use subtarget_asm_endian_spec.
17989         (SH_ELF_WCHAR_TYPE): #undef/ #define.
17990         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
17991         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
17992         (MAX_WCHAR_TYPE_SIZE): Don't #define .
17993         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
17994         (USER_LABEL_PREFIX): Don't #undef /#define .
17995         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
17996         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
17997         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
17998         (ASM_SPEC): Likewise.
17999         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
18000         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
18001         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
18002         (LIB2FUNCS_EXTRA): Define.
18003         * t-sh64 (LIB2FUNCS_EXTRA): Define.
18004         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
18005         (LIB1ASMFUNCS_CACHE): Define.
18006         (LIB2FUNCS_EXTRA): Redefine empty.
18008 2002-04-08  Richard Henderson  <rth@redhat.com>
18010         * reorg.c (get_branch_condition): Use reversed_comparison_code.
18012 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18014         * config/m68hc11/larith.asm (__map_data_section): Fix condition
18015         and optimize for size.
18016         (__do_global_ctors): Fix pointer comparison.
18017         (__do_global_dtors): Likewise.
18019 2002-04-09  David S. Miller  <davem@redhat.com>
18021         * config/sparc/sparc.c (sparc_extra_constraint_check): New
18022         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
18023         allow reloading pseudos.
18024         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
18025         * config/sparc/sparc-protos.h: Declare it.
18027         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
18028         unsigned comparison warning.
18029         (output_restore_regs): Mark leaf_function as unused.
18031 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18033         * expr.c (is_aligning_offset): New function.
18034         (expand_expr, case COMPONENT_EXPR): Call it.
18036 2002-04-08  David S. Miller  <davem@redhat.com>
18038         PR target/6082
18039         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
18041         Make init_priority work on Sparc when using GNU ld.
18042         * config/sparc/linux.h, config/sparc/linux64.h,
18043         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
18044         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
18045         * config/sparc/sol2-gld.h: New file to do the same.
18046         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
18047         sparc/sol2-gld.h to tm_file.
18049         PR optimization/4328
18050         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
18051         * doc/md.texi: Document it.
18052         * config/sparc/sparc.md (movdi_insn_sp64_novis,
18053         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
18054         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
18055         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
18056         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
18058 2002-04-08  Andreas Jaeger  <aj@suse.de>
18060         * stmt.c (expand_asm_operands): Revert last patch from Richard
18061         Henderson.
18063 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18065         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
18066         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
18068 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18070         * doc/contrib.texi (Contributors): Add David O'Brien.
18072 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
18074         * configure.in (auto-build.h): Use target_alias and build_alias
18075         when running configure.
18076         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
18077         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
18078         * configure: Regenerate.
18080 2002-04-07  David S. Miller  <davem@redhat.com>
18082         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
18084 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18086         PR 5933
18087         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
18088         generating 32-bit pic code.
18090 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
18092         * cppinit.c (cpp_create_reader): Initialize
18093         discard_comments_in_macro_exp.
18094         (COMMAND_LINE_OPTIONS): Add "-CC" option.
18095         (cpp_handle_option): Handle "-CC" option.
18096         * cpplex.c (save_comment): If saving a C++ comment in
18097         a directive, convert it to a C comment.
18098         (_cpp_lex_direct): Pass second comment start character to
18099         save_comment to indicate comment type.
18100         * cpplib.c (_cpp_handle_directive): If processing
18101         a "#define" directive and discard_comments_in_macro_exp
18102         is false,  re-enable saving of comments.
18103         (lex_macro_node): If discard_comments_in_macro_exp is false,
18104         discard any comments before the macro identifier.
18105         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
18106         member.
18107         * cppmacro.c (cpp_get_token): If expanding a macro while
18108         processing a directive, discard any comments we might encounter.
18109         (parse_params): If discard_comments_in_macro_exp is false,
18110         ignore comments in the macro parameter list.
18111         * gcc.c (cpp_unique_options): Add "-CC" option.
18112         (option_map): Map "--comments-in-macros" to "-CC".
18113         * doc/cppopts.texi: Document "-CC" option.
18114         * f/lang-specs.h: Add "-CC" option.
18115         * testsuite/gcc.dg/cpp/maccom1.c: New test.
18116         * testsuite/gcc.dg/cpp/maccom2.c: New test.
18117         * testsuite/gcc.dg/cpp/maccom3.c: New test.
18118         * testsuite/gcc.dg/cpp/maccom4.c: New test.
18119         * testsuite/gcc.dg/cpp/maccom5.c: New test.
18120         * testsuite/gcc.dg/cpp/maccom6.c: New test.
18122 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18124         PR middle-end/6180
18125         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
18127 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
18129         PR c++/5571
18130         * stor-layout.c (layout_decl): Reset the RTL for the decl.
18132         PR opt/5120
18133         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
18134         RTX_UNCHANGING_P for the functions arguments when a tail call
18135         is made.
18137 2002-04-06  Jason Merrill  <jason@redhat.com>
18139         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
18140         (parse_options_and_default_flags): Set them appropriately.
18141         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
18143 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
18145         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
18146         here.
18148         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
18149         semicolon.
18151         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
18152         types come in by-reference.  Fix typo in comment.
18154 2002-04-05  David S. Miller  <davem@redhat.com>
18156         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
18157         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
18158         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
18159         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
18161 2002-04-05  David S. Miller  <davem@redhat.com>
18163         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
18164         are not going to emit return instructions, emit at least a nop
18165         for the sake of sane backtraces.
18167 2002-04-05  Richard Henderson  <rth@redhat.com>
18169         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
18171 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
18173         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
18175 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
18177         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
18178         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
18179         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
18181 2002-04-05  Andreas Schwab  <schwab@suse.de>
18183         * c-convert.c: Include c-common.h.
18184         * Makefile.in (c-convert.o): Updated.
18186 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18188         * mklibgcc.in: Use separate libgcc.map for each multilib.
18189         * Makefile.in (distclean): Don't remove libgcc.map here.
18191 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
18193         * Makefile.in (s-mlib): Handle --disable-multilib by separate
18194         genmultilib invocation.
18196 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
18198         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
18199         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
18200         to num_gprs for symmetry.
18201         * config/mips/mips.c: Adjust accordingly.
18203 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
18205         * c-common.c (truthvalue_conversion): Rename, update.
18206         * c-common.h (c_common_truthvalue_conversion): New.
18207         * c-convert.c (convert): Update.
18208         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18209         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
18210         * c-typeck.c (build_binary_op, build_unary_op,
18211         build_conditional_expr): Update.
18212         * fold-const.c (constant_boolean_node, fold): Use langhook.
18213         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
18214         * langhooks.h (struct lang_hooks): New hook.
18215         * stmt.c (expand_decl_cleanup): Use langhook.
18216         * tree.h (truthvalue_conversion): Remove.
18217 objc:
18218         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
18220 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
18222         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
18223         Add rules to make null object file.
18225 2002-04-04  Jim Blandy  <jimb@redhat.com>
18227         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
18228         macro formal parameter names.
18230 2002-04-04  David S. Miller  <davem@redhat.com>
18232         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
18234 2002-04-04  Richard Henderson  <rth@redhat.com>
18236         PR middle-end/5099
18237         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
18238         Support copies into and out of memory.  Don't accept allows_reg
18239         and allows_mem as gospel.
18241 2002-04-04  Richard Henderson  <rth@redhat.com>
18243         PR opt/6165
18244         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
18245         (write_dependence_p): Likewise.
18247 2002-04-04  Richard Henderson  <rth@redhat.com>
18249         * predict.c (estimate_bb_frequencies): Do frequency calculation
18250         with a volatile temporary.
18252 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
18254         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
18256 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18258         PR c++/6119
18259         * final.c (final_start_function): Don't bump profile_label_no here...
18260         (final_end_function): ...but here.
18262 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18264         * config/sparc/sparc.md (pic): New attribute.
18265         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
18266         into stack slots.
18267         (split after do_builtin_setjmp_setup): New.
18269 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18271         PR fortran/6106
18272         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
18273         change.
18275 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
18277         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
18278         UNITS_PER_WORD for zero sized aggregates.
18280 2002-04-03  David S. Miller  <davem@redhat.com>
18282         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
18283         one-character spec for this, just use %(link_gcc_c_sequence).
18285 2002-04-03  David S. Miller  <davem@redhat.com>
18287         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
18288         handling.
18290 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18292         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
18293         (DWARF_FRAME_RETURN_COLUMN): Move.
18294         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
18295         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
18296         * pa.c (except.h, predict.h): Include.
18297         (FRP): Delete.
18298         (store_reg_modify, set_reg_plus_d): Revise prototypes.
18299         (output_ascii): Add cast.
18300         (store_reg_modify): Revise to add frame notes.
18301         (set_reg_plus_d): Likewise.
18302         (compute_frame_size): Include space for eh data registers in frame if
18303         the current function calls eh_return.
18304         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
18305         function calls eh_return.  Save eh data registers if the current
18306         function calls eh_return.  Fix code to add frame notes.  Emit
18307         blockage to prevent insns with frame notes being scheduled in the
18308         delay slot of calls.
18309         (hppa_expand_epilogue): Restore eh data registers and do final stack
18310         adjustment if the current function calls eh_return.  Don't add frame
18311         notes.
18312         (output_call): Revise for change in length of call insn.  Don't do
18313         return pointer adjustment for an unconditional jump in the delay slot
18314         of a call when using frame notes.
18315         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
18316         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
18317         (ARG_POINTER_CFA_OFFSET): Define.
18318         * pa.md (return_external_pic): New pattern.
18319         (prologue): Correct formatting.  Use return_external_pic if current
18320         function calls eh_return.
18321         (call_internal_symref, call_value_internal_symref,
18322         sibcall_internal_symref, sibcall_value_internal_symref): Change default
18323         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
18324         respectively.
18325         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
18327         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
18328         list of targets to check using "nop" insn.
18329         * configure: Rebuilt.
18331 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
18333         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
18335 2002-04-03  David S. Miller  <davem@redhat.com>
18337         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
18338         library sequence passed to the linker.
18339         (LINK_COMMAND_SPEC): Use it.
18340         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
18341         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
18342         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
18344 2002-04-03  Jason Merrill  <jason@redhat.com>
18346         * except.c (struct eh_status): Remove protect_list.
18347         (begin_protect_partials, end_protect_partials): Remove.
18348         (add_partial_entry): Remove.
18349         * except.h: Remove prototypes.
18351         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
18352         expand_decl_cleanup_eh.
18354         PR c++/5636
18355         * tree.h (CLEANUP_EH_ONLY): New macro.
18356         * stmt.c (expand_decl_cleanup_eh): New fn.
18357         (expand_cleanups): Check CLEANUP_EH_ONLY.
18358         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
18359         Use expand_decl_cleanup_eh.
18360         (expand_stmt): Adjust.
18361         * c-common.h: Adjust prototype.
18363 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
18365         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
18366         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
18367         (cris_target_asm_function_epilogue): Ditto.
18368         (cris_initial_frame_pointer_offset): Ditto.
18369         (cris_simple_epilogue): Ditto.
18370         (cris_expand_builtin_va_arg): Variable-size types come in
18371         by-reference.
18373 2002-04-03  David S. Miller  <davem@redhat.com>
18375         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
18376         little-endian.
18377         (set_fast_math): Correct 'fsr' type.
18379 2002-04-03  Richard Henderson  <rth@redhat.com>
18381         PR opt/3569
18382         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
18383         * toplev.c (check_global_declarations): Use it.
18384         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
18385         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18386         (LANG_HOOKS_DECLS): Add it.
18387         * langhooks.c (lhd_warn_unused_global_decl): New.
18388         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18389         * c-objc-common.c (c_warn_unused_global_decl): New.
18390         * c-tree.h (c_warn_unused_global_decl): Declare.
18391         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
18393 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
18395         * langhooks-def.h (lhd_set_decl_assembler_name,
18396         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
18397         (LANG_HOOKS_INITIALIZER): Update.
18398         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
18399         * langhooks.h (struct lang_hooks): New hook.
18400         * tree.c (set_decl_assembler_name): Move to langhooks.c.
18401         (lang_set_decl_assembler_name): Remove.
18402         (init_obstacks): Don't set hook.
18403         (decl_assembler_name): New function.
18404         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
18405         (decl_assembler_name): New.
18406         (lang_set_decl_assembler_name): Remove.
18408 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
18410         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
18411         works properly with .hidden symbols.
18412         * configure: Rebuilt.
18413         * config.in: Rebuilt.
18414         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
18415         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
18416         properly with .hidden symbols.
18418 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
18420         PR middle-end/6102
18421         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
18422         USE argument.
18424 2002-04-03  Richard Henderson  <rth@redhat.com>
18426         PR opt/4120
18427         * sched-rgn.c (sets_likely_spilled): New.
18428         (sets_likely_spilled_1): New.
18429         (add_branch_dependences): Use it.
18431 2002-04-02  Richard Henderson  <rth@redhat.com>
18433         PR opt/4311
18434         * loop.h (LOOP_FIRST_PASS): New.
18435         * loop.c (strength_reduce): Mind it when deciding to unroll.
18436         * toplev.c (rest_of_compilation): Set it.
18438 2002-04-02  David S. Miller  <davem@redhat.com>
18440         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
18441         mems_ok_for_ldd_peep when the order of the loads being examined
18442         is reversed.
18443         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
18444         existing comment to increase comprehension of this situation.
18446 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
18448         * config/sh/sh.md: Don't use union real_extract.
18450 2002-04-02  Richard Henderson  <rth@redhat.com>
18452         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
18454 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
18456         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
18457         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
18458         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
18459         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
18460         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
18461         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
18462         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
18463         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
18464         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
18465         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
18466         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
18467         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
18468         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
18469         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
18470         Include as many configury headers via tm_file as possible.  This
18471         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
18472         * config/openbsd-oldgas.h: New file.
18473         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
18474         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
18475         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
18476         config/i386/i386-coff.h, config/i386/i386-interix.h,
18477         config/i386/iscdbx.h, config/i386/linux-aout.h,
18478         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
18479         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
18480         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
18481         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
18482         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
18483         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
18484         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
18485         config/i386/vxi386.h: Do not directly include configury headers.
18486         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
18487         Directly include configury headers that are no longer automatically
18488         included by the above headers.
18489         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
18490         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
18491         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
18492         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
18493         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
18494         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
18495         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
18496         (TARGET_VERSION): Define.
18497         * config/i386/beos-elf.h, config/i386/freebsd.h,
18498         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
18499         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
18500         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
18501         config/i386/sco5.h, config/i386/sysv4.h
18502         (TARGET_VERSION): Do not need to protect.
18503         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
18504         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
18505         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
18506         config/i386/i386-interix.h, config/i386/linux-aout.h,
18507         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
18508         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
18509         (YES_UNDERSCORES): Do not define - not needed.
18510         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
18511         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
18512         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
18513         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
18514         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
18515         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
18516         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
18517         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
18519 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
18520             Richard Henderson  <rth@redhat.com>
18522         PR c/5484
18523         * function.c (assign_temp): Accept either type or decl argument.
18524         Detect variables whose size is too large to fit into an integer.
18525         * stmt.c (expand_decl): Pass the decl, not the type.
18527 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
18529         * protoize.c: Match include directory usage with cppdefault.c.
18531 2002-04-03  Jeffrey A Law  (law@redhat.com)
18532             Hans-Peter Nilsson  <hp@bitrange.com>
18534         * combine.c (simplify_comparison): Avoid narrowing a comparison
18535         with a paradoxical subreg when doing so would drop signficant bits.
18537 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
18539         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
18540         if POINTERS_EXTEND_UNSIGNED is defined.
18542 2002-04-02  Richard Henderson  <rth@redhat.com>
18544         PR opt/3967
18545         * local-alloc.c (contains_replace_regs): LO_SUM may contain
18546         replace regs.
18548 2002-04-02  Richard Henderson  <rth@redhat.com>
18550         * doc/standards.texi: Document required freestanding libc entry points.
18552 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
18554         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
18555         associated splitter.  Remove MQ constraint.
18556         (ctrdi_internal4): Correct CCmode clobber.
18558 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
18560         * milli64.S ($$dyncall): New function.
18561         * t-linux (LIB1ASMFUNCS): Revise module list.
18562         (LIB1ASMSRC): Use pa/milli64.S.
18564 2002-04-02  Richard Henderson  <rth@redhat.com>
18566         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
18567         rename solaris_sys_varargs_h.
18569 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18571         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
18572         the same mode as its component.
18574 2002-04-02  Richard Henderson  <rth@redhat.com>
18576         PR opt/190
18577         * final.c (this_is_asm_operands): Export.
18578         * output.h (this_is_asm_operands): Declare.
18579         * config/i386/i386.c (print_operand): Error odd asm operands.
18581 2002-04-02  Richard Henderson  <rth@redhat.com>
18583         PR opt/420
18584         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
18586 2002-04-01  Richard Henderson  <rth@redhat.com>
18588         PR target/1538
18589         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
18590         * fixinc/fixincl.x: Rebuild.
18592 2002-04-01  Richard Henderson  <rth@redhat.com>
18594         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
18595         (atomic_alloc, atomic_free): New.
18596         (SIZE, MASK_FOR, PTR_IN): New.
18597         (emergency_reg_state, emergency_reg_state_free): New.
18598         (emergency_labeled_state, emergency_labeled_state_free): New.
18599         (reg_state_alloced, labeled_state_alloced): New.
18600         (alloc_reg_state, free_reg_state): New.
18601         (alloc_label_state, free_label_state, free_label_states): New.
18602         (push, pop, dup_state_stack, free_state_stack): Use them.
18603         (desc_label_state): Likewise.
18604         (uw_frame_state_for): Free label states and state stack.
18605         (uw_update_reg_address): Eliminate warnings.
18607 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
18609         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
18610         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
18612 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18614         * c-decl.c (grokdeclarator): Update.
18615         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
18616         * c-tree.h (c_mark_addressable): New.
18617         * c-typeck.c (default_function_array_conversion, build_unary_op,
18618         build_array_ref, convert_for_assignment): Update.
18619         (mark_addressable): Rename.
18620         * calls.c (try_to_integrate, expand_call): Use langhook.
18621         * expr.c (expand_expr): Use langhook.
18622         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
18623         * langhooks.h (struct lang_hooks): New hook.
18624         * stmt.c (expand_asm_operands): Use langhook.
18625         * tree.h (mark_addressable): Remove.
18626 objc:
18627         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
18629 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
18631         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
18632         in previous change.
18634 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
18636         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
18637         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
18639 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18641         * c-common.c (unsigned_conversion_warning, convert_and_check,
18642         unsigned_type, signed_type, shorten_compare,
18643         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
18644         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
18645         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
18646         New.
18647         * c-decl.c (grokdeclarator): Update.
18648         * c-format.c (check_format_types): Update.
18649         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
18650         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
18651         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
18652         * convert.c (convert_to_integer): Use new hooks.
18653         * expmed.c (make_tree): Use new hooks.
18654         * expr.c (store_expr): Use new hooks.
18655         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
18656         all_ones_mask_p, unextend, fold): Use new hooks.
18657         * langhooks.h (struct lang_hooks_for_types): New hooks.
18658         * tree.h (signed_or_unsigned_type, signed_type,
18659         unsigned_type): Remove.
18660 objc:
18661         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
18662         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
18664 2002-03-31  Richard Henderson  <rth@redhat.com>
18666         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
18667         (desc_frgr_mem): Fix reference to f16-f31.
18669 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18671         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
18672         RTVEC_ELT): Const-ify.
18673         * varray.h (VARRAY_CHECK): Const-ify.
18674         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
18675         ggc_mark_rtvec, ggc_mark): Const-ify.
18677 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
18679         * diagnostic.c: Include langhooks-def.h.
18680         * Makefile.in (diagnostic.o): Update.
18682 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
18684         * c-common.c (c_unsafe_for_reeval): Rename.
18685         * c-common.h (c_unsafe_for_reeval): Rename.
18686         * c-decl.c (finish_incomplete_decl): Rename.
18687         (c_init_decl_processing): Don't set langhook.
18688         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
18689         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
18690         * c-objc-common.c (c_objc_common_init): Don't set langhook.
18691         * c-tree.h (finish_incomplete_decl): Rename.
18692         * langhooks-def.h (lhd_unsafe_for_reeval): New.
18693         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
18694         (LANG_HOOKS_INITIALIZER): Update.
18695         * langhooks.c (lhd_unsafe_For_reeval): New.
18696         * langhooks.h (struct langhooks): New hooks.
18697         * toplev.c (incomplete_decl_finalize_hook): Remove.
18698         (wrapup_global_declarations): Update.
18699         * tree.c (lang_unsafe_for_reeval): Remove.
18700         (unsafe_for_reeval): Update.
18701         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
18702         Remove.
18703 objc:
18704         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
18705         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
18707 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
18709         * diagnostic.c (print_error_function): Remove.
18710         (default_print_error_function): Rename.
18711         (report_error_function): Update.
18712         * diagnostic.h (print_error_function): Remove.
18713         (default_print_error_function): Remove.
18714         * langhooks-def.h (struct diagnostic_context): Predeclare.
18715         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
18716         (LANG_HOOKS_INITIALIZER): Update.
18717         * langhooks.h (struct diagnostic context): Predeclare.
18718         (struct lang_hooks): New hook.
18720 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18722         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
18723         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
18724         !flag_pic.
18725         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
18726         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
18727         of PIC_OFFSET_TABLE_REGNUM thruout.
18728         * config/rs6000/rs6000.md: Likewise.
18729         * config/rs6000/darwin.h: Likewise.
18731 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18733         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
18734         unsigned HOST_WIDE_INT, not unsigned int.
18736 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18738         PR middle-end/6096, middle-end/6098, middle-end/6099
18739         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
18740         CODE_LABELs.
18741         (fill_slots_from_thread): Likewise.
18743 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18745         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
18746         floating fields in float regs.
18747         (function_arg_record_value_2): Likewise.
18749 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
18751         * config/mmix/mmix.md (define_constants): Remove misleading
18752         FIXME.  Add MMIX_fp_rO_OFFSET.
18753         ("nonlocal_goto_receiver"): Don't have stack-frame address of
18754         saved rO as part of the pattern.  Remove FIXME.
18755         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
18756         here, at output-time.
18758 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
18760         PR middle-end/6100
18761         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
18762         REG_BR_PRED.
18763         (output_v9branch): Likewise.
18765 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
18767         * gcc.c: Revert previous patch for now.
18768         * config/i386/djgpp.h: Likewise.
18770 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
18772         * config/mmix/crti.asm (_init): Register _fini with atexit.
18773         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
18775 2002-03-31  Richard Henderson  <rth@redhat.com>
18777         PR target/3997
18778         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
18779         (ASM_OUTPUT_DEF_FROM_DECLS): New.
18781 2002-03-31  Richard Henderson  <rth@redhat.com>
18783         * libgcc2.c (__bb_exit_func): Make static.
18785         * config/alpha/alpha.md (trap): New.
18787 2002-03-31  Richard Henderson  <rth@redhat.com>
18789         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
18790         promoted argument types; build trap.
18791         (expand_builtin_trap): New.
18792         (expand_builtin): Use it.
18793         * stmt.c (expand_nl_goto_receivers): Likewise.
18794         * expr.h (expand_builtin_trap): Declare.
18795         * libfuncs.h (LTI_abort, abort_libfunc): New.
18796         * optabs.c (init_optabs): Init abort_libfunc.
18798 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
18800         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
18801         (LINK_COMMAND_SPEC): ... from here.
18802         (init_gcc_specs): Duplicate it here too, omitting
18803         shared_name in the second copy.
18804         (init_spec): Test for duplicate
18805         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
18807 2002-03-30  David S. Miller  <davem@redhat.com>
18809         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
18810         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
18812 2002-03-30  Roger Sayle <roger@eyesopen.com>
18813             Richard Henderson  <rth@redhat.com>
18815         * regmove.c (combine_stack_adjustments_for_block): Avoid
18816         emitting a stack adjustment of zero bytes.  Let delete_insn
18817         update bb->head.
18819 2002-03-30  Richard Henderson  <rth@redhat.com>
18821         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
18822         (sparc_emitting_epilogue): New.
18823         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
18824         * config/sparc/sparc-protos.h: Update.
18825         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
18826         (TARGET_SWITCHES): Update.
18827         * config/sparc/sparc.md (return): Remove.
18828         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
18829         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
18830         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
18831         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
18832         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
18833         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
18834         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
18835         Remove MASK_EPILOGUE.
18836         * doc/invoke.texi: Update.
18838 2002-03-30  Daniel Berlin  <dan@dberlin.org>
18840         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
18841         CPP will start the file for us.
18843 2002-03-30  Richard Henderson  <rth@redhat.com>
18845         PR target/5446
18846         * config/ia64/ia64.c (group_barrier_needed_p): Special case
18847         prologue_allocate_stack.
18848         (ia64_single_set): Use insn codes for recognition of special
18849         cases, not rtl matching.
18850         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
18852 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
18854         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
18856 2002-03-30  Richard Henderson  <rth@redhat.com>
18858         PR target/6032
18859         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
18860         or -fomit-frame-pointer with profiling.
18861         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
18862         (FUNCTION_PROFILER): Do nothing.
18863         (PROFILE_HOOK): New.
18864         * config/sparc/sparc.c (sparc_override_options): Don't check
18865         code models for profiling.
18866         (sparc_function_profiler): Remove.
18867         (sparc_profile_hook): New.
18868         * config/sparc/sparc-protos.h: Update.
18870 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
18872         PR optimization/6086
18873         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
18874         of SUBREG of volatile MEM or because the MEM was mode dependent,
18875         return CLOBBER instead of unmodified SUBREG.
18877 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
18879         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
18880         when not optimizing.
18882         * toplev.c (rest_of_compilation): Cann mark_constant_function
18883         only when optimizing.
18885         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
18886         are NULL.
18888         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
18889         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
18890         (try_optimize_cfg): clear all AUX fields.
18892         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
18893         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
18894         (ix86_address_cost): Be prepared for SUBREGed registers.
18895         (legitimate_address_p): Accept SUBREGed registers.
18897 2002-03-29  Richard Henderson  <rth@redhat.com>
18899         PR target/5672
18900         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
18902 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
18904         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
18905         for aggregate and TFmode types.
18907 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
18909         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
18911 2002-03-29  Richard Henderson  <rth@redhat.com>
18913         PR target/5886
18914         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
18915         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
18917 2002-03-29  Richard Henderson  <rth@redhat.com>
18919         PR target/6041
18920         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
18921         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
18922         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
18923         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
18924         conditional.
18925         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
18927 2002-03-29  Dale Johannesen <dalej@apple.com>
18929         * loop.c (combine_movables): Do allow combination of pseudos.
18931 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
18933         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
18934         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
18935         No functional change except ...
18936         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
18937         * doc/install.texi (*-*-freebsd*): Document port configuration.
18939 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18941         * Makefile.in (convert.o, calls.o, expmed.o): Update.
18942         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
18943         Use new hooks.
18944         * builtin-types.def (BT_PTRMODE): Update.
18945         * c-common.c (type_for_size): Rename c_common_type_for_size.
18946         (type_for_mode): Similarly.
18947         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
18948         Use new hook.
18949         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
18950         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
18951         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
18952         Redefine.
18953         * c-typeck.c (common_type, comptypes, default_conversion):
18954         Use new hooks.
18955         * calls.c: Include langhooks.h.
18956         (emit_library_call_value_1): Use new hooks.  Avoid redundant
18957         calls.
18958         * convert.c: Include langhooks.h
18959         (convert_to_pointer, convert_to_integer): Use new hooks.
18960         * except.c (init_eh): Similarly.
18961         * expmed.c: Include langhooks.h.
18962         (expand_mult_add): Use new hooks.
18963         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
18964         try_casesi): Similarly.
18965         * fold-const.c (optimize_bit_field_compare, make_range,
18966         decode_field_reference, fold_truthop, fold): Similarly.
18967         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
18968         put_var_into_stack): Similarly.
18969         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
18970         LANG_HOOKS_TYPE_FOR_SIZE): New.
18971         (LANG_HOOKS_TYPES_INITIALIZER): Update.
18972         * langhooks.h (lang_hooks_for_types): New hooks.
18973         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
18974         * tree.c (get_unwidened, get_narrower): Similarly.
18975         * tree.h (type_for_mode, type_for_size): Remove.
18976         * varasm.c (force_const_mem): Use new hooks.
18977         * utils2.c (nonbinary_modular_operation): Update.
18978 objc:
18979         * objc-act.c (handle_impent): Update.
18980         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
18981         Redefine.
18983 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
18985         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
18986         * config/ia64/ia64.c (basereg_operand): New.
18987         * config/ia64/ia64-protos.h (basereg_operand): Declare.
18988         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
18990 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
18992         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
18993         unwind information when frame_pointer_needed.
18994         (mmix_assemble_integer): Tweak wording in comment.
18996 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
18998         * Makefile.in (except.o): Update.
18999         * except.c: Include langhooks.h.
19000         (init_eh): Use langhook.
19001         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
19002         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
19003         (LANG_HOOKS_INITIALIZER): Update.
19004         * langhooks.h (lang_hooks_for_types): New.
19005         (struct lang_hooks): Add it.
19006         * tree.c (make_lang_type_fn, make_lang_type): Remove.
19007         * tree.h (make_lang_type_fn, make_lang_type): Remove.
19008 config:
19009         * alpha/alpha.c: Include langhooks.h.
19010         (alpha_build_va_list): Use langhook.
19011         * d30v/d30v.c: Include langhooks.h.
19012         (d30v_build_va_list): Use langhook.
19013         * i386/i386.c: Include langhooks.h.
19014         (ix86_build_va_list): Use langhook.
19015         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
19016         * s390/s390.c: Include langhooks.h.
19017         (s390_build_va_list): Use langhook.
19018         * stormy16/stormy16.c: Include langhooks.h.
19019         (stormy16_build_va_list): Use langhook.
19021 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19023         PR c++/5964
19024         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
19025         attributes.
19026         (length): Compute variable length for branches/calls/jumps here.
19027         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
19028         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
19029         define branch_type attribute.
19030         (divsi3_sp32): Maximum length is 6 not 7.
19031         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
19032         call_address_untyped_struct_value_sp32,
19033         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
19034         * config/sparc/sparc.c (empty_delay_slot): New function.
19035         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
19036         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
19038 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
19040         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
19041         nonzero_bits if not needed.
19042         (nonzero_bits) [XOR]: Likewise.
19043         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
19044         reg_last_set_mode and mode are both MODE_INT, but not equal.
19045         (record_value_for_reg): Compute reg_last_set_nonzero_bits
19046         in nonzero_bits_mode for MODE_INT modes.
19048 2002-03-28  Richard Henderson  <rth@redhat.com>
19050         PR target/5715
19051         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
19052         to GAS.  Correct drift between alternatives.
19054 2002-03-28  Richard Henderson  <rth@redhat.com>
19056         PR target/6087
19057         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
19059 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
19061         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
19062         emulation to the linker.
19064 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
19066         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
19067         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
19069 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
19071         * combine.c (simplify_and_const_int): Make sure to apply mask
19072         when force_to_mode returns a constant integer.  PR3311.
19074 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19076         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
19078 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19080         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
19081         and Objective-C Dialect Options.
19083 2002-03-28  Richard Henderson  <rth@redhat.com>
19085         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
19086         comparison should be done vs !=0 not >0 return code.  Tidy cases.
19088 2002-03-28  Richard Henderson  <rth@redhat.com>
19090         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
19091         on to c_expand_body.
19092         * c-tree.h (finish_function): Update decl.
19093         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
19095 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
19097         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
19099 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
19101         * rtlanal.c: Include flags.h
19102         (may_trap_p): Do not mark FP operations if trapping
19103         if !flag_trapping_math
19104         * Makefile.in (rtlanal.o): Add dependency on flag.h
19105         * ifcvt.c (noce_operand_ok): Avoid the lameness.
19107 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
19109         * mips.md: Use dconst1, not 1.0, as first argument of
19110         REAL_VALUE_LDEXP.  Don't use union real_extract.
19112 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
19114         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
19115         rather than $target.  Heed program_prefix and
19116         program_transform_name.  Search for gas in cross-compiler case too.
19117         "test -x" rather than "test -f".
19118         (gcc_cv_ld): Likewise.
19119         (gcc_cv_nm): Heed program_prefix and program_transform_name.
19120         (gcc_cv_objdump): Likewise.
19121         * configure: Regenerate.
19123 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19125         * Makefile.in (attribs.o): Update.
19126         * attribs.c: Include langhooks.h.
19127         (decl_attributes): Use langhook.
19128         * c-decl.c (insert_default_attributes): Rename.
19129         * c-tree.h (c_insert_default_attributes): New.
19130         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
19131         (LANG_HOOKS_INITIALIZER): Update.
19132         * langhooks.h (struct lang_hooks): New hook.
19133         * tree.h (insert_default_attributes): Remove.
19134 objc:
19135         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
19137 2002-03-27  Andreas Schwab  <schwab@suse.de>
19139         * config/i386/i386.c (classify_argument): Also check for
19140         QUAL_UNION_TYPE.
19142 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19144         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
19145         any more.
19147 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
19149         * i960.md (ret): Set PC.
19150         (nonlocal_goto): Fix expander.
19151         * builtins.c (epxand_builin_longjmp): Check that we've emitted
19152         some jump or call.
19154 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
19156         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
19157         of libcall regions.
19159 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
19161         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
19162         assigning to BLOCK_FOR_INSN directly.
19164 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
19166         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
19168 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19170         * c-common.c (c_expand_expr): Fix prototype.
19171         * c-common.h (c_expand_expr): Always declare, update.
19172         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19173         * c-objc-common.c (c_objc_common_init): No global hook.
19174         * expr.c (expand_expr): Use langhook.
19175         * expr.h (enum expand_modifier): Conditionally declare.
19176         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
19177         (LANG_HOOKS_INITIALIZER): Update.
19178         * langhooks.c (lhd_expand_expr): New.
19179         * langhooks.h (struct lang_hooks): New hook.
19180         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
19181         (lang_independent_init): Don't default hook.
19182 objc:
19183         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
19185 2002-03-27  Richard Henderson  <rth@redhat.com>
19187         PR target/6054
19188         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
19189         TARGET_CONST_GP.  Simplify conditions.
19191 2002-03-27  Richard Henderson  <rth@redhat.com>
19193         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19194         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
19195         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
19197 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
19199         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
19200         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
19201         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
19202         Remove unnecessary masks.
19203         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
19204         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
19205         -mwindows, -mdll switches and their negations.
19207 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
19209         * gcc-common.c (lang_mark_false_label_stack): Remove.
19210         * ggc.h (lang_mark_false_label_stack): Similarly.
19212 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
19214         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
19216         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
19217         or __rtems_ is defined.
19219 2002-03-26  Richard Henderson  <rth@redhat.com>
19221         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
19222         if a non-trivial load was emitted.
19223         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
19224         in high+extra+low case.
19226 2002-03-26  Richard Henderson  <rth@redhat.com>
19228         * config.gcc (sparc*-solaris): Use float_format=sparc.
19230 2002-03-26  Richard Henderson  <rth@redhat.com>
19232         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
19233         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
19234         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
19235         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
19236         (WINT_TYPE_SIZE): Fix at 32.
19238 2002-03-26  Richard Henderson  <rth@redhat.com>
19240         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
19241         until after eh landing pad generation.
19242         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
19243         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
19245 2002-03-26  Richard Henderson  <rth@redhat.com>
19247         * expr.h (ADD_PARM_SIZE): One more convert for INC.
19249 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
19251         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
19252         and warning switches.
19253         (cc1_options):  Likewise.
19255 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
19257         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
19258         Restore more of the signal context.  Set no_reg_stack_frame.
19259         * config/ia64/unwind-ia64.c (unw_state_record):
19260         Add no_reg_stack_frame, comments.
19261         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
19262         (uw_update_context): Adjust bsp when unwinding from leaf,
19263         but not signal frame.
19265 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
19267         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
19269 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
19271         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
19273 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
19275         PR target/5621
19276         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
19277         "Add a pool_range attribute", which was lost during the ARM/Thumb
19278         merge.
19280 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
19282         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
19283         a register into the MAC16 accumulator.
19285 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
19287         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
19288         (Warning Options): Document -Wswitch-enum.
19289         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
19290         -Wswitch.
19291         (warn_switch_enum): Define variables.
19292         * flags.h (warn_switch_enum): Declare variables.
19293         * stmt.c (expand_end_case_type): When warn_switch_enum /
19294         -Wswitch-enum, perform switch checks.
19295         Fix PR c/5044.
19297 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
19299         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
19300         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
19301         (reload_muladdsi_compare0_scratch): Delete.
19303 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
19305         * doc/install.texi (*-*-freebsd*): Update.
19307 2002-03-26  Richard Henderson  <rth@redhat.com>
19309         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
19310         (SUB_PARM_SIZE): Cast DEC to ssizetype.
19312         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
19313         types from the normal argument frame.
19315         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
19316         variable sized objects by reference.
19317         (sparc_va_arg): Receive them by reference too.
19319 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
19321         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
19322         code to not restoring global registers.
19324 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
19326         * Makefile.in (ggc-common.o): Update.
19327         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
19328         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19329         * c-tree.h (c_mark_tree): New.
19330         * ggc-common.c: Include langhooks.h.
19331         (gcc_mark_trees): Use new langhook.
19332         * ggc-callbacks.c: Delete file.
19333         * ggc.h (lang_mark_tree): Remove.
19334         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
19335         (LANG_HOOKS_INITIALIZER): Update.
19336         * langhooks.h (struct lang_hooks): New hook.
19337 objc:
19338         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
19340 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
19342         * doc/cpp.texi: Exclude entire Top node from printed manual.
19343         Move option index after directive index.  Insert page breaks
19344         before GFDL and concept index.  Index environment variables
19345         with command line options.
19346         * doc/cppenv.texi: Use @vtable for environment variable list.
19347         Add paragraph explaining semantics of empty elements in path
19348         variables.  Exclude a cross-reference to Fishkill from the
19349         manpage.  Remove an unnecessary cross-reference of the entry
19350         right above the referer.  Don't use @anchor in text that goes
19351         into manpage.
19352         * doc/cppopts.texi: Cross-reference the environment variables
19353         section, not the specific environment variable, for consistency.
19355 2002-03-25  Richard Henderson  <rth@redhat.com>
19357         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
19358         anywhere in the block.  Don't refer to insns that have been
19359         removed from the chain.  Iterate backward through the new insns.
19360         Don't refer to edges that have been removed.
19362 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
19364         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
19365         test for overflow of constant.
19367 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
19369         PR target/2623
19370         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
19371         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
19372         these patterns on arm_archv4.
19374 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
19376         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
19377         int".
19379 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
19381         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
19382         float_handled, float_handler, float_signal, set_float_handler,
19383         and do_float_handler.  Set handler for SIGFPE to crash_signal.
19384         * toplev.h: Don't prototype do_float_handler.
19386         * c-lex.c: Fold parse_float into lex_number.  Make warning
19387         about portability of hex float constants more informative, and
19388         don't issue it on top of a syntax error.
19389         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
19390         their callers.
19391         * real.h: Define REAL_VALUE_ABS here...
19392         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
19393         simplify_unary_real, simplify_binary_real, and
19394         simplify_binary_is2orm1 into their callers.
19395         * tree.c: Fold build_real_from_int_cst_1 into caller.
19397         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
19399         * tsystem.h: Include float.h here...
19400         * libgcc2.c: ... not here.
19402 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
19404         Fixes for: PR bootstrap/3591, target/5676
19405         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
19406         defined.  Do not disable exceptions or rtti.
19407         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
19408         mcore.h.  Disable exceptions and rtti, since they are not
19409         supported by EPOC.
19411 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
19413         * c-decl.c (maybe_build_cleanup): Remove.
19414         * expr.c (expand_expr): Use langhook.
19415         * langhooks-def.h (lhd_return_null_tree,
19416         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
19417         (LANGHOOKS_INITIALIZER): Update.
19418         * langhooks.c (lhd_return_null_tree): New.
19419         * langhooks.h (struct lang_hooks): New hook.
19420         * tree-inline.c (initialize_inlined_parameters): Use langhook.
19421         * tree.h (maybe_build_cleanup): Remove.
19423 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19425         * regrename.c (build_def_use): Move recog_memoized
19426         before extract_insn.
19428 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19430         PR target/6043
19431         * expr.c (emit_group_store): Handle storing into CONCAT.
19433 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
19435         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
19436         corresponding MATCH_DUP.
19438 2002-03-24  Richard Henderson  <rth@redhat.com>
19440         * unroll.c (unroll_loop): Zero label_map.
19442         * gcse.c: Include except.h.
19443         * Makefile.in (gcse.o): Update.
19445 2002-03-24  Richard Henderson  <rth@redhat.com>
19447         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
19448         Do resolve_unique_section before shared data clause.
19450 2002-03-24  Richard Henderson  <rth@redhat.com>
19452         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
19454 2002-03-24  Richard Henderson  <rth@redhat.com>
19456         * recog.c (peephole2_optimize): Split blocks when EH insns are
19457         generated in the middle of a block.  Do global life update if
19458         zapped EH edges.
19460 2002-03-24  Richard Henderson  <rth@redhat.com>
19462         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
19464 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19466         preprocessor/3951
19467         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
19468         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
19469         (init_dependency_output): Don't make no_output decision here.
19471 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
19473         * stmt.c (check_for_full_enumeration_handling): Remove tests of
19474         warn_switch.  Update description.
19475         (expand_end_case_type): Call check_for_full_enumeration_handling
19476         when warn_switch.
19478 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19480         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
19481         (m68hc11_split_move): Call it to see if the source and destination
19482         operands use the same direction auto inc/dec mode, otherwise make the
19483         source an offsetable memory operand and generate an add.
19485 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
19487         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
19488         register for operand 2.
19489         ("*subsi3_zero_extendqi"): Likewise.
19490         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
19491         bits so that it is compatible with a pop.
19492         ("*andhi3_gen"): Likewise.
19493         ("xorhi3"): Likewise.
19495 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19497         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
19498         -pedantic here...
19499         (cpp_post_options): ... not here.
19501 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
19502             Aldy Hernandez  <aldyh@redhat.com>
19504         Removal of separate preprocessor cpp0.
19506         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
19507         cpp0, install-common): Update.
19508         * c-common.c (flag_preprocess_only): New.
19509         (c_common_init): Preprocess for -E.
19510         * c-common.h (flag_preprocess_only): New.
19511         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
19512         * c-objc-common.c (c_init_decl_processing): Exit quickly
19513         for NULL return from c_common_init.
19514         * cpplib.h (cpp_preprocess_file): New.
19515         * cppmain.c (main, general_init, pfile, progname): Remove.
19516         (do_preprocessing): Rename cpp_preprocess_file, don't call
19517         cpp_finish.  Don't close stdout here.
19518         (setup_callbacks): Update prototype.
19519         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
19520         Update.
19521         * tradcpp.c (main): Ignore -quiet.
19522 objc:
19523         * lang-specs.h (default_compilers): Preprocess with cc1obj.
19525 2002-03-24  Richard Henderson  <rth@redhat.com>
19527         PR optimization/5742
19528         * machmode.def: Add inner mode field to complex modes.
19529         * config/mips/mips.c (mips_function_value): Always define.  Add
19530         new argument to handle libcalls.
19531         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
19532         (FUNCTION_VALUE): Likewise.
19533         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
19534         * config/mips/mips-protos.h: Update.
19536 2002-03-23  Richard Henderson  <rth@redhat.com>
19538         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
19539         * config/sparc/sparc-protos.h: Update.
19540         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
19542 2002-03-23  Richard Henderson  <rth@redhat.com>
19544         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
19545         _start or _init begins the text segment.
19547 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
19549         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
19550         not HOST_WIDEST_INT.
19551         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
19553 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
19555         PR java/5489
19556         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
19557         operand argument to output_return_instruction.
19558         * arm.c (arm_print_operand, case 'd'): If the operand is
19559         const_true_rtx then just return.
19560         (arm_print_operand, case 'D'): If the operand is const_true_rtx
19561         then abort.
19563 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
19565         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
19566         (Warning Options): Document -Wswitch-default.
19567         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
19568         -Wswitch.
19569         (warn_switch_default): Define variable.
19570         (warn_switch): Update comment.
19571         * flags.h (warn_switch_default): Declare variable.
19572         (warn_switch): Update comment.
19573         * stmt.c (expand_end_case): Check for and, when
19574         warn_switch_no_default, warn of a missing default case.
19576 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
19578         * real.h (N): Special case 128 bit doubles.
19580         * combine.c (simplify_comparison): When widening modes, ignore
19581         sign extension on CONST_INTs.
19583 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
19585         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
19586         passed to adjust_address.  Fix comment formatting.
19589 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
19591         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
19592         Always make REAL_VALUE_TYPE a struct containing an array of
19593         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
19594         big it is.  Don't declare or use union real_extract.
19596         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
19597         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
19598         (print_operand), config/arm/arm.c (output_move_double),
19599         config/arm/arm.md (consttable_4, consttable_8),
19600         config/romp/romp.c (output_fpops), config/s390/s390.h
19601         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
19602         (xtensa_output_literal): Don't use union real_extract.
19604         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
19605         (sfmode_constant_to_ulong), config/ns32k/merlin.h
19606         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
19607         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
19608         (PRINT_OPERAND): Don't use local version of union
19609         real_extract.
19611         * config/convex/convex.c (check_float_value), config/vax/vax.c
19612         (vax_float_literal), config/m88k/m88k.md (divdf3),
19613         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
19614         config/pdp11/pdp11.c (output_move_quad): Don't do host
19615         arithmetic on target floating point quantities.
19617         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
19618         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
19620         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
19621         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
19623         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
19624         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
19625         INFINITY.
19626         * print-rtl.c (print_rtx): Disable code which needs
19627         floating-point emulator.
19628         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
19629         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
19630         depending on HOST_FLOAT_FORMAT to be defined properly.
19632         * config/1750a/1750a.c (get_double, float_label): Delete.
19633         (print_operand): Delete huge commented-out chunk.  Use
19634         REAL_VALUE_TO_DECIMAL.
19635         * config/1750a/1750a-protos.h: Delete prototypes of deleted
19636         functions.
19637         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
19638         IEEE_FLOAT_FORMAT.
19639         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
19640         Use REAL_VALUE_TO_DECIMAL as ELF version does.
19641         * config/m88k/m88k.c (real_power_of_2_operand,
19642         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
19643         real_extract out of the union; run the input through
19644         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
19645         from that into the union.
19646         * config/pdp11/pdp11.c (output_move_double): Rearrange
19647         parentheses to make automatic indenter happy.
19649         * doc/tm.texi (Cross-compilation): Rename node to "Floating
19650         Point" and rewrite to describe current situation.  Also adjust
19651         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
19652         match code.
19653         * doc/rtl.texi: Adjust cross reference.
19655 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
19657         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
19658         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
19659         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
19660         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
19661         prevent use of sp as a reload register.
19662         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
19663         non_acc_reg_operand.
19664         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
19665         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
19666         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
19667         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
19669 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
19671         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
19672         * cpplex.c (unterminated): Delete.
19673         (parse_string): No string literal may extend over multiple
19674         lines.  Suppress the error when preprocessing assembly.
19675         * cppmain.c (scan_translation_unit): Strings are single-line.
19677         * doc/cpp.texi: Update to match.
19679 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
19681         PR optimization/5854
19682         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
19683         Shut up warnings.
19684         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
19685         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
19686         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
19687         const0 if scratch register was not allocated.
19688         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
19689         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
19690         with GEN_INT (...).
19691         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
19692         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
19693         with GEN_INT (...) everywhere.  Remove constraints in define_split
19694         patterns.
19695         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
19696         require scratch register for setting 0 into regs/non-pushable memory.
19698 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
19700         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
19701         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
19703 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
19705         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
19706         * cppinit.c (cpp_create_reader):  On by default.
19707         (cpp_handle_option):  Handle -W[no-]endif-labels.
19708         (cpp_post_options):  Also enable if -pedantic.
19709         * cpplib.c (do_else):  Use it.
19710         (do_endif):  Likewise.
19711         * doc/cppopts.texi:  Document new option.
19712         * doc/invoke.texi:  Document new option.
19714 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
19716         * config/i386/i386.c, config/i386/i386.md: Change all occurences
19717         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
19719 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
19721         * flow.c (calculate_global_regs_live): Clear aux fields of
19722         ENTRY and EXIT.
19724 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
19726         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
19727         REG or MEM subregs, pass rtx * instead of rtx to it.
19728         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
19729         rtx * instead of rtx to alter_subreg.
19730         * config/m32r/m32r.c (gen_split_move_double): Likewise.
19731         * config/pj/pj.c (pj_output_rval): Likewise.
19733 2002-03-22  Richard Henderson  <rth@redhat.com>
19735         PR target/3177
19736         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
19737         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
19738         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
19739         (ia64_expand_prologue): Look at int_regs, not words, for number
19740         of incomming int regs.
19742 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
19744         * expr.c (expand_expr): A RESULT_DECL is part of a call.
19746 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
19748         * toplev.c (flag_loop_optimize, flag_crossjumping):
19749         New static variables.
19750         (rest_of_compilation): Conditionalize crossjumping and
19751         loop optimizer.
19752         (parse_options_and_default_flags): Default loop_optimize and
19753         crossjumping.
19754         (lang_independent_options): Add -fcrossjumping and -floop-optimize
19755         * invoke.texi (crossjumping, loop-optimize): Document.
19757 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19759         * real.c (eiisneg): Move outside #ifdef NANS.
19761 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
19763         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
19764         frequencies match; avoid match on different loop depths.
19765         (try_crossjump_to_bb): Kill tests that no longer brings time
19766         savings.
19767         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
19768         updating code.
19769         (split_edge): Likewise.
19771         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
19772         variable.
19774         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
19775         * cfgrtl.c: Include insn-config.h
19776         (split_block) Dirtify block in presence of conditional execution
19778 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19780         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
19781         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
19782         (function_arg): Constify CUMULATIVE_ARGS.
19783         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
19784         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
19785         (UNITS_PER_DOUBLE): New macro.
19786         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
19787         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
19788         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
19789         fp_regs and stack_words.
19790         (EABI_FLOAT_VARARGS_P): New macro.
19791         * config/mips/mips.c (struct mips_arg_info): New.
19792         (mips_arg_info): New function.
19793         (function_arg_advance): Use it.  Add adjustment instructions here
19794         rather than in function_arg.
19795         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
19796         for VOIDmode at the beginning of the function.
19797         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
19798         (function_arg_pass_by_reference): Likewise.
19799         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
19800         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
19801         (mips_va_start): Likewise.  Use the new stack_words field of
19802         CUMULATIVE_ARGS to set up overflow area.  Reformat.
19803         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
19804         doubles and other types, aligning the overflow pointer for non-doubles
19805         too.  Remove some code duplication.  Replace hard-coded constants.
19807 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
19809         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
19810         (CLASS_UNITS): Undefine.
19811         (CLASS_MAX_NREGS): Use FP_INC.
19812         * config/mips/mips.c (compute_frame_size): Likewise.
19813         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
19815 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
19817         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
19818         prototype, and handle lexing numbers and identifiers.
19819         (parse_identifier): Update to new form of parse_slow.
19820         (parse_number): Fast path only, use parse_slow otherwise.
19821         (_cpp_lex_direct): Update calls to parse_number.
19823 2002-03-21  DJ Delorie  <dj@redhat.com>
19825         * bb-reorder.c (make_reorder_chain_1): Protect against
19826         when redundant edges are omitted.
19827         * predict.c (dump_prediction): Likewise.
19829 2002-03-21  Richard Henderson  <rth@redhat.com>
19831         PR target/5996
19832         * fixinc/inclhack.def (solaris_stdio_tag): New.
19833         * fixinc/fixincl.x: Regenerate.
19835 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
19837         PR c/5597
19838         * c-typeck.c (process_init_element): Flag non-static
19839         initialization of a flexible array member as illegal.
19841 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
19843         * config/rs6000/t-linux64: New.
19844         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
19845         t-ppccomm.  Use t-rs6000 and t-linux64.
19846         (powerpc64-*-gnu* <tmake_file>): Likewise.
19847         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
19848         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
19849         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
19851 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
19853         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
19854         flag_really_no_inline instead of optimize == 0.
19856         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
19858         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
19860         * flags.h (flag_really_no_inline): New.
19862         * c-common.c (c_common_post_options): Initialize
19863         flag_really_no_inline.
19865         * toplev.c (flag_really_no_inline): New.
19867 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
19869         * config/avr/avr.md (length): Fix length computation for
19870         conditional branches.
19872 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
19874         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
19875         sdbout.o, profile.o): Update.
19876         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
19877         langhook.
19878         * c-common.h (gettags): Move here from tree.h.
19879         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
19880         insert_block, getdecls, kept_level_p, global_bindings_p): New.
19881         * dbxout.c (dbxout_init): Use getdecls langhook.
19882         * expr.c (expand_expr): Use insert_block langhook.
19883         * fold-const.c: Include langhooks.h.
19884         (fold_range_test, fold_binary_op_with_conditional_arg,
19885         fold): Use global_bindings_p langhook.
19886         * integrate.c (expand_inline_function): Use insert_block langhook.
19887         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
19888         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
19889         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
19890         LANG_HOOKS_GETDECLS): New.
19891         (LANG_HOOKS_INITIALIZER): Update.
19892         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
19893         langhook.
19894         * langhooks.h (struct lang_hooks_for_decls): New.
19895         (struct lang_hooks): Update.
19896         * profile.c: Include langhooks.h.
19897         (output_func_start_profiler): Use new langhooks.
19898         * sdbout.c: Include langhooks.h.
19899         (sdbout_init, sdbout_finish): Use getdecls langhook.
19900         * stmt.c: Include langhooks.h.
19901         (expand_fixup, fixup_gotos): Use new langhooks.
19902         * stor-layout.c: Include langhooks.h.
19903         (variable_size): Use global_bindings_p langhook.
19904         * toplev.c (compile_file): Use getdecls langhook.
19905         * tree-inline.c (remap_block): Use insert_block langhook.
19906         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
19907         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
19909 2002-03-21  Richard Henderson  <rth@redhat.com>
19911         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
19912         constants in .data when -fpic.
19914 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19916         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
19917         where appropriate.
19919 2002-03-21  Tom Tromey  <tromey@redhat.com>
19921         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
19923 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19925         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
19927         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
19929 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
19930             Richard Henderson  <rth@redhat.com>
19932         PR c/5354
19933         * c-common.c (c_expand_expr): Preserve result of a statement
19934         expression if needed.
19936 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
19938         PR bootstrap/4195
19939         * genrecog.c (maybe_both_true_mode): Remove.
19940         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
19941         * machmode.def (Pmode): Likewise.
19943 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
19945         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
19946         (nonlocal_mentioned_p_1): New function.
19947         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
19948         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
19949         (mark_constant_function): Recognize pure functions.
19950         * rtl.h (global_reg_mentioned_p): New prototype.
19951         * rtlanal.c (global_reg_mentioned_p,
19952         global_reg_mentioned_p_1): New function.
19954 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
19956         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
19957         UNIX assert.h.
19958         * fixinc/fixincl.x: Regenerate.
19960 2002-03-20  Jason Merrill  <jason@redhat.com>
19962         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
19964 2002-03-20  Michael Meissner  <meissner@redhat.com>
19966         * doc/invoke.texi (Optimize Options): Document that -O2 sets
19967         -fstrict-aliasing.
19969 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
19971         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
19972         ".literal_position" directive before the constant pool.
19974 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
19976         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
19977         Add Craig Rodrigues.
19978         Add Brad Lucier to testers.
19980 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19982         PR target/4792
19983         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
19984         to if_then_else.
19985         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
19986         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
19987         instead of insn_extract.
19989 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19991         PR bootstrap/4192
19992         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
19994         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
19995         stmt if some case has been output.
19997 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
19999         PR c/5972
20000         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
20001         movsfcc_1, movdfcc_1): Add %O2.
20002         * config/i386/i386.c (print_operand): Handle %ON.
20003         Print . before float condition codes in Sun as cmov syntax.
20004         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
20005         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
20006         no longer true.
20008 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
20010         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
20011         return instruction if PC was popped.
20013 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
20015         * config/xtensa/xtensa.md: Remove unused type attributes.
20016         (adddi_carry, subddi_carry): Change type attribute to "multi".
20018 2002-03-19  Dale Johannesen  <dalej@apple.com>
20020         PR optimization/5999, middle-end/5731
20021         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
20022         multiplications by reciprocals.
20024 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20026         * Makefile.in: Update.
20027         * c-common.c: Include langhooks.h.
20028         (inline_forbidden_p): Use new hook.
20029         * diagnostic.c: Include langhooks.h.
20030         (format_with_decl, announce_function,
20031         default_print_error_function): Use new hook.
20032         * dwarf2out.c (dwarf2_name): Use new hook.
20033         * function.c: Include langhooks.h.
20034         (init_function_start): Use new hook.
20035         * langhooks-def.h (lhd_decl_printable_name): New.
20036         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
20037         (LANGHOOKS_INITIALIZER): Update.
20038         * langhooks.c (lhd_decl_printable_name): New.
20039         * langhooks.h (struct lang_hooks): New hook.
20040         * toplev.c (decl_name, decl_printable_name): Remove.
20041         (open_dump_file): Use new hook.
20042         (process_options): Remove old hook.
20043         * tree.h (decl_printable_name): Remove.
20044 objc:
20045         * objc-act.c (objc_init): Remove old hook.
20046         (objc_printable_name): Export.
20047         * objc-act.h (objc_printable_name): New.
20048         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
20050 2002-03-19  Jim Blandy  <jimb@redhat.com>
20052         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
20053         the start_source_file debug hook, not the current line number.
20055 2002-03-19  Richard Henderson  <rth@redhat.com>
20057         * flow.c (EH_USES): Provide default.
20058         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
20059         * doc/tm.texi (EH_USES): New.
20061         * config/ia64/ia64.c (ia64_eh_uses): New.
20062         * config/ia64/ia64-protos.h: Update.
20063         * config/ia64/ia64.h (EH_USES): New.
20065 2002-03-19  Richard Henderson  <rth@redhat.com>
20067         * varasm.c (output_constant_def): Fix stupid typo.
20069 2002-03-19  Richard Henderson  <rth@redhat.com>
20071         PR 5879
20072         * except.c (current_function_has_exception_handlers): New.
20073         * except.h: Declare it.
20074         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
20075         Combine tests that disable all sibcalls for the function.
20077 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
20079         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
20080         for INTEGER_CST.
20082 2002-03-19  Richard Henderson  <rth@redhat.com>
20084         PR 5977, 5991
20085         * config/ia64/ia64.c: Revert 2002-03-01 patch.
20086         * config/ia64/ia64.h (INIT_EXPANDERS): New.
20088 2002-03-19  Jim Blandy  <jimb@redhat.com>
20090         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
20091         name, even if the replacement list contains no tokens, as required
20092         by Dwarf.
20094 2002-03-19  Jason Merrill  <jason@redhat.com>
20096         * varasm.c (globalize_decl): Get the name from the RTL, not
20097         DECL_ASSEMBLER_NAME.
20099         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
20101 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
20103         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
20104         subdi_carry): Define.
20106 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20108         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
20109         about -fpic/-fPIC if extra_warnings set.
20111 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
20113         * expr.c (expand_expr): Sign-extend CONST_INT generated from
20114         TREE_STRING_POINTER.
20115         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
20117 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20119         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
20120         in favor of SP if FRAME_POINTER_REQUIRED is false.
20122 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
20124         * emit-rtl.c (gen_int_mode): New function.
20125         * rtl.h: Prototype for it.
20126         * combine.c (make_extraction, simplify_comparison), expmed.c
20127         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
20128         (convert_modes, store_field), optabs.c (expand_fix),
20129         simplify-rtx.c (neg_const_int, simplify_unary_real),
20131         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
20132         Use it instead of GEN_INT (trunc_int_for_mode (...)).
20134 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
20136         PR c/5656
20137         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
20138         convert_parm_for_inlining.
20139         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
20140         Define.
20141         * langhooks-def.h: Likewise.
20142         * objc/objc-lang.c: Likewise.
20143         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
20144         function.
20145         * tree-inline.c (initialize_inlined_parameters):
20146         Call convert_parm_for_inlining lang hook if needed.
20147         * c-typeck.c (c_convert_parm_for_inlining): New function.
20148         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
20150 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
20152         * calls.c (precompute_arguments): Do not assume that temporaries
20153         can be destroyed after expanding the argument.
20154         (expand_call): Likewise.
20156 2002-03-15  Eric Christopher  <echristo@redhat.com>
20158         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
20159         Fix register preference on last change.
20160         * config/mips/mips.c (mips_return_in_memory): New function.
20161         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
20162         * config/mips/mips-protos.h: Declare.
20163         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
20164         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
20166 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
20168         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
20169         a register too.
20170         (anddi3, iorsi3): Likewise.
20172         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
20173         use %gprel for symbols that are going to be placed in linkonce
20174         sections.
20176         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
20177         RETURN_ADDRESS_POINTER_REGNUM to $ra.
20178         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
20179         not needed.  Disregard leaf_function_p().
20180         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
20181         mips16 frame pointer.
20182         * config/mips/mips.md (store ra): Only to small SP offsets.
20183         2001-08-22  Graham Stott  <grahams@redhat.com>
20184         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
20185         return a REG rtx for the return address register.
20187 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
20189         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
20190         constant-pool addresses as "mode-dependent".
20191         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
20193 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
20195         PR target/5740
20196         * expr.c (emit_group_load): Use extract_bit_field if
20197         needed for CONCAT arguments.
20199 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
20201         PR target/4863
20202         * arm.md (tablejump): Make this a define_expand.  For PIC add the
20203         offset to the base of the table.
20204         (thumb_tablejump): Matcher for Thumb tablejump insn.
20205         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
20206         as the difference of two labels.
20207         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
20208         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
20209         tables in the code.
20210         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
20211         * arm.c (get_jump_table_size): If the table is not in the text
20212         section, return zero.
20214 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
20216         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
20217         of gen_rtx_SUBREG.
20218         (arm_reload_out_hi): Use gen_lowpart instead of
20219         gen_rtx_SUBREG to access QImode components.
20220         * config/arm/arm.md: Disable zero_extend split for QImode
20221         subregs in BIG_ENDIAN mode.
20222         (storehi_bigend): Match use of least significant byte.
20223         (storeinthi): Remove extraneous SUBREG.
20224         Add missing construction of operands[2].
20225         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
20226         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
20227         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
20229 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
20231         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
20232         any_operand.
20234 2002-03-17  Richard Henderson  <rth@redhat.com>
20236         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
20237         explicitly.
20239 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
20241         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
20242         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
20244 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20246         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
20248         * predict.c (estimate_bb_frequencies): Delete unused variables.
20250 2002-03-17  Richard Henderson  <rth@redhat.com>
20252         * config/ia64/ia64.c (ia64_attribute_table): Move before
20253         targetm definition.  Make static.
20255 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
20257         * c-common.h (yyparse, c_common_parse_file): New.
20258         * c-lang.c: Include c-common.h.
20259         (LANG_HOOKS_PARSE_FILE): Redefine.
20260         * c-lex.c: Include c-common.h.
20261         (yyparse): Rename c_common_parse_file.  Call yyparse.
20262         * c-parse.in (yyparse): Remove macro.
20263         * c-tree.h (yyparse_1): Remove.
20264         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
20265         (LANG_HOOKS_INITIALIZER): Update.
20266         * langhooks.h (struct lang_hoooks): New hook parse_file.
20267         * toplev.c (compile_file): Use parse_file hook.
20268         * tree.h (yyparse): Remove.
20269         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
20271 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
20273         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
20274         float_truncate, not fix.
20275         ("*truncdfsf2_real"): Ditto.
20276         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
20278         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
20280 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
20282         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
20283         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
20284         where appropriate.  Make the second reference to
20285         leaf_function_p a function call, as intended.  Reindented.
20287         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
20288         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
20290         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
20291         add register to non-constant into sp.
20293         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
20294         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
20295         (mips16_gp_pseudo_rtx): Lose.
20296         (INIT_EXPANDERS): Deleted.
20297         * config/mips/mips.c (mips_init_machine_status): New.
20298         (mips_free_machine_status): New.
20299         (mips_mark_machine_status): New.
20300         (override_options): Set them.
20301         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
20302         (struct machine_function): ... new.  Replaced all references.
20303         (mips_add_gc_roots): Don't mark them.
20304         (embedded_pic_fnaddr_reg): New, extracted from...
20305         (embedded_pic_offset): ... here.
20306         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
20307         (movsi): Likewise.
20309 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
20311         * cppinit.c: Revert -MD removal.
20313 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20315         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
20316         soft registers by default for 68HC12.
20317         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
20318         when compiling with -fomit-frame-pointer.
20319         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
20320         (expand_epilogue): Likewise.
20321         (m68hc11_gen_rotate): Use exg when rotating by 8.
20323 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20325         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
20326         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
20327         (splits): Remove unused add splits.
20328         ("*addhi3_68hc12"): Tune constraints.
20329         ("addhi_sp"): Try to use X instead of Y in all cases and if the
20330         constant fits in 8-bits and D is dead use abx/aby instructions.
20331         ("*addhi3"): Remove extern declaration of ix_reg.
20332         ("*subsi3"): Optimize and provide new split.
20333         ("subhi3"): Cleanup.
20334         ("*subhi3_sp"): Avoid saving X if we know it is dead.
20335         (arith splits): For 68hc12 save the address register on the stack
20336         and do the arithmetic operation with a pop.
20338 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20340         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
20341         allocating QImode in address registers.
20342         ("*movqi_m68hc11"): Likewise.
20344 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
20346         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
20348 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
20350         * cppinit.c (print_help): Display -MD and -MMD.
20351         Don't display usage string.  Update assertion syntax and
20352         typo.
20353         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
20354         (cpp_handle_option): Update.
20356 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
20358         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
20359         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
20360         and define it so that regardless of target CPU size,
20361         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
20362         of "int" rather than "long."
20364 2002-03-15  Richard Henderson  <rth@redhat.com>
20366         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
20367         size as a tree.
20369 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20371         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
20372         ("tstqi" split): Avoid using memory for tstqi on address register.
20373         (splits): Remove constraints.
20374         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
20375         ("cmpdf", "cmpsf"): Remove since not used.
20376         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
20377         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
20379 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20381         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
20382         ("neghi2"): Tighten constraints.
20383         ("one_cmplsi2"): Optimize and simplify split.
20384         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
20386 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20388         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
20389         and split of AND operation to clear the upper bits.
20390         ("*logicalsi3_zextqi"): Likewise.
20391         ("*logicallhi3_zexthi_ashift8"): Likewise.
20392         ("*logicalsi3_silshr16"): Likewise.
20393         ("logicalsi3_silshl16"): Likewise.
20394         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
20396 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20398         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
20399         (m68hc11_indirect_p): New function.
20400         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
20401         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
20402         TARGET_M6812.
20403         (asm_print_register): Likewise.
20404         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
20405         (m68hc11_indirect_p): Declare.
20406         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
20407         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
20408         (TARGET_SWITCHES): New option -mrelax.
20409         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
20410         destination.
20411         ("iorsi3", "xorsi3"): Likewise.
20412         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
20413         ("*andhi3_mem"): New to handle destination in memory with bclr
20414         and a scratch register.
20415         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
20416         ("*andhi3_const"): New when operand2 is constant.
20417         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
20418         ("*andhi3_gen"): Cleanup of the old "andhi3".
20419         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
20420         ("xorqi3"): Update constraints.
20422 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20424         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
20425         for reg_equiv_memory_loc when the operand is a register that does
20426         not get a hard register (stack location).
20427         (tst_operand): After reload, accept all memory operand.
20428         (symbolic_memory_operand): Fix detection of symbolic references.
20429         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
20430         accept symbols and any constant.
20432 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20434         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
20435         note on the insn that sets the soft frame register.
20436         (must_parenthesize): ix and iy are also reserved names.
20437         (print_operand_address): One more place where parenthesis are required
20438         to avoid confusion with register names.
20439         (m68hc11_gen_movhi): Allow push of stack pointer.
20440         (m68hc11_check_z_replacement): Fix handling of parallel with a
20441         clobber.
20442         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
20443         the replacement register is.
20444         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
20445         and D8_REGS classes.
20446         (MODES_TIEABLE_P): All modes are tieable except QImode.
20448 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20450         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
20451         (___subdi3): Likewise.
20452         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
20453         (__map_data_section): Optimize 68hc11 case.
20455 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
20457         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
20458         than a shift to avoid adding a register with itself.
20459         (m68hc11_memory_move_cost): Take into account NO_REGS.
20460         (m68hc11_register_move_cost): Update and use memory move cost
20461         for soft registers.
20462         (m68hc11_address_cost): Make cost of valid offset not 0 so that
20463         it gives more opportunities to cse to optimize.
20464         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
20465         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
20467 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
20469         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
20470         * c-common.def (CLEANUP_STMT): New tree node.
20471         * c-common.h (CLEANUP_DECL): New macro.
20472         (CLEANUP_EXPR): Likewise.
20473         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
20474         * expr.c (expand_expr): Tidy.
20475         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
20476         * tree-inline.c (initialize_inlined_parameters): Clean up
20477         new local variables.
20479 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
20481         PR bootstrap/4128
20482         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
20483         before movrXX only, use reg_overlap_mentioned_p.
20484         Only special case NE if just one insn can be generated.
20486 2002-03-15  Jason Merrill  <jason@redhat.com>
20488         * varasm.c (assemble_variable): Call resolve_unique_section before
20489         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
20490         of error_mark_node.
20492 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
20494         PR target/5170
20495         * arm.md (split pattern for thumb shiftable immediates): Add comment
20496         explaining non-obvious test.
20498 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
20500         PR target/5712
20501         * arm.md (movaddr, movaddr_insn): Delete.
20503 2002-03-15  Jason Merrill  <jason@redhat.com>
20505         * toplev.c (wrapup_global_declarations): Clarify variable handling.
20506         -fkeep-static-consts doesn't apply to comdats.
20508 2002-03-14  Richard Henderson  <rth@redhat.com>
20510         * c-decl.c: Include c-pragma.h.
20511         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
20512         (finish_function): Tidy.
20513         * c-pragma.c: Include c-common.h.
20514         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
20515         (handle_pragma_weak): Use them.
20516         (init_pragma): Register pending_weaks.
20517         * c-pragma.h (maybe_apply_pragma_weak): Declare.
20518         * print-tree.c (print_node): Print DECL_WEAK.
20519         * varasm.c (mark_weak_decls): Remove.
20520         (remove_from_pending_weak_list): Remove.
20521         (add_weak): Remove.
20522         (asm_emit_uninitialised): Call globalize_decl for weak commons.
20523         (weak_decls): Make a tree_list.
20524         (declare_weak): Cons weak_decls directly.
20525         (globalize_decl): Remove weak_decls elements directly.
20526         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
20527         symbols.  Don't pretend to handle aliases.
20528         (init_varasm_once): Update weak_decls registry.
20529         * Makefile.in: Update dependencies.
20531 2002-03-14  Richard Henderson  <rth@redhat.com>
20533         PR target/5312
20534         * config/ia64/ia64.c: Include tm_p.h last.
20535         (gen_nop_type): Remove duplicate definition.
20536         (cycle_end_fill_slots): Set sched_data for second L slot.
20537         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
20538         (nop_cycles_until): Fix typos.
20540 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
20542         PR optimization/5891
20543         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
20545 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
20547         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
20548           descriptors correctly.
20550 2002-03-14  Michael Meissner  <meissner@redhat.com>
20552         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
20553         100, allowing MAX_UNROLLED_INSNS to be overridden.
20555         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
20556         --param.
20558         * unroll.c (params.h): Include.
20559         (MAX_UNROLLED_INSNS): Delete, now in params.h.
20561         * doc/invoke.texi (--param max-unroll-insns): Document.
20563         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
20565 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
20567         * arm.md: Fix warnings about constraints in peepholes and splits.
20569 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
20571         * cpphash.h (struct lexer_state): Remove line_extension member.
20572         * cpplib.c (dequote_string, do_linemarker): New functions.
20573         (linemarker_dir): New data object.
20574         (DIRECTIVE_TABLE): No longer need to interpret #line in
20575         preprocessed source.  Delete obsolete comment about return
20576         values of handlers.
20577         (end_directive, directive_diagnostics, _cpp_handle_directive):
20578         Don't muck with line_extension.
20579         (directive_diagnostics): No need to issue warnings for
20580         linemarkers here.
20581         (_cpp_handle_directive): Issue warnings for linemarkers here,
20582         when appropriate.  Dispatch linemarkers to do_linemarker, not
20583         do_line.
20584         (do_line): Code to handle linemarkers split out to do_linemarker.
20585         Convert escape sequences in filename argument, both places.
20587         * cppmacro.c (quote_string): Rename cpp_quote_string and
20588         export.  All callers changed.
20589         * cpplib.h (cpp_quote_string): Prototype.
20590         * cppmain.c (print_line): Call cpp_quote_string on to_file
20591         before printing it.
20593         * doc/cpp.texi: Document that escapes are now interpreted in
20594         #line and in linemarkers, and that non-printing characters are
20595         converted to octal escapes when linemarkers are generated.
20597 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
20599         * emit-rtl.c (try_split): Use delete_insns.
20600         * recog.c (split_all_insns): Fix terminating condition.
20602 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
20603             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
20605         PR target/5828
20606         * arm.c (arm_output_epilogue): Fix floating-point register save
20607         adjustment when using a frame pointer.
20609 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
20611         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
20612         * config/mips/mips.c (compute_frame_size): Retrofit them here.
20613         (save_restore_insns, mips_expand_epilogue): And here.
20614         (build_mips16_call_stub): And here.
20615         (mips_function_value): Use the new macros to decide whether a single
20616         or complex float can be returned in floating-point registers.  Return
20617         a parallel rtx in the complex case.
20619 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
20621         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
20622         call after liveness analysis.
20624         * recog.c (split_insn): Use delete_insn_and_edges.
20626         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
20627         instructions to have branch prediction notes.
20628         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
20630 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
20632         * configure.in: Don't pass -Wno-long-long to a ADA compiler
20633         that doesn't support it.
20634         * configure: Regenerate.
20636 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20638         PR target/5626
20639         * config/sparc/sparc.md (normal_branch, inverted_branch,
20640         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
20641         inverted_fp_branch): Adjust calls to output_cbranch.
20642         Set length attribute.
20643         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
20644         output_v9branch.  Set length attribute.
20645         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
20646         predicates.
20647         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
20648         (output_cbranch): Likewise.  Handle far branches.
20649         (output_v9branch): Handle far branches.
20650         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
20651         Adjust prototypes.
20652         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
20653         noov_compare64_op predicates.
20655 2002-03-13  Jason Merrill  <jason@redhat.com>
20657         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
20658         into the function and constify it.
20659         * gthr-dce.h, gthr-solaris.h: Likewise.
20661 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
20663         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
20664         * config/rs6000/rs6000.c (rs6000_va_arg): Use
20665         std_expand_builtin_va_arg if not ABI_V4.
20667 2002-03-13  Jason Merrill  <jason@redhat.com>
20669         * varasm.c (globalize_decl): New fn.
20670         (assemble_start_function): Use it.
20671         (asm_emit_uninitialized): Use it.
20672         (assemble_alias): Use it.
20673         (assemble_variable): Use it.
20675 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
20677         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
20678         2002-03-12 internal visibility change.
20679         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
20680         visibility into SYMBOL_REF_FLAG.
20682 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
20684         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
20685         VOIDmode operand.  Add compile-time optimization for constant results.
20687 2002-03-12  Jason Merrill  <jason@redhat.com>
20689         * c-typeck.c (convert_for_assignment): Don't allow conversions
20690         between pointers and references.  Only allow lvalues to convert to
20691         reference.
20693 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
20695         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
20696         before prologue, to avoid scheduling problems.
20698 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20700         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
20701         (ELIMINABLE_REGS): Add sfp->sp.
20702         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
20704 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20706         PR optimization/5892
20707         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
20709 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
20711         * loop.c (basic_induction_var): Don't call convert_modes if mode
20712         classes are different.
20714 2002-03-12  Richard Henderson  <rth@redhat.com>
20716         PR optimization/5901
20717         * function.c (reposition_prologue_and_epilogue_notes): Position
20718         the markers after/before the last/first insn not deleted.
20720 2002-03-12  Richard Henderson  <rth@redhat.com>
20722         PR optimization/5878
20723         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
20724         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
20725         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
20727         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
20728         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
20729         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
20731         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
20732         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
20733         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
20734         also.  Don't set it if not flag_pic.
20735         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
20736         to be INVALID_REGNUM when not used.
20738 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
20740         * expmed.c (store_bit_field): Reset alias set for memory.
20741         (extract_bit_field): Same.
20743 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20745         * c-common.c (c_tree_code_type, c_tree_code_length,
20746         c_tree_code_name, add_c_tree_codes): Delete.
20747         * c-common.h (add_c_tree_codes): Delete.
20748         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
20749         Define.
20750         * c-objc-common.c (c_objc_common_init): Don't call
20751         add_c_tree_codes, instead set lang_unsafe_for_reeval.
20752         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
20753         objc_tree_code_name, add_objc_tree_codes): Delete.
20754         (objc_init): Don't call add_objc_tree_codes.
20755         * objc/objc-lang.c (tree_code_type, tree_code_length,
20756         tree_code_name): Define.
20757         * toplev.c (lang_independent_init): Don't set
20758         tree_code_length[IDENTIFIER_NODE].
20759         * tree.c (tree_code_type, tree_code_length, tree_code_name):
20760         Delete definitions, moved to language front-ends.
20761         * tree.def (IDENTIFIER_NODE): Hardwire the length.
20762         * tree.h (tree_code_type, tree_code_length, tree_code_name):
20763         Const-ify.
20764         (tree_code_length): Change type to unsigned char.
20766 2002-03-12  Richard Henderson  <rth@redhat.com>
20768         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
20769         internal visibility change.
20771 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20773         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
20774         validize_mem() instead of change_address to avoid clobbering
20775         memory attributes.
20777 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
20779         * c-lex.h (position_after_whitespace): Remove.
20781 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
20783         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
20784         (lex_string): Use unsigned char pointers.
20786 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
20788         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
20789         is not a valid memory_operand.
20791 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20793         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
20794         * config/xtensa/lib1funcs.asm: Fix copyright to include
20795         special case for libgcc files.
20796         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
20797         (__divsi3): Likewise.
20798         (__umodsi3): Likewise.
20799         (__modsi3): Likewise.
20800         * config/xtensa/lib2funcs.S: Fix copyright to include
20801         special case for libgcc files.
20803 2002-03-12  Tom Rix  <trix@redhat.com>
20805         * collect2.c (resolve_lib_name): Move outside of
20806         OBJECT_FORMAT_COFF ifdef.
20807         (ignore_library): Same.
20809 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20811         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
20813 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
20815         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
20816         to function_section before writing out the constant pool.
20818 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
20820         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
20821         zero_constant.
20822         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
20824 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
20826         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
20827         (adddi3): Likewise.
20828         (movdf): Likewise.
20829         (movdi): Likewise.
20830         (cmpsi splitter): Likewise.
20831         (modsi3): Fail if <= 0.
20832         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
20833         redundant test when HOST_BITS_PER_WIDE_INT != 32.
20834         (reg_or_sub_cint64_operand): Likewise.
20835         (num_insns_constant_wide): Optimize sign extension.
20836         (rs6000_legitimize_address): Likewise.
20838 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
20840         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20841         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
20843 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
20845         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
20846         address calculation.
20848 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
20850         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
20851         scratch register to DImode / TImode.
20852         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
20853         register used does not overlap the target.
20855 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20857         * Makefile.in (debug.o): Depend on debug.h.
20858         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
20859         * debug.c (do_nothing_debug_hooks): Likewise.
20860         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
20861         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
20862         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
20863         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
20864         * dwarfout.c (dwarf_debug_hooks): Likewise.
20865         * integrate.c (output_inline_function): Likewise.
20866         * objc/objc-act.c (synth_module_prologue): Likewise.
20867         * sdbout.c (sdb_debug_hooks): Likewise.
20868         * toplev.c (debug_hooks): Likewise.
20869         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20871 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20873         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
20874         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
20875         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
20876         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
20877         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
20878         * defaults.h (POINTER_SIZE): Define.
20879         * doc/tm.texi (POINTER_SIZE): Document default.
20881 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20883         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
20885 2002-03-11  Richard Henderson  <rth@redhat.com>
20887         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
20888         if rebuild_label_notes_after_reload.
20890 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
20892         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
20893         emit pic register load if "internal" visibility.
20894         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
20895         (cris_expand_builtin_va_arg): Do all computations on trees.
20897 2002-03-11  Richard Henderson  <rth@redhat.com>
20899         * rtlanal.c: Include recog.h.
20900         (keep_with_call_p): Fix thinko.
20901         * Makefile.in (rtlanal.o): Update dependencies.
20903 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
20905         * genflags.c (gen_insn): Use IS_VSPACE.
20906         * genoutput.c (output_insn_data): Likewise.
20907         (process_template): Likewise.
20909 2002-03-11  Richard Henderson  <rth@redhat.com>
20911         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
20913 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
20915         * Makefile.in: Update.
20916         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
20917         Update documentation.
20918         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
20919         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
20921 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
20923         * Makefile.in: Give texi2pod its input file as a command line
20924         argument, not on stdin.
20926 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
20927             Daniel Berlin  <dan@dberlin.org>
20929         C++ alias analysis improvement.
20930         * alias.c (record_component_aliases): Record aliases for base
20931         classes too.
20933 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
20935         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
20937 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
20939         * toplev.c (vms_fopen): Remove, not needed.
20941         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
20943         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
20945         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
20946         for FP, already done later.
20948         * toplev.c (debug_args): Add entry for VMS_DEBUG.
20949         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
20951 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
20953         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
20954         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
20955         LARGEST_EXPONENT_IS_NORMAL for the given mode.
20956         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
20957         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
20958         (ediv, emul, eldexp, esqrt): Likewise.
20959         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
20960         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
20961         (saturate): New function.
20962         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
20963         (make_nan): Use a saturation value instead of a NaN if
20964         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
20965         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
20966         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
20967         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
20968         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
20969         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
20970         !ROUND_TOWARDS_ZERO.
20971         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
20972         (ROUND_TOWARDS_ZERO): Document.
20974 2002-03-11  Andreas Jaeger  <aj@suse.de>
20976         * cfg.c (dump_flow_info): Remove unused variable.
20978 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
20980         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
20981         computations on trees.
20983 2002-03-10  Richard Henderson  <rth@redhat.com>
20985         PR 5693:
20986         * reload.c (copy_replacements_1): New.
20987         (copy_replacements): Use it to recurse through the rtx.
20989 2002-03-10  Richard Henderson  <rth@redhat.com>
20991         * loop.c (strength_reduce): Compute number of iterations as
20992         unsigned HOST_WIDE_INT.
20994 2002-03-10  Richard Henderson  <rth@redhat.com>
20996         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
20997         to move away from the end of the block.
20999 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
21001         PR preprocessor/5899
21002         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
21004 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21006         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
21008         * attribs.c (decl_attributes): Fix signed/unsigned warning.
21010 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
21012         * config/mmix/mmix.c: Improve comments.
21013         (mmix_target_asm_function_prologue): Drop variable
21014         empty_stack_frame.  Don't allocate unused slot above fp.
21015         (mmix_target_asm_function_epilogue): Mirror prologue changes.
21016         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
21017         brace in first column.
21018         (enum reg_class): Ditto.
21019         (FIRST_PARM_OFFSET): Now 0.
21020         (USER_LABEL_PREFIX): Remove #if 0:d definition.
21022 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21024         * combine.c (make_extraction): Fix error in last change.
21026 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21028         * c4x.c (c4x_fp_reglist): Const-ify.
21029         * cris.c (cris_print_operand): Likewise.
21030         * i386.c (ix86_va_arg): Likewise.
21031         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
21032         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
21033         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
21034         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
21035         * mcore.h (regno_reg_class): Likewise.
21036         * mips.c (gen_int_relational): Likewise.
21037         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
21038         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
21039         * pdp11.c (move_costs): Likewise.
21040         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
21041         * s390.c (s390_branch_condition_mnemonic, regclass_map):
21042         Likewise.
21043         * s390.h (regclass_map): Likewise.
21044         * sh.c (shift_amounts): Likewise.
21045         * sh.md (rotlsi3): Likewise.
21047 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21049         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
21050         (ne0+5): Use new clobber to generate proper shift pattern.
21051         Patch by Michael Matz <matz@kde.org>.
21053 2002-03-09  Andreas Schwab  <schwab@suse.de>
21055         * gcc.c (validate_all_switches): Also handle `%W{...}'.
21057 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
21059         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
21061 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
21063         PR middle-end/5877
21064         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
21065         even for non-representable constants.
21067 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21069         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
21070         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
21071         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
21072         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
21073         (pop_function_context): Compute MAY_SHARE parameter for
21074         fixup_var_refs.
21075         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
21076         (gen_mem_addressof): Call fixup_var_refs with new parm.
21078         * combine.c (make_extraction): Don't make extension of CONST_INT.
21080 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21082         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
21083         in o32 and o64 ABIs.
21084         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
21085         but getting fixed-size structs passed in registers regardless of
21086         padding in o32 and o64 ABIs.
21088         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
21089         offset before loading address of argument passed by transparent
21090         reference.
21092 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21094         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
21096 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
21098         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
21099         marker such that registers after it are saved.
21101 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21103         * sparc.c (arith_4096_operand): Fix error in last change.
21105 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21107         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
21108         defaults for MEABI.
21110 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21112         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
21113         vectors.
21115 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
21117         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
21119 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
21121         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
21122         removed; fix return value.
21123         * combine.c (combine_instructions): Dirtify blocks where we failed to
21124         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
21125         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
21127 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21129         * gcse.c (insert_insn_end_bb): Fix typo in last change.
21131 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
21133         * recog.c (peephole2_optimize): Re-distribute EH edges.
21135 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
21137         * expr.c (expand_expr): Use unsave lang hook.
21138         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
21139         (LANG_HOOKS_INITIALIZER): Update.
21140         * langhooks.h (struct lang_hooks): New hook unsave.
21141         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
21142         (unsave_expr_1): Remove unused lang_unsave_expr_now.
21143         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
21144         (unsave_expr_now): Remove.
21145         * tree.h (unsave_expr_now, lang_unsave,
21146         lang_unsave_expr_now): Remove.
21147         (lhd_unsave): New.
21149 2002-03-08  Andreas Jaeger  <aj@suse.de>
21151         * flow.c (propagate_block_delete_insn): Remove unused variable.
21153 2002-03-08  Kazu Hirata  <kazu@hxi.com>
21155         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
21156         insn length for memory load/store.
21158 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
21160         * doc/install.texi (--with-libiconv-prefix): Document.
21162 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
21164         * doc/sourcebuild.texi: Fix typo.
21166 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
21168         PR c/3711
21169         * builtins.c (std_expand_builtin_va_arg): Do all computations on
21170         trees.
21172 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21174         * rtl.c (copy_most_rtx): Move from here ...
21175         * emit-rtl.c (copy_most_rtx): ... to here.
21177 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
21179         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
21180         SUBTARGET_CPP_SIZE_SPEC.
21181         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
21183         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
21185 2002-03-07  Matt Hiller  <hiller@redhat.com>
21187         * gensupport.c (first_dir_md_include): Renamed from include;
21188         change all references.
21189         (last_dir_md_include): Renamed from last_include; change all
21190         references.
21191         (init_md_reader): Unconditionally initialize base_dir whether or
21192         not filename is a relative path.
21194 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
21196         * config/fp-bit.c (_unord_f2): Compile it in even if
21197         US_SOFTWARE_GOFAST is enabled.
21199         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
21200         NULL_RTX.  Set all HFmode operations as NULL_RTX.
21201         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
21202         NULL_RTX, try reversing the comparison and the operands.
21204 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
21206         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
21207         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
21208         and MATCH_OP_DUP.
21210 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
21212         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
21214 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21216         * basic-block.h (fixup_abnormal_edges): Declare.
21217         * reload1.c (fixup_abnormal_edges): New function.
21218         * reg-stack.c (convert_regs): Use it.
21220         * gcse.c (insert_insn_end_bb): Handle trapping insns.
21222         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
21224 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
21226         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
21227         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
21228         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
21229         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
21230         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
21231         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
21232         unless x and y could be infinite.
21233         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
21234         Check that the common type of both arguments is a real, even for
21235         targets without unordered comparisons.  Allow an integer argument
21236         to be compared against a real.
21237         (expand_tree_builtin): Use expand_unordered_cmp.
21238         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
21239         * cse.c (fold_rtx): Likewise.  Fix indentation.
21240         * fold-const.c (fold_real_zero_addition_p): New.
21241         (fold): Use it, and the new HONOR_... macros.
21242         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
21243         * jump.c (reversed_comparison_code_parts): After searching for
21244         the true comparison mode, use HONOR_NANS to decide whether it
21245         can be safely reversed.
21246         (reverse_condition_maybe_unordered): Remove IEEE check.
21247         * simplify-rtx.c (simplify_binary_operation): Use the new macros
21248         to decide which simplifications are valid.  Allow the following
21249         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
21250         and (a - -b) to (a + b).
21251         (simplify_relational_operation): Use HONOR_NANS.
21252         * doc/tm.texi: Document the MODE_HAS_... macros.
21254 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
21256         * combine.c (simplify_comparison): If simplifying a logical shift
21257         right and compare with constant, force the comparison to unsigned.
21259 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
21261         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
21263         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
21264         -mabi=no-altivec
21265         (alt_reg_names): Remove % for vrsave.
21267 2002-03-06  Richard Henderson  <rth@redhat.com>
21269         PR optimization/5844
21270         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
21271         if used indicates we've already emitted one copy of an operand.
21272         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
21273         (gen_split): Supply a non-null used.
21275 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
21277         * reload1.c (reload): Unshare all rtl after reload is done.
21279         * simplify-rtx.c (simplify_plus_minus): Do not abort,
21280         but simply fail if the expression is too complex to simplify.
21281         (simplify_gen_binary): Handle simplify_plus_minus failures.
21283 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
21285         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
21286         consistently call delete_trivially_dead_insns after CSE and GCSE;
21287         fix DFI_life dumping; do jump threading after liveness; do crossjumping
21288         after liveness2; update comment in last crossjumping.
21289         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
21291 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
21293         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
21294         after completing fast dead code elimination.
21296         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
21297         COMPARE operator.
21299 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
21301         * version.c:  Fix misplaced leading blanks on first line.
21303 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
21305         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
21307 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
21309         * cfgcleanup.c (mentions_nonequal_regs): New function.
21310         (thread_jump): Use it.
21311         * toplev.c (rest_of_compilation): Run jump threading after
21312         liveness.
21314 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
21316         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
21317         patch.
21319 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21321         * predict.c (estimate_bb_frequencies): Do not reload the
21322         frequencies from notes.
21324 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
21326         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
21327         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
21329         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
21330         delete_noop_moves): Return indeger.
21331         * flow.c (ndead): New variable.
21332         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
21333         BB argument; update callers.
21334         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
21335         (life_analysis): Do not call purge_all_dead_edges.
21336         (update_life_info): Return number of deleted insns; print statistics.
21337         (update_life_info_in_dirty_blocks): likewise.
21338         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
21339         return number of insns deleted.
21341         * cse.c: Include timevar.h
21342         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
21343         iterate until stabilizes; print statistics; return number of killed
21344         insns.
21345         * Makefile.in: (cse.o): Add timevar.h dependency
21346         * rtl.h (delete_trivially_dead_insns): New.
21347         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
21348         * toplev.c (rest_of_compilation): Update callers.
21350         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
21351         (try_optimize_cfg): Do not update liveness.
21352         (cleanup-cfg): Loop until try_optimize_cfg and dead code
21353         removal stabilizes; use delete_trivially_dead_insns.
21355         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
21357 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
21359         * cppmain.c (setup_callbacks): Disable #pragma and #ident
21360         callbacks when processing assembly language.
21362 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21364         * pa.h (ASM_FILE_END): Define.
21365         * som.h (ASM_FILE_END): Delete.
21367         * pa.c (function_arg): Don't pass floats in general registers in
21368         indirect calls if TARGET_ELF32.
21370 2002-03-05  Richard Henderson  <rth@redhat.com>
21372         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
21374 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
21376         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
21378 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21380         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
21381         -r command line.  Don't hide any symbols if not building
21382         shared libgcc.
21384 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
21386         * cfg.c (dump_flow_info): Warn about profile mismatches.
21387         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
21388         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
21390 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21392         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
21393         wide volatile memory by parts.
21395 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
21397         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
21398         is NULL.
21400 2002-03-05  Richard Henderson  <rth@redhat.com>
21402         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
21404 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
21406         * toplev.c (documented_lang_options): Document more
21407         language-specific options.
21408         * doc/invoke.texi (Warning Options): Correct documentation for
21409         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
21410         * c-decl.c (c_decode_option): Use a table to handle warning options.
21412 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
21414         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
21415         parameter to mmix_encode_section_info.
21416         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
21417         relocatably.  Always produce ELF, not mmo if linking relocatably.
21418         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
21419         first is non-zero, don't add symbol prefix.
21420         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
21421         prototype accordingly.
21423 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
21425         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
21427 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
21429         * configure.in: Increase required makeinfo version to 4.1.
21430         * configure: Regenerate.
21432 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
21434         * .cvsignore: Remove *.info* and genrtl*; these files are generated
21435         elsewhere now.
21437 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
21439         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
21440         * doc/invoke.texi: Fix @math uses.
21442 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
21444         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
21445         removal
21447 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
21449         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
21450         (powerpc-*-eabisimaltivec*): Same.
21452         * config/rs6000/t-ppcendian: New.
21454 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
21456         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
21457         nonimmediate_src_operand and nonimmediate_lsrc_operand to
21458         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
21460 2002-03-03  Richard Henderson  <rth@redhat.com>
21462         * toplev.c (rest_of_decl_compilation): Revert last two changes.
21464 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
21466         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
21467         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
21468         tree.c, config/m68k/m68k.c:
21469         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
21470         REAL_ARITHMETIC blocks unconditional.  Delete some further
21471         #ifdef blocks predicated on REAL_ARITHMETIC.
21472         * flags.h, toplev.c: Delete remaining references to
21473         flag_pretend_float.
21475         * doc/invoke.texi: Remove documentation of -fpretend-float.
21476         * doc/tm.texi: Describe the various REAL_* macros as provided by
21477         real.h, not by the target configuration files.
21479         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
21480         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
21481         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
21482         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
21483         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
21484         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
21485         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
21486         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
21487         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
21488         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
21489         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
21490         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
21491         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
21492         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
21493         config/xtensa/xtensa.h:
21494         Do not define, undefine, or mention in comments any of
21495         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
21496         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
21497         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
21498         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
21499         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
21500         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
21501         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
21502         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
21503         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
21505 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21507         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
21508         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
21509         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
21510         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
21511         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
21512         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
21513         Delete.
21514         * defaults.h (BITS_PER_WORD): Define.
21515         * doc/tm.texi (BITS_PER_WORD): Document default value.
21517         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
21518         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
21519         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
21521 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21523         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
21524         lieu of explicit sizeof/sizeof.
21525         * i386.c (override_options, ix86_init_mmx_sse_builtins,
21526         ix86_expand_builtin): Likewise.
21527         * mips.c (mips_add_gc_roots): Likewise.
21528         * mmix.c (mmix_output_condition): Likewise.
21529         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
21530         altivec_init_builtins): Likewise.
21531         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
21532         * cppexp.c (Nsuff, parse_number): Likewise.
21533         * cppinit.c (builtin_array_end): Likewise.
21534         * gcc.c (n_default_compilers, process_command): Likewise.
21535         * genpreds.c (output_predicate_decls): Likewise.
21536         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
21537         * lcm.c (N_ENTITIES): Likewise.
21538         * stor-layout.c (set_sizetype): Likewise.
21540 2002-03-03  Richard Henderson  <rth@redhat.com>
21542         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
21543         for types or labels.
21545 2002-03-03  Richard Henderson  <rth@redhat.com>
21547         * c-decl.c (start_decl): Initialized variables are not common.
21549 2002-03-02  Per Bothner  <per@bothner.com>
21551         * gcc.c (option_map):  Suport new --bootclasspath option.
21552         --CLASSPATH is now just an alias for --classpath.
21554 2002-03-02  Richard Henderson  <rth@redhat.com>
21556         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
21557         load if "internal" visibility.
21558         * doc/extend.texi: Document visibility meanings.
21560 2002-03-02  Richard Henderson  <rth@redhat.com>
21562         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
21563         to functions as well.
21565 2002-03-02  Richard Henderson  <rth@redhat.com>
21567         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
21568         (handle_visibility_attribute): Don't call assemble_visibility.
21569         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
21570         without asmspec.  Invoke assemble_alias when needed.
21571         * varasm.c (maybe_assemble_visibility): New.
21572         (assemble_start_function, assemble_variable, assemble_alias): Use it.
21574 2002-03-02  Richard Henderson  <rth@redhat.com>
21576         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
21577         invoke ENCODE_SECTION_INFO with first call flag.
21579         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
21580         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
21581         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
21582         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
21583         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
21584         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
21585         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
21586         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
21587         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
21588         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
21589         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
21590         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
21591         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
21592         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
21593         config/mcore/mcore-protos.h, config/mcore/mcore.c,
21594         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
21595         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
21596         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
21597         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
21598         config/sh/sh.h, config/sparc/sparc.h,
21599         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
21600         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
21601         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
21602         FIRST argument.  As needed, examine it and do nothing.
21604         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
21605         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
21606         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
21608         * config/arm/t-pe (pe.o): Add dependencies.
21610 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21612         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
21613         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
21614         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
21615         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
21616         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
21617         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
21618         * defaults.h (BITS_PER_UNIT): Define.
21619         * doc/tm.texi (BITS_PER_UNIT): Document default value.
21621 2002-03-02  Kazu Hirata  <kazu@hxi.com>
21623         * config/h8300/h8300-protos.h: Add a prototype for
21624         compute_a_shift_length.
21625         * config/h8300/h8300.c (h8300_asm_insn_count): New.
21626         (compute_a_shift_length): Likewise.
21627         (h8300_adjust_insn_length): Do not adjust insn length of shift
21628         insns.
21629         * config/h8300/h8300.md (anonymous shift patterns): Use
21630         compute_a_shift_length.
21632 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21634         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
21635         trunc_int_for_mode.
21637         * emit-rtl.c (offset_address): Call update_temp_slot_address.
21639 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
21641         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
21642         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
21643         * flags.h (flag_zero_initialized_in_bss): Declare.
21644         * toplev.c (flag_zero_initialized_in_bss): New flag.
21645         (lang_independent_options): Add flag_zero_initialized_in_bss.
21646         * tree.c (initializer_zerop): New function.
21647         * tree.h (initializer_zerop): Declare.
21648         * varasm.c (assemble_variable): If we can emit bss, put zero
21649         initializers in the bss section.
21651 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
21653         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
21654         like more than one symbol per .weak directive.
21656 2002-03-01  Richard Henderson  <rth@redhat.com>
21658         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
21659         adjust argument_pointer by pretend_args_size.
21660         (ia64_va_start): Adjust va_start address by -pretend_args_size.
21662 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21664         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
21666 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
21668         * toplev.c (rest_of_compilation): Delete dead jumptables before
21669         loop.
21670         * flow.c (delete_dead_jumptables): Make global.
21671         * rtl.h (delete_dead_jumptables): Declare.
21673 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
21675         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
21676         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
21677         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
21679 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21681         * config/h8300/h8300-protos.h: Fix formatting.
21682         * config/h8300/h8300.c: Likewise.
21683         * config/h8300/h8300.h: Likewise.
21685 2002-03-01  Kazu Hirata  <kazu@hxi.com>
21687         * config/h8300/h8300.c (print_operand): Support 16-bit
21688         constant addresses.
21689         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
21691 2002-02-28  Richard Henderson  <rth@redhat.com>
21693         * expmed.c (store_bit_field): Prevent generation of CONCATs;
21694         pun complex values as integers; use gen_lowpart instead of
21695         gen_rtx_SUBREG.
21696         (extract_bit_field): Likewise.
21698 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
21699             David Edelsohn  <edelsohn@gnu.org>
21701         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
21702         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
21703         (SUPPORTS_WEAK): Likewise.
21704         * output.h (add_weak): Add tree param.
21705         * varasm.c (add_weak): Likewise.  Save decl.
21706         (struct weak_syms): Add decl field.
21707         (mark_weak_decls): New function.
21708         (init_varasm_once): ggc_add_root mark_weak_decls.
21709         (assemble_start_function): Use ASM_WEAKEN_DECL.
21710         (assemble_variable): Likewise.
21711         (assemble_alias): Likewise.
21712         (declare_weak): Pass decl to add_weak.
21713         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
21714         (remove_from_pending_weak_list): Declare and define for
21715         ASM_WEAKEN_DECL.
21716         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
21717         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
21718         * defaults.h (SUPPORTS_WEAK): Likewise.
21719         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
21720         .weak for code sym.  Do emit .size for descriptor sym.
21721         (ASM_DECLARE_FUNCTION_SIZE): Define.
21722         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
21723         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
21724         .lglobl unless TARGET_XCOFF.  Formatting fixes.
21725         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
21726         .weak for code sym.
21727         (HANDLE_PRAGMA_WEAK): Remove.
21728         (ASM_WEAKEN_LABEL): Remove.
21729         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
21731 2002-03-01  Jason Merrill  <jason@redhat.com>
21733         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
21734         (TARGET_EXPR_CLEANUP): New macro.
21736 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
21738         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
21739         to take ptr_extend into account as third type of extension.
21740         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
21741         fields used by SUBREG_PROMOTED_UNSIGNED_P.
21742         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
21743         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
21744         * calls.c (precompute_arguments): Use new macro.
21745         (expand_call): Ditto.
21746         * combine.c (nonzero_bits): Ditto.
21747         (record_promoted_value): Ditto.
21748         * expr.c (store_expr): Ditto.
21749         (expand_expr): Ditto.
21750         * function.c (assign_parms): Ditto.
21752 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
21754         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
21755         override -shared and -shared-libgcc.
21757 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
21759         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
21760         of "ultrasparc".
21761         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
21762         to be broken.
21764 2002-02-28  Richard Henderson  <rth@redhat.com>
21766         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
21767         4 cycle latency from MM producers.
21768         (ia64_internal_sched_reorder): Likewise with pipeline flush.
21770 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
21772         * mklibgcc.in: Don't use GNU make extension.
21774 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21776         * c-parse.in (STATIC): New terminal.
21777         (scspec): New non-terminal.  Update productions accordingly.
21778         (program): Remove bogus ifc / end ifc.
21779         (array_declarator): Simplify production using STATIC.
21781 2002-02-28  Jim Meyering  <meyering@lucent.com>
21783         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
21784         \a still means TARGET_BELL.
21786 2002-02-28  Richard Henderson  <rth@redhat.com>
21788         * haifa-sched.c (sched_emit_insn): New.
21789         (schedule_block): Use last_scheduled_insn to track last insn.
21790         * sched-int.h (sched_emit_insn): Prototype.
21791         * config/ia64/ia64.c (last_issued): Remove.
21792         (ia64_variable_issue): Don't set it.
21793         (nop_cycles_until): Use sched_emit_insn.
21795 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
21797         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
21798         extended constants.
21800 2002-02-28  Kazu Hirata  <kazu@hxi.com>
21802         * config/h8300/h8300.c: Fix formatting.
21803         * config/h8300/h8300.h: Likewise.
21805 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
21807         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
21808         which may overwrite the high byte of the frame pointer.
21810 2002-02-28  Bo Thorsen  <bo@suse.de>
21812         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
21813         (STARTFILE_SPEC): Add 64 bit files.
21814         (ENDFILE_SPEC): Likewise.
21816 2002-02-28  Jason Merrill  <jason@redhat.com>
21818         * c-decl.c (finish_function): Only warn about missing return
21819         statement with -Wreturn-type.
21821 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
21823         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
21825         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
21826         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
21828 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
21830         * basic-block.h (BB_REACHABLE): Renumber.
21831         (BB_DIRTY, BB_NEW): New flags.
21832         (clear_bb_flags): Declare.
21833         (update_life_info_in_dirty_blocks): Declare.
21834         * cfg.c (clear_bb_flags): New function.
21835         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
21836         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
21837         reorder_insns, emit_insn_after): Mark block as dirty.
21838         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
21839         (update_life_info_in_dirty_blocks): New function.
21840         * recog.c (apply_change_group): Dirtify block.
21842         * cse.c (cse_insn): Reorder emitting of jump insn to keep
21843         cfg consistent.
21844         * gcse.c (delete_null_pointer_checks): Likewise.
21846         * toplev.c (dump_file_index): Move cse2 after bp,
21847         add DFI_null
21848         (dump_file_info): Similary.
21849         (rest_of_compilation): Avoid most of CFG rebuilds;
21850         do first if converision after null pointer checks, do cse2
21851         after branch prediction; avoid full liveness rebuild after
21852         initializing subregs.
21853         * invoke.texi (-d options): Document -du, renumber.
21855         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
21856         (notice_new_block): Do not set BB_UPDATE_LIFE.
21857         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
21858          merge_blocks_move_successor_nojumps, merge_blocks,
21859          try_crossjump_to_edge): Likewise.
21860         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
21861         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
21862         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
21863         (merge_of_block): Do not use life_data_ok.
21864         (find_if_case_1): Do not use SET_UPDATE_LIFE.
21865         (if_convert): Use BB_DIRTY mechanizm to update life.
21866         * lcm.c (optimize_mode_switching): Update
21867         update_life_info_in_dirty_blocks
21869 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
21871         * Makefile.in (integrate.o): Update.
21872         * c-decl.c (copy_lang_decl): Rename.
21873         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
21874         * integrate.c: Include langhooks.h.
21875         (copy_decl_for_inlining): Update to use langhook.
21876         * langhooks-def.h (lhd_do_nothing_t,
21877         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
21878         (LANG_HOOKS_INITIALIZER): Update.
21879         * langhooks.c (lhd_do_nothing_t): New.
21880         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
21881         * tree.h (copy_lang_decl): Remove.
21882 objc:
21883         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
21885 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
21887         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
21888         POST_DEC, and POST_MODIFY.
21890 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21892         * c-typeck.c (digest_init): Remove unused parameter; all
21893         callers changed.
21895 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
21897         * expmed.c (expand_shift): Correctly test for low part of a
21898         subreg.
21900 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
21902         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
21903         insn UIDs with insn addresses.
21905 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21907         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
21908         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
21909         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
21910         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
21911         gcc.c, toplev.c: Delete code implementing -traditional mode.
21913         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
21914         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
21915         Document removal of -traditional mode for compilation, and
21916         remove documentation only relevant to that mode.
21918         * config/nextstep.h, config/ptx4.h, config/svr4.h,
21919         config/convex/convex.h, config/d30v/d30v.h,
21920         config/i386/dgux.h, config/i386/osf1elf.h,
21921         config/i386/osfelf.h, config/i386/osfrose.h,
21922         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
21923         config/m68k/hp310.h, config/m88k/dgux.h,
21924         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
21925         config/m88k/m88k.h, config/m88k/openbsd.h,
21926         config/mips/abi64.h, config/mips/osfrose.h,
21927         config/mips/svr4-5.h, config/mips/svr4-t.h,
21928         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
21929         config/stormy16/stormy16.h: Remove all references to
21930         -traditional from target specs.  Delete all mention of the
21931         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
21932         delete a couple of commented-out definitions of
21933         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
21934         to -traditional.
21936         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
21937         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
21939 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
21941         * mklibgcc.in: Don't use \n in a line subject to
21942         interpretation by echo.
21944 2002-02-27  Graham Stott  <grahams@redhat.com>
21946         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
21947         Constify NAME.
21949         * loop.c (prescan_loop): Handle PARALLEL.
21951         * unroll.c (loop_iterations): Return 0 if the add_val for
21952         a BIV is REG.
21954         * final.c (output_operand_lossage): Constify PFX_STR.
21956         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
21958 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
21960         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
21961         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
21963 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
21965         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
21967 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
21969         * cpplex.c (_cpp_lex_token): Handle directives in macro
21970         arguments.
21971         * cpplib.c (_cpp_handle_directive): Save and restore state
21972         if parsing macro args when entering a directive.
21973         * cppmacro.c (collect_args): No need to handle directives
21974         in macro arguments.
21975         (enter_macro_context, replace_args): Use the original macro
21976         definition in case it was redefined whilst collecting arguments.
21977 doc:
21978         * cpp.texi: Update.
21980 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
21982         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
21983         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
21984         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
21985         method on AIX.
21986         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
21987         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
21988         (load_toc_v4_PIC_2): Same.
21990 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
21992         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
21994 2002-02-26  Richard Henderson  <rth@redhat.com>
21996         * config/alpha/alpha.md (ashldi_se): Re-enable.
21998 2002-02-26  Richard Henderson  <rth@redhat.com>
22000         * config/alpha/alpha.c (alpha_encode_section_info): Examine
22001         MODULE_LOCAL_P; improve commentary.
22003 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
22005         * doc/cpp.texi: Clarify documentation of relationship between
22006         #line and #include.
22008 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22010         * config/h8300/h8300-protos.h: Update the prototype for
22011         compute_logical_op_length.  Add the prototype for
22012         compute_logical_op_cc.
22013         * config/h8300/h8300.c (compute_logical_op_length): Figure out
22014         code from operands.
22015         (compute_logical_op_cc): New.
22016         * config/h8300/h8300.md: Combine all the logical op patterns
22017         in HImode and SImode.  Use compute_logical_op_cc.
22019 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
22021         * config/i386/i386.c (print_operand): Don't append ATT-style
22022         length suffixs to x87 opcodes when in Intel mode.
22024 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
22026         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
22027         (init_emit_once): Update calls.
22028         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
22029         (init_syntax_once): Prototype.
22031 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22033         * pa-linux.h (LIB_SPEC): Update definition.
22034         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
22036 2002-02-26  Richard Henderson  <rth@redhat.com>
22038         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
22039         if we emitted a stop bit.
22041 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22043         * configure.in (libgcc_visibility): Substitute.
22044         * configure: Rebuilt.
22045         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
22046         defined symbols .hidden.
22048 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22050         * attribs.c (c_common_attribute_table): Add visibility.
22051         (handle_visibility_attribute): New function.
22052         * varasm.c (assemble_visibility): New function.
22053         * output.h (assemble_visibility): Add prototype.
22054         * tree.h (MODULE_LOCAL_P): Define.
22055         * crtstuff.c (__dso_handle): Use visibility attribute.
22056         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
22057         for MODULE_LOCAL_P symbols too.
22058         * config/ia64/ia64.c (ia64_encode_section_info): Handle
22059         MODULE_LOCAL_P symbols the same way as local symbols.
22060         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
22061         into .sdata/.sbss by the user.
22062         * doc/extend.texi (Function Attributes): Document visibility
22063         attribute.
22065 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
22067         PR debug/5770
22068         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
22069         STRING_CST initializer spanning the whole variable without
22070         embedded zeros.
22071         If expand_expr returned MEM, don't use it.
22073 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
22075         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
22076         generate a die for the lexical block.
22078 2002-02-26  Kazu Hirata  <kazu@hxi.com>
22080         * config/h8300/h8300-protos.h: Add a prototype for
22081         compute_logical_op_length.
22082         * config/h8300/h8300.c (compute_logical_op_length): New.
22083         * config/h8300/h8300.md (anonymous logical patterns): Use
22084         compute_logical_op_length for length.
22086 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22088         * dwarf2out.c (modified_type_die): Do not call type_main_variant
22089         for vectors.
22090         (gen_type_die): Same.
22092         * attribs.c (handle_vector_size_attribute): Set debug information.
22094 2002-02-26  Daniel Egger  <degger@fhm.edu>
22096         * config/rs6000/rs6000.md: Swap define_insn attributes to
22097         fix incorrect generation of merge high instructions instead
22098         of merge low.
22100 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22102         * c-typeck.c (really_start_incremental_init): Use
22103         bitsize_zero_node for vectors.
22105 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
22107         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
22108         ("*set_vrsave_internal"): Same.
22110 2002-02-25  Richard Henderson  <rth@redhat.com>
22112         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
22113         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
22115 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
22117         PR target/5755
22118         * config/i386/i386.c (ix86_return_pops_args): Only pop
22119         fake structure return argument if it was passed on the stack.
22121 2002-02-25  Jason Merrill  <jason@redhat.com>
22123         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
22124         RESULT_DECL.
22126 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22128         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
22129         link with shared_name only.
22130         * doc/invoke.texi (Link Options): Document new behavior.
22132 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22134         * c-typeck.c (push_init_level): Handle vectors.
22136 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
22138         * config/sparc/sparc.c (const64_high_operand): Zero-extend
22139         operands of SPARC_SETHI_P.
22140         (input_operand): Likewise.
22141         (sparc_emit_set_const32): Likewise.
22142         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
22143         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
22144         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
22145         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
22146         (movdi_insn_sp64_vis): Likewise.
22147         (movdi split, movdf split): Use SETHI32.
22148         * doc/md.texi: Document SPARC constraints L, M and N.
22150 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
22152         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
22153         ("*set_vrsave_internal"): use mfspr for Darwin.
22155         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
22156         gen_get_vrsave_internal.
22158 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22160         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
22162 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
22164         * cpplex.c (cpp_interpret_charconst): Get signedness or
22165         otherwise of wide character constants correct.
22166         * cppexp.c (lex): Get signedness of wide charconsts correct.
22168 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22170         * optabs.c (widen_operand): Only call convert_modes for
22171         promoted SUBREG if signedness matches.
22172         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
22174 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22176         * cpplib.c (glue_header_name): Use local buffer to build up
22177         header name.
22179 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22181         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
22183 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22185         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
22186         H8/300[HS] separately.
22187         * config/h8300/h8300.md: Remove the early clobber constraint
22188         from bit field patterns.
22190 2002-02-23  Kazu Hirata  <kazu@hxi.com>
22192         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
22193         register_operand.
22194         (mulhisi3): Likewise.
22195         (umulqisi3): Likewise.
22196         (umulhisi3): Likewise.
22198 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
22200         * cppinit.c (output_deps): Correct test for stdout output.
22201         (init_dependency_output): Cure warning.
22203 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22205         * expr.c (store_expr): When converting expression to promoted
22206         equivalent type, allow using SUBREG_REG of TARGET as the target
22207         of the expansion of EXP.
22208         * loop.c (basic_induction_var, case SUBREG): Always look inside.
22209         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
22210         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
22211         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
22212         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
22214 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
22216         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
22217         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
22218         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
22220 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
22222         PR optimization/5747
22223         * loop.c (scan_loop): Update reg info if move_movables created new
22224         pseudos.
22226 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
22228         * gcc.c (init_gcc_spec): Revert last change.
22230 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
22232         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
22233         gpc_reg_operand constraint.
22235 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
22237         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
22238         Simplify comparison of `low'.
22239         (add_operand): Fix formatting.
22240         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
22241         (mask_operand): Disallow mask to wrap in 64-bit mode.
22242         (rs6000_stack_info): Remove redundant test setting push_p.
22243         (output_toc): Fix formatting.
22244         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
22245         cc_reg_not_cr0_operand constraint.
22246         (booldi3, boolcdi3 splitters): Same.
22248 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
22250         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
22252 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
22254         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
22255         gcc invoked with -shared-libgcc.
22257 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
22259         PR c++/5748
22260         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
22261         decl if any of elements was TREE_USED.
22263 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
22265         * config/sparc/sol2.h: Don't include sys/mman.h.
22266         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
22267         (arith_4096_operand): Don't throw high bits away.
22268         (const64_operand): Take sign extension of CONST_INTs into account.
22269         (const64_high_operand, sparc_emit_set_const32): Likewise.
22270         (GEN_HIGHINT64): Likewise.
22271         (sparc_emit_set_const64_quick1): Likewise.
22272         (const64_is_2insns): Likewise.
22273         (print_operand): Use trunc_int_for_mode for sign extension.
22274         * config/sparc/sparc.h (SMALL_INT32): Likewise.
22275         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
22276         chars.  Assume CONST_INT is already properly sign-extended.
22277         (movdi split): Sign-extend each SImode part.
22278         (andsi3 split): Don't mask high bits off, so that result
22279         remains properly sign-extend.
22280         (iorsi3 split): Likewise.
22281         (xorsi3 split): Likewise.
22283 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
22285         * fold-const.c (fold): Fix typo in comments.
22287 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
22289         * Makefile.in (langhooks.o): Update dependencies.
22291 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
22293         * langhooks.c: Include flags.h.
22295 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
22297         * testsuite/gcc.dg/attr-alwaysinline.c: New.
22299         * c-common.c (c_common_post_options): Set inline trees by
22300         default.
22302         * doc/extend.texi (Function Attributes): Document always_inline
22303         attribute.
22304         Update documentation about inlining when not optimizing.
22306         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
22308         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
22309         unless DECL_ALWAYS_INLINE.
22311         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
22312         unless DECL_ALWAYS_INLINE.
22313         (c_disregard_inline_limits): Disregard if always_inline set.
22315         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
22316         Disregard if always_inline set.
22317         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
22318         unless DECL_ALWAYS_INLINE.
22320         * attribs.c (handle_always_inline_attribute): New.
22321         (c_common_attribute_table): Add always_inline.
22323         * config/rs6000/altivec.h: Add prototypes for builtins
22324         requiring the always_inline attribute.
22326 2002-02-21  Eric Christopher  <echristo@redhat.com>
22328         * expmed.c (store_bit_field): Try to simplify the subreg
22329         before generating a new one when when the mode size of
22330         value is less than maxmode.
22332 2002-02-21  Richard Henderson  <rth@redhat.com>
22334         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
22335         than gen_rtx_PLUS to form the sum.
22336         * explow.c (force_reg): Rearrange to not allocate new pseudo
22337         when force_operand returns a register.
22338         * expr.c (expand_assignment): Allow offset_rtx expansion to
22339         return a sum.  Do not force addresses into registers.
22340         (expand_expr): Likewise.
22341         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
22342         to canonicalize arithmetic that didn't simpify.
22343         (simplify_plus_minus): New argument force; update
22344         all callers.  Don't split CONST unless we can do something with it,
22345         and wouldn't lose the constness of the operands.
22347         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
22348         that we generated earlier.
22350 2002-02-21  Tom Tromey  <tromey@redhat.com>
22352         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22353         (output_line_info): Use constant `1', with a long explanatory
22354         comment.
22355         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
22357 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
22359         * jump.c (redirect_jump): If old label has no UID, don't try to
22360         delete it.
22362 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
22364         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
22365         If input is constant, do shifts at compile time.
22367 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
22369         * doc/extend.texi: Fix some more overfull hboxes.
22371 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22373         PR optimization/4994
22374         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
22375         register moves.
22377 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22379         PR c++/4574
22380         * expr.h (expand_and): Add mode argument.
22381         * expmed.c (expand_and): Add mode argument.
22382         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
22383         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
22384         * except.c (expand_builtin_extract_return_addr): Likewise.
22385         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
22386         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
22387         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
22388         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
22389         * config/c4x/c4x.md: Use GEN_INT (x) instead of
22390         gen_rtx (CONST_INT, VOIDmode, x).
22392 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
22394         PR c/4697:
22395         * stmt.c (warn_if_unused_value): Move side effects test once more.
22397 2002-02-20  Torbjorn Granlund  <tege@swox.com>
22399         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
22400         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
22402 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
22404         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
22405         SUBREG or ZERO_EXTEND.
22407 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
22409         * sh.h (current_function_anonymous_args): Remove.
22410         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
22411         of current_function_varargs and current_function_stdarg is set.
22412         * sh.c (sh_expand_prologue): Check current_function_varargs /
22413         current_function_stdarg / TARGET_SH5 instead of
22414         current_function_anonymous_args.
22416         * sh64.h (TARGET_VERSION): Define.
22418 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
22420         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
22421         VRSAVE_REGNO on TARGET_ALTIVEC.
22423 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
22425         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
22426         bits of SImode const_int.
22427         (includes_rshift_p): Likewise.
22428         (print_operand): Call mask_operand and mask64_operand with correct
22429         mode.
22430         (rs6000_output_function_epilogue): Pad traceback table to word.
22431         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
22432         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
22433         mask64_operand with correct mode.
22434         (FUNCTION_ARG_REGNO_P): Correct parentheses.
22436 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22438         PR debug/4461
22439         * varasm.c (get_pool_constant_mark): New.
22440         * rtl.h (get_pool_constant_mark): Add prototype.
22441         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
22442         be represented if it has not been output.
22444 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
22446         * combine.c (do_SUBST): Sanity check substitutions of
22447         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
22448         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
22449         CONST_INT into its operand.
22450         (known_cond): Likewise, for ZERO_EXTEND.
22451         * simplify-rtx.c (simplify_unary_operation): Fix condition to
22452         allow for simplification of wide modes.  Reject CONST_INTs in
22453         ZERO_EXTEND when their actual mode is not given.
22455 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
22457         * c-decl.c (pushdecl): If no global declaration is found for an
22458         extern declaration in block scope, try a limbo one.
22460 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22462         PR c++/4401
22463         * c-common.c (pointer_int_sum): Moved from...
22464         * c-typeck.c (pointer_int_sum): ...here.
22465         * c-common.h (pointer_int_sum): Add prototype.
22467 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
22469         PR c++/5713
22470         * c-decl.c (duplicate_decls): Return 0 if issued error about
22471         redeclaration.
22473 2002-02-20  Roger Sayle  <roger@eyesopen.com>
22474             Jakub Jelinek  <jakub@redhat.com>
22476         PR c/4389
22477         * tree.c (host_integerp): Ensure that the constant integer is
22478         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
22479         when pos is zero or non-zero respectively.  Clarify comment.
22480         * c-format.c (check_format_info_recurse): Fix host_integerp
22481         usage; the pos argument should be zero when assigning to a
22482         signed HOST_WIDE_INT.
22484 2002-02-20  Richard Henderson  <rth@redhat.com>
22486         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
22487         of the operand, rather than assuming TImode.
22488         (ix86_expand_binop_builtin): Cope with commutative patterns
22489         using nonimmediate_operand for both operands.
22490         (ix86_expand_timode_binop_builtin): Likewise.
22491         (ix86_expand_store_builtin): Validate operand 1.
22492         (ix86_expand_unop1_builtin): Likewise.
22494 2002-02-20  Philip Blundell  <philb@gnu.org>
22496         PR 5705
22497         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
22499 2002-02-20  Richard Henderson  <rth@redhat.com>
22501         PR c/5615
22502         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
22504 2002-02-20  Tom Tromey  <tromey@redhat.com>
22506         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22507         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22508         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22509         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
22510         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
22511         unconditionally.
22513 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
22515         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
22516           for (const_int 0) in X not just INTVAL.
22518 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
22520         * doc/extend.texi: Avoid or reduce overfull hboxes.
22522 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
22524         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
22525         operations if the field does not start at a mode boundary.
22527 2001-02-20      Joel Sherrill <joel@OARcorp.com>
22529         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
22530         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
22531         Also done for -Acpu and -Amachine.
22533 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
22535         * cppinit.c (init_dependency_output): Take deps output file
22536         from -o if none given with -MF.  Suppress normal output.
22537         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
22538         * doc/cpp.texi, doc/invoke.texi: Update.
22540 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
22542         * toplev.c (output_quoted_string): Write unprintable
22543         characters with octal escapes.
22545 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
22547         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
22548         really_call_used[VRSAVE_REGNO] if not Altivec.
22550 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
22552         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
22553         MODE_MASK.
22554         (constant_pool_expr_1): Fix formatting.
22555         (rs6000_legitimize_reload_address): Likewise.
22557 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22559         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
22560         now that we have one.
22562 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
22564         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
22565         end of first block of bitfields (which was only seven bits);
22566         rename dummy to unused_1; remove comment which is no longer true.
22568 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
22570         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
22572 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
22574         PR 5399
22575         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
22576         if generating PIC.
22578         PR 5054
22579         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
22580         arm_is_longcall_p rather than inspecting call-type cookie
22581         directly.
22582         (call_value_insn) [TARGET_THUMB]: Likewise.
22584 2002-02-19  Graham Stott  <grahams@redhat.com>
22586         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
22588 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
22590         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
22591         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
22592         (FP_SAVE_INLINE): Delete.
22594         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
22595         * config/rs6000/eabi.asm: Remove ABI save restore routines.
22596         * config/rs6000/t-ppccomm: Build crtsavres.o.
22597         * config/rs6000/crtsavres.asm: New file.
22599 2002-02-19  Philip Blundell  <philb@gnu.org>
22601         * config/arm/arm.c (use_return_insn): Don't reject interrupt
22602         functions.
22603         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
22604         (output_return_instruction): Allow interrupt functions to return with
22605         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
22606         (arm_expand_prologue): Subtract 4 before stacking LR in an
22607         interrupt function.
22609 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
22611         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
22612         decl, not just FUNCTION_DECL.
22613         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
22614         (arm_assemble_integer): Likewise.
22615         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
22616         marked local.
22618 2002-02-19  matthew green  <mrg@eterna.com.au>
22620         * config.gcc (sparc-*-netbsdelf*): Enable target.
22621         (sparc64-*-netbsd*): New target.
22622         * config/sparc/netbsd-elf.h: New file.
22623         * config/sparc/t-netbsd64: New file.
22625 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
22627         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
22629 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
22631         * doc/invoke.texi: explicitly list the style guidelines that
22632         -Weffc++ checks for.
22634 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
22636         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
22638 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
22640         PR other/5718
22641         * gcc.c (cpp_unique_options): Treat -o as indicating object file
22642         only if not -E.  If -E, pass -o through to the preprocessor.
22644 2002-02-19  Kazu Hirata  <kazu@hxi.com>
22646         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
22647         register number with an appropriate macro.
22649 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
22651         * doc/rtl.texi (Constants): Close @code tag.
22653 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
22655         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
22656         ("mmx_uavgv4hi3"): Same.
22657         ("pmulhrwv4hi3"): Same.
22659         * tree-inline.c (walk_tree): Handle vectors.
22661         * c-common.c (constant_expression_warning): Handle vectors.
22662         (overflow_warning): Same.
22664         * sched-deps.c (sched_analyze_2): Handle vectors.
22666         * rtlanal.c (rtx_unstable_p): Handle vectors.
22667         (rtx_varies_p): Same.
22668         (count_occurrences): Same.
22669         (regs_set_between_p): Same.
22670         (modified_between_p): Same.
22671         (modified_in_p): Same.
22672         (volatile_insn_p): Same.
22673         (volatile_refs_p): Same.
22674         (side_effects_p): Same.
22675         (may_trap_p): Same.
22676         (inequality_comparisons_p): Same.
22677         (replace_regs): Same.
22678         (computed_jump_p_1): Same.
22680         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
22681         argument.
22682         (inner_mode_array): New.
22683         (copy_rtx): Handle vectors.
22684         (copy_most_rtx): Same.
22685         (rtx_equal_p): Same.
22686         (get_mode_alignment): Adjust for vectors.
22688         * resource.c (mark_referenced_resources): Handle vectors.
22689         (mark_set_resources): Same.
22691         * reload1.c (eliminate_regs): Handle vectors.
22692         (elimination_effects): Same.
22693         (scan_paradoxical_subregs): Same.
22695         * reload.c (subst_reg_equivs): Handle vectors.
22697         * regrename.c (scan_rtx): Handle vectors.
22699         * regclass.c (reg_scan_mark_refs): Handle vectors.
22701         * recog.c (find_single_use_1): Handle vectors.
22703         * local-alloc.c (equiv_init_varies_p): Handle vectors.
22704         (contains_replace_regs): Same.
22705         (memref_referenced_p): Same.
22707         * integrate.c (copy_rtx_and_substitute): Handle vectors.
22708         (subst_constants): Same.
22710         * genattrtab.c (attr_copy_rtx): Handle vectors.
22711         (encode_units_mask): Same.
22712         (clear_struct_flag): Same.
22713         (count_sub_rtxs): Same.
22715         * gcse.c (want_to_gcse_p): Handle vectors.
22716         (oprs_unchanged_p): Same.
22717         (hash_expr_1): Same.
22718         (oprs_not_set_p): Same.
22719         (expr_killed_p): Same.
22720         (compute_transp): Same.
22721         (store_ops_ok): Same.
22723         * function.c (purge_addressof_1): Do not allow paradoxical subregs
22724         of vectors.
22725         (fixup_var_refs_1): Same.
22726         (instantiate_virtual_regs_1): Same.
22728         * fold-const.c (operand_equal_p): Handle vectors.
22729         (fold): Same.
22730         (rtl_expr_nonnegative_p): Same.
22732         * flow.c (mark_used_regs): Handle vectors.
22734         * df.c (df_uses_record): Handle vectors.
22736         * cselib.c (cselib_subst_to_values): Handle vectors.
22737         (cselib_mem_conflict_p): Same.
22738         (hash_rtx): Same.
22740         * cse.c (canon_reg): Handle vectors.
22741         (fold_rt): Same.
22742         (cse_process_notes): Same.
22743         (count_reg_usage): Same.
22744         (canon_hash): Same.
22746         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
22748         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
22750         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
22751         (gen_rtx): Handle CONST_VECTOR.
22752         (gen_const_vector_0): New.
22753         (copy_rtx_if_shared): CONST_VECTORs can be shared.
22754         (reset_used_flags): Same.
22755         (copy_insn_1): Same.
22756         (initializer_constant_valid_p): Handle VECTOR_CST.
22758         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
22760         * doc/rtl.texi (Constants): Document const_vector.
22761         (CONST0_RTX): Update for vectors.
22762         (RTL sharing): Same.
22764         * print-tree.c (print_node): Add case for VECTOR_CST.
22766         * tree.h (TREE_VECTOR_CST_ELTS): New.
22767         (struct tree_vector): New.
22768         (union tree_node): Add vector node.
22769         (build_vector): Add prototype.
22771         * tree.def (VECTOR_CST): New.
22773         * tree.c (build_vector): New.
22775         * expmed.c (make_tree): Handle CONST_VECTOR.
22777         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
22778         (CONST_VECTOR_ELT): New.
22779         (CONST_VECTOR_NUNITS): New.
22781         * machmode.h (GET_MODE_INNER): New.
22782         (DEF_MACHMODE): Accept 8th arg.
22784         * machmode.def: Add 8th argument for vector inner mode.
22785         Add inner vector modes for vectors.
22787         * rtl.def (VEC_CONST): Remove.
22788         (CONST_VECTOR): New.
22790         * expr.c (clear_storage): Allow vectors.
22791         (is_zeros_p): Handle VECTOR_CST.
22793         * varasm.c (output_constant_pool): Handle vectors.
22794         (rtx_const): Add veclo and vechi fields.
22795         (kind): Add RTX_VECTOR.
22796         (decode_rtx_const): Add case for vector.
22798         * config/rs6000/rs6000-protos.h: Add zero_constant.
22800         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
22801         constants.  Force easy vector constants into memory.
22802         (easy_vector_constant): New.
22803         (emit_easy_vector_constant): New.
22804         (rs6000_legitimize_reload_address): Do not generate bad reloads on
22805         darwin.
22807         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
22808         instruction does.
22809         ("altivec_lvxl"): Same.
22810         (altivec_lvebx): Same.
22811         (altivec_lvehx): Same.
22812         (altivec_lvewx): Same.
22813         ("*movv4si_const0"): New.
22814         ("*movv4sf_const0"): New.
22815         ("*movv8hi_const0"): New.
22816         ("*movv16qi_const0"): New.
22818 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22820         * config/h8300/h8300.c (notice_update_cc): Use
22821         cc_status.value2.
22823 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22825         * config/h8300/h8300.md (divmod patterns): Change the
22826         constraints for operands[1] to register_operand.
22828 2002-02-18  Kazu Hirata  <kazu@hxi.com>
22830         * config/h8300/h8300-protos.h: Remove the prototype for
22831         p_operand.
22832         * config/h8300/h8300.c (p_operand): Remove.
22833         * config/h8300/h8300.md: Replace p_operand with
22834         const_int_operand.
22836 2002-02-18 Philip Blundell <pb@nexus.co.uk>
22838         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
22839         comment.
22840         (output_return_instruction): Allow use of LDR to unstack
22841         return addresss even for interrupt handlers or when
22842         interworking.  If compiling for ARMv5, use interworking-safe
22843         return instructions by default.  Remove duplicated code and
22844         lengthy "strcat" sequences.
22846 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
22848         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
22849         (LINK_EH_SPEC): Define.
22850         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
22852 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
22854         * config/s390/s390.c (s390_emit_prologue): Do not set the
22855         frame_related flag for call-clobbered registers.
22857 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
22859         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
22860         (construct_container): Fix handling of SSE operands.
22861         (ix86_expand_builtin): Fix handling of 64bit pointers.
22862         (mmx_maskmovq_rex): New pattern.
22864 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
22866         * regrename.c (kill_set_value): Handle subregs properly.
22868 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
22870         * objc/objc-act.c (handle_impent): Remove leading '*'
22871         from objc_class_name.
22873 2002-02-17  Richard Henderson  <rth@redhat.com>
22875         * config/alpha/alpha.c (some_small_symbolic_operand,
22876         some_small_symbolic_operand_1, split_small_symbolic_operand,
22877         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
22878         Handle small SYMBOL_REFs anywhere, not just inside memories.
22879         * config/alpha/alpha-protos.h: Update.
22880         * config/alpha/alpha.h (PREDICATE_CODES): Update.
22881         * config/alpha/alpha.md (small symbolic operand splitter): Update.
22883 2002-02-17  Roland McGrath  <roland@frob.com>
22885         * config.gcc (powerpc-*-gnu-gnualtivec*,
22886         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
22887         * config/rs6000/gnu.h: New file.
22888         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
22889         Grok "gnu" in rs6000_abi_name.
22890         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
22891         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
22892         Grok -mcall-gnu analogous to -mcall-linux et al.
22893         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
22894         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
22895         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
22897 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
22899         PR c/3444:
22900         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
22901         shortening.
22903 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22905         * config/cris/cris.h: Undefine STARTFILE_SPEC and
22906         ENDFILE_SPEC before (re)defining them.
22908 2002-02-17  Kazu Hirata  <kazu@hxi.com>
22910         * config/h8300/h8300.c: Fix formatting.
22911         * config/h8300/h8300.h: Likewise.
22913 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22915         * doc/tm.texi: Explain why empty strings should not be
22916         marked for translation.
22918 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22920         * final.c (output_operand_lossage): Changed to accept
22921         printf style arguments. Change calls where necessary.
22922         * output.h (output_operand_lossage): Change declaration
22923         accordingly. Update copyright.
22924         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
22925         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
22926         Update copyright date where necessary.
22928         * config/i386/i386.c (print_operand): Likewise. Remove use of
22929         sprintf.
22931         * config/cris/cris.c (cris_operand_lossage): Likewise.
22932         Rename parameter so that exgettext recognizes it as
22933         translatable message.
22934         (LOSE_AND_RETURN): Rename parameter to msgid.
22936 2002-02-17  Kazu Hirata  <kazu@hxi.com>
22938         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
22939         hard coded register number with an appropriate macro.
22940         (HARD_REGNO_MODE_OK): Likewise.
22941         (ARG_POINTER_REGNUM): Likewise.
22942         (STATIC_CHAIN_REGNUM): Likewise.
22943         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
22944         * config/h8300/h8300.md (define_constants): Define more
22945         register numbers.
22947 2002-02-17  Philipp Thomas  <pthomas@suse.de>
22949         * config/i386/i386.h: Don't mark empty strings for translation.
22951 2002-02-16  H.J. Lu <hjl@gnu.org>
22953         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
22955 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
22957         * cppinit.c (merge_include_chains): Check for brack being
22958         NULL before attempting to merge it with qtail.
22960 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
22962         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
22963         DBX_DEBUG.
22965 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22967         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
22969 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22971         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
22972         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
22973         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
22975 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22977         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
22978         now only if !TARGET_FIX.
22979         (*movsi_nt_vms_fix): New pattern.
22981 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
22983         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
22984         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
22985         (alpha_sa_mask, alpha_sa_size): Reflect above change.
22986         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
22987         (alpha_start_function, alpha_expand_epilogue): Likewise.
22988         (unicosmk_gen_dsib): Likewise.
22990 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
22992         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
22994 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
22996         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
22997         check_and_change_labels, s390_final_chunkify): Delete.
22998         (s390_split_branches, s390_chunkify_pool): New functions.
22999         (s390_function_prologue): Call them.
23001         * config/s390/s390.h (S390_REL_MAX): Delete.
23002         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
23004         * config/s390/s390.md (cjump, icjump, jump): Fix length
23005         attribute calculation.
23008 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
23010         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
23011         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
23013 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23015         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
23016         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
23017         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
23019 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23021         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
23023 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
23025         * reload.c (find_dummy_reload): Check that an output register
23026         is valid for its mode.
23028 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
23030         * combine.c (known_cond): After replacing the REG of a SUBREG, try
23031         to simplify it.
23033         * function.c (assign_parms): Demote promoted argument passed by
23034         transparent reference.
23036 2001-02-14      Joel Sherrill <joel@OARcorp.com>
23038         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
23039         -Acpu() and -Amachine() to eliminate warnings.
23041 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
23043         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
23045 2002-02-14  Kazu Hirata  <kazu@hxi.com>
23047         * config/h8300/h8300-protos.h: Update the prototype for
23048         const_costs.
23049         * config/h8300/h8300.c (const_costs): Treat SET as a little
23050         more expensive operation.
23051         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
23052         reference to const_costs.
23054 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
23056         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
23058 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
23060         PR c/5503:
23061         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
23062         use arguments from newtype.
23064 2002-02-13  Eric Christopher  <echristo@redhat.com>
23066         * config/mips/mips.c (override_options): Add check for march/mipsX
23067         on the same command line. Fix error message in cpu processing.
23068         Remove architecture and ISA checks.
23070 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23072         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
23074         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
23076 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
23078         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
23079         alternatives.
23080         ("*movv8hi_internal1"): Same.
23081         ("*movv16qi_internal1"): Same.
23082         ("*movv4sf_internal1"): Same.
23084         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
23085         not push_reload for altivec modes.
23087 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
23089         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
23090         all RTEMS targets including removal of #includes from config/*/rtems*.h
23091         file and adding them to tm_file setting. Added xm_defines=POSIX to
23092         many targets.
23093         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
23094         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
23095         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
23096         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
23097         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
23098         config/m68k/rtemself.h: Ditto.
23099         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
23100         config/mips/rtems64.h: Ditto.
23101         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
23102         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
23103         Ditto.
23104         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
23105         config/sparc/rtemself.h: Ditto.
23106         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
23107         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
23108         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
23109         more like arm-elf.
23110         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
23111         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
23112         target made more similar to i386-elf.
23113         * config/i386/t-rtems-i386: Added soft float support and multilibs.
23114         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
23115         be similar to config/m68k/t-m68kelf.
23116         * gthr-rtems.h: Encapsulate with extern "C" for C++.
23118 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
23120         * regmove.c (kill_value): Handle subregs.
23122 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
23124         * i386.md (mul patterns): Allow memory operand to be first;
23125         add expanders where needed; fix constraints.
23126         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
23127         Allow memory operand to be the first.
23129         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
23130         operands.
23132 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23134         PR c/5681:
23135         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
23136         GET_MODE (x).
23138 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
23140         PR optimization/5547:
23141         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
23142         all valid IA-32 address modes involving non-scaled %ebx and
23143         GOT/GOTOFF as displacement.
23145 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
23147         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
23148         after emitting ltorg insns.
23150         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
23151         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
23152         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
23153         *abssf2): Fix "op_type" attribute.
23155 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
23157         * mkconfig.sh: Avoid using a subshell redirect.
23158         ($output.T): Change to $(output)T.
23159         (ENABLE_NLS): Remove unneeded undef.
23161         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
23162         * config/alpha/x-vms (libsubdir): Define.
23164         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
23165         register frame procedures. Optimize retrieving context.
23167         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
23168         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
23169         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
23171 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23173         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
23174         Make same change as for find_base_value.
23176 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23178         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
23179         of QImode and SImode.
23181 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23183         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
23184         length computation of movsi.
23185         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
23187 2002-02-13  Kazu Hirata  <kazu@hxi.com>
23189         * config/h8300/h8300.md (subqi3): Tighten the predicate for
23190         operands[2] to register_operand.
23192 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
23194         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
23196 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
23198         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
23199         for altivec_lvx* and altivec_stvx*.
23200         ("*movv4si_internal"): Add constraint for loading from GPRs.
23201         ("*movv8hi_internal1"): Same.
23202         ("*movv16qi_internal1"): Same.
23203         ("*movv4sf_internal1"): Same.
23205         * config/rs6000/rs6000.c (altivec_register_operand): New.
23207         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
23208         altivec_register_operand.
23210 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
23212         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
23213         handle SYMBOL_REF.
23215 2002-02-13  Stan Shebs  <shebs@apple.com>
23217         * c-typeck.c (digest_init): Handle vectors.
23218         (really_start_incremental_init): Same.
23219         (pop_init_level): Same.
23220         (process_init_element): Same.
23222         * varasm.c (output_constant): Same.
23224         * expr.c (clear_storage): Same.
23225         (store_constructor): Same.
23227 2002-02-12  Eric Christopher  <echristo@redhat.com>
23229         * explow.c (hard_function_value): Add comment explaining
23230         signed/unsigned comparison.
23232 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
23234         * jump.c (never_reached_warning): Add finish argument.
23235         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
23236         real insn after end.
23237         * rtl.h (never_reached_warning): Adjust prototype.
23238         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
23239         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
23240         never_reached_warning.
23242 2002-02-12  Graham Stott  <grahams@redhat.com>
23244         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
23246 2002-02-12  Kazu Hirata  <kazu@hxi.com>
23248         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
23249         logical shifts on H8/300.
23250         (shift_alg_si): Improve several shifts on H8/300.
23251         (get_shift_alg): Likewise.
23253 2002-02-12  Graham Stott  <grahams@redhat.com>
23255         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
23257 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23259         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
23260         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
23262 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
23264         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
23265         non-CONST_INT through default_assemble_integer.
23266         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
23267         <case 8>: Abort for CONST_DOUBLE.
23269 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23271         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
23272         is specified.
23273         * config/pa/pa-linux.h (LIB_SPEC): Delete.
23274         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
23276 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
23278         * config/stormy16/stormy16.md (zero_extendqihi2): New.
23280 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
23282         * regrename.c (regrename_optimize): Don't accept a
23283         part-clobbered register if the replaced register is not part
23284         clobbered.
23286         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
23287         take padding into account when computing the argument value.
23289         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
23291         * combine.c (try_combine): Apply substitutions in
23292         CALL_INSN_FUNCTION_USAGE too.
23294 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
23296         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
23297         __builtin_altivec_abs*.
23298         (bdesc_abs): New.
23300         * config/rs6000/rs6000.h (rs6000_builtins): Add
23301         ALTIVEC_BUILTIN_ABS*.
23303         * config/rs6000/altivec.h: Use const char for builtins expecting
23304         literals.
23305         (vec_abs): New versions for C and C++.
23306         (vec_abss): Same.
23308 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23310         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
23311         using Pmode.
23313 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23315         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
23316         constant definition from h8300.md.
23317         (FRAME_POINTER_REGNUM): Likewise.
23318         * config/h8300/h8300.md (define_constants): Add FP_REG.
23320 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23322         * config/h8300/h8300.c (print_operand): Remove redundant code.
23324 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23326         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
23327         * config/h8300/h8300.c (byte_reg): Make it static.
23329 2002-02-10  Richard Henderson  <rth@redhat.com>
23331         PR c/5623
23332         * c-typeck.c (incomplete_type_error): Handle flexible array members.
23334 2002-02-10  Richard Henderson  <rth@redhat.com>
23336         PR c++/5624
23337         * tree.c (append_random_chars): Don't abort if main_input_filename
23338         does not exist.
23340 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
23342         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
23344 2002-02-10  Kazu Hirata  <kazu@hxi.com>
23346         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
23347         (pushhi1): Likewise.
23349 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23351         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
23352         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
23354 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
23356         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
23357         remove MASK_VIS.
23358         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
23360 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23362         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
23363         a half of an SImode register on H8/300.
23365 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
23367         * i386.md (movdi_2): Add missing '!'.
23369 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23371         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
23372         definitions.
23374 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23376         * config/h8300/h8300.md (length): Correct the distance valid
23377         for the short branch.
23379 2002-02-09  Kazu Hirata  <kazu@hxi.com>
23381         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
23383 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
23385         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
23386         registers in SImode.
23387         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
23388         part-clobbered.
23390         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
23391         patch.
23393         Contribute sh64-elf.
23394         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
23395         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
23396         (sh_cannot_modify_jumps_p): New function.
23397         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
23398         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
23399         (sh_ms_bitfield_layout_p): New function.
23400         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
23401                     Zack Weinberg  <zack@codesourcery.com>
23402         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
23403         expand_simple_binop instead of expand_binop.
23404         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
23405         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
23406         use of .quad and .uaquad.
23407         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
23408         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
23409         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23410         * config/sh/sh.md (movdi_const, movdi_const_32bit,
23411         movdi_const_16bit): Make sure all CONSTs have modes.
23412         (sym2PIC): Ditto, but by adjusting all callers.
23413         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
23414         if the prologue calls the SHmedia argument decoder or register
23415         saver.
23416         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23417         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
23418         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
23419         (sh_expand_epilogue): Don't emit USE of return target register.
23420         (prepare_move_operands): Legitimize DImode PIC addresses.
23421         (sh_media_register_for_return): Skip tr0, used to initialize the
23422         PIC register.
23423         (sh_expand_prologue): Remove explicit USE of return register.
23424         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
23425         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
23426         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
23427         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
23428         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
23429         EXTRA_CONSTRAINT_T.
23430         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
23431         (MOVI_SHORI_BASE_OPERAND_P): New.
23432         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
23433         (EXTRA_CONSTRAINT_T): Define in terms of them.
23434         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
23435         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
23436         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
23437         alternatives supporting TARGET_REGS.
23438         (UNSPEC_GOTPLT): New constant.
23439         (movdi split): Move incrementing of LABEL_NUSES...
23440         (movdi_const, movdi_const_32bit): Here.  Use
23441         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
23442         (movdi_const_16bit): New.
23443         (call, call_value) [flag_pic]: Use GOTPLT.
23444         (call_pop, call_value_pop): New expands.
23445         (call_pop_compact, call_pop_rettramp): New insns.
23446         (call_value_pop_compact, call_value_pop_rettramp): New insns.
23447         (sibcall) [flag_pic]: Use GOT.
23448         (builtint_setjmp_receiver): Remove bogus, unused expand.
23449         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
23450         (*pt, *ptb, ptrel): New insns.
23451         (sym2GOT): Handle DImode GOT.
23452         (sym2GOTPLT, symGOTPLT2reg): New expands.
23453         (sym2PIC): New expand.
23454         (shcompact_return_tramp): Use GOTPLT to return trampoline.
23455         (shcompact_return_tramp_i): Use return register explicitly.
23456         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
23457         disable flag_reorder_blocks.
23458         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
23459         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
23460         clobbers, for clarity.
23461         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
23462         restoring of r0 in macl as MAYBE_DEAD.
23463         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
23464         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
23465         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
23466         alter_subreg all over.
23467         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
23468         reload, instead of emitting instructions that would require
23469         reloading.
23470         (casesi_load_media): Add missing modes.
23471         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
23472         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
23473         as used if the argument decoder is called.
23474         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
23475         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
23476         Pmode, then extend it to DImode if necessary.
23477         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
23478         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
23479         constants in FPU-enabled SHmedia, let them be loaded from memory.
23480         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
23481         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
23482         Adjust whitespace in assembly output templates.
23483         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
23484         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
23485         mode of if_then_else.
23486         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
23487         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
23488         sh.h.
23489         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
23490                     Joern Rennecke <amylaar@redhat.com>
23491         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
23492         (SUBTARGET_CPP_PTR_SPEC): New.
23493         (SUBTARGET_CPP_SPEC): Remove.
23494         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
23495         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
23496         Fix typo in previous checkin.
23497         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
23498         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
23499         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
23500                     Alexandre Oliva  <aoliva@redhat.com>
23501         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
23502         what single FP register can hold for SHmedia target.
23503         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
23504                     Alexandre Oliva  <aoliva@redhat.com>
23505         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
23506         Do not split into SUBREG.
23507         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
23508         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
23509         and added new functions as specified in SH5 ABI r9.
23510         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
23511         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
23512         8-byte boundary.
23513         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
23514         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
23515         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
23516         and consttable_window_ends.
23517         2001-06-03  Graham Stott  <grahams@redhat,com>
23518         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
23519         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
23520         * config/sh/sh.c (print_operand): Handle floating-point pair,
23521         vector and matrix registers.
23522         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
23523         vector modes into account.
23524         * config/sh/sh.md (movv2sf): Split move between registers into
23525         movdf.
23526         (movv4sf, movv16sf): Introduce insns that get split only after
23527         reload.
23528         * config/sh/shmedia.h: Fix Copyright dates.
23529         * config/sh/ushmedia.h: Likewise.  Move loop counter
23530         declarations into conditionals that uses them.
23531         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
23532         loop boundary.
23533         * config/sh/sshmedia.h: Fix Copyright dates.
23534         (sh_media_PUTCFG): Fix constraints.
23535         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
23536         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
23537         ptrmemfunc_vbit_in_delta for SH5.
23538         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
23539         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
23540         * invoke.texi: Likewise.
23541         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
23542         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
23543         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
23544         GCC_pop_shmedia_regs_nofpu): New global symbols.
23545         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
23546         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
23547         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
23548         compact function with nonlocal labels.
23549         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
23550         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
23551         (initial_elimination_offset): Account for their stack space.
23552         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
23553         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
23554         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
23555         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
23556         least one of the operands to be a register.
23557         (movv2sf): Likewise.  Renamed to movv2sf_i.
23558         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
23559         prepare_move_operands() before emitting SHmedia insns.
23560         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
23561         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
23562         Don't save nor initialize r12.  Don't mis-align the stack.
23563         Pad the code with a nop.
23564         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
23565         stack.
23566         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
23567         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
23568         [__SHMEDIA__]: Implement.
23569         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
23570         * config/sh/sh.md: Set latency of `pt' closer to reality.
23571         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
23572         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
23573         Set move, load and store type attributes.
23574         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
23575         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
23576         profiling.
23577         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
23578         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
23579         * config/sh/sh.c (sh_media_register_for_return): New function.
23580         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
23581         branch-target register.
23582         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
23583         * config/sh/sh.md (return_media_i): Use any call-clobbered
23584         branch-target register.
23585         (return_media): If r18 wasn't copied in the prologue, copy it
23586         here.
23587         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
23588         Clear class FP0_REGS.
23589         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
23590         from elf.h.
23591         2001-03-08  DJ Delorie  <dj@redhat.com>
23592         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
23593         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
23594         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
23595         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
23596         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
23597         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
23598         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
23599         return value correctly for call_cookie.
23600         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
23601         * config/sh/crt1.asm (start): Modified so as to call
23602         ___setup_argv_and_call_main.
23603         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
23604         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
23605         SHmedia mode.
23606         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
23607         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
23608         (STRIP_NAME_ENCODING): Use it.
23609         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
23610         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
23611         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
23612         prepare_scc_operands().
23613         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
23614         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
23615         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
23616         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
23617         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
23618         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
23619         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
23620         used in shcompact_incoming_args.
23621         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
23622         change.
23623         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
23624         mode.
23625         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
23626         Adjust accordingly.
23627         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
23628         Simplify.  Adjust.  Add sanity check.
23629         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
23630         FPU_SINGLE_BIT.
23631         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
23632         TARGET_SHCOMPACT.
23633         (udivsi3, divsi3): Use them.
23634         (force_mode_for_call): New insn.
23635         (call, call_value, sibcall_value): Emit it before SHcompact
23636         calls.
23637         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
23638         * config/sh/sh.md (call, call_value, sibcall): Make sure the
23639         call cookie is non-NULL before taking its value.
23640         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
23641         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
23642         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
23643         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
23644         block.
23645         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
23646         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
23647         temporary for stack adjusts.  Use MACL and MACH to pass
23648         arguments to shcompact_incoming_args.
23649         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
23650         clobber r1.
23651         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
23652         (nested_trampoline): Load static chain address into r1.
23653         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
23654         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
23655         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
23656         fp_arith_reg_operand().
23657         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
23658         * config/sh/sh.md (casesi): Sign-extend the first two operands,
23659         and use signed compares for them.
23660         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
23661         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
23662         ones properly aligned.
23663         (find_barrier): Account for extra alignment needed for 8-byte wide
23664         constants.
23665         (machine_dependent_reorg): Require a label for the second 4-byte
23666         constant after an 8-byte one.
23667         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
23668         change.
23669         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
23670         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
23671         last_float when switching float modes.
23672         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
23673         auto-increment for general-purpose registers.
23674         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
23675         result.
23676         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
23677         for stack adjust.
23678         * config/sh/sh.c (sh_builtin_saveregs): Support using all
23679         registers for varargs.
23680         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
23681         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
23682         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
23683         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
23684         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
23685         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
23686         call_cookie accordingly.
23687         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
23688         (SHCOMPACT_BYREF): Likewise.
23689         (SHCOMPACT_FORCE_ON_STACK): New macro.
23690         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
23691         (sh_builtin_saveregs): Likewise.
23692         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23693         shcompact_incoming_args): Use new shift values.  Support
23694         sequences of consecutive and non-consecutive pushes/pops.
23695         * config/sh/sh.md (return): Don't explicitly use PR_REG.
23696         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
23697         * config/sh/sh.h (TEXT_SECTION): Define.
23698         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
23699         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
23700         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
23701         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
23702         return values on FPU-enabled SHmedia.
23703         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
23704         FPU-enabled SHmedia.
23705         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
23706         value is returned in a non-FP reg and is not returned by
23707         reference.
23708         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
23709         jump_ind.
23710         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
23711         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
23712         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
23713         quad-aligned to be passed by callee-copy reference.
23714         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
23715         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
23716         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
23717         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
23718         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
23719         copying low-numbered FP regs to r7 and r8.
23720         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
23721         FP regs to general-purpose regs only if the copy was passed on the
23722         stack.
23723         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
23724         copying FP reg to r9.
23725         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
23726         copy FP regs to general-purpose regs only in outgoing calls.
23727         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
23728         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
23729         HOST_WIDE_INT.
23730         * config/sh/sh.h (struct sh_args): Document all fields.
23731         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
23732         passed partially on the stack should not consider making
23733         sibcalls.
23734         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
23735         stack_regs only for incoming calls.  When passing FP args,
23736         make sure there are FP regs available before modifying
23737         call_cookie.
23738         (SHCOMPACT_BYREF): Pass double args in general-purpose
23739         registers by reference.
23740         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
23741         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
23742         attempt to generate sibcalls if the caller got any arguments
23743         by reference.
23744         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
23745         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
23746         to 8-byte boundaries.
23747         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
23748         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
23749         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
23750         stored in the stack.
23751         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
23752         for the offsets to have the ISA bit set.
23753         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
23754         invocation.  Use beq instead of bgt to mark end of sequence of
23755         loads.
23756         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
23757         bgt to mark end of sequence of stores.
23758         * config/sh/sh.c (arith_operand): Don't check whether
23759         CONST_OK_FOR_J for now.
23760         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
23761         instead of long for conversion.
23762         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
23763         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
23764         before passing it to fprintf.
23765         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
23766         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
23767         Call set_fpscr before reading/writing SR.
23768         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
23769         Call set_fpscr.
23770         * config/sh/lib1funcs.asm: Add `.align 2' directives before
23771         SHmedia code.
23772         (FMOVD_WORKS): Define on SH5 with FPU.
23773         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
23774         setting.
23775         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
23776         _fpscr_values.
23777         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
23778         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
23779         address.
23780         (ia_main_table): Ditto.
23781         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
23782         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
23783         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
23784         the definitions from sh.h.
23785         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
23786         TARGET_SH5.
23787         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
23788         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
23789         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
23790         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
23791         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
23792         Increment LABEL_NUSES.
23794         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
23795         TARGET_SH5.
23796         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
23797         defined.
23798         * config/sh/elf.h (SIZE_TYPE): Likewise.
23799         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
23800         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23801         shcompact_incoming_args): Load switch table addresses using
23802         datalabel.
23803         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
23804         (NO_BUILTIN_SIZE_TYPE): Define.
23805         (SIZE_TYPE): Don't define.
23806         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
23807         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
23808         definition of __SH5__=32 for -m5-compact-nofpu.
23809         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
23810         ADDR_DIFF_VEC.
23811         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
23812         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
23813         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
23814         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
23815         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
23816         (INSN_LENGTH_ALIGNMENT): Likewise.
23817         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23818         * config/sh/sh.md (call, call_value, sibcall): Simplify
23819         copying of non-branch-target register.
23820         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23821         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
23822         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
23823         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
23824         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
23825         floating-point values as structs.
23826         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
23827         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
23828         general-purpose register.
23829         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
23830         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
23831         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
23832         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
23833         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
23834         (ENCODE_SECTION_INFO): Enclose variables and constants in
23835         DATALABEL unspecs.
23836         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
23837         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
23838         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
23839         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
23840         only for LABEL_REFs.  For SYMBOL_REFs, prepend
23841         SH_DATALABEL_ENCODING to the symbol name.
23842         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
23843         convert_mode().
23844         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
23845         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
23846         UNSPEC_DATALABEL.
23847         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
23848         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
23849         (DATALABEL_REF_P): Don't require CONST.
23850         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
23851         REL label.
23852         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
23853         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
23854         right.
23855         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
23856         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
23857         Use shallow_copy_rtx and PUT_MODE to change the mode of
23858         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
23859         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
23860         on SHmedia using GENERAL_REGs.
23861         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
23862         bltu_media_i): Fix reversion of conditions.
23863         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
23864         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
23865         * config/sh/sh.c (output_far_jump): Save r13 in macl.
23866         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
23867         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
23868         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
23869         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
23870         (GCC_nested_trampoline): Likewise.
23871         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
23872         * config/sh/sh.c (gen_datalabel_ref): Define.
23873         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
23874         (INITIALIZE_TRAMPOLINE): Likewise.
23875         (TRAMPOLINE_ADJUST_ADDRESS): Define.
23876         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
23877         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
23878         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
23879         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
23880         (ic_invalidate): Adjust for SH5.
23881         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
23882         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
23883         _nested_trampoline.
23884         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
23885         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
23886         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
23887         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
23888         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
23889         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
23890         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
23891         * config/sh/sh.c (target_reg_operand): Match only target-branch
23892         registers and pseudos that aren't virtual registers.
23893         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
23894         Copy operands that don't match target_reg_operand to pseudos.
23895         (call_media, call_value_media, sibcall_media): Use
23896         target_reg_operand instead of target_operand.
23897         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
23898         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
23899         * config/sh/sh.c (target_reg_operand): Match hardware registers
23900         other than branch-target registers.
23901         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
23902         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
23903         (fpscr_values) [SH5 == 32]: Define.
23904         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
23905         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
23906         Handle function addresses coming in SUBREGs.
23907         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
23908         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
23909         shcompact_return_trampoline): Use datalabel where appropriate.
23910         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
23911         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
23912         general-purpose register to copy one branch-target register to
23913         another.
23914         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
23915         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
23916         SYMBOL_REFs with VOIDmode.
23917         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
23918         bltu_media_i): New insns.
23919         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
23920         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
23921         (INIT_CUMULATIVE_ARGS): Likewise.
23922         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
23923         * machmode.def (V16SFmode): New mode.
23924         * c-common.c (type_for_mode): Support V2SF and V16SF.
23925         * tree.c (build_common_tree_nodes_2): Likewise.
23926         * tree.h (tree_index): Likewise.
23927         * calls.c (emit_call_1): Take args_so_far.  Adjust all
23928         callers.  Introduce CALL_POPS_ARGS.
23929         * tm.texi (CALL_POPS_ARGS): Document.
23930         * config/sh/crt1.asm: Implement in SHmedia mode.
23931         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
23932         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
23933         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
23934         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
23935         Implement divsi and udivsi in SHmedia mode.  Introduce
23936         SHcompact trampolines.
23937         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
23938         only in SHmedia64.
23939         (regno_reg_class): Rewrite.
23940         (fp_reg_names): Remove.
23941         (sh_register_names, sh_additional_register_names): New.
23942         (print_operand): Added `u'.  Support SUBREGs in addresses.
23943         Add parentheses around shifted CONSTs.
23944         (output_file_start): Output .mode and .abi directives.
23945         (shiftcosts, addsubcosts, multcosts): Adjust.
23946         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
23947         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
23948         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
23949         bytes, not registers.  Take into account the need for the
23950         SHcompact incoming args trampoline.  Adjust all callers.
23951         (sh_expand_prologue): Take stack_regs into account.  Call
23952         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
23953         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
23954         stack aligned as per SH5 ABI.
23955         (sh_builtin_saveregs): Support SH5 ABI.
23956         (sh_build_va_list, sh_va_start): Likewise.
23957         (initial_elimination_offset): Take alignment into account.
23958         Compute location of PR according to the SH5 stack frame.
23959         (arith_reg_operand): Reject branch-target registers.
23960         (shmedia_6bit_operand): New.
23961         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
23962         (target_reg_operand): Match DImode only.  Accept SUBREGs.
23963         (target_operand): New.
23964         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
23965         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
23966         SIBCALL_REGS for SHmedia.
23967         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
23968         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
23969         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
23970         (TARGET_SWITCHES): New SH5 flags.
23971         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
23972         VALID_REGISTER_P to disable unsupported registers.
23973         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
23974         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
23975         (FUNCTION_ARG_PADDING): Define.
23976         (FASTEST_ALIGNMENT): Adjust.
23977         (SH_REGISTER_NAMES_INITIALIZER): New.
23978         (sh_register_names): Declare.
23979         (DEBUG_REGISTER_NAMES): Define.
23980         (REGISTER_NAMES): Define based on sh_register_names.
23981         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
23982         (sh_additional_register_names): Declare.
23983         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
23984         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
23985         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
23986         (REGISTER_NATURAL_MODE): Define.
23987         (FIRST_PSEUDO_REGISTER): Adjust.
23988         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
23989         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
23990         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
23991         (VECTOR_MODE_SUPPORTED_P): Define.
23992         (REG_CLASS_CONTENTS): Adjust.
23993         (SMALL_REGISTER_CLASSES): Adjust.
23994         (REG_ALLOC_ORDER): Adjust.
23995         (INDEX_REG_CLASS): Adjust.
23996         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
23997         (CONST_OK_FOR_LETTER_P): Adjust.
23998         (PREFERRED_RELOAD_CLASS): Adjust.
23999         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
24000         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
24001         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
24002         (FIRST_FP_PARM_REG): Adjust.
24003         (CALL_POPS_ARGS): Define.
24004         (FUNCTION_ARG_REGNO_P): Adjust.
24005         (struct sh_args): New fields.
24006         (GET_SH_ARG_CLASS): Adjust.
24007         (INIT_CUMULATIVE_ARGS): Adjust.
24008         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
24009         (FUNCTION_ARG_ADVANCE): Adjust.
24010         (FUNCTION_ARG): Adjust.
24011         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
24012         (FUNCTION_ARG_CALLEE_COPIES): Define.
24013         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
24014         (STRICT_ARGUMENT_NAMING): Define.
24015         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
24016         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
24017         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
24018         (SETUP_INCOMING_VARARGS): Adjust.
24019         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
24020         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
24021         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
24022         (SUBREG_OK_FOR_INDEX_P): Adjust.
24023         (EXTRA_CONSTRAINT_S): Update.
24024         (EXTRA_CONSTRAINT_T): New.
24025         (EXTRA_CONSTRAINT): Adjust.
24026         (GO_IF_LEGITIMATE_INDEX): Adjust.
24027         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
24028         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
24029         (MOVE_MAX): Adjust.
24030         (MAX_MOVE_MAX): Define.
24031         (Pmode): Adjust.
24032         (CONST_COSTS): Adjust.
24033         (REGISTER_MOVE_COST): Adjust.
24034         (BRANCH_COST): Adjust.
24035         (TEXT_SECTION_ASM_OP): Adjust.
24036         (DBX_REGISTER_NUMBER): Adjust.
24037         (ASM_OUTPUT_DOUBLE_INT): New.
24038         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
24039         (PREDICATE_CODES): Adjust.
24040         (PROMOTE_MODE): Adjust.
24041         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
24042         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
24043         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
24044         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
24045         (DR0_REG, DR2_REG, DR4_REG): Renumber.
24046         (TR0_REG, TR1_REG, TR2_REG): New.
24047         (XD0_REG): Renumber.
24048         (UNSPEC_COMPACT_ARGS): New.
24049         (type): Added pt and ptabs.
24050         (length): Default to 4 on SHmedia.  Default pt length to 12
24051         and     20 on SHmedia32 and SHmedia64, respectively.
24052         (pt): New function unit.
24053         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
24054         Add whitespace between operands of SHmedia instructions.
24055         (movdicc): Fix.
24056         (adddi3_media, addsi3_media): Adjust constraints.
24057         (subsi3) [SHmedia]: Force operand 1 into a register.
24058         (udivsi3_i1_media, udivsi3_i4_media): New.
24059         (udivsi3): Support SHmedia.
24060         (divsi3_i1_media, divsi3_i4_media): New.
24061         (divsi3): Support SHmedia.
24062         (anddi3, iordi3, xordi3): Adjust constraints.
24063         (zero_extendhidi2, zero_extendqidi2): New.
24064         (extendsidi2, extendhidi2, extendqidi2): New.
24065         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
24066         (pop_e, pop_fpul, pop_4): Likewise.
24067         (movsi_media): Support FP and BT registers.
24068         (movsi_media_nofpu): New.  Adjust splits to DImode.
24069         (lduw, ldub): Renamed to zero_extend* above.
24070         (movqi_media): Fix typo.
24071         (movdi_media): Support FP and BT registers.
24072         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
24073         (movdi_const_32bit): New.
24074         (shori_media): Require immediate operand.  Use `u' for output.
24075         (movdf_media, movsf_media): Simplified.
24076         (movdf_media_nofpu, movsf_media_nofpu): New.
24077         (movdf, movsf): Adjust
24078         (movv2sf, movv2sf, movv16sf): New.
24079         (beq_media, beq_media_i): Adjust constraints.  Don't use
24080         scratch BT register.
24081         (bne_media, bne_media_i): Likewise.
24082         (bgt_media, bgt_media_i): Likewise.
24083         (bge_media, bge_media_i): Likewise.
24084         (bgtu_media, bgtu_media_i): Likewise.
24085         (bgeu_media, bgeu_media_i): Likewise.
24086         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
24087         bunordered): Emit jump insn.  Force operands to registers when
24088         needed.
24089         (jump_media, jump): Simplify.
24090         (call_compact, call_compact_rettramp): New.
24091         (call_value_compact, call_value_compact_rettramp): New.
24092         (call_media, call_value_media): Simplify.
24093         (sibcall_compact, sibcall_media): New.
24094         (call, call_value): Adjust for SHmedia and SHcompact.
24095         (sibcall, sibcall_value, untyped_call): Likewise.
24096         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
24097         (indirect_jump): Adjust for SHmedia.
24098         (casesi_jump_media): New.
24099         (nop): Re-enable for SHmedia.
24100         (call_site): Restrict to SH1.
24101         (casesi): Adjust for SHmedia.
24102         (casesi_shift_media, casesi_load_media): New.
24103         (return): Explicitly use PR register.  Call return trampoline
24104         on SHcompact.
24105         (return_i): Explicitly use PR register.
24106         (shcompact_return_tramp, shcompact_return_tramp_i): New.
24107         (return_media): Adjust.
24108         (shcompact_incoming_args): New.
24109         (epilogue): Adjust.
24110         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24111         (movstrsi): Disable on SH5.
24112         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
24113         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
24114         (subsf3, subsf3_media): Likewise.
24115         (mulsf3, mulsf3_media, mac_media): Likewise.
24116         (divsf3, divsf3_media): Likewise.
24117         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
24118         (floatsisf2, fux_truncsfsi2): Likewise.
24119         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
24120         constraints.
24121         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
24122         (cmpunsf_media, cmpsf): Likewise.
24123         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
24124         (abssf2, abssf2_media): Likewise.
24125         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
24126         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
24127         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
24128         (floatsidf2, fix_truncdfsi2): Likewise.
24129         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
24130         constraints.
24131         (cmpeqdf_media, cmpgtdf_media): Likewise.
24132         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
24133         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
24134         (absdf2, absdf2_media): Likewise.
24135         (extendsfdf2, extendsfdf2_media): Likewise.
24136         (truncsfdf2, truncsfdf2_media): Likewise.
24137         * config/sh/sh64.h: New file.
24138         * config/sh/t-sh64: New file.
24139         * config/sh/shmedia.h: New file.
24140         * config/sh/ushmedia.h: New file.
24141         * config/sh/sshmedia.h: New file.
24142         * configure.in: Added sh64-*-elf.
24143         * configure: Rebuilt.
24144         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
24145         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
24146         (reg_class_from_letter): Use `b' for TARGET_REGS.
24147         (print_operand): Support `%M', `%m', `AND' and
24148         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
24149         (andcosts): Adjust for SHmedia.
24150         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
24151         Likewise.
24152         (target_reg_operand): New function.
24153         * config/sh/sh-protos.h (target_reg_operand): Declare.
24154         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
24155         FP registers on SH5.
24156         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
24157         on SH4.
24158         (TARGET_REGISTER_P): New macro.
24159         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
24160         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
24161         (EXTRA_CONSTRAINT_S): New macro.
24162         (EXTRA_CONSTRAINT): Adjust.
24163         (FLOAT_TYPE_SIZE): Define to 32.
24164         (Pmode): DImode on SHmedia.
24165         (CONST_COSTS): Adjust for SHmedia literals.
24166         (PREDICATE_CODES): Added target_reg_operand.
24167         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
24168         * config/sh/sh.md: Remove all attrs from SHmedia insns.
24169         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
24170         (cmpdi): Accept SHmedia.
24171         (movdicc_false, movdicc_true): New insns.
24172         (movdicc): New expand.
24173         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
24174         no_new_pseudos.
24175         (addsi3_media): Match `S' constraint.
24176         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
24177         (negdi2): Expand for SHmedia.
24178         (one_cmpldi2): New expand.
24179         (zero_extendsidi2): Change from expand to insn.
24180         (extendsidi2): Add constraints.
24181         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
24182         LD/ST address.  Fix SI immediate loading split.
24183         (movhi_media, movqi_media, lduw, ldub): New insns.
24184         (movhi, movqi): Accept SHmedia.
24185         (shori_media, movdi_media): Relax input constraints.  Split
24186         symbolic constants.
24187         (movdf_media, movsf_media): New insn.  New split to movdi.
24188         (movdf, movsf): Match on SHmedia.
24189         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
24190         bgeu_media): New insns and splits.  New insns with `_i' suffix.
24191         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
24192         (bunordered): New expand.
24193         (jump_compact): Renamed from `jump'.
24194         (jump_media): New insn.
24195         (jump): New expand.
24196         (call_media, call_value_media): New insns.
24197         (call, call_value): Adjust.
24198         (indirect_jump_compact): Renamed from `indirect_jump'.
24199         (indirect_jump_media): New insn.
24200         (indirect_jump): New expand.
24201         (untyped_call, return): Accept SHmedia.
24202         (return_media): New insn.
24203         (prologue, epilogue, blockage): Accept SHmedia.
24204         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
24205         (sunordered): New expand.
24206         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
24207         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
24208         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
24209         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
24210         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
24211         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
24212         abssf2_media): New insns.
24213         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
24214         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
24215         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
24216         floatdidf2, floatsidf2_media, fix_truncdfdi2,
24217         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
24218         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
24219         absdf2_media): New insns.
24220         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
24221         (extendsfdf2_media, truncdfsf2_media): New insns.
24222         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
24223         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
24224         * config/sh/sh.h (CONST_OK_FOR_J): Document.
24225         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
24226         * config/sh/sh.md (adddi3): New expand.
24227         (adddi3_media, adddi3z_media): New insns.
24228         (adddi3_compact): Renamed from adddi3.
24229         (addsi3_media): Use add.l r63 to add constant zero.
24230         (subdi3): New expand.
24231         (subdi3_media): New insn.
24232         (subdi3_compact): Renamed from subdi3.
24233         (mulsidi3): New expand.
24234         (mulsidi3_media): New insn.
24235         (mulsidi3_compact): Renamed from mulsidi3.
24236         (umulsidi3): New expand.
24237         (umulsidi3_media): New insn.
24238         (umulsidi3_compact): Renamed from umulsidi3.
24239         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
24240         (ashlsi3, ashrsi3, lshrsi3): Use them.
24241         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
24242         (ashldi3, ashrdi3, lshrdi3): Use them.
24243         (zero_extendsidi2): New expand.
24244         (extendsidi2): New insn.
24245         (movsi_media): New insn.  Split to movdi to load constants.
24246         (movsi): Enable for shmedia.
24247         (movdi_media): New insn.  Use shori_media to load wide constants.
24248         (short_media): New insn.
24249         (movdi): Enable for shmedia.
24250         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
24251         * config/sh/sh.h (CPP_SPEC): Added `m5'.
24252         (SUBTARGET_CPP_SPEC): Added `!m5'.
24253         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
24254         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
24255         to all other SH variants.
24256         (TARGET_DEFAULT): Set to SH1_BIT.
24257         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
24258         (BITS_PER_WORD): Raise to 64 on shmedia.
24259         (MAX_BITS_PER_WORD): Change to 64.
24260         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
24261         (INT_TYPE_SIZE): Keep as 32.
24262         (UNITS_PER_WORD): Raise to 8 on shmedia.
24263         (MIN_UNITS_PER_WORD): Keep as 4.
24264         (POINTER_SIZE): Raise to 64 on shmedia.
24265         (CONST_OK_FOR_J): New macro.
24266         (CONST_OK_FOR_LETTER_P): Use it.
24267         (processor_type): Add PROCESSOR_SH5.
24268         * config/sh/sh.md: Conditionalize all expands, insns and
24269         splits to TARGET_SH1.
24270         (cpu): Added sh5.
24271         (addsi3_compact): Renamed from...
24272         (addsi3): Now an expand.
24273         (addsi3_media, subsi3_media): New insns.
24274         (subsi3): Don't negate constants with SHmedia.
24276         * hooks.c: New file.
24277         * hooks.h: New file.
24278         * Makefile.in (HOOKS_H): New.
24279         (TARGET_DEF_H): Added $(HOOKS_H).
24280         (OBJS): Added hooks.o.
24281         (cfgcleanup.o, bb-reorder.o): Added target.h.
24282         (hooks.o): Added dependencies.
24283         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
24284         (TARGET_INITIALIZER): this.
24285         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
24286         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
24287         * bb-reorder.c: Include target.h.
24288         (reorder_basic_blocks): Skip if cannot modify jumps.
24289         * cfgcleanup.c: Include target.h.
24290         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
24292 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
24294         * config/mips/mips.md (casesi_internal, casesi_internal_di):
24295         Protect jump delay slot instructions with .set noreorder and
24296         .set nomacro.
24298 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
24300         * config/mips/mips.md (casesi_internal_di): Calculate
24301         the index into the target offset table correctly.
24303 2002-02-08  Richard Henderson  <rth@redhat.com>
24305         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
24306         * final.c (output_addr_const): Accept and discard SUBREG.
24307         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
24308         mark them unknown instead.
24309         (simplify_subtraction): Handle RTX_UNKNOWN.
24310         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
24312 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
24314         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
24316 2002-02-08  Richard Henderson  <rth@redhat.com>
24318         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
24320 2002-02-08  Andreas Jaeger  <aj@suse.de>
24322         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
24323         * config/i386/t-linux64: New file.
24325 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
24327         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
24328         * c-parse.in (compstmt): Clear last_expr_type.
24330 2002-02-07  Richard Henderson  <rth@redhat.com>
24332         * loop.c (strength_reduce): Sink final_value when not
24333         eliminating a biv.
24335 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
24337         * config/sparc/freebsd.h: Fix mismatched spec {.
24339 2002-02-07  Richard Henderson  <rth@redhat.com>
24341         * cfgrtl.c: Include recog.h and insn-config.h.
24342         (keep_with_call_p): Fix general_operand invocation.
24343         * Makefile.in (cfgrtl.o): Update dependencies.
24345 2002-02-07  Kazu Hirata  <kazu@hxi.com>
24347         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
24348         comment.  Accept HImode only if TARGET_H8300.
24350 2002-02-07  Eric Christopher  <echristo@redhat.com>
24352         * config/mips/crtn.asm: Cleanup #ifdefs.
24354 2002-02-07  Eric Christopher  <echristo@redhat.com>
24356         * config/mips/crti.asm: Add changes for mips16. mips16 uses
24357         register 7 as RA instead of $31.
24358         * config/mips/crtn.asm: Ditto.
24359         * config/mips/mips.c (mips_move_2words): Add case for
24360         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
24361         (compute_frame_size): Fix typo.
24362         (save_restore_insns): Ditto.  Make documentation about using
24363         register $7 as return register more precise.
24364         (mips_expand_epilogue): Fix comment. Add code to work around not
24365         being able to add to the stack pointer directly.
24366         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
24367         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
24368         epilogue.
24370 2002-02-07  Tom Rix  <trix@redhat.com>
24372         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
24373         immediates in ldu and stdu DS opcode field.
24374         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
24375         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
24376         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
24378 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
24380         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
24381         offset for stack bias.
24383 2002-02-07  H.J. Lu <hjl@gnu.org>
24385         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
24387 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
24389         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
24391 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
24393         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
24394         * i386.c (x86_order_regs_for_local_alloc): New global function.
24395         * i386.h (REG_ALLOC_ORDER): CLeanup.
24396         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
24398 2002-02-07  Richard Henderson  <rth@redhat.com>
24400         PR optimization/2463
24401         * alias.c (find_base_value): Recall base values for fixed hard regs.
24402         * loop.c (loop_regs_update): Don't use single_set on non-insns.
24404 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
24406         * config/mips/mips.md (define_delay) [mips16]: Adjust required
24407         length.
24409 2002-02-06  Richard Henderson  <rth@redhat.com>
24411         PR c/5609
24412         * stmt.c (resolve_operand_name_1): Take more care with mixed
24413         named and unnamed operands.
24415 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
24416             Jan Hubicka  <jh@suse.cz>
24418         * loop.c (remove_constant_addition): Avoid clobbering a shared
24419         CONST expression.
24421 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
24423         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
24424         * config/s390/t-linux64: New file.
24425         * config/s390/libgcc-glibc.ver: New file.
24427 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
24429         * config/s390/linux64.h: Delete file.
24430         * config/s390/s390x.h: New file.
24431         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
24432         as target header file.
24433         * config/s390/linux.h (TARGET_VERSION): Define depending on
24434         DEFAULT_TARGET_64BIT.
24435         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
24436         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
24437         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
24438         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
24439         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
24440         (EXTRA_SPEC): New define.
24441         * config/s390/s390.h (TARGET_VERSION): Define depending on
24442         DEFAULT_TARGET_64BIT.
24443         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
24445 2002-02-06  Jason Merrill  <jason@redhat.com>
24447         * c-decl.c (finish_function): Warn about a non-void function with
24448         no return statement and no abnormal exit.
24449         (current_function_returns_abnormally): New variable.
24450         (start_function): Clear it.
24451         (struct c_language_function): Add returns_abnormally.
24452         (push_c_function_context): Save it.
24453         (pop_c_function_context): Restore it.
24454         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
24455         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
24456         an explicit return type.
24457         * c-tree.h: Declare current_function_returns_abnormally.
24458         (C_FUNCTION_IMPLICIT_INT): New macro.
24459         * c-typeck.c (build_function_call): Set it.
24460         (c_expand_return): Set current_function_returns_value even if the
24461         value is erroneous.
24463 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
24465         PR c/5420:
24466         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
24467         unsafe for reevaluation.
24469 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
24471         PR c/5482:
24472         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
24473         EXPR_STMT, but COMPOUND_STMT, recurse into it.
24475 2002-02-06  Richard Henderson  <rth@redhat.com>
24477         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
24478         be a general_operand.  Dest for function value must be a pseudo.
24480 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
24482         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
24483         as SYMBOL_REFs from the constant pool.
24485 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
24487         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
24488         passed by invisible reference.
24490 2002-02-05  Richard Henderson  <rth@redhat.com>
24492         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
24494 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
24496         Implement using "base addresses" in insn operands as default.
24497         * config/mmix/mmix.c (mmix_conditional_register_usage): if
24498         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
24499         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
24500         used to read the rtx value.
24501         (mmix_target_asm_function_epilogue): Fix spacing.
24502         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
24503         (mmix_legitimate_address): Ditto.
24504         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
24505         should be loaded with a GETA insn.  Don't allocate needless extra
24506         char for nul termination and fix misleading comment.
24507         (mmix_print_operand_address): Handle constants if
24508         TARGET_BASE_ADDRESSES.
24509         (mmix_output_register_setting): Use base addressing if
24510         TARGET_BASE_ADDRESSES and the number of insns is 3.
24511         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
24512         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
24513         to use R as constraint, add LDA to match s.
24514         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
24515         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
24516         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
24517         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
24518         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
24519         order with other fixed registers.
24520         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
24521         other parameter/call-clobbered registers.
24522         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
24523         -mbase-addresses, -mno-base-addresses.
24524         (MMIX Options): Ditto.
24526 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24528         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
24530 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
24532         * config/rs6000/altivec.h: Change elem to _S_elem.
24534 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
24536         * config/netbsd.h (WCHAR_TYPE): Define.
24537         (WCHAR_TYPE_SIZE): Ditto.
24538         (WINT_TYPE): Ditto.
24539         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
24540         (WCHAR_UNSIGNED): Ditto.
24541         (WCHAR_TYPE_SIZE): Ditto.
24542         (WINT_TYPE): Ditto.
24543         * config/arm/netbsd.h: Likewise.
24544         * config/i386/netbsd-elf.h: Likewise.
24545         * config/i386/netbsd.h: Likewise.
24546         * config/m68k/netbsd-elf.h: Likewise.
24547         * config/m68k/netbsd.h: Likewise.
24548         * config/ns32k/netbsd.h: Likewise.
24549         * config/sparc/netbsd.h: Likewise.
24550         * config/vax/netbsd.: Likewise.
24552 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
24554         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
24555         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
24556         (TARGET_INITIALIZER): this.
24557         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
24558         (BITFIELD_NBYTES_LIMITED): Markup fix.
24559         * tree.h (default_ms_bitfield_layout_p): Declare.
24560         (record_layout_info): Added prev_field.
24561         * tree.c (default_ms_bitfield_layout_p): New fn.
24562         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
24563         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
24564         * stor-layout.c: Include target.h.
24565         (start_record_layout): Initialize prev_field.
24566         (place_field): Handle MS bit-field layout, and disregard
24567         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
24568         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
24569         * Makefile.in (stor-layout.o): Adjust dependencies.
24571 2002-02-05  Jason Merrill  <jason@redhat.com>
24573         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
24575 2002-02-05  Andreas Jaeger  <aj@suse.de>
24577         * crtstuff.c: Fix comments.
24579 2002-02-05  Richard Henderson  <rth@redhat.com>
24581         PR fortran/3393
24582         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
24583         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
24585         PR fortran/3392
24586         * config/mips/mips.c (function_arg): Handle TImode.
24587         (function_arg_advance): Likewise.
24589 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24591         * config/rs6000/altivec.h (vec_step_help): Rename to
24592         __vec_step_help.
24594 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24596         * config/rs6000/altivec.h: Fix typos.
24598 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
24600         * config/arm/netbsd.h: Correct a comment.
24602 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24604         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
24605         building void typed builtins.
24607         * config/rs6000/altivec.h (vec_ld*): Fix typos.
24608         (vec_step): Implement for C++.
24610 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24612         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
24614 2002-02-04  Richard Henderson  <rth@redhat.com>
24616         * combine.c (nonzero_bits): Re-introduce special case for
24617         sp/fp/ap wrt REGNO_POINTER_ALIGN.
24619 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
24621         * doc/extend.texi: Warn about unsupported usage of altivec
24622         builtins.
24624         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
24625         (altivec_predicate_*): New.
24627         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
24628         Add C++ version of vec_*() functions.
24630         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
24631         (bdesc_2arg): Remove altivec predicates.
24632         (altivec_expand_builtin): Handle predicates.
24633         (altivec_init_builtins): Handle predicates.
24634         (altivec_expand_predicate_builtin): New.
24636 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24638         * pa.c (DO_FRAME_NOTES): Move forward.
24639         (store_reg): Revise handling of frame notes.
24640         (load_reg): Likewise.
24641         (set_reg_plus_d): Likewise.
24642         (hppa_expand_prologue): Likewise.
24643         (hppa_expand_epilogue): Likewise.
24645 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24647         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
24649 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24651         PR c/4475, c++/3780:
24652         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
24653         * c-common.h (SWITCH_TYPE): Define.
24654         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
24655         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
24656         Rename spareness variable to sparseness.
24657         (expand_end_case_type): Renamed from expand_end_case, use orig_type
24658         if non-NULL instead of TREE_TYPE (orig_index).
24659         * tree.h (expand_end_case_type): Renamed from expand_end_case.
24660         (expand_end_case): Define using expand_end_case_type.
24661         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
24662         to expand_end_case_type.
24663         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
24665 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24667         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
24668         (BIGGEST_ALIGNMENT): Change to 128.
24670 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24672         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
24674 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24676         * pa.md (call_internal_reg_64bit): Remove unused variable.
24678 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
24680         * config/arm/arm.h (machine_function): Add uses_anonymous_args
24681         field.
24682         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
24683         * config/arm/arm.c (current_function_anonymous_args): Delete,
24684         replace uses with cfun->machine->uses_anonymous_args.
24685         (arm_reorg): Do not reset uses_anonymous_args.
24687         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
24688         any geenral register.
24690 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
24692         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
24693         the entry block.
24695 2002-02-04  Richard Henderson  <rth@redhat.com>
24697         * combine.c (force_to_mode): Remove STACK_BIAS code.
24698         (nonzero_bits): Likewise.  Replace sp/fp special case with
24699         REGNO_POINTER_ALIGN.
24701         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
24702         (HARD_FRAME_POINTER_REGNUM): New.
24703         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
24704         (FIXED_REGS, CALL_USED_REGS): Update.
24705         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
24706         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
24707         (HARD_REGNO_NREGS): Update for SFP.
24708         (STACK_POINTER_OFFSET): Include bias here ...
24709         (FIRST_PARM_OFFSET): ... not here.
24710         (STACK_BIAS): Remove.
24711         (INIT_EXPANDERS): New.
24712         (STARTING_FRAME_OFFSET): Do not include bias.
24713         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
24714         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
24715         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
24716         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
24717         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
24718         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
24719         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
24720         (MUST_SAVE_REGISTER): Likewise.
24721         (sparc_flat_function_prologue): Likewise.
24722         (sparc_flat_function_epilogue): Likewise.
24723         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
24724         (sparc_init_modes): SFP is GENERAL_REGS.
24725         (sparc_builtin_saveregs): SFP does not have bias applied.
24727 2002-02-04  Richard Henderson  <rth@redhat.com>
24729         * config/alpha/alpha.c (current_function_is_thunk): Don't check
24730         current_function_is_thunk.
24731         (alpha_sa_mask): Distinguish between current_function_is_thunk
24732         called from ASM_OUTPUT_MI_THUNK and not.
24733         (alpha_does_function_need_gp): Thunks always need gp.
24734         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
24735         (alpha_output_mi_thunk_osf): New.
24736         * config/alpha/alpha-protos.h: Update.
24737         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
24739 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
24741         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
24742         function types, not when they're taken away.
24744 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
24746         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
24747         CODE_LABEL and jump table when replacing a table jump with a
24748         simple jump.
24750 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
24752         * config/s390/s390-protos.h (legitimize_la_operand,
24753         s390_secondary_input_reload_class, s390_plus_operand,
24754         s390_expand_plus_operand): Add prototypes.
24756         config/s390/s390.c (s390_secondary_input_reload_class,
24757         s390_plus_operand, s390_expand_plus_operand): New functions.
24759         (struct s390_address): New member 'pointer'.
24760         (s390_decompose_address): Compute it.
24761         (legitimate_la_operand_p): Use it.
24762         (legitimize_la_operand): New function.
24763         (movti, movdi, movdf splitters): Call it.
24765         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
24766         (PREDICATE_CODES): Add s390_plus_operand.
24768         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
24769         (la_ccclobber): Allow GENERAL_REGS as output operand.
24771         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
24772         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
24773         (*la_64, *la_31, reload_indi, reload_insi): ... these.
24775 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
24777         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
24778         register names for regular asm () construct.
24780 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24782         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
24783         registers.
24785 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
24787         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
24788         pat for recog.
24790 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
24792         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
24793         constant pool to be identical by string address and index.
24795 2002-02-04  Anthony Green  <green@redhat.com>
24797         * output.h (SECTION_OVERRIDE): Define.
24798         * varasm.c (named_section): Obey SECTION_OVERRIDE.
24800 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
24802         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
24803         by existing arm*-*-netbsd* (a.out) target.
24804         (ns32k-*-netbsdelf*): Likewise.
24805         (sparc-*-netbsdelf*): Likewise.
24806         (vax-*-netbsdelf*): Likewise.
24808 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
24810         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
24811         headers and libobjc headers.
24813 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
24815         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
24816         (_mingw.h): Remove duplicate include.
24818 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
24820         * config.gcc: Set cpu_type to m68k for 68010, as well.
24821         (m68010-*-netbsdelf*): New...
24822         (m68k*-*-netbsdelf*): ...targets.
24823         * config/m68k/netbsd-elf.h: New file.
24825 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24827         * config/h8300/h8300.c (hand_list): Move inside function_arg.
24829 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24831         * config/h8300/h8300.c (h8_push_ops): Move inside
24832         h8300_init_once.
24833         (h8_pop_ops): Likewise.
24834         (h8_move_ops): Likewise.
24836 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24838         * config/h8300/h8300.c (os_task): Make it static.
24839         (monitor): Likewise.
24840         (pragma_saveall): Likewise.
24842 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
24844         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
24845         constant is a valid sign-extension for Pmode.
24847 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24849         * config/h8300/h8300.c: Fix formatting.
24851 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24853         * config/h8300/h8300.md: Fix formatting.
24855 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24857         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
24858         predicates of operands[1].  Split the patterns for each
24859         processor variant.
24861 2002-02-02  Kazu Hirata  <kazu@hxi.com>
24863         * config/h8300/h8300.md (xor patterns): Tighten the predicates
24864         of operands[1] to register_operand.
24866 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
24868         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
24869         * cpphash.c (_cpp_init_hashtable): Similarly.
24870         * cppinit.c (cpp_create_reader): Default the signed_char flag.
24871         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
24872         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
24873         (cpp_handle_option): Handle the new options.
24874         * cpplex.c (cpp_interpret_charconst): Use new flag.
24875         * cpplib.h (struct cpp_options): New member signed_char.
24876         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
24877         (cpp_options): Handle -fsigned-char and -funsigned-char.
24878         (static_specs): Remove signed_char_spec.
24879         (do_spec1): Don't handle %c.
24880         * system.h: Poison SIGNED_CHAR_SPEC.
24881         * tradcif.y (yylex): Use flag_signed_char.
24882         * tradcpp.h (flag_signed_char): New.
24883         * tradcpp.c (flag_signed_char): New.
24884         (main): Handle new command-line options.
24885         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
24886 config:
24887         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
24888         * avr/avr.h: Remove old comments.
24889         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
24890         (CC1_SPEC): Pass -fsigned-char if -mic*.
24891         (SIGNED_CHAR_SPEC): Remove.
24892 doc:
24893         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
24895 2002-02-01  Eric Christopher  <echristo@redhat.com>
24897         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
24898         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
24899         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
24900         (ASM_OUTPUT_REG_POP): Ditto.
24902 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
24904         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
24905         patch.
24907 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
24909         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
24911 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
24913         PR c/5304:
24914         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
24915         unconditionally.
24917 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
24919         * cfganal.c: Include tm_p.h.
24920         (keep_with_call_p): Fix the test that determines if a register holds
24921         the return value of a call.
24923 2002-02-01  DJ Delorie  <dj@redhat.com>
24925         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
24926         we are given conflicting registers, switch to the other one we
24927         had allocated for us.
24928         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
24929         as TImode so we know when the "other" register is available.
24931 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
24933         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
24934         sparc/sparc_bi.h.
24936 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
24938         * cfganal.c (keep_with_call_p): New function.
24939         (flow_call_edges_add): Prevent splitting a block between a call and
24940         a single-set instruction that should be kept in the same block.
24942 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24944         * doc/install.texi (avr): Update outdated URL.
24946 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
24948         * config/stormy16/stormy16.md (pushqi): New.
24949         (popqi): New.
24950         (pushhi): New.
24951         (pophi): New.
24952         (movhi): Remove stack operands.
24953         (movqi): Likewise.
24954         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
24955         nonimmediate_nonstack_operand.
24956         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
24957         New.
24958         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
24959         New.
24961 2002-01-31  Jason Merrill  <jason@redhat.com>
24963         * Makefile.in (c-parse.c): Handle .output file.
24964         * objc/Make-lang.in (objc-parse.c): Likewise.
24966 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
24968         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
24969         the -me[lb] option is given.  Don't output the default flag
24970         twice.
24972 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
24974         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
24975         the primary source file; this has not been done yet.
24976         * c-decl.c (c_expand_body): Reset input_filename from
24977         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
24979 2002-01-31  Kazu Hirata  <kazu@hxi.com>
24981         * rtlanal.c (subreg_regno_offset): Do not use
24982         SUBREG_REGNO_OFFSET.
24983         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
24984         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
24986 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
24988         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
24989         version rather than GNATS version in --version output.
24991 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
24993         * ifcvt.c (noce_process_if_block): Make a copy of the destination
24994         when copying back from a temporary.
24996 2002-01-30  Richard Henderson  <rth@redhat.com>
24998         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
24999         and new_dest are the same.
25001 2002-01-30  Richard Henderson  <rth@redhat.com>
25003         PR opt/5076
25004         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
25005         * rtl.c (note_insn_name): Update.
25006         * emit-rtl.c (remove_unnecessary_notes): Kill it.
25007         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
25008         to perform loop rotation.
25009         (expand_exit_loop_top_cond): New.
25010         * tree.h (expand_exit_loop_top_cond): Declare it.
25011         * c-semantics.c (genrtl_while_stmt): Use it.
25012         (genrtl_for_stmt): Likewise.
25014 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
25016         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
25017         arguments to 64-bit boundaries on 64-bit ABIs.
25019 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
25021         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
25023 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
25025         * c-decl.c (grokdeclarator): Handle type being a typedef for an
25026         invalid type.
25028 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
25030         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
25031         * config/sparc/sparc_bi.h: Remove file.
25032         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
25034 2002-01-30  Richard Henderson  <rth@redhat.com>
25036         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
25038 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
25040         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
25042 2002-01-30  Jason Merrill  <jason@redhat.com>
25044         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
25045         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
25046         (reg_save): Use DW_CFA_offset_extended_sf instead.
25048         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
25050 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25052         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
25053         in cselib_lookup.
25055 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
25057         * rs6000.md ("*call_value_local32"): Remove constraints.
25058         ("*call_value_local64"): Same.
25059         ("*call_value_indirect_nonlocal_aix32"): Same.
25060         ("*call_value_nonlocal_aix32"): Same.
25061         ("*call_value_indirect_nonlocal_aix64"): Same.
25062         ("*call_value_nonlocal_aix64"): Same.
25063         ("*call_value_nonlocal_sysv"): Same.
25065 2002-01-29  Richard Henderson  <rth@redhat.com>
25067         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
25069 2002-01-29  Richard Henderson  <rth@redhat.com>
25071         * expr.c (force_operand): Ignore flag_pic for detecting pic
25072         address loads.
25073         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
25074         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
25075         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
25076         instead of open-coded loop.
25077         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
25078         be fixed when in use.
25080 2002-01-29  Richard Henderson  <rth@redhat.com>
25082         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
25083         * sched-rgn.c (propagate_deps): Update them.
25084         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
25085         clobbers list when either gets too long.
25087 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25089         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
25090         and INDEX_REGS the same as GENERAL_REGS.
25091         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
25093 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
25095         * tree.c (build_nonstandard_integer_type): Correct prototype.
25097 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
25099         * config/s390/s390.md (movstrsico, movstrdix_64,
25100         movstrsix_31): Remove, replace by ...
25101         (movstrdi_short, movstrsi_short, movstrdi_long,
25102         movstrsi_long): ... these.  New.
25103         (movstrdi, movstrsi): Adapt.
25105         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
25106         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
25107         Remove unnecessary CC clobber.
25108         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
25109         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
25111         (divmoddi4): Don't partially initialize TImode register.
25113 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
25115         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
25117 2002-01-29  Richard Henderson  <rth@redhat.com>
25119         * flow.c (print_rtl_and_abort): Remove.
25120         (print_rtl_and_abort_fcn): Remove.
25121         (verify_local_live_at_start): Use dump_bb instead.
25122         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
25123         (verify_wide_reg_1): Return 2 on mode test failure.
25125 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
25127         PR c/3325, c/3326, c/2511, c/3347
25128         * c-decl.c (enum_decl_context): Remove BITFIELD.
25129         (grokdeclarator): Take bitfield width as an input.
25130         Ensure bitfields are given the correct type.  Perform
25131         bitfield width validation with build_bitfield_integer_type
25132         rather than waiting for finish_struct.
25133         (grok_typename, grok_typename_in_parm_context, start_decl,
25134         push_parmdecl, grokfield, start_function): Update calls to
25135         grokdeclarator.
25136         (build_bitfield_integer_type): New function.
25137         (finish_struct): Move bitfield validation to grokdeclarator
25138         and build_bitfield_integer_type.
25139         * tree.c (build_nonstandard_integer_type): New function.
25140         * tree.h (build_nonstandard_integer_type): New prototype.
25141 objc:
25142         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
25144 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
25146         PR other/1502:
25147         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
25148         don't ignore unrecognized -W* options.
25149         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
25150         * cpplib.h (cpp_handle_option): Adjust prototype.
25151         * c-decl.c (c_decode_options): Pass 0 as last argument to
25152         cpp_handle_option.
25154         PR c/2896:
25155         * gcc.c (cpp_unique_options): Split from cpp_options.
25156         (cpp_options): Source cpp_unique_options.
25157         (default_compilers): Use cpp_unique_options instead of cpp_options
25158         when used together with cc1_options.
25159         (static_specs): Add cpp_unique_options.
25160         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
25161         when used together with cc1_options.
25163 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25165         * config/h8300/h8300-protos.h: Update the prototype of
25166         output_a_shift.
25167         * config/h8300/h8300.c (output_a_shift): Remove an unused
25168         argument 'insn'.  Remove redundant code.
25169         * config/h8300/h8300.md: Adust to the new prototype of
25170         output_a_shift.
25172 2002-01-29  Kazu Hirata  <kazu@hxi.com>
25174         * config/h8300/h8300-protos.h: Update the prototypes of
25175         emit_a_rotate and expand_a_rotate.
25176         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
25177         first argument to 'enum rtx_code'.
25178         (expand_a_rotate): Likewise.
25180 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25182         * config/h8300/h8300-protos.h: Update the prototype of
25183         output_simode_bld.
25184         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
25185         'log2'.
25186         * config/h8300/h8300.md: Adjust to the new prototype.
25188 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25190         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
25191         redundant code.
25193 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25195         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
25196         is a fixed register before returning pic_offset_table_rtx.
25197         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
25198         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
25200 2002-01-28  Jason Merrill  <jason@redhat.com>
25202         * dwarf2.h: Sync with src version.
25204 2002-01-28  Paul Koning  <pkoning@equallogic.com>
25206         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
25207         BT_FN_VOID_PTR_VAR.
25208         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
25209         * doc/extend.texi (__builtin_prefetch): Update documentation:
25210         first argument is now const void ptr.
25212 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25214         * config/h8300/h8300-protos.h: Remove an unused prototype.
25216 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
25218         * toplev.c (lang_independent_init): Round up identifier size.
25220 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
25222         * config.gcc: Revert previous change.
25224 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
25226         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
25228 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
25230         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
25231         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
25232         other non-elf netbsd config frags.
25233         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
25234         collect2 will does that.
25235         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
25236         shared-lib frobbing will work.
25238 2002-01-28  Kazu Hirata  <kazu@hxi.com>
25240         * config/h8300/h8300.h: Fix formatting.
25241         * config/h8300/h8300.md: Likewise.
25243 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
25245         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
25246         the old, removed AAA_standards fix.
25247         * fixinc/fixincl.x: Rebuilt.
25249 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
25251         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
25252         atexit call in crtbegin, hooked in after call to frame_dummy;
25253         register EH before registering __fini__start.
25255 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
25257         * config/rs6000/altivec.h: Remove spurious semicolons.
25259 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25261         * config/h8300/h8300.md: Replace dead bit extraction patterns
25262         with ones that work.
25264 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25266         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
25267         if not STRICT_ALIGNMENT.
25268         * rtl.h (MEM_ALIGN): Likewise.
25270 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25272         * doc/invoke.texi (-fdump-translation-unit): Revert this
25273         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25275 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25277         * config/h8300/h8300.md (define_constants): New.
25278         (anonymous patterns) Use defined constants appropriately.
25280 2002-01-27  Kazu Hirata  <kazu@hxi.com>
25282         * config/h8300/h8300.c (function_arg): Remove redundant code.
25284 2002-01-26  Richard Henderson  <rth@redhat.com>
25286         * sched-deps.c (reg_pending_uses_head): New.
25287         (reg_pending_barrier): Rename from reg_pending_sets_all.
25288         (find_insn_list): Don't mark inline.
25289         (find_insn_mem_list): Remove.
25290         (add_dependence_list, add_dependence_list_and_free): New.
25291         (flush_pending_lists): Replace only_write param with separate
25292         for_read and for_write parameters.  Update all callers.  Use
25293         add_dependence_list_and_free.
25294         (sched_analyze_1): Do not add reg dependencies here; just set
25295         the pending bits.  Use add_dependence_list.
25296         (sched_analyze_2): Likewise.
25297         (sched_analyze_insn): Replace schedule_barrier_found with
25298         reg_pending_barrier.  Add all dependencies for pending reg
25299         uses, sets, and clobbers.
25300         (sched_analyze): Don't add reg dependencies for calls, just
25301         set pending bits.  Use regs_invalidated_by_call.  Treat
25302         sched_before_next_call as a normal list, not a fake insn.
25303         (init_deps): No funny init for sched_before_next_call.
25304         (free_deps): Free pending mems lists.  Don't zero reg_last.
25305         (init_deps_global): Init reg_pending_uses.
25306         (finish_deps_global): Free it.
25307         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
25308         (find_insn_mem_list): Remove.
25309         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
25310         (propagate_deps): Use them.  Zero temp mem lists.
25312 2002-01-26  Richard Henderson  <rth@redhat.com>
25314         * Makefile.in (CRTSTUFF_CFLAGS): New.
25315         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
25316         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
25317         crtstuff.c instead of alpha assembly version.
25318         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
25319         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
25320         not FORCE_{INIT,FINI}_SECTION_ALIGN.
25321         (__do_global_dtors_aux): Mark used.
25322         (frame_dummy, __do_global_ctors_aux): Mark used.
25323         (fini_dummy, init_dummy): Remove.
25325         * config/alpha/crtbegin.asm: Remove file.
25326         * config/alpha/crtend.asm: Remove file.
25327         * config/alpha/t-crtbe: Remove file.
25328         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
25329         (LINK_EH_SPEC): New.
25331         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
25332         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
25333         calling constructors.
25334         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
25336         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
25337         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
25338         CRT_END_INIT_DUMMY hack.
25339         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
25340         FORCE_{INIT,FINI}_SECTION_ALIGN.
25342         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
25343         FORCE_{INIT,FINI}_SECTION_ALIGN.
25345         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
25346         invocation sequence.
25347         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
25349         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
25350         (FORCE_CODE_SECTION_ALIGN): New.
25352 2002-01-26  Richard Henderson  <rth@redhat.com>
25354         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
25356 2002-01-26  Richard Henderson  <rth@redhat.com>
25358         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
25359         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
25361 2002-01-26  Kazu Hirata  <kazu@hxi.com>
25363         * config/h8300/h8300.md: Remove bit extraction patterns that
25364         cannot be triggered.
25365         Restrict each bit extraction pattern to a variant on which the
25366         pattern is tested.
25368 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
25370         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
25372 2002-01-26  Kazu Hirata  <kazu@hxi.com>
25374         * config/h8300/h8300.md: Remove bit test patterns that cannot
25375         be triggered.
25376         Restrict each bit test pattern to a variant on which the
25377         pattern is tested.
25379 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
25381         * builtins.c (expand_builtin_strncat): Remove redundant check for
25382         INTEGER_CST.
25384 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
25386         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
25387         default setting.
25388         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
25389         existing setting.
25391 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
25393         * dbxout.c (dbxout_init): Use assemble_name rather than just
25394         stripping off the first character.
25395         (dbxout_source_file): Likewise.
25397 2002-01-25  DJ Delorie  <dj@redhat.com>
25399         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
25400         using rtx_equal_p, not by comparing pointers.
25402 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
25404         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
25405         for PIC_OFFSET_TABLE_REGNUM.
25406         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
25408 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
25410         * config.gcc (x86_64-*-freebsd*): New target.
25411         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
25412         value.
25413         (i[34567]86-*-freebsd*): Don't include svr4.h.
25414         * config/i386/freebsd64.h: New file.
25416 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
25418         * config/alpha/x-vms (version): Make static.
25420         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
25421         in previous checkin.
25423         * Makefile.in (install-headers-cp): New target.
25424         * config.gcc (alpha-dec-*vms*): Install headers with
25425         install-headers-cp
25427 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
25429         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
25430         avoid it's copies.
25432 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25434         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
25435         of compare_tree_int.
25436         (expand_builtin_strncat): Likewise.
25437         * c-decl.c (finish_struct): Use tree_low_cst.
25438         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
25439         * tree.c (compare_tree_int): Likewise.
25441 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
25443         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
25444         adjustments even if they are implemented by more than two insns.
25446 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
25448         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
25449         * df.h (struct ref): Kill B.
25450         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
25452         * basic-block.h (PROP_EQUAL_NOTES): New flag.
25453         * flow.c (propagate_one_insn): Use it.
25454         (mark_used_regs): Handle NIL.
25456 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
25458         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
25459         to help folding.
25461 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
25463         * rs6000.md (prefetch): Make address V4SI mode so that the address
25464         is restricted to legitimate form for instruction.
25466 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
25468         * doc/install.texi (xtensa-*-elf): New target.
25469         (xtensa-*-linux*): New target.
25470         * doc/contrib.texi: Add myself.
25472 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
25474         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
25475         purpose register to hold an SImode (or smaller) value.
25477 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
25479         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
25480         registry only.
25481         * crtstuff.c: Likewise.
25483 2002-01-25  Kazu Hirata  <kazu@hxi.com>
25485         * config/h8300/h8300.md (negation patterns): Tighten
25486         predicates to register_operand.
25488 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
25490         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
25491         mode, not Pmode.
25493         * builtins.c (expand_builtin_prefetch): Same.
25495 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25497         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
25498         modes.
25500 2002-01-24  Kazu Hirata  <kazu@hxi.com>
25502         * config/h8300/h8300.c (print_operand): Remove support for
25503         operand character 'A'.
25504         * config/h8300/h8300.md (three anonymous patterns): Replace
25505         operand character 'A' with either 'T' or 'S'.
25507 2002-01-24  Kazu Hirata  <kazu@hxi.com>
25509         * config/h8300/h8300.c (print_operand): Remove support for
25510         operand character 'U'.
25512 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
25514         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
25516 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
25518         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
25519         values to be assigned to the stack pointer.
25521 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
25523         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
25524         to const_double needs to be done right for big-endian systems.
25526 2002-01-24  Jason Merrill  <jason@redhat.com>
25528         PR c++/2432
25529         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
25530         to can_throw_internal.
25532 2002-01-23  Richard Henderson  <rth@redhat.com>
25534         * fold-const.c (fold): Change UINT_MAX test to check vs precision
25535         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
25537 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25539         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
25540         (symGOT2reg): Use them, then set as GOT value as unchanging.
25541         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
25542         as a temporary, if possible.
25543         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
25544         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
25546 2002-01-23  Kazu Hirata  <kazu@hxi.com>
25548         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
25549         accept to accept 0x80 as operands[2].
25551 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
25553         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
25555 2002-01-23  Richard Henderson  <rth@redhat.com>
25557         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
25559 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
25561         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
25562         (parmlist_or_identifiers_1): Verify that only a parmlist follows
25563         an attribute.
25565 2002-01-23  Richard Henderson  <rth@redhat.com>
25567         * expr.c (move_by_pieces_1): Extend size before negation.
25569         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
25570         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
25571         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
25572         * config/m68k/t-m68kelf: Likewise.
25574 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
25576         * config/xtensa/elf.h: New file.
25577         * config/xtensa/lib1funcs.asm: New file.
25578         * config/xtensa/lib2funcs.S: New file.
25579         * config/xtensa/linux.h: New file.
25580         * config/xtensa/t-xtensa: New file.
25581         * config/xtensa/xtensa-config.h: New file.
25582         * config/xtensa/xtensa-protos.h: New file.
25583         * config/xtensa/xtensa.c: New file.
25584         * config/xtensa/xtensa.h: New file.
25585         * config/xtensa/xtensa.md: New file.
25586         * config.gcc (xtensa-*-elf*): New target.
25587         (xtensa-*-linux*): New target.
25588         * cse.c (canon_hash): Compare rtx pointers instead of register
25589         numbers.  This is required for the Xtensa port.
25590         * integrate.c (copy_insn_list): Handle case where the static
25591         chain is in memory and the memory address has to be copied to
25592         a register.
25593         * doc/invoke.texi (Option Summary): Add Xtensa options.
25594         (Xtensa Options): New node.
25595         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
25597 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
25599         * diagnostic.c (internal_error): Do ICE suppression only
25600         when ENABLE_CHECKING is not defined.
25602         * c-typeck.c (require_complete_type): Return error_mark_node
25603         if type is error_mark_node.
25605 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
25607         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
25608         -Os and issue a warning.
25610 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
25612         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
25613         current (lack of) need for host configuration by hand.
25615         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
25616         references.  Documentation of some target macros moved from
25617         hostconfig.texi to tm.texi.
25619 2002-01-23  Will Cohen  <wcohen@redhat.com>
25621         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
25622         defined.
25624 2002-01-23  Kazu Hirata  <kazu@hxi.com>
25626         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
25627         operand[3].
25629 2002-01-23  Jason Merrill  <jason@redhat.com>
25631         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
25633         * function.c (assign_parms): Don't put args of inline functions
25634         into registers when not optimizing.
25636 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
25638         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
25639         (prologue_use): New pattern.
25640         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
25641         preference to gen_rtx_USE.
25642         (thumb_expand_prologue): Use gen_prologue_use in preference to
25643         gen_rtx_USE.
25644         (thumb_expand_epilogue): Use gen_prologue_use in preference to
25645         gen_rtx_USE.
25647 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
25649         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
25651 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
25653         PR c/3504
25654         * doc/extend.texi: Correct documentation of __alignof__.
25656 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
25658         * params.h: Rename arguments of DEFPARAM so that it will be
25659         recognized as a translation keyword.
25661 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25663         * extend.texi: Document altivec functions.
25664         Fix N-bit adjectives in X86 builtin documentation.
25666 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
25668         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
25669         auto_inc_dec values.
25671 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
25673         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
25674         after backslash.
25675         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
25677 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
25679         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
25681 2002-01-22  Richard Henderson  <rth@redhat.com>
25683         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
25684         copy_insn not copy_rtx.
25686 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
25688         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
25689         "nonzero" as that might add "1" bits.  Ensure "constop" is
25690         properly sign extened.
25691         (force_to_mode): Tweak for sign extended constop.
25693 2002-01-22  Richard Henderson  <rth@redhat.com>
25695         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
25696         for_each_rtx instead of assuming we're already looking at the MEM.
25697         (split_small_symbolic_mem_operand): Likewise.
25698         * config/alpha/alpha.h (PREDICATE_CODES): Update.
25699         * config/alpha/alpha.md (small symbolic memory splitters): Update.
25701 2002-01-22  Richard Henderson  <rth@redhat.com>
25703         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
25704         sequence number for the literal.
25705         (divmoddi_internal_er): Likewise.
25707 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25709         PR java/4972
25710         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
25711         in LIBICONV variable.
25712         * configure: Regenerated.
25714 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
25716         * dependence.c (build_def_use): Remove array_idx.
25718         * dwarfout.c (last_filename): Remove.
25719         (output_compile_unit_die): Remove last_filename.
25721 2002-01-22  Roger Sayle  <roger@eyesopen.com>
25722             Richard Henderson  <rth@redhat.com>
25724         PR opt/3640
25725         * fold-const.c (fold): Optimize unsigned comparisons against
25726         UINT_MAX (and similar unsigned constants).
25728 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
25730         * Makefile.in (loop.o): Depend on OPTABS_H.
25731         * loop.c (emit_prefetch_instructions): Check the prefetch operand
25732         against the predicate.
25734         PR target/5379
25735         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
25736         for the address operand.
25738 2002-01-22  Richard Henderson  <rth@redhat.com>
25740         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
25742 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25744         PR other/5450
25745         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
25746         preprocessor flags.
25748 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
25750         * config.gcc (x86_64-*-netbsd*): New target.
25751         * config/i386/netbsd64.h: New file.
25753 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25755         * regrename.c (kill_value): Fix typo.
25757 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
25759         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
25761         * config/rs6000/rs6000.h: Same.
25763         * function.c (instantiate_virtual_regs): Remove
25764         STARTING_FRAME_PHASE.
25765         (assign_stack_local_1): Same.
25766         Calculate frame phase.
25768 2002-01-22  Nick Clifton  <nickc@redhat.com>
25770         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
25771         variable declaration to outer scope in order to simplify
25772         future extensions.
25773         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
25774         arm_hard_regno_mode_ok.
25775         * config/arm/arm-protos.h: Add a prototype for
25776         arm_hard_regno_mode_ok.
25777         * config/arm/arm.c (soft_df_operand): Remove now redundant
25778         check for DImode values using IP_REGNUM.
25779         (nonimmediate_soft_df_operand): Remove now redundant check for
25780         DImode values using IP_REGNUM.
25781         (arm_hard_regno_mode_ok): New function. New check: make sure
25782         that DImode values are not stored in IP_REGNUM.
25784         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
25785         note with a USE.
25786         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
25788 2002-01-22  Jason Merrill  <jason@redhat.com>
25790         * c-semantics.c (genrtl_compound_stmt): Only check nesting
25791         consistency if this COMPOUND_STMT is scoped.
25793 2002-01-22  Kazu Hirata  <kazu@hxi.com>
25795         * predict.c: Fix formatting.
25796         * print-tree.c: Likewise.
25797         * protoize.c: Likewise.
25798         * real.h: Likewise.
25799         * rtl.h: Likewise.
25800         * sbitmap.h: Likewise.
25801         * scan.c: Likewise.
25802         * sched-deps.c: Likewise.
25803         * sched-vis.c: Likewise.
25804         * sdbout.c: Likewise.
25805         * sibcall.c: Likewise.
25806         * ssa.c: Likewise.
25807         * ssa-ccp.c: Likewise.
25808         * ssa-dce.c: Likewise.
25809         * stmt.c: Likewise.
25810         * stor-layout.c: Likewise.
25811         * system.h: Likewise.
25813 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25815         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
25816         if fits in bounds of base type.
25818         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
25819         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
25820         (add_bound_info, default): If can't find a context, make a
25821         SAVE_EXPR.
25822         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
25824 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
25826         * c-typeck.c (parser_build_binary_op): If result from
25827         build_binary_op is ERROR_MARK just return error_mark_node without
25828         further processing.
25830 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
25832         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
25833         Split a.out-specific bits into...
25834         * config/netbsd-aout.h: ...this.
25835         * config/netbsd-elf.h: New file.
25836         * config/alpha/netbsd-elf.h: Remove.
25837         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
25838         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
25839         (STARTFILE_SPEC): Remove redundant definition.
25840         (ENDFILE_SPEC): Likewise.
25841         (LINK_SPEC): Likewise.
25842         (CPP_SPEC): Likewise.
25843         (ASM_SPEC): Likewise.
25844         (LIB_SPEC): Likewise.
25845         (SWITCH_TAKES_ARG): Likewise.
25846         (TARGET_MEM_FUNCTIONS): Likewise.
25847         (CPP_PREDEFINES): Redefine.
25848         (ASM_FINAL_SPEC): Remove redefinition.
25849         (ASM_COMMENT_START): Redefine.
25850         (FUNCTION_PROFILER): Define.
25851         (TARGET_VERSION): Redefine.
25852         Comment and formatting cleanup.
25853         * config/i386/netbsd.h: Include <netbsd-aout.h>.
25854         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
25855         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
25856         big- or little-endian.
25857         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
25858         * config.gcc (*-*-netbsd*): Add definitions common to all
25859         NetBSD configs.
25860         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
25861         gnu_ld definitions.  Add netbsd-elf.h to and remove
25862         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
25863         tmake_file, and don't lose previous tmake_file contents.
25864         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
25865         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
25866         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
25867         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
25868         (mipsel-*-netbsd*): Rename this to...
25869         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
25870         mips/little.h to tm_file for mips*el-*.
25871         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
25872         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
25873         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
25875 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25877         * pa-protos.h (reg_before_reload_operand): New function prototype.
25878         * pa.c (reg_before_reload_operand): New function implementation.
25879         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
25880         contraints to "*m".
25882 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
25884         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
25886 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25888         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
25889         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
25890         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
25891         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
25892         (ENDFILE_SPEC): Undefine.
25893         (STARTFILE_SPEC): Redefine for PA.
25895 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
25897         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
25899 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
25901         * config.gcc: Add entries to supported PowerPC --with-cpu
25902         types.
25904 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
25906         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
25907         true for 64-bit mode only SSE registers in 32-bit mode.
25909 2002-01-21  Kazu Hirata  <kazu@hxi.com>
25911         * unwind-dw2.c: Fix formatting.
25912         * unwind-dw2-fde.c: Likewise.
25913         * unwind-dw2-fde.h: Likewise.
25914         * unwind-pe.h: Likewise.
25915         * varasm.c: Likewise.
25916         * varray.h: Likewise.
25918 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
25920         Remove workaround for register stack overwrite bug in mmix.
25921         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
25922         support for TARGET_REG_STACK_FILL_BUG.
25923         * config/mmix/mmix.h: Remove member has_call_without_parameters.
25924         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
25925         Delete.
25926         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
25927         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
25928         -mno-reg-stack-fill-bug-workaround.
25929         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
25930         machine member has_call_without_parameters.
25931         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
25932         -mreg-stack-fill-bug-workaround and
25933         -mno-reg-stack-fill-bug-workaround.
25934         (MMIX Options): Ditto.
25936 2002-01-21  Kazu Hirata  <kazu@hxi.com>
25938         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
25939         as appropriate.
25940         Remove redundant code.
25942 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
25944         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
25945         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
25946         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
25947         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
25948         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
25949         out target macro definitions and non-target-specific comments
25950         mostly taken from old versions of the manual.
25952 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25954         * config/h8300/h8300.h: Fix comment formatting.
25955         * config/ia64/aix.h: Likewise.
25956         * config/ia64/ia64-protos.h: Likewise.
25957         * config/ia64/ia64.c: Likewise.
25958         * config/ia64/ia64.h: Likewise.
25959         * config/ia64/ia64intrin.h: Likewise.
25960         * config/ia64/linux.h: Likewise.
25961         * config/ia64/unwind-aix.c: Likewise.
25962         * config/ia64/unwind-ia64.c: Likewise.
25964 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25966         * config/h8300/h8300.c: Revise comments about shift code.
25968 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25970         * config/h8300/h8300.c (function_arg): Update a comment.
25972 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25974         * config/h8300/h8300.md: Update the comments at the beginning
25975         of the file.
25977 2002-01-20  Kazu Hirata  <kazu@hxi.com>
25979         * config/i370/i370.c: Fix comment formatting.
25980         * config/i370/i370.h: Likewise.
25981         * config/i370/i370.md: Likewise.
25982         * config/i370/linux.h: Likewise.
25984 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
25986         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
25988         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
25989         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
25990         in incomplete case.
25992 2002-01-20  Graham Stott  <grahams@redhat.com>
25994         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
25996 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25998         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
26000 2002-01-19  Tom Rix  <trix@redhat.com>
26002         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
26004 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
26006         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
26008         * function.c (assign_stack_local_1): Adjust x_frame_offset with
26009         STARTING_FRAME_PHASE.
26010         (STARTING_FRAME_PHASE): New.
26011         (instantiate_virtual_regs): Check saneness of
26012         STARTING_FRAME_PHASE.
26014         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
26016 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
26018         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
26020 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26022         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
26023         be used for bootstrapping GCC 3.0.
26025 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26027         * config/h8300/h8300.md: Fix an insn length.
26029 2002-01-18  Kazu Hirata  <kazu@hxi.com>
26031         * bitmap.h: Fix comment formatting.
26032         * combine.c: Likewise.
26033         * cppfiles.c: Likewise.
26034         * c-pragma.h: Likewise.
26035         * c-typeck.c: Likewise.
26036         * df.c: Likewise.
26037         * dwarf2out.c: Likewise.
26038         * function.c: Likewise.
26039         * gcc.c: Likewise.
26040         * genattrtab.c: Likewise.
26041         * gthr-win32.h: Likewise.
26042         * haifa-sched.c: Likewise.
26043         * predict.c: Likewise.
26044         * rtlanal.c: Likewise.
26045         * rtl.h: Likewise.
26046         * unwind-dw2-fde.h: Likewise.
26047         * unwind-pe.h: Likewise.
26048         * vmsdbgout.c: Likewise.
26050 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26052         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
26053         if type_required and passed decl.
26055 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
26057         * config.gcc (cpu_type): Include altivec.h in powerpc
26058         extra_headers.
26059         Same for darwin.
26061         * config/rs6000/altivec.h: New.
26063 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
26065         * doc/install.texi (*-ibm-aix*): Update assembler and exception
26066         handling information.
26067         * doc/trouble.texi (Interoperation): Add libstdc++ information
26068         for AIX.
26069         (Misunderstandings): Add template instantiation and static template
26070         member information for AIX.
26072 2002-01-17  Jason Merrill  <jason@redhat.com>
26074         * dbxout.c (dbxout_type): Support const and volatile.
26076         * except.c (add_partial_entry): Remove backwards compatibility code.
26077         (end_protect_partials): Likewise.
26079 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
26081         * config/ia64/ia64.md (prologue_use): New.
26082         * config/ia64/ia64.c (ia64_expand_prologue): Use
26083         gen_prologue_use instead of gen_rtx_USE.
26084         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
26085         as CODE_FOR_pred_rel_mutex.
26086         (ia64_sched_reorder2): Likewise.
26088 2002-01-16  Eric Christopher  <echristo@redhat.com>
26090         * config/mips/r3900.h: Reformat.
26091         (SUBTARGET_CPP_SIZE_SPEC): Remove.
26092         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
26093         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
26094         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
26095         * config/mips/t-elf: Remove mips3 multilib.
26097 2002-01-16  H.J. Lu <hjl@gnu.org>
26099         * config/mips/linux.h: Include "mips/abi64.h".
26101 2002-01-16  H.J. Lu <hjl@gnu.org>
26103         * config/mips/t-linux: New.
26105         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
26107         * config/mips/linux.h: Don't include "gofast.h".
26108         (INIT_SUBTARGET_OPTABS): Removed.
26110 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26112         * config/h8300/h8300-protos.h: Replace emit_a_shift with
26113         output_a_shift.
26114         * config/h8300/h8300.c: Likewise.
26115         * config/h8300/h8300.md: Likewise.
26117 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26119         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
26120         spaces after an opcode name.
26121         (pushqi1_h8300hs): Likewise.
26122         (pushhi1_h8300hs): Likewise.
26124 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26126         * doc/extend.texi: Replace "option" with "attribute"
26127         appropriately.
26129 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26131         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
26132         (and:DI () (const_int -8)).
26133         (split_small_symbolic_mem_operand): Split
26134         (mem (and:DI () (const_int -8)).
26136 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26138         PR target/5309:
26139         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
26140         same way as TYPE_IMUL.
26141         (ultrasparc_sched_reorder): Likewise.
26142         * config/sparc/sparc.md (type): Add comment to update
26143         ultrasparc_sched_reorder when making changes.
26145 2002-01-16  Kazu Hirata  <kazu@hxi.com>
26147         * doc/invoke.texi: Change the dump file name of block
26148         reordering pass from 28.bbro to 29.bbro.
26149         Mention -dk option.
26151 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
26153         * i386.md (minsf splitter): Fix pasto.
26155 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26157         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
26158         to frame pointer initialisation instruction.
26159         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
26160         initialisation instruction.
26161         (soft_df_operand): Do not accept the IP register.
26162         (nonimmediate_soft_df_operand): Do not accept the IP register.
26164 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
26166         PR target/5357:
26167         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
26168         MASK_V8 being both set.
26170 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
26172         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
26173         insn for GOT register; add REG_MAYBE_DEAD notes instead.
26174         config/s390/s390.md (call, call_value): Add GOT register to
26175         CALL_INSN_FUNCTION_USAGE where needed.
26176         (call_exp, call_value_exp): New.
26178 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
26180         * config/arm/arm.c: General formatting tidy up.
26182 2002-01-16  Graham Stott  <grahams@redhat.com>
26184         * calls.c (try_to_integrate): Use "(size_t)" intermediate
26185         cast and when casting an integer literal to "rtx" pointer.
26186         (expand_call): Likewise.
26187         * flow.c (try_pre_increment): Likewise.
26188         (find_use_as_address): Likewise.
26189         * integrate.c (expand_iline_function): Likewise.
26190         * regmove.c (try_auto_increment): Likewise.
26192 2002-01-16  Graham Stott  <grahams@redhat.com>
26194         * sched-rgn.c (passed): Use sbitmap_free.
26195         (header): Likewise.
26196         (inner): Likewise.
26197         (in_queue): Likewise.
26198         (in_stack): Likewise.
26200 2002-01-15  Eric Christopher  <echristo@redhat.com>
26202         * flow.c (propagate_one_insn): Change to use fatal_insn.
26204 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26206         * expmed.c (extract_fixed_bit_field): Remove unused code.
26207         * system.h: Poison SLOW_ZERO_EXTEND.
26208         * doc/tm.texi: Remove.
26209         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
26210         * config/arm/arm.h: Likewise.
26211         * config/avr/avr.h: Likewise.
26212         * config/clipper/clipper.h: Likewise.
26213         * config/convex/convex.h: Likewise.
26214         * config/d30v/d30v.h: Likewise.
26215         * config/dsp16xx/dsp16xx.h: Likewise.
26216         * config/elxsi/elxsi.h: Likewise.
26217         * config/fr30/fr30.h: Likewise.
26218         * config/h8300/h8300.h: Likewise.
26219         * config/i370/i370.h: Likewise.
26220         * config/i386/i386.h: Likewise.
26221         * config/m68k/m68k.h: Likewise.
26222         * config/mips/mips.h: Likewise.
26223         * config/ns32k/ns32k.h: Likewise.
26224         * config/pdp11/pdp11.h: Likewise.
26225         * config/pj/pj.h: Likewise.
26226         * config/s390/s390.h: Likewise.
26227         * config/sh/sh.h: Likewise.
26228         * config/stormy16/stormy16.h: Likewise.
26229         * config/v850/v850.h: Likewise.
26230         * config/vax/vax.h: Likewise.
26231         * config/we32k/we32k.h: Likewise.
26233 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
26235         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
26236         (altivec_lvsl): Change constraint to b.
26237         (altivec_lvsr): Same.
26238         (altivec_lvebx): Same.
26239         (altivec_lvehx): Same.
26240         (altivec_lvewx): Same.
26241         (altivec_lvxl): Same.
26242         (altivec_lvx): Same.
26243         (altivec_stvx): Add parallel.
26244         (altivec_stvxl): Same.
26245         (altivec_stvehx): Same.
26246         (altivec_stvebx): Same.
26247         (altivec_stvebx): Same.
26249 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
26251         * config.gcc: Change altivec.h to altivec-defs.h.
26253         * config/rs6000/altivec.h: Delete.
26255         * config/rs6000/altivec-defs.h: Add.
26257 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26259         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
26260         and UMOD modes.
26262         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
26263         less than or equal to eight bytes.
26265         * vax.md (andsi3): Remove constraints and change SET destination
26266         operand type to nonimmediate_operand.
26267         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
26268         when it is a CONST_INT.
26270 2002-01-15  Jason Merrill  <jason@redhat.com>
26272         * c-common.def (FILE_STMT): New code.
26273         * c-common.c (statement_code_p): It's a statement.
26274         * c-common.h (stmt_tree_s): Add x_last_filename.
26275         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
26276         (last_expr_filename): New macro.
26277         * c-semantics.c (begin_stmt_tree): Initialize it.
26278         (add_stmt): If the filename changed, also insert a
26279         FILE_STMT.
26280         (expand_stmt): Handle seeing one.
26282 2002-01-15  Eric Christopher  <echristo@redhat.com>
26284         * flow.c (propagate_one_insn): Add error message and print out
26285         insn for debugging.
26287 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
26289         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
26290         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
26291         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
26292         TRAMPOLINE_ALIGNMENT.
26293         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
26294         to be in bits.
26295         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
26296         PCC_BITFIELD_TYPE_MATTERS.
26297         * config/interix.h (STDC_VALUE): Remove.  Use
26298         STDC_0_IN_SYSTEM_HEADERS.
26299         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
26300         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
26301         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
26303 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26305         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
26306         not work on this platform currently.
26308 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
26310         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
26311         readonly_warning in _().
26313 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
26315         * gcc.c (delete_if_ordinary): Backout previous change.
26317 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26319         * config/h8300/h8300.c (print_operand): Remove support for
26320         unused operand characters.
26322         * read-rtl.c: Fix formatting.
26323         * real.c: Likewise.
26324         * recog.c: Likewise.
26325         * regclass.c: Likewise.
26326         * regmove.c: Likewise.
26327         * reg-stack.c: Likewise.
26328         * reload1.c: Likewise.
26329         * rtlanal.c: Likewise.
26331 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26333         * config/i386/i386.c: Fix formatting.
26335 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
26337         * c-typeck.c (process_init_element): Don't save_expr
26338         COMPOUND_LITERAL_EXPR if just its initializer will be used.
26340 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
26342         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
26343         emit optional traceback table if optimize_size or TARGET_ELF.
26344         * config/rs6000/rs6000.md (prefetch): New.
26346 2002-01-15  Andreas Jaeger  <aj@suse.de>
26348         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
26350 2002-01-15  Kazu Hirata  <kazu@hxi.com>
26352         * mips-tfile.c: Fix formatting.
26354 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
26356         * unroll.c (final_reg_note_copy): Fix previous commit.
26358 2002-01-14  Kazu Hirata  <kazu@hxi.com>
26360         * config/h8300/h8300-protos.h: Remove the prototype for
26361         eq_operator.
26362         * config/h8300/h8300.c (eq_operator): Remove.
26364 2002-01-14  Richard Henderson  <rth@redhat.com>
26366         * config/i386/i386.md (prefetch): Tidy.
26367         (prefetch_3dnow): Fix locality operand.
26369 2002-01-14  Richard Henderson  <rth@redhat.com>
26371         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
26372         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
26374 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
26376         * reload1.c (reload_combine): Pass reg_sum replacement through
26377         copy_rtx in loop performing multiple changes.
26379 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
26381         * except.c (remove_unreachable_regions): New.
26382         (free_eh_status): Clear exception_handler_labels.
26383         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
26384         (find_exception_handler_labels): Don't add the same label more than
26385         once.
26386         (remove_exception_handler_label): Don't die if
26387         find_exception_handler_labels hasn't been called for the current
26388         function yet.
26390 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
26392         * toplev.c (rest_of_compilation): Rebuild jump labels after
26393         gcse.
26395 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
26397         * doc/extend.texi: Move documentation of X86 built-in functions
26398         here.
26399         * doc/invoke.texi: From here.
26400         * doc/sourcebuild.texi: Document location of documentation for
26401         machine built-in functions.
26403 2002-01-13  Christopher Faylor  <cgf@redhat.com>
26405         * cppfiles.c (TEST_THRESHOLD): New macro.
26406         (SHOULD_MMAP): Ditto.
26407         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
26408         be used.
26410 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
26412         * unroll.c (final_reg_note_copy): Properly handle
26413         REG_LABEL
26414         (unroll_loops): Fix LOOP_CONDITION heuristics.
26416 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
26418         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
26419         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
26421 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
26423         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
26424         threaded loop.
26426 2002-01-14  Tom Rix  <trix@redhat.com>
26428         * config/rs6000/rs6000.md: Fix typo with sradi.
26430 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
26432         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
26433         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
26434         (clrstrdi, clrstrsi): Adapt callers.
26436         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
26438         (movti splitter): Never use register 0 as base register.
26440 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
26442         * combine.c (simplify_shift_const): Always generate new rtx
26443         for shift expression instead of reusing given expression.
26445 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26447         * config/alpha/alpha.c (alpha_expand_mov): Don't call
26448         alpha_legitimize_address unless mode is Pmode.
26450 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
26452         * doc/md.texi (Modifiers): Document the '*' constraint for the
26453         user.
26455         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
26456         * doc/extend.texi (Function Attributes): 'interrupt' is valid
26457         for xstormy16 too.
26459 2002-01-13  Richard Henderson  <rth@redhat.com>
26461         * reload.c (find_reloads): Use a hard reg destination as reload reg
26462         for an input reload of the source.
26464 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
26466         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
26467         more generic.
26469 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
26471         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26472         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
26474         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
26476 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26478         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
26480 2002-01-12  Tom Rix  <trix@redhat.com>
26482         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
26483         TARGET_POWERPC64.
26485 2002-01-12  Richard Henderson  <rth@redhat.com>
26487         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
26489         * doc/invoke.texi: Update Alpha options.
26491         * doc/invoke.texi: Update i386 built-in function lists.
26493 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
26495         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
26496         referencing outside.
26498 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26500         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
26501         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
26502         offsets, and change line folding.
26503         * optabs.c (expand_binop): Remove warnings.
26504         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
26506 2002-01-12  Graham Stott <grahams@redhat.com>
26508         * attribs.c (handle_deprecated_attribute): constify WHAT.
26509         * diagnostic.c (warn_deprecated_use): Add braces, fixes
26510         dangling else warning and constify WHAT.
26511         * except.h (struct function, struct inline_remap): Move
26512         struct tag forward defs before all prototypes.
26513         (duplicate_eh_regions): Whitespace.
26515 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
26517         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
26518         MODE_BASE_REG_CLASS.
26519         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
26521 2002-01-12  Richard Henderson  <rth@redhat.com>
26523         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
26524         (ix86_expand_vector_move): New.
26525         (bdesc_2arg): Remove andps, andnps, orps, xorps.
26526         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
26527         Remove old prefetch builtins.  Special case the logicals removed above.
26528         (ix86_expand_builtin): Likewise.
26529         (safe_vector_operand): Use V4SFmode, not TImode.
26530         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
26531         (ix86_expand_timode_binop_builtin): New.
26532         * config/i386/i386-protos.h: Update.
26533         * config/i386/i386.h (enum ix86_builtins): Update.
26534         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
26535         Use ix86_expand_vector_move in vector move expanders.
26536         (movti_internal, movti_rex64): Add xorps alternative.
26537         (sse_clrv4sf): Rename and adjust from sse_clrti.
26538         (prefetch): Don't work so hard.
26539         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
26540         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
26541         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
26543 2002-01-11  Richard Henderson  <rth@redhat.com>
26545         * config/i386/mmintrin.h: New file.
26546         * config/i386/xmmintrin.h: New file.
26547         * config.gcc (i?86-*-*): Add extra_headers.
26548         * simplify-rtx.c (simplify_unary_operation): Handle saturating
26549         truncation codes.
26550         (simplify_binary_operation): Handle saturating arithmetic codes.
26551         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
26552         not the lowpart subreg.
26553         (ix86_expand_builtin): Return a TImode dummy register instead of 0
26554         on error.
26555         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
26557 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26559         * conflict.c (conflict_graph_compute): Free regsets when finished.
26560         * ssa.c (compute_coalesced_reg_partition): Likewise.
26562 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26564         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
26565         every where we allocate a register.
26567 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26569         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
26570         * lcm.c (compute_earliest, compute_farthest): Likewise.
26572 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
26574         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
26576 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
26578         * doc/rtl.texi (Insns): Fix 2 typos.
26580 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
26582         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
26583         options.  Use @table @gcctabopt for MMIX options.  Add index
26584         entries for MMIX options.  Start new paragraph with first
26585         heading of the machine-dependent options.
26587 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26589         PR other/5299
26590         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
26591         * combine.c (force_to_mode): Same.
26592         * reload1.c (clear_reload_reg_in_use): Same.
26594 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
26596         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
26597         and 'subtargets'.
26599 2002-01-11  Andreas Jaeger  <aj@suse.de>,
26600             Brad Lucier <lucier@math.purdue.edu>
26602         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
26603         mcpu.
26605 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
26607         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
26608         Protect with IN_LIBGCC.
26609         (LINK_EH_SPEC): Add required trailing space.
26611 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
26613         * c-tree.h: Move function declarations so that they are listed
26614         under the filename which contains them.
26615         (check_identifier, finish_decl_top_level,
26616         lookup_name_current_level_global, shadow_record_fields): Remove.
26618 2002-01-11  Andreas Jaeger  <aj@suse.de>
26620         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
26621         march.
26623 2002-01-10  Richard Henderson  <rth@redhat.com>
26625         * config/alpha/alpha.c (print_operand): Add 'J'.
26626         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
26627         new operand with the sequence number for the lituse.  When splitting
26628         the insns, use gen_movdi_er_high_g and generate a sequence number.
26629         (gen_movdi_er_high_g): Print the sequence number if non-zero.
26631 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
26633         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
26634         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
26635         stvxl.
26636         (altivec_expand_builtin): Same.
26637         (altivec_expand_stv_builtin): New.
26639         * config/rs6000/rs6000.h (rs6000_builtins): Same.
26641         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
26642         ("altivec_lvehx"): New.
26643         ("altivec_lvewx"): New.
26644         ("altivec_lvxl"): New.
26645         ("altivec_lvx"): New.
26646         ("altivec_stvx"): New.
26647         ("altivec_stvebx"): New.
26648         ("altivec_stvehx"): New.
26649         ("altivec_stvewx"): New.
26650         ("altivec_stvxl"): New.
26652 2002-01-10  Richard Henderson  <rth@redhat.com>
26654         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
26655         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
26656         care not to delete instructions twice.
26658 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
26660         * toplev.c: Don't declare environ (it's not used anywhere).
26661         * configure.in: Don't check for declaration of environ.
26662         * config/i386/xm-mingw32.h: Don't #define environ.
26663         * config.in, configure: Regenerate.
26665 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
26667         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
26668         * configure: Regenerate.
26670         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
26671         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
26672         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
26673         alpha/xm-vms.h.
26674         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
26675         LIMITS_H_TEST here, not in m68k/x-next.
26676         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
26677         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
26679         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
26680         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
26681         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
26683         * config/i386/x-djgpp: Renamed i386/t-djgpp.
26684         * config/m88k/x-dolph: Renamed m88k/t-dolph.
26685         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
26686         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
26687         replacement of quadlib.asm with quadlib.c.
26689         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
26690         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
26691         config/rs6000/xm-beos.h: Delete file.
26693         * config.gcc: Update to match above changes.
26695 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26697         * config/h8300/h8300.h: Fix comment typos.
26698         * config/h8300/h8300.md: Likewise.
26699         * config/h8300/lib1funcs.asm: Likewise.
26701 2002-01-10  Dale Johannesen  <dalej@apple.com>
26703         PR optimization/5269
26704         * unroll.c (precondition_loop_p): Make *increment be the correct
26705         sign when n_iterations known, to avoid confusing caller.
26707 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26709         * doc/extend.texi (deprecated): Fix a typo.
26711 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
26713         * basic-block.h (update_br_prob_note): Declare.
26714         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
26715         (try_forward_edges): Care negative frequencies and update note.
26716         (outgoing_edges_match): Tweek conditional merging heuristics.
26717         (try_crossjump_to_edge): use update_br_prob_note.
26718         * cfglayout.c (fixup_reorder_chain): Likewise.
26719         * cfrtl.c (update_br_prob_note): New.
26720         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
26722         * i386.c (ix86_decompose_address): Return -1 if address contains
26723         shift.
26724         (legitimate_address_p): Require ix86_decompose_address to return 1.
26726         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
26727         (cprop_insn): Likewise.
26729 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26731         * toplev.c: Fix formatting.
26732         * tree.c: Likewise.
26733         * tree-dump.c: Likewise.
26734         * unroll.c: Likewise.
26735         * unwind-dw2.c: Likewise.
26736         * unwind-dw2-fde.c: Likewise.
26737         * unwind-dw2-fde-glibc.c: Likewise.
26738         * unwind-sjlj.c: Likewise.
26740 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
26742         * doc/invoke.texi: Document PDP-11 options.
26744 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26746         * config/h8300/h8300.h: Fix formatting.
26748 2002-01-10  Ira Ruben   <ira@apple.com>
26750         Add __attribute__ ((deprecated)).
26751         * extend.texi: Document __attribute__ ((deprecated)).
26752         * invoke.texi: Document -Wno-deprecated-declarations.
26753         * testsuite/g++.dg/other/deprecated.C: New C++ test.
26754         * testsuite/gcc.dg/deprecated.c: New C test.
26755         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
26756         (c_common_attribute_table): Add "deprecated" entry.
26757         (handle_deprecated_attribute): New function.
26758         * c-decl.c (deprecated_states): New enum.
26759         deprecated_state: State of "deprecated" handling.
26760         (start_decl): Set deprecated_state based on attributes.
26761         (grokdeclarator): Test for deprecated uses, propagate attribute.
26762         * c-typeck.c (build_component_ref): Test for deprecated fields.
26763         (build_external_ref): Test for deprecated primaries.
26764         * diagnostic.c (warn_deprecated_use) New function to issue
26765         warnings about __attribute__ ((depricated)) references.
26766         * flags.h (warn_deprecated_decl): Extern declared for
26767         -W[no-]deprecated-declarations option.
26768         * print-tree.c (print_node): Show deprecated flag status.
26769         * toplev.c (warn_deprecated_decl): Defined.
26770         (W_options): Added "deprecated-declaration".
26771         * toplev.h (warn_deprecated_use): Extern declared.
26772         * tree.h (struct tree_common): Define deprecated_flag.
26773         (TREE_DEPRECATED): New macro to access flag.
26774         * cp/call.c (build_call): Test for deprecated calls.
26775         * cp/class.c (add_implicitly_declared_members): Set global
26776         flag to tell grokdeclarator to not issue deprecated warnings.
26777         * cp/cp-tree.h: Add extern for adding_implicit_members.
26778         * cp/decl.c (deprecated_states): New enum.
26779         (start_decl): Set deprecated_state based on attributes.
26780         (grokdeclarator): Test for deprecated uses, propagate attribute.
26781         * cp/lex.c (do_identifier): Test for deprecated primaries.
26782         * cp/typeck.c (build_component_ref): Test for deprecated fields.
26784 2002-01-10  Ira Ruben   <ira@apple.com>
26786         Fix to assign attributes to inline member functions.
26787         * cp/decl.c (start_method): Handle attrlist.
26789 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26791         * combine.c (expand_field_assignment): Use subreg_lsb().
26793 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
26795         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
26796         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
26797         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
26798         Recurse for any operand of AND as long as constant is non-zero.
26800 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26802         * config/h8300/h8300.md: Remove constraints from expanders.
26804 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26806         * varasm.c: Fix formatting.
26807         * varray.c: Likewise.
26808         * vmsdbgout.c: Likewise.
26809         * xcoffout.c: Likewise.
26811 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
26813         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
26814         update edge probabilities to match.
26816 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
26818         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
26819         dependencies.
26820         * doc/languages.texi, doc/sourcebuild.texi: New files.
26821         * doc/configfiles.texi: Make a subsubsection.  Update.
26822         * doc/configterms.texi: Add @node.  Remove warning that this isn't
26823         instructions for building GCC.
26824         * doc/makefile.texi: Make a subsection.
26825         * doc/gccint.texi: Update.
26827 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
26829         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
26831 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
26833         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
26835 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
26837         * optabs.c (expand_fix): Look for wider integer modes first.
26839         * i386.md (mov?f): Avoid the fake const double trick for medium
26840         memory model.
26841         (min?f*/max?f*): Prohibit memory operands for i387 variant.
26842         (fop_df_4): Disable for SSE compilation.
26844 2002-01-10  Graham Stott  <grahams@redhat.com>
26846         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
26847         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
26849 2002-01-10  Richard Henderson  <rth@redhat.com>
26851         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
26853 2002-01-10  Richard Henderson  <rth@redhat.com>
26855         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
26856         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
26858 2002-01-10  Kazu Hirata  <kazu@hxi.com>
26860         * combine.c (can_combine_p): Fix a comment typo.
26862 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
26864         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
26865         empty list correctly.  Change loop index $t to $f for
26866         consistency with rest of Makefile.
26868 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
26870         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
26871         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
26873         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
26874         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
26875         (altivec_init_builtins): Same.
26876         (altivec_expand_unop_builtin): Return NULL_RTX on error.
26877         (altivec_expand_binop_builtin): Same.
26878         (altivec_expand_ternop_builtin): Same.
26879         (bdesc_dst): New.
26881         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
26882         ("altivec_vctuxs"): Fix typo.
26883         ("altivec_vnmsubfp"): Same.
26884         ("altivec_dssall"): New.
26885         ("altivec_mfvscr"): New.
26886         ("altivec_dss"): New.
26887         ("altivec_lvsl"): New.
26888         ("altivec_lvsr"): New.
26889         ("altivec_dstt"): New.
26890         ("altivec_dstst"): New.
26891         ("altivec_dststt"): New.
26892         ("altivec_dst"): New.
26894         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
26895         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
26897 2002-01-09  Richard Henderson  <rth@redhat.com>
26899         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
26901 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
26903         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
26904         function.
26905         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
26906         prototype.
26907         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
26909 2002-01-09  Kazu Hirata  <kazu@hxi.com>
26911         * read-rtl.c: Fix formatting.
26912         * real.c: Likewise.
26913         * regclass.c: Likewise.
26914         * regrename.c: Likewise.
26915         * reg-stack.c: Likewise.
26916         * reload1.c: Likewise.
26917         * reload.c: Likewise.
26918         * rtl.c: Likewise.
26920 2002-01-09  Kazu Hirata  <kazu@hxi.com>
26922         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
26923         to extract items in the expr_list chain.
26925 2002-01-09  Richard Henderson  <rth@redhat.com>
26927         * config/vax/vax.c (vax_rtx_cost): Never abort.
26929         * config/vax/vax.h (REAL_ARITHMETIC): Define.
26931 2002-01-09  Jan Hubicka  <jh@suse.cz>
26933         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
26935 2002-01-09  Richard Henderson  <rth@redhat.com>
26937         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
26938         Unify code from various alternatives.
26940 2002-01-09  Richard Henderson  <rth@redhat.com>
26942         * regrename.c (copy_value): Ignore the copy if the source register
26943         is present in the value chain with a narrower mode.
26945 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
26947         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
26948         for the c4x target. Also improve layout.
26950 2002-01-09  Richard Henderson  <rth@redhat.com>
26952         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
26953         * config/m32r/m32r.md (and ior xor splitters): Swap operands
26954         to match insn patterns.
26956 2002-01-09  Richard Henderson  <rth@redhat.com>
26958         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
26959         (copyprop_hardreg_forward_1): Likewise.
26961 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
26963         * pa.md (decrement_and_branch_until_zero): Change predicate for
26964         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
26966 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
26968         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
26969         gets undefined. For Darwin.
26971 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
26973         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
26975 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
26977         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
26979 2002-01-08  Richard Henderson  <rth@redhat.com>
26981         * regrename.c (copy_value): Ignore overlapping copies.
26983 2002-01-08  Richard Henderson  <rth@redhat.com>
26985         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
26986         as needed to avoid shared structure.
26988 2002-01-08  Kazu Hirata  <kazu@hxi.com>
26990         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
26991         H8/300H and H8/S.
26993 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
26995         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
26996         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
26997         documentation of obsolete macros.
26998         * system.h: Poison these macros.
26999         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
27000         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
27001         config/c4x/c4x.h, config/clipper/clipper.h,
27002         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
27003         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
27004         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
27005         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
27006         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
27007         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
27008         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
27009         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
27010         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
27011         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
27012         config/sparc/sparc.h, config/stormy16/stormy16.h,
27013         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
27014         definitions and commented out definitions of obsolete macros.
27015         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
27016         of MAX_INT_TYPE_SIZE.
27018 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
27020         * config/s390/s390.c (s390_preferred_reload_class): Never
27021         return ADDR_REGS if it isn't a subset of the given class.
27022         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
27023         FP_REGS, but all superclasses as well.
27025         * config/s390/s390.c (s390_function_profiler): Fix thinko.
27027         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
27028         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
27029         must not be a const_int.
27031 2002-01-08  Richard Henderson  <rth@redhat.com>
27033         * Makefile.in (toplev.o): Depend on options.h.
27034         (gcc.o): Depend on specs.h.
27036 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
27038         * expr.c (store_expr): Convert VOIDmode constants back to target's
27039         mode.
27041 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
27043         * doc/invoke.texi: Markup gcc as @command.  Refer to
27044         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
27045         of http://gcc.gnu.org/thanks.html.
27047 2002-01-08  Dale Johannesen  <dalej@apple.com>
27049         * config/rs6000/rs6000.md: Add missing int register
27050         target case to movdf_low.
27052 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
27054         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
27055         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
27056         (cppinit.o): Depend on except.h.
27057         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
27058         s-specs): New rules.
27060         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
27061         Don't create specs.h/options.h/gencheck.h here.  Remove
27062         unnecessary variable settings from last argument of AC_OUTPUT.
27063         * config.in, configure: Regenerate.
27064         * intl.c: Hardcode package name as "gcc".
27066         * cppinit.c: Include except.h.
27067         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
27068         appropriate.
27069         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
27070         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
27071         (!)USING_SJLJ_EXCEPTIONS.
27072         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
27074 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27076         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
27077         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
27078         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
27079         documentation of obsolete macros.
27080         * system.h: Poison these macros.
27081         * config/d30v/d30v.h, config/ns32k/encore.h,
27082         config/stormy16/stormy16.h: Remove definitions and commented out
27083         definitions of obsolete macros.
27085 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
27087         * objc/objc-act.c (handle_class_ref): Mark the declaration of
27088         %sobjc_class_ref_%s as used - to prevent unwanted compiler
27089         warnings.
27091 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
27093         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
27094         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
27095         to insn adjusting stack/frame pointer.
27096         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
27097         accept operands that cause the insn to be non-splittable.
27099 2002-01-08  Graham Stott  <grahams@redhat.com>
27101         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
27102         (C_TYPE_FIELDS_VOLATILE): Likewise.
27103         (C_TYPE_BEING_DEFINED): Likewise.
27104         (C_IS_RESERVED_WORD): Likewise.
27105         (C_TYPE_VARIABLE_SIZE): Likewise.
27106         (C_DECL_VARIABLE_SIZE): Likewise.
27107         (C_MISSING_PROTOTYPE_WARNED): Likewise.
27108         (C_SET_EXP_ORIGINAL_CODE): Likewise.
27109         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
27110         parenthesis.
27111         (C_DECL_ANTICIPATED): Likewise.
27112         (c_build_type_variant): Add parenthesis.
27114 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
27116         * gcc.c (option_map): Remove --version.
27117         (process_command): Handle -fversion following the GNU Coding
27118         Standards.  Partially addresses PR other/704.
27120 2002-01-08  Graham Stott  <grahams@redhat.com>
27122         * combine.c (combine_instructions): Fix typo.
27124 2002-01-08  Graham Stott  <grahams@redhat.com>
27126         * debug.h: Use "tree" and "rtx" throughout.
27128         * debug.c: Likewise.
27130 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
27132         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
27133         constant pool, use the pool's version of the symbol instead.
27135 2002-01-07  Richard Henderson  <rth@redhat.com>
27137         * regrename.c (find_oldest_value_reg): Ignore the value chain if
27138         the original register was copied in a mode with a fewer number of
27139         hard registers than the desired mode.
27140         (copyprop_hardreg_forward_1): Likewise.
27141         (debug_value_data): Fix loop test.
27142         * toplev.c (parse_options_and_default_flags): Reenable
27143         -fcprop-registers at -O1.
27145 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27147         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
27148         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
27150         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
27151         predicates.
27153         * config/rs6000/rs6000.md: Add altivec predicate patterns.
27155 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27157         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
27158         (pa_output_function_prologue): Output local label at the beginning of
27159         the prologue when profiling.
27160         (hppa_profile_hook): Use the local label rather than the function label.
27161         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
27163 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27165         * config/rs6000/rs6000.c (print_operand): Remove extra space.
27166         (altivec_expand_unop_builtin): Fix thinko.
27167         (altivec_expand_binop_builtin): Same.
27168         (altivec_expand_ternop_builtin): Same.
27169         (altivec_expand_builtin): Same.
27171 2002-01-07  Richard Henderson  <rth@redhat.com>
27173         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
27175 2002-01-07  Jason Merrill  <jason@redhat.com>
27177         * unwind-dw2.c (execute_cfa_program): Use < again.
27179 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27181         * predict.c (combine_predictions_for_insn): Avoid division by zero.
27183 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
27185         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
27186         Don't allow -1 - x -> ~x simplifications in the first pass.
27188 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
27190         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
27191         arguments.
27192         (altivec_expand_binop_builtin): Same.
27193         (altivec_expand_unop_builtin): Same.
27194         (print_operand): Fix typo.
27195         (bdesc_1arg): Add vupk* variants.
27197         * rs6000.h (rs6000_builtins): Add vupk* enums.
27199         * rs6000.md: Add altivec_vupk* variants.
27201 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
27203         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
27204         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
27205         and last update dates.
27207 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
27209         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
27211 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
27213         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
27214         * config/avr/avr.h (CPP_SPEC): Likewise.
27215         (LINK_SPEC): Likewise.
27216         (CRT_BINUTILS_SPECS): Likewise.
27217         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
27218         * doc/invoke.texi (AVR Options): Document them.
27220 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
27222         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
27223         LABEL_NUSES.
27225 2002-01-07  Graham Stott  <grahams@redhat.com>
27227         * config/i386/i386.h: Update copyright date.
27228         (HALF_PIC_PTR): Add parenthesis.
27229         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
27230         (CONSTANT_ALIGNMENT): Add parenthesis.
27231         (DATA_ALIGNMENT): Likewise.
27232         (LOCAL_ALIGNMENT): Likewise.
27233         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
27234         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
27235         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
27236         (HARD_REGNO_NREGS): Add paranethesis.
27237         (VALID_SSE_REG_MODE): Whitespace.
27238         (VALID_MMX_REG_MODE): Whitespace.
27239         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
27240         (ix86_hard_regno_mode_ok): Add parenthesis.
27241         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
27242         (RETURN_IN_MEMORY): Whitespace.
27243         (N_REG_CLASSES): Add parenthesis.
27244         (INTEGER_CLASS_P): Add parenthesis and wrap.
27245         (FLOAT_CLASS_P): Likewise.
27246         (SSE_CLASS_P): Likewise.
27247         (MMX_CLASS_P): Likewise.
27248         (MAYBE_INTEGER_CLASS_P): Likewise.
27249         (MAYBE_FLOAT_CLASS_P): Likewise.
27250         (MAYBE_SSE_CLASS_P): Likewise.
27251         (MAYBE_MMX_CLASS_P): Likewise.
27252         (Q_CLASS_P): Likewise.
27253         (GENERAL_REGNO_P): Uppercase macro parameter.
27254         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
27255         (FP_REGNO_P): Likewise.
27256         (ANY_FP_REGNO_P): Uppercase macro parameter.
27257         (SSE_REGNO_P): Likewise.
27258         (SSE_REGNO): Likewise.
27259         (SSE_REG_P): Likewise.
27260         (SSE_FLOAT_MODE_P): Likewise.
27261         (MMX_REGNO_P): Likewise.
27262         (MMX_REG_P):Likewise.
27263         (STACK_REG_P): Likewise.
27264         (NON_STACK_REG_P): Likewise.
27265         (STACK_TOP_P): Likewise.
27266         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
27267         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
27268         (SECONDARY_MEMORY_NEEDED): Likewise.
27269         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
27270         (MD_ASM_CLOBBERS): Whitespace and wrap.
27271         (MUST_PASS_IN_STACK): Whitespace and wrap.
27272         (RETURN_POPS_ARGS): Add parenthesis.
27273         (INIT_CUMULATIVE_ARGS): Likewise.
27274         (FUNCTION_ARG): Likewise.
27275         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
27276         (SETUP_INCOMING_VARARGS): Likewise.
27277         (BUILD_VA_LIST_TYPE):  Add parenthesis.
27278         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
27279         parenthsis.
27280         (EXPAND_BUILTIN_VA_ARG): Likewise.
27281         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
27282         (INITIALIZE_TRAMPOLINE): Add parenthesis.
27283         (INITIAL_ELIMINATION_OFFSET): Likewise.
27284         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
27285         (REGNO_OK_FOR_BASE_P): Likewise.
27286         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
27287         (REGNO_OK_FOR_DIREG_P): Likewise.
27288         (REG_OK_FOR_INDEX_P): Whitespace.
27289         (REG_OK_FOR_BASE_P): Whitespace.
27290         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
27291         parenthesis.
27292         (FIND_BASE_TERM): Fix typo.
27293         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
27294         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
27295         (SYMBOLIC_CONST; Whitespace.
27296         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
27297         (ENCODE_SECTION_INFO): Whitespace.
27298         (FINALIZE_PIC): Remove do { ... } while (0).
27299         (PROMOTE_MODE): Wrap in do { ... } while (0).
27300         (CONST_COSTS): Whitespace.
27301         (RTX_COSTS): Add paramethesis, whitespace and wrap.
27302         (REGISTER_MOVE_COST): Add parenthesis.
27303         (MEMORY_MOVE_COST): Likewise.
27304         (EXTRA_CC_MODES): Whitespace.
27305         (SELECT_CC_MODE): Add parenthesis and whitespace.
27306         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
27307         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
27308         (ASM_OUTPUT_LABEL): Add paramethesis.
27309         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
27310         (ASM_OUTPUT_REG_POP): Likewise.
27311         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
27312         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
27314         * config/i386/i386.c: Update copyright.
27315         (CHECK_STACK_LIMIT): Add parenthesis.
27316         (AT_BP): Uppercase macro parameter.
27317         (x86_64_int_parameter_registers): Constify.
27318         (x86_64_int_return_registers): Likewise.
27319         (ix86_compare_op0): Use rtx.
27320         (construct_container): Constify INTREG parameter.
27321         (function_arg): Use rtx.
27323         * diagnostic.h: Update copyright date.
27324         (output_buffer_state): Add parenthesis.
27325         (output_buffer_format_args): Likewise.
27327         * combine.c (combine_instructions): Replace XEXP (links, 0)
27328         with link.
27330 2002-01-06  H.J. Lu <hjl@gnu.org>
27332         * cfgcleanup.c (thread_jump): Fix 2 typos.
27334 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
27336         * config.gcc: Add support for --enable-altivec.
27338 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27340         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
27342 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
27344         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
27345         __objc_class_name_*.
27347 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27349         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
27351 2002-01-06  Richard Henderson  <rth@redhat.com>
27353         * reorg.c (emit_delay_sequence): Remove death notes, not merely
27354         nop them out.  Increment label reference count for REG_LABEL.
27355         (fill_slots_from_thread): Frob label reference count around
27356         delete_related_insns.
27358 2002-01-05  Richard Henderson  <rth@redhat.com>
27360         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
27361         jump threading.
27363 2002-01-05  Richard Henderson  <rth@redhat.com>
27365         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
27366         * integrate.c (output_inline_function): Likewise.
27367         * toplev.c (rest_of_compilation): Do it here instead.  Move call
27368         to remove_unnecessary_notes after emitting abstract instance.
27369         Force an emitted nested function to have its parent emited as well.
27370         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
27371         for null.
27372         (rtl_for_decl_location): Do not look at reload data structures
27373         before reload has run.
27375 2002-01-05  Kazu Hirata  <kazu@hxi.com>
27377         * cse.c: Fix formatting.
27378         * dwarf2asm.c: Likewise.
27379         * dwarf2out.c: Likewise.
27380         * explow.c: Likewise.
27381         * expmed.c: Likewise.
27382         * function.c: Likewise.
27383         * gcov.c: Likewise.
27384         * gencheck.c: Likewise.
27385         * genrecog.c: Likewise.
27386         * ggc-common.c: Likewise.
27387         * ggc-page.c: Likewise.
27388         * global.c: Likewise.
27390 2002-01-05  Kazu Hirata  <kazu@hxi.com>
27392         * combine.c: Fix formatting.
27394 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
27396         PR middle-end/1557
27397         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
27399 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
27401         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
27402         as 1 for __powerpc64__ as well.
27404         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
27406         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
27407         return it.
27409 2002-01-05  Daniel Berlin  <dan@dberlin.org>
27411         * lcm.c: Revert change, due to performance regression it causes on
27412         SPEC because it's slightly more conservative (sigh, I hate
27413         edge-based LCM).
27415 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
27417         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
27419 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
27421         * doc/cppinternals.texi: Update.
27423 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
27425         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
27426         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
27427         negatives.
27428         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
27429         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
27430         kludge for pre-october-14th mmix versions to handle new-found bug
27431         with PUSHJ/PUSHGO and the register stack.
27432         * config/mmix/mmix.h (struct machine_function): Rename member
27433         has_call_value_without_parameters to has_call_without_parameters.
27434         All referers changed.
27435         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
27436         TARGET_MASK_BRANCH_PREDICT): New macros.
27437         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
27438         -mno-reg-stack-fill-bug-workaround.
27439         * config/mmix/mmix.md ("call"): Set struct machine member
27440         has_call_without_parameters.
27442 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
27444         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
27446 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
27448         * cfgcleanup.c: Include tm_p.h
27449         (mark_effect): Fix handling of hard register; fix handling of SET
27451 2002-01-04  Kazu Hirata  <kazu@hxi.com>
27453         * config/h8300/h8300.md (anonymous patterns): Check that
27454         operands are registers before using REGNO on them.
27456 2002-01-03  Roland McGrath  <roland@frob.com>
27458         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
27460 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
27462         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
27463         * c-common.h (genrtl_expr_stmt_value): Likewise.
27464         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
27465         (expand_expr_stmt_value): Add maybe_last argument.
27466         Don't warn about statement with no effect if it is the last statement
27467         in expression statement.
27468         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
27469         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
27470         expand_expr_stmt_value.
27471         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
27472         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
27473         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
27474         as maybe_last to expand_expr_stmt_value.
27476 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
27478         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
27479         be passed in, do not build it.
27480         (c_begin_if_stmt): New function.
27481         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27482         * c-common.h (c_expand_start_cond): Update prototype.
27483         (c_begin_if_stmt): Prototype new function.
27484         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
27485         * c-parse.in (if_prefix): Use c_begin_if_stmt,
27486         c_begin_while_stmt and c_finish_while_stmt_cond.
27488 2002-01-04  William Cohen  <wcohen@redhat.com>
27490         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
27491         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
27492         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
27493         * config/pa/som.h (ASM_FILE_START): Likewise.
27495 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
27497         * lcm.c: Include df.h.
27498         Add available_transfer_function prototype.
27499         (compute_available): Rework to use iterative dataflow framework.
27500         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
27501         with bb_info in df.h
27502         (available_transfer_function): New function.
27504         * Makefile.in (lcm.o): add df.h to dependencies.
27506 2002-01-04  Richard Henderson  <rth@redhat.com>
27508         * config/alpha/alpha.c (some_operand): Accept HIGH.
27509         (input_operand): Likewise; accept simple references to globals.
27510         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
27511         (alpha_const_double_ok_for_letter_p): Likewise.
27512         (alpha_extra_constraint): Likewise.
27513         (alpha_preferred_reload_class): Likewise.  Do not force
27514         symbolic constants to memory.
27515         (alpha_legitimate_address_p): Accept simple references
27516         to small_symbolic_operand.
27517         (alpha_legitimize_address): New arg scratch.  Be prepared to be
27518         called when no_new_pseudos.  Emit simple symbolic references.
27519         Split integers into low, high, and rest.
27520         (alpha_expand_mov): Use alpha_legitimize_address.
27521         (some_small_symbolic_mem_operand): New.
27522         (split_small_symbolic_mem_operand): New.
27523         * config/alpha/alpha-protos.h: Update.
27524         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
27525         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
27526         (EXTRA_CONSTRAINT): Likewise.
27527         (PREFERRED_RELOAD_CLASS): Likewise.
27528         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
27529         (PREDICATE_CODES): Update.
27530         * config/alpha/alpha.md: New post-reload splitters to convert
27531         simplfied symbolic operands to the form that references $29.
27532         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
27533         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
27535 2002-01-03  Richard Henderson  <rth@redhat.com>
27537         * local-alloc.c (function_invariant_p): Update commentary.
27539 2002-01-04  H.J. Lu <hjl@gnu.org>
27541         * toplev.c (rest_of_compilation): Fix a typo when calling
27542         cleanup_cfg.
27544 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27546         * c-common.c: Fix formatting.
27547         * diagnostic.c: Likewise.
27548         * doloop.c: Likewise.
27549         * dwarf2out.c: Likewise.
27551 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27553         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
27554         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
27556 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
27558         * cpperror.c: Update comments and copyright.
27559         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
27560         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
27562 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
27564         * collect2.c (main): Use strcmp when testing for "-shared".
27566 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
27568         * cppmacro.c: Don't include intl.h.  Update comments.
27569         (new_number_token): Allocate enough buffer for 64-bit unsigned
27570         integers; update prototype.
27571         * cppmain.c: Update comments.
27573 2002-01-03  William Cohen  <wcohen@redhat.com>
27575         * function.h (struct function): Add profile.
27576         (current_function_profile): New.
27577         doc/extend.texi: Update documentation.
27578         * final.c (final_start_function): Use current_function_profile
27579         instead of profile_flag.
27580         (profile_after_prologue): Likewise.
27581         * function.c (expand_function_start): Likewise.
27582         (expand_function_start): Likewise.
27583         * config/alpha/alpha.c (direct_call_operand):
27584         (alpha_does_function_need_gp): Likewise.
27585         (alpha_expand_prologue): Likewise.
27586         * config/arm/arm.c (arm_expand_prologue): Likewise.
27587         thumb_expand_prologue: Likewise.
27588         * config/d30v/d30v.c (d30v_stack_info): Likewise.
27589         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
27590         (fr30_expand_prologue): Likewise.
27591         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
27592         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
27593         * config/i386/i386.h (FINALIZE_PIC): Likewise.
27594         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
27595         * config/i960/i960.c (i960_output_function_prologue): Likewise.
27596         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
27597         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
27598         (m32r_expand_prologue): Likewise.
27599         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
27600         (m88k_expand_prologue): Likewise.
27601         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
27602         * config/mips/mips.c (compute_frame_size): Likewise.
27603         (mips_expand_prologue): Likewise.
27604         (mips_can_use_return_insn): Likewise.
27605         * config/pa/elf.h (ASM_FILE_START): Likewise.
27606         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
27607         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
27608         * config/pa/som.h (ASM_FILE_START): Likewise.
27609         * config/romp/romp.c (romp_using_r14): Likewise.
27610         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
27611         (rs6000_stack_info): Likewise.
27612         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
27613         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
27614         * config/v850/v850.c (compute_register_save_size): Likewise.
27616 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
27618         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
27619         gen_lowpart_common fails, use gen_lowpart_SUBREG.
27621 2002-01-03  Turly O'Connor  <turly@apple.com>
27623         * darwin.c (machopic_output_possible_stub_label): Don't generate
27624         stub routines for pseudo-stubs which we've just defined.
27626 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27628         * builtins.c: Fix formatting.
27629         * c-typeck.c: Likewise.
27630         * combine.c: Likewise.
27631         * expr.c: Likewise.
27632         * loop.c: Likewise.
27634 2002-01-03  Andreas Schwab  <schwab@suse.de>
27636         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
27637         and return true if _cpp_push_next_buffer pushed a new include
27638         file.
27639         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
27640         _cpp_pop_file_buffer did not push a new file.
27641         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
27643 2002-01-02  Eric Christopher  <echristo@redhat.com>
27645         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
27646         FIND_REG_INC_NOTE call. Update copyright.
27647         * loop.c (canonicalize_condition): Ditto.
27648         * reorg.c (delete_scheduled_jump): Ditto.
27650 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27652         * gcse.c: Fix formatting.
27654 2002-01-03  Graham Stott  <grahams@redhat.com>
27656         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
27657         forward defs for struct tags rtx_def, union_tree, rtvec_def
27658         also output corresponding typedefs for rtx, tree, and rtvec.
27660         * system.h: Move forward defs for struct tags rtx_def, union_tree,
27661         rtvec_def along with corresponding typedefs for rtx, tree, and
27662         rtvec to config.h, hconfig.h, tconfig.h.
27664 2002-01-03  Graham Stott  <grahams@redhat.com>
27666         * tree.h: Update copyright date.
27667         (IS_EXPR_CODE_CLASS): Add parenthesis.
27668         (TREE_SET_CODE): Add whitespace.
27669         (TREE_CHECK): Add parenthesis.
27670         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
27671         (CST_OR_CONSTRUCTOR_CHECK):
27672         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
27673         (TREE_SYMBOL_REFERENCED): Whitespace.
27674         (INT_CST_LT): Likewise.
27675         (INT_CST_LT_UNSIGNED): Likewise.
27676         (tree_real_cst): Unwrap comment.
27677         (tree_string): Likewise.
27678         (tree_complex): Likewise.
27679         (IDENTIFIER_POINTER): correct cast.
27680         (SAVE_EXPR_CONTEXT): Whitespace.
27681         (EXPR_WFL_FILENAME_NODE): Likewise.
27682         (EXPR_WFL_FILENAME): Remove parenthesis.
27683         (DECL_ORIGIN): Add parenthesis.
27684         (DECL_FROM_INLINE): Use NULL_TREE.
27685         (build_int_2): Whitespace.
27686         (build_type_variant): Add parenthesis.
27688         * gcc/jcf-parse.c: Update copyright date.
27689         (yyparse): Constify resource_filename.
27691 2002-01-03  Graham Stott  <grahams@redhat.com>
27693         * rtl.h: Update copyright date.
27694         (RTL_CHECK1): Wrap long line.
27695         (RTL_CHECK2): Likewise.
27696         (RTL_CHECKC1): Wrap long line and whitespace.
27697         (RTL_CHECKC2): Likewise.
27698         (XWINT): Whitespace.
27699         (XINT): Likewise.
27700         (XSTR): Likewise.
27701         (XEXP): Likewise.
27702         (XVEC): Likewise.
27703         (XMODE): Likewise.
27704         (XBITMAP): Likewise.
27705         (XTREE): Likewise.
27706         (XBBDEF): Likewise.
27707         (XTMPL): Likewise.
27708         (X0WINT): Likewise.
27709         (X0INT):Likewise.
27710         (X0UINT): Likewise.
27711         (X0STR): Likewise.
27712         (X0EXP): Likewise.
27713         (X0VEC): Likewise.
27714         (X0MODE): Likewise.
27715         (X0BITMAP): Likewise.
27716         (X0TREE): Likewise.
27717         (X0BBDEF): Likewise.
27718         (X0ADVFLAGS): Likewise.
27719         (X0CSELIB): Likewise.
27720         (X0MEMATTR): Likewise.
27721         (XCWINT): Likewise.
27722         (XCINT): Likewise.
27723         (XCUINT): Likewise.
27724         (XCSTR): Likewise.
27725         (XCEXP): Likewise.
27726         (XCVEC): Likewise.
27727         (XCMODE): Likewise.
27728         (XCBITMAP): Likewise.
27729         (XCTREE): Likewise.
27730         (XCBBDEF): Likewise.
27731         (XCADVFLAGS): Likewise.
27732         (XCCSELIB): Likewise.
27733         (XC2EXP): Likewise.
27734         (INSN_UID): Likewise.
27735         (PREV_INSN): Likewise.
27736         (PATTERN): Likewise.
27737         (INSN_CODE): Likewise.
27738         (PUT_REG_NOTE_KIND): Likewise.
27739         (CODE_LABEL_NUMBER): Likewise.
27740         (NOTE_SOURCE_FILE): Likewise.
27741         (NOTE_BLOCK): Likewise.
27742         (NOTE_EH_HANDLER): Likewise.
27743         (NOTE_RANGE_INFO): Likewise.
27744         (NOTE_LIVE_INFO): Likewise.
27745         (NOTE_BASIC_BLOCK): Likewise.
27746         (NOTE_EXPECTED_VALUE): Likewise.
27747         (NOTE_LINE_NUMBER): Likewise.
27748         (LABEL_NAME): Likewise.
27749         (LABEL_NUSES): Likewise.
27750         (LABEL_ALTERNATE_NAME): Likewise.
27751         (ADDRESSOF_DECL): Likewise.
27752         (JUMP_LABEL): Likewise.
27753         (LABEL_NEXTREF): Likewise.
27754         (REGNO): Likewise.
27755         (ORIGINAL_REGNO: Likewise.
27756         (HARD_REGISTER_NUM_P): Add parenthesis.
27757         (SUBREG_REG): Whitespace.
27758         (SUBREG_BYTE): Likewise.
27759         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
27760         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
27761         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
27762         (ASM_OPERANDS_INPUT_VEC): Likewise.
27763         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
27764         (ASM_OPERANDS_INPUT): Likewise.
27765         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
27766         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
27767         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
27768         (ASM_OPERANDS_INPUT_MODE): Likewise.
27769         (ASM_OPERANDS_SOURCE_FILE): Likewise.
27770         (ASM_OPERANDS_SOURCE_LINE): Likewise.
27771         (MEM_SET_IN_STRUCT_P): Minor reformat.
27772         (TRAP_CONDITION): Whitespace.
27773         (TRAP_CODE): Likewise.
27774         (COND_EXEC_TEST): Likewise.
27775         (COND_EXEC_CODE): Likewise.
27776         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
27777         (PHI_NODE_P): Add parenthesis.
27778         (plus_constant): Whitespace and add parenthesis.
27780 2002-01-03  Kazu Hirata  <kazu@hxi.com>
27782         * config/avr/avr.c: Fix comment typos.
27783         * config/c4x/c4x.md: Likewise.
27784         * config/dsp16xx/dsp16xx.h: Likewise.
27785         * config/dsp16xx/dsp16xx.md: Likewise.
27786         * config/i386/i386.md: Likewise.
27787         * config/ia64/ia64.c: Likewise.
27788         * config/m32r/m32r.h: Likewise.
27789         * config/m68hc11/m68hc11.md: Likewise.
27790         * config/mmix/mmix.c: Likewise.
27791         * config/mn10200/mn10200.c: Likewise.
27792         * config/romp/romp.c: Likewise.
27793         * config/sh/sh.c: Likewise.
27794         * config/stormy16/stormy16.c: Likewise.
27795         * config/stormy16/stormy16.h: Likewise.
27796         * config/stormy16/stormy16.md: Likewise.
27798 2002-01-03  Graham Stott  <grahams@redhat.com>
27800         * loop.h: Update copyright date.
27801         (LOOP_MOVABLES): Fix typo.
27802         (LOOP_REGS): Likewise.
27803         (LOOP_IVS): Likewise.
27805 2002-01-03  Graham Stott  <grahams@redhat.com>
27807         * cppinit.c: Update copyright date.
27808         Don't include output.h
27809         * Makefile.in: Update copyright date.
27810         Update dependency.
27812 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
27814         PR c/5226
27815         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
27816         (-pthread) Add to RS/6000 options.
27818 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27820         * except.c: Fix comment typos.
27821         * loop.c: Likewise.
27822         * varasm.c: Likewise.
27823         * doc/tm.texi: Fix a typo.
27825 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
27827         * c-typeck.c (output_init_element): Allow initializing static storage
27828         duration objects with compound literals.
27830 2002-01-02  Richard Henderson  <rth@redhat.com>
27832         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
27833         after abusing it.
27835 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
27837         * gcc.c (default_compilers): Const-ify.
27838         * mips-tdump.c (stab_names): Likewise.
27839         * mips-tfile.c (map_coff_types, map_coff_storage,
27840         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
27841         pseudo_ops_t, pseudo_ops): Likewise.
27842         * protoize.c (default_include): Likewise
27844         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
27845         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
27846         Add array size in declaration.
27847         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
27848         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
27849         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
27850         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
27851         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
27852         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
27853         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
27854         emtens, make_nan): Const-ify.
27855         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
27856         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
27858 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
27860         * config.gcc (ia64-*-*): Set extra_headers.
27861         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
27862         * config/alpha/t-osf: Remove.
27863         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
27865 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
27867         * config/rs6000/t-aix43: Revert previous change.
27869 2002-01-02  Jason Merrill  <jason@redhat.com>
27871         * c-decl.c (c_expand_body): Call outlining_inline_function when
27872         emitting an inline function out of line.
27874 2002-01-02  Richard Henderson  <rth@redhat.com>
27876         * dwarf2out.c (limbo_die_node): Add created_for member.
27877         (new_die): New argument created_for.  Update all callers.
27878         (mark_limbo_die_list): New.
27879         (dwarf2out_init): Register limbo_die_list as a root.
27880         (dwarf2out_finish): Force insert limbo dies into their function
27881         context.
27883 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
27885         PR c++/5089
27886         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
27888 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27890         * config/h8300/fixunssfsi.c: Update copyright.
27891         Fix comment typos.
27892         Fix formatting.
27893         * config/h8300/h8300.c: Update copyright.
27894         Eliminate warnings.
27896 2002-01-02  Kazu Hirata  <kazu@hxi.com>
27898         * config/romp/romp.c: Fix comment formatting.
27899         * config/romp/romp.h: Likewise.
27900         * config/romp/romp.md: Likewise.
27901         * config/s390/s390.c: Likewise.
27902         * config/stormy16/stormy16.c: Likewise.
27903         * config/stormy16/stormy16.h: Likewise.
27905 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
27907         * c-common.h (genrtl_expr_stmt_value): Declare.
27908         * c-semantics.c (genrtl_goto_stmt): Redirect to...
27909         (genrtl_goto_stmt_value): ... this new function.  Pass new
27910         argument down to expand_expr_stmt_value, taking
27911         TREE_ADDRESSABLE into account.
27912         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
27913         STMT_EXPR as addressable, i.e., one whose result we want.
27914         * expr.c (expand_expr): Don't save expression statement value
27915         of labeled_blocks or loop_exprs.
27916         * stmt.c (expand_expr_stmt): Redirect to...
27917         (expand_expr_stmt_value): ... this new function.  Use new
27918         argument to tell whether to save expression value.
27919         (expand_end_stmt_expr): Reset last_expr_type and
27920         last_expr_value if we don't have either.
27921         * tree-inline.c (declare_return_variable): Mark its use
27922         statement as addressable.
27923         * tree.h: Document new use of TREE_ADDRESSABLE.
27924         (expand_expr_stmt_value): Declare.
27926 2002-01-01  Tom Rix  <trix@redhat.com>
27928         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
27929         rs6000_emit_allocate_stack.
27931 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
27933         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
27934         ${srcdir}/ginclude/ to every entry in extra_headers.
27935         * configure: Regenerate.
27936         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
27937         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
27938         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
27939         * ginclude/proto.h: Rename to config/convex/proto.h.
27941 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
27943         * attribs.c (handle_vector_size_attribute): Use host_integerp
27944         and tree_int_cst; remove warnings.
27945         * caller-save.c (insert_restore): Add cast to get rid of warning.
27946         (insert_save): Likewise.
27947         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
27948         * regmove.c (find_matches): Add temporary var to kill a warning.
27950 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
27952         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
27953         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
27954         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
27955         (vms-dwarf2eh.o): Add Makefile rule.
27956         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
27957         * config/alpha/vms-dwarf2eh.asm: New file.
27959         * gcc.c (delete_if_ordinary): Delete all versions.
27961 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
27963         * config/mmix/mmix.md: Update FIXME to not mention
27964         define_constants.
27965         (MMIX_rJ_REGNUM): New define_constants constant.
27966         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
27967         "*movdicc_real"): Adjust contraints formatting.
27968         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
27969         for branch prediction.
27970         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
27971         output template.
27972         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
27973         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
27974         number.  Delete related FIXMEs.
27975         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
27976         from number to MMIX_rJ_REGNUM.
27977         (TARGET_MASK_BRANCH_PREDICT): New.
27978         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
27979         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
27980         value.  Add -mbranch-predict and -mno-branch-predict.
27981         (TARGET_VERSION): Drop date.
27982         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
27983         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
27984         for finding out global symbols.
27985         (mmix_asm_output_labelref): Revert condition for global symbol.
27986         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
27987         (mmix_print_operand_punct_valid_p): A '+' is valid.
27989 See ChangeLog.6 for earlier changes.