1 Fri Jan 4 11:45:05 2002 Jeffrey A Law (law@redhat.com)
3 * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
4 be passed in, do not build it.
5 (c_begin_if_stmt): New function.
6 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
7 * c-common.h (c_expand_start_cond): Update prototype.
8 (c_begin_if_stmt): Prototype new function.
9 (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
10 * c-parse.in (if_prefix): Use c_begin_if_stmt,
11 c_begin_while_stmt and c_finish_while_stmt_cond.
13 2002-01-04 William Cohen <wcohen@redhat.com>
15 * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
17 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
18 * config/pa/som.h (ASM_FILE_START): Likewise.
20 2001-01-04 Daniel Berlin <dan@cgsoftware.com>
22 * lcm.c: Include df.h.
23 Add available_transfer_function prototype.
24 (compute_available): Rework to use iterative dataflow framework.
25 (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
27 (available_transfer_function): New function.
29 * Makefile.in (lcm.o): add df.h to dependencies.
31 2002-01-04 Richard Henderson <rth@redhat.com>
33 * config/alpha/alpha.c (some_operand): Accept HIGH.
34 (input_operand): Likewise; accept simple references to globals.
35 (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
36 (alpha_const_double_ok_for_letter_p): Likewise.
37 (alpha_extra_constraint): Likewise.
38 (alpha_preferred_reload_class): Likewise. Do not force
39 symbolic constants to memory.
40 (alpha_legitimate_address_p): Accept simple references
41 to small_symbolic_operand.
42 (alpha_legitimize_address): New arg scratch. Be prepared to be
43 called when no_new_pseudos. Emit simple symbolic references.
44 Split integers into low, high, and rest.
45 (alpha_expand_mov): Use alpha_legitimize_address.
46 (some_small_symbolic_mem_operand): New.
47 (split_small_symbolic_mem_operand): New.
48 * config/alpha/alpha-protos.h: Update.
49 * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
50 (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
51 (EXTRA_CONSTRAINT): Likewise.
52 (PREFERRED_RELOAD_CLASS): Likewise.
53 (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
54 (PREDICATE_CODES): Update.
55 * config/alpha/alpha.md: New post-reload splitters to convert
56 simplfied symbolic operands to the form that references $29.
57 (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
58 (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
60 2002-01-03 Richard Henderson <rth@redhat.com>
62 * local-alloc.c (function_invariant_p): Update commentary.
64 2002-01-04 H.J. Lu <hjl@gnu.org>
66 * toplev.c (rest_of_compilation): Fix a typo when calling
69 2002-01-03 Kazu Hirata <kazu@hxi.com>
71 * c-common.c: Fix formatting.
72 * diagnostic.c: Likewise.
74 * dwarf2out.c: Likewise.
76 2002-01-03 Kazu Hirata <kazu@hxi.com>
78 * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
79 of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
81 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
83 * cpperror.c: Update comments and copyright.
84 * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
85 cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
87 2002-01-03 John David Anglin <dave@hiauly1.hia.nrc.ca>
89 * collect2.c (main): Use strcmp when testing for "-shared".
91 2002-01-03 Neil Booth <neil@daikokuya.demon.co.uk>
93 * cppmacro.c: Don't include intl.h. Update comments.
94 (new_number_token): Allocate enough buffer for 64-bit unsigned
95 integers; update prototype.
96 * cppmain.c: Update comments.
98 2002-01-03 William Cohen <wcohen@redhat.com>
100 * function.h (struct function): Add profile.
101 (current_function_profile): New.
102 doc/extend.texi: Update documentation.
103 * final.c (final_start_function): Use current_function_profile
104 instead of profile_flag.
105 (profile_after_prologue): Likewise.
106 * function.c (expand_function_start): Likewise.
107 (expand_function_start): Likewise.
108 * config/alpha/alpha.c (direct_call_operand):
109 (alpha_does_function_need_gp): Likewise.
110 (alpha_expand_prologue): Likewise.
111 * config/arm/arm.c (arm_expand_prologue): Likewise.
112 thumb_expand_prologue: Likewise.
113 * config/d30v/d30v.c (d30v_stack_info): Likewise.
114 * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
115 (fr30_expand_prologue): Likewise.
116 * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
117 * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
118 * config/i386/i386.h (FINALIZE_PIC): Likewise.
119 * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
120 * config/i960/i960.c (i960_output_function_prologue): Likewise.
121 * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
122 * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
123 (m32r_expand_prologue): Likewise.
124 * config/m88k/m88k.c (m88k_layout_frame): Likewise.
125 (m88k_expand_prologue): Likewise.
126 * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
127 * config/mips/mips.c (compute_frame_size): Likewise.
128 (mips_expand_prologue): Likewise.
129 (mips_can_use_return_insn): Likewise.
130 * config/pa/elf.h (ASM_FILE_START): Likewise.
131 * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
132 * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
133 * config/pa/som.h (ASM_FILE_START): Likewise.
134 * config/romp/romp.c (romp_using_r14): Likewise.
135 * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
136 (rs6000_stack_info): Likewise.
137 * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
138 * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
139 * config/v850/v850.c (compute_register_save_size): Likewise.
141 2002-01-03 Jakub Jelinek <jakub@redhat.com>
143 * simplify-rtx.c (simplify_binary_operation) [DIV]: If
144 gen_lowpart_common fails, use gen_lowpart_SUBREG.
146 2002-01-03 Turly O'Connor <turly@apple.com>
148 * darwin.c (machopic_output_possible_stub_label): Don't generate
149 stub routines for pseudo-stubs which we've just defined.
151 2002-01-03 Kazu Hirata <kazu@hxi.com>
153 * builtins.c: Fix formatting.
154 * c-typeck.c: Likewise.
155 * combine.c: Likewise.
159 2002-01-03 Andreas Schwab <schwab@suse.de>
161 * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
162 and return true if _cpp_push_next_buffer pushed a new include
164 * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
165 _cpp_pop_file_buffer did not push a new file.
166 * cpphash.h (_cpp_pop_file_buffer): Update declaration.
168 2002-01-02 Eric Christopher <echristo@redhat.com>
170 * final.c (final_scan_insn): Change 0 -> NULL_RTX in
171 FIND_REG_INC_NOTE call. Update copyright.
172 * loop.c (canonicalize_condition): Ditto.
173 * reorg.c (delete_scheduled_jump): Ditto.
175 2002-01-03 Kazu Hirata <kazu@hxi.com>
177 * gcse.c: Fix formatting.
179 2002-01-03 Graham Stott <grahams@redhat.com>
181 * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
182 forward defs for struct tags rtx_def, union_tree, rtvec_def
183 also output corresponding typedefs for rtxm, tree, and rtvcec.
185 * system.h: Move forward defs for struct tags rtx_def, union_tree,
186 rtvec_def along with corresponding typedefs for rtx, tree, and
187 rtvcec to config.h, hconfig.h, tconfig.h
189 2002-01-03 Graham Stott <grahams@redhat.com>
191 * tree.h: Update copyright date.
192 (IS_EXPR_CODE_CLASS): Add parenthesis.
193 (TREE_SET_CODE): Add whitespace.
194 (TREE_CHECK): Add parenthesis.
195 (TREE_CLASS_CODE): Add parenthesis and wrap long line.
196 (CST_OR_CONSTRUCTOR_CHECK):
197 (EXPR_CHECK): Add parenthis, whitespace and wrap line.
198 (TREE_SYMBOL_REFERENCED): Whitespace.
199 (INT_CST_LT): Likewise.
200 (INT_CST_LT_UNSIGNED): Likewise.
201 (tree_real_cst): Unwrap comment.
202 (tree_string): Likewise.
203 (tree_complex): Likewise.
204 (IDENTIFIER_POINTER): correct cast.
205 (SAVE_EXPR_CONTEXT): Whitespace.
206 (EXPR_WFL_FILENAME_NODE): Likewise.
207 (EXPR_WFL_FILENAME): Remove parenthesis.
208 (DECL_ORIGIN): Add parenthesis.
209 (DECL_FROM_INLINE): Use NULL_TREE.
210 (build_int_2): Whitespace.
211 (build_type_variant): Add parenthesis.
213 * gcc/jcf-parse.c: Update copyright date.
214 (yyparse): Constify resource_filename.
216 2002-01-03 Graham Stott <grahams@redhat.com>
218 * rtl.h: Update copyright date.
219 (RTL_CHECK1): Wrap long line.
220 (RTL_CHECK2): Likewise.
221 (RTL_CHECKC1): Wrap long line and whitespace.
222 (RTL_CHECKC2): Likewise.
240 (X0BITMAP): Likewise.
243 (X0ADVFLAGS): Likewise.
244 (X0CSELIB): Likewise.
245 (X0MEMATTR): Likewise.
253 (XCBITMAP): Likewise.
256 (XCADVFLAGS): Likewise.
257 (XCCSELIB): Likewise.
259 (INSN_UID): Likewise.
260 (PREV_INSN): Likewise.
262 (INSN_CODE): Likewise.
263 (PUT_REG_NOTE_KIND): Likewise.
264 (CODE_LABEL_NUMBER): Likewise.
265 (NOTE_SOURCE_FILE): Likewise.
266 (NOTE_BLOCK): Likewise.
267 (NOTE_EH_HANDLER): Likewise.
268 (NOTE_RANGE_INFO): Likewise.
269 (NOTE_LIVE_INFO): Likewise.
270 (NOTE_BASIC_BLOCK): Likewise.
271 (NOTE_EXPECTED_VALUE): Likewise.
272 (NOTE_LINE_NUMBER): Likewise.
273 (LABEL_NAME): Likewise.
274 (LABEL_NUSES): Likewise.
275 (LABEL_ALTERNATE_NAME): Likewise.
276 (ADDRESSOF_DECL): Likewise.
277 (JUMP_LABEL): Likewise.
278 (LABEL_NEXTREF): Likewise.
280 (ORIGINAL_REGNO: Likewise.
281 (HARD_REGISTER_NUM_P): Add parenthesis.
282 (SUBREG_REG): Whitespace.
283 (SUBREG_BYTE): Likewise.
284 (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
285 (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
286 (ASM_OPERANDS_OUTPUT_IDX): Likewise.
287 (ASM_OPERANDS_INPUT_VEC): Likewise.
288 (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
289 (ASM_OPERANDS_INPUT): Likewise.
290 (ASM_OPERANDS_INPUT_LENGTH): Likewise.
291 (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
292 (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
293 (ASM_OPERANDS_INPUT_MODE): Likewise.
294 (ASM_OPERANDS_SOURCE_FILE): Likewise.
295 (ASM_OPERANDS_SOURCE_LINE): Likewise.
296 (MEM_SET_IN_STRUCT_P): Minor reformat.
297 (TRAP_CONDITION): Whitespace.
298 (TRAP_CODE): Likewise.
299 (COND_EXEC_TEST): Likewise.
300 (COND_EXEC_CODE): Likewise.
301 (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
302 (PHI_NODE_P): Add parenthesis.
303 (plus_constant): Whitespace and add parenthesis.
305 2002-01-03 Kazu Hirata <kazu@hxi.com>
307 * config/avr/avr.c: Fix comment typos.
308 * config/c4x/c4x.md: Likewise.
309 * config/dsp16xx/dsp16xx.h: Likewise.
310 * config/dsp16xx/dsp16xx.md: Likewise.
311 * config/i386/i386.md: Likewise.
312 * config/ia64/ia64.c: Likewise.
313 * config/m32r/m32r.h: Likewise.
314 * config/m68hc11/m68hc11.md: Likewise.
315 * config/mmix/mmix.c: Likewise.
316 * config/mn10200/mn10200.c: Likewise.
317 * config/romp/romp.c: Likewise.
318 * config/sh/sh.c: Likewise.
319 * config/stormy16/stormy16.c: Likewise.
320 * config/stormy16/stormy16.h: Likewise.
321 * config/stormy16/stormy16.md: Likewise.
323 2002-01-03 Graham Stott <grahams@redhat.com>
325 * loop.h: Update copyright date.
326 (LOOP_MOVABLES): Fix typo.
327 (LOOP_REGS): Likewise.
328 (LOOP_IVS): Likewise.
330 2002-01-03 Graham Stott <grahams@redhat.com>
332 * cppinit.c: Update copyright date.
333 Don't include output.h
334 * Makefile.in: Update copyright date.
337 2002-01-02 Craig Rodrigues <rodrigc@gcc.gnu.org>
340 * invoke.texi (-mthreads): Remove from documented RS/6000 options.
341 (-pthread) Add to RS/6000 options.
343 2002-01-02 Kazu Hirata <kazu@hxi.com>
345 * except.c: Fix comment typos.
347 * varasm.c: Likewise.
348 * doc/tm.texi: Fix a typo.
350 2002-01-02 Jakub Jelinek <jakub@redhat.com>
352 * c-typeck.c (output_init_element): Allow initializing static storage
353 duration objects with compound literals.
355 2002-01-02 Richard Henderson <rth@redhat.com>
357 * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
360 2002-01-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
362 * gcc.c (default_compilers): Const-ify.
363 * mips-tdump.c (stab_names): Likewise.
364 * mips-tfile.c (map_coff_types, map_coff_storage,
365 map_coff_sym_type, map_coff_derived_type, stabs_symbol,
366 pseudo_ops_t, pseudo_ops): Likewise.
367 * protoize.c (default_include): Likewise
369 * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
370 (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
371 Add array size in declaration.
372 (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
373 emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
374 esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
375 etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
376 eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
377 efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
378 c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
379 emtens, make_nan): Const-ify.
380 (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
381 DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
383 2002-01-02 Joseph S. Myers <jsm28@cam.ac.uk>
385 * config.gcc (ia64-*-*): Set extra_headers.
386 (alpha*-dec-osf*): Likewise. Don't use alpha/t-osf.
387 * config/alpha/t-osf: Remove.
388 * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
390 2002-01-02 David Edelsohn <edelsohn@gnu.org>
392 * config/rs6000/t-aix43: Revert previous change.
394 2002-01-02 Jason Merrill <jason@redhat.com>
396 * c-decl.c (c_expand_body): Call outlining_inline_function when
397 emitting an inline function out of line.
399 2002-01-02 Richard Henderson <rth@redhat.com>
401 * dwarf2out.c (limbo_die_node): Add created_for member.
402 (new_die): New argument created_for. Update all callers.
403 (mark_limbo_die_list): New.
404 (dwarf2out_init): Register limbo_die_list as a root.
405 (dwarf2out_finish): Force insert limbo dies into their function
408 2002-01-02 Nathan Sidwell <nathan@codesourcery.com>
411 * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
413 2002-01-02 Kazu Hirata <kazu@hxi.com>
415 * config/h8300/fixunssfsi.c: Update copyright.
418 * config/h8300/h8300.c: Update copyright.
421 2002-01-02 Kazu Hirata <kazu@hxi.com>
423 * config/romp/romp.c: Fix comment formatting.
424 * config/romp/romp.h: Likewise.
425 * config/romp/romp.md: Likewise.
426 * config/s390/s390.c: Likewise.
427 * config/stormy16/stormy16.c: Likewise.
428 * config/stormy16/stormy16.h: Likewise.
430 2002-01-02 Alexandre Oliva <aoliva@redhat.com>
432 * c-common.h (genrtl_expr_stmt_value): Declare.
433 * c-semantics.c (genrtl_goto_stmt): Redirect to...
434 (genrtl_goto_stmt_value): ... this new function. Pass new
435 argument down to expand_expr_stmt_value, taking
436 TREE_ADDRESSABLE into account.
437 * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
438 STMT_EXPR as addressable, i.e., one whose result we want.
439 * expr.c (expand_expr): Don't save expression statement value
440 of labeled_blocks or loop_exprs.
441 * stmt.c (expand_expr_stmt): Redirect to...
442 (expand_expr_stmt_value): ... this new function. Use new
443 argument to tell whether to save expression value.
444 (expand_end_stmt_expr): Reset last_expr_type and
445 last_expr_value if we don't have either.
446 * tree-inline.c (declare_return_variable): Mark its use
447 statement as addressable.
448 * tree.h: Document new use of TREE_ADDRESSABLE.
449 (expand_expr_stmt_value): Declare.
451 2002-01-01 Tom Rix <trix@redhat.com>
453 * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
454 rs6000_emit_allocate_stack.
456 2002-01-01 Joseph S. Myers <jsm28@cam.ac.uk>
458 * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
459 ${srcdir}/ginclude/ to every entry in extra_headers.
460 * configure: Regenerate.
461 * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
462 * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
463 * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
464 * ginclude/proto.h: Rename to config/convex/proto.h.
466 Tue Jan 1 17:12:56 2002 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
468 * attribs.c (handle_vector_size_attribute): Use host_integerp
469 and tree_int_cst; remove warnings.
470 * caller-save.c (insert_restore): Add cast to get rid of warning.
471 (insert_save): Likewise.
472 * emit-rtl.c (adjust_address_1, offset_address): Likewise.
473 * regmove.c (find_matches): Add temporary var to kill a warning.
475 2002-01-01 Douglas B Rupp <rupp@gnat.com>
477 * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
478 LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
479 * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
480 (vms-dwarf2eh.o): Add Makefile rule.
481 * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
482 * config/alpha/vms-dwarf2eh.asm: New file.
484 * gcc.c (delete_if_ordinary): Delete all versions.
486 2002-01-01 Hans-Peter Nilsson <hp@bitrange.com>
488 * config/mmix/mmix.md: Update FIXME to not mention
490 (MMIX_rJ_REGNUM): New define_constants constant.
491 ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
492 "*movdicc_real"): Adjust contraints formatting.
493 ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
494 for branch prediction.
495 ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
497 ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
498 "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
499 number. Delete related FIXMEs.
500 * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
501 from number to MMIX_rJ_REGNUM.
502 (TARGET_MASK_BRANCH_PREDICT): New.
503 (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
504 (TARGET_SWITCHES): Update comment. Correct -mno-toplevel-symbols
505 value. Add -mbranch-predict and -mno-branch-predict.
506 (TARGET_VERSION): Drop date.
507 (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
508 * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
509 for finding out global symbols.
510 (mmix_asm_output_labelref): Revert condition for global symbol.
511 (mmix_print_operand): <case '+'>: Emit P for a likely branch.
512 (mmix_print_operand_punct_valid_p): A '+' is valid.
514 See ChangeLog.6 for earlier changes.