OSDN Git Service

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