OSDN Git Service

* pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2
3         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
4         (pa_output_function_prologue): Output local label at the beginning of
5         the prologue when profiling.
6         (hppa_profile_hook): Use the local label rather than the function label.
7         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
8
9 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
10
11         * config/rs6000/rs6000.c (print_operand): Remove extra space.
12         (altivec_expand_unop_builtin): Fix thinko.
13         (altivec_expand_binop_builtin): Same.
14         (altivec_expand_ternop_builtin): Same.
15         (altivec_expand_builtin): Same.
16
17 2002-01-07  Richard Henderson  <rth@redhat.com>
18
19         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
20
21 2002-01-07  Jason Merrill  <jason@redhat.com>
22
23         * unwind-dw2.c (execute_cfa_program): Use < again.
24
25 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
26
27         * predict.c (combine_predictions_for_insn): Avoid division by zero.
28
29 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
30
31         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
32         Don't allow -1 - x -> ~x simplifications in the first pass.
33
34 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
35
36         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
37         arguments.
38         (altivec_expand_binop_builtin): Same.
39         (altivec_expand_unop_builtin): Same.
40         (print_operand): Fix typo.
41         (bdesc_1arg): Add vupk* variants.
42
43         * rs6000.h (rs6000_builtins): Add vupk* enums.
44
45         * rs6000.md: Add altivec_vupk* variants.
46
47 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
48
49         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
50         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
51         and last update dates.
52
53 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
54
55         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
56
57 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
58
59         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
60         * config/avr/avr.h (CPP_SPEC): Likewise.
61         (LINK_SPEC): Likewise.
62         (CRT_BINUTILS_SPECS): Likewise.
63         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
64         * doc/invoke.texi (AVR Options): Document them.
65
66 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
67
68         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
69         LABEL_NUSES.
70
71 2002-01-07  Graham Stott  <grahams@redhat.com>
72
73         * config/i386/i386.h: Update copyright date.
74         (HALF_PIC_PTR): Add parenthesis.
75         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
76         (CONSTANT_ALIGNMENT): Add parenthesis.
77         (DATA_ALIGNMENT): Likewise.
78         (LOCAL_ALIGNMENT): Likewise.
79         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
80         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
81         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
82         (HARD_REGNO_NREGS): Add paranethesis.
83         (VALID_SSE_REG_MODE): Whitespace.
84         (VALID_MMX_REG_MODE): Whitespace.
85         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
86         (ix86_hard_regno_mode_ok): Add parenthesis.
87         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
88         (RETURN_IN_MEMORY): Whitespace.
89         (N_REG_CLASSES): Add parenthesis.
90         (INTEGER_CLASS_P): Add parenthesis and wrap.
91         (FLOAT_CLASS_P): Likewise.
92         (SSE_CLASS_P): Likewise.
93         (MMX_CLASS_P): Likewise.
94         (MAYBE_INTEGER_CLASS_P): Likewise.
95         (MAYBE_FLOAT_CLASS_P): Likewise.
96         (MAYBE_SSE_CLASS_P): Likewise.
97         (MAYBE_MMX_CLASS_P): Likewise. 
98         (Q_CLASS_P): Likewise.
99         (GENERAL_REGNO_P): Uppercase macro parameter.
100         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
101         (FP_REGNO_P): Likewise.
102         (ANY_FP_REGNO_P): Uppercase macro parameter.
103         (SSE_REGNO_P): Likewise.
104         (SSE_REGNO): Likewise.
105         (SSE_REG_P): Likewise.
106         (SSE_FLOAT_MODE_P): Likewise.
107         (MMX_REGNO_P): Likewise.
108         (MMX_REG_P):Likewise. 
109         (STACK_REG_P): Likewise.
110         (NON_STACK_REG_P): Likewise.
111         (STACK_TOP_P): Likewise.
112         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
113         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
114         (SECONDARY_MEMORY_NEEDED): Likewise.
115         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
116         (MD_ASM_CLOBBERS): Whitespace and wrap.
117         (MUST_PASS_IN_STACK): Whitespace and wrap.
118         (RETURN_POPS_ARGS): Add parenthesis.
119         (INIT_CUMULATIVE_ARGS): Likewise.
120         (FUNCTION_ARG): Likewise.
121         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
122         (SETUP_INCOMING_VARARGS): Likewise.
123         (BUILD_VA_LIST_TYPE):  Add parenthesis.
124         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
125         parenthsis.
126         (EXPAND_BUILTIN_VA_ARG): Likewise.
127         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
128         (INITIALIZE_TRAMPOLINE): Add parenthesis.
129         (INITIAL_ELIMINATION_OFFSET): Likewise.
130         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
131         (REGNO_OK_FOR_BASE_P): Likewise.
132         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
133         (REGNO_OK_FOR_DIREG_P): Likewise.
134         (REG_OK_FOR_INDEX_P): Whitespace.
135         (REG_OK_FOR_BASE_P): Whitespace.
136         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
137         parenthesis.
138         (FIND_BASE_TERM): Fix typo.
139         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
140         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
141         (SYMBOLIC_CONST; Whitespace.
142         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
143         (ENCODE_SECTION_INFO): Whitespace.
144         (FINALIZE_PIC): Remove do { ... } while (0).
145         (PROMOTE_MODE): Wrap in do { ... } while (0).
146         (CONST_COSTS): Whitespace.
147         (RTX_COSTS): Add paramethesis, whitespace and wrap.
148         (REGISTER_MOVE_COST): Add parenthesis.
149         (MEMORY_MOVE_COST): Likewise.
150         (EXTRA_CC_MODES): Whitespace.
151         (SELECT_CC_MODE): Add parenthesis and whitespace.
152         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
153         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
154         (ASM_OUTPUT_LABEL): Add paramethesis.
155         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
156         (ASM_OUTPUT_REG_POP): Likewise.
157         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
158         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
159
160         * config/i386/i386.c: Update copyright.
161         (CHECK_STACK_LIMIT): Add parenthesis.
162         (AT_BP): Uppercase macro parameter.
163         (x86_64_int_parameter_registers): Constify.
164         (x86_64_int_return_registers): Likewise.
165         (ix86_compare_op0): Use rtx.
166         (construct_container): Constify INTREG parameter.
167         (function_arg): Use rtx.
168
169         * diagnostic.h: Update copyright date.
170         (output_buffer_state): Add parenthesis.
171         (output_buffer_format_args): Likewise.
172
173         * combine.c (combine_instructions): Replace XEXP (links, 0)
174         with link.
175
176 2002-01-06  H.J. Lu <hjl@gnu.org>
177
178         * cfgcleanup.c (thread_jump): Fix 2 typos.
179
180 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
181
182         * config.gcc: Add support for --enable-altivec.
183
184 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
185
186         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
187
188 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
189
190         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
191         __objc_class_name_*.
192
193 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
194
195         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
196
197 2002-01-06  Richard Henderson  <rth@redhat.com>
198
199         * reorg.c (emit_delay_sequence): Remove death notes, not merely
200         nop them out.  Increment label reference count for REG_LABEL.
201         (fill_slots_from_thread): Frob label reference count around
202         delete_related_insns.
203
204 2002-01-05  Richard Henderson  <rth@redhat.com>
205
206         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
207         jump threading.
208
209 2002-01-05  Richard Henderson  <rth@redhat.com>
210
211         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
212         * integrate.c (output_inline_function): Likewise.
213         * toplev.c (rest_of_compilation): Do it here instead.  Move call
214         to remove_unnecessary_notes after emitting abstract instance.
215         Force an emitted nested function to have its parent emited as well.
216         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
217         for null.
218         (rtl_for_decl_location): Do not look at reload data structures
219         before reload has run.
220
221 2002-01-05  Kazu Hirata  <kazu@hxi.com>
222
223         * cse.c: Fix formatting.
224         * dwarf2asm.c: Likewise.
225         * dwarf2out.c: Likewise.
226         * explow.c: Likewise.
227         * expmed.c: Likewise.
228         * function.c: Likewise.
229         * gcov.c: Likewise.
230         * gencheck.c: Likewise.
231         * genrecog.c: Likewise.
232         * ggc-common.c: Likewise.
233         * ggc-page.c: Likewise.
234         * global.c: Likewise.
235
236 2002-01-05  Kazu Hirata  <kazu@hxi.com>
237
238         * combine.c: Fix formatting.
239
240 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
241
242         PR middle-end/1557
243         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
244
245 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
246
247         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
248         as 1 for __powerpc64__ as well.
249
250         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
251
252         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
253         return it.
254
255 2002-01-05  Daniel Berlin  <dan@dberlin.org>
256
257         * lcm.c: Revert change, due to performance regression it causes on
258         SPEC because it's slightly more conservative (sigh, I hate
259         edge-based LCM).
260         
261 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
262
263         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
264
265 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
266
267         * doc/cppinternals.texi: Update.
268
269 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
270
271         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
272         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
273         negatives.
274         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
275         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
276         kludge for pre-october-14th mmix versions to handle new-found bug
277         with PUSHJ/PUSHGO and the register stack.
278         * config/mmix/mmix.h (struct machine_function): Rename member
279         has_call_value_without_parameters to has_call_without_parameters.
280         All referers changed.
281         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
282         TARGET_MASK_BRANCH_PREDICT): New macros.
283         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
284         -mno-reg-stack-fill-bug-workaround.
285         * config/mmix/mmix.md ("call"): Set struct machine member
286         has_call_without_parameters.
287
288 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
289
290         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
291
292 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
293
294         * cfgcleanup.c: Include tm_p.h
295         (mark_effect): Fix handling of hard register; fix handling of SET
296
297 2002-01-04  Kazu Hirata  <kazu@hxi.com>
298
299         * config/h8300/h8300.md (anonymous patterns): Check that
300         operands are registers before using REGNO on them.
301
302 2002-01-03  Roland McGrath  <roland@frob.com>
303
304         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
305
306 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
307
308         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
309         * c-common.h (genrtl_expr_stmt_value): Likewise.
310         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
311         (expand_expr_stmt_value): Add maybe_last argument.
312         Don't warn about statement with no effect if it is the last statement
313         in expression statement.
314         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
315         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
316         expand_expr_stmt_value.
317         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
318         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
319         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
320         as maybe_last to expand_expr_stmt_value.
321
322 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
323
324         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
325         be passed in, do not build it.
326         (c_begin_if_stmt): New function.
327         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
328         * c-common.h (c_expand_start_cond): Update prototype.
329         (c_begin_if_stmt): Prototype new function.
330         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
331         * c-parse.in (if_prefix): Use c_begin_if_stmt,
332         c_begin_while_stmt and c_finish_while_stmt_cond.
333
334 2002-01-04  William Cohen  <wcohen@redhat.com>
335
336         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
337         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
338         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
339         * config/pa/som.h (ASM_FILE_START): Likewise.
340
341 2001-01-04  Daniel Berlin  <dan@cgsoftware.com>
342
343         * lcm.c: Include df.h.
344         Add available_transfer_function prototype.
345         (compute_available): Rework to use iterative dataflow framework.
346         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
347         with bb_info in df.h
348         (available_transfer_function): New function.
349
350         * Makefile.in (lcm.o): add df.h to dependencies.
351
352 2002-01-04  Richard Henderson  <rth@redhat.com>
353
354         * config/alpha/alpha.c (some_operand): Accept HIGH.
355         (input_operand): Likewise; accept simple references to globals.
356         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
357         (alpha_const_double_ok_for_letter_p): Likewise.
358         (alpha_extra_constraint): Likewise.
359         (alpha_preferred_reload_class): Likewise.  Do not force
360         symbolic constants to memory.
361         (alpha_legitimate_address_p): Accept simple references
362         to small_symbolic_operand.
363         (alpha_legitimize_address): New arg scratch.  Be prepared to be
364         called when no_new_pseudos.  Emit simple symbolic references.
365         Split integers into low, high, and rest.
366         (alpha_expand_mov): Use alpha_legitimize_address.
367         (some_small_symbolic_mem_operand): New.
368         (split_small_symbolic_mem_operand): New.
369         * config/alpha/alpha-protos.h: Update.
370         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
371         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
372         (EXTRA_CONSTRAINT): Likewise.
373         (PREFERRED_RELOAD_CLASS): Likewise.
374         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
375         (PREDICATE_CODES): Update.
376         * config/alpha/alpha.md: New post-reload splitters to convert
377         simplfied symbolic operands to the form that references $29.
378         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
379         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
380
381 2002-01-03  Richard Henderson  <rth@redhat.com>
382
383         * local-alloc.c (function_invariant_p): Update commentary.
384
385 2002-01-04  H.J. Lu <hjl@gnu.org>
386
387         * toplev.c (rest_of_compilation): Fix a typo when calling
388         cleanup_cfg.
389
390 2002-01-03  Kazu Hirata  <kazu@hxi.com>
391
392         * c-common.c: Fix formatting.
393         * diagnostic.c: Likewise.
394         * doloop.c: Likewise.
395         * dwarf2out.c: Likewise.
396
397 2002-01-03  Kazu Hirata  <kazu@hxi.com>
398
399         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
400         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
401
402 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
403
404         * cpperror.c: Update comments and copyright.
405         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
406         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
407
408 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
409
410         * collect2.c (main): Use strcmp when testing for "-shared".
411
412 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
413
414         * cppmacro.c: Don't include intl.h.  Update comments.
415         (new_number_token): Allocate enough buffer for 64-bit unsigned
416         integers; update prototype.
417         * cppmain.c: Update comments.
418
419 2002-01-03  William Cohen  <wcohen@redhat.com>
420
421         * function.h (struct function): Add profile.
422         (current_function_profile): New.
423         doc/extend.texi: Update documentation.
424         * final.c (final_start_function): Use current_function_profile
425         instead of profile_flag.
426         (profile_after_prologue): Likewise.
427         * function.c (expand_function_start): Likewise.
428         (expand_function_start): Likewise.
429         * config/alpha/alpha.c (direct_call_operand):
430         (alpha_does_function_need_gp): Likewise.
431         (alpha_expand_prologue): Likewise.
432         * config/arm/arm.c (arm_expand_prologue): Likewise.
433         thumb_expand_prologue: Likewise.
434         * config/d30v/d30v.c (d30v_stack_info): Likewise.
435         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
436         (fr30_expand_prologue): Likewise.
437         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
438         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
439         * config/i386/i386.h (FINALIZE_PIC): Likewise.
440         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
441         * config/i960/i960.c (i960_output_function_prologue): Likewise.
442         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
443         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
444         (m32r_expand_prologue): Likewise.
445         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
446         (m88k_expand_prologue): Likewise.
447         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
448         * config/mips/mips.c (compute_frame_size): Likewise.
449         (mips_expand_prologue): Likewise.
450         (mips_can_use_return_insn): Likewise.
451         * config/pa/elf.h (ASM_FILE_START): Likewise.
452         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
453         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
454         * config/pa/som.h (ASM_FILE_START): Likewise.
455         * config/romp/romp.c (romp_using_r14): Likewise.
456         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
457         (rs6000_stack_info): Likewise.
458         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
459         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
460         * config/v850/v850.c (compute_register_save_size): Likewise.
461
462 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
463
464         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
465         gen_lowpart_common fails, use gen_lowpart_SUBREG.
466
467 2002-01-03  Turly O'Connor  <turly@apple.com>
468
469         * darwin.c (machopic_output_possible_stub_label): Don't generate
470         stub routines for pseudo-stubs which we've just defined.
471
472 2002-01-03  Kazu Hirata  <kazu@hxi.com>
473
474         * builtins.c: Fix formatting.
475         * c-typeck.c: Likewise.
476         * combine.c: Likewise.
477         * expr.c: Likewise.
478         * loop.c: Likewise.
479
480 2002-01-03  Andreas Schwab  <schwab@suse.de>
481
482         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
483         and return true if _cpp_push_next_buffer pushed a new include
484         file.
485         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
486         _cpp_pop_file_buffer did not push a new file.
487         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
488
489 2002-01-02  Eric Christopher  <echristo@redhat.com>
490
491         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
492         FIND_REG_INC_NOTE call. Update copyright.
493         * loop.c (canonicalize_condition): Ditto.
494         * reorg.c (delete_scheduled_jump): Ditto.
495
496 2002-01-03  Kazu Hirata  <kazu@hxi.com>
497
498         * gcse.c: Fix formatting.
499
500 2002-01-03  Graham Stott  <grahams@redhat.com>
501
502         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
503         forward defs for struct tags rtx_def, union_tree, rtvec_def
504         also output corresponding typedefs for rtx, tree, and rtvec.
505
506         * system.h: Move forward defs for struct tags rtx_def, union_tree,
507         rtvec_def along with corresponding typedefs for rtx, tree, and
508         rtvec to config.h, hconfig.h, tconfig.h.
509
510 2002-01-03  Graham Stott  <grahams@redhat.com>
511
512         * tree.h: Update copyright date.
513         (IS_EXPR_CODE_CLASS): Add parenthesis.
514         (TREE_SET_CODE): Add whitespace.
515         (TREE_CHECK): Add parenthesis.
516         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
517         (CST_OR_CONSTRUCTOR_CHECK):
518         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
519         (TREE_SYMBOL_REFERENCED): Whitespace.
520         (INT_CST_LT): Likewise.
521         (INT_CST_LT_UNSIGNED): Likewise.
522         (tree_real_cst): Unwrap comment.
523         (tree_string): Likewise.
524         (tree_complex): Likewise.
525         (IDENTIFIER_POINTER): correct cast.
526         (SAVE_EXPR_CONTEXT): Whitespace.
527         (EXPR_WFL_FILENAME_NODE): Likewise.
528         (EXPR_WFL_FILENAME): Remove parenthesis.
529         (DECL_ORIGIN): Add parenthesis.
530         (DECL_FROM_INLINE): Use NULL_TREE.
531         (build_int_2): Whitespace.
532         (build_type_variant): Add parenthesis.
533
534         * gcc/jcf-parse.c: Update copyright date.
535         (yyparse): Constify resource_filename.
536
537 2002-01-03  Graham Stott  <grahams@redhat.com>
538
539         * rtl.h: Update copyright date.
540         (RTL_CHECK1): Wrap long line.
541         (RTL_CHECK2): Likewise.
542         (RTL_CHECKC1): Wrap long line and whitespace.
543         (RTL_CHECKC2): Likewise.
544         (XWINT): Whitespace.
545         (XINT): Likewise.
546         (XSTR): Likewise.
547         (XEXP): Likewise.
548         (XVEC): Likewise.
549         (XMODE): Likewise.
550         (XBITMAP): Likewise.
551         (XTREE): Likewise.
552         (XBBDEF): Likewise.
553         (XTMPL): Likewise.
554         (X0WINT): Likewise.
555         (X0INT):Likewise.
556         (X0UINT): Likewise.
557         (X0STR): Likewise.
558         (X0EXP): Likewise.
559         (X0VEC): Likewise.
560         (X0MODE): Likewise.
561         (X0BITMAP): Likewise.
562         (X0TREE): Likewise.
563         (X0BBDEF): Likewise.
564         (X0ADVFLAGS): Likewise.
565         (X0CSELIB): Likewise.
566         (X0MEMATTR): Likewise.
567         (XCWINT): Likewise.
568         (XCINT): Likewise.
569         (XCUINT): Likewise.
570         (XCSTR): Likewise.
571         (XCEXP): Likewise.
572         (XCVEC): Likewise.
573         (XCMODE): Likewise.
574         (XCBITMAP): Likewise.
575         (XCTREE): Likewise.
576         (XCBBDEF): Likewise.
577         (XCADVFLAGS): Likewise.
578         (XCCSELIB): Likewise.
579         (XC2EXP): Likewise.
580         (INSN_UID): Likewise.
581         (PREV_INSN): Likewise.
582         (PATTERN): Likewise.
583         (INSN_CODE): Likewise.
584         (PUT_REG_NOTE_KIND): Likewise.
585         (CODE_LABEL_NUMBER): Likewise.
586         (NOTE_SOURCE_FILE): Likewise.
587         (NOTE_BLOCK): Likewise.
588         (NOTE_EH_HANDLER): Likewise.
589         (NOTE_RANGE_INFO): Likewise.
590         (NOTE_LIVE_INFO): Likewise.
591         (NOTE_BASIC_BLOCK): Likewise.
592         (NOTE_EXPECTED_VALUE): Likewise.
593         (NOTE_LINE_NUMBER): Likewise.
594         (LABEL_NAME): Likewise.
595         (LABEL_NUSES): Likewise.
596         (LABEL_ALTERNATE_NAME): Likewise.
597         (ADDRESSOF_DECL): Likewise.
598         (JUMP_LABEL): Likewise.
599         (LABEL_NEXTREF): Likewise.
600         (REGNO): Likewise.
601         (ORIGINAL_REGNO: Likewise.
602         (HARD_REGISTER_NUM_P): Add parenthesis.
603         (SUBREG_REG): Whitespace.
604         (SUBREG_BYTE): Likewise.
605         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
606         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
607         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
608         (ASM_OPERANDS_INPUT_VEC): Likewise.
609         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
610         (ASM_OPERANDS_INPUT): Likewise.
611         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
612         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
613         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
614         (ASM_OPERANDS_INPUT_MODE): Likewise.
615         (ASM_OPERANDS_SOURCE_FILE): Likewise.
616         (ASM_OPERANDS_SOURCE_LINE): Likewise.
617         (MEM_SET_IN_STRUCT_P): Minor reformat.
618         (TRAP_CONDITION): Whitespace.
619         (TRAP_CODE): Likewise.
620         (COND_EXEC_TEST): Likewise.
621         (COND_EXEC_CODE): Likewise.
622         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
623         (PHI_NODE_P): Add parenthesis.
624         (plus_constant): Whitespace and add parenthesis.
625
626 2002-01-03  Kazu Hirata  <kazu@hxi.com>
627
628         * config/avr/avr.c: Fix comment typos.
629         * config/c4x/c4x.md: Likewise.
630         * config/dsp16xx/dsp16xx.h: Likewise.
631         * config/dsp16xx/dsp16xx.md: Likewise.
632         * config/i386/i386.md: Likewise.
633         * config/ia64/ia64.c: Likewise.
634         * config/m32r/m32r.h: Likewise.
635         * config/m68hc11/m68hc11.md: Likewise.
636         * config/mmix/mmix.c: Likewise.
637         * config/mn10200/mn10200.c: Likewise.
638         * config/romp/romp.c: Likewise.
639         * config/sh/sh.c: Likewise.
640         * config/stormy16/stormy16.c: Likewise.
641         * config/stormy16/stormy16.h: Likewise.
642         * config/stormy16/stormy16.md: Likewise.
643
644 2002-01-03  Graham Stott  <grahams@redhat.com>
645
646         * loop.h: Update copyright date.
647         (LOOP_MOVABLES): Fix typo.
648         (LOOP_REGS): Likewise.
649         (LOOP_IVS): Likewise.
650
651 2002-01-03  Graham Stott  <grahams@redhat.com>
652
653         * cppinit.c: Update copyright date.
654         Don't include output.h
655         * Makefile.in: Update copyright date.
656         Update dependency.
657
658 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
659
660         PR c/5226
661         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
662         (-pthread) Add to RS/6000 options.
663
664 2002-01-02  Kazu Hirata  <kazu@hxi.com>
665
666         * except.c: Fix comment typos.
667         * loop.c: Likewise.
668         * varasm.c: Likewise.
669         * doc/tm.texi: Fix a typo.
670
671 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
672
673         * c-typeck.c (output_init_element): Allow initializing static storage
674         duration objects with compound literals.
675
676 2002-01-02  Richard Henderson  <rth@redhat.com>
677
678         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
679         after abusing it.
680
681 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
682
683         * gcc.c (default_compilers): Const-ify.
684         * mips-tdump.c (stab_names): Likewise.
685         * mips-tfile.c (map_coff_types, map_coff_storage,
686         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
687         pseudo_ops_t, pseudo_ops): Likewise.
688         * protoize.c (default_include): Likewise
689
690         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
691         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
692         Add array size in declaration.
693         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
694         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
695         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
696         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
697         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
698         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
699         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
700         emtens, make_nan): Const-ify.
701         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
702         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
703
704 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
705
706         * config.gcc (ia64-*-*): Set extra_headers.
707         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
708         * config/alpha/t-osf: Remove.
709         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
710
711 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
712
713         * config/rs6000/t-aix43: Revert previous change.
714
715 2002-01-02  Jason Merrill  <jason@redhat.com>
716
717         * c-decl.c (c_expand_body): Call outlining_inline_function when
718         emitting an inline function out of line.
719
720 2002-01-02  Richard Henderson  <rth@redhat.com>
721
722         * dwarf2out.c (limbo_die_node): Add created_for member.
723         (new_die): New argument created_for.  Update all callers.
724         (mark_limbo_die_list): New.
725         (dwarf2out_init): Register limbo_die_list as a root.
726         (dwarf2out_finish): Force insert limbo dies into their function
727         context.
728
729 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
730
731         PR c++/5089
732         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
733
734 2002-01-02  Kazu Hirata  <kazu@hxi.com>
735
736         * config/h8300/fixunssfsi.c: Update copyright.
737         Fix comment typos.
738         Fix formatting.
739         * config/h8300/h8300.c: Update copyright.
740         Eliminate warnings.
741
742 2002-01-02  Kazu Hirata  <kazu@hxi.com>
743
744         * config/romp/romp.c: Fix comment formatting.
745         * config/romp/romp.h: Likewise.
746         * config/romp/romp.md: Likewise.
747         * config/s390/s390.c: Likewise.
748         * config/stormy16/stormy16.c: Likewise.
749         * config/stormy16/stormy16.h: Likewise.
750
751 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
752
753         * c-common.h (genrtl_expr_stmt_value): Declare.
754         * c-semantics.c (genrtl_goto_stmt): Redirect to...
755         (genrtl_goto_stmt_value): ... this new function.  Pass new
756         argument down to expand_expr_stmt_value, taking
757         TREE_ADDRESSABLE into account.
758         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
759         STMT_EXPR as addressable, i.e., one whose result we want.
760         * expr.c (expand_expr): Don't save expression statement value
761         of labeled_blocks or loop_exprs.
762         * stmt.c (expand_expr_stmt): Redirect to...
763         (expand_expr_stmt_value): ... this new function.  Use new
764         argument to tell whether to save expression value.
765         (expand_end_stmt_expr): Reset last_expr_type and
766         last_expr_value if we don't have either.
767         * tree-inline.c (declare_return_variable): Mark its use
768         statement as addressable.
769         * tree.h: Document new use of TREE_ADDRESSABLE.
770         (expand_expr_stmt_value): Declare.
771
772 2002-01-01  Tom Rix  <trix@redhat.com>
773
774         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
775         rs6000_emit_allocate_stack.
776
777 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
778
779         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
780         ${srcdir}/ginclude/ to every entry in extra_headers.
781         * configure: Regenerate.
782         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
783         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
784         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
785         * ginclude/proto.h: Rename to config/convex/proto.h.
786
787 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
788
789         * attribs.c (handle_vector_size_attribute): Use host_integerp
790         and tree_int_cst; remove warnings.
791         * caller-save.c (insert_restore): Add cast to get rid of warning.
792         (insert_save): Likewise.
793         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
794         * regmove.c (find_matches): Add temporary var to kill a warning.
795
796 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
797
798         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
799         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
800         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
801         (vms-dwarf2eh.o): Add Makefile rule.
802         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
803         * config/alpha/vms-dwarf2eh.asm: New file.
804
805         * gcc.c (delete_if_ordinary): Delete all versions.
806
807 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
808
809         * config/mmix/mmix.md: Update FIXME to not mention
810         define_constants.
811         (MMIX_rJ_REGNUM): New define_constants constant.
812         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
813         "*movdicc_real"): Adjust contraints formatting.
814         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
815         for branch prediction.
816         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
817         output template.
818         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
819         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
820         number.  Delete related FIXMEs.
821         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
822         from number to MMIX_rJ_REGNUM.
823         (TARGET_MASK_BRANCH_PREDICT): New.
824         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
825         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
826         value.  Add -mbranch-predict and -mno-branch-predict.
827         (TARGET_VERSION): Drop date.
828         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
829         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
830         for finding out global symbols.
831         (mmix_asm_output_labelref): Revert condition for global symbol.
832         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
833         (mmix_print_operand_punct_valid_p): A '+' is valid.
834
835 See ChangeLog.6 for earlier changes.