OSDN Git Service

Rotate 6 months of ChangeLog entries into ChangeLog.6
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * cpperror.c: Update comments and copyright.
4         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
5         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
6
7 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8
9         * collect2.c (main): Use strcmp when testing for "-shared".
10
11 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
12
13         * cppmacro.c: Don't include intl.h.  Update comments.
14         (new_number_token): Allocate enough buffer for 64-bit unsigned
15         integers; update prototype.
16         * cppmain.c: Update comments.
17
18 2002-01-03  William Cohen  <wcohen@redhat.com>
19
20         * function.h (struct function): Add profile.
21         (current_function_profile): New.
22         doc/extend.texi: Update documentation.
23         * final.c (final_start_function): Use current_function_profile
24         instead of profile_flag.
25         (profile_after_prologue): Likewise.
26         * function.c (expand_function_start): Likewise.
27         (expand_function_start): Likewise.
28         * config/alpha/alpha.c (direct_call_operand): 
29         (alpha_does_function_need_gp): Likewise.
30         (alpha_expand_prologue): Likewise.
31         * config/arm/arm.c (arm_expand_prologue): Likewise.
32         thumb_expand_prologue: Likewise.
33         * config/d30v/d30v.c (d30v_stack_info): Likewise.
34         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
35         (fr30_expand_prologue): Likewise.
36         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
37         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
38         * config/i386/i386.h (FINALIZE_PIC): Likewise.
39         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
40         * config/i960/i960.c (i960_output_function_prologue): Likewise.
41         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
42         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
43         (m32r_expand_prologue): Likewise.
44         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
45         (m88k_expand_prologue): Likewise.
46         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
47         * config/mips/mips.c (compute_frame_size): Likewise.
48         (mips_expand_prologue): Likewise.
49         (mips_can_use_return_insn): Likewise.
50         * config/pa/elf.h (ASM_FILE_START): Likewise.
51         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
52         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
53         * config/pa/som.h (ASM_FILE_START): Likewise.
54         * config/romp/romp.c (romp_using_r14): Likewise.
55         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
56         (rs6000_stack_info): Likewise.
57         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
58         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
59         * config/v850/v850.c (compute_register_save_size): Likewise.
60
61 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
62
63         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
64         gen_lowpart_common fails, use gen_lowpart_SUBREG.
65
66 2002-01-03  Turly O'Connor  <turly@apple.com>
67
68         * darwin.c (machopic_output_possible_stub_label): Don't generate
69         stub routines for pseudo-stubs which we've just defined.
70
71 2002-01-03  Kazu Hirata  <kazu@hxi.com>
72
73         * builtins.c: Fix formatting.
74         * c-typeck.c: Likewise.
75         * combine.c: Likewise.
76         * expr.c: Likewise.
77         * loop.c: Likewise.
78
79 2002-01-03  Andreas Schwab  <schwab@suse.de>
80
81         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
82         and return true if _cpp_push_next_buffer pushed a new include
83         file.
84         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
85         _cpp_pop_file_buffer did not push a new file.
86         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
87
88 2002-01-02  Eric Christopher  <echristo@redhat.com>
89
90         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
91         FIND_REG_INC_NOTE call. Update copyright.
92         * loop.c (canonicalize_condition): Ditto.
93         * reorg.c (delete_scheduled_jump): Ditto.
94
95 2002-01-03  Kazu Hirata  <kazu@hxi.com>
96
97         * gcse.c: Fix formatting.
98
99 2002-01-03  Graham Stott  <grahams@redhat.com>
100
101         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
102         forward defs for struct tags rtx_def, union_tree, rtvec_def
103         also output corresponding typedefs for rtxm, tree, and rtvcec.
104
105         * system.h: Move forward defs for struct tags rtx_def, union_tree,
106         rtvec_def along with corresponding typedefs for rtx, tree, and
107         rtvcec to config.h, hconfig.h, tconfig.h
108
109 2002-01-03  Graham Stott  <grahams@redhat.com>
110
111         * tree.h: Update copyright date.
112         (IS_EXPR_CODE_CLASS): Add parenthesis.
113         (TREE_SET_CODE): Add whitespace.
114         (TREE_CHECK): Add parenthesis.
115         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
116         (CST_OR_CONSTRUCTOR_CHECK):
117         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
118         (TREE_SYMBOL_REFERENCED): Whitespace.
119         (INT_CST_LT): Likewise.
120         (INT_CST_LT_UNSIGNED): Likewise.
121         (tree_real_cst): Unwrap comment.
122         (tree_string): Likewise.
123         (tree_complex): Likewise.
124         (IDENTIFIER_POINTER): correct cast.
125         (SAVE_EXPR_CONTEXT): Whitespace.
126         (EXPR_WFL_FILENAME_NODE): Likewise.
127         (EXPR_WFL_FILENAME): Remove parenthesis.
128         (DECL_ORIGIN): Add parenthesis.
129         (DECL_FROM_INLINE): Use NULL_TREE.
130         (build_int_2): Whitespace.
131         (build_type_variant): Add parenthesis.
132
133         * gcc/jcf-parse.c: Update copyright date.
134         (yyparse): Constify resource_filename.
135
136 2002-01-03  Graham Stott  <grahams@redhat.com>
137
138         * rtl.h: Update copyright date.
139         (RTL_CHECK1): Wrap long line.
140         (RTL_CHECK2): Likewise.
141         (RTL_CHECKC1): Wrap long line and whitespace.
142         (RTL_CHECKC2): Likewise.
143         (XWINT): Whitespace.
144         (XINT): Likewise.
145         (XSTR): Likewise.
146         (XEXP): Likewise.
147         (XVEC): Likewise.
148         (XMODE): Likewise.
149         (XBITMAP): Likewise.
150         (XTREE): Likewise.
151         (XBBDEF): Likewise.
152         (XTMPL): Likewise.
153         (X0WINT): Likewise.
154         (X0INT):Likewise.
155         (X0UINT): Likewise.
156         (X0STR): Likewise.
157         (X0EXP): Likewise.
158         (X0VEC): Likewise.
159         (X0MODE): Likewise.
160         (X0BITMAP): Likewise.
161         (X0TREE): Likewise.
162         (X0BBDEF): Likewise.
163         (X0ADVFLAGS): Likewise.
164         (X0CSELIB): Likewise.
165         (X0MEMATTR): Likewise.
166         (XCWINT): Likewise.
167         (XCINT): Likewise.
168         (XCUINT): Likewise.
169         (XCSTR): Likewise.
170         (XCEXP): Likewise.
171         (XCVEC): Likewise.
172         (XCMODE): Likewise.
173         (XCBITMAP): Likewise.
174         (XCTREE): Likewise.
175         (XCBBDEF): Likewise.
176         (XCADVFLAGS): Likewise.
177         (XCCSELIB): Likewise.
178         (XC2EXP): Likewise.
179         (INSN_UID): Likewise.
180         (PREV_INSN): Likewise.
181         (PATTERN): Likewise.
182         (INSN_CODE): Likewise.
183         (PUT_REG_NOTE_KIND): Likewise.
184         (CODE_LABEL_NUMBER): Likewise.
185         (NOTE_SOURCE_FILE): Likewise.
186         (NOTE_BLOCK): Likewise.
187         (NOTE_EH_HANDLER): Likewise.
188         (NOTE_RANGE_INFO): Likewise.
189         (NOTE_LIVE_INFO): Likewise.
190         (NOTE_BASIC_BLOCK): Likewise.
191         (NOTE_EXPECTED_VALUE): Likewise.
192         (NOTE_LINE_NUMBER): Likewise.
193         (LABEL_NAME): Likewise.
194         (LABEL_NUSES): Likewise.
195         (LABEL_ALTERNATE_NAME): Likewise.
196         (ADDRESSOF_DECL): Likewise.
197         (JUMP_LABEL): Likewise.
198         (LABEL_NEXTREF): Likewise.
199         (REGNO): Likewise.
200         (ORIGINAL_REGNO: Likewise.
201         (HARD_REGISTER_NUM_P): Add parenthesis.
202         (SUBREG_REG): Whitespace.
203         (SUBREG_BYTE): Likewise.
204         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
205         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
206         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
207         (ASM_OPERANDS_INPUT_VEC): Likewise.
208         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
209         (ASM_OPERANDS_INPUT): Likewise.
210         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
211         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
212         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
213         (ASM_OPERANDS_INPUT_MODE): Likewise.
214         (ASM_OPERANDS_SOURCE_FILE): Likewise.
215         (ASM_OPERANDS_SOURCE_LINE): Likewise.
216         (MEM_SET_IN_STRUCT_P): Minor reformat.
217         (TRAP_CONDITION): Whitespace.
218         (TRAP_CODE): Likewise.
219         (COND_EXEC_TEST): Likewise.
220         (COND_EXEC_CODE): Likewise.
221         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
222         (PHI_NODE_P): Add parenthesis.
223         (plus_constant): Whitespace and add parenthesis.
224
225 2002-01-03  Kazu Hirata  <kazu@hxi.com>
226
227         * config/avr/avr.c: Fix comment typos.
228         * config/c4x/c4x.md: Likewise.
229         * config/dsp16xx/dsp16xx.h: Likewise.
230         * config/dsp16xx/dsp16xx.md: Likewise.
231         * config/i386/i386.md: Likewise.
232         * config/ia64/ia64.c: Likewise.
233         * config/m32r/m32r.h: Likewise.
234         * config/m68hc11/m68hc11.md: Likewise.
235         * config/mmix/mmix.c: Likewise.
236         * config/mn10200/mn10200.c: Likewise.
237         * config/romp/romp.c: Likewise.
238         * config/sh/sh.c: Likewise.
239         * config/stormy16/stormy16.c: Likewise.
240         * config/stormy16/stormy16.h: Likewise.
241         * config/stormy16/stormy16.md: Likewise.
242
243 2002-01-03  Graham Stott  <grahams@redhat.com>
244
245         * loop.h: Update copyright date.
246         (LOOP_MOVABLES): Fix typo.
247         (LOOP_REGS): Likewise.
248         (LOOP_IVS): Likewise.
249
250 2002-01-03  Graham Stott  <grahams@redhat.com>
251
252         * cppinit.c: Update copyright date.
253         Don't include output.h
254         * Makefile.in: Update copyright date.
255         Update dependency.
256
257 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
258
259         PR c/5226
260         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
261         (-pthread) Add to RS/6000 options.
262
263 2002-01-02  Kazu Hirata  <kazu@hxi.com>
264
265         * except.c: Fix comment typos.
266         * loop.c: Likewise.
267         * varasm.c: Likewise.
268         * doc/tm.texi: Fix a typo.
269
270 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
271
272         * c-typeck.c (output_init_element): Allow initializing static storage
273         duration objects with compound literals.
274
275 2002-01-02  Richard Henderson  <rth@redhat.com>
276
277         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
278         after abusing it.
279
280 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
281
282         * gcc.c (default_compilers): Const-ify.
283         * mips-tdump.c (stab_names): Likewise.
284         * mips-tfile.c (map_coff_types, map_coff_storage,
285         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
286         pseudo_ops_t, pseudo_ops): Likewise.
287         * protoize.c (default_include): Likewise
288
289         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
290         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
291         Add array size in declaration.
292         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
293         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
294         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
295         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
296         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
297         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
298         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
299         emtens, make_nan): Const-ify.
300         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
301         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
302
303 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
304
305         * config.gcc (ia64-*-*): Set extra_headers.
306         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
307         * config/alpha/t-osf: Remove.
308         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
309
310 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
311
312         * config/rs6000/t-aix43: Revert previous change.
313
314 2002-01-02  Jason Merrill  <jason@redhat.com>
315
316         * c-decl.c (c_expand_body): Call outlining_inline_function when
317         emitting an inline function out of line.
318
319 2002-01-02  Richard Henderson  <rth@redhat.com>
320
321         * dwarf2out.c (limbo_die_node): Add created_for member.
322         (new_die): New argument created_for.  Update all callers.
323         (mark_limbo_die_list): New.
324         (dwarf2out_init): Register limbo_die_list as a root.
325         (dwarf2out_finish): Force insert limbo dies into their function
326         context.
327
328 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
329
330         PR c++/5089
331         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
332
333 2002-01-02  Kazu Hirata  <kazu@hxi.com>
334
335         * config/h8300/fixunssfsi.c: Update copyright.
336         Fix comment typos.
337         Fix formatting.
338         * config/h8300/h8300.c: Update copyright.
339         Eliminate warnings.
340
341 2002-01-02  Kazu Hirata  <kazu@hxi.com>
342
343         * config/romp/romp.c: Fix comment formatting.
344         * config/romp/romp.h: Likewise.
345         * config/romp/romp.md: Likewise.
346         * config/s390/s390.c: Likewise.
347         * config/stormy16/stormy16.c: Likewise.
348         * config/stormy16/stormy16.h: Likewise.
349
350 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
351
352         * c-common.h (genrtl_expr_stmt_value): Declare.
353         * c-semantics.c (genrtl_goto_stmt): Redirect to...
354         (genrtl_goto_stmt_value): ... this new function.  Pass new
355         argument down to expand_expr_stmt_value, taking
356         TREE_ADDRESSABLE into account.
357         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
358         STMT_EXPR as addressable, i.e., one whose result we want.
359         * expr.c (expand_expr): Don't save expression statement value
360         of labeled_blocks or loop_exprs.
361         * stmt.c (expand_expr_stmt): Redirect to...
362         (expand_expr_stmt_value): ... this new function.  Use new
363         argument to tell whether to save expression value.
364         (expand_end_stmt_expr): Reset last_expr_type and
365         last_expr_value if we don't have either.
366         * tree-inline.c (declare_return_variable): Mark its use
367         statement as addressable.
368         * tree.h: Document new use of TREE_ADDRESSABLE.
369         (expand_expr_stmt_value): Declare.
370
371 2002-01-01  Tom Rix  <trix@redhat.com>
372
373         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
374         rs6000_emit_allocate_stack.
375
376 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
377
378         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
379         ${srcdir}/ginclude/ to every entry in extra_headers.
380         * configure: Regenerate.
381         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
382         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
383         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
384         * ginclude/proto.h: Rename to config/convex/proto.h.
385
386 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
387
388         * attribs.c (handle_vector_size_attribute): Use host_integerp
389         and tree_int_cst; remove warnings.
390         * caller-save.c (insert_restore): Add cast to get rid of warning.
391         (insert_save): Likewise.
392         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
393         * regmove.c (find_matches): Add temporary var to kill a warning.
394
395 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
396
397         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
398         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
399         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
400         (vms-dwarf2eh.o): Add Makefile rule.
401         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
402         * config/alpha/vms-dwarf2eh.asm: New file.
403
404         * gcc.c (delete_if_ordinary): Delete all versions.
405
406 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
407
408         * config/mmix/mmix.md: Update FIXME to not mention
409         define_constants.
410         (MMIX_rJ_REGNUM): New define_constants constant.
411         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
412         "*movdicc_real"): Adjust contraints formatting.
413         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
414         for branch prediction.
415         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
416         output template.
417         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
418         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
419         number.  Delete related FIXMEs.
420         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
421         from number to MMIX_rJ_REGNUM.
422         (TARGET_MASK_BRANCH_PREDICT): New.
423         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
424         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
425         value.  Add -mbranch-predict and -mno-branch-predict.
426         (TARGET_VERSION): Drop date.
427         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
428         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
429         for finding out global symbols.
430         (mmix_asm_output_labelref): Revert condition for global symbol.
431         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
432         (mmix_print_operand_punct_valid_p): A '+' is valid.
433
434 See ChangeLog.6 for earlier changes.