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