1 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3 * builtins.c (fold_builtin_isdigit): New.
4 (fold_builtin): Handle BUILT_IN_ISDIGIT.
5 * defaults.h: Add TARGET_DIGIT0 and sort.
6 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
8 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10 * builtins.c (fold_builtin_cabs, fold_builtin): Use
11 `mathfn_built_in' to determine the new builtin.
12 * fold-const.c (fold): Likewise.
14 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
16 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
17 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
18 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
19 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
20 (ASM_SPEC): Update accordingly.
21 * config/mips/mips.c: Update after above renaming.
22 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
23 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
25 2004-04-13 James E Wilson <wilson@specifixinc.com>
27 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
28 increment errorcount and return false instead of true.
30 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
32 * optabs.c (expand_twoval_unop): Reorder function arguments.
33 * builtins.c (expand_builtin_mathfn_3): Update calls to
36 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
37 and UNSPEC_TAN_TAN. Add missing comment.
39 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
40 patterns to implement fptan x87 instruction.
41 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
42 and tanl built-ins as inline x87 intrinsics. Define corresponding
43 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
44 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
47 2004-03-13 Richard Henderson <rth@redhat.com>
49 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
52 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
53 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
54 * doc/invoke.texi: Update to match.
56 * varasm.c (unlikely_text_section): Use assemble_align instead of
57 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
58 correct alignment argument.
60 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
62 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
63 after setting reg_last_reload_reg for optional output reloads.
65 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
67 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
68 Definition of these two macros are corrected by adding
71 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
73 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
75 2004-04-12 Roger Sayle <roger@eyesopen.com>
77 * config/i386/i386.c (output_387_reg_move): New function.
78 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
79 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
80 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
81 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
82 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
84 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
86 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
88 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
89 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
90 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
91 Use skip_simple_arithmetic to find SAVE_EXPR.
92 (force_type_save_exprs, force_type_save_exprs_1): New functions.
93 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
94 Properly chain multiple pointers.
95 (copy_tree_r): Copy a TYPE_DECL.
96 * tree.c (variably_modified_type_p): Add some missing tests and
97 make some other minor changes.
98 * tree.h (force_type_save_exprs): New declaration.
100 2004-04-12 Roger Sayle <roger@eyesopen.com>
102 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
103 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
104 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
105 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
106 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
107 x%-1 into 0 (or x&0 if x has side-effects).
109 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
111 * config/rs6000/rs6000.md: Document why a pattern is not
114 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
115 of floats on the E500.
116 (branch_positive_comparison_operator): Do not allow NE even on the
119 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
121 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
122 in_text_unlikely_section to in_unlikely_text_section.
124 2004-04-11 Roger Sayle <roger@eyesopen.com>
126 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
127 calling convention to allow a NULL_TREE to be returned. Factor
128 sanity checks from callers, return NULL_TREE when appropriate.
129 (fold): Handle COMPOUND_EXPR operands of binary expressions
130 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
131 whether a op (b,c) can be rewritten as (b, a op c). Simplify
132 calls to fold_binary_op_with_conditional_arg.
134 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
136 * config/mips/iris5.h (current_section_flags): Add
137 in_unlikely_executed_text and default case.
139 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
141 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
142 failure on solaris. Place ifdef HAVE_return around gen_ret call.
143 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
144 HAVE_return and place it around the place where it is needed.
146 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
148 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
149 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
150 and NORMAL_TEXT_SECTION_NAME.
151 (unlikely_text_section): Check targetm.have_named_sections
152 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
153 instead of SECTION_FORMAT_STRING.
154 * config/mips/iris5.h (current_section_name): Add
155 in_unlikely_executed_text case and move the abort into the switch.
156 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
157 (NORMAL_TEXT_SECTION_NAME): Remove.
158 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
159 (SECTION_FORMAT_STRING): Remove.
160 * defaults.h (SECTION_FORMAT_STRING): Remove.
161 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
162 (SECTION_FORMAT_STRING): Remove.
164 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
166 * c-typeck.c (common_type): Prefer long long to long when same
169 2004-04-09 Zack Weinberg <zack@codesourcery.com>
172 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
174 * config/ia64/ia64.c (ia64_hpux_file_end): Check
175 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
177 2004-04-09 Roger Sayle <roger@eyesopen.com>
179 * simplify-rtx.c (mode_signbit_p): New function to check whether
180 an RTX is an immediate constant that represents the most significant
181 bit of a given machine mode.
182 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
184 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
185 when C2 is the sign bit.
186 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
187 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
190 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
192 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
195 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
197 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
198 of TREE_READONLY for types.
200 2004-04-09 Caroline Tice <ctice@apple.com>
202 * basic-block.h (struct edge_def): Add new field, crossing_edge.
203 (struct basic_block_def): Add new field, partition.
204 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
206 (partition_hot_cold_basic_blocks): Add extern function
208 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
210 (N_ROUNDS): Increase the maximum number of rounds by 1.
211 (branch_threshold): Add array value for new round.
212 (exec_threshold): Add array value for new round.
213 (push_to_next_round_p): New function.
214 (add_unlikely_executed_notes): New function.
215 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
216 (mark_bb_for_unlikely_executed_section): New function.
217 (add_labels_and_missing_jumps): New function.
218 (add_reg_crossing_jump_notes): New function.
219 (fix_up_fall_thru_edges): New function.
220 (find_jump_block): New function.
221 (fix_crossing_conditional_branches): New function.
222 (fix_crossing_unconditional_branches): New function.
223 (fix_edges_for_rarely_executed_code): New function.
224 (partition_hot_cold_basic_blocks): New function.
225 (find_traces): Add an extra round for partitioning hot/cold
227 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
228 and only cold blocks, into the last (extra) round of collecting traces.
229 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
231 (bb_to_key): Add code to correctly identify cold blocks when
233 (connect_traces): Modify to connect all the non-cold traces first, then
234 go back and connect up all the cold traces.
235 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
236 * cfg.c (entry_exit_blocks): Add initialization for partition field in
237 entry and exit blocks.
238 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
239 if we are doing hot/cold partitioning.
240 * cfgcleanup.c (cfglayout.h): Add new include statement.
241 (try_simplify_condjump): Modify to not attempt on blocks with jumps
242 that cross section boundaries.
243 (try_forward_edges): Likewise.
244 (merge_blocks_move_predecessor_nojumps): Likewise.
245 (merge_blocks_move_successor_nojumps): Likewise.
246 (merge_blocks_move): Likewise.
247 (try_crossjump_to_edge): Modify to not attempt after we have done
248 the block partitioning.
249 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
250 cross section boundaries.
251 (try_optimize_cfg): Likewise.
252 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
253 jumps that cross section boundaries.
254 * cfglayout.c (flags.h): Add new include statement.
255 (update_unlikely_executed_notes): New function.
256 (fixup_reorder_chain): Add code so when a new jumping basic block is
257 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
258 updated appropriately.
259 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
260 introduced by this optimization.
261 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
262 extern function declaration.
263 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
264 list of notes that can be deleted.
265 (create_basic_block_structure): Add initialization for partition field.
266 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
268 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
269 cross section boundaries.
270 (commit_one_edge_insertion): Add code so newly created basic block
271 ends up in correct (hot or cold) section. Modify to disallow
272 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
273 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
274 crosses section boundaries.
275 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
276 cross section boundaries.
277 (force_nonfallthru_and_redirect): Modify to make sure new basic block
278 ends up in correct section, with correct notes attached.
279 * common.opt (freorder-blocks-and-partition): Add new flag for this
281 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
282 the end of functions are written into the correct (hot or cold)
284 (dbx_source_file): Add code so writing debug file information
285 doesn't incorrectly change sections.
286 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
287 in partitioning hot/cold basic blocks into separate sections.
288 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
289 section partitioning.
290 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
291 conditional branches can span all of memory.
292 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
293 unconditional branches can span all of memory.
294 * final.c (scan_ahead_for_unlikely_executed_note): New function.
295 (final_scan_insn): Add code to check for NOTE instruction indicating
296 whether basic block belongs in hot or cold section, and to make sure
297 the current basic block is being written to the appropriate section.
298 Also added code to ensure that jump table basic blocks end up in the
300 * flags.h (flag_reorder_blocks_and_partition): New flag.
301 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
302 one of the branches has a jump that crosses between sections.
303 (find_if_case_2): Likewise.
304 (ifcvt): Modify to not attempt to mark loop exit edges after
305 hot/cold partitioning has occurred.
306 * opts.c (decode_options): Code to handle new flag,
307 flag_reorder_blocks_and_partition; also to turn it off if
308 flag_exceptions is on.
309 (common_handle_option): Code to handle new flag,
310 flag_reorder_blocks_and_partition.
311 * output.h (unlikely_text_section): New extern function declaration.
312 (in_unlikely_text_section): New extern function declaration.
313 * passes.c (rest_of_handle_stack_regs): Add
314 flag_reorder_blocks_and_partition as an 'or' condition for calling
315 reorder_basic_blocks.
316 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
317 as an 'or' condition for calling reorder_basic_blocks.
318 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
319 * print-rtl.c (print_rtx): Add code for handling new note,
320 NOTE_INSN_UNLIKELY_EXECUTED_CODE
321 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
322 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
323 cross between section boundaries.
324 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
325 indicating the basic block containing it belongs in the cold section.
326 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
327 between hot and cold sections.
328 * toplev.c (flag_reorder_blocks_and_partition): Add code to
329 initialize this flag, and to tie it to the command-line option
330 freorder-blocks-and-partition.
331 * varasm.c (cfglayout.h): Add new include statement.
332 (unlikely_section_label_printed): New global variable, used for
333 determining when to output section name labels for cold sections.
334 (in_section): Add in_unlikely_executed_text to enum data structure.
335 (text_section): Modify code to use SECTION_FORMAT_STRING and
336 NORMAL_TEXT_SECTION_NAME macros.
337 (unlikely_text_section): New function.
338 (in_unlikely_text_section): New function.
339 (function_section): Add code to make sure beginning of function is
340 written into correct section (hot or cold).
341 (assemble_start_function): Add code to make sure stuff is written to
343 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
344 to an if statement that was checking 'in_text_section'.
345 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
346 condition to an if statement that was checking 'in_text_section'.
347 (default_section_type_flags_1): Add check: if in cold section
348 flags = SECTION_CODE.
349 * config/darwin.c (darwin_asm_named_section): Modify to use
350 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
351 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
352 specifically for the i386.
353 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
354 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
355 text string to something more informative.
356 (NORMAL_TEXT_SECTION_NAME): Add new definition.
357 (SECTION_FORMAT_STRING): Add new definition.
358 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
359 '!in_unlikely_text_section' as an 'and' condition to an if statement
360 that was already checking '!in_text_section'.
361 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
362 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
363 sure these are properly defined for linux on ppc.
364 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
366 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
368 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
369 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
372 2004-04-08 Roger Sayle <roger@eyesopen.com>
374 * function.c (gen_mem_addressof): When changing the RTX from a REG
375 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
377 2004-04-08 Roger Sayle <roger@eyesopen.com>
380 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
381 truncxfdf2_noop): Provide dummy "fmov" implementations.
383 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
385 * gcc.c (default_compilers): Add missing initializers.
387 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
388 Return 1 if file was successfully mapped.
390 2004-04-08 Geoffrey Keating <geoffk@apple.com>
395 * doc/invoke.texi (Precompiled Headers): Suggest -o
396 to put an output file in a particular place. Be more detailed
397 about which options affect PCH validity and which options
399 * c-pch.c (pch_matching): New.
401 (struct c_pch_validity): New field 'match'.
402 (pch_init): Handle pch_matching.
403 (c_common_valid_pch): Check pch_matching.
405 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
407 2004-04-08 Mark Mitchell <mark@codesourcery.com>
409 * doc/invoke.texi (Precompiled Headers): Warn about known
412 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
415 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
416 to 1 if ASM_OUTPUT_DEF is defined.
417 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
418 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
419 Set to non-zero iff not a one_only decl.
421 2004-04-08 Paul Brook <paul@codesourcery.com>
423 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
425 2004-04-08 Paul Brook <paul@codesourcery.com>
427 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
428 PROMOTE_FOR_CALL_ONLY.
429 * config/arm/arm-protos.h (arm_function_value): Declare.
430 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
431 (TARGET_PROMOTE_PROTOTYPES): Return false.
432 (arm_function_value): New function.
433 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
434 (FUNCTION_VALUE): Call arm_function_value.
435 * config/cris/cris.h (PROMOTE_MODE): Rename ...
436 (PROMOTE_FUNCTION_MODE): ... to this.
437 (PROMOTE_FOR_CALL_ONLY): Remove.
438 * config/mmix/mmix.h: Likewise.
439 * config/s390/s390.h: Likewise.
440 * config/sparc/sparc.h: Likewise.
441 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
442 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
443 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
444 (PROMOTE_FOR_CALL_ONLY): Remove.
446 2004-04-08 Joel Sherrill <joel@oarcorp.com>
449 * ada/5rosinte.adb: Remove fake mprotect() body.
450 * ada/5rosinte.ads: Add SA_SIGINFO.
451 * ada/5rtpopsp.adb: Rewrite to use new interface.
452 * ada/init.c: Reorder so the simple single OS conditional __rtems__
453 is tested before more complex ones which mix UNIX and embedded
454 systems in the conditional.
456 2004-04-08 Joel Sherrill <joel@oarcorp.com>
459 * ada/osint.adb (Find_Program_Name): Rework to properly handle
460 filenames which end in .exe or have versioning suffixes like VMS.
462 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
465 * config/darwin.c (darwin_encode_section_info): When the decl has
466 a DECL_INITIAL, it is only defined also when it is not a common.
468 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
470 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
471 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
473 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
475 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
476 global register variables.
478 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
480 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
481 rpc_xdr_lvalue_cast_b): New fixes.
482 * fixinc/fixincl.x: Regenerate.
483 * fixinc/tests/base/rpc/xdr.h: Add new tests.
485 2004-04-07 David Edelsohn <edelsohn@gnu.org>
487 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
488 to power4 and power5 entries.
490 2004-04-06 Geoffrey Keating <geoffk@apple.com>
492 * c-common.h (pending_lang_change): Mark for PCH.
494 2004-04-07 Caroline Tice <ctice@apple.com>
496 * gcc.c (main): Move 'break' in main loops (on an error)
497 to wait until error processing has occurred.
499 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
501 * config.gcc: Stop changing enable_threads midstream.
502 Replace uses of enable_threads_flag with enable_threads.
503 * configure.ac: Replace uses of enable_threads_flag with
504 enable_threads. Improve autoconf quotation in one place.
505 * configure: Regenerate.
507 2004-04-06 Uros Bizjak <uros@kss-loka.si>
509 * builtins.c: Implement support for sincos function.
510 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
512 (expand_builtin_mathfn_3): New function.
513 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
514 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
515 flag_unsafe_math_optimization is set.
517 * optabs.h (enum optab_index): Add new OTI_sincos.
518 (sincos_optab): Define corresponding macro.
520 * optabs.c (init_optabs): Initialize sincos_optab.
521 (expand_twoval_unop): New function.
523 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
526 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
527 and UNSPEC_SINCOS_SIN.
529 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
530 sincosxf3): New patterns to implement sincos, sincosf and sincosl
531 built-ins as inline x87 intrinsics. Define splits for
532 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
533 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
535 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
536 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
538 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
541 2004-04-06 Devang Patel <dpatel@apple.com>
544 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
546 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
548 * doc/install.texi: Update HP-UX 11 installation procedure.
550 2004-04-06 Paul Brook <paul@codesourcery.com>
552 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
554 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
556 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
557 when the TLS address is generated by a function call.
558 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
559 (tls_local_dynamic): Likewise.
561 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
563 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
566 2004-04-05 Caroline Tice <ctice@apple.com>
568 * gcc.c (combine_flag): New global variable, for new driver option.
569 (struct compiler): Add two new fields, to be used when
570 combining multiple input files in a single pass (IMA).
571 (default_compilers): Add values for the new fields to all
572 compiler entries. Modify the "@c" compiler entry for doing IMA
573 properly with "-save-temps" and the "combine" flag.
574 (option_map): Add new driver option, "--combine", to tell driver
575 to pass multiple input files to compiler at one time.
576 (have_o_argbuf_index): New global variable.
577 (store_arg): Modify to assign value to have_o_argbuf_index.
578 (struct infile): Add three new fields, to help with IMA.
579 (display_help): Add help for new "combine" option.
580 (process_command): Remove local variable have_o; add code to check
581 for new "combine" option; remove assignment to combine_inputs.
582 (do_spec_1): Modify to deal with IMA better.
583 (main): Make variable 'lang_n_infiles' local to entire function
584 rather than to a single block. Use flag combine_flag to
585 determine whether to do IMA or not; Modify loop initializing
586 infiles to deal properly with linker files.
587 Add code for doing preprocessing in presence of
588 IMA with "-save-temps" flag. Modify "main" loop to handle
589 multiple input files, in multiple languages, with or without
590 preprocessing, gracefully.
591 * toplev.c (set_src_pwd): Modify to not complain if attempting to
592 re-set it to same directory it's previously been set to (avoid
593 irritating, meaningless warning messages when doing IMA with
595 * doc/invoke.texi: Add "-combine" to list of Overall Options;
596 remove documentation about IMA that is no longer accurate; Add
597 documentation explaining what "-combine" does.
598 * ada/lang-specs.h: Add initialization values for new fields in
600 * cp/lang-specs.h: Likewise.
601 * f/lang-specs.h: Likewise.
602 * java/lang-specs.h: Likewise.
603 * objc/lang-specs.h: Likewise.
604 * treelang/lang-specs.h: Likewise.
606 2004-04-05 David Edelsohn
608 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
611 2004-04-05 Jakub Jelinek <jakub@redhat.com>
612 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
614 PR optimization/13424 (hppa), bootstrap/14462, c/14828
615 * pa.md: Use replace_equiv_address to retain the attributes of the
616 memory operands used in the split and peephole2 patterns for optimizing
617 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
619 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
621 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
622 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
623 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
624 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
626 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
628 * print-tree.c (print_node): Properly handle side-effects, readonly,
630 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
631 and TREE_CONSTANT if not a type.
632 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
633 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
634 (NON_TYPE_CHECK): New macro.
635 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
637 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
639 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
640 to DWARF2_DEBUG unconditionally.
641 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
643 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
644 Nathanael Nerode <neroden@gcc.gnu.org>
647 * config.host: Set the shell variable host_can_use_collect2.
648 Set it to yes by default, and to no for alpha*-dec-*vms*,
649 i[34567]86-*-mingw32*, and powerpc-*-beos*.
650 * configure.ac: Set and substitute the shell variable collect2.
651 Give an error if use_collect2 is yes and host_can_use_collect2 is
653 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
654 uses. Initialize to @collect2@.
655 (STAGESTUFF): Remove $(USE_COLLECT2).
656 * config/alpha/x-vms (USE_COLLECT2): Don't set.
657 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
658 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
659 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
660 * configure: Regenerate.
662 2004-04-04 Roger Sayle <roger@eyesopen.com>
664 * simplify-rtx.c (simplify_binary_operation): Constant fold
665 DIV, MOD, UDIV and UMOD using div_and_round_double.
667 2004-04-04 Mark Mitchell <mark@codesourcery.com>
670 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
673 2004-04-04 Mark Mitchell <mark@codesourcery.com>
675 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
678 2004-04-04 Roger Sayle <roger@eyesopen.com>
680 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
681 updating the REG_EQUAL note on an insn's libcall_insn.
683 2004-04-04 Roger Sayle <roger@eyesopen.com>
685 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
687 2004-04-03 Roger Sayle <roger@eyesopen.com>
689 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
690 with reorder_operands_p.
692 2004-04-03 Jan Hubicka <jh@suse.cz>
694 * md.texi (vec_set, vec_extract, vec_init): Document.
696 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
698 * opts.c (decode_options): Do function inlining with very small
699 max-inline-insns-* parameters when optimizing for size.
701 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
703 * config/i386/i386.h (TARGET_NOCONA): New macro.
704 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
705 (processor_type): Add PROCESSOR_NOCONA.
707 * config/i386/i386.md (cpu): Add nocona to the attribute values.
709 * config/i386/i386.c (nocona_cost): New variable.
710 (m_NOCONA): New macro.
711 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
712 x86_branch_hints, x86_use_sahf, x86_single_stringop,
713 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
714 x86_integer_DFmode_moves, x86_partial_reg_dependency,
715 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
716 x86_decompose_lea, x86_arch_always_fancy_math_387,
717 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
718 x86_ext_80387_constants, x86_four_jump_limit):
719 (override_options): Add nocona_cost to processor_target_table.
720 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
721 (incdec_operand): Prevent inc/dec generation for Nocona too.
722 (ix86_issue_rate): Add PROCESSOR_NOCONA.
724 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
726 * rtlanal.c (find_reg_note): Manually
729 2004-04-01 Mark Mitchell <mark@codesourcery.com>
731 * genemit.c (gen_split): Change prototype of generated code.
732 * genrecog.c (write_action): Adjust prototype for and calls to
734 * gensupport.c (struct queue_elem): Add split field.
735 (queue_pattern): Return a value. Clear the split field.
736 (process_rtx): Maintain an association between an insn and the
737 split generated from it for a define_insn_and_split.
738 (process_one_cond_exec): Generate a new split for a
739 define_insn_and_split.
740 * config/arm/arm-protos.h (arm_split_constant): Add insn
742 (emit_constant_insn): New function.
743 (arm_gen_constant): Use it.
744 * config/arm/arm.md: Adjust calls to arm_split_constant.
746 2004-04-02 Jan Hubicka <jh@suse.cz>
748 * cgraph.c: Add overall comment.
749 (cgraph_inline_hash): New global variable.
750 (cgraph_create_node): Break out from ...
751 (cgraph_node): ... here.
752 (cgraph_edge): New function.
753 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
754 (cgraph_remove_edge): Accept edge, intead of source and destination.
755 (cgraph_redirect_edge_callee): New.
756 (cgraph_remove_node): Update all new datastructures.
757 (cgraph_record_call, cgraph_remove_call): Kill.
758 (dump_cgraph_node): Break out from ... ; dump new datastructures.
759 (dump_cgraph): ... here.
760 (cgraph_function_possibly_inlined_p): Use new hashtable.
761 (cgraph_clone_edge, cgraph_clone_node): New.
762 * cgraph.h: Include hashtab.h
763 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
764 fields, add inlined_to pointer.
765 (cgraph_node): Add pointer to next_clone.
766 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
767 (cgraph_remove_call, cgraph_record_call): Kill.
768 (cgraph_inline_hash): Declare.
769 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
770 cgraph_redirect_edge_callee): Declare.
771 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
772 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
773 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
774 * cgraphunit.c: Add overall comment.
775 (cgraph_optimize_function): Kill.
776 (cgraph_assemble_pending_functions): Do not assemble inline clones.
777 (cgraph_finalize_function): Update call of cgraph_remove_node
778 (record_call_1): Record call sites.
779 (cgraph_create_edges): Accept node instead of decl argument.
780 (error_found): New static variable.
781 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
782 (cgraph_analyze_function): Update for new datastructures.
783 (cgraph_finalize_compilation_unit): Plug memory leak.
784 (cgraph_optimize_function): Kill.
785 (cgraph_expand_function): Do not use cgraph_optimize_function.
786 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
787 cgraph_inlined_callees): Kill.
788 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
790 (estimate_growth): Simplify.
791 (cgraph_clone_inlined_nodes): New function.
792 (cgraph_mark_inline_edge): Re-implement.
793 (cgraph_mark_inline): Likewise.
794 (cgraph_check_inline_limits): Simplify.
795 (cgraph_recursive_inlining_p): New.
796 (update_callee_keys): Break out from ...
797 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
798 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
800 (cgraph_expand_all_functions): Remove inline clones from the ordered
802 (cgraph_preserve_function_body_p): New predicate.
803 (cgraph_optimize): Verify cgraph.
804 * function.h (struct function): Add fields saved_tree/saved_args.
805 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
806 * toplev.c (rest_of_compilation): Do not free cfun.
807 * tree-inline.c: Include function.h
808 (struct inline_data): Add saving_p field; replace decl/current_decl by
810 (insert_decl_map): New function.
811 (copy_body_r): Handle saving; update cgraph datastructure.
812 (copy_body): Handle recursive inlining.
813 (initialize_inlined_parameters): Likewise.
814 (expand_call_inline): Propagate node attributes; update cgraph.
815 (optimize_inline_calls): Verify that datastructure still match.
816 (save_body): New function.
817 * tree-inline.h (save_body): New.
818 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
819 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
820 * langhooks.c (lang_hooks): Add update_decl_after_saving.
822 2004-04-01 Serge Belyshev <1319@bot.ru>
825 * config/i386/i386.md: fix source operand constraints in
826 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
828 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
830 * fold-const.c (folda): Preserve types of comparisons.
832 2004-04-01 Richard Henderson <rth@redhat.com>
834 * toplev.c (backend_init): Move init_optimization_passes call ...
835 (lang_dependent_init): ... here.
837 2004-04-01 Alan Modra <amodra@bigpond.net.au>
838 Jakub Jelinek <jakub@redhat.com>
840 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
841 -lgcc --as-needed -lgcc_s --no-as-needed by default.
842 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
843 * configure: Rebuilt.
844 * config.in: Rebuilt.
845 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
846 (stage2-start, stage3-start, stage4-start): Likewise.
847 (stageprofile-start, stagefeedback-start): Likewise.
849 2004-04-01 Jakub Jelinek <jakub@redhat.com>
851 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
852 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
853 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
854 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
855 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
856 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
857 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
858 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
859 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
860 * config/sparc/t-linux: Removed.
862 2004-04-01 Jakub Jelinek <jakub@redhat.com>
865 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
866 "bitfld++ == const" to "++bitfld == const + incr" transformations.
868 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
870 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
871 * stor-layout.c (layout_decl): Likewise.
872 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
873 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
874 * print-tree.c (print_node): Handle various used of unsigned_flag.
875 * tree.def (BIT_FIELD_REF): Update comment.
876 * tree.h (TREE_UNSIGNED): Deleted.
877 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
879 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
881 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
882 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
883 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
884 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
885 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
886 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
887 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
888 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
889 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
890 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
891 REAL_TYPE, not INTEGER_TYPE.
892 (layout_type, case VECTOR_TYPE): Simplify code.
893 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
894 * tree.h: Update comments.
895 (STRIP_NOPS): Use TYPE_UNSIGNED.
896 (TYPE_UNSIGNED): New macro.
897 (TYPE_TRAP_SIGNED): Remove now redundant check.
898 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
900 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
902 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
904 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
906 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
907 Add darwin-fpsave.asm, darwin-vecsave.asm,
908 and darwin-world.asm.
909 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
910 as the asm files contain altivec instructions.
911 * config/rs6000/darwin-fpsave.asm: New file.
912 * config/rs6000/darwin-vecsave.asm: New file.
913 * config/rs6000/darwin-world.asm: New file.
915 2004-03-31 Zack Weinberg <zack@codesourcery.com>
917 * gengtype-yacc.y (option, stringseq): Add missing
918 terminating semicolon.
920 2004-03-30 David Edelsohn <edelsohn@gnu.org>
922 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
923 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
924 tls_dtprel_ha_32, tls_dtprel_ha_64,
925 tls_dtprel_lo_32, tls_dtprel_lo_64,
926 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
927 tls_tprel_ha_32, tls_tprel_ha_64,
928 tls_tprel_lo_32, tls_tprel_lo_64,
929 tls_got_tprel_32, tls_got_tprel_64,
930 tls_tls_32, tls_tls_64): Replace register_operand with
933 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
935 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
936 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
937 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
938 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
939 *ctrdi_internal6): Replace register_operand with
940 nonimmediate_operand.
942 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
944 * fold-const.c (fold): Reassociate multiply expression
945 with an adjacent non-multiply expression to use
946 architecture's multiply-add instruction.
948 2004-03-30 Zack Weinberg <zack@codesourcery.com>
950 * gengtype.c (create_option): New function.
951 * gengtype.h: Prototype it.
952 * gengtype-yacc.y (stringseq): New rule.
953 (option): Use create_option. Add new bare ID production. Use
954 stringseq, not STRING directly.
956 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
957 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
958 * varray.h, config/alpha/alpha.c:
959 Use new shorter form of GTY markers.
961 * doc/gty.texi: Rewrite.
963 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
965 * config/darwin.c (machopic_function_base_name):
966 Remove current_name and getting the name of the
969 2004-03-30 Nick Clifton <nickc@redhat.com>
971 * config/arm/arm.md (thumb_jump): Reduce the backward branch
972 range, and increase the forward branch range, to allow for
973 the fact that the PC will be off by 4.
975 2004-03-30 Alan Modra <amodra@bigpond.net.au>
977 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
979 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
981 * config/rs6000/rs6000.c (output_vec_const_move):
982 Find all cases of EASY_VECTOR_15_ADD_SELF.
983 (easy_vector_constant_add_self): Accept
984 all vector constant loadable by vsplt* and vadd*.
985 (easy_vector_same): Use easy_vector_splat_const.
986 (easy_vector_const): Use easy_vector_splat_const.
987 (easy_vector_splat_const): New function.
988 (gen_easy_vector_constant_add_self): New function.
990 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
993 * config/rs6000/altivec.md (movv4si splitter): Change to
994 emit move insn with halfed vector constant.
995 (*movv8hi splitter): Likewise.
996 (*movv16qi splitter): Likewise.
998 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1001 * config/rs6000/rs6000.c (rs6000_legitimate_address):
1002 Allow any offset to argument pointer in no-strict case.
1004 2004-03-30 Jan Hubicka <jh@suse.cz>
1006 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
1007 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
1008 dump file in non-unit-at-a-time mode.
1010 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
1012 * config/cris/cris.h: Correct #ifdef to test for
1013 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
1014 HAVE_AS_MUL_BUG_ABORT_OPTION.
1016 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1018 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
1019 the address inside the old RTL.
1021 2004-03-28 Zack Weinberg <zack@codesourcery.com>
1023 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
1024 (struct c_binding, struct c_scope): Add chain_next
1025 attributes to GTY markers.
1026 (struct lang_identifier, struct lang_tree_node): Define
1028 * c-tree.h: ... not here. No longer need to declare struct
1029 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1030 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
1031 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1034 * c-decl.c (get_parm_info): If error_mark_node is encountered
1035 in the bindings chain, unbind and discard it; don't abort.
1037 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
1038 Dorit Naishlos <dorit@il.ibm.com>
1040 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
1041 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
1043 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
1045 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
1047 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
1048 (m68hc11_attribute_table): New attribute "page0" to mark a global
1049 variable as being allocated from within page0 section.
1050 (m68hc11_encode_label): New function.
1051 (m68hc11_strip_name_encoding): New function.
1052 (m68hc11_page0_symbol_p): New function.
1053 (m68hc11_indirect_p): Accept global variables marked in page0.
1054 (m68hc11_encode_section_info): Lookup "page0" attribute.
1056 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
1057 represents access to page0 variables.
1059 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
1060 ("*logicalsi3_silshl16_zext"): Likewise.
1061 ("*ashldi3_const32"): Likewise.
1062 (peephole2 ashift): Likewise.
1064 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
1066 * c-tree.h (C_DECL_REGISTER): New.
1067 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
1068 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
1069 (build_array_ref, c_mark_addressable): Set and use it.
1070 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
1071 Allow structures with volatile fields to be declared register.
1072 Don't check TREE_ADDRESSABLE before warning about taking address
1074 * c-decl.c (finish_decl): Don't allow structures with volatile
1075 fields to be placed in named register.
1076 * doc/trouble.texi: Remove reference to structures with volatile
1077 fields in registers.
1079 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1081 * function.c (thread_prologue_and_epilogue): Move
1082 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
1083 before the epilogue.
1085 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1087 * expr.c (store_constructor): Use gen_int_mode to correctly
1088 sign-extend CONST_INT value.
1090 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1092 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
1093 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
1094 * doc/extend.texi: Likewise.
1096 2004-03-26 Diego Novillo <dnovillo@redhat.com>
1098 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
1099 with TYPE_ORIG_SIZE_TYPE.
1101 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
1104 * c-typeck.c (build_binary_op): Do not allow comparisons of
1107 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
1109 * config.gcc: Remove sparc-tti-*.
1110 * config/sparc/pbd.h: Delete.
1112 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
1113 * config/sparc/aout.h: Likewise.
1115 * config/sparc/sparc.h: Remove if 0'd code.
1116 * config/sparc/sparc.md (call): Remove if 0'd code.
1117 (call_value): Likewise.
1118 (nonlocal_goto): Likewise.
1119 (unimp_insn): Delete.
1121 2004-03-25 Roger Sayle <roger@eyesopen.com>
1123 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
1124 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
1126 2004-03-25 Richard Henderson <rth@redhat.com>
1129 * c-typeck.c (pop_init_level): Emit pending init elements earlier
1132 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1134 * builtins.c (fold_builtin): Fix error in last change.
1136 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
1138 * config/mips/mips.h: Formatting fix.
1140 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1142 * builtins.def: Add ctype builtins.
1143 * doc/extend.texi: Likewise.
1145 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1147 * builtins.c (fold_builtin): Add new builtin optimizations for
1149 * fold-const.c (fold): Likewise.
1151 2004-03-25 David Edelsohn <edelsohn@gnu.org>
1153 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
1154 (rs6000_sched_groups): New variable.
1155 (processor_target_table): Add power5.
1156 (rs6000_override_options): Set rs6000_sched_insert_nops,
1157 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
1158 from rs6000_sched_groups.
1159 (output_cbranch): Use rs6000_always_hint.
1160 (rs6000_variable_issue): Use rs6000_sched_groups.
1161 (rs6000_adjust_cost): Add CPU_POWER5.
1162 (is_microcoded_insn): Use rs6000_sched_groups.
1163 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
1164 Return 2 for POWER5 cracked instructions.
1165 (is_cracked_insn): Use rs6000_sched_groups.
1166 (is_branch_slot_insn): Use rs6000_sched_groups.
1167 (rs6000_issue_rate): Add CPU_POWER5.
1168 (rs6000_sched_finish): Use rs6000_sched_groups.
1169 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
1170 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
1171 (DEFAULT_SCHED_COSTLY_DEP): Delete.
1172 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
1173 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
1174 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
1175 * config/rs6000/power5.md: New file.
1176 * doc/invoke.texi: Add power5 option.
1178 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
1180 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
1181 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
1182 * doc/invoke.texi: Fix a typo.
1184 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
1186 PR optimization/9707.
1187 * stmt.c (emit_case_nodes): Emit equality comparisons instead
1188 of recursing if both children are single-valued cases with no
1191 2004-03-25 Paul Brook <paul@codesourcery.com>
1193 * config/arm/arm.c (vfp_print_multi): Remove.
1194 (arm_output_fldmx): New function.
1195 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
1196 (arm_expand_prologue): Update to match.
1197 (arm_get_vfp_saved_size): New Function.
1198 (arm_get_frame_offsets): Use it.
1199 (arm_output_epilogue): Use new functions.
1201 2004-03-24 Richard Henderson <rth@redhat.com>
1203 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
1204 (reg_known_value, reg_known_value_size): Likewise; make static.
1205 (reg_known_equiv_p): Make static.
1206 (clear_reg_alias_info): Update for new indexing.
1207 (get_reg_known_value, set_reg_known_value): New.
1208 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
1209 (canon_rtx): Use them.
1210 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
1211 Don't play queer offsetting games with reg_known_value and
1213 (end_alias_analysis): Free reg_known_value with gc.
1214 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
1215 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
1216 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
1219 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
1221 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
1222 config/i386/mmintrin.h: Update copyright.
1224 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
1226 * configure.ac: Add --enable-werror-always (for top level bootstrap
1228 * configure: Regenerate.
1230 2004-03-24 Ziemowit Laski <zlaski@apple.com>
1232 * objc/objc-act.c (objc_comptypes): Treat comparisons
1233 between 'Class' and '<class> *' as explicitly invalid.
1235 2004-03-24 David Edelsohn <edelsohn@gnu.org>
1237 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
1238 (-fprofile-values): Add enabled with profile-{generate,use}.
1240 (-ftracer): Add enabled with profile-use.
1241 (-funit-at-a-time): Add enabled at -O2,-O3.
1242 (-funroll-loops): Add enabled with profile-use.
1243 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
1244 (max-gcse-passes): Mention default.
1245 (max-cse-path-length): Mention default.
1247 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
1249 * Makefile.in (STRICT2_WARN): Reorder.
1250 * configure.ac: Check for -Wold-style-definition, and use it
1251 in strict1_warn if it's available.
1252 * configure: Regnerate.
1254 2004-03-24 Paul Brook <paul@nowt.org>
1256 * config.gcc <arm>: Add --with-abi=
1257 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
1258 thumb_far_jump_used): Remove prototypes.
1259 (arm_needs_doubleword_align): Add prototype.
1260 (thumb_compute_initial_elimination_offset): Ditto.
1261 * config/arm/arm.c (arm_get_frame_offsets): New function.
1262 (use_return_insn, output_return_instruction, arm_output_epilogue,
1263 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
1264 arm_expand_prologue, thumb_expand_epilogue): Use it.
1265 (arm_abi, target_abi_name, all_arm_abis): New variables.
1266 (arm_override_options): Set them. Set structure padding for AAPCS.
1267 (arm_return_in_memory): Update ABI check.
1268 (arm_init_cumulative_args): Initialize can_split.
1269 (arm_needs_doubleword_align): New function.
1270 (arm_function_arg): Don't split args after pushing to stack. Handle
1271 doubleword/even reg alignment.
1272 (arm_va_arg): Handle all doubleword aligned args.
1273 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
1275 (arm_compute_save_reg0_reg12_mask): Fix comment.
1276 (thumb_get_frame_size, thumb_get_frame_size): Remove.
1277 (thumb_jump_far_used_p): Remove superfluous argument. Return save
1278 value for alignment.
1279 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
1281 (thumb_compute_initial_elimination_offset): New function.
1282 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
1283 unneccessary rounding.
1284 * config/arm/arm.h (target_abi_name): Declare.
1285 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
1286 arm_abi_type, ARM_DEFAULT_ABI): Define.
1287 (ARM_FLAG_ATPCS): Remove.
1288 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
1289 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
1290 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
1291 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
1292 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
1293 Contitionalize on ABI, not CPU.
1294 (struct arm_stack_offsets): Define.
1295 (struct machine_function): Add stack_offsets. Remove frame_size.
1296 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
1298 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
1299 doubleword alignment.
1300 (THUMB_INITIAL_ELIMINATION_OFFSET,
1301 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
1302 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
1303 * config/arm/arm.md (align_8): Enable for all targets.
1304 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
1305 (ARM_DEFAULT_ABI): Define.
1306 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
1307 -mstructure-size-boundary.
1309 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
1311 * configure.ac: Check for -Wno-variadic-macros; don't use
1312 -pedantic (in stage 1 or a simple 'make all') unless it's available,
1313 and if it's available, use it. Also, clean up check for
1315 * configure: Regenerate.
1317 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
1319 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
1320 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
1321 (MULTILIB_DEFAULTS): Use it.
1322 (MIPS_CPU_STRING_DEFAULT): Remove.
1323 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
1324 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
1325 EABI64 -mlong32 the default ABI. Enforce the default architecture.
1326 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
1327 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
1328 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
1329 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
1332 2004-03-24 DJ Delorie <dj@redhat.com>
1333 Richard Sandiford <rsandifo@redhat.com>
1335 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
1336 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
1337 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
1338 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
1339 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
1340 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
1341 if TARGET_FIX_VR4122.
1342 * config/mips/mips.md (define_attr length): Account for nops inserted
1343 after macc and dmult when using -mfix-vr4122-bugs.
1344 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
1345 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
1346 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
1347 * config/mips/vr4122-div.S: New file.
1348 * doc/invoke.texi: Document -mfix-vr4122-bugs.
1350 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
1352 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
1353 (TARGET_MIPS4130): New macro.
1354 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
1355 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
1356 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
1357 with PROCESSOR_R4130.
1358 * config/mips/mips.md (define_attr cpu): Add r4130.
1359 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
1361 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
1362 Richard Sandiford <rsandifo@redhat.com>
1364 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
1366 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
1368 PR preprocessor/14438
1369 * cpplib.c (do_pragma): Remove line_change call after pragma
1372 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
1374 * doc/extend.texi (ARM Built-in Functions): Replace with correct
1377 2004-03-23 Roger Sayle <roger@eyesopen.com>
1379 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
1380 if flag_unsafe_math_optimizations.
1381 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
1382 and TARGET_80387 expand using truncdfsf2_noop pattern.
1383 (truncxfsf2): Likewise using truncxfsf2_noop.
1384 (truncxfdf2): Likewise using truncxfdf2_noop.
1385 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
1387 2004-03-23 Ziemowit Laski <zlaski@apple.com>
1389 * hooks.c (hook_constcharptr_tree_null): New hook.
1390 * hooks.h (hook_constcharptr_tree_null): New prototype.
1391 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
1392 * target.h (mangle_fundamental_type): New target hook.
1393 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
1394 target hook at rs6000_mangle_fundamental_type.
1395 (rs6000_mangle_fundamental_type): New function.
1396 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
1398 2004-03-23 Zack Weinberg <zack@codesourcery.com>
1400 PR 12267, 12391, 12560, 13129, 14114, 14133
1401 * c-tree.h: Forward declare struct c_binding. Declare
1402 c_override_bindings_to_false. Update prototypes.
1403 (struct lang_identifier): Update comments. Change fields to be
1405 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
1406 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
1407 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
1408 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
1409 * c-common.h: Update prototypes.
1410 * c-decl.c (struct c_scope): Update commentary. Remove names,
1411 names_last, parms, parms_last, tags, and shadowed fields. Add
1412 bindings and depth fields.
1413 (scope_freelist): Move to more appropriate location.
1414 (c_print_identifier): Update for changes to struct lang_identifier.
1415 (objc_mark_locals_volatile): Update for new bindings structures.
1416 (global_bindings_p): Honor c_override_global_bindings_to_false.
1417 (pushlevel): Rename to push_scope; take no arguments; use the
1418 scope_freelist; initialize scope->depth and check for overflow.
1419 (poplevel): Rename to pop_scope; totally rewritten for new bindings
1421 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
1422 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
1423 Improve some commentary. Adjust handling of forward parm decls.
1424 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
1425 Preserve C_DECL_IN_EXTERNAL_SCOPE.
1426 (warn_if_shadowing): Correct indentation. Improve diagnostics.
1427 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
1428 decls. Rewrite for new bindings structures. Improve commentary.
1429 Eliminate the copy_node call.
1430 (implicit_decl_warning): Use the "diag" idiom (as seen in
1431 locate_old_decl) to reduce code duplication; call locate_old_decl
1432 if appropriate. Relocate to remove need for forward declaration.
1433 (implicitly_declare): Adjust for new bindings structures. Kludge
1434 around Objective-C not-really-builtin functions.
1435 (undeclared_variable): Improve diagnostics. If current_function_decl
1436 is nonnull but current_function_scope is null, use current_scope.
1438 (lookup_tag): Adjust for new bindings structures. Kludge around
1439 Objective-C's tag declarations that wind up in the external scope.
1440 (lookup_name): Adjust for new bindings structures. Kludge around
1441 c-common.c's pseudo-typedefs that wind up in the external scope.
1442 (lookup_name_current_level): Rename lookup_name_in_scope; take a
1443 second argument indicating the scope to examine; rewrite for
1444 new bindings structures.
1445 (c_init_decl_processing): Adjust for renamed functions. Do not
1446 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
1447 First scope pushed is the external scope, not the global scope.
1448 (builtin_function): Use bind, not pushdecl. Adjust other bits
1449 for new data structures. Keep track of builtins that should be
1450 made visible automatically.
1451 (start_decl): Adjust diagnostics. Remove unnecessary call to
1453 (grokparms): Return 0 if arg_types is error_mark_node.
1454 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
1455 reversed sense. Rewrite for new bindings structures. Do not
1456 leave any decls in the scope, to prevent pop_scope from doing
1457 contradictory things with them.
1458 (finish_struct, finish_enum): Remove redundant diagnostics.
1459 (build_enumerator): Don't cascade diagnostics for error_mark_node.
1460 Mark location where -pedantic changes the meaning of the program.
1461 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
1462 parameter decls into the function's scope structure using bind.
1463 Warn here about function definitions in the wrong style.
1465 (store_parm_decls): Correct the determination of whether a
1466 function was defined with a prototype.
1467 (c_write_global_declarations): Operate on all file decls and on
1468 the external scope. Split body of the loop to...
1469 (c_write_global_declarations_1): ... this new function, to avoid
1471 (truly_local_externals, first_builtin_decl, last_builtin_decl)
1472 (make_scope, pop_scope, in_parm_level_p, set_block)
1473 (any_external_decl, record_external_decl, bind_label, getdecls)
1474 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
1475 (c_reset_state): Delete.
1476 (visible_builtins, c_override_global_bindings_to_false)
1477 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
1478 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
1479 (external_scope, binding_freelist, bind, free_binding_and_advance)
1480 (push_file_scope, pop_file_scope): New.
1481 (pushtag, pushdecl_top_level, lookup_label, declare_label)
1482 (define_label, c_make_fname_decl, finish_decl)
1483 (mark_forward_parm_decls, build_compound_literal)
1484 (grokdeclarator, start_function, check_for_loop_decls)
1485 (identifier_global_value, record_builtin_type): Minor adjustments
1486 for new bindings structures. Improve diagnostics and commentary.
1487 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
1488 pushlevel/poplevel respectively.
1489 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
1490 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
1491 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
1492 correct loop over multiple translation units; call fatal_error if
1493 requested to compile more than one file at once. (This disables
1494 IMA temporarily - an up-front error being preferable to a crash.)
1495 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
1496 (all actions): Adjust calls to pushlevel/poplevel.
1497 (parsing_iso_function_signature): Delete.
1498 (extdef_1): Fold into extdef.
1499 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
1500 warn here about function definitions in the wrong style.
1501 (after_tyle_declarator, parm_declarator_starttypename)
1502 (parm_declarator_nostarttypename, notype_declarator): Remove
1503 commented-out productions.
1504 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
1505 an empty TREE_LIST node. Adjust calls to get_parm_info.
1506 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
1507 to suppress -Wold-style-definition after this error.
1508 (c_parse_file): Don't clear the binding stack or call
1509 finish_fname_decls here. Correct comment.
1510 * c-typeck.c (same_translation_unit_p): Export.
1511 (common_type): Use c_override_global_bindings_to_false, not
1512 pushlevel/poplevel/declare_parm_level.
1513 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
1514 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
1515 and LANG_HOOKS_GETDECLS with do-nothing stubs.
1516 * objc/objc-lang.c: Likewise.
1517 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
1519 (OBJC_VOID_AT_END): Delete; replace all uses
1520 with void_list_node.
1521 (generate_forward_declaration_to_string_table): Delete.
1522 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
1524 * coverage.c (create_coverage): Don't pushdecl anything.
1525 * langhooks.c (lhd_clear_binding_stack): Call
1526 lang_hooks.decls.poplevel, not poplevel.
1527 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
1528 circular list rather than going into an infinite loop.
1530 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
1532 * optabs.c (expand_binop): When synthesizing double word rotates
1533 from single word shifts, use a new register target if the provided
1534 target is not a REG already.
1536 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1538 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
1539 * c-common.c (handle_mode_attribute): Add extra arg to
1540 build_pointer_type_for_mode and build_reference_type_for_mode.
1541 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
1543 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
1544 Chain pointers via TYPE_NEXT_PTR_TO.
1545 (build_reference_type_for_mode): Similarly.
1546 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
1547 and build_reference_type_for_mode.
1548 (tree_check4_failed): New function.
1549 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
1550 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
1551 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
1554 2004-03-23 Roger Sayle <roger@eyesopen.com>
1556 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
1557 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
1558 when both A and B are nonnegative.
1559 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
1562 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1564 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
1565 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
1567 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
1569 PR optimization/14669
1570 * fold-const.c (fold): Only unwiden integer comparisons for equality
1571 and inequality operators, or when the signedness doesn't change.
1573 2004-03-23 Jakub Jelinek <jakub@redhat.com>
1575 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
1576 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
1577 * config/sparc/t-linux: New file.
1579 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
1581 * gcse.c (can_assign_to_reg_p): New function, split out from...
1582 (want_to_gcse_p): ...here.
1583 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
1586 2004-03-22 Diego Novillo <dnovillo@redhat.com>
1588 * c-typeck.c (same_translation_unit_p): Fix pasto.
1590 2004-03-22 David Edelsohn <edelsohn@gnu.org>
1592 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
1593 (PARAM_MAX_SCHED_REGION_INSNS): New.
1594 * sched-rgn.c: Include params.h
1595 (MAX_RGN_BLOCKS): Delete.
1596 (MAX_RGN_INSNS): Delete.
1597 (too_large): Return bool. Convert to PARAM_VALUE.
1598 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
1599 * doc/invoke.texi (param): Document max-sched-region-blocks and
1600 max-sched-region-insns.
1602 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1604 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
1607 2004-03-22 Joel Brobecker <brobecker@gnat.com>
1609 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
1612 2004-03-22 Jakub Jelinek <jakub@redhat.com>
1615 * c-decl.c (finish_struct): Change type of incorrect flexible array
1616 field into error_mark_node.
1618 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
1621 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
1622 who are not local for Darwin PIC.
1624 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
1626 * regrename.c (regrename_optimize): Set regs_ever_live for all
1627 registers introduced as replacement.
1629 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
1632 * expr.c (mark_queue): New function.
1633 (emit_insns_enqueued_after_mark): New function replacing
1634 emit_queue. Clear the body of emitted queued insns.
1635 (emit_queue): Call emit_insns_enqueued_after_mark.
1636 (store_expr): Mark the increment queue on entry. Emit
1637 only the incrementations queued when expanding the source.
1639 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
1641 * configure.ac: Allow --disable-coverage-flags (for the future benefit
1642 of top level bootstrap, and consistency). Reindent.
1643 * configure: Regenerate.
1645 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
1647 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
1648 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
1651 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
1654 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
1657 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1659 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
1660 to nonimmediate_operand.
1661 ("*doloop_di"): Likewise.
1663 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
1665 * real.h (struct real_value): Use the same type for all
1666 bitfields. Rename exp to uexp.
1667 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
1668 Adjust all uses of exp...
1669 * builtins.c: ... here, ...
1670 * emit-rtl.c: ... here, and ...
1671 * real.c: ... and here.
1673 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
1675 * pretty-print.c (pp_base_maybe_space): New function.
1676 * pretty-print.h (pp_base_maybe_space): Declare.
1677 (pp_maybe_space): New macro.
1679 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1681 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
1683 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
1685 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
1686 of using register multiplication cost.
1687 (expand_mult): Adapt choose_mult_variant call.
1688 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
1689 of MODE; pass appropriate cost bound. Adjust result when
1690 performing signed multiplication by a negative constant.
1691 Don't use intermediate modes larger than word_mode.
1693 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1695 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
1696 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
1697 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
1698 * explow.c (expr_size): Likewise.
1699 * expr.h (placeholder_list, find_placeholder): Deleted.
1700 * expr.c (store_constructor): Likewise.
1701 (get_inner_reference): Likewise. Also don't call find_placeholder.
1702 (placeholder_list, find_placeholder): Deleted.
1703 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
1704 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
1705 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
1706 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
1707 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
1709 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
1710 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
1711 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
1712 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
1713 Clean up by using first_rtl_op.
1714 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
1715 (substitute_placeholder_in_expr): New function.
1716 * tree.def (WITH_RECORD_EXPR): Deleted.
1717 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
1718 (substitute_placeholder_in_expr): New.
1720 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
1722 * dojump.c (prefer_and_bit_test): Fix which part of
1723 the and_test is replaced.
1725 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
1727 * frontends.texi: Add missing line.
1729 2004-03-21 Zack Weinberg <zack@codesourcery.com>
1730 Chris Devers <cdevers@pobox.com>
1731 Joseph S. Myers <jsm@polyomino.org.uk>
1733 * doc/frontends.texi: Rewrite.
1734 * doc/gcc.texi: Update last modification date.
1736 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
1738 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
1739 message before redirecting the edge.
1741 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1743 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
1745 * explow.c (force_not_mem): Set REG_POINTER flag according to
1747 * rtl.h (MEM_POINTER): New macro.
1748 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
1751 2004-03-20 Roger Sayle <roger@eyesopen.com>
1754 * cse.c (fold_rtx): Avoid substituting constants into unary
1755 conversion operations.
1757 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1759 * fold-const.c (fold): Replace "expr" with "t".
1761 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
1764 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
1765 DECL_ORIGINAL_TYPE if there isn't one.
1767 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1769 * fold-const.c (fold): Replace "final_type" with "type".
1770 Remove variable "final_type".
1772 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1774 * fold-const.c (fold): Constify "type".
1775 Replace "TREE_TYPE (t)" with "type".
1777 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1779 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
1780 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
1781 via (*targetm.foo) () with targetm.foo ().
1783 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1786 * doc/install.texi: Add info directory category and entry.
1788 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1790 * fold-const.c (fold): Replace "t" with "tem" where it is used
1791 as a temporary variable. Remove "orig_t" and all of its uses.
1793 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1795 * fold-const.c (fold): Remove variable "invert".
1796 Move the handling of relational expressions that can be folded
1798 (fold_relational_const): ... here.
1799 (tree_expr_nonzero_p): New.
1801 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
1804 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
1807 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
1809 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
1810 (GTFILES): Add $(srcdir)/dojump.h.
1811 (gt-dojump.h): New dependency.
1812 * dojump.c (and_reg, and_test, shift_test): New static variables.
1813 (prefer_and_bit_test): New function.
1814 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
1816 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
1818 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
1819 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
1820 reorg.c, tree.h: Fix comment typos.
1822 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1824 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
1825 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
1826 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
1827 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
1828 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
1829 vmsdbgout.c: Replace calls via (*targetm.foo) () with
1832 2004-03-19 Ziemowit Laski <zlaski@apple.com>
1834 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
1835 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
1836 always_inline attribute.
1837 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
1838 Treat expansion as completed even if literal argument is
1839 invalid (so that other expansions are not tried in vain).
1841 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1843 * loop-doloop.c (add_test): Replace GEN_INT (0) with
1846 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1848 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
1850 (fold_abs_const): ... here.
1852 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1854 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
1856 2004-03-19 Denis Chertykov <denisc@overta.ru>
1859 * config/avr/avr.md ("call_insn"): Handle explicit integer
1861 (call_value_insn): Likewise.
1863 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1865 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
1867 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
1869 * fold-const.c (negate_expr): Move the handling of constants
1871 (fold_negate_const): ... here.
1873 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1875 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
1876 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
1877 * tree.c (debug_no_type_hash): Deleted.
1878 (type_hash_canon): Abort if passed a variant.
1879 Check lang_hooks.types.hash_types.
1880 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
1881 (build_array_type): Remove unnecessary allocation of pointer type.
1882 (build_complex_type): Properly qualify resulting type.
1884 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
1886 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
1888 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
1890 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
1891 (expand_mult): ...here.
1892 (extract_high_half): New, split out from expand_mult_highpart.
1893 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
1894 (expand_highpart): Evaluate the cost of a shift/add sequence,
1895 then see if any of the specialized optabs are cheaper.
1897 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
1899 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
1901 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1903 * convert.c (convert_to_real): Add more math builtins.
1905 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1907 * convert.c (convert_to_real): Reformat using switch stmt.
1909 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1911 * c-common.c (pointer_int_sum): Do not complain about using
1912 pointers to pointers-to-members.
1914 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
1916 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
1917 have moved to the target hooks structure".
1919 2004-03-18 James E Wilson <wilson@specifixinc.com>
1921 * config/mips/mips.md (type): Split move into arith and fmove. Split
1922 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
1923 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
1925 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
1927 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
1928 rm7_fp_quick): Likewise.
1929 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
1930 rm9k_fquick): Likewise.
1931 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
1933 (ir_sr70_icmp): Delete.
1935 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1937 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
1938 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
1939 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
1940 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
1941 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
1942 Protect with proper check.
1943 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
1944 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
1945 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
1946 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
1947 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
1948 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
1950 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
1952 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
1954 * gcse.c (eliminate_partially_redundant_loads): Reject change if
1955 dest is set between beginning and current insn.
1957 2004-03-18 Mark Mitchell <mark@codesourcery.com>
1959 * c-decl.c (grokdeclarator): Do not complain about redeclaring
1960 visible "static" identifiers "extern" in a local scope.
1961 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
1962 post-increments/decrements.
1964 2004-03-18 Bob Wilson <bob.wilson@acm.org>
1966 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
1967 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
1968 (xtensa_va_start): Remove assignment to current_function_arg_words.
1970 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
1972 * alias.c (record_set): Detect the case where a register is assigned
1973 a new value that has the same base term as the old one.
1975 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1977 * doloop.c: Removed.
1978 * loop-doloop.c: New file.
1979 * Makefile.in (doloop.o): Remove.
1980 (loop-doloop.o): New.
1981 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
1982 * cfgloopanal.c (get_loop_level): New function.
1983 * loop-iv.c (iv_number_of_iterations): Handle case when loop
1984 is leaved immediatelly.
1985 * loop.c (strength_reduce): Do not call doloop optimization.
1986 * loop.h (LOOP_BCT): Removed.
1987 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
1988 (rest_of_handle_loop2): Call doloop_optimize_loops.
1989 (rest_of_compilation): Test for optimizations moved to
1990 rest_of_handle_loop2.
1992 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
1994 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
1996 (rs6000_emit_prologue): Ditto.
1997 (rs6000_emit_epilogue): Ditto.
1998 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
1999 macro for mixed mode.
2001 2004-03-18 Jan Hubicka <jh@suse.cz>
2003 * predict.c (propagate_freq): Compute correctly frequency of
2006 2004-03-17 Eric Christopher <echristo@redhat.com>
2008 * builtins.c (apply_args_size): Use reg_raw_mode.
2009 (apply_result_size): Ditto.
2011 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2014 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
2016 2004-03-17 Jakub Jelinek <jakub@redhat.com>
2018 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
2019 32-bit builds when defaulting to 32-bit.
2021 2004-03-17 Jan Hubicka <jh@suse.cz>
2023 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
2026 2004-03-17 James E Wilson <wilson@specifixinc.com>
2028 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
2029 (hazard_nop): Change type to nop.
2030 (type): Split arith into arith, shift, slt, clz. Delete darith.
2031 Fix all uses. Change arith to multi if more than one insn emitted.
2032 * config/mips/5400.md (ir_vr54_arith): Likewise.
2033 * config/mips/5500.md (ir_vr55_arith): Likewise.
2034 * config/mips/7000.md (rm7_int_other): Likewise.
2035 * config/mips/9000.md (rm9k_int): Likewise.
2036 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
2038 2004-03-17 Joel Brobecker <brobecker@gnat.com>
2040 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
2041 to hold the subtype tree instead of recomputing it several times.
2043 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
2045 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
2047 * config/mn10300/mn10300.md (cc): Remove "invert".
2049 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2051 * builtins.c (integer_valued_real_p): Add builtin rint.
2052 (fold_builtin): Likewise.
2053 * convert.c (convert_to_real): Likewise.
2055 * convert.c (convert_to_real): Fix typos in `long double'
2058 2004-03-16 Mark Mitchell <mark@codesourcery.com>
2061 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
2062 generated COMPOUND_EXPRs.
2064 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2066 * config/h8300/t-rtems (h8300-*-rtems*): New.
2068 2004-03-16 Eric Christopher <echristo@redhat.com>
2070 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
2072 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
2074 * config/i386/i386-protos.h: Add a prototype for
2075 ix86_reverse_condition.
2076 * config/i386/i386.c (ix86_reverse_condition): New.
2077 * config/i386/i386.h (REVERSE_CONDITION): Use
2078 ix86_reverse_condition.
2079 * config/i386/i386.md: Use ix86_reverse_condition instead of
2082 2004-03-16 J. Brobecker <brobecker@gnat.com>
2084 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
2086 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
2089 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
2091 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
2093 * c-common.c (c_common_type_for_mode): Build vector types on
2095 (handle_mode_attribute): Deprecate using the mode attribute
2096 to create vector types. Fix indentation.
2097 (vector_type_node_list): Remove.
2098 (handle_vector_size_attribute): Create vector types on demand.
2099 Strip a NON_LVALUE_EXPR from the attribute if there is one.
2100 * c-typeck.c (comptypes): Make vector types compatible if they
2101 have the same underlying mode.
2102 (convert_for_assignment): Use comptypes to convert between
2104 * tree.c (build_common_tree_nodes_2): Do not create vector types.
2105 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
2107 * tree.h: Remove vector types.
2108 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
2109 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
2110 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
2111 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
2112 * doc/extend.texi (Vector Types): Document how to use the
2113 vector_size attribute to create vectors, rather than mode.
2115 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
2116 * config/i386/emmintrin.h: Likewise.
2117 * config/i386/mmintrin.h: Likewise.
2118 * config/i386/xmmintrin.h: Likewise.
2119 * config/sh/ushmedia.h: Likewise.
2121 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
2123 * config/freebsd-spec.h, config/arc/arc-protos.h,
2124 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
2125 config/arm/linux-gas.h, config/arm/semi.h,
2126 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
2127 config/ia64/freebsd.h, config/mips/7000.md,
2128 config/mips/9000.md, config/ns32k/ns32k-protos.h,
2129 config/sparc/pbd.h: Update copyright.
2131 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2134 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
2136 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
2138 * combine.c (combine_simplify_rtx): Remove the "last"
2139 parameter and its documentation. Adjust recursive calls.
2140 (simplify_logical): Always perform the only simplification
2141 controlled by "last", if the simplified expression is
2143 (try_combine): Do not pass the "last" parameter to
2144 combine_simplify_rtx.
2146 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
2149 * config/mips/mips.md (UNSPEC_GP): New constant.
2150 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
2151 an UNSPEC instead of (reg $gp).
2152 (mips16_gp_pseudo_reg): Change accordingly.
2153 (print_operand): Print $gp directly when handling CONST_GP_P.
2155 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
2157 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
2158 * longlong.h: Make code 68060 clean when compiling for m68060.
2160 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
2162 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
2163 * doc/md.texi: Clarify description of "i" constraint.
2165 2004-03-15 James E Wilson <wilson@specifixinc.com>
2167 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
2168 Split store into store, fpstore, fpidxstore. Fix all uses.
2169 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
2171 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
2172 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
2173 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
2174 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
2175 ir_sr70_fstore): Likewise.
2177 2004-03-15 Richard Henderson <rth@redhat.com>
2180 * except.c (collect_one_action_chain): Record action for cleanup
2181 outer of exception spec.
2183 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
2185 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
2186 Fix the check for abort and only do the mmap if we can.
2188 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
2190 * config/sparc/sparc.h: Rework comments about the code model
2191 in 64-bit environment and the mode 'Pmode'.
2192 * doc/invoke.texi (SPARC options): Rework description of the
2193 different code models supported in 64-bit environment.
2195 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
2197 * defaults.h (REVERSIBLE_CC_MODE): Define.
2198 * jump.c (reversed_comparison_code_parts): Don't check if
2199 REVERSIBLE_CC_MODE is defined.
2201 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
2203 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
2204 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
2205 hosthooks.h, params.h, ra-colorize.c, web.c,
2206 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
2207 config/avr/avr-protos.h, config/avr/avr.md,
2208 config/fr30/fr30-protos.h, config/fr30/fr30.md,
2209 config/h8300/fixunssfsi.c, config/i386/darwin.h,
2210 config/i386/freebsd.h, config/i386/freebsd64.h,
2211 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
2212 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
2213 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
2214 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
2215 config/pa/pa64-regs.h, config/rs6000/aix41.h,
2216 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
2217 config/sparc/aout.h, config/sparc/freebsd.h,
2218 config/sparc/litecoff.h, config/vax/vax-protos.h,
2219 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
2222 2004-03-15 Paul Brook <paul@codesourcery.com>
2224 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
2226 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
2228 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
2229 (pp_c_cv_qualifier): Document.
2230 (pp_c_space_for_pointer_operator): Likewise.
2231 (pp_c_integer_constant): Likewise.
2232 (pp_c_identifier): Likewise.
2233 (pp_c_init_declarator): Don't print function body.
2235 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
2237 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
2238 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
2239 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
2240 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
2241 wording and grammar.
2243 2004-03-14 Roger Sayle <roger@eyesopen.com>
2245 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
2246 with lang_hooks.foo ().
2247 * builtins.c (expand_builtin_va_arg): Likewise.
2248 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
2249 c_common_type_for_mode, c_common_nodes_and_builtins,
2250 handle_mode_attribute, handle_vector_size_attribute): Likewise.
2251 * c-convert.c (convert): Likewise.
2252 * c-format.c (check_format_types): Likewise.
2253 * c-objc-common.c (c_tree_printer): Likewise.
2254 * c-typeck.c (build_unary_op, build_conditional_expr,
2255 build_binary_op): Likewise.
2256 * calls.c (try_to_integrate, expand_call,
2257 emit_library_call_value_1): Likewise.
2258 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
2260 * cgraphunit.c (record_call_1, cgraph_analyze_function,
2261 cgraph_expand_function): Likewise.
2262 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
2263 * coverage.c (build_fn_info_type, build_ctr_info_type,
2264 build_gcov_info, create_coverage): Likewise.
2265 * dbxout.c (dbxout_init): Likewise.
2266 * diagnostic.c (diagnostic_report_current_function): Likewise.
2267 * dojump.c (do_jump): Likewise.
2268 * dwarf2out.c (dwarf2_name): Likewise.
2269 * except.c (init_eh): Likewise.
2270 * explow.c (expr_size, int_expr_size): Likewise.
2271 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
2273 * expr.c (store_expr, store_constructor, safe_from_p,
2274 expand_expr_real, do_store_flag, try_casesi): Likewise.
2275 * function.c (push_function_context_to, pop_function_context_from,
2276 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
2277 put_var_into_stack, allocate_struct_function, current_function_name):
2279 * integrate.c (copy_decl_for_inlining, expand_inline_function):
2281 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
2282 lhd_print_error_function): Likewise.
2283 * opts.c (handle_option, decode_options): Likewise.
2284 * passes.c (open_dump_file): Likewise.
2285 * print-tree.c (print_node): Likewise.
2286 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
2287 expand_decl_cleanup, emit_case_nodes): Likewise.
2288 * stor-layout.c (variable_size): Likewise.
2289 * toplev.c (announce_function, wrapup_global_declarations,
2290 check_global_declarations, compile_file, default_tree_printer,
2291 process_options, lang_dependent_init, finalize): Likewise.
2292 * tree-dump.c (dequeue_and_dump): Likewise.
2293 * tree-inline.c (remap_decl, remap_block, copy_body_r,
2294 initialize_inlined_parameters, declare_return_variable,
2295 inlinable_function_p, expand_call_inline, optimize_inline_calls,
2296 walk_tree, copy_tree_r): Likewise.
2297 * tree-optimize.c (tree_rest_of_compilation): Likewise.
2298 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
2299 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
2300 variably_modified_type_p, dump_tree_statistics): Likewise.
2301 * varasm.c (assemble_variable, compare_constant, copy_constant,
2302 force_const_mem, compute_reloc_for_constant, output_constant,
2303 output_addressed_constants, initializer_constant_valid_p): Likewise.
2305 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
2307 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
2309 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
2311 * doc/install.texi: Reflect autoconf and automake version for
2312 libffi. Update autoconf version to 2.59.
2314 2004-03-13 Roger Sayle <roger@eyesopen.com>
2316 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
2317 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
2318 make_range, build_range_check, fold_range_test, unextend,
2319 constant_boolean_node, fold_binary_op_with_conditional_arg,
2320 fold_truthop, fold_mathfn_compare, fold_inf_compare,
2321 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
2322 with lang_hooks.foo ().
2324 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
2326 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
2328 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
2330 * doc/install.texi: Note status of -fnew-ra.
2332 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
2335 * expr.c (store_expr): Call emit_queue before generating the move
2336 from the temporary to the original target. Protect the temporary
2339 2004-03-13 Jakub Jelinek <jakub@redhat.com>
2342 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
2343 other than UNSPEC_GOTOFF.
2345 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
2347 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
2348 to arm_legitimate_index_p. Update all callers with SET as default
2350 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
2351 range if OUTER is a sign-extend operation on QImode. Correctly
2352 reject shift operations on sign-extended QImode addresses.
2353 (bad_signed_byte_operand): Delete.
2354 (arm_extendqisi_mem_op): New function.
2355 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
2356 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
2358 (CONSTRAINT_LEN): New.
2359 (EXTRA_CONSTRAINT): Delete. Replace with...
2360 (EXTRA_CONSTRAINT_STR): ... this.
2361 (PREDICATE_CODES): Remove bad_signed_byte_operand.
2362 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
2363 is now always default.
2364 (define_splits for bad sign-extend loads): Delete.
2365 (arm_extendqisi, arm_extendqisi_v5): Likewise.
2366 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
2367 Rework 'U' constraint to 'Uv'.
2368 * arm-protos.h: Remove bad_signed_byte_operand. Add
2369 arm_extendqisi_mem_op.
2370 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
2373 2004-03-13 Alan Modra <amodra@bigpond.net.au>
2375 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
2376 with targetm version.
2379 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
2380 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
2381 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
2382 Update all users of RS6000_ARG_SIZE.
2383 (function_arg_advance): Count fregno using mode size.
2384 (function_arg): Handle long double split over regs and memory.
2385 (function_arg_partial_nregs): Likewise.
2386 (rs6000_va_arg): Repackage complex args.
2388 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
2391 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
2392 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
2393 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
2395 2004-03-12 Jakub Jelinek <jakub@redhat.com>
2397 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
2399 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
2400 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
2402 2003-03-12 Andrew Pinski <apinski@apple.com>
2404 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
2405 Use ret instead of result. Use addr instead of base.
2407 2004-03-12 David Edelsohn <edelsohn@gnu.org>
2409 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
2410 fixes required by libstdc++ and update installation instructions
2413 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
2415 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
2416 leading '@' on fastcall symbols before stripping suffix.
2418 2004-03-12 Roger Sayle <roger@eyesopen.com>
2420 * combine.c (unmentioned_reg_p): New function to check whether an
2421 expression is a "specialization" of another, i.e. that there are
2422 no registers or memory references mentioned in the first that don't
2423 appear in the second.
2424 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
2425 (combine_instructions): Also try combining instructions using the
2426 REG_EQUAL note from a preceding log-linked instruction.
2428 2004-03-12 Roger Sayle <roger@eyesopen.com>
2430 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
2432 2004-03-12 Matt Austern <austern@apple.com>
2434 * target.h (struct gcc_target): New target hook, unwind_label.
2435 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
2436 * output.h (default_emit_unwind_label): New function.
2437 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
2438 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
2439 (TARGET_SUPPORTS_HIDDEN): New target macro.
2440 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
2441 that corresponds to this FDE.
2442 (FRAME_BEGIN_LABEL): Allow target to override default label.
2443 (output_call_frame_info): If FDEs are linknonce, then use extra
2444 indirection for FDE encoding, output a label for each FDE, and
2445 output an empty label for each function without an FDE.
2446 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
2447 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
2448 decls with DECL_ONE_ONLY set, if that macro is defined.
2449 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
2450 for a SUPPORTS_ONE_ONLY target.
2451 * config/darwin-protos.h (darwin_unique_section): Declare.
2452 (darwin_asm_named_section): Likewise.
2453 (darwin_section_type_flags): Likewise.
2454 (darwin_non_lazy_pcrel): Likewise.
2455 (darwin_emit_unwind_label): Likewise.
2456 (darwin_make_decl_one_only): Likewise.
2457 * config/darwin.c (machopic_finish): Get rid of tweak that
2458 eliminate stubs for symbols that are defined.
2459 (darwin_encode_section_info): Don't treat weak functions as defined.
2460 (darwin_make_decl_one_only): Define.
2461 (darwin_asm_named_section): Likewise.
2462 (darwin_section_type_flags): Likewise.
2463 (darwin_unique_section): Likewise.
2464 (darwin_emit_unwind_label): Likewise.
2465 (darwin_non_lazy_pcrel): Likewise.
2466 (darwin_asm_output_dwarf_delta): Difference between two labels is
2467 local only if both labels are local.
2468 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.
2469 (ASM_MAKE_LABEL_LINKONCE): Likewise.
2470 (TARGET_SUPPORTS_HIDDEN): Likewise.
2471 (TARGET_USES_WEAK_UNWIND_INFO): Likewise.
2472 (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): Likewise.
2473 (FRAME_BEGIN_LABEL): Likewise.
2474 (ASM_DECLARE_OBJECT_NAME): Make references to weak symbols indirect.
2475 (ASM_DECLARE_FUNCTION_NAME): Likewise.
2476 (darwin_eh_frame_section): Give __eh_frame section the coalesced flag.
2477 (TARGET_ASM_UNIQUE_SECTION): Define.
2478 (EH_FRAME_SECTION_NAME): Define.
2479 (EH_FRAME_SECTION_ATTR): Likewise.
2480 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
2481 (TARGET_ASM_NAMED_SECTION): Likewise.
2482 (TARGET_SECTION_TYPE_FLAGS): Likewise.
2483 * doc/tm.texi: Document TARGET_USES_WEAK_UNWIND_INFO,
2484 TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY, TARGET_SUPPORTS_HIDDEN,
2485 TARGET_ASM_EMIT_UNWIND_LABEL.
2487 2004-03-12 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2489 * builtins.c (expand_builtin_mathfn): Add pow10* to the
2490 existing exp10* case.
2491 (expand_builtin): Likewise.
2493 2004-03-12 Eric Botcazou <ebotcazou@libertysurf.fr>
2495 * doc/tm.texi (registers) <Values in Registers>: Add
2496 entry for REGMODE_NATURAL_SIZE.
2498 2004-03-12 Richard Henderson <rth@redhat.com>
2501 * target.h (struct gcc_target): Move calls substructure before
2502 booleans. Add split_complex_arg.
2503 * function.c (assign_parms, split_complex_args): Use it.
2504 * calls.c (expand_call): Likewise.
2505 (split_complex_values): Likewise. Check for splittable types
2506 before allocating memory.
2507 (split_complex_types): Likewise.
2508 * system.h (SPLIT_COMPLEX_ARGS): Poison.
2509 * expr.h (SPLIT_COMPLEX_ARGS): Remove.
2510 * target-def.h (TARGET_SPLIT_COMPLEX_ARG): New.
2511 * config/alpha/alpha.c (alpha_split_complex_arg): New.
2512 (TARGET_SPLIT_COMPLEX_ARG): New.
2513 * config/alpha/alpha.h (SPLIT_COMPLEX_ARGS): Remove.
2514 * config/rs6000/rs6000.c (TARGET_SPLIT_COMPLEX_ARG): New.
2515 (rs6000_override_options): Zap it for non-AIX.
2516 (rs6000_function_value): Use targetm.calls.split_complex_arg.
2517 * config/rs6000/rs6000.h (SPLIT_COMPLEX_ARGS): Remove.
2518 * config/xtensa/xtensa.c (TARGET_SPLIT_COMPLEX_ARG): New.
2519 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Remove.
2520 * doc/tm.texi (TARGET_SPLIT_COMPLEX_ARG): Modify from old
2521 SPLIT_COMPLEX_ARGS entry.
2523 2004-03-11 Richard Henderson <rth@redhat.com>
2525 * config/alpha/alpha.c (xfloating_ops, vax_cvt_ops): New.
2526 (alpha_lookup_xfloating_lib_func): Use them, return rtx.
2527 (alpha_emit_xfloating_arith): Update to match.
2528 (alpha_emit_xfloating_compare): Likewise.
2529 (alpha_emit_xfloating_cvt): Likewise.
2530 (alpha_emit_xfloating_libcall): Take already built symbol,
2532 * config/alpha/alpha.md (extendsftf2, extenddftf2): Take
2535 2004-03-11 Richard Henderson <rth@redhat.com>
2538 * config/alpha/alpha.h (STACK_BOUNDARY): Set to 128.
2540 * simplify-rtx.c (simplify_relational_operation): Fix typo.
2542 2004-03-11 Richard Henderson <rth@redhat.com>
2545 * except.c (remove_unreachable_regions): Look thru CALL_PLACEHOLDER.
2547 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2550 * calls.c (load_register_parameters): If BLOCK_REG_PADDING is not
2551 defined, pass small BLKmode values in registers in the low-order part.
2553 2004-03-11 Ulrich Weigand <uweigand@de.ibm.com>
2555 * combine.c (if_then_else_cond): Check for NULL return value of
2556 simplify_gen_subreg.
2558 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2561 * config/mips/mips.h (UNITS_PER_FPVALUE): Fix value for
2562 TARGET_SINGLE_FLOAT.
2564 2004-03-11 Steve Ellcey <sje@cup.hp.com>
2566 * config/ia64/hpux.h (TARGET_INIT_LIBFUNCS): Add undef.
2567 * config/ia64/ia64.h (TARGET_INIT_LIBFUNCS): Add define.
2568 * config/ia64/ia64.c (ia64_init_libfuncs): New.
2569 (ia64_hpux_init_libfuncs): Add call to ia64_init_libfuncs.
2571 2004-03-11 Roger Sayle <roger@eyesopen.com>
2573 * fold-const.c (negate_expr_p) <RSHIFT_EXPR>: We can optimize
2574 -((int)X>>C) where C is an integer constant one bit less than the
2575 size of X into (unsigned)X>>C. Similarly for unsigned->signed.
2576 (negate_expr) <RSHIFT_EXPR>: Implement the above transformations.
2578 * simplify-rtx.c (simplify_unary_operation): Also implement the
2579 above transformations at the RTL level.
2581 2004-03-11 Alan Modra <amodra@bigpond.net.au>
2583 * real.c (encode_ibm_extended): Do round low word.
2585 2004-03-11 Ben Elliston <bje@wasabisystems.com>
2587 * config/arm/arm.md (is_xscale): Comment this attribute and move
2588 it a bit further up in the file, closer to related attributes.
2590 2004-03-11 Eric Botcazou <ebotcazou@libertysurf.fr>
2592 * config/host-solaris.c (sol_gt_pch_use_address): Add
2593 missing terminating marker to comment.
2595 2004-03-11 Richard Sandiford <rsandifo@redhat.com>
2597 * config/mips/mips.md: Use move_operand in splitters for 64-bit moves.
2598 (movdi, movsi, movhi, movqi, movsf, movdf): Remove predicates.
2599 (*movdi_32bit_mips16, *movsi_mips16, *movhi_mips16, *movqi_mips16)
2600 (*movsf_mips16, *movdf_mips16): Name unnamed patterns. Use
2601 move_operand as source predicate in all cases.
2602 (*movdi_32bit): Renamed from movdi_internal. Remove 'F' constraint.
2603 Test reg_or_0_operand. Use move_operand as source predicate.
2604 (*movdi_64bit): Renamed from movdi_internal2. Test reg_or_0_operand.
2605 (*movdi_64bit_mips16): Renamed from movdi_internal2_mips16.
2606 (*movsi_internal): Renamed from movsi_internal. Test reg_or_0_operand.
2607 (movhi, movqi, movsf, movdf): Use mips_legitimize_move.
2608 (*movhi_internal): Renamed from movhi_internal. Test reg_or_0_operand.
2609 Use move_operand as source predicate. Remove 'K' constraint.
2610 (*movqi_internal): Likewise movqi_internal.
2611 (*movsf_hardfloat): Renamed from movsf_internal1. Test
2612 reg_or_0_operand. Use move_operand as source predicate.
2613 (*movsf_softfloat): Likewise movsf_internal2.
2614 (*movdf_hardfloat_64bit): Likewise movsf_internal1a.
2615 (*movdf_hardfloat_32bit): Likewise movsf_internal1b.
2616 (*movdf_softfloat): Likewise movdf_internal2.
2617 * config/mips/mips.c (move_operand): Match arbitrary CONST_INTs
2618 for DImode if !TARGET_64BIT.
2619 (mips_legitimize_move): Simplify accordingly.
2621 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2624 * var-tracking.c (struct variable_def): Added field refcount.
2625 (variable_htab_free): Decrease the refcount and delete variable
2626 only if there are no more references.
2627 (unshare_variable): New function.
2628 (vars_copy_1): Increase refcount instead of copying the variable.
2629 (variable_union): Share the variables where possible, unshare
2630 the variables if needed.
2631 (variable_different_p): Return false if var1 and var2 are
2633 (variable_was_changed): Init the refcount of new variable.
2634 (set_frame_base_location): Unshare variable if needed.
2635 (set_variable_part): Init the refcount of new variable.
2636 Unshare the variables if needed.
2637 (delete_variable_part): Unshare the variables if needed.
2638 (emit_notes_for_differences_1): Init the refcount of new variable.
2639 (vt_add_function_parameters): Do not add function parameters to
2640 IN set of ENTRY_BLOCK_PTR because it is unused anyway.
2641 (vt_initialize): Do not add frame_base_decl to IN set of
2642 ENTRY_BLOCK_PTR because it is unused anyway.
2644 2004-03-11 Josef Zlomek <zlomekj@suse.cz>
2646 * var-tracking.c (vars_copy_1): Cleanup and speedup chain operations.
2647 (vars_copy): Likewise.
2648 (variable_union): Likewise.
2649 (set_variable_part): Likewise.
2650 (delete_variable_part): Likewise.
2652 2004-03-11 Kazu Hirata <kazu@cs.umass.edu>
2654 * c-typeck.c, combine.c, cse.c, dominance.c, et-forest.h,
2655 ggc-page.c, var-tracking.c, config/fp-bit.c, config/c4x/c4x.c,
2656 config/cris/cris.c, config/i386/ppro.md, config/i860/i860.c,
2657 config/i860/i860.h, config/m32r/m32r.h, config/m32r/xm-m32r.h,
2658 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2659 config/mips/mips.c, config/mmix/mmix.c, config/ns32k/ns32k.h,
2660 config/pa/pa.c, config/pa/pa32-regs.h, config/pa/pa64-regs.h,
2661 config/pdp11/pdp11.h, config/rs6000/rs6000.c,
2662 config/stormy16/stormy16.c: Fix comment typos and formatting.
2664 2004-03-11 Nathanael Nerode <neroden@gcc.gnu.org>
2666 * configure: Regenerate, since I forgot to while committing Paolo's
2669 2004-03-08 Paolo Bonzini <bonzini@gnu.org>
2672 Move language detection to the top level.
2673 * configure.ac: Remove code to detect languages,
2674 it now lives exclusively in the top level.
2675 * aclocal.m4 (gcc_AC_PROG_GNAT): Moved to the
2676 top level, renamed to ACX_PROG_GNAT.
2678 2004-03-10 Richard Henderson <rth@redhat.com>
2680 * c-pch.c (c_common_no_more_pch): Update for gt_pch_use_address
2682 * config.host (*-*-solaris2*, *-*-linux*): Add out_host_hook_obj
2683 and host_xmake_file fragments.
2684 * ggc-common.c (gt_pch_save): Update for gt_pch_get_address change.
2685 (gt_pch_restore): Similarly for gt_pch_use_address.
2686 (default_gt_pch_get_address): New.
2687 (mmap_gt_pch_get_address): Split out of gt_pch_save.
2688 (default_gt_pch_use_address): Split out of gt_pch_restore.
2689 (mmap_gt_pch_use_address): Likewise.
2690 * hooks.c (hook_voidp_size_t_null): Remove.
2691 (hook_bool_voidp_size_t_false): Remove.
2692 * hooks.h: Likewise.
2693 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): Use one of the
2694 default_ or mmap_ definitions.
2695 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Likewise.
2696 * hosthooks.h (struct host_hooks): Update gt_pch_get_address
2697 and gt_pch_use_address.
2698 * config/host-linux.c, config/host-solaris.c: New files.
2699 * config/x-linux, config/x-solaris: New files.
2700 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_get_address):
2701 Update for changed definition.
2702 (darwin_rs6000_gt_pch_use_address): Likewise.
2703 * doc/hostconfig.texi: Update docs.
2705 2004-03-10 Richard Henderson <rth@redhat.com>
2708 * c-decl.c (grokdeclarator): Don't warn for duplicate qualifiers
2709 except for pedantic c90 mode.
2711 2004-03-10 Kelley Cook <kcook@gcc.gnu.org>
2713 * configure.ac: Bump AC_PREREQ to 2.59.
2714 * configure: Regenerate.
2716 2004-03-10 Uros Bizjak <uros@kss-loka.si>
2718 * optabs.h (enum optab_index): Add new OTI_exp10 and OTI_exp2.
2719 (exp10_optab, exp2_optab): Define corresponding macros.
2720 * optabs.c (init_optabs): Initialize exp10_optab and exp2_optab.
2721 * genopinit.c (optabs): Implement exp10_optab and exp2_optab
2722 using exp10?f2 and exp2?f2 patterns.
2723 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP10{,F,L}
2724 using exp10_optab, and BUILT_IN_EXP2{,F,L} using exp2_optab.
2725 (expand_builtin): Expand BUILT_IN_EXP10{,F,L} and BUILT_IN_EXP2{,F,L}
2726 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
2728 * config/i386/i386.md (exp10sf2, exp10df2, exp10xf2, exp2sf2,
2729 exp2df2, exp2xf2): New patterns to implement exp10, exp10f, exp10l,
2730 exp2, exp2f and exp2l built-ins as inline x87 intrinsics.
2732 2004-03-10 Anthony Green <green@redhat.com>
2734 * doc/invoke.texi (ARM Options): Fix -mpfu typo.
2736 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2738 * config/rs6000/aix.h (TARGET_OS_CPP_BUILTINS): Rename to ...
2739 (TARGET_OS_AIX_CPP_BUILTINS): this. Conditionally define
2741 * config/rs6000/aix41.h (TARGET_OS_CPP_BUILTINS): Use
2742 TARGET_OS_AIX_CPP_BUILTINS.
2743 * config/rs6000/aix43.h (TARGET_OS_CPP_BUILTINS): Same.
2744 * config/rs6000/aix51.h (TARGET_OS_CPP_BUILTINS): Same.
2745 * config/rs6000/aix52.h (TARGET_OS_CPP_BUILTINS): Same.
2746 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Revert
2749 2004-03-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2751 * fold-const.c (tree_expr_nonnegative_p): Add more builtin cases.
2753 2004-03-10 David Edelsohn <edelsohn@gnu.org>
2755 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2756 __LONGDOUBLE128 on AIX.
2758 2004-03-10 Andrew Haley <aph@redhat.com>
2760 PR optimization/14381
2761 * function.c (expand_function_end): Emit a blockage insn before
2762 the epilogue when -fnon-call-exceptions is used.
2764 * except.c (expand_start_all_catch): Make comment more accurate.
2766 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2769 * config/rs6000/t-rtems: Add missing file on branch.
2771 2004-03-10 Ulrich Weigand <uweigand@de.ibm.com>
2773 * dbxout.c (dbxout_symbol_location): Do not output references
2774 to optimized-out constant pool symbols.
2776 2004-03-10 Andreas Schwab <schwab@suse.de>
2778 * config/ia64/ia64.md (divsi3, udivsi3): Remove unused variable
2781 2004-03-09 James E Wilson <wilson@specifixinc.com>
2783 * alias.c (alias_sets_might_conflict_p): New.
2784 * c-typeck.c (build_c_cast): Call it if warn_strict_aliasing > 1.
2785 * common.opt (Wstrict-aliasing=): New.
2786 * flags.h (warn_strict_aliasing): Change type to int.
2787 * opts.c (warn_strict_aliasing): Change type to int.
2788 (common_handle_option): Handle OPT_Wstrict_aliasing_.
2789 * tree.h (alias_sets_might_conflict_p): Declare it.
2790 * doc/invoke.tex (-Wstrict-aliasing=2): Document it.
2792 2004-03-10 Roman Zippel <zippel@linux-m68k.org>
2795 * config/m68k/m68k.h (FIXED_REGISTERS): Add arg pointer.
2796 (CALL_USED_REGISTERS): Likewise.
2797 (REG_CLASS_CONTENTS): Likewise.
2798 (REG_ALLOC_ORDER): New.
2799 (REGNO_REG_CLASS): Use regno_reg_class.
2800 * config/m68k/m68k.c: Add regno_reg_class array.
2802 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2804 * config/ia64/ia64.md (divsi3): Fix algorithm.
2806 (setf_exp_xf): Remove '*' from name.
2807 * testsuite/gcc.dg/20040309-1.c: New test.
2809 2004-03-09 Ian Lance Taylor <ian@wasabisystems.com>
2811 * system.h (SUNOS4_SHARED_LIBRARIES): Poison.
2812 * collect2.c: Remove SUNOS4_SHARED_LIBRARIES code.
2813 * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): Don't define.
2814 * config/sparc/sparc.c (sparc_aout_select_section): Remove.
2815 (sparc_aout_select_rtx_section): Don't check
2816 SUNOS4_SHARED_LIBRARIES.
2817 * config/sparc/sparc.h (SUNOS4_SHARED_LIBRARIES): Don't define.
2819 2004-03-10 Hans-Peter Nilsson <hp@axis.com>
2822 * doc/md.texi (Pattern Ordering, Dependent Patterns)
2823 (Jump Patterns, Looping Patterns): Wrap in separate "@ifset
2826 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2828 * config/ia64/hpux.h (MULTILIB_DEFAULTS): Define.
2829 (LIBGCC_SPEC): Update to match.
2831 2004-03-09 Zack Weinberg <zack@codesourcery.com>
2833 * c-decl.c (last_function_parms, last_function_parm_tags)
2834 (last_function_parm_others, current_function_parms)
2835 (current_function_parm_tags, current_function_parm_others):
2837 (ARG_INFO_PARMS, ARG_INFO_TAGS, ARG_INFO_TYPES, ARG_INFO_OTHERS):
2839 (grokdeclarator): For function definitions, save the arg-info
2840 block from the declarator in DECL_ARGUMENTS.
2841 (grokparms): Do not write to last_function_parm*. Use ARG_INFO_*
2842 macros to operate on arg-info block. Can assume ARG_INFO_PARMS
2843 contains only PARM_DECLs. Improve diagnostics.
2844 (get_parm_info): Use ARG_INFO_* macros. Improve comments and
2845 diagnostics. Disable some expensive checks if not ENABLE_CHECKING.
2846 (store_parm_decls_newstyle): Take the function to operate on,
2847 and an arg-info block, as arguments; don't get anything from
2848 current_function_* globals.
2849 (store_parm_decls_oldstyle): Likewise.
2850 (store_parm_decls): Pass fndecl and its arg-info block down to
2851 store_parm_decls_newstyle/oldstyle. Send functions with empty
2852 argument lists through store_parm_decls_newstyle to reduce
2854 (pushdecl): Comment on the problems with the call to copy_node.
2855 Clear DECL_ARGUMENTS of the old node after copying it, if it
2856 is an arg-info block instead of a chain of decls.
2857 (start_function): Do not manipulate current_function_parm* or
2858 last_function_parm*.
2860 2004-03-09 Roger Sayle <roger@eyesopen.com>
2861 Andrew Pinski <pinskia@physics.uc.edu>
2863 * ifcvt.c (noce_try_sign_mask): New function to transform
2864 "x = (y < 0) ? z : 0" into the equivalent "x = (y >> C) & z".
2865 (noce_process_if_block): Call noce_try_sign_mask.
2867 2004-03-09 Andrew Pinski <apinski@apple.com>
2869 * c-typeck.c (tagged_types_tu_compatible_p):
2872 2004-03-09 Roger Sayle <roger@eyesopen.com>
2874 * simplify-rtx.c (simplify_const_relational_operation): New function
2875 renamed from simplify_relational_operation.
2876 (simplify_relational_operation): Change prototype to accept an
2877 additional mode argument. Call simplify_const_relational_operation.
2878 (simplify_gen_relational): Update simplify_relational_operation call.
2879 (simplify_ternary_operation): Update simplify_relational_operation
2880 subroutine call to use simplify_const_relational_operation instead.
2882 * rtl.h (simplify_const_relational_operation): Prototype here.
2883 (simplify_relational_operation): Add addtional mode argument.
2885 * combine.c (combine_simplify_rtx): Update calls to
2886 simplify_relational_operation.
2887 (simplify_set): Likewise.
2888 (gen_binary): Likewise.
2889 * cse.c (fold_rtx): Likewise.
2890 * dojump.c (compare_from_rtx): Likewise.
2891 (do_compare_rtx_and_jump): Likewise.
2892 * integrate.c (subst_constants): Likewise.
2893 * unroll.c (simplify_cmp_and_jump_insns): Likewise.
2895 2004-03-09 Kazu Hirata <kazu@cs.umass.edu>
2897 * config/m32r/m32r.md: Remove all define_peephole's.
2899 2004-03-09 Alan Modra <amodra@bigpond.net.au>
2901 * config/rs6000/rs6000.md: Remove trailing whitespace.
2903 2004-03-08 Eric Christopher <echristo@redhat.com>
2905 * Makefile.in (site.exp): Add libiconv variable definition.
2907 2004-03-09 Hans-Peter Nilsson <hp@axis.com>
2909 * configure: Regenerate for config/accross.m4 correction.
2911 2004-03-08 Joel Sherrill <joel@oarcorp.com>
2914 * config/rs6000/t-rtems: Add missing file on branch.
2916 2004-03-08 Roger Sayle <roger@eyesopen.com>
2919 * c-typeck.c (c_mark_addressable): A register variable should
2920 be considered global if its not automatic, i.e. TREE_PUBLIC,
2921 TREE_STATIC or DECL_EXTERNAL.
2922 * function.c (put_var_into_stack): Call abort when placing a
2923 hard register into the stack, if x_parm_reg_stack_loc is NULL.
2925 2004-03-08 Ulrich Weigand <uweigand@de.ibm.com>
2927 * config/s390/s390.md ("*extendqidi2_short_displ"): Add CC clobber.
2928 ("*extendqisi2_short_displ"): Likewise.
2930 2004-03-08 Kazu Hirata <kazu@cs.umass.edu>
2932 * config/pdp11/pdp11.c (comparison_operator_index): Remove.
2933 (comp_operator): Likewise.
2934 * config/pdp11/pdp11-protos.h: Remove corresponding
2937 2004-03-08 Eric Botcazou <ebotcazou@act-europe.fr>
2939 * expr.c (highest_pow2_factor_for_type): Rename into
2940 highest_pow2_factor_for_target. Use DECL_ALIGN instead of
2941 TYPE_ALIGN when the target is a COMPONENT_REF.
2942 (expand_assignment): Ajust call to highest_pow2_factor_for_type.
2944 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2946 * config/rs6000/rs6000.c: Formatting fix.
2947 (legitimate_offset_address_p): Correct offset range check.
2949 * config/rs6000/rs6000.c (rs6000_override_options): Don't override
2950 -msoft-float by -mcpu. Consolidate similar code for MASK_MULTIPLE
2953 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
2955 * config/rs6000/rs6000.md (ashrdi3): Do not call ashrdi3_no_power
2957 ("ashrdi3_no_power"): Disable for little endian.
2960 2004-03-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2962 * fold-const.c (tree_expr_nonnegative_p): Reformat checks for
2965 2004-03-08 Hans-Peter Nilsson <hp@axis.com>
2968 * configure.ac (Target-specific assembler checks) <cris-*-*>: New
2969 case, checking for -no-mul-bug-abort option.
2970 * configure, config.in: Regenerate.
2971 * doc/invoke.texi (CRIS Options): Document -mmul-bug-workaround
2972 and -mno-mul-bug-workaround.
2973 * config/cris/cris.md ("smulsi3_highpart", "umulsi3_highpart")
2974 ("mulsidi3", "umulsidi3"): Prefix output template with "%!".
2975 ("umulhisi3", "umulqihi3", "mulsi3", "mulqihi3", "mulhisi3"):
2976 Ditto. Make attribute "slottable" dependent on TARGET_MUL_BUG.
2977 * config/cris/mulsi3.asm (__Mul) [__CRIS_arch_version >= 10]: Make
2978 sure mulu.d is not last on cache-line.
2979 * config/cris/cris.h (ASM_SPEC): Translate -mno-mul-bug-workaround
2980 into -no-mul-bug-abort depending on HAVE_AS_MUL_BUG_ABORT_OPTION.
2981 (TARGET_MASK_MUL_BUG, TARGET_MUL_BUG): New macros.
2982 (TARGET_SWITCHES): New options -mmul-bug-workaround and
2983 -mno-mul-bug-workaround.
2984 (TARGET_DEFAULT): Include TARGET_MASK_MUL_BUG.
2985 (PRINT_OPERAND_PUNCT_VALID_P): Include '!'.
2986 * config/cris/cris.c (cris_operand_extend_operator): Clarify
2987 relation to MULT in head comment.
2988 (cris_op_str): Abort for MULT.
2989 (cris_print_operand) <case '!'>: New case.
2991 2004-03-08 Alan Modra <amodra@bigpond.net.au>
2994 * dwarf2out.c (enum dw_val_class): Rename dw_val_class_float to
2995 dw_val_class_vec. Replace use throughout file.
2996 (dw_float_const): Delete.
2997 (dw_vec_const): New.
2998 (dw_val_struct_union): Rename val_float to val_vec. Replace use
3000 (add_AT_vec): Rename from add_AT_float. Add elt_size param.
3001 (same_dw_val_p): Adjust vec comparison. Use memcmp.
3002 (size_of_die): Adjust dw_val_class_vec sizing.
3003 (output_die): Output dw_val_class_vec.
3004 (insert_int, extract_int, insert_float): New functions.
3005 (add_const_value_attribute): Use insert_float for CONST_DOUBLE.
3006 Handle CONST_VECTOR.
3007 (add_location_or_const_value_attribute): Handle CONST_VECTOR.
3009 2004-03-07 Aldy Hernandez <aldyh@redhat.com>
3011 * config/rs6000/rs6000.c (rs6000_parse_abi_options): SPE and
3012 AltiVec abi cannot co-exist.
3014 * config/rs6000/eabispe.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Same.
3016 2004-03-07 Jan Hubicka <jh@suse.cz>
3018 * except.c (emit_to_new_bb_before): Break fallthru edges.
3020 2004-03-07 Stephane Carrez <stcarrez@nerim.fr>
3022 * config/m68hc11/m68hc11.md ("*lshrsi3_const"): Disable for 68HC12.
3023 ("*lshrsi3"): Also accept an immediate for 68HC12.
3024 ("*ashrsi3_const"): Likewise.
3025 ("*ashrsi3"): Likewise.
3026 ("*ashlsi3_const"): Likewise.
3027 ("*ashlsi3"): Likewise.
3028 ("cmphi_1_hc12"): Compare two hard register by pushing them and
3029 comparing with a pop; don't use a split for that.
3030 ("cmphi split"): Disable compare split for 68HC12.
3032 * config/m68hc11/m68hc11.c (m68hc11_notice_update_cc): Invalidate
3033 the status operands if they have side effects.
3035 2004-03-07 Kazu Hirata <kazu@cs.umass.edu>
3037 * defaults.h (LEGITIMIZE_ADDRESS): Provide a default
3039 * config/arc/arc.h, config/fr30/fr30.h, config/frv/frv.h,
3040 config/h8300/h8300.h, config/ia64/ia64.h,
3041 config/mcore/mcore.h, config/mmix/mmix.h,
3042 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
3043 config/stormy16/stormy16.h, config/v850/v850.h,
3044 config/vax/vax.h (LEGITIMIZE_ADDRESS): Remove.
3045 * doc/tm.texi (LEGITIMIZE_ADDRESS): Mention the default
3048 2004-03-07 Roger Sayle <roger@eyesopen.com>
3050 * fold-const.c (fold) <IOR_EXPR>: Fold x | x as x.
3051 <XOR_EXPR>: Fold x ^ x as zero.
3052 <AND_EXPR>: Fold x & x as x.
3054 2004-03-07 Roger Sayle <roger@eyesopen.com>
3056 * fold-const.c (fold) <EQ_EXPR>: Rewrite optimization to transform
3057 "foo++ == const" into "++foo == const+incr".
3059 2004-03-07 Richard Sandiford <rsandifo@redhat.com>
3061 * config/mips/mips.c (mips_in_small_data_p): Return false if
3064 2004-03-06 Stephane Carrez <stcarrez@nerim.fr>
3066 * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Use 2,-sp to push
3068 (expand_prologue): Don't make an interrupt or a trap handler a far
3070 (m68hc11_initial_elimination_offset): Likewise.
3072 2004-03-06 Richard Henderson <rth@redhat.com>
3074 * config/alpha/alpha.c (alpha_in_small_data_p): False for functions.
3076 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
3078 * config/ns32k/ns32k-protos.h: Add a prototype for
3079 ns32k_notice_update_cc.
3080 * config/ns32k/ns32k.c (ns32k_notice_update_cc): New.
3081 * config/ns32k/ns32k.h (NOTICE_UPDATE_CC): Call
3082 ns32k_notice_update_cc.
3084 2004-03-06 Ulrich Weigand <uweigand@de.ibm.com>
3086 * config/s390/s390.md ("load_multiple", "*load_multiple_di",
3087 "*load_multiple_si"): Allow only if reload_completed.
3088 ("store_multiple", "*store_multiple_di", "*store_multiple_si"):
3091 2004-03-06 Kazu Hirata <kazu@cs.umass.edu>
3093 * config/vax/vax-protos.h: Add a prototype for
3094 vax_notice_update_cc.
3095 * config/vax/vax.c (vax_notice_update_cc): New.
3096 * config/vax/vax.h (NOTICE_UPDATE_CC): Call
3097 vax_notice_update_cc.
3099 2004-03-06 David Edelsohn <edelsohn@gnu.org>
3101 * collect2.c (main): Only export initfunc and finifunc if
3102 LD_INIT_SWITCH not defined.
3103 (scan_prog_file): Only export constructors and destructors if
3104 LD_INIT_SWITCH not defined. Only export symbols not found in
3107 2004-03-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
3109 * pa.md (icacheflush): Reorder operands to make match_scratch operand
3111 * pa.h (INITIALIZE_TRAMPOLINE): Remove unnecessary scratch argument
3112 from calls to gen_icacheflush.
3114 2004-03-06 Richard Henderson <rth@redhat.com>
3116 * config/alpha/alpha.h (MASK_LONG_DOUBLE_128): New.
3117 (TARGET_LONG_DOUBLE_128): New.
3118 (TARGET_SWITCHES): Add long-double-{128,64}.
3119 (TARGET_HAS_XFLOATING_LIBS): Default to TARGET_LONG_DOUBLE_128.
3120 (LONG_DOUBLE_TYPE_SIZE): Honor TARGET_LONG_DOUBLE_128.
3121 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): New.
3122 (WIDEST_HARDWARE_FP_SIZE): New.
3123 (TARGET_CPU_CPP_BUILTINS): Define __LONG_DOUBLE_128__.
3124 * config/alpha/alpha.c (override_options): Clear MASK_LONG_DOUBLE_128
3125 if TARGET_VAX_FLOAT.
3126 * config/alpha/osf5.h (LONG_DOUBLE_TYPE_SIZE): Remove.
3127 (TARGET_DEFAULT): Set MASK_LONG_DOUBLE_128.
3129 2004-03-06 Richard Henderson <rth@redhat.com>
3131 * config/alpha/alpha.c (alpha_swapped_comparison_operator): Fix
3132 botched rtx class conversion.
3134 2004-03-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3136 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P,
3137 BUILTIN_CBRT_P, BUILTIN_ROOT_P): New macros.
3139 * builtins.c (fold_builtin_logarithm, fold_builtin): Use new
3141 * fold-const.c (fold_mathfn_compare, fold): Likewise.
3143 2004-03-06 Eric Botcazou <ebotcazou@libertysurf.fr>
3146 * config/i386/i386.md (movv2di_internal): Conditionalize on
3147 TARGET_SSE, not TARGET_SSE2.
3149 2004-03-05 Chris Demetriou <cgd@broadcom.com>
3151 * config.gcc (mips64orion-*-elf*, mips64orionel-*-elf*): Delete
3154 2004-03-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3156 * builtins.c: Consistently use logN not log* in comments.
3158 2004-03-05 Andreas Krebbel <krebbel1@de.ibm.com>
3160 * rtl.h (mem_expr_equal_p): Function prototype added.
3161 * cfgcleanup.c (merge_memattrs): New function.
3162 (flow_find_cross_jump): Call merge_memattrs for matching insns.
3163 * emit-rtl.c (mem_expr_equal_p): New function.
3165 2004-03-05 Ziemowit Laski <zlaski@apple.com>
3167 * objc/objc-act.c (synth_module_prologue): Const-qualify
3168 objc_selector type if using the GNU runtime; fix generated
3169 signatures for objc_msg_lookup and objc_msg_lookup_super
3170 to match what GNU ObjC headers provide; reformat and clean up.
3171 (synth_self_and_ucmd_args): Use previously constructed (and
3172 hence possibly const-qualified) objc_selector type.
3174 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
3176 * doc/tm.texi (HARD_REGNO_RENAME_OK): Document.
3178 2004-03-05 Jason Merrill <jason@redhat.com>
3180 * tree.h (TYPE_HASH): Use TYPE_UID.
3181 (TREE_HASH): New macro with old definition of TYPE_HASH.
3182 * tree.c (build_type_attribute_variant): Use iterative_hash_object.
3183 (build_array_type, build_function_type): Likewise.
3184 (build_method_type_directly): Likewise.
3185 (build_offset_type, build_complex_type): Likewise.
3186 (type_hash_list, attribute_hash_list): Likewise. Now static.
3187 * except.c: s/TYPE_HASH/TREE_HASH/.
3189 2004-03-05 Bob Wilson <bob.wilson@acm.org>
3191 * config/xtensa/xtensa.c (function_arg): Handle 16-byte aligned args.
3192 (xtensa_va_start): Initialize __va_stk to ($arg_ptr - 32). Adjust
3193 __va_ndx by 2 words when referencing an argument on the stack.
3194 (xtensa_va_arg): Handle 16-byte aligned args. Adjust __va_ndx by 2
3195 words when an arg on the stack is first seen.
3197 2004-03-05 Paul Brook <paul@codesourcery.com>
3199 * arm.h (ARM_FLAG_VFP): Remove.
3200 (ARM_FLAG_ATPCS, CIRRUS_FIX_INVALID_INSNS): Renumber.
3201 * netbsd-elf.h (ARM_FLAG_VFP): Remove.
3203 2004-03-05 Paul Brook <paul@codesourcery.com>
3205 * function.c (assign_parms): Include pretend alignment offset.
3207 2004-03-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3209 * stor-layout.c (layout_type, case FUNCTION_TYPE): Make size
3210 FUNCTION_BOUNDARY, not POINTER_SIZE * 2.
3212 2004-03-05 Ian Lance Taylor <ian@wasabisystems.com>
3214 * configure.ac: When passing --enable-languages to subdir
3215 configure when host != build, make sure we don't pass an empty
3217 * configure: Regenerate.
3219 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
3222 * gcc.c (cc1_options): Robustify -auxbase-strip from multiple -o
3225 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3227 * simplify-rtx.c (simplify_relational_operation): If
3228 flag_wrapv is set, do not move terms between the two
3229 side of a relational operator.
3231 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3233 * rtlanal.c: Include target.h and output.h
3234 (rtx_cost, address_cost, default_address_cost): Move from...
3235 * cse.c (rtx_cost, address_cost, default_address_cost):
3237 * rtl.h (rtx_cost, address_cost): Move under rtlanal.c.
3238 * Makefile.in: Adjust dependencies.
3240 2004-03-05 Paolo Bonzini <bonzini@gnu.org>
3242 * cse.c (cse_end_of_basic_block): Make static.
3243 * local-alloc.c (function_invariant_p): Move to
3245 * loop.c (libcall_other_reg, record_excess_regs):
3247 * reload1.c (function_invariant_p): Moved here
3248 from local-alloc.c, made static.
3249 * rtl.h (cse_end_of_basic_block, function_invariant_p,
3250 libcall_other_reg, record_excess_regs): Remove
3253 2004-03-05 Kazu Hirata <kazu@cs.umass.edu>
3255 * config/m32r/m32r.c (signed_comparison_operator): Add a
3256 missing parenthesis.
3258 2004-03-04 Ian Lance Taylor <ian@wasabisystems.com>
3260 * ggc-common.c (gt_pch_restore): Don't unmap addr unless we are
3261 going to call mmap again. Read the file into the right place.
3262 Give a fatal error if we have to relocate.
3264 2004-03-04 Bob Wilson <bob.wilson@acm.org>
3266 * config/xtensa/xtensa.c (xtensa_return_in_msb): New function.
3267 (TARGET_RETURN_IN_MSB): Define to xtensa_return_in_msb.
3269 2004-03-05 Hans-Peter Nilsson <hp@axis.com>
3272 * config/fp-bit.c (_fpdiv_parts): Do not round when pack_d would
3273 round the same. When rounding, clear bits that would cause a
3274 second rounding in pack_d.
3275 (_fpmul_parts): Ditto. Remove #if 0:d code.
3277 2004-03-04 Ziemowit Laski <zlaski@apple.com>
3279 PR c++/14425, c++/14426
3280 * config/rs6000/altivec.h (vec_splat_s8, vec_splat_s16,
3281 vec_splat_s32, vec_splat_u8, vec_splat_u16, vec_splat_u32):
3282 Change C++ definitions to accept a 'const int' argument;
3283 the prototypes already do.
3284 * config/rs6000/rs6000.c (rs6000_common_init_builtins):
3285 Rename v4si_ftype_char, v8hi_ftype_char, v16qi_ftype_char,
3286 v4sf_ftype_v4si_char, v4si_ftype_v4sf_char, v4si_ftype_v4si_char,
3287 v8hi_ftype_v8hi_char, v16qi_ftype_v16qi_char,
3288 v16qi_ftype_v16qi_v16qi_char, v8hi_ftype_v8hi_v8hi_char,
3289 v4si_ftype_v4si_v4si_char and v4sf_ftype_v4sf_v4sf_char to
3290 end in ..._int; change them to accept an int instead of a char
3291 as the last parameter.
3293 2004-03-04 Phil Edwards <phil@codesourcery.com>
3295 * genmultilib: Change '=' to '-' when translating option names
3298 2004-03-04 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3300 * expr.c (expand_expr_real, case COMPONENT_REF): Get proper type of
3301 stack slot for temp used for result of BLKmode but in integral mode.
3303 2004-03-04 Jan Hubicka <jh@suse.cz>
3305 * reload.c (find_reloads): Reorganize if seqeunce to switch.
3307 * cfgrtl.c (rtl_redirect_edge_and_branch): Set the source BB as dirty.
3308 (cfglayout_redirect_edge_and_branch): Set the source BB as dirty.
3310 2004-03-04 Steve Ellcey <sje@cup.hp.com>
3312 * config/ia64/ia64.md (divdf3_internal_thr): Fix algorithm.
3313 * testsuite/gcc.dg/20040303-1.c: New test.
3315 2004-03-04 Steven Bosscher <stevenb@suse.de>
3317 * ppro.md: Rewrite as a DFA pipeline description.
3318 * i386.md: Remove all uses of the ppro_uops attribute.
3319 * i386.c: (ix86_safe_ppro_uops, ix86_dump_ppro_packet,
3320 ix86_reorder_insn, ix86_sched_reorder_ppro, ix86_sched_init,
3321 ix86_sched_reorder, ix86_variable_issue,
3322 struct ix86_sched_data, TARGET_SCHED_VARIABLE_ISSUE,
3323 TARGET_SCHED_INIT, TARGET_SCHED_REORDER): Remove.
3324 (ia32_use_dfa_pipeline_interface): Add TARGET_PENTIUMPRO.
3325 (ia32_multipass_dfa_lookahead): Add TARGET_PENTIUMPRO.
3326 * athlon.md (athlon_ssecmp_load): Fix comment
3328 2004-03-04 Stuart Hastings <stuart@apple.com>
3330 * gcc/doc/invoke.texi: Document -mlongcall for Darwin/PPC.
3332 2004-03-04 Stuart Hastings <stuart@apple.com>
3334 * gcc/config/i386/darwin.h: Darwin/x86 doesn't support CPUs before
3335 686, tell Darwin assembler to allow prefetch insns, non-empty def
3336 of SUBTARGET_OPTION_TRANSLATE_TABLE.
3338 2004-03-04 DJ Delorie <dj@redhat.com>
3340 PR optimization/14282
3341 * sched-deps.c (sched_analyze_insn): Allow a stack adjustment
3342 between a call and the assignment of its return value.
3344 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
3346 * config/h8300/h8300.c: Put a comment for every function.
3348 2004-03-04 Kazu Hirata <kazu@cs.umass.edu>
3350 * config/h8300/h8300.md: Add comments about peephole2's.
3352 2004-03-04 Steven Bosscher <stevenb@suse.de>
3354 * i386.h (TARGET_CPU_DEFAULT_nocona): Fix value.
3356 2004-03-04 Jan Hubicka <jh@suse.cz>
3358 * cfgcleanup.c (thread_jump): Update call of cselib_init.
3359 * cselib.c (cselib_record_memory): New static variable.
3360 (cselib_lookup_mem, cselib_record_set, cselib_record_sets):
3361 Give up on memories when asked for.
3362 (cselib_init): Accept new argument.
3363 * cselib.h (cselib_init): Update prototype.
3364 * gcse.c (local_cprop_pass): Update call of cselib_init.
3365 * loop.c (load_mems): Update call of cselib_init.
3366 * postreload.c (reload_cse_regs_1): Update call of cselib_init.
3367 * sched-deps.c (sched_analyze): Update call of cselib_init.
3369 2004-03-04 David Edelsohn <edelsohn@gnu.org>
3372 * config/rs6000/rs6000.c (output_function_profiler): Append @plt
3375 2004-03-04 Josef Zlomek <zlomekj@suse.cz>
3378 * var-tracking.c (track_expr_p): Do not track variables which
3379 should be ignored for debugging purposes.
3381 2004-03-04 Alan Modra <amodra@bigpond.net.au>
3383 * real.c (encode_ibm_extended): Don't bother rounding low double.
3384 * c-cppbuiltin.c (builtin_define_float_constants): Tweak MAX
3385 when fmt->pnan < fmt->p.
3387 2004-03-04 Eric Christopher <echristo@redhat.com>
3389 * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Fix to check
3390 only range of valid arg registers and fixed_regs.
3392 2004-03-04 Alan Modra <amodra@bigpond.net.au>
3395 * config/rs6000/rs6000.md (abstf2, abstf2+1): Delete define_insn.
3396 (abstf2, abstf2_internal): New define_expand.
3398 2004-03-04 Eric Botcazou <ebotcazou@libertysurf.fr>
3400 PR optimization/14235
3401 * expr.c (convert_move): Copy the source to a new pseudo
3402 when converting from a sub-word source to a larger-than-word
3403 register which conflicts with the source.
3405 2004-03-03 Zack Weinberg <zack@codesourcery.com>
3408 * c-decl.c (diagnose_mismatched_decls): Issue an error for two
3409 parameters with the same name, unless one is a forward decl.
3410 Do not issue a redundant-redeclaration warning for forward
3411 decls of parameters.
3413 2004-03-04 David Edelsohn <edelsohn@gnu.org>
3415 * doc/install.texi (*-ibm-aix*): Document use of Bash to speed up
3418 2004-03-03 Ian Lance Taylor <ian@wasabisystems.com>
3420 * ggc-zone.c (ggc_pch_write_object): Don't align file pointer.
3422 2004-03-04 Alan Modra <amodra@bigpond.net.au>
3424 * target-def.h (TARGET_OPTF): Delete.
3425 * c-opts.c (TARGET_OPTF): Define.
3427 2004-03-04 Jan Hubicka <jh@suse.cz>
3429 * cselib.c (cselib_finish): Fix another miss-application of my previous
3432 2004-03-03 Mike Stump <mrs@apple.com>
3434 Add framework support for darwin.
3436 * c-incpath.c: Include target.h and machmode.h.
3437 (add_path): Use a consistent style for cpp_dir. Initialize
3439 (add_cpp_dir_path): New.
3440 (register_include_chains): Add use of extra_includes callback.
3441 (hook_void_int): Add.
3442 (target_c_incpath): Add.
3443 * c-incpath.h (add_cpp_dir_path): New.
3444 (target_c_incpath_s): Add.
3445 (target_c_incpath): Add.
3446 (C_INCPATH_INIT): Add.
3447 * c-opts.c (c_common_missing_argument,
3448 c_common_handle_option): Add -F argument processing.
3449 * c.opt: Add -F argument processing.
3450 * gcc.c (trad_capable_cpp): Add -F argument processing.
3451 * cppfiles.c (find_file_in_dir): Update to use construct
3453 (search_path_exhausted, cpp_get_path, cpp_get_buffer,
3455 (_cpp_find_file): Use search_path_exhausted.
3456 (make_cpp_dir): Initialize construct to 0.
3457 * cpplib.h (missing_header_cb
3458 cpp_get_path, cpp_get_buffer, cpp_get_file, cpp_get_prev): New.
3459 (cpp_callbacks): Add missing_header
3460 (cpp_dir): Add construct.
3461 * target-def.h: (TARGET_OPTF): New.
3462 * hooks.c (hook_void_int, hook_void_charptr): Add.
3463 * hooks.h (hook_void_int, hook_void_charptr): Add.
3464 * Makefile.in (c-incpath.o) : Add $(TARGET_H) and
3465 $(MACHMODE_H) dependencies.
3466 * doc/invoke.texi (Darwin Options): Document -F.
3467 * doc/tm.texi (TARGET_EXTRA_INCLUDES): Add.
3469 * fix-header.c (target_c_incpath): Add.
3471 * config/darwin-c.c: Add c-incpath.h include.
3472 (using_frameworks, find_subframework_file,
3473 find_subframework_header, add_system_framework_path,
3474 frameworks_in_use, num_frameworks, max_frameworks,
3475 add_framework, find_framework, struct framework_header,
3476 framework_header_dirs, framework_construct_pathname,
3477 find_subframework_file, add_system_framework_path,
3478 add_framework_path, framework_defaults,
3479 darwin_register_frameworks, find_subframework_header): Add.
3480 * config/darwin.h (TARGET_EXTRA_INCLUDES, TARGET_OPTF): New.
3481 (TARGET_OPTION_TRANSLATE_TABLE): Add -framework support.
3482 (CPP_SPEC): Add __APPLE_CC__ support.
3483 * t-darwin (darwin-c.o): Add c-incpath.h dependency.
3485 2004-03-04 Jan Hubicka <jh@suse.cz>
3487 * cselib.c (cselib_finish): Fix miss-application of my previous
3490 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3492 * hooks.c (hook_tree_tree_identity): New.
3493 * hooks.h: Add a prototype for hook_tree_tree_identity.
3494 * stmt.c (expand_asm_operands): Use targetm.md_asm_clobbers
3495 instead of MD_ASM_CLOBBERS.
3496 * system.h (MD_ASM_CLOBBERS): Poison.
3497 * target-def.h (TARGET_MD_ASM_CLOBBERS): New.
3498 (TARGET_INITIALIZER): Add TARGET_MD_ASM_CLOBBERS.
3499 * target.h (gcc_target): Add md_asm_clobbers.
3500 * config/i386/i386.c (TARGET_MD_ASM_CLOBBERS): New.
3501 (ix86_md_asm_clobbers): New.
3502 * config/i386/i386.h (MD_ASM_CLOBBERS): Remove.
3503 * doc/tm.texi (MD_ASM_CLOBBERS): Change to
3504 TARGET_MD_ASM_CLOBBERS.
3506 2004-03-03 Stuart Hastings <stuart@apple.com>
3508 * gcc/config.gcc: Arrange for Darwin/x86 to build libgcc_eh.a.
3510 2004-03-03 Eric Botcazou <ebotcazou@libertysurf.fr>
3512 * config/sparc/sparc.c (noov_compare64_op): Fix typo.
3514 * config/sparc/sparc.h (ASM_FLOAT): Delete.
3515 (ASM_DOUBLE): Likewise.
3516 (ASM_LONGDOUBLE): Likewise.
3517 * config/sparc/pbd.h (ASM_INT_OP): Delete.
3519 2003-03-03 Richard Henderson <rth@redhat.com>
3522 * cselib.c (cselib_record_sets): Don't record multiple sets in
3525 2004-03-03 Mostafa Hagog <mustafa@il.ibm.com>
3527 * common.opt: Add description of the new -fgcse-after-reload flag.
3529 * flags.h (flag_gcse_after_reload): Declaration of global variable.
3531 * gcse.c (reg_used_on_edge ,reg_set_between_after_reload_p,
3532 reg_used_between_after_reload_p, rtx get_avail_load_store_reg,
3533 is_jump_table_basic_block, bb_has_well_behaved_predecessors,
3534 get_bb_avail_insn, hash_scan_set_after_reload,
3535 compute_hash_table_after_reload, eliminate_partially_redundant_loads,
3536 gcse_after_reload, get_bb_avail_insn): New functions to implement
3538 (gcse_after_reload_main): New function, the main entry point to
3541 * rtl.h (gcse_after_reload_main): Declaration of the new function.
3543 * opts.c (common_handle_option): Handle the -fgcse-after-reload flag.
3545 * toplev.c (flag_gcse_after_reload): Initialization.
3547 * passes.c (rest_of_handl_gcse2): Call gcse_after_reload_main.
3549 * params.def (PARAM_GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3550 PARAM_GCSE_AFTER_RELOAD_CRITICAL_FRACTION): New parameters for tuning
3551 the gcse after reload optimization.
3553 * params.h (GCSE_AFTER_RELOAD_PARTIAL_FRACTION,
3554 GCSE_AFTER_RELOAD_CRITICAL_FRACTION): Two macros to access the tuning
3557 * doc/invoke.texi: Documentation for the new flag gcse-after-reload.
3559 2004-03-03 Nicolas Pitre <nico@cam.org>
3561 * config/arm/ieee754-df.S (muldf3, divdf3): Fix denormalization of
3562 small negative values.
3564 2004-03-03 Jan Hubicka <jh@suse.cz>
3566 * cselib.c (hash_table): Remove GTY marker.
3567 (reg_values): Turn into array.
3568 (used_regs): Likewise.
3569 (n_used_regs): New static variable.
3570 (reg_values_old): Kill.
3571 (clear_table): Update uses of arrays.
3572 (cselib_lookup): Likewise.
3573 (cselib_record_set): Likewise.
3574 (cselib_init): Likewise.
3575 (cselib_finish): Likewise.
3576 (cselib_udpate_varray_sizes): Kill.
3577 * cselib.h (cselib_update_varray_sizes): Kill.
3579 2004-03-03 Paul Brook <paul@codesourcery.com>
3581 * flow.c (ior_reg_cond, and_reg_cond): Remove stray ")".
3583 2004-03-03 Jan Hubicka <jh@suse.cz>
3585 * ggc-common.c (ggc_alloc_cleared_stat, ggc_realloc_stat):
3586 Rename from ...; make statistics transparent.
3587 (ggc_alloc_cleared, ggc_realloc_stat): ... these.
3588 (loc_descriptor): New structure.
3589 (hash_descriptor, eq_descriptor, loc_descriptor, cmp_statistics,
3591 New static function.
3592 (ggc_record_overhead, dump_statistics): New global function.
3593 * ggc-none.c (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3594 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Rename
3595 from ...; accept locations
3596 (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3597 ggc_realloc, ggc_alloc_typed): ... this one.
3598 from ...; accept locations
3599 * ggc-page.c (ggc_alloc_typed_stat, ggc_alloc_zone_stat,
3600 ggc_alloc_stat): Rename from ... ; pass locations
3601 * ggc-page.c (ggc_alloc_typed, ggc_alloc_zone, ggc_alloc):
3603 (ggc_alloc_stat): Record overehead.
3604 * ggc.h (ggc_alloc_types, ggc_alloc, ggc_alloc_zone, ggc_alloc_cleared,
3605 ggc_realloc, ggc_alloc_typed): Turn to macros
3606 (ggc_alloc_types_stat, ggc_alloc_stat, ggc_alloc_zone_stat,
3607 ggc_alloc_cleared_stat, ggc_realloc_stat, ggc_alloc_typed_stat): Declare.
3608 (dump_ggc_loc_satistics, ggc_record_overehead): Declare.
3609 * langhooks.h (lhd_make_node): Declare.
3610 (LANG_HOOKS_MAKE_TYPE): Default to new function,
3611 * langhooks.c (lhd_make_node): New.
3612 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Rename from ... ; pass
3614 (rtx_alloc, swallow_copy_rtx): ... this one.
3615 * rtl.h (rtx_alloc, swallow_copy_rtx): Turn to macros.
3616 * rtl.c (rtx_alloc_stat, swallow_copy_rtx_stat): Declare.
3617 * toplpev.c (finalize): Dump stats.
3618 * tree.c (make_node_stat, copy_node_stat, make_tree_vec_stat,
3619 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3620 Rename from ... ; pass locators.
3621 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3622 build?, build_decl): Declare.
3623 * tree.h (make_node_stat, copy_node_stat, make_tree_vec_stat,
3624 build_tree_list_stat, tree_cons_stat, build?_stat, build_decl_stat):
3626 (make_node, copy_node, make_tree_vec, build_tree_list, tree_cons,
3627 build?, build_decl): New macros.
3628 * Makefile.in (RTL_H, TREE_H): Add statistics.h dependency.
3629 * statistics.h: New file.
3631 2004-03-03 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3632 Richard Sandiford <rsandifo@redhat.com>
3634 * config/mips/mips.h (MASK_FIX_SB1): Bump.
3635 (MASK_FIX_R4400, TARGET_FIX_R4400): New macros.
3636 (TARGET_SWITCHES): Add -mfix-r4400 and -mno-fix-r4400.
3637 * config/mips/mips.c (mips_output_division): Fill the branch delay
3638 slot with a nop if TARGET_FIX_R4000. Extend R4000 workarounds to
3640 (mips_output_division): Adjust accordingly.
3641 (override_options): Make -march=r4400 imply -mfix-r4400 by default.
3642 * doc/invoke.texi: Document -mfix-r4400 and new errata workarounds.
3644 2004-03-03 Paolo Bonzini <bonzini@gnu.org>
3646 * alias.c (rtx_equal_for_memref_p): Use predicates
3647 to test rtx classes and new rtx class codes, possibly
3648 splitting conditionals that tested against '<' and 'o'.
3649 * caller-save.c (save_call_clobbered_regs): Likewise.
3650 * combine.c (contains_muldiv, find_split_point, subst,
3651 combine_simplify_rtx, simplify_if_then_else,
3652 simplify_set, simplify_logical, expand_compound_operation,
3653 make_compound_operation, if_then_else_cond, known_cond,
3654 apply_distributive_law, cached_nonzero_bits,
3655 cached_num_sign_bit_copies, simplify_shift_const,
3656 gen_binary, simplify_comparison, update_table_tick,
3657 record_value_for_reg, get_lsat_value_validate): Likewise.
3658 * cse.c (mention_regs, find_best_addr, find_comparison_args,
3659 fold_rtx, cse_insn, invalidate_memory, cse_basic_block):
3661 * emit-rtl.c (copy_insn_1): Likewise.
3662 * expr.c (force_operand): Likewise.
3663 * final.c (final_scan_insn, get_mem_expr_from_op): Likewise.
3664 * flow.c (notice_stack_pointer_modification_1,
3665 invalidate_mems_from_autoinc, ior_reg_cond, not_reg_cond,
3666 and_reg_cond, elim_reg_cond): Likewise.
3667 * function.c (update_epilogue_consts): Likewise.
3668 * genattrtab.c (attr_rtx_1): Likewise.
3669 * genopinit.c (gen_insn): Likewise.
3670 * integrate.c (subst_constants): Likewise.
3671 * jump.c (reversed_comparison_code_parts,
3672 reversed_comparison_code, delete_related_insns,
3673 rtx_renumbered_equal_p): Likewise.
3674 * local-alloc.c (block_alloc): Likewise.
3675 * loop.c (rtx_equal_for_prefetch_p, maybe_eliminate_biv,
3676 canonicalize_condition): Likewise.
3677 * loop-iv.c (simplify_using_conditions, iv_number_of_iterations):
3679 * optabs.c (add_equal_node, expand_binop): Likewise.
3680 * predict.c (estimate_probability): Likewise.
3681 * ra-debug.c (ra_print_rtx_2op, ra_print_rtx): Likewise.
3682 * recog.c (validate_replace_rtx_1, comparison_operator,
3683 offsettable_address_p, constrain_operands): Likewise.
3684 * reg-stack.c (swap_rtx_condition_1, subst_stack_regs_pat):
3686 * regclass.c (scan_one_insn): Likewise.
3687 * regmove.c (stable_and_no_regs_but_for_p): Likewise.
3688 * regrename.c (kill_autoinc_value): Likewise.
3689 * reload.c (find_reusable_reload, find_reloads,
3690 reg_overlap_mentioned_for_reload_p): Likewise.
3691 * reload1.c (gen_reload, delete_address_reloads_1): Likewise.
3692 * rtl.c (copy_rtx): Likewise.
3693 * rtl.h (CONSTANT_P, INSN_P): Likewise.
3694 * rtlanal.c (commutative_operand_precedence): Likewise.
3695 * sched-deps.c (conditions_mutex_p): Likewise.
3696 * sched-rgn.c (is_cfg_nonregular): Likewise.
3697 * simplify-rtx.c (simplify_gen_binary,
3698 simplify_gen_relational, simplify_replace_rtx,
3699 simplify_unary_operation, simplify_binary_operation,
3700 simplify_ternary_operation, simplify_rtx): Likewise.
3701 * unroll.c (reg_dead_after_loop): Likewise.
3702 * config/alpha/alpha.c (alpha_swapped_comparison_operator,
3703 print_operand): Likewise.
3704 * config/arc/arc.c (proper_comparison_operator): Likewise.
3705 * config/arm/arm.c (arm_arm_address_cost, arm_select_cc_mode):
3707 * config/avr/avr.c (_reg_unused_after): Likewise.
3708 * config/frv/frv.c (frv_ifcvt_modify_tests,
3709 frv_ifcvt_modify_insn, frv_pack_insn): Likewise.
3710 * config/i386/i386.c (ix86_comparison_operator,
3711 ix86_carry_flag_operator, fcmov_comparison_operator,
3712 arith_or_logical_operator, print_operand,
3713 ix86_expand_binary_operator, ix86_binary_operator_ok):
3715 * config/i386/i386.md: Likewise.
3716 * config/ia64/ia64.c (not_postinc_memory_operand,
3717 ia64_print_operand, update_set_flags, errata_emit_nops):
3719 * config/ia64/ia64.h (PREFERRED_RELOAD_CLASS,
3720 CONSTRAINT_OK_FOR_S): Likewise.
3721 * config/ip2k/ip2k.c (mdr_resequence_xy_yx,
3722 mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
3723 ip2k_xexp_not_uses_reg_for_mem, ip2k_xexp_not_uses_reg_p,
3724 ip2k_composite_xexp_not_uses_reg_p, ip2k_unary_operator):
3726 * config/iq2000/iq2000.c (cmp_op, symbolic_expression_p,
3727 eqne_comparison_operator, signed_comparison_operator):
3729 * config/mips/mips.c (cmp_op, symbolic_expression_p):
3731 * config/mmix/mmix (mmix_foldable_comparison_operator,
3732 mmix_comparison_operator): Likewise.
3733 * config/pa/pa.c (hppa_legitimize_address): Likewise.
3734 * config/rs6000/rs6000.c (stmw_operation,
3735 branch_comparison_operator, trap_comparison_operator,
3737 * config/rs6000/rs6000.h (SELECT_CC_MODE): Likewise.
3738 * config/s390/s390.c (s390_alc_comparison,
3739 s390_slb_comparison):L Likewise.
3740 * config/sh/sh.c (gen_block_redirect, reg_unused_after):
3742 * config/sparc/sparc.c (eq_or_neq, normal_comp_operator,
3743 noov_compare_op, noov_compare64_op, v9_regcmp_op,
3744 emit_hard_tfmode_operation, reg_unused_after)
3745 * doc/md.texi, doc/rtl.texi: Likewise.
3747 * ra-debug.c: Add 2004 to list of copyright years.
3748 * unroll.c: Likewise.
3750 * combine.c (simplify_logical): Remove dummy test,
3751 (apply_distributive_law): Fix typo in comment.
3752 GET_CODE (x) == AND so x is a commutative binary op.
3753 * jump.c (delete_related_insns): simplify loop
3754 condition, move testing of RTX codes inside the loop.
3755 (rtx_renumbered_equal_p): do not use RTX_CODE.
3756 * rtl.c (rtx_class): Declare as enum rtx_class.
3757 * rtl.def (EQ, NE, UNEQ, LTGT, UNORDERED, ORDERED):
3758 Move to RTX_COMM_COMPARE class.
3759 (HIGH, SYMBOL_REF, LABEL_REF, CONST, CONST_INT, CONST_DOUBLE):
3760 Move to RTX_CONST_OBJ class.
3761 * rtl.h (enum rtx_class): New declaration,
3762 (RTX_OBJ_MASK, RTX_OBJ_RESULT, RTX_COMPARE_MASK,
3763 RTX_COMPARE_RESULT, RTX_ARITHMETIC_MASK, RTX_ARITHMETIC_RESULT,
3764 RTX_BINARY_MASK, RTX_BINARY_RESULT, RTX_COMMUTATIVE_MASK,
3765 RTX_COMMUTATIVE_RESULT, RTX_NON_COMMUTATIVE_RESULT,
3766 RTX_EXPR_FIRST, RTX_EXPR_LAST, UNARY_P, BINARY_P,
3767 ARITHMETIC_P, COMMUTATIVE_ARITHMETIC_P, COMPARISON_P,
3768 SWAPPABLE_OPERANDS_P, NON_COMMUTATIVE_P, COMMUTATIVE_P,
3769 OBJECT_P): New macros.
3770 * config/sparc/sparc.c (noov_compare_op): Remove register
3773 2004-03-03 Kazu Hirata <kazu@cs.umass.edu>
3775 * target.h: Remove texi jargons in comments.
3777 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3779 * config/h8300/lib1funcs.asm (___fixunssfsi): Change the
3783 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
3784 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
3786 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
3787 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
3789 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3791 * doc/md.texi (cbranchmode4): New.
3793 2004-03-02 Eric Christopher <echristo@redhat.com>
3795 * config/mips/mips16.S: Change fixsfsi and fixdfsi to
3797 * config/mips/mips.c (mips_init_libfuncs): Change accordingly.
3798 * config/mips/t-elf (LIB1ASMFUNCS): Ditto.
3799 * config/mips/t-isa3264 (LIB1ASMFUNCS): Ditto.
3800 * config/mips/t-r3900 (LIB1ASMFUNCS): Ditto.
3802 2004-03-02 Richard Henderson <rth@redhat.com>
3805 * coverage.c (coverage_counter_ref): Set MEM_NOTRAP_P.
3806 * optabs.c (prepare_cmp_insn): Force trapping memories to registers
3807 before the compare, if flag_non_call_exceptions.
3809 2004-03-02 Richard Henderson <rth@redhat.com>
3812 * stmt.c (expand_computed_goto): Do do_pending_stack_adjust before
3813 emitting the label, not after.
3815 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3817 * config/m68hc11/m68hc11.c (m68hc11_addr_mode): New variable.
3818 (m68hc11_mov_addr_mode): Likewise.
3819 (m68hc11_override_options): Initialize them based on target.
3820 (register_indirect_p): Allow a MEM for indirect addressing modes and
3821 use flags to control what is allowed.
3822 (m68hc11_small_indexed_indirect_p): Use m68hc11_mov_addr_mode for
3823 supported addressing modes.
3824 (m68hc11_register_indirect_p): Use m68hc11_addr_mode.
3825 (go_if_legitimate_address_internal): Likewise.
3826 (m68hc11_indirect_p): Likewise and check the mode.
3827 (print_operand): Allow a (MEM (MEM)) and generate indirect addressing.
3829 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3831 * builtins.c (BUILTIN_SETJMP_FRAME_VALUE): Remove.
3832 (expand_builtin_setjmp_setup): Use
3833 targetm.builtin_setjmp_frame_value instead of
3834 BUILTIN_SETJMP_FRAME_VALUE.
3835 * system.h (BUILTIN_SETJMP_FRAME_VALUE): Poison.
3836 * target-def.h (TARGET_BUILTIN_SETJMP_FRAME_VALUE): New.
3837 (TARGET_INITIALIZER): Add TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3838 * target.h (gcc_target): Add builtin_setjmp_frame_value.
3839 * targhooks.c (default_builtin_setjmp_frame_value): New.
3840 * targhooks.h: Add a prototype for
3841 default_builtin_setjmp_frame_value.
3842 * doc/tm.texi (BUILTIN_SETJMP_FRAME_VALUE): Change to
3843 TARGET_BUILTIN_SETJMP_FRAME_VALUE.
3845 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3847 * config/m68hc11/m68hc11.md (move peephole2): New peepholes to optimize
3849 (add peepholes): New peepholes to optimize sequences adding small
3851 (bset peepholes): New peepholes to transform an OR in a bset form
3852 (bclr peepholes): Likewise for bclr form.
3853 (cmp peepholes): New peepholes to avoid register copies when comparing.
3855 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3857 * config/m68hc11/m68hc11.md ("*pushdi_internal"): New insn and split
3858 to separate push from moves.
3859 ("*pushdf_internal"): Likewise.
3860 ("*pushsf_internal"): Likewise.
3861 ("*pushsi_internal"): Likewise.
3862 ("movdi_internal"): Use define_insn_and_split; non push operand.
3863 ("movdf_internal"): Likewise.
3864 ("movsf_internal"): Likewise.
3865 ("movsi_internal"): Likewise.
3866 ("*movhi_68hc12", "*addhi3_68hc12"): Fix and tune constraints
3867 ("*addhi3", "*subhi3", "*andhi3_mem", "*iorhi3_mem"): Likewise.
3868 ("*ashlsi3_const1", "*lshrsi3_const1"): Likewise.
3870 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3872 * config/m68hc11/m68hc11.md ("tstqi_z_used"): Use define_insn_and_split.
3873 ("cmphi_z_used", "cmpqi_z_used"): Likewise.
3874 ("movstrictsi", "movstricthi", "movstrictqi"): Likewise.
3875 ("anddi3", "andsi3", "iordi3", "iorsi3"): Likewise.
3876 ("xordi3", "xorsi3", "*logicalsi3_zexthi"): Likewise.
3877 ("*logicalsi3_zextqi", "*logicalhi3_zexthi_ashift8"): Likewise.
3878 ("logicalhi3_zexthi", "*logicalsi3_silshr16"): Likewise.
3879 ("*logicalsi3_silshl16", "*logicalsi3_silshl16_zext"): Likewise.
3880 ("*ashldi3_const32", "*ashldi3_const1", "addsi_silshr16"): Likewise.
3881 ("addsi_andshr16", "*ashlsi3_const16_zexthi"): Likewise.
3882 ("*lshrdi3_const32", "*lshrdi_const1"): Likewise.
3884 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3886 * config/m68hc11/m68hc11.md (SOFT_TMP_REGNUM): Define.
3887 (SOFT_XY_REGNUM): Define.
3888 (cmp split): Use the above instead of hard coded numbers.
3889 (8-bit op split): No need to check the mode; allow Q_REG.
3890 (ashift split): Adjust the first operand if it uses the SP and we
3891 are pushing the shifted value.
3892 (plus shift split): Fix when a source is in register D+X.
3893 ("doloop_end"): Pass dummy arguments to gen_rtx_NE.
3895 2004-03-02 Stephane Carrez <stcarrez@nerim.fr>
3897 * config/m68hc11/m68hc11.c (m68hc11_check_z_replacement): Fix when
3898 comparing with Z register.
3900 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3902 * cfgloop.h (struct loop_desc): Removed.
3903 (struct loop): Fields simple, desc and has_desc removed.
3904 (simple_loop_p, count_loop_iterations): Declaration removed.
3905 * cfgloopanal.c (struct unmark_altered_insn_data): Removed.
3906 (unmark_altered, blocks_invariant_registers, unmark_altered_insn
3907 blocks_single_set_registers, invariant_rtx_wrto_regs_p_helper,
3908 invariant_rtx_wrto_regs_p, test_for_iteration, constant_iterations,
3909 simple_loop_exit_p, variable_initial_value, variable_initial_values,
3910 simple_condition_p, simple_increment, count_strange_loop_iterations,
3911 inverse, fits_in_mode_p, simple_loop_p, count_loop_iterations):
3913 * loop-iv.c (check_simple_exit, find_simple_exit): Update comments.
3915 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3917 * genattrtab.c: Don't handle MATCH_INSN.
3918 * genrecog.c: Likewise.
3919 * gensupport.c: Likewise.
3920 * rtl.def (match_insn): Remove.
3921 * doc/md.texi (match_insn, match_insn2): Remove.
3923 2004-03-02 Mark Mitchell <mark@codesourcery.com>
3925 * doc/c-tree.texi (DECL_ASSEMBLER_NAME): Mention that using this
3926 macro results in memory allocation.
3928 2004-03-02 David O'Brien <obrien@FreeBSD.org>
3930 * config/freebsd-spec.h (FBSD_DYNAMIC_LINKER): Add.
3931 * config/alpha/freebsd.h (SUBTARGET_EXTRA_SPECS): Define
3932 %(fbsd_dynamic_linker),
3933 (LINK_SPEC): Use %(fbsd_dynamic_linker), and sync style with
3934 config/i386/freebsd.h
3935 * config/arm/freebsd.h: Ditto.
3936 * config/i386/freebsd.h: Ditto.
3937 * config/i386/freebsd64.h: Ditto.
3938 * config/ia64/freebsd.h: Ditto.
3939 * config/rs6000/sysv4.h: Ditto.
3940 * config/sparc/freebsd.h: Ditto.
3942 2004-03-02 Loren James Rittle <ljrittle@acm.org>
3944 * gcc/doc/install.texi (*-*-freebsd*): Update target information.
3946 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3948 * rtl.def (define_combine): Remove.
3950 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3952 * config/h8300/h8300.md: Tweak formatting.
3954 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3956 * config/h8300/h8300.md (*cmphi_h8300): Rename to
3958 (*cmphi_h8300hs): Rename to *cmphi_h8300hs_znvc.
3960 2004-03-01 Mark Mitchell <mark@codesourcery.com>
3963 * gcc.c (process_command): Remove const-qualification from argv.
3966 2004-03-02 Kazu Hirata <kazu@cs.umass.edu>
3968 * config/h8300/h8300.md (pushqi1_h8300hs): Rename to
3969 pushqi1_h8300hs_advanced. Adjust its caller.
3970 (pushhi1_h8300hs): Rename to pushhi1_h8300hs_advanced.
3973 2004-03-02 Nicolas Roche <roche@act-europe.fr>
3975 * Makefile.in (install-libgcc, install-multilib): Pass
3976 mkinstalldirs var to libgcc.mk.
3978 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3980 * system.h (DBX_OUTPUT_STANDARD_TYPES): Poison.
3981 * doc/tm.texi (DBX_OUTPUT_STANDARD_TYPES): Remove.
3983 2004-03-01 Kazu Hirata <kazu@cs.umass.edu>
3985 * config/h8300/h8300.c (gtle_operator): Accept GT and LE.
3986 * config/h8300/h8300.md: Split several peephole2's, each into
3989 2004-03-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3991 * dominance.c (recount_dominator): Handle postdominators.
3993 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
3995 * config/mips/mips-protos.h (enum mips_symbol_type): Move from mips.h.
3996 (NUM_SYMBOL_TYPES): Likewise.
3997 (SYMBOL_64_HIGH, SYMBOL_64_MID, SYMBOL_64_LOW): New symbol types.
3998 (mips_unspec_address): Declare.
3999 (mips_gotoff_page, mips_gotoff_global): Delete.
4000 * config/mips/mips.h (PREDICATE_CODES): Add general_symbolic_operand.
4001 * config/mips/mips.c (enum mips_symbol_type, NUM_SYMBOL_TYPES): Delete.
4002 (mips_symbolic_constant_p, mips_symbolic_address_p)
4003 (mips_symbol_insns): Handle new symbol types.
4004 (general_symbolic_operand): New predicate.
4005 (mips_unspec_address): Make extern.
4006 (mips_gotoff_page, mips_gotoff_global): Delete.
4007 (override_options): Allow -mabi=64 -mno-abicalls -mexplicit-relocs.
4008 Handle new symbol types.
4009 * config/mips/mips.md (*lea_high64, *lea64): New patterns.
4010 (*xgot_hi[sd]i, *xgot_lo[sd]i, *got_disp[sd]i, *got_disp[sd]i): Call
4011 mips_unspec_address directly.
4012 * doc/invoke.texi: Remove the -mabi=64 -mno-abicalls exception from
4013 the documentation of -mexplicit-relocs.
4015 2004-03-01 Jeff Law <law@redhat.com>
4017 * fold-const.c (fold): An equality comparison of a non-weak object
4018 against zero has a known result. Similarly an equality comparison
4019 of the address of two non-weak, unaliased symbols has a known result.
4021 * ggc-page.c (struct page_entry): New field PREV.
4022 (ggc_alloc): Update PREV field appropriately.
4023 (sweep_pages): Likewise.
4024 (ggc_free): Likewise. Use PREV field rather than loop to
4025 improve ggc_free performance.
4027 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
4029 * config/mips/mips.c (mips_output_division): Use the division
4030 instruction to fill the delay slot of a zero check.
4031 (mips_idiv_insns): Adjust accordingly.
4033 2004-03-01 Nathanael Nerode <neroden@gcc.gnu.org>
4035 * config.gcc: Create a default tmake_file for linux, and use
4036 it in all but two linux clauses. Comment those two.
4038 2004-03-01 Paolo Bonzini <bonzini@gnu.org>
4040 * combine.c (try_combine): Do not refer to is_replaced.
4041 (gen_lowpart_for_combine): Perverse subregs now have a
4042 more politically correct name.
4043 * cse.c (cse_insn): Likewise.
4044 * jump.c: Fix bogus reference to delete_insn.
4046 2004-02-29 Mark Mitchell <mark@codesourcery.com>
4049 * dwarf2out.c (gen_enumeration_type_die): Output all enumeration
4050 constants as signed values.
4053 * c-tree.h (readonly_warning): Rename to ...
4054 (readonly_error): ... this.
4055 * c-typeck.c (build_unary_op): Adjust accordingly.
4056 (readonly_warning): Rename to ...
4057 (readonly_error): ... this and issue errors, not warnings.
4058 (build_modify_expr): Call readonly_error, not readonly_warning.
4059 (c_expand_asm_operands): Likewise.
4060 * tree-inline.c (optimize_inline_calls): Do not inline functions
4061 after errors have occurred.
4063 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
4065 * configure.ac: Rearrange some threading code for clarity;
4066 add section comment.
4067 * configure: Regenerate.
4069 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4071 * passes.c, config/frv/frv.c, config/sh/sh.c: Fix comment
4073 * doc/cppopts.texi: Fix a typo.
4075 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4077 * config/i386/i386.md: Fix formatting.
4079 2004-02-29 Nathanael Nerode <neroden@gcc.gnu.org>
4081 * configure.ac: Add some comments delineating sections of code.
4083 * doc/install.texi: Note that libada uses autoconf 2.57 also.
4085 * doc/install.texi: Fix idiot typo in previous commit.
4087 * doc/install.texi: Update for conversion of intl to autoconf 2.57.
4089 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4091 * config/h8300/h8300.md: Add comments about peephole2's.
4093 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4095 * config/h8300/h8300.md: Tweak operand numbers of some
4098 2004-02-29 Kazu Hirata <kazu@cs.umass.edu>
4100 * config/h8300/h8300.md: Tweak comments about peephole2's.
4102 2004-02-29 Waldek Hebisch <hebisch@math.uni.wroc.pl>
4105 * function.c (uninitialized_vars_warning): Use DECL_RTL_SET_P
4106 instead of testing whether DECL_RTL is not NULL.
4108 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4110 * config/sh/sh.c: Fix formatting.
4112 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4114 * config/sh/sh.c: Convert to ISO-C.
4116 2004-02-28 Andrew Pinski <pinskia@physics.uc.edu>
4118 * c-typeck.c (tagged_types_tu_compatible_p): Fix pasto in
4121 * config/darwin.h (machopic_finish): Output stub even if the
4122 symbol is already defined.
4124 2004-02-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4126 * pa64-hpux.h (LIB_SPEC): Fix linking under HP-UX 11.00 with -p and -pg.
4128 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4130 * genattr.c (main): Don't define
4131 TRADITIONAL_PIPELINE_INTERFACE or DFA_PIPELINE_INTERFACE.
4132 * system.h (TRADITIONAL_PIPELINE_INTERFACE): Poison.
4133 (DFA_PIPELINE_INTERFACE): Likewise.
4134 * doc/tm.texi (TRADITIONAL_PIPELINE_INTERFACE): Remove.
4135 (DFA_PIPELINE_INTERFACE): Likewise.
4137 2004-02-28 Richard Sandiford <rsandifo@redhat.com>
4139 * config/mips/mips.md (tstsi, tstdi): Delete.
4141 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4143 * config/mips/mips.c (override_options): Remove an obsolete
4144 duplicate definition of the "e" constraint.
4145 * config/mips/mips.h: Update a comment accordingly.
4147 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4149 * config/mips/mips.md: Complete the unfinished R4000
4150 multiply/shift errata workaround. Improve documentation.
4151 (hazard): Use TARGET_FIX_R4000 to decide whether an "imul" instruction
4153 (mulsi3, mulsi3_internal, mulsi3_r4000): Use TARGET_FIX_R4000.
4154 (muldi3, muldi3_internal): Likewise.
4155 (muldi3_internal2): Remove, replacing with...
4156 (muldi3_mult3, muldi3_r4000): ...these new patterns.
4157 (mulsidi3): Take the errata into account.
4158 (mulsidi3_32bit): Remove, replacing with...
4159 (mulsidi3_32bit_internal, mulsidi3_32bit_r4000): ...these new patterns.
4160 (mulsidi3_64bit, mulsidi3_64bit_parts): Disable if TARGET_FIX_R4000.
4161 (umulsidi3): Take the errata into account.
4162 (umulsidi3_32bit): Remove, replacing with..
4163 (umulsidi3_32bit_internal, umulsidi3_32bit_r4000): ...these patterns.
4164 (umulsi3_highpart, umulsi3_highpart_internal): Disable if
4166 (smulsi3_highpart, smulsi3_highpart_internal): Likewise.
4167 (smuldi3_highpart, umuldi3_highpart): Likewise.
4168 * doc/invoke.texi: Document the errata workaround.
4170 2004-02-28 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
4172 * config/mips/mips-protos.h (mips_idiv_insns): Declare.
4173 * config/mips/mips.h (MASK_FIX_SB1): Bump.
4174 (MASK_FIX_R4000, TARGET_FIX_R4000): New macros.
4175 (TARGET_SWITCHES): Add -mfix-r4000 and -mno-fix-r4000.
4176 * config/mips/mips.c (mips_idiv_insns): New function.
4177 (override_options): Make -march=r4000 imply -mfix-r4000 by default.
4178 (mips_output_division): Add a workaround for the R4000 divide/shift
4180 * config/mips/mips.md (length): Use mips_idiv_insns() to calculate
4181 the length of an "idiv" instruction.
4182 * doc/invoke.texi: Document the new switches.
4184 2004-02-28 Kazu Hirata <kazu@cs.umass.edu>
4186 * doc/tm.texi (IS_COSTLY_DEPENDENCE): Change to
4187 TARGET_SCHED_IS_COSTLY_DEPENDENCE.
4189 2004-02-28 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
4191 PR optimization/14229
4192 * cfgrtl.c (rtl_tidy_fallthru_edge): Do not fail for !onlyjump jump.
4194 2004-02-28 Eric Botcazou <ebotcazou@act-europe.fr>
4196 * fold-const.c (fold): Strip NOPs that change the signedness
4197 for RSHIFT too. Expand comment.
4199 2004-02-27 Ian Lance Taylor <ian@wasabisystems.com>
4201 PR optimization/7871
4202 * flow.c (mark_set_1): Don't add LOG_LINKS for global registers
4203 from or to call insns.
4205 2004-02-27 Eric Botcazou <ebotcazou@libertysurf.fr>
4207 PR optimization/7871
4208 * flow.c (propagate_one_insn): Interpret calls as setting global
4209 registers, not merely clobbering them.
4211 2004-02-27 Dale Johannesen <dalej@apple.com>
4213 * config/darwin.c (machopic_output_possible_stub_label): Remove.
4214 config/darwin-protos.h: Ditto.
4215 config/darwin.h: Remove call to it.
4216 * combine.c (distribute_notes): Do not place a REG_DEAD note
4217 when value is both set and used.
4219 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4221 * config/h8300/fixunssfsi.c (__fixunssfsi): Enable on H8/300
4223 * config/h8300/lib1funcs.asm (___fixunssfsi): Remove.
4224 * config/h8300/t-h8300 (LIB1ASMFUNCS): Remove _fixunssfsi_asm.
4226 2004-02-27 Andrew Pinski <apinski@apple.com>
4228 * c-typeck.c (tagged_types_tu_compatible_p) <ENUMERAL_TYPE>:
4229 Speedup common case of the type values being in the same order.
4231 2004-02-27 Steve Ellcey <sje@cup.hp.com>
4233 * config/ia64/ia64.h (no-inline-float-divide): New option.
4234 * config/ia64/ia64.h (no-inline-int-divide): New option.
4235 * config/ia64/ia64.h (no-inline-sqrt): New option.
4236 (TARGET_DEFAULT): Add MASK_INLINE_FLOAT_DIV_THR to define.
4237 * config/ia64/hpux.h (TARGET_DEFAULT): Ditto.
4238 * config/ia64/ia64.c (ia64_override_options): Modify error
4239 checking for inlined division/sqrt.
4241 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4243 * bb-reorder.c, cfgbuild.c, diagnostic.c, explow.c, profile.c,
4244 ra-build.c, read-rtl.c, tracer.c, unwind-dw2-fde-glibc.c,
4245 value-prof.c, config/darwin-protos.h, config/frv/frv-abi.h,
4246 config/i386/pmmintrin.h, config/pa/pa-hpux.h: Update
4249 2004-02-27 Paul Brook <paul@codesourcery.com>
4251 * function.c (assign_parms): Don't count pretend args for alignment.
4253 2004-02-27 Richard Henderson <rth@redhat.com>
4255 * passes.c: New file.
4256 * Makefile.in (OBJS-common): Add it.
4257 * diagnostic.c (rtl_dump_and_exit): Move decl ...
4258 * flags.h (rtl_dump_and_exit): ... here.
4259 * output.h (size_directive_output, last_assemble_variable_decl):
4261 * rtl.h (reg_alloc): Move from toplev.c.
4262 * toplev.c (HAVE_conditional_execution, DUMPFILE_FORMAT,
4263 struct dump_file_info, enum dump_file_index, dump_file_tbl,
4264 open_dump_file, close_dump_file, rest_of_decl_compilation,
4265 rest_of_type_compilation, rest_of_handle_final,
4266 rest_of_handle_delay_slots, rest_of_handle_stack_regs,
4267 rest_of_handle_variable_tracking, rest_of_handle_machine_reorg,
4268 rest_of_handle_new_regalloc, rest_of_handle_old_regalloc,
4269 rest_of_handle_regrename, rest_of_handle_reorder_blocks,
4270 rest_of_handle_sched, rest_of_handle_sched2, rest_of_handle_regmove,
4271 rest_of_handle_tracer, rest_of_handle_if_conversion,
4272 rest_of_handle_if_after_combine, rest_of_handle_web,
4273 rest_of_handle_branch_prob,
4274 rest_of_handle_value_profile_transformations, rest_of_handle_cfg,
4275 rest_of_handle_addressof, rest_of_handle_sibling_calls,
4276 rest_of_handle_jump_bypass, rest_of_handle_inlining,
4277 rest_of_handle_null_pointer, rest_of_handle_combine,
4278 rest_of_handle_life, rest_of_handle_cse, rest_of_handle_cse2,
4279 rest_of_handle_gcse, rest_of_handle_loop_optimize,
4280 rest_of_handle_loop2, rest_of_compilation): Move to passes.c.
4281 (decode_d_option): Use enable_rtl_dump_file.
4282 (compile_file, finalize, do_compile): Move profile+combine+graph
4283 cleanup to finish_optimization_passes.
4284 * toplev.h (init_optimization_passes, finish_optimization_passes,
4285 enable_rtl_dump_file): Declare.
4287 2004-02-27 Eric Botcazou <ebotcazou@act-europe.fr>
4288 Roger Sayle <roger@eyesopen.com>
4290 * fold-const.c (fold): Revert 2004-02-25 change. Use the original
4291 operands to build a tree with swapped operands.
4292 * expr.c (expand_expr_real) <MAX_EXPR>: Consistently use the
4293 'unsignedp' predicate to specify the signedness.
4295 2004-02-27 Kazu Hirata <kazu@cs.umass.edu>
4297 * c-decl.c, c-ppoutput.c, combine.c, cppfiles.c, dwarf2out.c,
4298 expr.c, fold-const.c, gcc.c, haifa-sched.c, loop-iv.c,
4299 params.def, read-rtl.c, rtl.c, rtlanal.c, toplev.c: Fix
4300 comment typos and formatting. Follow spelling conventions.
4302 2004-02-26 Aldy Hernandez <aldyh@redhat.com>
4304 * config/rs6000/rs6000.md: Add fixuns_truncsfsi2 and
4307 * config/rs6000/spe.md: Delete spe_efsctuiz.
4308 Add spe_fixuns_truncsfsi2.
4309 Add spe_fix_truncsfsi2.
4311 2004-02-26 Eric Christopher <echristo@redhat.com>
4313 * c-lex.c (c_lex_string_translate): New variable.
4314 (lex_string): Use to determine string translation.
4315 * c-pragma.h: Prototype.
4316 * c-parse.in (start_string_translation): New. Set above.
4317 (stop_string_translation): Ditto.
4318 (attribute, attribute_list, asm_def, asm_stmt,
4319 asm_operand): Use above functions.
4320 * cp/parser.c (cp_parser_declaration): Translate strings
4321 unless token is RID_EXTERN. Set c_lex_string_translate
4323 (cp_parser_asm_definition): Only translate argument strings
4325 (cp_parser_asm_operand_list): Ditto.
4326 (cp_parser_attribute_list): Do not translate attribute strings.
4328 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4330 * stmt.c (expand_start_case_dummy): Remove.
4331 * tree.h: Remove the corresponding prototype.
4333 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4335 * builtins.c (apply_args_register_offset): Remove.
4336 * tree.h: Remove the corresponding prototype.
4338 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4340 * stor-layout.c (is_pending_size): Remove.
4341 * tree.h: Remove the corresponding prototype.
4343 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4345 * recog.c (validate_replace_src): Remove.
4346 * recog.h: Remove the corresponding prototype.
4348 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4350 * calls.c: Don't reference FINAL_REG_PARM_STACK_SPACE or
4351 MAYBE_REG_PARM_STACK_SPACE.
4352 * function.c: Likewise.
4353 * system.h (FINAL_REG_PARM_STACK_SPACE): Poison.
4354 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
4355 * doc/tm.texi (FINAL_REG_PARM_STACK_SPACE): Remove.
4356 (MAYBE_REG_PARM_STACK_SPACE): Likewise.
4358 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4360 * c-decl.c (c_expand_deferred_function): Remove.
4361 * c-tree.h: Remove the corresponding prototype.
4363 2004-02-26 Kazu Hirata <kazu@cs.umass.edu>
4365 * postreload.c (reload_cse_move2add): Generate just a PLUS
4366 instead of an entire SET.
4368 2004-02-26 Jan Hubicka <jh@suse.cz>
4370 * config.gcc: Add support for nocoma/prescott/pentium-m/pentium3m
4372 * i386.c (override_options): Add support for new CPUs.
4373 * i386.h (TARGET_CPU_DEFAULT_NAMES): New names.
4374 (TARGET_CPU_DEFAULT_pentium_m, TARGET_CPU_DEFAULT_pentium4e): New
4376 * invoke.texi: Extend documentation of -mtune/-march for new CPUs.
4378 2004-02-26 Bob Wilson <bob.wilson@acm.org>
4380 * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define __xtensa__.
4382 2004-02-26 Eric Botcazou <ebotcazou@act-europe.fr>
4384 * config/sparc/sparc-protos.h (sparc_emit_floatunsdi): Add 'mode'.
4385 (sparc_emit_fixunsdi): New prototype.
4386 * config/sparc/sparc.c (sparc_emit_floatunsdi): Use 'mode' argument.
4387 (sparc_emit_fixunsdi): New function.
4388 * config/sparc/sparc.md (floatunsdisf2): Use 'general_operand' for
4389 operand 1. Pass SFmode to sparc_emit_floatunsdi.
4390 (floatunsdidf2): Use 'general_operand' for operand 1. Pass DFmode
4391 to sparc_emit_floatunsdi.
4392 (fixuns_truncsfdi2): New expander.
4393 (fixuns_truncdfdi2): Likewise.
4395 2004-02-26 Alan Modra <amodra@bigpond.net.au>
4397 * gcse.c (delete_null_pointer_checks_1): Do not delete CC setter
4400 2004-02-25 Richard Henderson <rth@redhat.com>
4402 * explow.c (force_reg): Call mark_reg_pointer as appropriate.
4403 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't
4404 use (op0-op1) == 0 if op0 is a pointer.
4405 * config/alpha/alpha.md (cmpdi): Use some_operand.
4406 (three comparison combine splits): Remove.
4408 2004-02-25 Richard Henderson <rth@redhat.com>
4411 * c-common.c (handle_alias_attribute): Reject the attribute if
4412 current_function_decl is set.
4414 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
4416 * config.gcc: Add comment describing extra_gcc_objs.
4417 i[34567]86-*-cygwin*): Replace host_extra_gcc_objs with extra_gcc_objs.
4418 * configure.ac (extra_gcc_objs): New substitution variable.
4419 (host_extra_gcc_objs): Don't substitute.
4420 * configure: Regenerate.
4421 * Makefile.in: Use extra_gcc_objs.
4423 2004-02-25 Kelley Cook <kcook@gcc.gnu.org>
4425 * doc/contrib.texi: Add an entry for myself.
4427 2004-02-25 Jan Hubicka <jh@suse.cz>
4429 * basic-block.h (make_eh_edge, break_superblocks): Declare.
4430 * cfgbuild.c (make_eh_edge): Make global.
4431 * cfglayout.c (break_superblocks): Likewise; fix memory leak.
4432 * except.c (build_post_landing_pads, connect_post_landing_pads,
4433 dw2_build_landing_pads, sjlj_emit_function_enter,
4434 sjlj_emit_function_exit, sjlj_emit_dispatch_table,
4435 sjlj_build_landing_pads): Update CFG.
4436 (emit_to_new_bb_before): New function.
4437 (finish_eh_generation): Do not rebuild the CFG.
4439 2004-02-25 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4441 * config.gcc (hppa*-*-*, parisc*-*-*): Add MASK_BIG_SWITCH to all
4442 target_cpu_default defines.
4443 * pa-hpux.h (TARGET_DEFAULT): Add MASK_BIG_SWITCH to define.
4444 * pa.h (TARGET_DEFAULT): Likewise.
4446 2004-02-25 Eric Botcazou <ebotcazou@act-europe.fr>
4448 * fold-const.c (fold): Treat MAX_EXPR and MIN_EXPR like
4449 comparisons with regard to signedness.
4451 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
4453 * arm.c (thumb_legitimize_address): New function.
4454 * arm-protos.h: Prototype it.
4455 * arm.h (THUMB_LEGITIMIZE_ADDRESS): Define.
4456 (LEGITIMIZE_ADDRESS): Use it.
4458 2004-02-25 J"orn Rennecke <joern.rennecke@superh.com>
4460 * reload1.c (reload): Only spill eliminable register with multiple
4461 adjacent elimination alternatives if all alternatives fail.
4463 2004-02-25 Richard Earnshaw <rearnsha@arm.com>
4465 * arm.c (arm_legitimate_index_p): For QImode the range of an offset
4466 is -4095...+4095 inclusive.
4468 2004-02-25 Eric Botcazou <ebotcazou@libertysurf.fr>
4470 * doc/install.texi (sparc-sun-solaris2* specific notes): Document
4471 the bootstrap failure with Sun CC 5.4 and 5.5.
4473 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
4475 * cse.c (cse_change_cc_mode_insns): Stop at any instruction
4476 which modifies NEWREG.
4477 (cse_condition_code_reg): Update the mode of CC_REG in
4478 CC_SRC_INSN on our own.
4480 2004-02-24 Michael Matz <matz@suse.de>
4482 * config/i386/i386.c (ix86_comp_type_attributes): Check for
4485 2004-02-24 Richard Henderson <rth@redhat.com>
4487 * toplev.c (dump_file_tbl): Rename from dump_file.
4488 * bb-reorder.c, bt-load.c, cfgcleanup.c, cfglayout.c, cfgloopanal.c,
4489 cfgloopmanip.c, cfgrtl.c, config/arm/arm.c, config/frv/frv.c,
4490 config/i386/i386.c, config/ia64/ia64.c, config/mips/mips.c,
4491 config/sh/sh.c, cse.c, flow.c, ifcvt.c, loop-iv.c, loop-unroll.c,
4492 loop-unswitch.c, output.h, predict.c, profile.c, ra-build.c,
4493 ra-colorize.c, ra-debug.c, ra-rewrite.c, ra.c, regrename.c, reload1.c,
4494 toplev.c, tracer.c, value-prof.c, var-tracking.c, web.c:
4495 s/rtl_dump_file/dump_file/g.
4497 2004-02-24 Aldy Hernandez <aldyh@redhat.com>
4499 * config/rs6000/spe.md (spe_fix_truncsfsi2): Delete.
4500 (spe_fixuns_truncsfsi2): Delete.
4502 * config/rs6000/rs6000.md (fix_truncsfsi2): Delete.
4503 (fixuns_truncsfsi2): Delete.
4505 2004-02-24 Josef Zlomek <zlomekj@suse.cz>
4508 * rtlanal.c (replace_label): Fix replacing labels in constant pool.
4510 2004-02-24 Geoffrey Keating <geoffk@apple.com>
4512 * config/darwin.h (TARGET_HAS_F_SETLKW): Define.
4514 2004-02-24 Jason Merrill <jason@redhat.com>
4516 * tree.c (check_qualified_type): New fn.
4517 (get_qualified_type): Use it. If type already has the desired
4518 quals, just return it.
4519 * tree.h: Declare it.
4521 2003-02-24 Sanjiv Kumar Gupta <sanjivg@noida.hcltech.com>
4523 * target-def.h (TARGET_SCHED_INIT_GLOBAL,
4524 TARGET_SCHED_FINISH_GLOBAL): New macros.
4526 * target.h (md_init_global, md_finish_global): Function
4527 declarations corresponding to new target macros.
4529 * haifa-sched.c (sched_init, sched_finish): Allow target to
4530 call the new schedular hooks.
4532 * flow.c (recompute_reg_usage): Add PROP_DEATH_NOTES flag in
4533 call to update_life_info.
4535 * config/sh/sh.h (OVERRIDE_OPTIONS): Re-enable
4536 flag_schedule_insns for SH4.
4538 * config/sh/sh.c (sh_md_init_global, sh_md_finish_global,
4539 find_set_regmode_weight, find_insn_regmode_weight,
4540 find_regmode_weight), sh_md_init, sh_dfa_new_cycle,
4541 sh_variable_issue, high_pressure, ready_reorder,
4542 rank_for_reorder, swap_reorder, sh_reorder, sh_reorder2): New
4543 functions used to throttle the insn movement in first
4544 scheduling pass for SH.
4546 * gcc/doc/tm.texi: Document TARGET_SCHED_INIT_GLOBAL and
4547 TARGET_SCHED_FINISH_GLOBAL.
4549 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
4551 Implement FR-V FDPIC ABI support for frv-uclinux and frv-linux.
4552 2004-02-05 Alexandre Oliva <aoliva@redhat.com>
4553 * config/frv/frv.c (frv_emit_movsi): Use GOT relocations for
4554 symbols in sections named by the user.
4555 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
4556 * config/frv/linux.h (TARGET_OS_CPP_BUILTINS): New.
4557 2004-01-27 Alexandre Oliva <aoliva@redhat.com>
4558 * config.gcc (frv-*-*linux*): Handle like *-*-linux*.
4559 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Remove, obviated by
4561 2004-01-20 Alexandre Oliva <aoliva@redhat.com>
4562 * config/frv/frv.md (symGOT2reg_hilo, symGOTOFF2reg_hilo): Add
4563 one more pseudo to further improve code generation.
4564 2004-01-19 Alexandre Oliva <aoliva@redhat.com>
4565 * config/frv/frv.md (movdi_ldd): Introduce explicit indirection
4567 2004-01-16 Alexandre Oliva <aoliva@redhat.com>
4568 * config/frv/frv.c (frv_legitimate_address_p): Added
4569 allow_double_reg_p argument. Adjust all callers. Use it to
4570 decide whether to enable double-register indirect addressing.
4571 (frv_funcdesc_alias_set): Remove.
4572 (frv_expand_fdpic_call): Force non-SYMBOL_REF operand into
4573 register. Emit movdi_ldd.
4574 (ldd_address_operand): New.
4575 * config/frv/frv-protos.h (frv_legitimate_address_p): Adjust.
4576 * config/frv/frv.h (GO_IF_LEGITIMATE_ADDRESS): Likewise.
4577 (PREDICATE_CODES): Add ldd_address_operand.
4578 * config/frv/frv.md (movdi_ldd): New.
4579 (symGOT2reg_hilo, symGOTOFF2reg_hilo): Use separate pseudo for
4580 intermediate computations if possible.
4581 (symGOTOFF2reg_i): Fix harmless typo.
4582 2003-12-18 Alexandre Oliva <aoliva@redhat.com>
4583 * unwind-dw2-fde-glibc.c (_Unwind_IteratePhdrCallback): Cast
4584 relocated p_vaddr to vaddr type.
4585 * config/frv/frv-protos.h (frv_expand_fdpic_call): Return void.
4586 * config/frv/frv.c (frv_get_funcdesc_alias_set): New.
4587 (frv_expand_fdpic_call): Propagate incoming MEM's expr to funcdesc
4588 MEM, or use a funcdesc alias set. Use regular move instead of
4590 (dbl_memory_one_insn_operand): Recognize function descriptors by
4591 type or by alias set, and don't split them.
4592 * config/frv/frv.md (call, call_value): Never use call_internal
4594 (call_internal, call_value_internal): Never match for FDPIC.
4595 (call_fdpicdi, call_fdpicsi, call_value_fdpicdi,
4596 call_value_fdpicsi): Require FDPIC.
4598 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
4599 * config/frv/frv.h (CRT_GET_RFIB_DATA): Define for __FRV_FDPIC__.
4600 * unwind-dw2-fde-glibc.c: Don't include elf-fdpic.h any more.
4601 (_Unwind_IteratePhdrCallback): Adjust type of load_base for FRV
4602 FDPIC. Compute data base address.
4603 * config/frv/linux.h (SUBTARGET_DRIVER_SELF_SPECS): Enable -mfdpic
4604 before the other self-specs are processed.
4605 * config/frv/t-linux (CRTSTUFF_T_CFLAGS, TARGET_LIBGCC2_CFLAGS):
4607 2003-12-15 Alexandre Oliva <aoliva@redhat.com>
4608 * unwind-dw2-fde-glibc.c: Don't include bits/elf-fdpic.h if
4609 inhibit_libc is defined.
4610 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
4611 * unwind-dw2-fde-glibc.c: Include bits/elf-fdpic.h for
4613 (__RELOC_POINTER): Define.
4614 (_Unwind_IteratePhdrCallback): Use it.
4615 * config/frv/frv.h (Twrite): Define.
4616 (TRANSFER_FROM_TRAMPOLINE): Use it.
4617 * config/frv/linux.h (INVOKE__main): Undefine.
4619 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
4620 * doc/invoke.texi (-mlong-calls, -mlinked-fp): Document FRV options.
4621 (-mlibrary-pic): Emphasize that this option generates EABI code.
4624 2003-11-30 Alexandre Oliva <aoliva@redhat.com>
4625 * config/frv/frv.c (int_2word_operand): Reject LABELs, SYMBOL_REFs
4626 and CONSTs in FDPIC mode.
4627 * gcc/config.gcc (with_cpu): Default to fr400 on frv-*-*linux*.
4628 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
4629 * config/frv/frv.c (move_source_operand): Don't accept symbolic
4631 * config/frv/frv.md (*movhi_internal, *movsi_internal): Use an 'n'
4632 rather than 'i' constraint for the 2-instruction alternative.
4633 (*movsi_2word): New, incorporating existing int_2word_operand splitter.
4634 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
4635 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Q): Renamed from
4636 EXTRA_CONSTRAINT_FOR_Y.
4637 (EXTRA_CONSTRAINT): Remove handling of 'Y'.
4638 * config/frv/frv.md (*movsi_internal): Remove 'Q' constraint.
4639 (addsi3): Change 'Y' constraint to 'Q'.
4640 2003-11-27 Richard Sandiford <rsandifo@redhat.com>
4641 * reload.c (CONST_POOL_OK_P): New macro.
4642 (find_reloads): Use it to decide whether a constant can be forced
4644 * config/frv/frv.h (LEGITIMATE_PIC_OPERAND_P): Return true if the
4645 constant satisfies got12_operand.
4646 (frv_cannot_force_const_mem): Always return true for TARGET_FDPIC.
4647 (frv_legitimate_address_p): Check for valid unspec offsets using
4648 got12_operand rather than frv_legitimate_fdpic_operand_p.
4649 (frv_legitimate_fdpic_operand_p): Delete.
4650 (frv_emit_movsi): Abort if we try to use the FDPIC register during
4652 (frv_legitimate_constant_p): Return LEGITIMATE_PIC_OPERAND_P if
4654 * config/frv/frv.md (*movdf_double): Add alternatives for CONST_DOUBLE.
4655 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
4656 * config/frv/frv-protos.h (fdpic_operand, fdpic_got12_operand)
4657 (frv_fdpic_fptr_operand): Don't declare here.
4658 * config/frv/frv.h (EXTRA_CONSTRAINT_FOR_Y): Call got12_operand
4659 rather than fdpic_got12_operand.
4660 (PREDICATE_CODES): Remove symbolic_operand entry. Add entries for
4661 got12_operand and const_unspec_operand.
4662 * config/frv/frv.c (got12_operand): Renamed from fdpic_got12_operand.
4663 (gpr_or_int12_operand, dbl_memory_one_insn_operand): Update calls.
4664 (symbolic_operand): Remove.
4665 (const_unspec_operand): New predicate.
4666 * config/frv/frv.md (*movsi_got): Use got12_operand.
4667 (*movsi_high_got, *movsi_lo_sum_got): Use const_unspec_operand.
4668 2003-11-18 Richard Sandiford <rsandifo@redhat.com>
4669 * config/frv/frv-protos.h (frv_output_addr_const_extra): Remove.
4670 * config/frv/frv.h (OUTPUT_ADDR_CONST_EXTRA): Remove definition.
4671 * config/frv/frv.c (frv_unspec): New structure.
4672 (frv_small_data_reloc_p, frv_const_unspec_p): New functions.
4673 (frv_print_operand_memory_reference): Use frv_const_unspec_p to
4674 validate CONST indices. Use frv_output_const_unspec to print them.
4675 (frv_print_operand): Update call to unspec_got_name. Use
4676 frv_output_const_unspec to print constant unspecs.
4677 (frv_legitimate_fdpic_operand_p): Return true if frv_const_unspec_p.
4678 Reject UNSPECs otherwise.
4679 (unspec_got_name): Take the relocation number as argument, not an
4681 (frv_output_addr_const_extra): Remove, replacing with...
4682 (frv_output_const_unspec): ...this new function.
4683 (frv_find_base_term): Use frv_const_unspec_p & frv_small_data_reloc_p.
4684 (gpr_or_int12_operand): Use fdpic_got12_operand.
4685 (dbl_memory_one_insn_operand): Likewise.
4686 (fdpic_got12_operand): Use frv_const_unspec_p.
4687 (frv_emit_movsi): Use frv_const_unspec_p to check for CONSTs that
4688 are already legitimate. Use frv_small_data_reloc_p when deciding
4689 whether to use HIGH/LO_SUM for R_FRV_GOTOFF12 and R_FRV_GPREL12.
4690 2003-11-18 Alexandre Oliva <aoliva@redhat.com>
4691 * config/frv/t-linux (SHLIB_MAPFILES): Override so as to export...
4692 * config/frv/libgcc-frv.ver: ... frv-specific symbols. New file.
4693 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4694 label, for real this time.
4695 * config/frv/frv.c (frv_local_funcdesc_p): Update to new
4696 representation of visibility.
4697 (fdpic_got12_operand, symbolic_operand): Mark unused arguments as
4699 2003-11-17 Richard Sandiford <rsandifo@redhat.com>
4700 * config/frv/frv.h (MASK_LINKED_FP, TARGET_LINKED_FP): New macros.
4701 (TARGET_SWITCHES): Add -mlinked-fp and -mno-linked-fp.
4702 * config/frv/frv.c (frv_override_options): Set MASK_LINKED_FP unless
4703 it was explicitly disabled.
4704 (frv_stack_info): There is no need to save the link register in every
4705 frame unless TARGET_LINKED_FP is true.
4706 (frv_frame_pointer_required): If !TARGET_LINKED_FP, only require a
4707 frame pointer if the stack pointer might change value.
4708 (frv_return_addr_rtx): Check and process "count" argument.
4709 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
4710 * config/frv/frv-protos.h (frv_legitimize_address): Remove.
4711 (frv_find_base_term): Declare.
4712 * config/frv/frv.h (LEGITIMIZE_ADDRESS): Do nothing.
4713 (FIND_BASE_TERM): Define.
4714 (PREDICATE_CODES): Remove pic_register_operand, pic_symbolic_operand,
4715 small_data_register_operand, small_data_symbolic_operand. Add
4717 * config/frv/frv.c (const_small_data_p, plus_small_data_p): Delete.
4718 (frv_print_operand_memory_reference, output_move_single): Remove
4719 special handling for unlegitimized sdata addresses.
4720 (frv_legitimate_address_p): Don't allow sums of SDA_BASE_REG
4721 and symbolic addresses.
4722 (frv_legitimize_address, frv_legitimize_fdpic_address): Delete.
4723 (frv_find_base_term): New function.
4724 (int_2word_operand): Check specifically for symbolic address constants.
4725 (pic_register_operand, pic_symbolic_operand): Delete.
4726 (small_data_register_operand, small_data_symbolic_operand): Delete.
4727 (dbl_memory_one_insn_operand): Don't call plus_small_data_p.
4728 Allow UNSPEC_GOT constants if !TARGET_FDPIC.
4729 (move_source_operand): Only accept CONSTs if they're a two-insn
4731 (fdpic_got12_operand): Don't require TARGET_FDPIC.
4732 (frv_emit_movsi): Legitimize sdata and -mlibrary-pic addresses
4733 using gen_symGOTOFF2reg*.
4734 (frv_ifcvt_rewrite_mem): Remove (plus gr16 ...) special cases.
4735 (frv_rtx_costs): Give all MEM addresses a cost of 0. Give MEMs
4736 themselves a cost of 3 insns.
4737 * config/mips/mips.md (*movsi_got): Allow for !TARGET_FDPIC too.
4738 Change predicate to symbolic_operand.
4739 (*movsi_high_got, *movsi_lo_sum_got): Likewise.
4740 (*movsi_lda_sdata): Delete.
4741 (*movsi_pic, movsi_high_pic, movsi_lo_sum_pic): Delete.
4742 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
4743 * config.gcc: Add t-slibgcc-elf-ver and support --with-cpu for
4745 * config/frv/frv-abi.h (CREATE_DOUBLE_SHIFT): Use branch to local
4747 * config/frv/frv.h (DRIVER_SELF_SPECS): Add blank before
4748 -multilib-library-pic.
4749 (LINK_SPEC): Add -z text for -mfdpic.
4750 * config/frv/frvbegin.c (__ROFIXUP_LIST__): Don't define on FDPIC.
4751 * config/frv/frvend.c (__ROFIXUP_END__): Likewise.
4752 * config/frv/linux.h (STARTFILE_SPEC, ENDFILE_SPEC, LINK_SPEC):
4754 (OPTION_DEFAULT_SPECS, HAS_INIT_SECTION, INIT_SECTION_ASM_OP,
4755 FINI_SECTION_ASM_OP, CRT_CALL_STATIC_FUNCTION): Define.
4756 * config/frv/t-linux (EXTRA_MULTILIB_PARTS): Use
4757 crtstuff-generated files.
4758 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
4759 * config.gcc: Add frv-*-*linux*.
4760 * config/frv/linux.h, config/frv/t-linux: New.
4761 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
4762 * config/frv/frv.h (LINK_SPEC): Pass -melf32frvfd to the linker
4763 when -mfdpic even if a linker script is explicitly listed.
4764 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
4765 * config/frv/frv.c (frv_override_options): Clear asm_out
4766 unaligned_op for SImode on FDPIC.
4767 (frv_emit_movsi): Use compute_reloc_for_constant to compute the
4768 argument passed to decl_readonly_section.
4769 (frv_assemble_integer): Revert 2003-09-30's change, but make the
4770 whole block run with FDPIC even with -fno-PIC.
4771 2003-10-02 Alexandre Oliva <aoliva@redhat.com>
4772 * config/frv/frv.c (frv_cannot_force_const_mem): Don't force
4773 symbol or label plus offset to memory.
4774 (frv_emit_movsi): Emit GPREL only if -mgprel-ro. Emit 32-bit
4775 GOTOFF and GPREL for LABEL_REF.
4776 * config/frv/frv.h (DRIVER_SELF_SPECS): Add -mgprel-ro with
4777 -mfdpic unless -mno-gprel-ro, -fpic or -fpie.
4778 (MASK_GPREL_RO, TARGET_GPREL_RO): New.
4779 (TARGET_SWITCHES): Added gprel-ro and no-gprel-ro.
4780 * doc/invoke.texi: Document them.
4781 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
4782 * config/frv/frv-protos.h (frv_gen_GPsym2reg): Declare.
4783 (frv_splittable_got_operand): Removed.
4784 * config/frv/frv.c (frv_cannot_force_const_mem): Reject HIGH and
4785 LO_SUM. Add comments.
4786 (frv_override_options): Moved enabling of FDPIC to
4787 DRIVER_SELF_SPECS. Don't enable MASK_DWORD.
4788 (frv_local_funcdesc_p): Remove unnecessary heck for flag_pie.
4789 (frv_legitimize_fdpic_address): Don't duplicate logic in
4791 (frv_gen_GPsym2reg): New.
4792 (unspec_got_name): Added gprel.
4793 (frv_expand_fdpic_call): Add support for inlining PLTs.
4794 (fdpic_fptr_operand): Renamed from frv_fdpic_fptr_operand.
4795 (gpr_or_int12_operand): Added GPREL12.
4796 (pic_symbolic_operand): Match even if !flag_pic for FDPIC.
4797 (small_data_symbolic_operand): Fail if FDPIC.
4798 (fdpic_splittable_got_operand): Removed.
4799 (fdpic_got12_operand): Added GPREL12.
4800 (frv_emit_movsi): Reorganize to avoid duplication. Emit GPREL
4801 when appropriate. Fix sdata GOTOFF.
4802 (frv_legitimate_constant_p): Require legitimate PIC operand for
4803 FDPIC with pic, but only a legitimate fdpic operand for non-pic.
4804 (frv_assemble_integer): Move FDPIC funcdesc handling out of
4806 (frv_asm_out_constructor, frv_asm_out_destructor): Abort if
4807 frv_assemble_integer fails.
4808 * config/frv/frv.h (DRIVER_SELF_SPECS): New.
4809 (SUBTARGET_DRIVER_SELF_SPECS): New.
4810 (ASM_SPEC): Don't pass -mno-fdpic.
4811 (LINK_SPEC): Pass -melf32frvfd for FDPIC.
4812 (MASK_INLINE_PLT, TARGET_INLINE_PLT): New.
4813 (TARGET_SWITCHES): Add -minline-plt, -mno-inline-plt and
4814 -multilib-library-pic.
4815 (PREDICATE_CODES): Added fdpic_operand, fdpic_fptr_operand,
4816 condexec_si_media_operator, condexec_sf_add_operator and
4817 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
4818 and condexec_sf_unary_operator.
4819 * config/frv/frv.md (R_FRV_GPREL12, R_FRV_GPRELHI, R_FRV_GPRELLO):
4821 (movsi_got, movsi_high_got, movsi_lo_sum_got): Move before
4822 movsi_internal. Give them internal names. movsi_got has type
4824 (fdpic got splitters): Remove.
4825 (symGPREL2reg, symGPREL2reg_hilo): New.
4826 * config/frv/t-frv (MULTILIB_MATCHES): Don't map -fpic and -fPIC
4827 to -mlibrary-pic. Map -multilib-library-pic to it.
4828 * doc/invoke.texi: -mfdpic, -minline-plt, -multilib-library-pic:
4830 2003-09-28 Alexandre Oliva <aoliva@redhat.com>
4831 * config/frv/frv.c (frv_function_symbol_referenced_p): Declare.
4832 (TARGET_CANNOT_FORCE_CONST_MEM): Define to...
4833 (frv_cannot_force_const_mem): New function.
4834 (const_small_data_p, plus_small_data_p): Update comments on sdata
4836 (frv_override_options): Set flag_pie for FDPIC too.
4837 (frv_conditional_register_usage): Mark gr16 and gr17 as non-fixed,
4838 call-saved registers on FDPIC.
4839 (frv_stack_info): Don't preserve the PIC register on FDPIC, and
4840 don't force LR to be preserved.
4841 (frv_expand_prologue): Likewise.
4842 (frv_asm_output_mi_thunk): Use 12-bit funcdesc gotoff for -fpic.
4843 (frv_frame_pointer_required): Don't force it just because the
4844 FDPIC register is used.
4845 (frv_legitimate_address_p) <CONST>: Accept a legitimate FDPIC
4846 operand only if !condexec_p.
4847 (frv_legitimize_address): Return the FDPIC-legitimized address.
4848 Don't match small data here on FDPIC.
4849 (frv_legitimate_fdpic_operand_p): Don't accept unadorned function
4850 symbols. Use TRUE/FALSE instead of 1/0.
4851 (frv_local_funcdesc_p): New.
4852 (frv_legitimize_fdpic_address): Rewrite to use GOTOFF and 12-bit
4853 immediates when possible.
4854 (pic_symbolic_operand): Accept SYMBOL_REFs and CONSTs in FDPIC.
4855 (dbl_memory_one_insn_operand): Accept addresses that add a REG and
4857 (frv_emit_movsi): Handle FDPIC before small data. Use GOTOFF and
4858 12-bit immediates when possible.
4859 (frv_legitimate_constant_p): In FDPIC, reject SImode operands that
4860 are not legitimate pic operands.
4861 (frv_in_small_data_p): Re-enable for FDPIC.
4862 * config/frv/frv.h (SDA_BASE_REG): Remove comment about FDPIC.
4863 (FRV_GLOBAL_P): Removed.
4864 * config/frv/frv.md: Add modes to CONSTs.
4866 (movsi_lo_sum_got): Use separate matches instead of match_dup.
4867 (movsi_high_pic, movsi_lo_sum_pic): Match on non-FDPIC only.
4868 (fdpic splittable operations): Match on flag_pic != 1.
4869 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
4870 * config/frv/frv.c (frv_asm_out_constructor,
4871 frv_asm_out_destructor): Pass to frv_assemble_integer the size in
4873 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
4874 * config/frv/frv.c (frv_assemble_integer): Reject complex
4875 expressions referencing function SYMBOL_REFs.
4876 * config/frv/frv.c (frv_function_symbol_referenced_p): New.
4877 (move_source_operand): Reject CONSTs that reference function
4878 SYMBOL_REFs on FDPIC.
4879 (frv_emit_movsi): If we get such a CONST, break it up.
4880 * config/frv/frv.h (CPP_SPEC): Define __FRV_FDPIC__ for -mfdpic.
4881 (TRANSFER_FROM_TRAMPOLINE): Use different definitions for FDPIC.
4882 * config/frv/frv.c (frv_print_operand) <I>: Recognize PLUS without
4884 (frv_assemble_integer): Don't use funcdesc for LABEL_REFs.
4885 (frv_trampoline_size): Increase for FDPIC.
4886 * config/frv/frv.h (TRAMPOLINE_ALIGNMENT): Bump to 64 for FDPIC.
4887 (TRANSFER_FROM_TRAMPOLINE): Handle FDPIC trampolines.
4888 * config/frv/frv.c (frv_legitimize_fdpic_address, frv_emit_movsi):
4889 Disable use of GOTOFF for now.
4890 (const_small_data_p, plus_small_data_p, frv_in_small_data_p):
4891 Disable use of small data in FDPIC for now.
4892 (frv_asm_output_mi_thunk): Implement for FDPIC.
4893 * config/frv/frv.h (SDA_BASE_REG): Set to -1 with FDPIC.
4894 * config/frv/frv.c (frv_asm_out_constructor): Use
4895 frv_assemble_integer for FDPIC pointers.
4896 (frv_asm_out_destructor): Likewise.
4897 * config/frv/frv.md (ldd): Fix order of operands. Use
4898 address_operand for input.
4899 2003-09-18 DJ Delorie <dj@redhat.com>
4900 * config/frv/frv.c (frv_legitimate_fdpic_operand_p): Remove UNSPEC_PIC.
4901 (unspec_got_name): Correct typo.
4902 (frv_emit_movsi): Pre-expand splittable GOTs.
4903 (frv_expand_fdpic_call): Rename gen_lddi to gen_ldd.
4904 * config/frv/frv.md (lddi): Fix syntax error, rename to ldd.
4905 (symGOT2reg_hilo, symGOTOFF2reg_hilo): New.
4906 * config/frv/t-frv: Add -mfdpic multilibs.
4907 * config/frv/frv.h (ASM_SPEC): Pass -mfdpic/-mno-fdpic.
4908 (TARGET_SWITCHES): Add -mno-fdpic, fix documentation.
4909 * config/frv/frv.c (frv_override_options): -mfdpic assumes
4910 flag_pic, default to 32-bit pics, require DWORD ops.
4911 (frv_override_options): Add W and Z constraints.
4912 (frv_expand_prologue): No pic prologue for -mfdpic.
4913 (frv_asm_output_mi_thunk): Support -mfdpic (soon).
4914 (frv_print_operand_memory_reference): Handle GOT constants.
4915 (frv_legitimate_address_p): Allow GOT constants.
4916 (frv_legitimize_address): Handle GOT addresses too.
4917 (frv_legitimate_fdpic_operand_p): New.
4918 (frv_legitimize_fdpic_address): New.
4919 (unspec_got_name): New.
4920 (frv_output_addr_const_extra): New.
4921 (frv_expand_fdpic_call): New.
4922 (frv_fdpic_fptr_operand): New.
4923 (gpr_or_int12_operand): Handle GOT operands.
4924 (int_2word_operand): Handle GOT operands.
4925 (fdpic_operand): New.
4926 (fdpic_splittable_got_operand): New.
4927 (fdpic_got12_operand): New.
4928 (frv_emit_movsi): Handle GOT operands.
4929 (frv_assemble_integer): -mfdpic doesn't use rofixups.
4930 (frv_print_operand): Support 'g' code for GOT operands.
4931 * config/frv/frv-protos.h: Add prototypes as needed.
4932 * config/frv/frv.md (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
4933 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
4934 R_FRV_FUNCDESC_GOTLO, R_FRV_FUNCDESC_VALUE,
4935 R_FRV_FUNCDESC_GOTOFF12, R_FRV_FUNCDESC_GOTOFFHI,
4936 R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12, R_FRV_GOTOFFHI,
4937 R_FRV_GOTOFFLO): New.
4938 (movsi_high_got, movsi_lo_sum_got): New.
4939 (*movsi_pic): Don't use this splitter for -mfdpic.
4940 (addsi3): Allow GOT references also.
4941 (call, call_value): Handle -mfdpic separately.
4942 (call_fdpicdi, call_fdpicsi, lddi, call_value_fdpicdi,
4943 call_value_fdpicsi): New.
4944 (symGOT2reg, symGOT2reg_i, got splitters, symGOTOFF2reg,
4945 symGOTOFF2reg_i): New.
4946 * config/frv/frv.h (MASK_FDPIC): New.
4947 (TARGET_FDPIC): New.
4948 (TARGET_SWITCHES): Add -mfdpic.
4949 (FDPIC_FPTR_REGNO): New.
4951 (OUR_FDPIC_REG): New.
4952 (enum reg_class): Add FDPIC_REGS, FDPIC_FPTR_REGS, and
4954 (REG_CLASS_NAMES): Likewise.
4955 (REG_CLASS_CONTENTS): Likewise.
4956 (EXTRA_CONSTRAINT_FOR_Y): New, for 12-bit GOTs.
4957 (EXTRA_CONSTRAINT): Add it here.
4958 (FRV_GLOBAL_P): New.
4959 (OUTPUT_ADDR_CONST_EXTRA): New.
4961 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
4963 * config/sparc/sparc.h: Remove commented-out definitions of
4964 TARGET_EDOM and GEN_ERRNO_RTX.
4966 2004-02-24 Kazu Hirata <kazu@cs.umass.edu>
4968 * df.c, df.h, ra-build.c, ra-rewrite.c, ra.c, web.c: Replace
4969 df_analyse with df_analyze.
4971 2004-02-24 Alan Modra <amodra@bigpond.net.au>
4973 * gcse.c (delete_null_pointer_checks_1): Set stop_insn to end, not
4976 2004-02-23 James E Wilson <wilson@specifixinc.com>
4978 * calls.c (precompute_arguments): Update comment.
4980 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4982 * et-forest.c: Replace et_occurences with et_occurrences.
4984 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
4986 * cfgloop.h, loop-iv.c, loop-unswitch.c: Replace iv_analyse
4989 2004-02-23 Kelley Cook <kcook@gcc.gnu.org>
4991 * config/i386/i386.c: Rename pni to sse3.
4992 * config/i386/i386.h: Likewise.
4993 * config/i386/i386.md: Likewise.
4994 * config/i386/pmmintrin.h: Likewise.
4995 * doc/extend.texi: Likewise.
4996 * doc/invoke.texi: Likewise.
4998 2004-02-23 Zack Weinberg <zack@codesourcery.com>
4999 Kazu Hirata <kazu@cs.umass.edu>
5001 Remove -fwritable-strings.
5002 * c-common.c (fix_string_type): Don't check
5003 flag_writable_strings.
5004 (fix_string_type): Likewise.
5005 * c-opts.c (set_std_c89): Don't initialize
5006 flag_writable_strings.
5007 (set_std_c99): Likewise.
5008 * common.opt (fwritable-strings): Remove.
5009 * flags.h: Remove the external declaration of
5010 flag_writable_strings.
5011 * opts.c (common_handle_option) <OPT_fwritable_strings>:
5013 * toplev.c (flag_writable_strings): Remove.
5014 (f_options): Remove an entry for writable-strings.
5015 * varasm.c (const_hash_1) <STRING_CST>: Don't check
5016 flag_writable_strings.
5017 (compare_constant) <STRING_CST>: Likewise.
5018 (build_constant_desc): Likewise.
5019 * config/darwin.c (machopic_select_section): Likewise.
5020 * config/arm/arm.c (AOF_ASSEMBLER): Likewise.
5021 * config/arm/pe.c (arm_pe_encode_section_info): Likewise.
5022 * config/iq2000/iq2000.c (iq2000_select_section): Likewise.
5023 * config/mips/mips.c (mips_select_section): Likewise.
5024 (mips_encode_section_info): Likewise.
5025 * config/pa/pa.c (pa_select_section): Likewise.
5026 * config/pa/pa.h (TEXT_SPACE_P): Likewise.
5027 * config/v850/v850.c (v850_select_section): Likewise.
5028 * doc/invoke.texi (-fwritable-strings): Remove.
5029 (-fno-const-strings): Don't mention -fwritable-strings.
5030 * doc/trouble.texi: Don't mention -fwritable-strings.
5032 2003-02-23 Nathanael Nerode <neroden@gcc.gnu.org>
5034 * doc/install.texi: Update for switch of boehm-gc to autoconf 2.57.
5036 2004-02-23 Dale Johannesen <dalej@apple.com>
5038 * config/rs6000.md (movsf_hardfloat): Add POWER form of nop.
5039 (movdf_hardfloat64): Ditto.
5040 (movdf_softfloat64): Ditto.
5042 2004-02-23 Fariborz Jahanian <fjahanian@apple.com>
5043 * config/rs6000/rs6000.c (function_arg): call to
5044 rs6000_mixed_function_arg for DFmode moved to allow
5045 normal DFmode incoming register assignment.
5047 2004-02-23 Dale Johannesen <dalej@apple.com>
5049 * config/rs6000.md (movsf_hardfloat): Accept CTR-to-CTR copy.
5050 (movdf_hardfloat64): Ditto.
5052 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5054 * convert.c, gcov-io.c, libgcov.c, sched-int.h, sibcall.c,
5055 config/rs6000/linux.h, config/rs6000/rs6000-c.c: Update
5058 2004-02-23 Andrew Pinski <pinskia@physics.uc.edu>
5061 * c-typeck.c (c_expand_return): Change check for VAR_DECL
5062 to use DECL_P instead.
5064 * config/rs6000/linux.h (OS_MISSING_POWERPC64): Define.
5065 * config/rs6000/linux64.h (OS_MISSING_POWERPC64): Define.
5067 2004-02-23 Kazu Hirata <kazu@cs.umass.edu>
5069 * Makefile.in (opts.o): Depend on target.h.
5070 * opts.c (decode_options): Use targetm.default_short_enums
5071 instead of DEFAULT_SHORT_ENUMS.
5072 * system.h (DEFAULT_SHORT_ENUMS): Poison.
5073 * target-def.h (TARGET_DEFAULT_SHORT_ENUMS): New.
5074 (TARGET_INITIALIZER): Add TARGET_DEFAULT_SHORT_ENUMS.
5075 * target.h (gcc_target): Add default_short_enums.
5076 * config/cris/cris.h: Remove a comment about
5077 DEFAULT_SHORT_ENUMS.
5078 * config/ip2k/ip2k.h: Likewise.
5079 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Change to
5080 TARGET_DEFAULT_SHORT_ENUMS. Update the description.
5082 2004-02-23 Eric Botcazou <ebotcazou@libertysurf.fr>
5083 Falk Hueffner <falk@debian.org>
5086 * builtins.c (expand_builtin_va_arg): Emit an informative message
5087 if a trap is generated.
5088 * c-typeck.c (build_function_call): Likewise.
5090 2004-02-22 Jakub Jelinek <jakub@redhat.com>
5092 * gcov-io.c (gcov_open) [GCOV_LOCKED]: Use open + fdopen instead of
5094 * libgcov.c: Include sys/stat.h.
5095 * config/rs6000/linux.h (TARGET_HAS_F_SETLKW): Define.
5096 * config/rs6000/linux64.h (TARGET_HAS_F_SETLKW): Define.
5097 * config/sparc/linux.h (TARGET_HAS_F_SETLKW): Define.
5098 * config/sparc/linux64.h (TARGET_HAS_F_SETLKW): Define.
5100 2004-02-22 Kazu Hirata <kazu@cs.umass.edu>
5102 * reorg.c: Remove comments about dead ports.
5104 2004-02-22 Christopher Faylor <cgf@redhat.com>
5106 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): *Really* specify
5107 extra host object file when targetting cygwin rather than generic
5110 2004-02-22 Josef Zlomek <zlomekj@suse.cz>
5112 Merge from tree-ssa:
5113 2003-11-20 Richard Henderson <rth@redhat.com>
5115 * tree-inline.c (insert_decl_map): New.
5116 (remap_decl, remap_type, remap_block, copy_body_r,
5117 initialize_inlined_parameters, declare_return_variable,
5118 remap_save_expr): Use it.
5120 * function.c (copy_body_r): Add mapping from id->ret_label to
5121 id->ret_label. Revert test for ret_label.
5123 2004-02-22 Jakub Jelinek <jakub@redhat.com>
5125 * genoutput.c (process_template): Strip trailing whitespace in @
5126 templates and issue a warning if there was any.
5128 2004-02-21 Christopher Faylor <cgf@redhat.com>
5130 * config.gcc (i[34567]86-*-pe|i[34567]86-*-cygwin*): Specify extra host
5131 object file when targetting cygwin.
5132 * config/i386/t-cygwin (EXTRA_GCC_OBJS): Remove definition since it is
5133 overridden by top-level Makefile.
5135 2004-02-21 Roger Sayle <roger@eyesopen.com>
5137 * config/i386/i386.c (standard_80387_constant_p): Also prefer
5138 the x87's load constant instructions when optimizing for size.
5140 2004-02-21 Kazu Hirata <kazu@cs.umass.edu>
5142 * combine.c (SHIFT_COUNT_TRUNCATED): Remove.
5143 * defaults.h (SHIFT_COUNT_TRUNCATED): Provide the default.
5144 * expmed.c: Assume SHIFT_COUNT_TRUNCATED is always defined.
5145 * fold-const.c: Likewise.
5146 * simplify-rtx.c: Likewise.
5148 2004-02-21 Alan Modra <amodra@bigpond.net.au>
5150 * combine.c (can_combine_p): Don't ignore SETs marked with
5151 REG_EH_REGION notes.
5152 (try_combine): When attemting to fix unrecognized insns, don't
5153 split a PARALLEL that contains the original i2.
5155 2004-02-21 Ziemowit Laski <zlaski@apple.com>
5157 * config/darwin.h (TARGET_OPTION_TRANSLATE_TABLE): Refer to
5158 SUBTARGET_OPTION_TRANSLATE_TABLE for architecture-specific options.
5159 * config/i386/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): Define it.
5160 * config/rs6000/altivec.h: #error out if '-maltivec' not specified.
5161 (vector, pixel, bool): #define to __vector, __pixel and __bool.
5162 (__un_args_eq, __bin_args_eq, __tern_args_eq): Move to C-specific
5164 (__altivec_link_error_invalid_argument): Remove prototype; will use
5165 __builtin_altivec_compiletime_error("vec_*") instead.
5166 (vec_*): Fix/complete set of available operation overloads given the
5167 existence of distinct 'vector bool ...' and 'vector pixel' types; tighten
5168 cv-correctness of pointer arguments; in C, always check for correct
5169 argument types before macro expansion.
5170 * config/rs6000/darwin.h (SUBTARGET_OPTION_TRANSLATE_TABLE): New macro
5171 defining Darwin/PowerPC-specific '-f[no-]altivec' and
5172 '-W[no-]altivec-long-deprecated' switches.
5173 * config/rs6000/rs6000-c (rs6000_cpu_cpp_builtins): Pre-define
5174 '__vector', '__pixel' and '__bool' macros using
5175 '__attribute__((altivec(...)))' types.
5176 * config/rs6000/rs6000.c (bool_char_type_node, bool_short_type_node,
5177 bool_int_type_node, pixel_type_node, bool_V16QI_type_node,
5178 bool_V8HI_type_node, bool_V4SI_type_node, pixel_V8HI_type_node):
5180 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): New, for
5181 handling '-W[no-]altivec-long-deprecated'.
5182 (rs6000_override_options): Handle '-W[no-]altivec-long-deprecated'.
5183 (rs6000_expand_binop_builtin, rs6000_expand_ternop_builtin,
5184 altivec_expand_dst_builtin): Remove casts from integer literals.
5185 (altivec_expand_builtin): Likewise; handle expansion of new
5186 '__builtin_altivec_compiletime_error' function.
5187 (rs6000_init_builtins): Initialize 'vector bool ...' and 'vector pixel'
5188 types, and make them distinct from other vector types; register
5189 '__builtin_altivec_compiletime_error' function.
5190 (print_operand): For 'P', print a full target register name instead of
5192 (rs6000_attribute_table): Add "altivec" attribute.
5193 (rs6000_handle_altivec_attribute): New function.
5194 * config/rs6000/rs6000.h (TARGET_OPTIONS): Describe
5195 '-m[no-]-warn-altivec-long' (which '-W[no-]altivec-long-deprecated'
5197 (rs6000_warn_altivec_long, rs6000_warn_altivec_long_switch): Forward
5199 (ALTIVEC_BUILTIN_COMPILETIME_ERROR): New built-in enumeration.
5201 2004-02-20 James E Wilson <wilson@specifixinc.com>
5203 * config/ia64/ia64.md (shift_mix4left+1): Delete reload_completed
5205 (shift_mix4left+2): Delete redundant pattern.
5207 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5209 * alias.c (OUTGOING_REGNO): Don't define the default.
5210 * builtins.c (OUTGOING_REGNO): Likewise.
5211 (INCOMING_REGNO): Likewise.
5212 (apply_args_register_offset): Always use OUTGOING_REGNO.
5213 * combine.c (OUTGOING_REGNO): Likewise.
5214 * sibcall.c (OUTGOING_REGNO): Likewise.
5215 * defaults.h (INCOMING_REGNO): Provide the default.
5216 (OUTGOING_REGNO): Likewise.
5218 2004-02-21 Jan Hubicka <jh@suse.cz>
5220 * params.def (max-peeled-insns, max-completely-peeled-insns,
5221 max-once-peeled-insns): Set to 400.
5223 2004-02-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5226 * dbxout.c (dbxout_parms): Check that DECL_RTL and DECL_INCOMING_RTL
5227 are set for parameters before outputing debugging information.
5229 2004-02-20 Falk Hueffner <falk@debian.org>
5232 * config/alpha/alpha.md (*fix_truncsfsi_ieee): Fix typoed operand
5235 2004-02-20 Per Bothner <per@bothner.com>
5237 * input.h: Don't #include line-map.h. It may cause link problems
5238 with undefined linemap_line_start when line-map.h is included but
5239 line-map.o is not linked, as currently happens with gengtype on
5240 compilers that don't support inline.
5241 * toplev.c: So we do have to explicitly #include line-map.h here.
5243 2004-02-20 Richard Henderson <rth@redhat.com>
5245 * doc/invoke.texi: Add -Wvariadic-macros.
5247 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5249 * haifa-sched.c (sched_emit_insn): Remove.
5250 * sched-int.h: Remove the corresponding prototype.
5252 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5255 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5256 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
5257 * system.h (DEFAULT_SHORT_ENUMS): Poison.
5258 * config/cris/cris.h: Remove a comment about
5259 DEFAULT_SHORT_ENUMS.
5260 * config/ip2k/ip2k.h: Likewise.
5261 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
5263 2004-02-20 Mohan Embar <gnustuff@thisiscool.com>
5264 Tom Tromey <tromey@redhat.com>
5266 * doc/install.texi: Moved --disable-libgcj and
5267 --with-system-zlib documentation to new section for
5268 Java-specific options.
5269 Added explicit Cross-Compiler-Specific Options subheading.
5270 Added section for Java-specific options.
5272 2004-02-20 Matt Kraai <kraai@alumni.cmu.edu>
5274 * doc/install.texi (Building the Ada compiler): Remove
5277 2004-02-20 James E Wilson <wilson@specifixinc.com>
5279 * toplev.c (dump_file_index, dump_file): Put ce3 before rnreg.
5281 2004-02-20 Kazu Hirata <kazu@cs.umass.edu>
5283 * gcc.c (process_command): Allow translation of the copyright
5284 symbol but not the rest of the copyright message.
5285 * gcov.c (print_version): Likewise. Allow translation of the
5286 message about warranty.
5288 2004-02-20 Hans-Peter Nilsson <hp@axis.com>
5290 * config/cris/cris.md ("*andsi_movu"): Correct parentheses in
5292 ("*andsi_clear"): Tweak constraints to not match postincrement.
5293 Adjust the predicate to exclude a volatile memory reference.
5294 ("*andhi_clear"): Ditto. Rename from "*andhi_clear_signed".
5295 ("*andhi_clear_unsigned"): Remove, non-matching pattern.
5297 2004-02-19 Matt Kraai <kraai@alumni.cmu.edu>
5299 * move-if-change: Remove.
5300 * Makefile.in (s-mlib, c-parse.y, s-check, s-gencheck)
5301 (s-specs, s-options, s-config, s-conditions, s-flags, s-codes)
5302 (s-constants, s-emit, s-recog, s-opinit, s-extract, s-peep)
5303 (s-attr, s-attrtab, s-output, s-genrtl, s-modes, s-preds)
5304 (s-gtyp-gen, s-iov): Use the top level move-if-change.
5305 * objc/Make-lang.in (objc/objc-parse.y): Likewise.
5307 2004-02-19 James E Wilson <wilson@specifixinc.com>
5309 * config/i386/i386.md (doloop_end_internal): Use nonimmediate_operand
5310 for operand2. Add condition that requires register_operand operand2
5313 2004-02-19 Richard Sandiford <rsandifo@redhat.com>
5314 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5316 * config/mips/mips.c (mips_address_insns): Treat BLKmode specially.
5317 * config/mips/mips.md: Expand comment above unaligned loads and stores.
5319 2004-02-19 Richard Henderson <rth@redhat.com>
5321 * Makefile.in (STRICT2_WARN): Add -Wno-variadic-macros.
5322 * tree.c (build0, build1, build2, build3, build4): Split out from...
5323 (build): ... here. Call them.
5324 * tree.h (build, _buildN1, _buildN2, _buildC1, _buildC2): New.
5326 * convert.c (convert_to_integer): Remove extra build argument.
5327 * tree-inline.c (expand_call_inline): Likewise.
5329 2004-02-19 Richard Henderson <rth@redhat.com>
5331 * c-opts.c (warn_variadic_macros): New.
5332 (c_common_handle_option): Set it.
5333 (sanitize_cpp_opts): Copy it to cpp_opts.
5334 * c.opt (Wvariadic-macros): New.
5335 * cpplib.h (struct cpp_options): Add warn_variadic_macros.
5336 * cppinit.c (cpp_create_reader): Initialize it.
5337 * cppmacro.c (parse_params): Check it.
5339 2004-02-19 David Daney <ddaney@avtrex.com>
5341 PR preprocessor/14198
5342 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Add
5343 builtin_assert ("machine=mips")
5345 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5347 * opts.c (decode_options): Don't use DEFAULT_SHORT_ENUMS.
5348 * system.h (DEFAULT_SHORT_ENUMS): Poison.
5349 * config/cris/cris.h: Remove a comment about
5350 DEFAULT_SHORT_ENUMS.
5351 * config/ip2k/ip2k.h: Likewise.
5352 * doc/tm.texi (DEFAULT_SHORT_ENUMS): Remove.
5354 2004-02-19 Zack Weinberg <zack@codesourcery.com>
5356 * config/ia64/ia64.c (ia64_function_arg): In big-endian mode,
5357 when passing single SFmode quantities in general registers,
5358 put them in the high half.
5360 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
5362 * doc/md.texi (Standard Names): Document additional dependency on
5365 * optabs.c (ftruncify): Remove.
5366 (expand_fix): Manually inline ftruncify above.
5367 (can_fix_p): Add FIXME note.
5369 2004-02-19 Aldy Hernandez <aldyh@redhat.com>
5371 * config/rs6000/spe.md (spe_fixunssfsi2): Rename to
5372 spe_fixuns_truncsfsi2.
5374 * config/rs6000/rs6000.md (fixunssfsi2): Rename to
5377 2004-02-19 Steve Ellcey <sje@cup.hp.com>
5379 * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
5380 * testsuite/gcc.dg/20040219-1.c: New test.
5382 2004-02-19 Ulrich Weigand <uweigand@de.ibm.com>
5384 * config/s390/s390.md ("*subdf3_cc", "*subdf3_cconly", "*subsf3_cc",
5385 "*subsf3_cconly"): Subtraction is not commutative.
5387 2004-02-19 Zack Weinberg <zack@codesourcery.com>
5389 * sdbout.c (preinit_symbols, sdbout_initialized): New statics.
5390 (sdbout_symbol): If called before sdbout_init, queue DECL for
5392 (sdbout_init): Set sdbout_initialized true, process decls
5393 queued earlier by sdbout_symbol.
5394 (sdbout_finish): Use size_t for index variable.
5396 2004-02-19 Jeff Law <law@redhat.com>
5398 * fold-const.c (invert_truthvalue): Do not call invert_tree_comparison
5399 for unordered comparison codes.
5401 2004-02-19 Ian Lance Taylor <ian@wasabisystems.com>
5403 * reload1.c (reload): Correct comment.
5404 (scan_paradoxical_subregs): Remove #if 0 and old comment.
5405 * doc/extend.texi (Local Reg Vars): Remove obsolete comment that
5406 register variables are not used by reload.
5408 2004-02-19 Hans-Peter Nilsson <hp@axis.com>
5411 * config/cris/cris.md ("*andsi_movu", "*andhi_movu"): Tweak
5412 constraints to not match postincrement. Adjust the predicate to
5413 exclude a volatile memory reference.
5415 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5417 * config/mcore/mcore.h (ASM_OUTPUT_EXTERNAL): Remove.
5419 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5421 * hooks.c (hook_void_tree_int): Remove.
5422 (hook_void_constcharptr): Likewise.
5423 (hook_int_void_0): Likewise.
5424 * hooks.h: Remove the prototypes for the above three
5426 * targhooks.c (hook_bool_machine_mode_true): Remove.
5427 * targhooks.h: Remove the prototype for
5428 hook_bool_machine_mode_true.
5430 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5432 * emit-rtl.c (subreg_realpart_p): Remove.
5433 (reorder_insns_with_line_notes): Likewise.
5434 (end_full_sequence): Likewise.
5435 * rtl.h: Remove the prototype for the above functions.
5437 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5439 * config/arc/arc.h, config/arm/arm.h, config/frv/frv.h,
5440 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
5441 config/iq2000/iq2000.h, config/m32r/m32r.h,
5442 config/pdp11/pdp11.h, config/sparc/sparc.h,
5443 config/xtensa/xtensa.h: Remove commented-out or useless
5444 definitions of CASE_VECTOR_PC_RELATIVE.
5446 2004-02-19 Kazu Hirata <kazu@cs.umass.edu>
5448 * loop.c (all_sets_invariant_p): Remove.
5450 2004-02-19 Eric Botcazou <ebotcazou@libertysurf.fr>
5453 * config/sparc/sparc.h (NPARM_REGS): Delete.
5454 (BASE_RETURN_VALUE_REG): Likewise.
5455 (BASE_OUTGOING_VALUE_REG): Likewise.
5456 (BASE_PASSING_ARG_REG): Likewise.
5457 (BASE_INCOMING_ARG_REG): Likewise.
5458 * config/sparc/sparc.c (sparc_strict_argument_naming): Test
5459 TARGET_ARCH64, not TARGET_V9.
5460 (function_arg_slotno): Dispatch based on the mode class.
5461 Handle vector modes like floating-point modes.
5462 (function_arg_record_value_1): Handle vector types like
5463 floating-point types.
5464 (function_arg_record_value_2): Likewise.
5465 Calculate regno after mode transformation.
5466 (function_arg): Handle vector modes like floating-point modes.
5467 (function_arg_partial_nregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX.
5468 If ARCH64, do not recheck alignment.
5469 (function_arg_pass_by_reference): Reorder the conditions.
5470 (sparc_return_in_memory): Move after function_arg_padding.
5471 Implement calling conventions for vector modes.
5472 (sparc_struct_value_rtx): Move after sparc_return_in_memory.
5473 (function_value): Move scope of 'regbase'.
5474 Implement calling conventions for vector modes.
5475 (sparc_builtin_saveregs): Replace NPARM_REGS by SPARC_INT_ARG_MAX
5476 and BASE_INCOMING_ARG_REG by SPARC_INCOMING_INT_ARG_FIRST.
5477 (sparc_va_arg): Use function_arg_pass_by_reference to test whether
5478 the argument is passed by reference.
5479 (sparc_type_code): Handle vector types.
5481 2004-02-19 Alan Modra <amodra@bigpond.net.au>
5483 * function.c (assign_parms): When building decl_rtl for
5484 SPLIT_COMPLEX_ARGS, ensure inner modes of concat match outer.
5486 2004-02-19 Olivier Hainque <hainque@act-europe.fr>
5488 * expr.c (is_aligning_offset): Check if we are aligning the
5489 expressions's address over BIGGEST_ALIGNMENT in bytes, not
5492 2003-02-18 Matt Austern <austern@apple.com>
5494 * gcc.c (LIBGCC_SPEC): If REAL_LIBGCC_SPEC is defined, and
5495 LIBGCC_SPEC isn't, set LIBGCC_SPEC to REAL_LIBGCC_SPEC.
5496 (init_gcc_spec): Don't define or call if REAL_LIBGCC_SPEC is
5497 defined. Instead use REAL_LIBGCC_SPEC, unmodifed, as the libgcc
5499 * doc/tm.texi (REAL_LIBGCC_SPEC): Document.
5501 2004-02-18 Zack Weinberg <zack@codesourcery.com>
5503 * dwarf2out.c (loclabel_num): Move outside #ifdef
5504 DWARF2_DEBUGGING_INFO and mark with GTY(()).
5505 * config/ia64/ia64.c (struct extern_func_list,extern_func_head):
5507 (ia64_hpux_add_extern_decl): Save the decl, not the name string.
5508 Allocate memory with ggc_alloc. No need to copy anything.
5509 (ia64_hpux_file_end): Update to match.
5511 2004-02-18 Jakub Jelinek <jakub@redhat.com>
5513 * config/i386/i386.c (override_options): Don't imply 3DNow! for -m64
5516 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5518 * config/s390/s390.md ("divmodtidi3"): Use canonical RTL.
5519 ("divmodtisi3"): Likewise.
5520 ("udivmoddi4", "udivmodtidi3"): Likewise.
5521 ("divmodsi4", "divmoddisi3"): Likewise.
5522 ("udivmodsi4", "udivmoddisi3"): Likewise.
5523 ("udivsi3", "umodsi3"): Likewise.
5525 2004-02-18 Ulrich Weigand <uweigand@de.ibm.com>
5527 * config/s390/s390.c (s390_mainpool_start): Delete the main pool
5528 placeholder insn when chunkifying the pool.
5530 2004-02-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5532 * pa.h (PIC_OFFSET_TABLE_REGNUM): Define to INVALID_REGNUM when not
5533 generating PIC code.
5535 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5537 * config/h8300/h8300-protos.h: Add a prototype for
5538 h8300_expand_branch.
5539 * config/h8300/h8300.c (h8300_expand_branch): New.
5540 * config/h8300/h8300.md (ble, bleu, bge, bgeu, blt, bltu, bgt,
5541 bgtu, beq, bne): Call h8300_expand_branch().
5543 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5545 * config/h8300/h8300-protos.h: Add prototypes for
5546 h8300_hard_regno_nregs and h8300_hard_regno_mode_ok.
5547 * config/h8300/h8300.c (h8300_hard_regno_nregs): New.
5548 (h8300_hard_regno_mode_ok): Likewise.
5549 * config/h8300/h8300.h (HARD_REGNO_NREGS): Call
5550 h8300_hard_regno_nregs().
5551 (HARD_REGNO_MODE_OK): Call h8300_hard_regno_mode_ok().
5553 2004-02-18 Per Bothner <per@bothner.com>
5555 * cpphash.h (struct cpp_buffer): Restore return_at_eof field. This
5556 partly reverts my 2003-10-01 change, because we're back to logically
5557 including <command line> inside the main line.
5558 * cpplex.c (_cpp_get_fresh_line): Check return_at_eof field.
5559 * cppmacro.c (cpp_scan_nooutput): Set return_at_eof of current buffer.
5560 Fixes PR preprocessor/14103.
5562 * cppfiles.c (_cpp_stack_include): When appropriate decrement
5563 line_table's highest_location, fixing LAST_SOURCE_LINE_LOCATION.
5564 (cpp_push_include): Don't need to increment pfile's line field.
5565 * line-map.h (LAST_SOURCE_LINE_LOCATION): Only decrement by 1.
5567 * c-ppoutput.c (print struct): New first_time field.
5568 (init_pp_output): Set print.first_time.
5569 (pp_file_change): Use print.first_time, rather than MAIN_FILE_P,
5570 which is set also for (say) <command line>. Clear print.first_time.
5572 * cppfiles.c (struct _cpp_file): Comment and type for pch field
5573 does not match the code, so fix both.
5574 (should_stack_file): Inline include_pch_p function.
5575 (include_pch_p): Remove pointless function.
5577 * cpphash.h (struct cpp_buffer): Remove unused search_cached field.
5579 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5581 * config/h8300/h8300.md (four define_peephole2's): Use
5582 h8300_regs_ok_for_stm().
5584 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5586 * config/h8300/h8300-protos.h: Update the prototype for
5588 * config/h8300/h8300.c (expand_a_rotate): Remove the first
5590 * config/h8300/h8300.md: Update all callers.
5592 2004-02-18 Jan Hubicka <jh@suse.cz>
5594 * simplify-rtx.c (simplify_unary_operation): Deal with logicals on
5596 (simplify_binary_operation): Deal with logicals on floats.
5598 * i386.md (SSE fabs splitters): Emit new patterns.
5599 (SSE cmov splitters): Likewise.
5600 (sse_andv4sf3, sse_nandv4sf3, sse_iorv4sf3, sse_xorv4sf3
5601 (sse_andv2df3, sse_nandv2df3, sse_iorv2df3, sse_xorv2df3): Do not use
5603 (sse_andsf3, sse_nandsf3, sse_xorsf3): Kill.
5604 (sse_anddf3, sse_nanddf3, sse_xordf3): Kill.
5606 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5608 * config/h8300/h8300.c (expand_a_rotate): Don't generate insns
5610 (output_a_rotate): Tweak a comment.
5611 * config/h8300/h8300.md (*rotlqi3_1): Change to rotlqi3_1.
5612 (*rotlhi3_1): Change to rotlhi3_1.
5613 (*rotlsi3_1): Change to rotlsi3_1.
5615 2004-02-18 Richard Earnshaw <rearnsha@arm.com>
5618 * arm.c (load_multiple_operation): Don't insist that the source reg
5619 of a post-increment component is the same as the destination.
5620 (store_multiple_operation): Likewise.
5622 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5624 * config/h8300/h8300.md: Move movsf patterns into one section
5627 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5629 * cfgloop.h, cfgloopanal.c, cpplex.c, except.h, loop-init.c,
5630 loop-unroll.c, scan-decls.c, scan.h, stor-layout.c,
5631 xcoffout.c, xcoffout.h, config/arm/mmintrin.h,
5632 config/mips/linux64.h, config/pa/pa-64.h,
5633 config/rs6000/aix51.h, config/rs6000/aix52.h,
5634 config/rs6000/spe.md, config/sparc/linux.h,
5635 config/sparc/linux64.h: Update copyright.
5637 2004-02-18 Kazu Hirata <kazu@cs.umass.edu>
5639 * config/h8300/h8300.md: Move push patterns into one
5640 section of the file.
5642 2004-02-18 Mark Mitchell <mark@codesourcery.com>
5645 * config/ia64/ia64.c (ia64_struct_value_rtx): Cope with NULL
5648 2004-02-18 Paul Brook <paul@codesourcery.com>
5650 * rtlanal.c (rtx_varies_p): Return 0 for NULL_RTX
5652 2004-02-18 Paul Brook <paul@codesourcery.com>
5655 * dwarf2out.c (loc_descriptor_from_tree): Handle
5656 EXPR_WITH_FILE_LOCATION.
5658 2004-02-18 Jakub Jelinek <jakub@redhat.com>
5660 * config/i386/i386.md (zero_extendqidi2, zero_extendqidi2,
5661 testdi_1_rex64, anddi_2, xordi_1_rex64, xordi_2_rex64): Remove
5662 trailing whitespace from instructions.
5664 2004-02-17 Geoffrey Keating <geoffk@apple.com>
5666 * configure.ac: When generating auto-build.h, pass
5667 --enable-languages to the sub-configure.
5668 Put quotes around ${program_transform_name} when generating
5669 name of as, ld, nm, objdump.
5670 * configure: Regenerate.
5672 2004-02-17 Matt Kraai <kraai@alumni.cmu.edu>
5674 * Makefile.in (s-check, s-config, s-conditions, s-flags)
5675 (s-codes, s-constants, s-emit, s-recog, s-opinit, s-extract)
5676 (s-peep, s-attr, s-attrtab, s-output, s-genrtl, s-modes)
5677 (s-preds, s-iov): Do not depend on move-if-change.
5679 2004-02-17 James E Wilson <wilson@specifixinc.com>
5681 * caller-save.c (insert_restore): Pass mem through copy_rtx.
5682 (insert_save): Likewise.
5684 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5686 * config/h8300/h8300.c (h8300_emit_stack_adjustment): Fix a
5689 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5691 * config/h8300/h8300.md (*one_complsi2_h8300): Change to
5693 (*one_complsi2_h8300hs): Change to *one_cmplsi2_h8300hs.
5695 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5697 * config/h8300/h8300-protos.h: Update the prototype of
5699 * config/h8300/h8300.c (fix_bit_operand): Remove the second
5701 * config/h8300/h8300.md: Update all callers.
5703 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5705 * config/h8300/h8300.c (fix_bit_operand): Change the name of
5706 the last argument to "code" from "type".
5708 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5710 * config/h8300/h8300.c: Remove an extern declaration of
5711 rtx_equal_function_value_matters.
5713 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5715 * config/h8300/h8300.c (fix_bit_operand): Don't generate insns
5717 * config/h8300/h8300.md (*andqi3_1): Change to andqi3_1.
5718 (*iorqi3_1): Change to iorqi3_1.
5719 (*xorqi3_1): Change to xorqi3_1.
5721 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5723 * c-common.c, cfghooks.c, rtlanal.c, varasm.c: Fix comment
5726 2004-02-17 Jan Hubicka <jh@suse.cz>
5728 * i386.c (x86_prologue_using_move, x86_epilogue_using_move): Disable for P4.
5730 2004-02-18 Alan Modra <amodra@bigpond.net.au>
5732 PR optimization/14119
5733 * combine.c (try_combine): When attemting to fix unrecognized insns,
5734 don't delete SETs marked with REG_EH_REGION notes.
5736 2004-02-17 Ulrich Weigand <uweigand@de.ibm.com>
5738 * combine.c (simplify_if_then_else): Do not replace
5739 (if_then_else (ne reg 0) (0) (const_int)) by (reg) if the
5742 2004-02017 Steven Bosscher <stevenb@suse.de>
5744 * (c-decl.c, c-semantics.c, calls.c, cgraph.c, cgraphunit.c,
5745 function.c, integrate.c, print-tree.c, toplev.c, tree-optimize.c,
5746 tree.h): Replace DECL_SAVED_INSNS with DECL_STRUCT_FUNCTION.
5747 * ada/utils.c: Likewise.
5748 * cp/decl.c: Likewise.
5749 * f/com.c: Likewise.
5750 * java/class.c: Likewise.
5752 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5754 * config/h8300/h8300.md: Fix comment typos.
5756 2004-02-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5758 * config/mips/t-iris6gld: Renamed to ...
5759 * config/mips/t-irix-gld: ... this.
5760 * config.gcc (mips-sgi-irix6*): Reflect this
5761 (mips-sgi-irix5*): Use it with GNU ld.
5763 * config/mips/irix6-crti.asm, config/mips/irix6-crtn.asm: Renamed
5765 * config/mips/irix-crti.asm, config/mips/irix-crtn.asm: ... this.
5766 * config/mips/t-irix-gld: Reflect this.
5767 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5769 * config/mips/iris5gld.h: New file.
5770 * config.gcc (mips-sgi-irix5*): Use it with GNU ld.
5771 Only use collect2 without gas.
5773 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC, IRIX6_ENDFILE_SPEC):
5774 Renamed to IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5775 (STARTFILE_SPEC, ENDFILE_SPEC, SUBTARGET_EXTRA_SPECS): Reflect this.
5776 * config/mips/iris6gld.h (STARTFILE_SPEC, ENDFILE_SPEC): Likewise.
5778 * config/mips/iris6.h (SUBTARGET_EXTRA_SPECS): Moved ...
5779 * config/mips/iris5.h: ... here.
5781 * config/mips/iris5.h (STARTFILE_SPEC, ENDFILE_SPEC): Renamed to
5782 IRIX_STARTFILE_SPEC, IRIX_ENDFILE_SPEC.
5783 (STARTFILE_SPEC, ENDFILE_SPEC): Define.
5785 * config/mips/iris5gas.h (STARTFILE_SPEC, ENDFILE_SPEC): Simplify
5786 using irix_startfile_spec, irix_endfile_spec.
5788 2004-02-16 Gunther Nikl <gni@gecko.de>
5790 * config/m68k/m68k.c: Remove obsolete support for HPUX_ASM.
5792 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5794 * config/h8300/h8300.c (h8300_expand_prologue): Don't generate
5797 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5799 * cfghooks.c (split_edge): Speed up updating of dominators.
5801 2004-02-17 Mark Mitchell <mark@codesourcery.com>
5804 * c-common.c (flag_abi_version): Remove.
5805 * c-common.h (flag_abi_version): Likewise.
5806 * c-opts.c (c_common_handle_option): Remove OPT_fabi_version case.
5807 * c.opt (fabi-version): Remove.
5808 * calls.c (expand_call): Always pass a function type to
5809 struct_value_rtx. Use convert_memory_address.
5810 * common.opt (fabi-version): Add it.
5811 * flags.h (flag_abi_version): Likewise.
5812 (abi_version_at_least): New macro.
5813 * opts.c (common_handle_option): Add OPT_fabi_version.
5814 * toplev.c (flag_abi_version): Define it.
5815 * config/ia64/ia64.c (ia64_struct_retval_addr_is_first_parm_p):
5817 (ia64_output_mi_thunk): Use it.
5818 (ia64_struct_value_rtx): Likewise.
5820 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5822 * config/h8300/h8300.c (h8300_emit_stack_adjustment):
5823 Don't generate insns by hand.
5825 2004-02-17 Andrew Pinski <pinskia@physics.uc.edu>
5828 * doc/invoke.texi (fabi-version): The default is 2 now.
5830 2004-02-17 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5832 * loop-iv.c: New file.
5833 * Makefile.in (loop-iv.o): New.
5834 * basic_block.h (FOR_BB_INSNS, FOR_BB_INSNS_REVERSE): New macros.
5835 * cfgloop.c (fill_sons_in_loop, get_loop_body_in_dom_order,
5836 num_loop_branches): New functions.
5837 * cfgloop.h (get_loop_body_in_dom_order, num_loop_branches,
5838 iv_analysis_loop_init, iv_get_reaching_def, iv_analyse, get_iv_value,
5839 find_simple_exit, iv_number_of_iterations, iv_analysis_done,
5840 get_simple_loop_desc, free_simple_loop_desc): Declare.
5841 (simple_loop_desc): New inline function.
5842 (struct rtx_iv, struct niter_desc): New.
5843 * cfgloopmanip.c (loopify): Specify semantics more precisely.
5844 * expr.c (force_operand): Handle subregs of expressions created by
5846 * loop-init.c (loop_optimizer_init, loop_optimizer_finalize): Move
5847 parts of the initialization to toplev.c
5848 * loop-unroll.c (loop_exit_at_end_p): New.
5849 (unroll_and_peel_loops): Call iv_analysis_done.
5850 (decide_peel_once_rolling, decide_peel_completely,
5851 decide_unroll_stupid, decide_unroll_constant_iterations,
5852 decide_unroll_runtime_iterations, decide_peel_simple,
5853 peel_loop_simple, unroll_loop_stupid, unroll_loop_constant_iterations,
5854 unroll_loop_runtime_iterations): Use new simple loop analysis.
5855 * loop-unswitch.c (compare_and_jump_seq): New.
5856 (may_unswitch_on_p): Renamed to ...
5857 (may_unswitch_on): Use new iv analysis.
5858 (reversed_condition): Export.
5859 (unswitch_single_loop, unswitch_loop): Use new iv analysis.
5860 * predict.c (estimate_probability): Use new simple loop analysis.
5861 * rtl.h (get_mode_bounds, reversed_condition,compare_and_jump_seq,
5862 canon_condition, simplify_using_condition): Declare.
5863 * stor-layout.c (get_mode_bounds): New.
5864 * toplev.c (rest_of_handle_loop2): Some parts of
5865 initialization/finalization moved here from loop-init.c.
5867 2004-02-17 Kazu Hirata <kazu@cs.umass.edu>
5869 * config/h8300/h8300.h (FIXED_REGISTERS): Add the soft frame
5871 (CALL_USED_REGISTERS): Likewise.
5872 (REG_ALLOC_ORDER): Likewise.
5873 (REG_CLASS) <GENERAL_REGS>: Likewise.
5875 2004-02-16 Geoffrey Keating <geoffk@apple.com>
5877 * doc/md.texi (Insn Canonicalizations): Document left-chaining
5878 in associative operators.
5879 * rtlanal.c (commutative_operand_precedence): Create some new
5880 variables. Prefer a commutative operand on the left, then
5881 binary expressions, then NEG and NOT.
5883 2004-02-16 Matthias Klose <doko@debian.org>
5885 * config/t-slibgcc-elf-ver: Define SHLIB_NAME and SHLIB_SONAME
5886 in terms of SHLIB_SOVERSION.
5887 * config/m68k/t-slibgcc-elf-ver: New file.
5888 * config/pa/t-slibgcc-elf-ver: New file.
5889 * config.gcc (m68k-linux, parisc-linux): Use them when not
5890 sjlj exceptions are not configured.
5892 2004-02-16 Eric Botcazou <ebotcazou@libertysurf.fr>
5894 * config/sparc/sparc.c (get_pc_symbol_name): Mark with GTY(()).
5896 2004-02-16 Zack Weinberg <zack@codesourcery.com>
5898 * sdbout.c (sdb_debug_hooks): Correct the type_decl entry.
5900 2004-02-16 Joseph S. Myers <jsm@polyomino.org.uk>
5902 * doc/sourcebuild.texi: Mention backends.html.
5904 2004-02-16 Kazu Hirata <kazu@cs.umass.edu>
5906 * c-decl.c, c-ppoutput.c, cpphash.h, cpplib.h, dbxout.c,
5907 line-map.c, line-map.h, var-tracking.c: Fix comment
5910 2004-02-16 Richard Henderson <rth@redhat.com>
5912 * cse.c (cse_insn): Don't lose REG_NON_LOCAL_GOTO note.
5914 * fold-const.c (operand_equal_p): Fix VECTOR_CST comparison.
5916 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5918 * config/h8300/h8300.md: Remove unnecessary parallels from
5919 all define_insn and define_split patterns.
5921 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5923 * config/h8300/h8300.md: Remove explicit (set_attr "cc"
5926 2004-02-15 Bernardo Innocenti <bernie@develer.com>
5928 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Restore support for
5931 2004-02-15 Kazu Hirata <kazu@cs.umass.edu>
5933 * config/ia64/ia64.c, config/mips/mips.c,
5934 config/mmix/mmix-modes.def: Fix comment typos.
5936 2004-02-15 Roger Sayle <roger@eyesopen.com>
5938 * c-common.h (GET_DIRECTIVE_LINE): Remove unused macro.
5939 (get_directive_line): Remove unused function prototype.
5941 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
5943 * tree-inline.c (copy_body_r): Do not replace ret_label.
5945 2004-02-14 Jan Hubicka <jh@suse.cz>
5947 * i386.c (x86_four_jump_limit): New variable.
5948 (k8_avoid_jump_misspredicts): Rename to ...
5949 (ix86_avoid_jump_misspredicts): .. this one.
5950 (ix86_pad_returns): Break out from ...
5951 (ix86_reorg): ... this one; do ix86_avoid_jump_misspredicts when asked
5953 * i386.h (TARGET_FOUR_JUMP_LIMIT): New macro.
5955 2004-02-14 Josef Zlomek <zlomekj@suse.cz>
5957 * emit-rtl.c (set_decl_incoming_rtl): Check whether the 0th element of
5960 2004-02-14 Per Bothner <per@bothner.com>
5962 * fix-header.c (line_table): Move local variable in main to global.
5963 * scan.h (line_table): Use it.
5964 * scan-decls.c (scan_decls): Need to call linemap_lookup on token's
5965 line (recently renamed to src_loc) before calling recognized_function.
5967 2004-02-14 Matt Kraai <kraai@alumni.cmu.edu>
5969 * Makefile.in: Fix comment typos.
5971 2004-02-14 Olivier Hainque <hainque@act-europe.fr>
5973 * loop.c (check_dbra_loop): Use gen_int_mode instead of GEN_INT
5974 for start_value when it is directly moved into reg, and factorize
5975 the retrieval of GET_MODE (reg).
5977 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
5979 * config/mips/mips-protos.h (mips_load_got_page): Delete.
5980 (mips_load_got_global): Delete.
5981 (mips_gotoff_page): Declare.
5982 * config/mips/mips.md (UNSPEC_LOAD_GOT): New constant.
5983 (*xgot_lo[sd]i, *got_disp[sd]i, *got_page[sd]i): Build an
5984 UNSPEC_LOAD_GOT pattern rather than a MEM.
5985 (*load_got[sd]i): New patterns.
5986 * config/mips/mips.c (mips_got_alias_set, mips_load_got): Delete.
5987 (mips_load_got_page, mips_load_got_global): Delete.
5988 (mips_gotoff_page): New function.
5989 (override_options): Don't initialize mips_got_alias_set.
5991 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
5993 * config/mips/mips.h (MASK_DEBUG_[ABEFI], TARGET_DEBUG_[ABEFI]_MODE)
5994 (TARGET_MIPS4100, TARGET_MIPS4300, TARGET_MIPS4KC, TARGET_MIPS5KC)
5995 (TARGET_SB1, TUNE_SB1, TUNE_SR71K, BIGGEST_MAX_ARGS_IN_REGISTERS)
5996 (GO_PRINTF, GO_PRINTF2, GO_DEBUG_RTX, DFMODE_NAN, SFMODE_NAN): Delete.
5997 (TARGET_SWITCHES): Remove MASK_DEBUG_[ABEFI].
5998 * config/mips/mips.c: Fix some overly-long lines.
5999 (SINGLE_WORD_MODE_P, PIC_OFFSET_TABLE_MASK): Delete.
6000 (init_cumulative_args): Remove TARGET_DEBUG_E_MODE handling.
6002 2004-02-13 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6004 * configure.ac: Search for as, ld below libexec/gcc.
6005 * configure: Regenerate.
6007 2004-02-14 Ben Elliston <bje@wasabisystems.com>
6009 * config/arm/mmintrin.h (_mm_setwcx): Reverse arguments in call to
6010 __builtin_arm_setwcx ().
6011 * config/arm/arm.c (arm_expand_builtin): Generate operands
6012 correctly and reverse their order in call to gen_iwmmxt_tmcr ().
6014 2004-02-14 Ben Elliston <bje@wasabisystems.com>
6016 * config/arm/arm.c (bdesc_2arg): Correct builtin names "wmulsh"
6017 and "wmuluh" to "wmulsm" and "wmulum", respectively.
6018 * config/arm/arm.h (enum arm_builtins): Rename enumerators to
6019 ARM_BUILTIN_WMULSM and ARM_BUILTIN_WMULUM.
6020 * config/arm/mmintrin.h (_mm_mulhi_pi16): Update intrinsic call.
6021 (_mm_mulhi_pu16): Likewise.
6023 2004-02-13 Zack Weinberg <zack@codesourcery.com>
6025 * xcoffout.c (xcoff_assign_fundamental_type_number): Check
6026 DECL_NAME != 0 before dereferencing.
6028 2004-02-13 Ulrich Weigand <uweigand@de.ibm.com>
6030 * config/s390/s390-protos.h (s390_output_symbolic_const): Remove.
6031 (s390_output_addr_const_extra): Declare.
6032 (s390_output_pool_entry): Remove FILE * argument.
6033 * config/s390/s390.c (s390_output_symbolic_const): Remove.
6034 (s390_output_addr_const_extra): New function.
6035 (print_operand_address): Call output_addr_const instead of
6036 s390_output_symbolic_const.
6037 (print_operand): Likewise.
6038 (s390_output_pool_entry): Use assemble_integer for symbolic constants.
6039 Remove FILE * argument.
6040 * config/s390/s390.h (OUTPUT_ADDR_CONST_EXTRA): Define.
6041 * config/s390/s390.md ("*pool_entry"): Adapt s390_output_pool_entry
6044 2004-02-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
6046 * cfgloopanal.c (mark_irreducible_loops): Rewriten.
6047 (struct edge, struct vertex, struct graph): New.
6048 (dump_graph, new_graph, add_edge, dfs, check_irred, for_each_edge,
6049 free_graph): New functions.
6051 2004-02-12 Chris Demetriou <cgd@broadcom.com>
6053 * config/mips/mips.md (casesi_internal, casesi_internal_di):
6054 Use ".set macro" to avoid warnings about multi-instruction
6055 macros, since they're intentional.
6057 2004-02-12 Geoffrey Keating <geoffk@apple.com>
6059 * config/darwin.h: Add include guards. Remove old, now incorrect,
6060 comment about STANDARD_EXEC_PREFIX.
6062 * Makefile.in (install-man): Use $(CPP_INSTALL_NAME) and
6063 $(GCOV_INSTALL_NAME) to install manpages. Remove generic rule
6064 for installing .1 manpages. Add rules for installing cpp
6065 and gcov manpages under their installed names.
6067 2004-02-12 Alexandre Oliva <aoliva@redhat.com>
6069 * configure.ac (gcc_cv_ld): Don't set to LD if target is not
6070 host, but try LD_FOR_TARGET first.
6071 * configure: Rebuilt.
6073 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6075 * dbxout.c: Move declaration of dbxout_type_decl outside
6076 #ifdef DBX_DEBUGGING_INFO.
6077 * c-parse.in: Don't give the asmdef production a type.
6079 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6081 * debug.h (struct gcc_debug_hooks): Add type_decl field.
6082 (debug_nothing_tree_int): Prototype.
6083 (dwarf_debug_hooks): Delete, unused.
6084 * debug.c (do_nothing_debug_hooks): Update.
6085 (debug_nothing_tree_int): New function.
6086 * langhooks.h (struct lang_hooks_for_decls):
6087 Remove builtin_type_decls field.
6088 * langhooks-def.h (LANG_HOOKS_BUILTIN_TYPE_DECLS): Delete.
6089 (LANG_HOOKS_DECLS): Update.
6090 * toplev.c (rest_of_decl_compilation, rest_of_type_compilation):
6091 Use debug_hooks->type_decl.
6092 * dbxout.c (preinit_symbols): New static.
6093 (dbx_debug_hooks, xcoff_debug_hooks): Update.
6094 (dbxout_init): Don't call DBX_OUTPUT_STANDARD_TYPES or
6095 lang_hooks.decls.builtin_type_decls. Do scan preinit_symbols
6096 for symbols to output.
6097 (dbxout_type_decl): New function.
6098 (dbxout_symbol): If called before dbxout_init has run, queue
6099 the symbol for later. Apply DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER
6100 to TYPE_DECLs before emitting them.
6101 * xcoffout.c (assign_type_number): Delete.
6102 (xcoff_type_numbers): New static table.
6103 (xcoff_assign_fundamental_type_number): New function.
6104 * xcoffout.h: Define DBX_ASSIGN_FUNDAMENTAL_TYPE_NUMBER, not
6105 DBX_OUTPUT_STANDARD_TYPES. Remove unnecessary #ifdefs.
6106 * sdbout.c: Include varray.h.
6107 (deferred_global_decls): New static.
6108 (sdb_debug_hooks): Update.
6109 (sdbout_global_decl): If we can't emit something right now,
6110 remember it in deferred_global_decls.
6111 (sdbout_finish): Just scan deferred_global_decls; don't call getdecls.
6112 (sdbout_init): Initialize deferred_global_decls.
6113 * Makefile.in: Update dependencies of sdbout.o.
6114 * dwarf2out.c (dwarf2out_type_decl): New function.
6115 (dwarf2_debug_hooks): Update.
6116 * vmsdbgout.c (vmsdbg_debug_hooks): Update.
6117 * c-decl.c (getdecls): Just return 0.
6118 (check_for_loop_decls): Don't use getdecls.
6119 (record_builtin_type): Call debug_hooks->type_decl on the TYPE_DECL.
6120 * c-objc-common.c (c_objc_common_finish_file): Don't use getdecls.
6122 2004-02-12 Ulrich Weigand <uweigand@de.ibm.com>
6124 * config/s390/s390.c (s390_sched_reorder2): Remove.
6125 (TARGET_SCHED_REORDER2): Do not redefine.
6127 2004-02-12 Zack Weinberg <zack@codesourcery.com>
6129 * c-parse.in (maybe_type_qual): Delete.
6130 (maybe_volatile, simple_asm_expr, asmdef, asm_stmt)
6131 (asm_argument): New grammar rules.
6132 (extdef_1): Use asmdef.
6133 (maybeasm): Move down with other asm rules; use simple_asm_expr.
6134 (xexpr): Move up with other expression rules.
6135 (stmt): Use asm_stmt.
6137 * c-typeck.c (build_asm_expr): New function - body mostly
6138 pulled from build_asm_stmt.
6139 (build_asm_stmt): Just handle tacking on the volatile qualifier.
6140 * c-tree.h (build_asm_expr, build_asm_stmt): Update prototypes.
6142 2004-02-12 Richard Sandiford <rsandifo@redhat.com>
6145 * config/mips/mips-protos.h (mips_output_aligned_decl_common): Declare.
6146 (mips_declare_object): Make variadic.
6147 * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use
6148 mips_output_aligned_decl_common.
6149 * config/mips/mips.c (mips_output_aligned_decl_common): New function.
6150 (mips_declare_object): Make variadic.
6152 2004-02-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
6154 * function.c (update_epilogue_consts): Teach about binary operations.
6156 * emit-rtl.c (set_mem_attributes_minus_bitpos): Don't kill
6157 previous MEM_VOLATILE in REF.
6158 * function.c (fixup_var_refs): Save volatile_ok and set to 1.
6159 * expr.c (emit_block_move_via_movstr): Save and restore volatile_ok.
6161 2004-02-12 Gunther Nikl <gni@gecko.de>
6163 * config.gcc: Restore support for m68k-openbsd.
6165 2004-02-12 Jan Hubicka <jh@suse.cz>
6167 * tree-optimize.c (tree_rest_of_compilation): Do not release
6170 2004-02-11 Matt Kraai <kraai@alumni.cmu.edu>
6172 * doc/install.texi: Fix the spelling of "explicitly".
6174 2004-02-11 Eric Christopher <echristo@redhat.com>
6176 * cppcharset.c (_cpp_interpret_string_notranslate): Rename and
6177 duplicate argument structure of cpp_interpret_string.
6178 * cpphash.h: Move prototype...
6180 * cpplib.c: Fix calls to match new function signature.
6182 2004-02-11 Joseph S. Myers <jsm@polyomino.org.uk>
6185 * cppexp.c (num_binary_op): Don't allow comma operators in #if
6186 constant expressions at all outside C99 mode if pedantic.
6188 2004-02-11 Uros Bizjak <uros@kss-loka.si>
6190 * optabs.h (enum optab_index): Add new OTI_log10 and OTI_log2.
6191 (log10_optab, log2_optab): Define corresponding macros.
6192 * optabs.c (init_optabs): Initialize log10_optab and log2_optab.
6193 * genopinit.c (optabs): Implement log10_optab and log2_optab
6194 using log10?f2 and log2?f2 patterns.
6195 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOG10{,F,L}
6196 using log10_optab, and BUILT_IN_LOG2{,F,L} using log2_optab.
6197 (expand_builtin): Expand BUILT_IN_LOG10{,F,L} and BUILT_IN_LOG2{,F,L}
6198 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
6200 * config/i386/i386.md (log10sf2, log10df2, log10xf2, log2sf2,
6201 log2df2, log2xf2): New patterns to implement log10, log10f, log10l,
6202 log2, log2f and log2l built-ins as inline x87 intrinsics.
6204 2004-02-11 Richard Henderson <rth@redhat.com>
6207 * flow.c (insn_dead_p): A clobber of a dead hard register is a
6208 dead insn after reload.
6210 2004-02-11 Ulrich Weigand <uweigand@de.ibm.com>
6212 * tree.h (frame_base_decl): Add GTY marker.
6213 * var-tracking.c (frame_base_decl): Likewise.
6215 2004-02-11 Daniel Berlin <dberlin@dberlin.org>
6217 * dwarf2out.c (output_loc_list): Remove no longer necessary, and now
6219 (add_location_or_const_value_attribute): Use text_section_label,
6220 not TEXT_SECTION_NAME.
6222 2004-02-11 Per Bothner <per@bothner.com>
6224 Represent column numbers using line-map's source_location.
6225 The "next available source_location" is now managed internally by
6226 line-maps.c rather than by clients.
6227 * line-map.h (struct line_map): New field column_bits.
6228 <from_line>: Rename field to start_location.
6229 (struct line_maps): New fields highest_location and max_column_hint.
6230 (linemap_check_files_exited): New declaration.
6231 (linemap_line_start): New declaration.
6232 (linemap_add): Remove from_line parameter; use highest_location field.
6233 (SOURCE_LINE, LAST_SOURCE_LINE): Modify to use column_bits.
6234 (SOURCE_COLUMN, LAST_SOURCE_LINE_LOCATION): New macros.
6235 (CURRENT_LINE_MAP): Remove macro.
6236 (linemap_position_for_column): New inline function.
6237 * line-map.c (linemap_init): Clear new fields.
6238 (linemap_check_files_exited): New function, extracted from ...
6239 (linemap_free): Use linemap_check_files_exited.
6240 (linemap_add): Remove from_line parameter. Various updates.
6241 (linemap_line_start): New function.
6242 (linemap_lookeup): Update for new field names.
6243 * cpphash.h (struct cpp_reader) <map>: Field removed. Because
6244 linemap_position_for_column may unpredictably change the current map,
6245 it is cleaner and simpler for us to not cache it in cpp_reader.
6246 (struct cpp_buffer): New sysp field.
6247 Changed warned_cplusplus_comments and from_stage3 to bitfields.
6248 * cppinit.c (cpp_read_min_file): pfile->map no longer exists.
6249 * cpplib.c (do_line, do_linemarker, _cpp_do_file_change): Get
6250 current map using linemap_lookup.
6251 (do_linemarker): Also set buffer's sysp field.
6252 (destringize_and_run): No longer need to decrement current line.
6253 * cppfiles.c (_cpp_stack_file): Set sysp from and in buffer.
6254 (search_path_head, open_file_failed): Use buffer's sysp.
6255 (cpp_make_system_header): Get current map using linemap_lookup.
6256 Also set buffer's sysp flag.
6257 * cppmacro.c (_cpp_builtin_macro_text): Likewise use linemap_lookup.
6258 * cpphash.h (CPP_INCREMENT_LINE): New macro.
6259 (struct cpp_buffer): Moved fields saved_cur, saved_rlimit to ...
6260 (struct cpp_reader): ... and adding saved_line_base field.
6261 * cpptrad.c (_cpp_overlay_buffer, _cpp_remove_overlay):
6262 Update accordingly. Don't adjust line.
6263 (_cpp_scan_out_logical_line): Use CPP_INCREMENT_LINE.
6264 * cpphash.c (CPP_IN_SYSTEM_HEADER): Replaced macro by ...
6265 (cpp_in_system_header): ... new inline function, using buffer's sysp.
6266 * cpperror.c (_cpp_begin_message): Update to use cpp_in_system_header.
6267 * cpplex.c (_cpp_lex_direct): Likewise.
6268 * cppmacro.c (_cpp_builtin_macro_text): Likewise.
6269 * cppmacro.c (_cpp_create_definition): Use buffer's sysp field.
6270 * cpplib.h (struct cpp_token): Rename line field to src_loc.
6271 Remove col field as it is now subsumed by src_loc.
6272 * cpperror.c: Update various field, parameter, and macro names.
6273 (print_location): If col==0, try SOURCE_COLUMN of line.
6274 (cpp_error): Use cur_token's src_loc field, rather than line+col.
6275 * cpplib.c (do_diagnostic): Token's src_loc fields replaces line+col.
6276 * cpplex.c (_cpp_process_line_notes, _cpp_lex_direct,
6277 _cpp_skip_block_comment): Use CPP_INCREMENT_LINE.
6278 (_cpp_temp_token): Replace cpp_token's line+col fields by src_loc.
6279 (_cpp_get_fresh_line): Don't need to adjust line for missing newline.
6280 (_cpp_lex_direct): Use linemap_position_for_column.
6281 * c-ppoutput.c (maybe_print_line, print_line): Don't take map
6282 parameter. Instead get it from the line_table global. Adjust callers.
6283 (print): Remove map field. Replace line field to src_line.
6284 (init_pp_output, account_for_newlines, maybe_print_line): Adjust.
6285 (cb_line_change): Use SOURCE_COLUMN. Minor optimizations.
6286 (pp_file_change): Use MAIN_FILE_P since we cannot checked print.map.
6287 Use LAST_SOURCE_LINE_LOCATION to "catch up" after #include.
6288 * cpptrad.c (copy_comment): Rename variable.
6289 * c-lex.c (map): Remove static variable, for same reason we removed
6290 cpp_reader's map field.
6291 (cb_line_change, cb_def_pragma, cb_define, cb_undef): Hence we need
6292 to call linemap_lookup.
6293 (cb_line_change): Token's line field replaced by src_loc.
6294 (fe_file_change): Use MAINFILE_P and LAST_SOURCE_LINE macros.
6297 * cpphash.h, cpperror.c, cpplib.h: Some renames of fileline to
6300 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
6302 * config/rs6000/altivec.md (*movv4si_internal): At least one
6303 operand must be register_operand.
6304 (*movv8hi_internal1): Likewise.
6305 (*movv16qi_internal1): Likewise.
6306 (*movv4sf_internal1): Likewise.
6308 2004-02-10 Aldy Hernandez <aldyh@redhat.com>
6310 * config/rs6000/spe.md ("*movv2si_internal"): Check for register
6312 (movv4hi_internal): Same.
6313 (movv2sf_internal): Same.
6314 (movv1di_internal): Same.
6316 2004-02-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
6318 * config/mips/mips.h (TARGET_OLDABI): Define. Use TARGET_NEWABI and
6319 TARGET_OLDABI consistently.
6320 * config/mips/mips.c (function_arg,mips_setup_incoming_varargs,
6321 mips_va_arg,override_options,compute_frame_size,
6322 mips_initial_elimination_offset,mips16_fp_args,build_mips16_call_stub
6323 ,mips_return_in_memory,mips_strict_argument_naming): Use TARGET_NEWABI
6324 and TARGET_OLDABI consistently.
6325 * config/mips/mips.md (exception_receiver): Likewise.
6326 * config/mips/linux64.h: Likewise.
6328 2004-02-11 Hartmut Penner <hpenner@de.ibm.com>
6330 * gcc/config/rs6000/rs6000.c (rs6000_override_options)
6331 Set AltiVec ABI and vrsave as default for ppc64 linux.
6332 (init_cumulative_args): Post error, if try to return
6333 value in AltiVec register without enable AltiVec.
6334 (function_arg_advance): Ditto for passing arguments.
6336 2004-02-11 Richard Sandiford <rsandifo@redhat.com>
6338 * emit-rtl.c (mark_label_nuses): Check that a LABEL_REF refers to
6339 a label before updating its usage count.
6341 2004-02-10 Matt Kraai <kraai@alumni.cmu.edu>
6343 * doc/install.texi: Remove extra cd.
6345 2004-02-10 Ziemowit Laski <zlaski@apple.com>
6347 * c-common.c (vector_size_helper): Remove; call
6348 reconstruct_complex_type() instead.
6349 * tree.c (reconstruct_complex_type): New function
6350 (formerly vector_size_helper() in c-common.c).
6351 (make_vector): Make externally visible.
6352 * tree.h (reconstruct_complex_type, make_vector): Add prototypes.
6354 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
6356 * config/h8300/h8300-protos.h: Add a prototype for
6357 h8300_regs_ok_for_stm.
6358 * config/h8300/h8300.c (h8300_regs_ok_for_stm): New.
6359 * config/h8300/h8300.md (stm_h8300s_2_advanced,
6360 stm_h8300s_2_normal, stm_h8300s_2, stm_h8300s_3_advanced,
6361 stm_h8300s_3_normal, stm_h8300s_3, stm_h8300s_4_advanced,
6362 stm_h8300s_4_normal, stm_h8300s_4, ldm_h8300s_2_advanced,
6363 ldm_h8300s_2_normal, ldm_h8300s_2, ldm_h8300s_3_advanced,
6364 ldm_h8300s_3_normal, ldm_h8300s_3, ldm_h8300s_4_advanced,
6365 ldm_h8300s_4_normal, ldm_h8300s_4): Use
6366 h8300_regs_ok_for_stm().
6368 2004-02-10 Danny Smith <dannysmith@users.sourceforge.net>
6371 * real.c (real_from_string): Look for 'X' as well as 'x' in
6374 2004-02-10 Kazu Hirata <kazu@cs.umass.edu>
6376 * config/h8300/h8300.md: Remove an incorrect comment about
6377 peephole2. Add comments.
6379 2004-02-10 Josef Zlomek <zlomekj@suse.cz>
6382 * emit-rtl.c (set_decl_incoming_rtl): New.
6383 * tree.h (set_decl_incoming_rtl): New.
6384 * function.c (assign_parms): Use set_decl_incoming_rtl for setting
6386 * ada/misc.c (adjust_decl_rtl): Likewise.
6388 2004-02-10 Per Bothner <per@bothner.com>
6390 * c-opts.c (c_common_post_options): Don't emit working directory
6391 in cpp output if -P was specified.
6393 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
6396 * fold-const.c (fold) <NEGATE_EXPR>: Convert result of
6397 negate_expr back to the original type.
6399 2004-02-10 Alan Modra <amodra@bigpond.net.au>
6401 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Don't
6404 2004-02-10 Paolo Bonzini <bonzini@gnu.org>
6406 * rtl.h (schedule_insns, schedule_ebbs, fix_sched_param,
6407 gen_lowpart_SUBREG): Move under the file in which they
6408 are actually declared.
6410 2004-02-10 Arnaud Charlet <charlet@act-europe.fr>
6412 * doc/sourcebuild.texi: Add libada documentation.
6414 * doc/install.texi: Update documentation on Ada build, now
6415 that the GNAT lib and tools are built automatically.
6417 2004-02-10 Richard Sandiford <rsandifo@redhat.com>
6419 * config/mips/mips.h (TARGET_GPWORD): Return false for TARGET_NEWABI
6422 2004-02-09 Ziemowit Laski <zlaski@apple.com>
6424 * objc/objc-act.c (get_super_receiver): Move '#ifdef OBJCPLUS'
6425 boundaries outside build_component_ref() call (a macro in ObjC++).
6427 2004-02-09 Bob Wilson <bob.wilson@acm.org>
6429 * config/xtensa/xtensa-protos.h (xtensa_copy_incoming_a7): Update.
6430 (init_cumulative_args): Likewise.
6431 (a7_overlap_mentioned_p): Delete prototype.
6432 * config/xtensa/xtensa.c (struct machine_function): Replace
6433 incoming_a7_copied field with need_a7_copy and vararg_a7 flags.
6434 Add set_frame_ptr_insn field.
6435 (xtensa_emit_move_sequence): Update call to xtensa_copy_incoming_a7.
6436 (xtensa_copy_incoming_a7): Rewrite to check need_a7_copy flag and check
6437 if the operand is an argument in a7. If so, copy a7 to a new pseudo
6438 at the function entry and replace the operand with the pseudo.
6439 (init_cumulative_args): Remove unused arguments. Add new "incoming"
6440 argument and record this flag in CUMULATIVE_ARGS.
6441 (function_arg): Remove result_mode and special-case code to handle
6442 arguments in a7. Instead, set need_a7_copy flag when there is an
6443 incoming argument in a7.
6444 (xtensa_expand_prologue): Remove code to search for set_frame_ptr insn
6445 and use the value recorded in cfun->machine->set_frame_ptr_insn.
6446 (xtensa_builtin_saveregs): Check for negative gp_left value. Set
6447 need_a7_copy and vararg_a7 flags. Use move_block_from_reg instead of
6449 (a7_overlap_mentioned_p): Delete.
6450 * config/xtensa/xtensa.h (CUMULATIVE_ARGS): Add "incoming" flag.
6451 (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Remove useless
6452 arguments to init_cumulative_args and pass "incoming" flag instead.
6453 (BLOCK_REG_PADDING): Delete.
6454 * config/xtensa/xtensa.md (movdi, movsf, movdf): Remove unnecessary
6455 checks for reload_in_progress and reload_completed. Update calls to
6456 xtensa_copy_incoming_a7.
6457 (ashlsi3): Rename existing insn to ashlsi3_internal. Add expander
6458 to call xtensa_copy_incoming_a7.
6460 2004-02-09 DJ Delorie <dj@redhat.com>
6462 * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): No
6463 longer modify standard_exec_prefix, standard_bindir_prefix, or
6464 standard_startfile_prefix.
6466 2004-02-09 James E Wilson <wilson@specifixinc.com>
6469 * c-common.c (c_expand_expr, case STMT_EXPR): Change expand_expr call
6470 to expand_expr_real call, and pass in alt_rtl as last argument.
6473 * builtin-types.def (BT_WORD, BT_FN_WORD_PTR): New.
6474 * builtins.c (expand_builtin): Handle BUILT_IN_EXTEND_POINTER.
6475 * builtins.def (BUILT_IN_EXTEND_POINTER): New.
6476 * except.c (expand_builtin_extend_pointer): New.
6477 * except.h (expand_builtin_extend_pointer): Declare.
6479 2004-02-09 David Edelsohn <edelsohn@gnu.org>
6481 * config/rs6000/rs6000.c (rs6000_emit_move): Remove splitting slow
6482 unaligned loads and stores.
6484 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6486 * config/mips/iris5.h (BSS_SECTION_ASM_OP): Define.
6487 * config/mips/iris6.h (BSS_SECTION_ASM_OP): Undef.
6489 * config/mips/iris6.h (TARGET_ASM_NAMED_SECTION): Moved ...
6490 * config/mips/iris5.h: ... here.
6491 * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Remove.
6493 * config/mips/iris6.h (EXTRA_SECTION_FUNCTIONS): Move ...
6494 * config/mips/iris5.h: ... here.
6496 2004-02-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6498 * configure.ac: Remove default executable files before AC_PROG_CC.
6499 * configure: Regenerate.
6501 2004-02-09 Kazu Hirata <kazu@cs.umass.edu>
6504 * config/h8300/h8300.c (byte_reg): Call abort() if asked to
6505 print a operand other than a register.
6507 2004-02-09 Roger Sayle <roger@eyesopen.com>
6509 * fold-const.c (fold) <NOP_EXPR>: Use the original type conversion
6510 tree code rather than call fold_convert, which doesn't specify a
6511 default floating point to integer conversion.
6513 2004-02-08 Bernardo Innocenti <bernie@develer.com>
6515 * config/m68k/m68k.c, config/m68k/m68k.md (SGS, SGS_CMP_ORDER): Remove
6516 code to support SGS assembler. Reformat adjacent code where possible.
6517 * config/m68k/m68k.c (switch_table_difference_label_flag): Remove
6519 * config/m68k/m68k.h (PRINT_OPERAND_PUNCT_VALID_P): Remove support
6521 * config/m68k/linux.h, config/m68k/m68k.c,
6522 * config/m68k/math-68881.h: Replace `%#' with `#' in inline asm
6523 macros and asm_printf() format strings.
6524 * config/m68k/m68kelf.h (ASM_OUTPUT_CASE_END): Remove macro definition.
6525 * config/m68k/linux.h: Update copyright.
6526 * config/m68k/linux.h, config/m68k/m68k.c: Remove traling whitespace.
6528 2004-02-08 Andreas Schwab <schwab@suse.de>
6529 Bernardo Innocenti <bernie@develer.com>
6531 * config/m68k/m68k.h (REGISTER_NAMES): Prefix each name with
6533 * (M68K_FP_REG_NAME): New macro to specify an alternate name for the
6534 frame pointer register, overridable by OS targets.
6535 * (M68K_REGNAME): Macro to obtain register name for asm output,
6536 eventually replacing %a6 with M68K_FP_REG_NAME.
6537 * config/m68k/coff.h (REGISTER_NAMES): Don't redefine.
6538 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
6539 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
6540 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Likewise.
6541 * config/m68k/m68k.c: Use M68K_REGNAME(x) in place of reg_names[x].
6543 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
6545 * target-def.h (TARGET_STRUCT_VALUE_RTX): Define as
6546 hook_rtx_tree_int_null.
6547 * targhooks.c (default_struct_value_rtx): Remove.
6548 * targhooks.h: Remove the prototype for
6549 default_struct_value_rtx.
6550 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
6551 config/fr30/fr30.c, config/h8300/h8300.c, config/i386/i386.c,
6552 config/ip2k/ip2k.c, config/iq2000/iq2000.c,
6553 config/m32r/m32r.c, config/mcore/mcore.c, config/mips/mips.c,
6554 config/mn10300/mn10300.c, config/pdp11/pdp11.c,
6555 config/rs6000/rs6000.c, config/s390/s390.c,
6556 config/stormy16/stormy16.c, config/v850/v850.c,
6557 config/xtensa/xtensa.c (TARGET_STRUCT_VALUE_RTX): Remove.
6558 * doc/tm.texi (TARGET_STRUCT_VALUE_RTX): Document the default.
6560 2004-02-08 Joseph S. Myers <jsm@polyomino.org.uk>
6562 * README.Portability: Change "ISO C89" to "ISO C90".
6563 * c-parse.in (primary, initelt): Likewise.
6565 2004-02-08 Richard Sandiford <rsandifo@redhat.com>
6567 * real.c (encode_ibm_extended): Normalize the input value before
6568 converting it to a double. Handle the case where a normal value
6571 2004-02-08 Kazu Hirata <kazu@cs.umass.edu>
6573 * c-objc-common.c (c_cannot_inline_tree_fn): Fix a typo in a
6575 * cse.c (preferrable): Change to preferable. Update all of its
6577 * genautomata.c (ainsn): Change
6578 first_ainsn_with_given_equialence_num to
6579 first_ainsn_with_given_equivalence_num. Update all of its
6582 2004-02-08 Jan Hubicka <jh@suse.cz>
6584 * schedule-ebb.c (schedule_ebbs): Do not allocate reg life data.
6586 2004-02-07 David Edelsohn <edelsohn@gnu.org>
6588 * function.c (assign_parms): Fix formatting.
6590 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6592 * default.h (PROMOTE_PROTOTYPES): Remove.
6593 * system.h (PROMOTE_FUNCTION_RETURN, PROMOTE_PROTOTYPES,
6594 STRUCT_VALUE_REGNUM, SETUP_INCOMING_VARARGS,
6595 EXPAND_BUILTIN_SAVEREGS): Poison.
6596 * target-def.h (TARGET_PROMOTE_FUNCTION_RETURN): Define as
6597 hook_bool_tree_false.
6598 (TARGET_PROMOTE_PROTOTYPES): Likewise.
6599 * target.h: Replace SETUP_INCOMING_VARARGS with
6600 targetm.calls.setup_incoming_varargs().
6601 * targhooks.c (default_promote_function_return): Remove.
6602 (default_promote_prototypes): Likewise.
6603 (default_struct_value_rtx): Always abort().
6604 (default_expand_builtin_saveregs): Always print an error
6606 (default_setup_incoming_varargs): Do nothing.
6607 (default_pretend_outgoing_varargs_named): Don't depend on
6608 SETUP_INCOMING_VARARGS.
6609 * targhooks.h: Remove the prototype for
6610 default_promote_function_return and
6611 default_promote_prototypes.
6613 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6615 * system.h (SHARED_SECTION_ASM_OP): Poison.
6616 * varasm.c (data_section): Don't use SHARED_SECTION_ASM_OP.
6617 * doc/tm.texi (SHARED_SECTION_ASM_OP): Remove.
6619 2004-02-07 Zack Weinberg <zack@codesourcery.com>
6622 * c-decl.c (diagnose_mismatched_decls): Only give special
6623 treatment when olddecl is DECL_BUILT_IN, if C_DECL_INVISIBLE
6625 (merge_decls): Don't clear DECL_BUILT_IN_CLASS and
6626 DECL_FUNCTION_CODE when defining a built-in function.
6627 Don't update DECL_ESTIMATED_INSNS.
6628 * dwarf2out.c (dwarf2out_decl): Don't ignore built-in
6630 * tree.h: Delete DECL_ESTIMATED_INSNS.
6631 * tree-inline.c (struct inline_data): Delete inlined_insns field.
6632 (expand_call_inline, optimize_inline_calls): Don't update
6633 DECL_ESTIMATED_INSNS nor inlined_insns.
6634 * cgraphunit.c (cgraph_analyze_function): Don't update
6635 DECL_ESTIMATED_INSNS.
6637 2004-02-07 Zack Weinberg <zack@codesourcery.com>
6639 * c-common.c (shadow_warning): Delete.
6640 * c-common.h (free_parser_stacks, shadow_warning, sw_kind): Delete.
6641 * c-decl.c (warn_if_shadowing): Issue shadow warnings directly.
6642 * c-opts.c (c_common_parse_file): Don't call free_parser_stacks.
6643 * c-parse.in (free_parser_stacks): Delete.
6645 2004-02-07 Nathanael Nerode <neroden@gcc.gnu.org>
6647 * Makefile.in, config/t-slibgcc-darwin, config/t-slibgcc-elf-ver,
6648 config/t-slibgcc-sld, config/mips/t-iris5-6, config/sh/t-linux:
6649 Use the top level mkinstalldirs, not the one in the gcc subdir.
6650 * mkinstalldirs: Remove (from the gcc subdir).
6652 2004-02-07 Roger Sayle <roger@eyesopen.com>
6655 * fold-const.c (fold_convert): New function to provide type
6656 conversion to the middle-end without using convert.
6657 (negate_expr, associate_trees, size_diffop, omit_one_operand,
6658 operand_equal_for_comparison_p, pedantic_omit_one_operand,
6659 invert_truthvalue, optimize_bit_field_compare, range_binop,
6660 decode_field_reference, make_range, build_range_check, unextend,
6661 fold_truthop, extract_muldiv_1, fold_mathfn_compare,
6662 fold_binary_op_with_conditional_arg, fold_inf_compare,
6663 fold_single_bit_test, fold, multiple_of_p): Replace all calls to
6664 convert with calls to fold_convert.
6666 2004-02-07 Jan Hubicka <jh@suse.cz>
6668 * genrecog.c (find_operand): add extra argument stop.
6669 (validate_pattern): Verify that mach_dup is duplicating operand
6670 defined lexically earlier.
6672 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6674 * config.gcc: Don't mention MAX_LONG_TYPE_SIZE.
6675 * system.h (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6676 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Poison.
6677 * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
6678 config/ia64/ia64.h, config/ip2k/ip2k.h,
6679 config/iq2000/iq2000.h, config/mips/iris5.h,
6680 config/mips/mips.h, config/pa/pa-64.h, config/pa/pa.h,
6681 config/rs6000/aix51.h, config/rs6000/aix52.h,
6682 config/rs6000/darwin.h, config/rs6000/rs6000.h,
6683 config/s390/s390.h, config/sh/sh.h, config/sparc/freebsd.h,
6684 config/sparc/linux.h, config/sparc/linux64.h,
6685 config/sparc/netbsd-elf.h, config/sparc/sparc.h,
6686 config/xtensa/xtensa.h: Remove the definitions of
6687 MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE, and/or
6688 MAX_WCHAR_TYPE_SIZE.
6689 * doc/tm.texi (MAX_LONG_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
6690 MAX_WCHAR_TYPE_SIZE, GCOV_TYPE_SIZE): Remove.
6692 2004-02-07 Stephane Carrez <stcarrez@nerim.fr>
6695 * config/m68hc11/m68hc11.md ("doloop_end"): Pass dummy arguments to
6698 2004-02-07 Josef Zlomek <zlomekj@suse.cz>
6700 * var-tracking.c (vt_add_function_parameters): Surround checkings by
6701 #ifdef ENABLE_CHECKING and #endif.
6703 2004-02-07 Roger Sayle <roger@eyesopen.com>
6705 * fold-const.c (negate_expr_p, negate_expr): Optimize -(A+B) into
6706 either (-A)-B or (-B)-A, if A or B is easily negated respectively.
6707 (fold) <MINUS_EXPR>: Optimize (A*C) - (B*C) -> (A-B)*C for both
6708 integer types and floating point with unsafe_math_optimizations.
6709 Add similar optimization for (A*C1) - (A*C2) -> A*(C1-C2).
6710 Optimize A - B as A + (-B), if B is easily negated.
6712 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6714 * c-ppoutput.c, cfganal.c, diagnostic.h, print-rtl.c,
6715 config/darwin.c, config/darwin.h, config/ia64/ia64-c.c,
6716 config/m32r/linux.h, config/rs6000/ppc64-fp.c,
6717 config/sparc/openbsd.h, doc/makefile.texi, doc/passes.texi:
6720 2004-02-07 Kazu Hirata <kazu@cs.umass.edu>
6722 * c-ppoutput.c, var-tracking.c: Fix comment typos.
6724 2004-02-06 James E Wilson <wilson@specifixinc.com>
6726 * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Only define for
6727 glibc 2.3 or better.
6729 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6731 * doc/tm.texi (TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL): Change
6732 to FLOAT_LIB_COMPARE_RETURNS_BOOL.
6734 2004-02-07 Alan Modra <amodra@bigpond.net.au>
6736 * config/rs6000/t-linux64 (LIB2FUNCS_EXTRA): Add darwin-ldouble.c.
6737 (SHLIB_MAPFILES): Add libgcc-ppc64.ver.
6738 (SHLIB_MKMAP_OPTS): Delete.
6739 (TARGET_LIBGCC2_CFLAGS): Add -specs.
6740 (bispecs): Add rule.
6741 * config/rs6000/libgcc-ppc64.ver: New file.
6742 * config/rs6000/ppc64-fp.c (__fixtfdi, __floatditf): New functions.
6743 (__floatdidf, __floatdisf): Optimize multiply.
6744 (__fixunstfdi): New function.
6745 * config/rs6000/rs6000.c (rs6000_complex_function_value): Allow for
6746 real and imag parts larger than one register.
6747 (function_arg): Correct type of reg used when fp arg split partially
6749 * config/rs6000/darwin-ldouble.c: Protect with #if !_SOFT_FLOAT
6750 and __MACH__ or __powerpc64__.
6752 2004-02-06 Roger Sayle <roger@eyesopen.com>
6753 Ulrich Weigand <uweigand@de.ibm.com>
6755 * builtins.c (expand_builtin_signbit): Use extract_bit_field instead
6756 of gen_highpart or gen_lowpart when the floating point format is
6757 wider than the result mode.
6759 2004-02-06 Andrew Pinski <pinskia@physics.uc.edu>
6761 * dwarf2out.c (loclabel_num): Move into #ifdef
6762 DWARF2_DEBUGGING_INFO.
6764 2004-02-06 Ziemowit Laski <zlaski@apple.com>
6766 * objc/objc-act.c (build_super_template) the 'class' field of
6767 'struct _objc_super' shall be named 'super_class' #ifdef OBJCPLUS.
6768 (get_super_receiver): Likewise.
6770 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6772 * reload1.c (check_eliminable_occurrences): Optimize the reset
6774 (eliminate_regs_in_insn): Likewise.
6776 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
6777 Josef Zlomek <zlomekj@suse.cz>
6779 * dwarf2out.c (struct gcc_debug_hooks): Call dwarf2out_begin_function
6780 at the beginning of function, call dwarf2out_var_location for
6781 NOTE_INSN_VAR_LOCATION note.
6782 (struct var_loc_node, struct var_loc_list_def, loclabel_num,
6783 decl_loc_table): New.
6784 (lookup_decl_loc): New function.
6785 (add_var_loc_to_decl): New function.
6786 (based_loc_descr): Added parameter can_use_fbreg, DW_OP_fbreg is used
6787 only if can_use_fbreg.
6788 (mem_loc_descriptor): Added parameter can_use_fbreg, pass it to other
6790 (loc_descriptor): Likewise. Process VAR_LOCATION.
6791 (concat_loc_descriptor): Call loc_descriptor with can_use_fbreg == true.
6792 (loc_descriptor_from_tree): Call mem_loc_descriptor with
6793 can_use_fbreg == true.
6794 (add_location_or_const_value_attribute): Added parameter enum
6795 dwarf_attribute attr, generate attribute ATTR. Create the location list.
6796 (add_bound_info): Call loc_descriptor with can_use_fbreg == true.
6797 (gen_formal_parameter_die): Call add_location_or_const_value_attribute
6798 with attr == DW_AT_location.
6799 (gen_subprogram_die): Generate the location list for DW_AT_frame_base
6800 if frame_base_decl is defined and has a location list.
6801 (gen_variable_die): Call add_location_or_const_value_attribute with
6802 attr == DW_AT_location.
6803 (dwarf2out_var_location): New function.
6804 (dwarf2out_begin_function): New function.
6805 (dwarf2out_init): Create decl_loc_table.
6807 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6809 * loop.c (force_movables): Transitively increase the priorities of
6810 all insns forces by an insn, not just the first one.
6812 2004-02-06 Josef Zlomek <zlomekj@suse.cz>
6813 Daniel Berlin <dberlin@dberlin.org>
6815 Josef Zlomek <zlomekj@suse.cz>
6816 * Makefile.in (var-tracking.o): New.
6817 * common.opt (fvar-tracking): New.
6818 * flags.h (flag_var_tracking): New.
6819 * gengtype.c (adjust_field_rtx_def): NOTE_INSN_VAR_LOCATION was added.
6820 * opts.c (common_handle_option): Add OPT_fvar_tracking.
6821 * print-rtl.c (print_rtx): NOTE_INSN_VAR_LOCATION was added.
6822 * rtl.c (note_insn_name): Likewise.
6823 * rtl.def (VAR_LOCATION): New.
6824 * rtl.h (NOTE_VAR_LOCATION): New.
6825 (NOTE_VAR_LOCATION_DECL): New.
6826 (NOTE_VAR_LOCATION_LOC): New.
6827 (enum insn_note): NOTE_INSN_VAR_LOCATION was added.
6828 (variable_tracking_main): New exported function.
6829 * timevar.def (TV_VAR_TRACKING): New.
6830 * toplev.c (enum dump_file_index): Added DFI_vartrack.
6831 (dump_file): "vartrack" was added (-dV).
6832 (flag_var_tracking): New.
6833 (f_options): "var-tracking" was added.
6834 (rest_of_handle_variable_tracking): New function.
6835 (rest_of_compilation): Run variable tracking.
6836 (process_options): If user has not specified flag_var_tracking set it
6837 according to optimize, debug_info_level and debug_hooks.
6838 * tree.h (frame_base_decl): New.
6839 * var-tracking.c: New file.
6840 * config/ia64/ia64.c (ia64_flag_var_tracking): New variable.
6841 (ia64_override_options): Set flags to run variable tracking in machine
6842 dependent reorg instead of toplev.c.
6843 (ia64_reorg): Run variable tracking if wanted.
6844 * doc/invoke.texi: Mention variable tracking in -dV,
6845 add and -fvar-tracking.
6846 * doc/passes.texi: Added variable tracking pass.
6848 Daniel Berlin <dberlin@dberlin.org>
6849 * debug.h (struct gcc_debug_hooks): Added var_location debug hook.
6850 * dbxout.c (dbx_debug_hooks): Likewise.
6851 (xcoff_debug): Likewise.
6852 * debug.c (do_nothing_debug_hooks): Likewise.
6853 * dwarf2out.c (dwarf2_debug_hooks): Likewise.
6854 * dwarfout.c (dwarf_debug_hooks): Likewise.
6855 * sdbout.c (sdb_debug_hooks): Likewise.
6856 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
6857 * final.c (final_scan_insn): Call var_location debug hook for each
6858 NOTE_INSN_VAR_LOCATION.
6860 2004-02-06 Jan Hubicka <jh@suse.cz>
6862 * flow.c (update_life_info): Allocate reg_deaths when called from
6864 (attempt_auto_inc): Update life ranges accordingly.
6866 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6869 * dwarf2out.c (gen_decl_die): Handle anonymous struct members.
6871 2004-02-06 Ulrich Weigand <uweigand@de.ibm.com>
6873 * cfganal.c (flow_call_edges_add): Never split a libcall block.
6875 2004-02-06 Daniel Berlin <dberlin@dberlin.org>
6877 * dwarf2out.c (output_loc_list): Don't use deltas if we have
6878 a separate line info table in use.
6879 Use the correct size for terminators.
6880 (output_die): Use offset, not delta.
6882 2004-02-06 H.J. Lu <hongjiu.lu@intel.com>
6884 * doc/invoke.texi: Remove the pni option from -mfpmath=.
6886 2004-02-06 Jan Hubicka <jh@suse.cz>
6888 * recog.c (split_all_insns): Do not update reg info.
6889 * regrename.c (regrename_optimize): Likewise.
6890 * toplev.c (rest_of_handle_reorder_blocks): Likewise.
6891 * flow.c (struct propagate_block_info): Add insn_num field.
6892 (reg_deaths): New array.
6893 (life_analysis): Free reg_deaths info.
6894 (allocate_reg_life_data): Allocate reg_deaths array.
6895 (propagate_one_insn): Use new array.
6896 (init_propagate_block): Initialize it.
6897 (free_propagate_block_info): Finish compuation of
6899 (attempt_auto_inc): Sanity check that REG_INFO is not
6900 computed at same time.
6901 (mark_used_regs): Update new array.
6903 * reg-stack.c (subst_stack_regs): Unshare clobbers before
6906 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6908 * config/s390/s390.md (*extendsiqi2_short_displ): Change to
6909 *extendqisi2_short_displ.
6911 2004-02-06 Alan Modra <amodra@bigpond.net.au>
6913 * doc/tm.texi (INIT_CUMULATIVE_ARGS): Update doco.
6914 * calls.c (expand_call): Pass n_named_args to INIT_CUMULATIVE_ARGS.
6915 (emit_library_call_value_1): Likewise pass nargs.
6916 * expr.c (block_move_libcall_safe_for_call_parm): Pass 3 here.
6917 * function.c (assign_parms): Pass -1 to INIT_CUMULATIVE_ARGS.
6918 * config/rs6000/rs6000.c (init_cumulative_args): Use n_named_args
6919 parameter instead of scanning TYPE_ARGS_TYPES to count args.
6920 * config/rs6000/rs6000-protos.h (init_cumulative_args): Update
6922 * config/rs6000/rs6000.h (INIT_CUMULATIVE_ARGS): Pass extra arg.
6923 (INIT_CUMULATIVE_INCOMING_ARGS): Set extra arg to 1000.
6924 (INIT_CUMULATIVE_LIBCALL_ARGS): Set extra arg to 0.
6925 * config/sh/sh.c (sh_output_mi_thunk): Pass 1 as n_named_args to
6926 INIT_CUMULATIVE_ARGS.
6927 * config/alpha/alpha.h (INIT_CUMULATIVE_ARGS): Update.
6928 * config/alpha/unicosmk.h, config/alpha/vms.h, config/arc/arc.h,
6929 config/arm/arm.h, config/avr/avr.h, config/c4x/c4x.h,
6930 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.h,
6931 config/h8300/h8300.h, config/i386/i386.h, config/i860/i860.h,
6932 config/ia64/ia64.h, config/ip2k/ip2k.h, config/iq2000/iq2000.h,
6933 config/iq2000/iq2000.c, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
6934 config/m68k/m68k.h, config/mcore/mcore.h, config/mips/mips.h,
6935 config/mmix/mmix.h, config/mn10300/mn10300.h, config/ns32k/ns32k.h,
6936 config/pa/pa.h, config/pdp11/pdp11.h, config/s390/s390.h,
6937 config/sh/sh.h, config/sparc/sparc.h, config/stormy16/stormy16.h,
6938 config/v850/v850.h, config/vax/vax.h, config/xtensa/xtensa.h: Likewise.
6940 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6942 * genemit.c (gen_exp) [CONST_INT]: Use const_int_rtx whenever
6945 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6947 * reload1.c (eliminate_regs_in_insn): If a set has a REG_EQUAL
6948 note containing (plus (reg) (const_int)), where reg is an
6949 eliminable reg, then perform the register elimination without
6950 depending on eliminate_regs().
6952 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6954 * config/arc/arc.c (arc_return_in_memory): Check the return
6955 value of int_size_in_bytes against -1. Don't check
6957 * config/avr/avr.c (avr_return_in_memory): Check the return
6958 value of int_size_in_bytes against -1.
6959 * config/ip2k/ip2k.c (ip2k_return_in_memory): Likewise.
6960 * config/m68hc11/m68hc11.c (m68hc11_return_in_memory):
6962 * config/mcore/mcore.c (mcore_return_in_memory): Likewise.
6963 * config/stormy16/stormy16.c (xstormy16_return_in_memory):
6966 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6968 * config/frv/frv-protos.h: Remove the prototype for
6969 frv_setup_incoming_varargs.
6970 * config/frv/frv.c (TARGET_SETUP_INCOMING_VARARGS): New.
6971 (frv_setup_incoming_varargs): Make it static.
6972 * config/frv/frv.h (SETUP_INCOMING_VARARGS): Remove.
6974 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6976 * config/fr30/fr30-protos.h: Remove the prototype for
6977 fr30_setup_incoming_varargs.
6978 Update the prototypes for fr30_num_arg_regs and
6979 fr30_function_arg_partial_nregs.
6980 * config/fr30/fr30.c (TARGET_STRUCT_VALUE_RTX): New.
6981 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6982 (fr30_setup_incoming_varargs): Make it static.
6983 Add argument second_time. Don't do anything when second_time
6985 (fr30_num_arg_regs): Change the type of the first argument to
6987 (fr30_function_arg_partial_nregs): Change the type of the
6988 second argument to enum machine_mode.
6989 * config/fr30/fr30.h (STRUCT_VALUE): Remove.
6990 (SETUP_INCOMING_VARARGS): Remove.
6992 2004-02-06 Kazu Hirata <kazu@cs.umass.edu>
6994 * config/arc/arc-protos.h: Remove the prototype for
6995 arc_setup_incoming_varargs.
6996 * config/arc/arc.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
6997 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
6998 (arc_setup_incoming_varargs): Make it static.
6999 (arc_external_libcall): Likewise.
7000 * config/arc/arc.h (SETUP_INCOMING_VARARGS): Remove.
7001 Remove the commented-out definition of
7002 ASM_OUTPUT_EXTERNAL_LIBCALL.
7004 2004-02-05 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
7006 * config/sh/t-linux (SHLIB_INSTALL): Prepend $$(DESTDIR)
7007 to $$(slibdir) in the installation commands.
7009 2004-02-05 David Edelsohn <edelsohn@gnu.org>
7011 * reload.c (refers_to_regno_for_reload_p): Index hard_regno_nregs
7012 with inner_regno, not regno.
7013 * rtlanal.c (refers_to_regno_p): Same.
7015 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7017 * config.gcc: Remove i370 support.
7019 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7021 * doc/install.texi: Update automake and autoconf version
7022 requirements. Note where to find gcj automake version.
7024 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7026 * Makefile.in (generate-manpages): Move dependencies to ...
7028 * doc/makefile.texi: Document new targets.
7029 * doc/sourcebuild.texi (Make-lang.in): Document new langhooks.
7031 2004-02-05 Kelley Cook <kcook@gcc.gnu.org>
7034 Makefile.in (srcextra): Add a level of indirection to ...
7035 (gcc.srcextra): ... here.
7036 (po-generated): Delete.
7037 (po/$(PACKAGE).pot: Use srcextra instead of po-generated. Depend on
7039 (start.encap): Remove superfluous lang.srcextra dependency.
7040 objc/Make-lang.in (po-generated): Delete.
7042 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7044 * config/ia64/ia64.c (REG_GP): Remove.
7046 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7048 * config/mips/iris5gas.h (PREFERRED_DEBUGGING_TYPE): Define.
7050 2004-02-05 Devang Patel <dpatel@apple.com>
7052 * dwarf2out.c (force_type_die): Look up input type itself
7053 instead of root_type() of type.
7055 2004-02-05 Andreas Krebbel <krebbel1@de.ibm.com>
7057 * config/s390/s390.md ("*tmqidi_ext"): New insn.
7058 ("*extendqidi2_short_displ", "*extendsiqi2_short_displ"): Old
7059 pre-reload splitters are transformed to post-reload
7060 define_insn_and_split patterns.
7061 ("*tmqisi_ext"): Renamed old "*tmqi_ext".
7063 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7065 * config/cris/cris.h: Replace PROMOTE_PROTOTYPES with
7066 TARGET_PROMOTE_PROTOTYPES.
7068 2004-02-05 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7072 2004-01-15 Geoffrey Keating <geoffk@apple.com>
7074 * c-typeck.c (constructor_asmspec): Delete.
7075 (struct initializer_stack): Delete field 'asmspec'.
7076 (start_init): Delete saving of asmspec.
7077 (finish_init): Don't update constructor_asmspec.
7078 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
7079 * stmt.c (expand_asm): Duplicate strings from tree.
7080 (expand_asm_operands): Likewise.
7081 * tree.c (tree_size): Update computation of size of STRING_CST.
7082 (make_node): Don't make STRING_CST nodes.
7083 (build_string): Allocate string with tree node.
7084 * tree.def (STRING_CST): Update comment.
7085 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
7086 (tree_string): Place contents of string in tree node.
7087 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
7090 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
7092 * diagnostic.h (DEFINE_DIAGNOSTIC_KIND): Change parameter M to
7095 2004-02-05 Dorit Naishlos <dorit@il.ibm.com>
7097 * config/rs6000/altivec.md (*movv4si_internal): At least one
7098 operand must be altivec_register_operand.
7099 (*movv8hi_internal1): Likewise.
7100 (*movv16qi_internal1): Likewise.
7101 (*movv4sf_internal1): Likewise.
7103 2004-02-05 David Edelsohn <edelsohn@gnu.org>
7105 * configure.ac (gcc_cv_as_powerpc_mfcrf): Correct test for mfcr.
7106 * configure: Regenerate.
7108 2004-02-05 Jonathan Wakely <redi@gcc.gnu.org>
7110 * doc/install.texi: Update description of --gxx-include-dir to
7111 give correct default value.
7113 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7115 * config/h8300/h8300.h (REG_OK_FOR_BASE_NONSTRICT_P): Replace
7118 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7120 * config/pa/pa.c (emit_hpdiv_const): Replace gen_rtx with
7123 2004-02-05 Kazu Hirata <kazu@cs.umass.edu>
7125 * emit-rtl.c: Update the comment about the file.
7127 2004-02-05 Joseph S. Myers <jsm@polyomino.org.uk>
7129 * sourcebuild.texi (Test Idioms): Update testcase naming
7132 2004-02-04 Per Bothner <per@bothner.com>
7134 Partially revert/redo 2003-10-01 change; fix -fworking-directory.
7135 * c-ppoutput.c (pp_dir_change): New function.
7136 * c-common.h (pp_dir_change): New declaration.
7137 * cpplib.h (struct cpp_options): Remove working_directory field.
7138 * cppinit.c (cpp_find_main_file, cpp_push_main_file): Merge back to
7139 (cpp_read_main_file): as before 10-01. Call _cpp_stack_file.
7140 Don't handle -fworking_directory here, but in c_common_post_options.
7141 (read_original_directory): Don't back up when done.
7142 Don't clear no-longer used working_directory flag.
7143 * cpplib.h: Update declarations to match.
7144 * c-lex.c (cb_dir_change): Move to c-opts.c.
7145 (init_c_lex): Don't set dir_change callback here, since we want
7146 to set it even if flag_preprocess_only.
7147 * c-opts.c (cb_dir_change): Function moved from c-lex.c.
7148 (c_common_post_options): Set dir_change callback.
7149 Call pp_dir_change if approporiate.
7150 (finish_options): Don't call cpp_find_main_file here. Hence remove
7151 unneeded parameter and result. Do LC_RENAME for <built-in>.
7152 (c_common_post_options): Call cpp_read_main_file here instead.
7153 (c_common_init): Update accordingly.
7154 (push_command_line_include): Don't cpp_push_main_file.
7155 Do LC_RENAME rather than LC_LEASE to get back to main file.
7156 Compared to pre-10-01 version, inline cpp_rename_to_main_file.
7157 (c_common_parse_file): Call cpp_read_main_file for subsequent main
7158 files, but call finish_options for all files.
7159 * c-opts.c (sanitize_cpp_opts): Don't set cpp_opts->working_directory.
7160 * fix-header.c (read_scan_file): Call cpp_read_main_file instead of
7161 cpp_find_main_file + cpp_push_main_file.
7162 * c-lex.c (fe_file_change): Don't set main_input_filename here.
7163 * opts.c (handle_options): Only set main_input_filename first time.
7165 2004-02-05 Ian Lance Taylor <ian@wasabisystems.com>
7167 * config/arm/arm.h (REG_CLASS_NAMES): Add missing comma.
7169 2004-02-04 Geoffrey Keating <geoffk@apple.com>
7171 * reload.c (find_equiv_reg): When checking for register overlap,
7172 don't index hard_regno_nregs with a pseudo-reg.
7174 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7176 * config/s390/s390.c (s390_trampoline_template): Remove gen_rtx().
7178 2004-02-04 David Edelsohn <edelsohn@gnu.org>
7180 * reload.c (refers_to_regno_for_reload_p): Test regno, not inner_regno,
7181 against FIRST_PSEUDO_REGISTER.
7183 2004-02-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7185 * Makefile.in: Move target, host overrides after per-language
7188 * config/mips/t-iris5-as (FORCE_DEBUG_ADAFLAGS): Clear.
7189 (GNATLIBCFLAGS): Remove -g.
7191 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7193 * config/alpha/alpha.c, config/arc/arc.c, config/avr/avr.c,
7194 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7195 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
7196 config/m32r/m32r.c, config/ns32k/ns32k.c, config/pa/pa.c,
7197 config/pdp11/pdp11.c, config/rs6000/rs6000.c,
7198 config/sparc/sparc.c, config/vax/vax.c: Revert the
7199 replacements of "FALLTHRU" with "Fall through" done in the
7202 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7204 * config/darwin.c, config/darwin.h, config/freebsd-spec.h,
7205 config/arm/arm.c, config/arm/arm.md,
7206 config/cris/cris-protos.h, config/fr30/fr30.c,
7207 config/fr30/fr30.h, config/h8300/h8300.c, config/i386/i386.h,
7208 config/i860/i860.c, config/i860/i860.h, config/ia64/ia64-c.c,
7209 config/ia64/ia64.c, config/ia64/ia64.h, config/ip2k/ip2k.h,
7210 config/ip2k/ip2k.md, config/ip2k/libgcc.S,
7211 config/m32r/linux.h, config/m32r/m32r.c, config/m32r/m32r.h,
7212 config/m68k/m68k.c, config/m68k/netbsd-elf.h,
7213 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.md,
7214 config/ns32k/netbsd.h, config/ns32k/ns32k.c,
7215 config/ns32k/ns32k.h, config/pdp11/pdp11.h,
7216 config/rs6000/darwin-ldouble.c, config/s390/s390.h,
7217 config/s390/s390.md, config/sparc/netbsd-elf.h,
7218 config/sparc/openbsd.h, config/sparc/sparc.c,
7219 config/xtensa/lib2funcs.S: Fix comment formatting.
7221 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7223 * config/alpha/alpha.c, config/arc/arc.c,
7224 config/arm/arm-cores.def, config/arm/arm.c, config/arm/arm.h,
7225 config/arm/arm1026ejs.md, config/arm/arm1136jfs.md,
7226 config/arm/arm926ejs.md, config/arm/vfp.md, config/avr/avr.c,
7227 config/c4x/c4x.c, config/cris/cris.c, config/frv/frv.md,
7228 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
7229 config/ia64/ia64.c, config/ia64/unwind-ia64.c,
7230 config/iq2000/iq2000.c, config/m32r/m32r.c,
7231 config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
7232 config/ns32k/ns32k.c, config/pa/pa.c, config/pdp11/pdp11.c,
7233 config/rs6000/darwin-ldouble.c, config/rs6000/rs6000.c,
7234 config/rs6000/rs6000.h, config/sparc/sparc.c,
7235 config/vax/vax.c: Fix comment typos. Follow spelling
7238 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7240 * alloc-pool.h, c-convert.c, c-lang.c, c-tree.h,
7241 caller-save.c, df.h, genconfig.c, global.c, lcm.c,
7242 ra-rewrite.c, ra.c, regclass.c, regs.h, resource.c,
7243 sched-rgn.c, config/arm/aof.h, config/arm/cirrus.md,
7244 config/arm/fpa.md, config/arm/iwmmxt.md,
7245 config/arm/netbsd-elf.h, config/arm/netbsd.h,
7246 config/m68hc11/m68hc11.md, config/mips/iris5.h,
7247 config/mn10300/mn10300.md, config/rs6000/altivec.md,
7248 config/sparc/netbsd-elf.h: Update copyright.
7250 2004-02-04 Eric Botcazou <ebotcazou@libertysurf.fr>
7252 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
7253 for all modes whose size is greater than 8 bytes if ARCH32.
7254 (sparc_va_arg): Handle all modes whose size is greater than 8 bytes
7255 by reference if ARCH32.
7257 2004-02-04 Aldy Hernandez <aldyh@redhat.com>
7259 * cgraphunit.c (cgraph_postorder): Fix typo in comment.
7261 2004-02-04 Ulrich Weigand <uweigand@de.ibm.com>
7263 * config/s390/s390.md ("*la_64" + peepholes, "reload_indi"): Move
7264 to before adddi3 insn patterns.
7265 ("*la_31" + peepholes, "*la_31_and", "*la_31_and_cc", "force_la_31",
7266 "reload_insi"): Move to before addsi3 insn patterns.
7268 2004-02-04 Mark Mitchell <mark@codesourcery.com>
7270 * calls.c (initialize_argument_information): Add CALL_FROM_THUNK_P
7271 parameter. Use it instead of current_function_is_thunk.
7272 * function.h (struct function): Update documentation for is_thunk.
7273 * tree.h (CALL_FROM_THUNK_P): New macro.
7274 * config/alpha/alpha.c (alpha_sa_mask): Do not check
7275 no_new_pseudos when testing current_function_is_thunk.
7276 * config/rs6000/rs6000.c (rs6000_ra_ever_killed): Likeiwse.
7278 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7280 * doc/tm.texi: Replace SETUP_INCOMING_VARARGS with
7281 TARGET_SETUP_INCOMING_VARARGS.
7283 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7285 * emit-rtl.c (gen_rtx): Remove.
7286 * genattrtab.c: Don't mention gen_rtx in a comment.
7287 * rtl.h: Remove the prototype for gen_rtx.
7288 * doc/md.texi: Replace gen_rtx with gen_rtx_REG.
7290 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7292 * config/arc/arc.h, config/fr30/fr30.h
7293 (SETUP_INCOMING_VARARGS): Remove the target-independent
7295 * doc/tm.texi: Don't mention deprecated target macros.
7297 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7299 * config/fr30/fr30.h (FUNCTION_VALUE): Remove the
7300 target-independent comment.
7302 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7304 * doc/interface.texi, doc/tm.texi, doc/trouble.texi: Don't
7305 mention deprecated target macros.
7307 2004-02-04 Kazu Hirata <kazu@cs.umass.edu>
7309 * config.gcc: Remove obsolete ports and configurations.
7310 * config/linux-aout.h, config/netware.h,
7311 config/t-linux-gnulibc1, config/d30v/abi,
7312 config/d30v/d30v-protos.h, config/d30v/d30v.c,
7313 config/d30v/d30v.h, config/d30v/d30v.md,
7314 config/d30v/libgcc1.asm, config/d30v/t-d30v,
7315 config/dsp16xx/dsp16xx-modes.def,
7316 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
7317 config/dsp16xx/dsp16xx.h, config/dsp16xx/dsp16xx.md,
7318 config/i370/README, config/i370/i370-c.c,
7319 config/i370/i370-protos.h, config/i370/i370.c,
7320 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
7321 config/i370/mvs.h, config/i370/oe.h, config/i370/t-i370,
7322 config/i386/freebsd-aout.h, config/i386/linux-aout.h,
7323 config/i386/moss.h, config/i386/netware.h,
7324 config/i386/svr3.ifile, config/i386/svr3dbx.h,
7325 config/i386/svr3gas.h, config/i386/svr3z.ifile,
7326 config/i386/t-udk, config/i386/udk.h, config/i386/vsta.h,
7327 config/i960/i960-c.c, config/i960/i960-coff.h,
7328 config/i960/i960-modes.def, config/i960/i960-protos.h,
7329 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
7330 config/i960/rtems.h, config/i960/t-960bare,
7331 config/m68k/hp310.h, config/m68k/hp320.h,
7332 config/m68k/hp320base.h, config/m68k/m68kv4.h,
7333 config/m68k/netbsd.h, config/m68k/sgs.h, config/m68k/t-hp320:
7335 * doc/extend.texi, doc/install.texi, doc/invoke.texi,
7336 doc/md.texi: Remove mentions of obsolete ports.
7338 2004-02-04 Jan Hubicka <jh@suse.cz>
7340 * alias.c (find_base_term, get_addr): Do not dereference NULL
7341 pointer when all VALUE's locations has been invalidated.
7342 (rtx_equal_for_memref_p): Simplify checking of VALUEs.
7344 2004-02-03 Wolfgang Bangerth <bangerth@dealii.org>
7346 * doc/invoke.texi (x86 options): Fix spelling/wording.
7348 2004-02-03 Richard Sandiford <rsandifo@redhat.com>
7350 * config/mips/iris5.h (ASM_OUTPUT_ASCII): Use mips_output_ascii to
7351 put the original string in a comment.
7352 * config/mips/mips-protos.h (mips_output_ascii): Add prefix argument.
7353 * config/mips/mips.c (mips_output_ascii): Likewise.
7354 * config/mips/mips.h (ASM_OUTPUT_ASCII): Adjust accordingly.
7356 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7358 * system.h (GIV_SORT_CRITERION): Poison.
7359 * config/avr/avr.h (GIV_SORT_CRITERION): Remove.
7360 * config/ip2k/ip2k.h (GIV_SORT_CRITERION): Likewise.
7362 2004-02-03 Roger Sayle <roger@eyesopen.com>
7365 * expr.c (expand_expr_real) <MULT_EXPR>: When performing widening
7366 multiplies with a multiplication of the wrong signedness, its the
7367 signedness of the multiplication that we've performed that needs to
7368 be passed to expand_mult_highpart_adjust. Avoid emitting a nop-move
7369 if expand_mult_highpart_adjust places the result in target.
7371 2004-02-03 Richard Henderson <rth@redhat.com>
7373 * varasm.c (const_desc_rtx_sym_eq): Compare symbol strings.
7375 2004-02-03 J"orn Rennecke <joern.rennecke@superh.com>
7377 * config.gcc (sh[234]l): Use little endian fragments.
7379 2004-02-03 Paul Koning <pkoning@equallogic.com>
7381 * config/pdp11/pdp11-modes.def: Add RESET_FLOAT_FORMAT calls.
7382 * config/pdp11/pdp11-protos.h (legitimate_const_double_p): Add.
7383 * config/pdp11/pdp11.c (encode_pdp11_f, decode_pdp11_f,
7384 encode_pdp11_d, decode_pdp11_d): New functions to handle PDP11
7385 floating point format.
7386 (pdp11_f_format, pdp11_d_format): New real_format descriptors for
7387 the above functions.
7388 (output_move_quad): Output float values in correct target format.
7389 (legitimate_const_double_p): New function.
7390 * config/pdp11/pdp11.h: Fix typos.
7391 (FLOAT_WORDS_BIG_ENDIAN): Add definition.
7392 (TARGET_FLOAT_FORMAT): Ditto.
7393 (pdp11_f_format, pdp11_d_format): Add external declarations.
7394 (MAX_REGS_PER_ADDRESS): Corrected.
7395 (LEGITIMATE_CONSTANT_P): Use legitimate_const_double_p().
7396 (PRINT_OPERAND): Output float literals in target format.
7398 2004-02-03 Mark Mitchell <mark@codesourcery.com>
7401 * tree.h (enum tree_index): Add TI_PUBLIC, TI_PROTECTED, and
7403 (access_public_node): Redefine.
7404 (access_protected_node): Likewise.
7405 (access_private_node): Likewise.
7406 * tree.c (build_common_tree_nodes): Create access_public_node,
7407 access_protected_node, and access_private_node.
7409 2004-02-03 Steve Ellcey <sje@cup.hp.com>
7411 * config/ia64/ia64.h (MASK_INLINE_INT_DIV_LAT): Change value.
7412 (MASK_INLINE_INT_DIV_THR): Ditto.
7413 (MASK_INLINE_SQRT_LAT): Ditto.
7414 (MASK_INLINE_SQRT_THR): Ditto.
7415 (MASK_DWARF2_ASM): Ditto.
7416 (MASK_EARLY_STOP_BITS): Ditto.
7418 2004-02-02 Paul Brook <paul@codesourcery.com>
7420 Merge from csl-arm-branch.
7422 2004-01-30 Paul Brook <paul@codesourcery.com>
7424 * aof.h (REGISTER_NAMES): Add vfp reg names
7425 (ADDITIONAL_REGISTER_NAMES): Ditto.
7426 * aout.h (REGISTER_NAMES): Ditto.
7427 (ADDITIONAL_REGISTER_NAMES): Ditto.
7428 * arm-protos.h: Update/Add Prototypes.
7429 * arm.c (init_fp_table): Rename from init_fpa_table. Update users.
7430 Only allow 0.0 for VFP.
7431 (fp_consts_inited): Rename from fpa_consts_inited. Update users.
7432 (values_fp): Rename from values_fpa. Update Users.
7433 (arm_const_double_rtx): Rename from const_double_rtx_ok_for_fpa.
7434 Update users. Only check valid constants for this hardware.
7435 (arm_float_rhs_operand): Rename from fpa_rhs_operand. Update Users.
7436 Only allow consts for FPA.
7437 (arm_float_add_operand): Rename from fpa_add_operand. Update users.
7438 Only allow consts for FPA.
7439 (use_return_insn): Check for saved VFP regs.
7440 (arm_legitimate_address_p): Handle VFP DFmode addressing.
7441 (arm_legitimize_address): Ditto.
7442 (arm_general_register_operand): New function.
7443 (vfp_mem_operand): New function.
7444 (vfp_compare_operand): New function.
7445 (vfp_secondary_reload_class): New function.
7446 (arm_float_compare_operand): New function.
7447 (vfp_print_multi): New function.
7448 (vfp_output_fstmx): New function.
7449 (vfp_emit_fstm): New function.
7450 (arm_output_epilogue): Output VPF reg restore code.
7451 (arm_expand_prologue): Output VFP reg save code.
7452 (arm_print_operand): Add 'P'.
7453 (arm_hard_regno_mode_ok): Return modes for VFP regs.
7454 (arm_regno_class): Return classes for VFP regs.
7455 (arm_compute_initial_elimination_offset): Include space for VFP regs.
7456 (arm_get_frame_size): Ditto.
7457 * arm.h (FIXED_REGISTERS): Add VFP regs.
7458 (CALL_USED_REGISTERS): Ditto.
7459 (CONDITIONAL_REGISTER_USAGE): Enable VFP regs.
7460 (FIRST_VFP_REGNUM): Define.
7461 (LAST_VFP_REGNUM): Define.
7462 (IS_VFP_REGNUM): Define.
7463 (FIRST_PSEUDO_REGISTER): Include VFP regs.
7464 (HARD_REGNO_NREGS): Handle VFP regs.
7465 (REG_ALLOC_ORDER): Add VFP regs.
7466 (enum reg_class): Add VFP_REGS.
7467 (REG_CLASS_NAMES): Ditto.
7468 (REG_CLASS_CONTENTS): Ditto.
7469 (CANNOT_CHANGE_MODE_CLASS) Handle VFP Regs.
7470 (REG_CLASS_FROM_LETTER): Add 'w'.
7471 (EXTRA_CONSTRAINT_ARM): Add 'U'.
7472 (EXTRA_MEMORY_CONSTRAINT): Define.
7473 (SECONDARY_OUTPUT_RELOAD_CLASS): Handle VFP regs.
7474 (SECONDARY_INPUT_RELOAD_CLASS): Ditto.
7475 (REGISTER_MOVE_COST): Ditto.
7476 (PREDICATE_CODES): Add arm_general_register_operand,
7477 arm_float_compare_operand and vfp_compare_operand.
7478 * arm.md (various): Rename as above.
7479 (divsf3): Enable when TARGET_VFP.
7484 (arm_movdi): Disable when TARGET_VFP.
7485 (arm_movsi_insn): Ditto.
7486 (movsi): Only split with general regs.
7487 (cmpsf): Use arm_float_compare_operand.
7488 (push_fp_multi): Restrict to TARGET_FPA.
7491 * fpa.md (various): Rename as above.
7492 * doc/md.texi: Document ARM w and U constraints.
7494 2004-01-15 Paul Brook <paul@codesourcery.com>
7496 * config.gcc: Add with_fpu. Allow with-float=softfp.
7497 * config/arm/arm.c (arm_override_options): Rename *-s to *s.
7498 Break out of loop when we find a float-abi. Fix typo.
7499 * config/arm/arm.h (OPTION_DEFAULT_SPECS): Add "fpu".
7501 * doc/install.texi: Document --with-fpu.
7503 2003-01-14 Paul Brook <paul@codesourcery.com>
7505 * config.gcc (with_arch): Add armv6.
7506 * config/arm/arm.h: Rename TARGET_CPU_*_s to TARGET_CPU_*s.
7507 * config/arm/arm.c (arm_overrride_options): Ditto.
7509 2004-01-08 Richard Earnshaw <rearnsha@arm.com>
7511 * arm.c (FL_ARCH3M): Renamed from FL_FAST_MULT.
7512 (FL_ARCH6): Renamed from FL_ARCH6J.
7513 (arm_arch3m): Renamed from arm_fast_multiply.
7514 (arm_arch6): Renamed from arm_arch6j.
7515 * arm.h: Update all uses of above.
7516 * arm-cores.def: Likewise.
7519 * arm.h (CPP_CPU_ARCH_SPEC): Emit __ARM_ARCH_6J__ define for armV6j,
7520 not arm6j. Add entry for arch armv6.
7522 2004-01-07 Richard Earnshaw <rearnsha@arm.com>
7524 * arm.c (arm_emit_extendsi): Delete.
7525 * arm-protos.h (arm_emit_extendsi): Delete.
7526 * arm.md (zero_extendhisi2): Also handle zero-extension of
7528 (zero_extendqisi2, extendhisi2, extendqisi2): Likewise.
7529 (thumb_zero_extendhisi2): Only match if not v6.
7530 (arm_zero_extendhisi2, thumb_zero_extendqisi2, arm_zero_extendqisi2)
7531 (thumb_extendhisi2, arm_extendhisi2, arm_extendqisi)
7532 (thumb_extendqisi2): Likewise.
7533 (thumb_zero_extendhisi2_v6, arm_zero_extendhisi2_v6): New patterns.
7534 (thumb_zero_extendqisi2_v6, arm_zero_extendqisi2_v6): New patterns.
7535 (thumb_extendhisi2_insn_v6, arm_extendhisi2_v6): New patterns.
7536 (thumb_extendqisi2_v6, arm_extendqisi_v6): New patterns.
7537 (arm_zero_extendhisi2_reg, arm_zero_extendqisi2_reg): Delete.
7538 (arm_extendhisi2_reg, arm_extendqisi2_reg): Delete.
7539 (arm_zero_extendhisi2addsi): Remove subreg. Add attributes.
7540 (arm_zero_extendqisi2addsi, arm_extendhisi2addsi): Likewise.
7541 (arm_extendqisi2addsi): Likewise.
7543 2003-12-31 Mark Mitchell <mark@codesourcery.com>
7546 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
7547 + REG addressing modes.
7549 * config/arm/arm.h (THUMB_LEGTITIMIZE_RELOAD_ADDRESS): Reload REG
7550 + REG addressing modes.
7552 2003-12-30 Mark Mitchell <mark@codesourcery.com>
7554 * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept
7557 2003-30-12 Paul Brook <paul@codesourcery.com>
7559 * longlong.h: protect arm inlines with !defined (__thumb__)
7561 2003-30-12 Paul Brook <paul@codesourcery.com>
7563 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Always define __arm__.
7565 2003-12-30 Nathan Sidwell <nathan@codesourcery.com>
7567 * builtins.c (expand_builtin_apply_args_1): Fix typo in previous
7570 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
7572 * builtins.c (expand_builtin_apply_args_1): Add pretend args size
7573 to the virtual incoming args pointer for downward stacks.
7575 2003-12-29 Paul Brook <paul@codesourcery.com>
7577 * config/arm/arm-cores.def: Add cost function.
7578 * config/arm/arm.c (arm_*_rtx_costs): New functions.
7579 (arm_rtx_costs): Remove
7580 (struct processors): Add rtx_costs field.
7581 (all_cores, all_architectures): Ditto.
7582 (arm_override_options): Set targetm.rtx_costs.
7583 (thumb_rtx_costs): New function.
7584 (arm_rtx_costs_1): Remove cases handled elsewhere.
7585 * config/arm/arm.h (processor_type): Add COSTS parameter.
7587 2003-12-29 Nathan Sidwell <nathan@codesourcery.com>
7589 * config/arm/arm.md (generic_sched): arm926 has its own scheduler.
7590 (arm926ejs.md): Include it.
7591 * config/arm/arm926ejs.md: New pipeline description.
7593 2003-12-24 Paul Brook <paul@codesourcery.com>
7595 * config/arm/arm.c (arm_arch6j): New variable.
7596 (arm_override_options): Set it.
7597 (arm_emit_extendsi): New function.
7598 * config/arm/arm-protos.h (arm_emit_extendsi): Add prototype.
7599 * config/arm/arm.h (arm_arch6j): Declare.
7600 * config/arm/arm.md: Add sign/zero extend insns.
7602 2003-12-23 Paul Brook <paul@codesourcery.com>
7604 * config/arm/arm.c (all_architectures): Add armv6.
7605 * doc/invoke.texi: Document it.
7607 2003-12-19 Paul Brook <paul@codesourcery.com>
7609 * config/arm/arm.md: Add load1 and load_byte "type" attrs. Modify
7610 insn patterns to match.
7611 * config/arm/arm-generic.md: Ditto.
7612 * config/arm/cirrus.md: Ditto.
7613 * config/arm/fpa.md: Ditto.
7614 * config/amm/iwmmxt.md: Ditto.
7615 * config/arm/arm1026ejs.md: Ditto.
7616 * config/arm/arm1135jfs.md: Ditto. Add insn_reservation and bypasses
7619 2003-12-18 Nathan Sidwell <nathan@codesourcery.com>
7621 * config/arm/arm-protos.h (arm_no_early_alu_shift_value_dep): Declare.
7622 * config/arm/arm.c (arm_adjust_cost): Check shift cost for
7623 TYPE_ALU_SHIFT and TYPE_ALU_SHIFT_REG.
7624 (arm_no_early_store_addr_dep, arm_no_early_alu_shift_dep,
7625 arm_no_early_mul_dep): Correctly deal with conditional execution,
7626 parallels and single shift operations.
7627 (arm_no_early_alu_shift_value_dep): Define.
7628 * arm.md (attr type): Replace 'normal' with 'alu',
7629 'alu_shift' and 'alu_shift_reg'.
7630 (attr core_cycles): Adjust.
7631 (*addsi3_carryin_shift, andsi_not_shiftsi_si, *arm_shiftsi3,
7632 *shiftsi3_compare0, *notsi_shiftsi, *notsi_shiftsi_compare0,
7633 *not_shiftsi_compare0_scratch, *cmpsi_shiftsi, *cmpsi_shiftsi_swp,
7634 *cmpsi_neg_shiftsi, *arith_shiftsi, *arith_shiftsi_compare0,
7635 *arith_shiftsi_compare0_scratch, *sub_shiftsi,
7636 *sub_shiftsi_compare0, *sub_shiftsi_compare0_scratch,
7637 *if_shift_move, *if_move_shift, *if_shift_shift): Set type
7638 attribute appropriately.
7639 * config/arm/arm1026ejs.md (alu_op): Adjust.
7640 (alu_shift_op, alu_shift_reg_op): New.
7641 * config/arm/arm1136.md: Add better bypasses for early
7642 registers. Remove load[234] and store[234] bypasses.
7643 (11_alu_op): Adjust.
7644 (11_alu_shift_op, 11_alu_shift_reg_op): New.
7646 2003-12-15 Nathan Sidwell <nathan@codesourcery.com>
7648 * config/arm/arm-protos.h (arm_no_early_store_addr_dep,
7649 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Declare.
7650 * config/arm/arm.c (arm_no_early_store_addr_dep,
7651 arm_no_early_alu_shift_dep, arm_no_early_mul_dep): Define.
7652 * config/arm/arm1026ejs.md: Add load-store bypass.
7653 * config/arm/arm1136jfs.md (11_alu_op): Take 2 cycles.
7654 Add bypasses between instructions.
7656 2003-12-10 Paul Brook <paul@codesourcery.com>
7658 * config/arm/arm.c (arm_fpu_model): New variable.
7659 (arm_fload_abi): New variable.
7660 (target_fpe_name): Rename from target_fp_name.
7661 (target_fpu_name): New variable.
7662 (arm_is_cirrus): Remove.
7663 (fpu_desc): New struct.
7665 (pf_model_for_fpu): Define.
7666 (all_loat_abis): Define.
7667 (arm_override_options): Set fp arch flags based on -mfpu=
7669 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7670 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7671 (*): Use new TARGET_* flags.
7672 * config/arm/arm.h (TARGET_ANY_HARD_FLOAT): Remove.
7673 (TARGET_HARD_FLOAT): No longer implies TARGET_FPA.
7674 (TARGET_SOFT_FLOAT): Ditto.
7675 (TARGET_SOFT_FLOAT_ABI): New.
7676 (TARGET_MAVERICK): Rename from TARGET_CIRRUS. No longer implies
7678 (TARGET_VFP): No longer implies TARGET_HARD_FLOAT.
7679 (TARGET_OPTIONS): Add -mfpu=.
7680 (FIRST_FPA_REGNUM): Rename from FIRST_ARM_FP_REGNUM.
7681 (LAST_FPA_REGNUM): Rename from LAST_ARM_FP_REGNUM.
7682 (arm_pf_model): Define.
7683 (arm_float_abi_type): Define.
7684 (fputype): Add FPUTYPE_VFP. Change SOFT_FPA->NONE
7685 * config/arm/arm.md: Use new TARGET_* flags.
7686 * config/arm/cirrus.md: Ditto.
7687 * config/arm/fpa.md: Ditto.
7688 * config/arm/elf.h (ASM_SPEC): Pass -mfloat-abi= and -mfpu=.
7689 * config/arm/semi.h (ASM_SPEC): Ditto.
7690 * config/arm/netbsd-elf.h (SUBTARGET_ASM_FLOAT_SPEC): Specify vfp.
7691 (FPUTYPE_DEFAULT): Set to VFP.
7692 * doc/invoke.texi: Document -mfpu= and -mfloat-abi=.
7694 2003-11-22 Phil Edwards <phil@codesourcery.com>
7697 * config/arm/arm.c (arm_output_mi_thunk): In Thumb mode, use
7698 'bx' instead of 'b' to avoid branch range restrictions. Output
7699 the thunk immediately before the thunked-to function.
7700 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Do not emit
7701 .thumb_func if a thunk is being generated. Emit .code 16 along
7702 with .thumb_func if a thunk is not being generated.
7704 2003-11-15 Nicolas Pitre <nico@cam.org>
7706 * config/arm/arm.md (ashldi3, arm_ashldi3_1bit, ashrdi3,
7707 arm_ashrdi3_1bit, lshrdi3, arm_lshrdi3_1bit): New patterns.
7708 * config/arm/iwmmxt.md (ashrdi3_iwmmxt): Renamed from ashrdi3.
7709 (lshrdi3_iwmmxt): Renamed from lshrdi3.
7710 * config/arm/arm.c (IWMMXT_BUILTIN2): Renamed argument accordingly.
7712 2003-11-12 Steve Woodford <scw@wasabisystems.com>
7713 Ian Lance Taylor <ian@wasabisystems.com>
7715 * config/arm/lib1funcs.asm (ARM_DIV_BODY, ARM_MOD_BODY): Add new
7716 code for __ARM_ARCH__ >= 5 && ! defined (__OPTIMIZE_SIZE__).
7718 2003-11-05 Phil Edwards <phil@codesourcery.com>
7720 * config/arm/arm.md (insn): Add new V6 instruction names.
7721 (generic_sched): New attr.
7722 * config/arm/arm-generic.md: Use generic_sched here.
7723 * config/arm/arm1026ejs.md: Do not model fetch/issue/decode
7724 stages of pipeline. Adjust latency counts accordingly.
7725 * config/arm/arm1136jfs.md: New file.
7727 2003-10-28 Mark Mitchell <mark@codesourcery.com>
7729 * config/arm/arm.h (processor_type): New enumeration type.
7730 (CPP_ARCH_DEFAULT_SPEC): Set appropriately for ARM 926EJ-S,
7731 ARM1026EJ-S, ARM1136J-S, and ARM1136JF-S processor cores.
7732 (CPP_CPU_ARCH_SPEC): Likewise.
7733 * config/arm/arm.c (arm_tune): New variable.
7734 (all_cores): Use cores.def.
7735 (all_architectures): Add representative processor.
7736 (arm_override_options): Restructure way in which tuning
7737 information is deduced.
7738 * arm.md: Update "insn" and "type" attributes throughout.
7739 (insn): New attribute.
7740 (type): Compute "mult" from "insn" attribute. Add load2,
7741 load3, load4 alternatives.
7742 (arm automaton): Move to arm-generic.md.
7743 * config/arm/arm-cores.def: New file.
7744 * config/arm/arm-generic.md: Likewise.
7745 * config/arm/arm1026ejs.md: Likewise.
7747 2004-02-03 Eric Botcazou <ebotcazou@libertysurf.fr>
7749 * doc/invoke.texi (SPARC options): Remove -mflat and
7750 all -mxxx (xxx:chip) options.
7751 * config/sparc/aout.h (DBX_REGISTER_NUMBER): Delete.
7752 * config/sparc/litecoff.h (DBX_REGISTER_NUMBER): Likewise.
7753 * config/sparc/netbsd-elf.h (DBX_REGISTER_NUMBER): Likewise.
7754 * config/sparc/sol2.h (DBX_REGISTER_NUMBER): Likewise.
7755 * config/sparc/sparc-protos.h: Delete sparc_flat_* prototypes.
7756 * config/sparc/sparc.c: Likewise.
7757 (sparc_output_function_prologue): Remove TARGET_FLAT handling.
7758 (sparc_nonflat_function_prologue): Rename into sparc_function_prologue.
7759 (sparc_output_function_epilogue): Remove TARGET_FLAT handling.
7760 (sparc_nonflat_function_epilogue): Rename into sparc_function_epilogue.
7761 (struct sparc_frame_info, current_frame_info, zero_frame_info): Delete.
7762 (sparc_flat_must_save_register_p): Likewise.
7763 (sparc_flat_compute_frame_size): Likewise.
7764 (sparc_flat_save_restore): Likewise.
7765 (sparc_flat_function_prologue): Likewise.
7766 (sparc_flat_function_epilogue): Likewise.
7767 (sparc_flat_epilogue_delay_slots): Likewise.
7768 (sparc_flat_eligible_for_epilogue_delay): Likewise.
7769 (sparc_function_ok_for_sibcall): Remove TARGET_FLAT handling.
7770 * config/sparc/sparc.h (MASK_FLAT, TARGET_FLAT): Delete.
7771 (TARGET_SWITCHES): Remove -mflat and all -mxxx (xxx:chip) options.
7772 (SPARC_INCOMING_INT_ARG_FIRST): Remove TARGET_FLAT handling.
7773 (CONDITIONAL_REGISTER_USAGE): Likewise.
7774 (FRAME_POINTER_REQUIRED): Likewise.
7775 (INITIAL_ELIMINATION_OFFSET): Likewise.
7776 (BASE_RETURN_VALUE_REG): Likewise.
7777 (BASE_OUTGOING_VALUE_REG): Likewise.
7778 (BASE_PASSING_ARG_REG): Likewise.
7779 (BASE_INCOMING_ARG_REG): Likewise.
7780 (INCOMING_REGNO): Likewise.
7781 (OUTGOING_REGNO): Likewise.
7782 (LOCAL_REGNO): Likewise.
7783 (DELAY_SLOTS_FOR_EPILOGUE): Likewise.
7784 (ELIGIBLE_FOR_EPILOGUE_DELAY): Likewise.
7785 (EPILOGUE_USES): Likewise.
7786 * config/sparc/sparc.md ("isa" attribute): Change "v6" into "v7".
7787 ("flat" attribute): Delete.
7788 (do_builtin_setjmp_setup): Remove TARGET_FLAT and "flat" attribute
7790 (call followed by jump define_peephole's): Delete.
7791 (exception_receiver): Likewise.
7792 (builtin_setjmp_receiver): Likewise.
7793 * config/sparc/t-sparclite (MULTILIB_OPTIONS): Remove -mflat.
7795 2004-02-03 Paolo Bonzini <bonzini@gnu.org>
7799 * Makefile.in (c-parse.o, c-convert.o, c-typeck.o): Depend
7801 * objc/Make-lang.in (objc-parse.o): Depend on langhooks.h.
7802 * c-parse.in, c-convert.c, c-typeck.c, objc/objc-act.c:
7803 Include langhooks.h. Replace c_common_truthvalue_conversion
7804 with the truthvalue_conversion language hook throughout.
7805 (expr_no_commas): Call default_conversion before save_expr
7806 for the first term of the production 'x ? : y'.
7807 * c-common.c (c_common_truthvalue_conversion): Remove
7808 obsolete block. Invoke recursively the hook instead
7810 * c-convert.c (convert): handle ERROR_MARK_NODE.
7811 * c-typeck.c (build_binary_op): handle ERROR_MARK_NODE
7812 returned by the truthvalue_conversion language hook.
7813 * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7814 c_objc_common_truthvalue_conversion.
7815 * c-objc-common.c (c_objc_common_truthvalue_conversion):
7817 * c-tree.h (c_objc_common_truthvalue_conversion): Declare it.
7818 * objc/objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Use
7819 c_objc_common_truthvalue_conversion.
7821 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7823 * config/c4x/c4x.h (FUNCTION_VALUE): Use gen_rtx_REG instead
7825 (LIBCALL_VALUE): Likewise.
7826 * config/ip2k/ip2k.c (mdr_try_propagate_clr_sequence): Use
7827 gen_rtx_CC0 instead of gen_rtx.
7828 * config/m68hc11/m68hc11.c (m68hc11_emit_libcall): Use
7829 gen_rtx_fmt_e and gen_rtx_fmt_ee instead of gen_rtx.
7830 (m68hc11_expand_compare): Use gen_rtx_fmt_ee instead of
7832 (m68hc11_emit_logical): Likewise.
7834 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7836 * config/alpha/alpha.c, config/arm/arm.c, config/c4x/c4x.c,
7837 config/fr30/fr30.md, config/frv/frv.c, config/frv/frv.md,
7838 config/h8300/h8300.c, config/ia64/ia64.c, config/ip2k/ip2k.md,
7839 config/m32r/m32r.md, config/m68hc11/m68hc11.c,
7840 config/mips/mips.md, config/mmix/mmix.c,
7841 config/mn10300/mn10300.c, config/mn10300/mn10300.md,
7842 config/ns32k/ns32k.c, config/pa/pa.md, config/pdp11/pdp11.c,
7843 config/rs6000/altivec.md, config/s390/s390.c,
7844 config/s390/s390.h, config/s390/s390.md, config/sh/sh.c,
7845 config/sh/sh.h, config/sh/sh.md, config/stormy16/stormy16.c:
7846 Use const0_rtx instead of GEN_INT (0). Do the same for other
7847 constants that are readily available.
7849 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7851 * doloop.c, optabs.c, regmove.c, sched-deps.c,
7852 config/i386/i386.c, config/i386/i386.md: Use const0_rtx
7853 instead of GEN_INT (0). Do the same for other constants that
7854 are readily available.
7856 2004-02-03 Kazu Hirata <kazu@cs.umass.edu>
7858 * combine.c (simplify_set): Use gen_rtx_fmt_e instead of
7860 * emit-rtl.c (init_emit_once): Use gen_rtx_PC and gen_rtx_CC0
7862 * reload1.c (init_elim_table): Use gen_rtx_fmt_e instead of
7864 * config/ns32k/ns32k.md (udivmodhi4): Use gen_rtx_IOR and
7865 gen_rtx_ASHIFT instead of gen_rtx.
7866 (udivmodqi4): Likewise.
7868 2004-02-02 Richard Henderson <rth@redhat.com>
7871 * expr.c (store_expr): Use force_operand before emit_move_insn.
7873 2004-02-02 Jeff Law <law@redhat.com>
7874 Roger Sayle <roger@eyesopen.com>
7876 * tree.c (commutative_tree_code, associative_tree_code): New
7878 (iterative_hash_expr): Use commutative_tree_code.
7879 * tree.h (commutative_tree_code, associative_tree_code): Declare.
7880 * fold-const.c (operand_equal_p): Use commutative_tree_code
7881 rather than inlining the commutativity check.
7884 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7886 * system.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Poison.
7887 * config/frv/frv-protos.h: Remove the prototype for
7888 frv_function_arg_keep_as_reference.
7889 * config/frv/frv.c (frv_function_arg_keep_as_reference):
7891 * config/frv/frv.h (FUNCTION_ARG_KEEP_AS_REFERENCE): Likewise.
7892 * config/stormy16/stormy16.h: Remove the commented-out
7893 definition of FUNCTION_ARG_KEEP_AS_REFERENCE.
7895 2004-02-03 Alan Modra <amodra@bigpond.net.au>
7898 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Use ap
7901 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7903 * genemit.c (gen_exp): Generate gen_rtx_fmt_e* instead of
7906 2004-02-02 Eric Christopher <echristo@redhat.com>
7907 Zack Weinberg <zack@codesourcery.com>
7909 * c-opts.c (c_common_handle_option): Add -finput-charset.
7911 * cppcharset.c (one_iso88591_to_utf8): Remove.
7912 (convert_iso88591_utf8): Ditto.
7913 (conversion_tab): Remove 8859-1 converter.
7914 (_cpp_input_to_utf8): Remove.
7915 (_cpp_init_iconv_buffer): Ditto.
7916 (_cpp_close_iconv_buffer): Ditto.
7917 (_cpp_convert_input): New function.
7918 (_cpp_default_encoding): Ditto.
7919 * cpphash.h: Add/remove prototypes for above.
7920 * cppfiles.c (read_file_guts): Use _cpp_convert_input.
7921 * cppinit.c (cpp_create_reader): Use _cpp_default_encoding
7922 for narrow execution and input character sets.
7923 * cpplib.c (cpp_push_buffer): Delete uses of removed functions.
7924 * doc/cppopts.texi: Document -finput-charset.
7926 2004-02-02 David Edelsohn <edelsohn@gnu.org>
7928 * rtlanal.c (refers_to_regno_p): Test regno, not inner_regno,
7929 against FIRST_PSEUDO_REGISTER.
7931 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7933 * doc/invoke.texi (SPARC options): Further improve.
7935 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7937 * config/arm/arm.md, config/c4x/c4x.md, config/cris/cris.md,
7938 config/h8300/h8300.c, config/ip2k/ip2k.md,
7939 config/iq2000/iq2000.c, config/mips/mips.c,
7940 config/rs6000/rs6000.c, config/rs6000/rs6000.md,
7941 config/sh/sh.c, config/sh/sh.md, config/stormy16/stormy16.c,
7942 config/v850/v850.md: Fix indentation.
7944 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7946 * config/sparc/sparc.c (function_arg_slotno): Align TImode
7947 arguments on a 16-byte boundary in the parameter array if ARCH64.
7948 Split handling of TFmode.
7950 2004-02-02 Paolo Bonzini <bonzini@gnu.org>
7952 * rtlanal.c (reg_overlap_mentioned_p) [!ENABLE_CHECKING]:
7953 Don't test CONSTANT_P (x).
7954 (reg_overlap_mentioned_p): Merge check for STRICT_LOWPART,
7955 ZERO_EXTRACT, SIGN_EXTRACT with the switch statement.
7958 2004-02-02 Eric Botcazou <ebotcazou@libertysurf.fr>
7960 * doc/invoke.texi (SPARC options): Document that -mflat is deprecated.
7962 2004-02-02 Kazu Hirata <kazu@cs.umass.edu>
7964 * config/arc/arc.md, config/arm/arm.c, config/arm/arm.md,
7965 config/c4x/c4x.c, config/c4x/c4x.md, config/cris/cris.md,
7966 config/frv/frv.c, config/h8300/h8300.c, config/ip2k/ip2k.md,
7967 config/iq2000/iq2000.c, config/m32r/m32r.c,
7968 config/mcore/mcore.c, config/mips/mips.c, config/mmix/mmix.md,
7969 config/mn10300/mn10300.c, config/rs6000/rs6000.c,
7970 config/rs6000/rs6000.md, config/sh/sh.c, config/sh/sh.md,
7971 config/stormy16/stormy16.c, config/v850/v850.md,
7972 config/xtensa/xtensa.c: Replace gen_rtx with gen_rtx_fmt_e*.
7974 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
7976 * config/mcore/mcore.c (block_move_sequence): Replace
7977 gen_rtx_CONST_INT with GEN_INT.
7979 2004-02-02 Jan Hubicka <jh@suse.cz>
7981 * alias.c (record_set): Use hard_regno_nregs.
7982 * bt-load.c (find_btr_reference, note_btr_set): Likewise.
7983 * builtins.c (apply_args_size): Likewise.
7984 * caller-save.c (setup_save_areas, save_call_clobbered_regs,
7985 mark_set_regs, add_stored_regs, mark_referenced_regs,
7986 insert_restore, insert_save, insert_one_insn): Likewise.
7987 * cfgcleanup.c: Include regs.h
7988 (mark_effect, mentions_nonequal_regs): Likewise.
7989 * cfgrtl.c (mark_killed_regs): Likewise
7990 * combine.c (update_table_tick, record_value_for_reg,
7991 record_dead_and_set_regs, get_last_value_validate, use_crosses_set_p,
7992 reg_dead_at_p_1, reg_dead_at_p, mark_used_regs_combine, move_deaths,
7993 reg_bitfield_target_p, distribute_notes): Likewise.
7994 * cse.c (mention_regs, insert, invalidate, invalidate_for_call,
7995 exp_equiv_p, cse_insn): Likewise.
7996 * cselib.c (cselib_lookup): Likewise.
7997 (cselib_invalidate_regno, cselib_record_set): Likewise.
7998 * df.c (df_ref_record): Likewise.
7999 * dwarf2out.c (reg_loc_descriptor, multiple_reg_loc_descriptor):
8001 * flow.c (mark_reg, insn_dead_p, mark_set_1, mark_used_reg,
8002 count_or_remove_death_notes_bb): Likewise.
8003 * function.c (aggregate_value_p, keep_stack_depressed): Likewise.
8004 * gloval.c (global_alloc, find_reg, mark_reg_store, mark_reg_conflicts,
8005 mark_reg_death, set_preference, reg_becomes_live, reg_dies): Likewise.
8006 * integrate.c (mark_stores): Likewise.
8007 * jump.c (delete_prior_computation): Likewise.
8008 * lcm.c (reg_dies, reg_becomes_live): Likewise.
8009 * local-alloc.c (combine_regs, find_free_reg, post_mark_life): Likewise.
8010 * loop.c (LOOP_REGNO_NREGS): Likewise.
8011 * postreload.c (reload_combine, reload_combine_note_store,
8012 reload_combine_note_use, reload_cse_move2add, move2add_note_store): Likewise.
8013 * ra-colorize.c (combine, color_usable_p, get_free_reg,
8014 calculate_dont_begin, calculate_dont_begin, colorize_one_web,
8015 try_recolor_web, insert_coalesced_conflicts, check_colors,
8016 break_precolored_alias): Likewise.
8017 * ra-debug.c: Include regs.h
8018 (ra_print_rtx_object): Likewise.
8019 * ra-rewrite (choose_spill_colors): Likewise.
8020 (spill_same_color_p, update_spill_colors, spill_is_free): Likewise.
8021 * ra.c (init_ra): Likewise.
8022 * recog.c (reg_fits_class_p, peep2_reg_dead_p,
8023 peep2_find_free_register): Likewise.
8024 * reg-stack.c (subst_stack_regs_pat, convert_regs_exit): Likewise.
8025 * regclass.c (hard_regno_nregs): New array.
8026 (init_reg_modes_once): Initialize it.
8027 (choose_hard_reg_mode): Use it.
8028 (record_reg_classes): Likewise.
8029 * regmove.c (mark_flags_life_zones): Likewise.
8030 * regrename.c (note_sets, clear_dead_regs, regrename_optimize,
8031 scan_rtx_reg, dump_def_use_chain, kill_value, set_value_regno,
8032 copy_value, maybe_mode_change, find_oldest_value_reg,
8033 copyprop_hardreg_forward_1):
8034 * regs.h (hard_regno_nregs): Declare.
8035 * realod.c (reload_inner_reg_of_subreg): Use it.
8036 (push_reload, combine_reloads, find_dummy_reload,
8037 hard_reg_set_here_p, operands_match_p, decompose, find_reloads,
8038 refers_to_regno_for_reload_p, find_equiv_reg, regno_clobbered_p,
8039 reload_adjust_reg_for_mode): Likewise.
8040 * reload1.c (compute_use_by_pseudos, count_pseudo,
8041 count_spilled_pseudo, find_reg, find_reload_regs, mark_home_live,
8042 spill_hard_reg, forget_old_reloads_1, mark_reload_reg_in_use,
8043 clear_reload_reg_in_use, reload_reg_free_for_value_p, free_for_value_p
8044 allocate_reload_reg, choose_reload_regs, emit_reload_insns,
8045 delete_output_reload): Likewise.
8046 * resource.c (update_live_status, mark_referenced_resources,
8047 mark_set_resources, mark_target_live_regs): Likewise.
8048 * rtlanal.c: Include regs.h
8049 (refers_to_regno_p, reg_overlap_mentioned_p, dead_or_set_p,
8050 dead_or_set_regno_p, find_regno_note, find_reg_fusage,
8051 subreg_regno_offset, subreg_offset_representable_p,
8052 hoist_test_store): Likewise.
8053 * sched-deps.c (sched_analyze_1, sched_analyze_2): Likewise.
8054 * sched-rgn.c (check_live_1, update_live_1): Likewise.
8055 * stmt.c: Include regs.h
8056 (decl_conflicts_with_clobbers_p): Likewise.
8057 * varasm.c (make_decl_rtl): Likewise.
8058 * Makefile.in (cfgcleanup.o, rtlanal.o, ra-debug.o): Add regs.h dependnecy.
8060 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
8062 * config/arm/arm.c, config/arm/arm.h, config/arm/arm.md,
8063 config/arm/linux-gas.h, config/arm/netbsd-elf.h,
8064 config/arm/netbsd.h, config/arm/pe.c, config/avr/avr.c,
8065 config/avr/avr.h, config/avr/avr.md, config/c4x/c4x.h,
8066 config/cris/cris.h, config/fr30/fr30.h, config/frv/frv.c,
8067 config/frv/frv.h, config/ip2k/ip2k.c, config/iq2000/iq2000.c,
8068 config/iq2000/iq2000.h, config/m32r/m32r.c,
8069 config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
8070 config/m68hc11/m68hc11.md, config/m68k/m68k.md,
8071 config/mcore/mcore.c, config/mcore/mcore.h,
8072 config/mcore/mcore.md, config/mips/mips.c,
8073 config/ns32k/ns32k.h, config/ns32k/ns32k.md,
8074 config/rs6000/rs6000.c, config/s390/s390.c,
8075 config/s390/s390.md, config/sparc/sparc.c, config/v850/v850.c,
8076 config/xtensa/xtensa.h, config/xtensa/xtensa.md: Replace
8077 "gen_rtx (FOO, " with "gen_rtx_FOO (".
8079 2004-02-01 Kazu Hirata <kazu@cs.umass.edu>
8081 * config/h8300/h8300.md (two peephole2's): New.
8083 2004-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
8085 * config/sparc/sol2-bi.h: Handle TARGET_CPU_ultrasparc3.
8086 (CPP_CPU_SPEC): Handle -mcpu=ultrasparc3.
8087 (ASM_CPU_SPEC): Likewise
8088 * config/sparc/sol2.h: Handle TARGET_CPU_ultrasparc3.
8089 (ASM_CPU_SPEC): Remove -mcpu=v8plus. Handle -mcpu=ultrasparc3.
8091 2004-02-01 Roger Sayle <roger@eyesopen.com>
8093 * builtins.c (expand_builtin_pow): If flag_unsafe_math_optimizations
8094 isn't set, don't call expand_builtin_mathfn_2 to use the pow optab.
8095 (expand_builtin): Always call expand_builtin_pow.
8097 2004-02-01 Roger Sayle <roger@eyesopen.com>
8099 * builtins.def (BUILT_IN_SIGNBIT, BUILT_IN_SIGNBITF,
8100 BUILT_IN_SIGNBITL): New GCC builtins.
8101 * builtins.c (expand_builtin_signbit): New function to RTL expand
8102 calls to signbit, signbitf and signbitl as inline intrinsics.
8103 (expand_builtin): Call expand_builtin_signbit for BUILT_IN_SIGNBIT*.
8104 (fold_builtin_signbit): New function to perform constant folding
8105 of signbit, signbitf and signbitl.
8106 (fold_builtin): Call fold_builtin_signbit for BUILT_IN_SIGNBIT*.
8108 * doc/extend.texi: Document new signbit{,f,l} builtins.
8110 2004-02-01 Richard Sandiford <rsandifo@redhat.com>
8112 * config/mips/mips.md (adddi3_internal_2): Remove superfluous %s.
8114 2004-02-01 Chris Demetriou <cgd@broadcom.com>
8116 * config/mips/mips.h (PREDICATE_CODES): Remove entries for
8117 "mips_const_double_ok" and "simple_memory_operand", which were
8118 removed from the MIPS port with the mips-3_4-rewrite branch merge.
8119 * config/mips/mips.c (mips16_lay_out_constants): Update comment
8120 for removal of simple_memory_operand.
8122 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8124 * config/c4x/c4x.md: Use GEN_INT instead of
8125 gen_rtx (CONST_INT, ...).
8127 2004-01-31 Richard Henderson <rth@redhat.com>
8129 * varasm.c (output_constant_pool): Don't zap the pool.
8131 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8133 * genrecog.c (decision_type): Add DT_const_int.
8134 (write_cond) [DT_const_int]: Print a comparison against small
8136 (write_node): Simplify comparisons against small constants
8137 before printing tests.
8139 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8141 * config/m32r/m32r.c (m32r_load_pic_register): Use GEN_INT
8142 instead of gen_rtx_CONST_INT.
8144 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8146 * config/xtensa/xtensa.h (DYNAMIC_CHAIN_ADDRESS): Use GEN_INT
8147 instead of gen_rtx_CONST_INT.
8149 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8151 * target-def.h (TARGET_STRICT_ARGUMENT_NAMING): Define as
8152 hook_bool_CUMULATIVE_ARGS_false.
8153 * targhooks.c (default_strict_argument_naming): Rename to
8154 hook_bool_CUMULATIVE_ARGS_false.
8155 * targhooks.h: Update the prototype for
8156 default_strict_argument_naming.
8158 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8160 * config/sh/sh.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
8161 * config/sh/sh.h: Likewise.
8162 * config/sh/sh.md: Likewise.
8164 2004-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
8166 * doc/invoke.texi (SPARC options): Restructure and update.
8168 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8170 * system.h (PROMOTE_FUNCTION_ARGS, STRUCT_VALUE_INCOMING, and
8171 STRICT_ARGUMENT_NAMING): Poison.
8172 * target-def.h (TARGET_PROMOTE_FUNCTION_ARGS): Define as
8173 hook_bool_tree_false.
8174 * targhooks.c (default_promote_function_args): Remove.
8175 (default_struct_value_rtx): Don't use STRUCT_VALUE_INCOMING.
8176 Don't check incoming.
8177 (default_strict_argument_naming): Don't use
8178 STRICT_ARGUMENT_NAMING.
8179 * targhooks.h: Remove the prototype for
8180 default_promote_function_args.
8182 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8184 * config/i386/i386-protos.h: Remove the prototype for
8185 ix86_setup_incoming_varargs.
8186 * config/i386/i386.c (TARGET_SETUP_INCOMING_VARARGS): New.
8187 (ix86_setup_incoming_varargs): Make it static.
8188 * config/i386/i386.h (SETUP_INCOMING_VARARGS): Remove.
8190 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8192 * alloc-pool.c: Fix comment typos.
8193 * builtin-types.def: Likewise.
8194 * builtins.def: Likewise.
8195 * c-pretty-print.c: Likewise.
8197 * reload1.c: Likewise.
8199 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8201 * doc/invoke.texi: Follow spelling conventions.
8202 * doc/tm.texi: Likewise.
8204 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8206 * doc/install.texi: Fix typos.
8207 * doc/invoke.texi: Likewise.
8209 2004-01-31 Ulrich Weigand <uweigand@de.ibm.com>
8211 * config/s390/s390.c (s390_decompose_address): Do not treat virtual
8212 registers as pointers.
8213 * config/s390/s390.md ("*la_31" second peephole2): Fix incorrect mode.
8215 2004-01-31 Paolo Bonzini <bonzini@gnu.org>
8217 * combine.c (cse_main): Set gen_lowpart to gen_lowpart_for_combine
8218 and restore it to gen_lowpart_general on exit.
8219 (gen_lowpart_for_combine): Adjust all callers to go through
8221 * cse.c (cse_main): Set gen_lowpart to gen_lowpart_if_possible
8222 and restore it to gen_lowpart_general on exit.
8223 (gen_lowpart_if_possible): Adjust all callers to go through
8225 * emit-rtl.c (gen_lowpart_general): New name of gen_lowpart.
8226 (gen_lowpart): Declare as pointer to function, initialized to
8227 gen_lowpart_general.
8228 * rtl.h (gen_lowpart): Declare as pointer to function.
8230 2004-01-31 Kazu Hirata <kazu@cs.umass.edu>
8232 * bt-load.c: Replace "gen_rtx (FOO, " with "gen_rtx_FOO (".
8233 * calls.c: Likewise.
8234 * emit-rtl.c: Likewise.
8235 * function.c: Likewise.
8236 * reload1.c: Likewise.
8237 * config/i386/cygming.h: Likewise.
8238 * config/i386/i386.c: Likewise.
8239 * config/i386/winnt.c: Likewise.
8241 2004-01-30 Dara Hazeghi <dhazeghi@yahoo.com>
8244 * doc/install.texi: document --enable-__cxa_atexit option.
8245 * configure.ac: Disable __cxa_atexit if not supported.
8246 * configure: Regenerate.
8248 2003-01-30 Daniel Berlin <dberlin@dberlin.org>
8250 * ggc-zone.c (ggc_free): New function.
8252 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8254 alloc-pool.c, c-lex.c, c-pragma.h, c-semantics.c, cfghooks.c,
8255 cfghooks.h, cfglayout.c, cfgloopmanip.c, debug.c, debug.h,
8256 flow.c, genextract.c, ggc-common.c, ggc-page.c, ggc.h,
8257 ifcvt.c, jump.c, loop-unswitch.c, timevar.c, timevar.def,
8258 tree-optimize.c, vmsdbgout.c, config/fp-bit.c,
8259 config/alpha/alpha.c, config/alpha/alpha.h,
8260 config/alpha/alpha.md, config/alpha/unicosmk.h,
8261 config/alpha/vms.h, config/arm/linux-elf.h, config/avr/avr.c,
8262 config/c4x/c4x-protos.h, config/c4x/c4x.md,
8263 config/d30v/d30v.h, config/frv/frv.md, config/frv/frvbegin.c,
8264 config/frv/frvend.c, config/i386/cygming.h,
8265 config/i386/djgpp.h, config/i386/emmintrin.h,
8266 config/i386/gthr-win32.c, config/i386/i386-interix.h,
8267 config/i386/i386-protos.h, config/i386/openbsd.h,
8268 config/i386/winnt.c, config/i386/xm-mingw32.h,
8269 config/i386/xmmintrin.h, config/ia64/ia64.md,
8270 config/iq2000/iq2000.md, config/m32r/m32r.md,
8271 config/m68k/m68k.md, config/mcore/mcore-elf.h,
8272 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
8273 config/mips/iris5gas.h, config/mips/iris6.h,
8274 config/mips/iris6gas.h, config/mips/linux.h,
8275 config/mips/mips.md, config/mips/netbsd.h,
8276 config/mips/openbsd.h, config/mips/windiss.h,
8277 config/pa/fptr.c, config/rs6000/aix.h,
8278 config/rs6000/altivec.h, config/rs6000/darwin.h,
8279 config/rs6000/xcoff.h, config/s390/s390-protos.h,
8280 config/s390/s390.c, config/s390/s390.h, config/s390/s390.md,
8281 config/sh/netbsd-elf.h, config/sh/sh.h, config/sh/vxworks.h,
8282 config/sparc/sol2.h: Update copyright.
8284 2004-01-30 Kelley Cook <kcook@gcc.gnu.org>
8286 * Makefile.in (abs_docdir, abs_srcdir): Define.
8287 (doc/%.dvi, doc/gccinstall.dvi): Use $(abs_docdir).
8289 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8291 * genconfig.c (main): Have CC0_P check its operand even on a
8294 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8296 * config/alpha/alpha.c: Remove mentions of deprecates macros
8297 in comments, remove some target-independent comments about target
8298 macros, and/or add minimal function comments for target hook
8300 * config/avr/avr.c: Likewise.
8301 * config/ia64/ia64.h: Likewise.
8302 * config/ip2k/ip2k.c: Likewise.
8303 * config/iq2000/iq2000.c: Likewise.
8304 * config/m32r/m32r.h: Likewise.
8305 * config/m68hc11/m68hc11.c: Likewise.
8306 * config/mcore/mcore.c: Likewise.
8307 * config/mmix/mmix.c: Likewise.
8308 * config/mn10300/mn10300.c: Likewise.
8309 * config/pa/pa.c: Likewise.
8310 * config/pdp11/pdp11.c: Likewise.
8311 * config/rs6000/rs6000.h: Likewise.
8312 * config/sh/sh.c: Likewise.
8313 * config/sh/sh.h: Likewise.
8314 * config/sparc/sparc.c: Likewise.
8315 * config/sparc/sparc.h: Likewise.
8316 * config/stormy16/stormy16.c: Likewise.
8317 * config/xtensa/xtensa.c: Likewise.
8319 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8321 PR optimization/12147
8322 * reload1.c (reload_reg_free_p): RELOAD_OTHER conflicts with
8323 RELOAD_FOR_OPADDR_ADDR.
8324 (reload_reg_reaches_end_p): RELOAD_FOR_OTHER_ADDRESS register
8325 might be reused as RELOAD_FOR_OPADDR_ADDR register.
8327 2004-01-30 Jan Hubicka <jh@suse.cz>
8329 * reload.c (get_secondary_mem): Fix updating of
8330 secondary_memlocs_elim_used.
8332 2004-01-30 Richard Henderson <rth@redhat.com>
8334 * varasm.c (struct rtx_const, struct pool_constant): Remove.
8335 (MAX_RTX_HASH_TABLE): Remove.
8336 (const_rtx_hash_table, const_rtx_sym_hash_table): Remove.
8337 (first_pool, last_pool, pool_offset): Remove.
8338 (struct rtx_constant_pool): Split out from ...
8339 (struct varasm_status): ... here. Reference one via pointer.
8340 (struct constant_descriptor_rtx): Merge struct pool_constant.
8342 (decode_rtx_const): Remove.
8343 (const_hash_rtx, compare_constant_rtx): Remove.
8344 (record_constant_rtx): Remove.
8345 (const_desc_rtx_hash, const_desc_rtx_eq): New.
8346 (const_desc_rtx_sym_hash, const_desc_rtx_sym_eq): New.
8347 (const_rtx_hash_1, const_rtx_hash): New.
8348 (init_varasm_status): Allocate a rtx_constant_pool, and its hashes.
8349 (simplify_subtraction): Use simplify_rtx.
8350 (force_const_mem): Rewrite to use new data structures.
8351 (find_pool_constant): Likewise.
8352 (get_pool_constant, get_pool_constant_mark,
8353 get_pool_constant_for_function, get_pool_mode,
8354 get_pool_mode_for_function, get_pool_offset, get_pool_size): Likewise.
8355 (output_constant_pool_2): Split out from output_constant_pool.
8356 (output_constant_pool_1): Likewise. Use new pool datastructures.
8357 (output_constant_pool): Zap entire pool datastructure.
8358 (mark_constant): Use new pool datastructures.
8359 (mark_constants): Use for_each_rtx.
8360 (mark_constant_pool): Use new pool datastructures.
8362 2004-01-30 Fariborz Jahanian <fjahanian@apple.com>
8364 * config/rs6000/rs6000.c (rs6000_emit_move): Remove #if 0.
8365 Copy operands[1] to pseudo for simplify_gen_subreg.
8367 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8369 * gcse.c (bypass_block): Fix a typo in the previous check-in
8372 2004-01-30 Andrew Pinski <pinskia@physics.uc.edu>
8374 * toplev.c: Include alloc-pool.h.
8375 * Makefile.in (toplev.c): Update dependencies.
8377 2004-01-30 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
8379 * combine.c (simplify_shift_const, case XOR): Be careful when
8380 commuting XOR with ASHIFTRT.
8382 2004-01-30 Kazu Hirata <kazu@cs.umass.edu>
8383 Eric Botcazou <ebotcazou@libertysurf.fr>
8385 * config/sparc/sparc-protos.h: Remove the prototype for
8386 sparc_builtin_saveregs.
8387 * config/sparc/sparc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8388 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8389 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8390 (TARGET_STRUCT_VALUE_RTX): Likewise.
8391 (TARGET_RETURN_IN_MEMORY): Likewise.
8392 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8393 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8394 (sparc_builtin_saveregs): Make it static.
8395 (sparc_promote_prototypes): New.
8396 (sparc_struct_value_rtx): Likewise.
8397 (sparc_return_in_memory): Likewise.
8398 * config/sparc/sparc.h: (PROMOTE_FUNCTION_ARGS): Remove.
8399 (PROMOTE_FUNCTION_RETURN): Likewise.
8400 (RETURN_IN_MEMORY): Likewise.
8401 (STRUCT_VALUE): Likewise.
8402 (STRUCT_VALUE_INCOMING): Likewise.
8403 (EXPAND_BUILTIN_SAVEREGS): Likewise.
8404 (STRICT_ARGUMENT_NAMING): Likewise.
8405 (PROMOTE_PROTOTYPES): Likewise.
8407 * config/sparc/sparc.h (PROMOTE_MODE): Use word_mode.
8409 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
8412 * varasm.c (const_hash_1) <STRING_CST>: Use the
8413 address to compute the hash value if flag_writable_strings.
8414 (compare_constant) <STRING_CST>: Compare the addresses
8415 if flag_writable_strings.
8416 (build_constant_desc): Do not copy the expression for a
8417 STRING_CST if flag_writable_strings.
8419 2004-01-30 Jan Hubicka <jh@suse.cz>
8421 * alloc-pool.c: Include hashtab.h
8422 (alloc_pool_descriptor): New structure
8423 (alloc_pool_hash): New global variable.
8424 (hash_descriptor, eq_descriptor, alloc_pool_descriptor): New.
8425 (create_alloc_pool): Update statistics.
8426 (free_alloc_pool): Likewise.
8427 (pool_alloc): Likewise.
8428 (output_info): New structure
8429 (print_statistics, dump_alloc_pool_statistics): New function.
8430 * alloc-pool.h (alloc_pool_def): Turn name to be constant.
8431 (dump_alloc_pool_statistics): Declare.
8432 * toplev.c (finalize): Dump statistics.
8434 * reload.c (secondary_memlocs_elim_used): New static variable.
8435 (get_secondary_mem): Update it.
8436 (find_reloads): Use it.
8438 2004-01-30 Steven Bosscher <s.bosscher@student.tudelft.nl>
8440 * toplev.c: Fix broken checkin of 2003-12-30, again.
8442 2004-01-30 Ulrich Weigand <uweigand@de.ibm.com>
8444 * configure.ac (gcc_cv_as_dwarf2_debug_line): Enable test for
8445 s390*-*-* targets by specifying a 'nop' insn.
8446 * configure: Regenerate.
8448 2004-01-30 Eric Botcazou <ebotcazou@libertysurf.fr>
8451 * config/sparc/sparc.md (movhi_lo_sum): Tighten predicates.
8453 2004-01-29 Jakub Jelinek <jakub@redhat.com>
8455 * emit-rtl.c (change_address): Use XEXP (memref, 0) instead
8456 of addr when creating MEM copy.
8458 2004-01-29 Devang Patel <dpatel@apple.com>
8460 * dwarf2out.c (gen_field_die): Do not equate decl number to die.
8462 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
8465 * reload.c (find_reloads): Only support one pair of commutative
8468 2004-01-29 Roger Sayle <roger@eyesopen.com>
8471 * tree.c (unsafe_for_reeval): Handle EXIT_BLOCK_EXPR nodes specially
8472 as their EXIT_BLOCK_LABELED_BLOCK operands can lead to unbounded
8475 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
8477 * config/frv/frv.c: Don't mention deprecated macros in
8478 comments. Remove some target-independent comments about
8480 * config/frv/frv.h: Likewise.
8482 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8484 * cfghooks.c (split_block): Set probability and count of the
8487 2005-01-29 Josef Zlomek <zlomekj@suse.cz>
8489 * dwarf2out.c (struct die_struct): Added field decl_id.
8490 (decl_die_table): Changed to hash table.
8491 (decl_die_table_allocated): Deleted.
8492 (decl_die_table_in_use): Deleted.
8493 (DECL_DIE_TABLE_INCREMENT): Deleted.
8494 (decl_die_table_hash): New function.
8495 (decl_die_table_eq): New function.
8496 (lookup_decl_die): Lookup in a hash table.
8497 (equate_decl_number_to_die): Insert into a hash table.
8498 (dwarf2out_init): Init hash table decl_die_table.
8500 2004-01-29 Jakub Jelinek <jakub@redhat.com>
8502 PR optimization/13424
8503 * expr.c (store_constructor): Revert 2003-12-03 change.
8505 * emit-rtl.c (change_address): Check also if MEM_ATTRS is set as
8506 expected before returning early. Avoid sharing RTL if they
8509 * config/i386/i386.c (ix86_expand_movstr): Rework rep_mov and strmov
8510 handling so that memory attributes are preserved. Don't call
8511 ix86_set_move_mem_attrs.
8512 (ix86_set_move_mem_attrs_1, ix86_set_move_mem_attrs): Removed.
8513 (ix86_expand_clrstr): Rename src argument to
8514 dst. Rework rep_stos and strset handling so that memory attributes
8516 (ix86_expand_strlen): Pass src argument to
8517 ix86_expand_strlensi_unroll_1. Rework strlenqi_1 handling so that
8518 memory attributes are preserved.
8519 (ix86_expand_strlensi_unroll_1): Add src argument. Use
8520 change_address instead of gen_rtx_MEM.
8521 * config/i386/i386.md (strmov, strmov_singleop, rep_mov): New
8523 (strmovdi_rex64, strmovsi, strmovsi_rex64, strmovhi, strmovhi_rex64,
8524 strmovqi, strmovqi_rex64): Remove.
8525 (rep_mov*, strmov*): Prefix insn names with *.
8526 (strset, strset_singleop, rep_stos): New expanders.
8527 (strsetdi_rex64, strsetsi, strsetsi_rex64, strsethi, strsethi_rex64,
8528 strsetqi, strsetqi_rex64): Remove.
8529 (rep_stos*, strset*): Prefix insn names with *.
8530 (rep_stosqi_rex64): Likewise. Fix mode of dirflag reg from DImode
8532 (cmpstrsi): Rework cmpstrqi_1 handling so that memory attributes
8534 (cmpstrqi_nz_1, cmpstrqi_nz_rex_1, cmpstrqi_1, cmpstrqi_rex_1):
8535 Prefix insn names with *.
8536 (cmpstrqi_nz_1, cmpstrqi_1): New expanders.
8537 (strlenqi_1, strlenqi_rex_1): Prefix insn names with *.
8538 (strlenqi_1): New expander.
8539 * config/i386/i386.h (ix86_set_move_mem_attrs): Remove prototype.
8541 2004-01-29 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8543 * Makefile.in (cfghooks.o): Add TIMEVAR_H and toplev.h dependency.
8544 * basic-block.h (tidy_fallthru_edge, tidy_fallthru_edges, dump_bb,
8545 verify_flow_info): Declaration removed.
8546 * cfg.c (verify_flow_info, dump_bb): Moved to cfghooks.c.
8547 (debug_bb, debug_bb_n): Add argument to dump_bb call.
8548 * cfgcleanup.c (try_simplify_condjump, try_crossjump_to_edge,
8549 try_optimize_cfg, delete_unreachable_blocks): Use delete_basic_block
8550 instead of delete_block.
8551 * cfghooks.c: Include timevar.h and toplev.h.
8552 (cfg_hooks): Define here.
8553 (verify_flow_info, dump_bb): Moved from cfg.c.
8554 (redirect_edge_and_branch, redirect_edge_and_branch_force,
8555 split_block, split_block_after_labels, move_block_after,
8556 delete_basic_block, split_edge, create_basic_block,
8557 create_empty_bb, can_merge_blocks_p, merge_blocks,
8558 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
8560 * cfghooks.h (struct cfg_hooks): Added fields name,
8561 make_forwarder_block, tidy_fallthru_edge and
8562 move_block_after. Changed type of verify_flow_info, dump_bb,
8563 split_block fields. Renamed cfgh_split_edge and delete_block
8565 (redirect_edge_and_branch, redirect_edge_and_branch_force,
8566 split_block, delete_block, split_edge, create_basic_block,
8567 can_merge_blocks_p, merge_blocks): Macros removed.
8568 (cfg_hooks): Do not export.
8569 (verify_flow_info, dump_bb, redirect_edge_and_branch,
8570 redirect_edge_and_branch_force, split_block, split_block_after_labels,
8571 move_block_after, delete_basic_block, split_edge, create_basic_block,
8572 create_empty_bb, can_merge_blocks_p, merge_blocks,
8573 make_forwarder_block, tidy_fallthru_edge, tidy_fallthru_edges):
8575 (cfg_layout_rtl_cfg_hooks): Declare.
8576 * cfgloop.c (update_latch_info, mfb_keep_just, mfb_keep_nonlatch):
8578 (canonicalize_loop_headers): Use new semantics of make_forwarder_block.
8579 (redirect_edge_with_latch_update): Removed.
8580 (make_forwarder_block): Moved to cfghooks.c, semantics changed.
8581 * cfgloopmanip.c (remove_bbs): Do not update dominators here.
8582 * cfgrtl.c (cfg_layout_split_block, rtl_split_block, rtl_dump_bb,
8583 rtl_delete_block, rtl_split_block, rtl_merge_blocks,
8584 tidy_fallthru_edge, rtl_split_edge, cfg_layout_delete_block,
8585 cfg_layout_merge_blocks, cfg_layout_split_edge): Partly moved to
8587 (rtl_create_basic_block): Coding style fix.
8588 (rtl_tidy_fallthru_edge, rtl_move_block_after,
8589 rtl_make_forwarder_block): New functions.
8590 (update_cfg_after_block_merging): Removed.
8591 (rtl_cfg_hooks, cfg_layout_rtl_cfg_hooks): Fill in new entries.
8592 * flow.c (verify_wide_reg, verify_local_live_at_start): Add argument
8594 * ifcvt.c (merge_if_block, find_cond_trap, find_if_case_1,
8595 find_if_case_2): Don't update dominators.
8596 * timevar.def (TV_CFG_VERIFY): New.
8597 * loop-unswitch.c (unswitch_loop): Don't call add_to_dominance_info.
8598 * cfglayout.c (copy_bbs): Don't call add_to_dominance_info.
8599 * cfgloopmanip.c (split_loop_bb): Don't update dominators.
8600 (remove_bbs): Don't call remove_bbs.
8601 (create_preheader): Use make_forwarder_block.
8602 (mfb_keep_just, mfb_update_loops): New static functions.
8604 2004-01-29 Kazu Hirata <kazu@cs.umass.edu>
8606 * config/avr/avr.h: Remove target-independent comments about
8609 2004-01-28 Daniel Berlin <dberlin@dberlin.org>
8611 * timevar.c (timevar_print): Mention when checking is enabled.
8613 2004-01-28 Giovanni Bajo <giovannibajo@gcc.gnu.org>
8615 * c-lex.c (c_lex): Rename to...
8616 (c_lex_with_flags): Add new parameter to get CPP flags.
8617 (c_lex): Thunk to c_lex_with_flags while keeping the old interface.
8618 * c-pragma.h (c_lex_with_flags): Declare.
8620 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8622 * config/mcore/mcore.c (mcore_external_libcall): Add a
8624 (mcore_return_in_memory): Likewise.
8626 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8628 * config/mcore/mcore-protos.h: Remove the prototype for
8629 mcore_setup_incoming_varargs.
8630 * config/mcore/mcore.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8631 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
8632 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8633 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8634 (TARGET_STRUCT_VALUE_RTX): Likewise.
8635 (TARGET_RETURN_IN_MEMORY): Likewise.
8636 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8637 (mcore_setup_incoming_varargs): Make it static. Receive the
8638 first argument by reference. Add argument second_time.
8639 (mcore_external_libcall): New.
8640 (mcore_return_in_memory): Likewise.
8641 * config/mcore/mcore.h (PROMOTE_FUNCTION_ARGS): New.
8642 (PROMOTE_FUNCTION_RETURN): Likewise.
8643 (STRUCT_VALUE): Likewise.
8644 (RETURN_IN_MEMORY): Likewise.
8645 (SETUP_INCOMING_VARARGS): Likewise.
8646 (PROMOTE_PROTOTYPES): Likewise.
8647 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8649 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8651 * config/m32r/m32r-protos.h: Remove the prototype for
8652 m32r_setup_incoming_varargs.
8653 * config/m32r/m32r.c (TARGET_PROMOTE_PROTOTYPES): New.
8654 (TARGET_STRUCT_VALUE_RTX): Likewise.
8655 (TARGET_RETURN_IN_MEMORY): Likewise.
8656 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8657 (m32r_return_in_memory): New.
8658 (m32r_setup_incoming_varargs): Make it static.
8659 * config/m32r/m32r.h: Remove #undef of
8660 ASM_OUTPUT_EXTERNAL_LIBCALL. Remove the commented-out
8661 definitions of PROMOTE_FUNCTION_ARGS and
8662 PROMOTE_FUNCTION_RETURN.
8663 (PROMOTE_PROTOTYPES): Remove.
8664 (RETURN_IN_MEMORY): Likewise.
8665 (STRUCT_VALUE): Likewise.
8667 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8669 * config/m68k/m68k.c (TARGET_PROMOTE_PROTOTYPES): New.
8670 (TARGET_STRUCT_VALUE_RTX): Likewise.
8671 (m68k_struct_value_rtx): Likewise.
8672 * config/m68k/m68k.h (STRUCT_VALUE_REGNUM): Rename to
8673 STRUCT_VALUE_REGNUM.
8674 (PROMOTE_PROTOTYPES): Remove.
8675 * config/m68k/m68kelf.h (STRUCT_VALUE_REGNUM): Rename to
8676 STRUCT_VALUE_REGNUM.
8677 * config/m68k/m68kv4.h (STRUCT_VALUE_REGNUM): Likewise.
8678 * config/m68k/netbsd-elf.h (STRUCT_VALUE_REGNUM): Likewise.
8680 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8682 * config/stormy16/stormy16.c
8683 (TARGET_BUILD_BUILTIN_VA_LIST_TYPE): Rename to
8684 TARGET_BUILD_BUILTIN_VA_LIST.
8686 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8688 * config/v850/v850.c (TARGET_PROMOTE_PROTOTYPES): New.
8689 (TARGET_STRUCT_VALUE_RTX): Likewise.
8690 (TARGET_RETURN_IN_MEMORY): Likewise.
8691 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8692 (v850_return_in_memory): Likewise.
8693 (v850_setup_incoming_varargs): Likewise.
8694 * config/v850/v850.h (PROMOTE_PROTOTYPES): Remove.
8695 (SETUP_INCOMING_VARARGS): Likewise.
8696 (RETURN_IN_MEMORY): Likewise.
8697 (STRUCT_VALUE): Likewise.
8699 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8701 * config/fr30/fr30.c (TARGET_PROMOTE_PROTOTYPES): New.
8702 (fr30_setup_incoming_varargs): Don't use
8703 STRICT_ARGUMENT_NAMING.
8704 * config/fr30/fr30.h (PROMOTE_PROTOTYPES): Remove.
8705 (STRICT_ARGUMENT_NAMING): Likewise.
8707 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8709 * config/frv/frv-protos.h: Remove the prototype for
8710 frv_expand_builtin_saveregs.
8711 * config/frv/frv.c (TARGET_STRUCT_VALUE_RTX): Likewise.
8712 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
8713 (frv_stack_info): Use FRV_STRUCT_VALUE_REGNUM instead of
8714 STRUCT_VALUE_REGNUM.
8715 (frv_expand_builtin_saveregs): Make it static.
8716 (frv_struct_value_rtx): New.
8717 * config/frv/frv.h (EXPAND_BUILTIN_SAVEREGS): Remove.
8719 2004-01-29 Jan Hubicka <jh@suse.cz>
8722 * cgraph.c (cgraph_remove_node): Clear out saved/insns/arguments and
8724 * cgraphunit.c (cgraph_finalize_function): Clear out DECL_SAVED_INSNS
8725 for functions that will be only inlined.
8726 (cgraph_mark_function_to_output): Likewise.
8727 (cgraph_expand_function): Sanity check that DECL_DEFER_OUTPUT is clear;
8728 do not clear function body.
8729 * tree-optimize.c (clear_decl_rtl): Use decl_function_context.
8730 (tree_rest_of_compilation): Reorganize the logic releasing function
8731 body to use callgraph datastructure.
8733 2004-01-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8735 * pa.md: Change predicate of a peephole2 pattern from reg_or_0_operand
8736 to register_operand.
8738 2004-01-28 Zack Weinberg <zack@codesourcery.com>
8740 * config/ia64/ia64.md (fetchadd_acq_si, fetchadd_acq_di)
8741 (cmpxchg_acq_si, cmpxchg_acq_di): Exchange match_dup and
8742 match_operand expressions so that all match_dups appear
8743 lexically after their corresponding match_operands.
8745 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8747 * config/h8300/h8300.c (WORD_REG_USED): Use
8748 HARD_FRAME_POINTER_REGNUM instead of FRAME_POINTER_REGNUM.
8749 (compute_saved_regs): Likewise.
8750 (h8300_expand_prologue): Likewise. Allocate locals after
8752 (h8300_expand_epilogue): Use HARD_FRAME_POINTER_REGNUM instead
8753 of FRAME_POINTER_REGNUM. Deallocate locals before saving
8755 (h8300_initial_elimination_offset): Adjust for the new frame
8756 layout, which swaps flips the order of locals and saved
8758 * config/h8300/h8300.h (FIRST_PSEUDO_REGISTER): Change to 12.
8759 (HARD_FRAME_POINTER_REGNUM): New.
8760 (ELIMINABLE_REGS): Add an elimination rule from
8761 FRAME_POINTER_REGNUM to HARD_FRAME_POINTER_REGNUM.
8762 (REGISTER_NAMES): Add fp.
8763 * config/h8300/h8300.md (FP_REG): Change to 11.
8766 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8768 * genrecog.c (write_node): Remove a useless local variable.
8770 2004-01-28 Ian Lance Taylor <ian@wasabisystems.com>
8772 * Makefile.in (options.c options.h): Use stamp file s-options to
8773 avoid unnecessary rebuilds.
8774 (options.o): New target listing dependencies.
8775 (gtyp-gen.h): Use stamp file s-gtyp-gen.
8776 (STAGESTUFF): Add s-gtyp-gen.
8778 2004-01-28 Richard Henderson <rth@redhat.com>
8780 * ggc.h (ggc_free): Declare.
8781 * ggc-common.c (ggc_realloc): Use it.
8782 * ggc-page.c: Remove lots of inline markers.
8783 (globals): Add free_object_list.
8785 (ggc_free, validate_free_objects): New.
8786 (poison_pages): Provide default.
8787 (ggc_collect): Call validate_free_objects; emit markers to
8790 2004-01-28 Zack Weinberg <zack@codesourcery.com>
8791 Jim Wilson <wilson@specifixinc.com>
8793 * config/ia64/ia64.c (ia64_split_tmode, ia64_split_tmode_move):
8794 Rewrite to use POST_INC/POST_DEC/POST_MODIFY instead of a
8796 (ia64_secondary_reload_class): Delete case GR_REGS.
8797 * config/ia64/ia64.md (movti, *movti_internal, movtf, *movtf_internal):
8798 Do not allocate a scratch register.
8799 (reload_inti, reload_outti, reload_intf, reload_outtf): Delete.
8801 2004-01-28 Jan Hubicka <jh@suse.cz>
8803 * gcse.c (bypass_block): Prevent edges to be unified when we are
8804 about to emit compenstation code.
8806 2004-01-28 Nick Clifton <nickc@redhat.com>
8808 * config/arm/arm.c (arm_expand_builtin): Force second argument of
8809 the setcwx insn into a register.
8811 2004-01-28 Richard Sandiford <rsandifo@redhat.com>
8813 * config/fp-bit.c (pack_d): When using paired doubles to implement
8814 a long double, round the high part separately.
8815 (unpack_d): Fix the case in which the high part is a power of two
8816 and the low part is a nonzero value of the opposite sign.
8818 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8820 * config/c4x/c4x.c (TARGET_ASM_EXTERNAL_LIBCALL): New.
8821 (TARGET_STRUCT_VALUE_RTX): Likewise.
8822 (c4x_external_libcall): Likewise.
8823 (c4x_struct_value_rtx): Likewise.
8824 * config/c4x/c4x.h: Remove.
8825 (STRUCT_VALUE_REGNUM): Likewise.
8826 (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
8828 2004-01-28 Kazu Hirata <kazu@cs.umass.edu>
8830 * config/i386/i386.c (TARGET_PROMOTE_PROTOTYPES): New.
8831 (TARGET_STRUCT_VALUE_RTX): Likewise.
8832 * config/i386/i386.h (STRUCT_VALUE_INCOMING): Remove.
8833 (STRUCT_VALUE): Likewise.
8834 (PROMOTE_PROTOTYPES): Likewise.
8836 2004-01-27 Roger Sayle <roger@eyesopen.com>
8838 * config/pa/pa.c (emit_move_sequence): Check that operand1 is a
8839 CONST_INT before using INTVAL.
8841 2004-01-27 Ulrich Weigand <uweigand@de.ibm.com>
8843 * config/s390/s390.h (TARGET_DEFAULT): Default to !TARGET_BACKCHAIN.
8844 * config/s390/s390.c (s390_return_addr_rtx): Fail for all but current
8845 frame if !TARGET_BACKCHAIN.
8846 * config/s390/s390.md ("allocate_stack"): Use pattern only if
8848 * doc/invoke.texi (-mbackchain/-mno-backchain): Document new default.
8850 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8852 * ia64.c (ia64_function_arg): When placing HFAs in integer
8853 registers, do not special case the mode used for complex
8854 types. Do not advance int_regs until the current register
8857 2004-01-27 Richard Sandiford <rsandifo@redhat.com>
8860 * except.c (init_eh): Use a 5-word __jbuf for __builtin_setjmp().
8862 2004-01-27 David Edelsohn <edelsohn@gnu.org>
8864 * config/rs6000/rs6000.c (rs6000_emit_move): #if 0 splitting
8865 slow, unaligned loads and stores while debugging. Fix formatting.
8867 2004-01-27 David Edelsohn <edelsohn@gnu.org>
8869 * config/rs6000/rs6000.md (save_stack_nonlocal): Use Pmode instead
8871 (restore_stack_nonlocal): Same.
8873 2004-01-27 Devang Patel <dpatel@apple.com>
8875 * Makefile.in (dwarf2out.o): Depend on input.h
8876 * dbxout.c (dbx_debug_hooks): Add new empty hook for
8877 imported_module_or_decl.
8878 (xcoff_debug_hooks): Same.
8879 * sdbout.c (sdb_debug_hooks): Same.
8880 * vmsdbgout.c (vmsdbg_debug_hooks): Same.
8881 * debug.c (do_nothing_debug_hooks): Same.
8882 (debug_nothing_tree_tree): New function.
8883 * debug.h (gcc_debug_hooks): New hook, imported_module_or_decl.
8884 * dwarf2out.c: Include input.h.
8885 (dwarf2_debug_hooks): Add new hook for imported_module_or_decl.
8886 (remove_child_TAG): New function.
8887 (dwarf_tag_name): Handle DW_TAG_imported_module.
8888 (gen_subprogram_die): Equate decl number to declaration die. Do not
8889 remove all children dies while reusing declaration die for definition.
8890 Instead, selectively remove only formal parameters.
8891 (gen_variable_die): Equate variable decl to declaration die.
8892 (gen_field_die): Equate field decl to line number.
8893 (force_namespace_die): Replace it with ...
8894 (force_decl_die): ... this.
8895 (force_type_die): New function.
8896 (setup_namespace_context): Replace use of force_namespace_die() with
8898 (gen_namespace_die): Same.
8899 (dwarf2out_imported_module_or_decl): New function.
8901 2004-01-27 Bob Wilson <bob.wilson@acm.org>
8903 * config/xtensa/xtensa.c (xtensa_copy_incoming_a7): Remove SUBREG
8904 on CQImode and CHImode incoming arguments in register a7.
8905 (function_arg): Wrap BLKmode argument in register a7 in a PARALLEL.
8906 * config/xtensa/xtensa.h (BLOCK_REG_PADDING): Define.
8907 * config/xtensa/xtensa.md (movdi, movdf): Only call force_reg or
8908 xtensa_copy_incoming_a7 before reload.
8910 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
8912 * coverage.c (get_coverage_counts): Give a different message
8913 if flag_guess_branch_prob is set.
8914 * predict.c (counts_to_freqs): Return an int.
8915 (estimate_bb_frequencies): If counts_to_freqs returns zero,
8916 calculate estimates.
8918 2004-01-27 Kazu Hirata <kazu@cs.umass.edu>
8920 * config/iq2000/iq2000-protos.h: Remove the prototype for
8921 iq2000_setup_incoming_varargs.
8922 * config/iq2000/iq2000.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
8923 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
8924 (TARGET_PROMOTE_PROTOTYPES): Likewise.
8925 (TARGET_STRUCT_VALUE_RTX): Likewise.
8926 (TARGET_RETURN_IN_MEMORY): Likewise.
8927 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
8928 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
8929 (iq2000_return_in_memory): Likewise.
8930 (iq2000_setup_incoming_varargs): Make it static. Receive the
8931 first argument by reference.
8932 * config/iq2000/iq2000.h (PROMOTE_FUNCTION_ARGS): Remove.
8933 (PROMOTE_FUNCTION_RETURN): Likewise.
8934 (PROMOTE_PROTOTYPES): Likewise.
8935 (RETURN_IN_MEMORY): Likewise.
8936 (STRUCT_VALUE): Likewise.
8937 (SETUP_INCOMING_VARARGS): Likewise.
8938 (STRICT_ARGUMENT_NAMING): Likewise.
8940 2004-01-24 James A. Morrison <ja2morri@uwaterloo.ca>
8942 * fixinc/fixinc.c (test_test): Initialize res.
8943 (start_flexer): Initialize pz_cmd_save.
8945 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8947 * doc/rtl.texi (Arithmetic): Rewrite entries for PLUS,
8948 SS_PLUS, US_PLUS, LO_SUM, MINUS, SS_MINUS, US_MINUS.
8950 2004-01-27 Zack Weinberg <zack@codesourcery.com>
8953 * config/ia64/ia64.md (*nmaddsf4, *nmadddf4, *nmadddf4_alts)
8954 (*nmadddf4_trunc, *nmaddxf4, *nmaddxf4_truncsf, *nmaddxf4_truncdf)
8955 (*nmaddxf4_alts, *nmaddxf4_truncdf_alts):
8956 Rewrite pattern as (minus (op 3) (mult (op 1) (op 2))).
8957 Possibly rename pattern for consistency.
8958 Remove ??? comments suggesting that this be done.
8959 (*nmaddsf4_alts, *nmadddf4_truncsf_alts, *nmaddxf4_truncsf_alts):
8961 (divsi3_internal, divdi3_internal_lat, divdi3_internal_thr)
8962 (divsf3_internal_lat, divsf3_internal_thr, sqrtsf2_internal_thr)
8963 (divdf3_internal_lat, divdf3_internal_thr, sqrtdf2_internal_thr)
8964 (divxf3_internal_lat, divxf3_internal_thr, sqrtxf2_internal_thr):
8967 2004-01-27 Ian Lance Taylor <ian@wasabisystems.com>
8969 * config/arm/arm.c (output_return_instruction): Only restore IP
8970 into SP if frame_pointer_needed.
8972 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8974 * config/sparc/sparc.c (function_arg_pass_by_reference): Return 1
8975 for SCmode and DCmode if ARCH32.
8976 (sparc_va_arg): Handle SCmode and DCmode by reference if ARCH32.
8977 * config/sparc/sparc.h (RETURN_IN_MEMORY): Return 0 for TCmode
8979 (BASE_RETURN_VALUE_REG): Return 32 for all FP modes except TFmode
8981 (BASE_OUTGOING_VALUE_REG): Likewise.
8983 2004-01-27 Eric Botcazou <ebotcazou@libertysurf.fr>
8987 * config/sparc/sparc.h (CANNOT_CHANGE_MODE_CLASS): New.
8988 Forbid mode changes from SImode for lower FP regs if ARCH64.
8990 2004-01-27 J"orn Rennecke <joern.rennecke@superh.com>
8992 * Makefile.in (bt-load.o): Depend on except.h.
8993 * bt-load.c (except.h): #include.
8994 (compute_defs_uses_and_gen): If insn at end of BB can throw
8995 within this function, consider registers used by it unavailable for
8997 (move_btr_def): If insn at end of BB can throw, insert before rather
9000 * flags.h (flag_btr_bb_exclusive): Declare.
9001 * toplev.c (flag_btr_bb_exclusive): New variable.
9002 (f_options): Add btr-bb-exclusive.
9003 * bt-load.c (augment_live_range): Restore old behaviour if
9004 flag_btr_bb_exclusive is set.
9005 * common.opt: Add entry for -fbtr-bb-exclusive.
9006 * opts.c (common_handle_options): Same.
9007 * doc/invoke.texi: Document -fbtr-bb-exclusive.
9009 * bt-load.c (btrs_live_at_end): New variable.
9010 (compute_defs_uses_and_gen): Compute its pointed-to array.
9011 (clear_btr_from_live_range, add_btr_to_live_range): Update it.
9012 (augment_live_range): When augmenting with a new dominator,
9013 use only its btrs_live_at_end set, but also add in the full set
9014 of the old dominator.
9015 (btr_def_live_range): Use btrs_live_at_end.
9016 (move_btr_def): Set other_btr_uses_before_def, and move new set
9017 to the end of the basic block, if appropriate.
9018 (migrate_btr_defs): Allocate and free btrs_live_at_end.
9020 * bt-load.c (basic_block_freq): Remove outdated comment.
9022 2004-01-27 Alan Modra <amodra@bigpond.net.au>
9024 * config/rs6000/rs6000.h: Correct target_flags free bits comment.
9025 (PREDICATE_CODES): Remove duplicate.
9026 * config/rs6000/linux64.h (CPP_SYSV_SPEC): Don't define.
9027 (SUBSUBTARGET_OVERRIDE_OPTIONS): Disallow 32 bit TARGET_PROFILE_KERNEL.
9028 (MASK_PROFILE_KERNEL): Adjust define.
9030 2004-01-27 Jakub Jelinek <jakub@redhat.com>
9032 * config/i386/i386.c (ix86_constant_alignment): Decrease alignment
9033 of long string literals from 32 bytes to sizeof (void *) when !-Os
9036 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9038 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Accept
9039 constant addresses in the normal mode.
9041 2004-01-26 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9043 * system.h (CHAR_BITFIELD): Delete.
9044 (BOOL_BITFIELD): New.
9045 * c-decl.c (c_scope): Use BOOL_BITFIELD.
9046 * gengtype-lex.l: Recognize BOOL_BITFIELD instead of CHAR_BITFIELD.
9048 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9050 * config/arc/arc.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9051 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9052 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9053 (TARGET_STRUCT_VALUE_RTX): Likewise.
9054 (TARGET_RETURN_IN_MEMORY): Likewise.
9055 (arc_return_in_memory): Likewise.
9056 * config/arc/arc.h (PROMOTE_FUNCTION_ARGS): Remove.
9057 (PROMOTE_FUNCTION_RETURN): Likewise.
9058 (RETURN_IN_MEMORY): Likewise.
9059 (STRUCT_VALUE): Likewise.
9061 2004-01-26 Richard Henderson <rth@redhat.com>
9063 * c-parse.in (extension): Use itype.
9064 (SAVE_EXT_FLAGS): Don't allocate a tree.
9065 (RESTORE_EXT_FLAGS): Don't read a tree.
9067 2004-01-26 Jan Hubicka <jh@suse.cz>
9069 * cselib.c (discard_useless_values): Clear out value pointer pointing
9070 to datastructure to be recycled.
9072 2004-01-25 Jan Hubicka <jh@suse.cz>
9074 * genextract.c (main): Do not output the memset when not checking.
9076 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9078 * config/h8300/h8300.c (h8300_tiny_constant_address_p): Use a
9079 switch statement instead of a chain of if statements.
9081 2004-01-26 Jeff Law <law@redhat.com>
9083 * doc/contrib.texi: Minor cleanup for Paolo Carlini's entry. Add
9084 acute accents for Petur Runolfsson's entry.
9086 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9088 * config/pdp11/pdp11.c (TARGET_STRUCT_VALUE_RTX): New.
9089 (TARGET_RETURN_IN_MEMORY): Likewise.
9090 * config/pdp11/pdp11.h (STRUCT_VALUE): Remove.
9091 (RETURN_IN_MEMORY): Likewise.
9093 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9095 * config/rs6000/rs6000.c (rs6000_emit_move): split slow
9096 unaligned load/store into smaller loads and stores.
9098 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9100 * function.c (assign_parms): Do not assign
9101 long long argument to memory in prologue if
9102 is it loaded into register.
9104 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9107 * expr.c (emit_group_load): split constant
9108 correctly into register components of PARALLEL insn.
9110 2004-01-26 Fariborz Jahanian <fjahanian@apple.com>
9112 * gcc/config/rs6000/rs6000.md (save_stack_nonlocal):
9113 Use adjust_address_nv directly with appropriate mode.
9114 (restore_stack_nonlocal): Ditto.
9116 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9118 * config/xtensa/xtensa-protos.h: Remove the prototype for
9119 xtensa_builtin_saveregs.
9120 * config/xtensa/xtensa.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9121 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9122 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9123 (TARGET_STRUCT_VALUE_RTX): Likewise.
9124 (TARGET_RETURN_IN_MEMORY): Likewise.
9125 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9126 (xtensa_builtin_saveregs): Make it static.
9127 (xtensa_return_in_memory): New.
9128 * config/xtensa/xtensa.h (PROMOTE_FUNCTION_ARGS: Remove.
9129 (PROMOTE_FUNCTION_RETURN): Likewise.
9130 (PROMOTE_PROTOTYPES): Likewise.
9131 (STRUCT_VALUE): Likewise.
9132 (RETURN_IN_MEMORY): Likewise.
9133 (EXPAND_BUILTIN_SAVEREGS): Likewise.
9135 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9137 * config/arm/arm.c (TARGET_SETUP_INCOMING_VARARGS): New.
9138 (arm_setup_incoming_varargs): Likewise.
9139 * config/arm/arm.h (SETUP_INCOMING_VARARGS): Remove.
9141 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9143 * config/cris/cris.c (TARGET_SETUP_INCOMING_VARARGS): New.
9144 (cris_setup_incoming_varargs): Likewise.
9145 * config/cris/cris.h (SETUP_INCOMING_VARARGS): Remove.
9147 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9149 * config/ns32k/ns32k.c (TARGET_STRUCT_VALUE_RTX): New.
9150 (ns32k_struct_value_rtx): Likewise.
9151 * config/ns32k/ns32k.h (STRUCT_VALUE_REGNUM): Rename to
9152 NS32K_STRUCT_VALUE_REGNUM.
9154 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9156 * config/arm/arm.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9157 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9158 (TARGET_STRUCT_VALUE_RTX): Likewise.
9159 (arm_struct_value_rtx): Likewise.
9160 * config/arm/arm.h (PROMOTE_FUNCTION_ARGS): Remove.
9161 (STRUCT_VALUE): Likewise.
9162 (STRUCT_VALUE_REGNUM): Likewise.
9163 (PROMOTE_PROTOTYPES): Likewise.
9165 2004-01-26 Kazu Hirata <kazu@cs.umass.edu>
9167 * config/ia64/ia64-protos.h: Remove the prototype for
9168 ia64_setup_incoming_varargs and ia64_return_in_memory.
9169 * config/ia64/ia64.c (TARGET_STRUCT_VALUE_RTX): New.
9170 (TARGET_RETURN_IN_MEMORY): Likewise.
9171 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9172 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9173 (ia64_setup_incoming_varargs): Adjust the arguments to meet
9174 the requirement of TARGET_SETUP_INCOMING_VARARGS.
9175 (ia64_return_in_memory): Make it static. Change the return
9176 type to bool from int. Add an argument.
9177 (ia64_struct_value_rtx): New.
9178 * config/ia64/ia64.h: Remove commented-out definitions of
9179 PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN, and
9181 (RETURN_IN_MEMORY): Remove.
9182 (STRUCT_VALUE_REGNUM): Likewise.
9183 (STRICT_ARGUMENT_NAMING): Likewise.
9185 2004-01-26 Eric Botcazou <ebotcazou@libertysurf.fr>
9188 * config/sparc/sparc.c (function_arg_union_value): New function.
9189 (function_arg): Use it to deal with unions.
9190 (function_value): Likewise. Define 'regbase' only for ARCH64.
9191 Replace a conditional statement by a simpler one.
9193 2004-01-26 Richard Sandiford <rsandifo@redhat.com>
9195 * config/mips/mips.c (mips16_optimize_gp): Delete.
9196 (mips_reorg): Don't call it.
9198 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9200 * config/c4x/c4x.md (addqi3_noclobber): Move up pecking order.
9201 (floatunsqihf2): Remove operand 6.
9202 (fixhfqi_set, fix_trunchfqi2, fixuns_trunchfqi2): Group with other
9204 (ldi_conditional, ldf_conditional): Validate operands.
9206 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9208 * config/c4x/c4x.h (BCT_CHECK_LOOP_ITERATIONS): Remove.
9209 (HAVE_GAS_HIDDEN): Undefine as interim measure.
9211 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9213 * config/c4x/c4x.c (c4x_legitimate_address_p): Invalidate direct
9214 memory references if TARGET_EXPOSE_LDP nonzero.
9216 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9218 * config/c4x/c4x.c (legitimize_operands): Truncate invalid shift counts.
9220 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9222 * config/c4x/c4x.c (c4x_valid_operands): More aggressively reject
9223 invalid operand combinations.
9225 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9227 * config/c4x/c4x.c (c4x_check_legit_addr): Rename to
9228 c4x_legitimate_address_p. Fix post_modify check.
9230 * config/c4x/c4x-protos.h (c4x_check_legit_addr): Adjust.
9231 * config/c4x/c4x.h (c4x_check_legit_addr): Adjust.
9233 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9235 * config/pa/pa-protos.h: Remove the prototype for
9236 hppa_builtin_saveregs. Add a prototype for
9237 pa_return_in_memory.
9238 * config/pa/pa.c (TARGET_PROMOTE_FUNCTION_RETURN): New.
9239 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9240 (TARGET_STRUCT_VALUE_RTX): Likewise.
9241 (TARGET_RETURN_IN_MEMORY): Likewise.
9242 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9243 (pa_struct_value_rtx): Likewise.
9244 (pa_return_in_memory): Likewise.
9245 * config/pa/pa.h (STRUCT_VALUE_REGNUM): Rename to
9246 PA_STRUCT_VALUE_REGNUM.
9247 (INIT_CUMULATIVE_ARGS): Use pa_return_in_memory.
9248 (EXPAND_BUILTIN_SAVEREGS): Remove.
9249 (PROMOTE_PROTOTYPES): Likewise.
9250 (PROMOTE_FUNCTION_RETURN): Likewise.
9252 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9254 * config/vax/vax.c (TARGET_PROMOTE_PROTOTYPES): New.
9255 (TARGET_STRUCT_VALUE_RTX): Likewise.
9256 (vax_struct_value_rtx): Likewise.
9257 * config/vax/vax.h (STRUCT_VALUE_REGNUM): Rename to
9258 VAX_STRUCT_VALUE_REGNUM.
9259 (PROMOTE_PROTOTYPES): Remove.
9261 2004-01-26 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
9263 * config/c4x/c4x.h (LEGITIMIZE_RELOAD_ADDRESS): Handle symref.
9265 2003-04-25 Chris Demetriou <cgd@broadcom.com>
9267 * config/mips/mips.h (ISA_HAS_HILO_INTERLOCKS): MIPS32, MIPS32r2,
9268 and MIPS64 have HI/LO interlocks. Update comment.
9270 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9272 * config/stormy16/stormy16-protos.h: Remove the prototype for
9273 xstormy16_setup_incoming_varargs.
9274 * config/stormy16/stormy16.c
9275 (xstormy16_setup_incoming_varargs): Remove.
9276 (xstormy16_return_in_memory): New.
9277 (TARGET_PROMOTE_FUNCTION_ARGS): Likewise.
9278 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9279 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9280 (TARGET_STRUCT_VALUE_RTX): Likewise.
9281 (TARGET_RETURN_IN_MEMORY): Likewise.
9282 * config/stormy16/stormy16.h (PROMOTE_FUNCTION_ARGS): Remove.
9283 (PROMOTE_FUNCTION_RETURN): Likewise
9284 (PROMOTE_PROTOTYPES): Likewise
9285 (RETURN_IN_MEMORY): Likewise
9286 (STRUCT_VALUE): Likewise
9287 (SETUP_INCOMING_VARARGS): Likewise
9289 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
9291 * config/mips/mips.c (mips_offset_within_object_p): New function.
9292 (mips_symbolic_constant_p): Use it in the SYMBOL_SMALL_DATA and
9293 SYMBOL_CONSTANT_POOL cases. Also use it for SYMBOL_GENERAL if the
9294 ABI has 64-bit pointers and the object file only allows 32-bit symbols.
9296 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9298 * config/sh/sh.h (PROMOTE_FUNCTION_ARGS): Remove.
9299 (PROMOTE_FUNCTION_RETURN): Likewise.
9301 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9303 * config/mn10300/mn10300-protos.h: Remove the prototype for
9304 mn10300_builtin_saveregs.
9305 * config/mn10300/mn10300.c (TARGET_PROMOTE_PROTOTYPES): New.
9306 (TARGET_STRUCT_VALUE_RTX): Likewise.
9307 (TARGET_RETURN_IN_MEMORY): Likewise.
9308 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9309 (mn10300_return_in_memory): Likewise.
9310 (mn10300_builtin_saveregs): Make it static.
9311 * config/mn10300/mn10300.h (PROMOTE_PROTOTYPES): Remove.
9312 (RETURN_IN_MEMORY): Likewise.
9313 (STRUCT_VALUE): Likewise.
9314 (EXPAND_BUILTIN_SAVEREGS): Likewise.
9316 2004-01-25 Eric Botcazou <ebotcazou@act-europe.fr>
9319 * cfgcleanup.c (try_optimize_cfg): Explicitly test against 0.
9321 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9323 * config/h8300/lib1funcs.asm (divnorm, modnorm): Optimize by
9326 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9328 * config/i860/i860-protos.h: Remove the prototype for
9330 * config/i860/i860.c (i860_saveregs): Make it static.
9331 (i860_struct_value_rtx): New.
9332 (TARGET_STRUCT_VALUE_RTX): Likewise.
9333 (TARGET_EXPAND_BUILTIN_SAVEREGS): Likewise.
9334 * config/i860/i860.h (STRUCT_VALUE_REGNUM): Rename to
9335 I860_STRUCT_VALUE_REGNUM.
9336 (EXPAND_BUILTIN_SAVEREGS): Remove.
9338 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9340 * config/m68hc11/m68hc11.c (TARGET_STRUCT_VALUE_RTX): New.
9341 (TARGET_RETURN_IN_MEMORY): Likewise.
9342 (m68hc11_struct_value_rtx): Likewise.
9343 (m68hc11_return_in_memory): Likewise.
9344 * config/m68hc11/m68hc11.h: Remove a commented-out definition
9345 of PROMOTE_PROTOTYPES.
9346 (RETURN_IN_MEMORY): Remove.
9347 (STRUCT_VALUE_REGNUM): Likewise.
9349 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9351 * config/mmix/mmix-protos.h: Remove the prototype for
9352 mmix_setup_incoming_varargs.
9353 * config/mmix/mmix.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9354 (TARGET_STRUCT_VALUE_RTX): Likewise.
9355 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9356 (mmix_setup_incoming_varargs): Make it static.
9357 (mmix_struct_value_rtx): New.
9358 * config/mmix/mmix.h (PROMOTE_FUNCTION_ARGS): Remove.
9359 Remove a commented-out definition of PROMOTE_FUNCTION_RETURN.
9360 (STRUCT_VALUE_REGNUM): Remove.
9361 (SETUP_INCOMING_VARARGS): Likewise.
9363 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9365 * config/mips/mips-protos.h: Remove the prototypes for
9366 mips_setup_incoming_varargs and mips_return_in_memory.
9367 * config/mips/mips.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9368 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
9369 (TARGET_PROMOTE_PROTOTYPES): Likewise.
9370 (TARGET_STRUCT_VALUE_RTX): Likewise.
9371 (TARGET_RETURN_IN_MEMORY): Likewise.
9372 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9373 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9374 (mips_setup_incoming_varargs): Match the prototype for
9375 TARGET_SETUP_INCOMING_VARARGS.
9376 (mips_return_in_memory): Make it static. Add argument fntype.
9377 (mips_strict_argument_naming): New.
9378 * config/mips/mips.h (PROMOTE_PROTOTYPES): Remove.
9379 (PROMOTE_FUNCTION_ARGS): Likewise.
9380 (PROMOTE_FUNCTION_RETURN): Likewise.
9381 (STRUCT_VALUE): Likewise.
9382 (RETURN_IN_MEMORY): Likewise.
9383 (SETUP_INCOMING_VARARGS): Likewise.
9384 (STRICT_ARGUMENT_NAMING): Likewise.
9386 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9388 * config/ip2k/ip2k.c (TARGET_STRUCT_VALUE_RTX): New.
9389 (TARGET_RETURN_IN_MEMORY): Likewise.
9390 (TARGET_SETUP_INCOMING_VARARGS): Likewise.
9391 (ip2k_return_in_memory): Likewise.
9392 (ip2k_setup_incoming_varargs): Likewise.
9393 * config/ip2k/ip2k.h (RETURN_IN_MEMORY): Remove.
9394 (STRUCT_VALUE): Likewise.
9395 (STRUCT_VALUE_INCOMING): Likewise.
9396 (SETUP_INCOMING_VARARGS): Likewise.
9398 2004-01-25 Kazu Hirata <kazu@cs.umass.edu>
9400 * config/avr/avr.c (TARGET_STRUCT_VALUE_RTX): New.
9401 (TARGET_RETURN_IN_MEMORY): Likewise.
9402 (TARGET_STRICT_ARGUMENT_NAMING): Likewise.
9403 (avr_return_in_memory): Remove.
9404 * config/avr/avr.h (RETURN_IN_MEMORY): Remove.
9405 (STRUCT_VALUE): Likewise.
9406 (STRUCT_VALUE_INCOMING): Likewise.
9407 (STRICT_ARGUMENT_NAMING): Likewise.
9409 2004-01-25 Jan Hubicka <jh@suse.cz>
9411 * combine.c (recog_for_combine): Avoid allocating unnecesary RTX.
9413 2004-01-25 Richard Sandiford <rsandifo@redhat.com>
9415 * config/mips/mips-protos.h (mips_reg_mode_ok_for_base_p): Delete.
9416 (mips_regno_mode_ok_for_base_p): Declare.
9417 * config/mips/mips.h (ARG_POINTER_REGNUM): Renumber to 77.
9418 (FRAME_POINTER_REGNUM): Renumber to 78.
9419 (FIRST_PSEUDO_REGISTER): Update comment accordingly.
9420 (BASE_REG_P, GP_REG_OR_PSEUDO_STRICT_P): Delete.
9421 (GP_REG_OR_PSEUDO_NONSTRICT_P): Delete.
9422 (REGNO_MODE_OK_FOR_BASE_P): Use mips_regno_mode_ok_for_base_p.
9423 (REG_MODE_OK_FOR_BASE_P): Likewise.
9424 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Change
9425 entry for 77 to "$arg" and entry for 78 to "$frame".
9426 (mips_regno_to_class): Map 77 and 78 to ALL_REGS.
9427 (mips_reg_mode_ok_for_base_p): Remove.
9428 (mips_regno_mode_ok_for_base_p): New function, derived from old
9429 BASE_REG_P macro. Don't enforce the mips16 stack pointer
9430 restrictions unless we're being strict.
9431 (mips_valid_base_register_p): Use mips_regno_mode_ok_for_base_p.
9433 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9435 * c-common.h: Fix comment typos.
9436 * c-decl.c: Likewise.
9437 * cgraphunit.c: Likewise.
9438 * combine.c: Likewise.
9439 * et-forest.c: Likewise.
9441 * function.c: Likewise.
9442 * ifcvt.c: Likewise.
9443 * integrate.c: Likewise.
9445 * postreload.c: Likewise.
9446 * varray.c: Likewise.
9448 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9450 * doc/frontends.texi: Update copyright.
9451 * doc/gcov.texi: Likewise.
9452 * doc/gty.texi: Likewise.
9453 * doc/sourcebuild.texi: Likewise.
9454 * doc/standards.texi: Likewise.
9456 2004-01-24 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
9459 * c4x.md: (movstrqi*) Use match_scratch instead of match_dup.
9460 Remove movstrqi_small because it conflicts with movstrqi_large.
9462 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9464 * config/cris/cris.c (TARGET_PROMOTE_FUNCTION_ARGS): New.
9465 (TARGET_STRUCT_VALUE_RTX): Likewise.
9466 (cris_struct_value_rtx): Likewise.
9467 * config/cris/cris.h (PROMOTE_FUNCTION_ARGS): Remove.
9468 (CRIS_STACKADJ_REG): Use CRIS_STRUCT_VALUE_REGNUM instead of
9469 STRUCT_VALUE_REGNUM.
9470 (STRUCT_VALUE_REGNUM): Rename to CRIS_STRUCT_VALUE_REGNUM.
9472 2004-01-24 Ian Lance Taylor <ian@wasabisystems.com>
9475 * cse.c (cse_cc_succs): Change the mode of the source expression
9476 as soon as decide we need a new mode. Don't permit changing modes
9477 if we found a match in a successor block.
9478 (cse_condition_code_reg): Save original mode of source expression
9479 so that we know whether we have to change the mode in other
9482 2004-01-24 Jan Hubicka <jh@suse.cz>
9484 * emit-rtl.c (change_address, adjust_address_1, offset_address,
9485 widen_memory_access): Return early when there is nothing to change.
9487 2004-01-24 Jakub Jelinek <jakub@redhat.com>
9489 * simplify-rtx.c (simplify_relational_operation): Don't
9490 simplify address == constant into address + -constant == 0.
9492 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9494 * gcc.c (process_command): Don't internationalize the
9496 * mips-tfile.c (main): Likewise.
9498 2004-01-24 Andreas Tobler <a.tobler@schweiz.ch>
9500 * cse.c: (cse_cc_succs) Fix comparison warning.
9502 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9504 * config/h8300/h8300.md: Remove extraneous USE in expanders.
9506 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9508 * config/h8300/h8300-protos.h: Provide prototypes for
9509 h8300_legitimate_constant_p and h8300_legitimate_address_p.
9510 * config/h8300/h8300.c (h8300_legitimate_constant_p): New.
9511 (h8300_rtx_ok_for_base_p): Likewise.
9512 (h8300_legitimate_address_p): Likewise.
9513 * config/h8300/h8300.h (LEGITIMATE_CONSTANT_P): Use
9514 h8300_legitimate_constant_p.
9515 (RTX_OK_FOR_BASE_P): Remove.
9516 (GO_IF_LEGITIMATE_ADDRESS): Use h8300_legitimate_address_p.
9518 2004-01-24 Kazu Hirata <kazu@cs.umass.edu>
9520 * config/h8300/h8300.h (REG_OK_FOR_INDEX_NONSTRICT_P): New.
9521 (REG_OK_FOR_BASE_NONSTRICT_P): Likewise.
9522 (REG_OK_FOR_INDEX_STRICT_P): Likewise.
9523 (REG_OK_FOR_BASE_STRICT_P): Likewise.
9524 (REG_OK_FOR_INDEX_STRICT_P): Use REGNO_OK_FOR_INDEX_P.
9525 (REG_OK_FOR_BASE_STRICT_P): Use REGNO_OK_FOR_BASE_P.
9526 (REG_OK_FOR_INDEX_P): Use REG_OK_FOR_INDEX_STRICT_P.
9527 (REG_OK_FOR_BASE_P): Use REG_OK_FOR_BASE_STRICT_P.
9529 2004-01-24 Jan Hubicka <jh@suse.cz>
9531 * cselib.c (remove_useless_values): Do not access discarded values.
9533 2004-01-24 Joseph S. Myers <jsm@polyomino.org.uk>
9535 * c-typeck.c (build_conditional_expr): Do not allow non-lvalue
9538 2004-01-23 Kazu Hirata <kazu@cs.umass.edu>
9540 * recog.c: Fix a typo in copyright.
9542 2004-01-23 Andrew Pinski <apinski@apple.com>
9544 * config/rs6000/rs6000.md (call): Fix misappiled patch.
9545 (call_value): Likewise.
9547 2004-01-23 Richard Henderson <rth@redhat.com>
9550 * combine.c (SHIFT_COUNT_TRUNCATED): Provide default value.
9551 (simplify_comparison): Don't simplify (eq (zero_extract c 1 r) 0)
9552 if SHIFT_COUNT_TRUNCATED is set.
9554 2004-01-23 Bob Wilson <bob.wilson@acm.org>
9556 * config/xtensa/xtensa.c (xtensa_va_arg): Handle complex values as
9557 separate real and imaginary parts.
9558 * config/xtensa/xtensa.h (SPLIT_COMPLEX_ARGS): Define.
9560 2004-01-23 Hartmut Penner <hpenner@de.ibm.com>
9563 * config/rs6000/rs6000.md (movdf_hardfloat64): Do not disparage
9566 2004-01-23 Jan Hubicka <jh@suse.cz>
9568 * emit-rtl.c (change_address_1): Do not re-generate the RTX if nothing
9571 * alloc-pool.c (align_four): Kill.
9572 (create_alloc_pool): Align size to eight.
9573 (free_alloc_pool, free_pool): Invalidate deallocated data.
9575 2004-01-23 Ian Lance Taylor <ian@wasabisystems.com>
9578 * cse.c (cse_change_cc_mode): New static function.
9579 (cse_change_cc_mode_insns, cse_cc_succs): Likewise.
9580 (cse_condition_code_reg): New function.
9581 * rtl.h (cse_condition_code_reg): Declare.
9582 * toplev.c (rest_of_handle_cse2): Call cse_condition_code_reg.
9583 * target.h (struct gcc_target): Add fixed_condition_code_regs and
9584 cc_modes_compatible.
9585 * target-def.h (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9586 (TARGET_CC_MODES_COMPATIBLE): Define.
9587 (TARGET_INITIALIZER): Add new initializers.
9588 * targhooks.c (default_cc_modes_compatible): New function.
9589 * targhooks.c (default_cc_modes_compatible): Declare.
9590 * hooks.c (hook_bool_intp_intp_false): New function.
9591 * hooks.h (hook_bool_intp_intp_false): Declare.
9592 * config/i386/i386.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
9593 (TARGET_CC_MODES_COMPATIBLE): Define.
9594 (ix86_fixed_condition_code_regs): New static function.
9595 (ix86_cc_modes_compatible): Likewise.
9596 * doc/tm.texi (Condition Code): Document new hooks.
9598 2004-01-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9600 * fixinc/inclhack.def (bad_lval): Renamed to ...
9601 (alpha_bad_lval): ... this.
9603 Restrict to alpha*-dec-osf*.
9604 * fixinc/fixincl.x: Regenerate.
9605 * fixinc/tests/base/dirent.h: Remove, moving test ...
9606 * fixinc/tests/base/testing.h: ... here, reflecting new name.
9608 2004-01-23 Zack Weinberg <zack@codesourcery.com>
9611 * c-decl.c (diagnose_mismatched_decls): Also discard a
9612 built-in if we encounter an old-style definition with the
9615 2004-01-23 Jakub Jelinek <jakub@redhat.com>
9617 * config.gcc (powerpc*-*): Clear $with_cpu or $with_tune if it was
9618 set to default{32,64}.
9620 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9622 * config/rs6000/linux64.h (MD_FALLBACK_FRAME_STATE_FOR)
9623 [!__powerpc64__]: Corrected to handle kernels with changed ucontext.
9625 2004-01-23 Eric Botcazou <ebotcazou@act-europe.fr>
9626 Olivier Hainque <hainque@act-europe.fr>
9628 * fold-const.c (fold_binary_op_with_conditional_arg): Only
9629 build a COMPOUND_EXPR if 'arg' is really a SAVE_EXPR.
9631 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
9633 * config/arm/arm.c (arm_legitimate_address_p): Don't check the mode
9634 size for minipool references.
9636 2004-01-23 Roger Sayle <roger@eyesopen.com>
9638 * real.c (real_floor, real_ceil): Tweak to allow input and output
9639 arguments to overlap.
9640 (real_round): New function to implement round(3m) semantics.
9641 * real.h (real_round): Prototype here.
9642 * builtins.c (fold_builtin_round): New function to constant fold
9643 round, roundf and roundl.
9644 (fold_builtin): Call fold_builtin_round for BUILT_IN_ROUND{,F,L}.
9646 2004-01-23 Alexandre Oliva <aoliva@redhat.com>
9648 PR optimization/13819
9649 * config/sh/sh.c (sh_reorg): Compensate for sharing of CLOBBERs
9650 introduced by 2004-01-20's Jan Hubicka's copy_insn change.
9651 (sh_handle_sp_switch_attribute): Remove warning.
9653 2003-11-30 Jan Hubicka <jh@suse.cz>
9655 * i386.c (ix86_emit_restore_regs_using_mov): Deal with large offsets.
9657 2004-01-23 J"orn Rennecke <joern.rennecke@superh.com>
9659 * doc/tm.texi: Insert some weasel words when LOAD_EXTEND_OP
9660 may or may not return non-NIL.
9661 * postreload.c (reload_cse_simplify_operands): In LOAD_EXTEND_OP code,
9662 check CANNOT_CHANGE_MODE_CLASS
9664 2004-01-23 Jan Hubicka <jh@suse.cz>
9666 * basic-block.h (PROP_POSTRELOAD): New macro.
9667 (CLEANUP_LOG_LINKS): New.
9668 * cfgcleanup.c (cleanup_cfg): Only PROP_LOG_LINKS when asked to.
9669 * toplev.c (rest_of_handle_life): Preserve LOG_LINKS trought cleanup_cfg.
9671 * cselib.c (value_pool): New.
9672 (new_cselib_val): Use pool.
9673 (cselib_init): Initialize value_pool
9674 (cselib_finish): Free pool.
9676 2004-01-23 Eric Botcazou <ebotcazou@libertysurf.fr>
9678 * config/sparc/sparc.c (scan_record_type): New function.
9679 (function_arg_slotno): Use it to determine which kinds of
9680 registers the record can be passed in.
9682 2004-01-22 James A. Mmorrison <ja2morri@uwaterloo.ca>
9684 * config/pa/fptr.c: Fix old-style definition.
9686 2004-01-22 Paolo Bonzini <bonzini@gnu.org>
9688 PR optimization/13724
9689 * cse.c (fold_rtx) <SUBREG>: Fold a SUBREG to zero if it
9690 represents the zero bits produced by a ZERO_EXTEND operation.
9692 2004-01-22 Roger Sayle <roger@eyesopen.com>
9694 PR optimization/13821
9695 * simplify-rtx.c (simplify_subreg): Use subreg_lowpart_offset to
9696 correctly calculate the lowpart offset of the contracted subreg.
9698 2004-01-22 Ian Lance Taylor <ian@wasabisystems.com>
9700 * doc/invoke.texi (Optimize Options): Note that --param arguments
9701 are subject to change without notice.
9703 2004-01-22 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
9705 * config.gcc (mips-sgi-irix6*o32): Removed.
9706 * config/mips/iris6-o32-as.h: Likewise.
9707 * config/mips/iris6-o32-gas.h: Likewise.
9708 * config/mips/iris6-o32.h: Likewise.
9710 2004-01-22 Jan Hubicka <jh@suse.cz>
9712 * cfgcleanup.c (first_pass): New static variable.
9713 (try_forward_edges): Add work limiting check for threading.
9714 (try_crossjump_bb): Add work limiting check for crossjumping.
9715 (try_optimize_cfg): Maintain first pass variable.
9717 2004-01-22 Bob Wilson <bob.wilson@acm.org>
9719 * config/xtensa/xtensa.c (function_arg): Generalize logic so that it
9720 handles complex and vector modes.
9722 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
9724 * config/h8300/h8300.h (REG_OK_FOR_INDEX_P_STRICT): Remove.
9725 (REG_OK_FOR_BASE_P_STRICT): Likewise.
9728 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
9730 * c-semantics.c (genrtl_while_stmt, genrtl_do_stmt_1)
9731 (genrtl_for_stmt): Remove emit_nop calls.
9733 2004-01-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9737 * pa.md (movstrsi_prereload, movstrsi_postreload, movstrdi_prereload,
9738 movstrdi_postreload, clrstrsi_prereload, clrstrsi_postreload,
9739 clrstrdi_prereload, clrstrdi_postreload): Fix constraints.
9741 2004-01-22 Daniel Jacobowitz <drow@mvista.com>
9743 * config/arm/arm.c: Include "debug.h".
9744 (thumb_pushpop): Take two new arguments. Add some commentary.
9745 Output frame information when pushing.
9746 (thumb_exit, thumb_unexpanded_epilogue): Update calls to
9748 (thumb_output_function_prologue): Likewise. Accumulate a CFA
9749 offset, and pass it to thumb_pushpop. Output CFI information.
9750 (thumb_expand_prologue): Add some frame-related markers and notes.
9752 2004-01-22 Ulrich Weigand <uweigand@de.ibm.com>
9754 * config/s390/s390.c (s390_frame_info): Allow large frame sizes
9756 (s390_arg_frame_offset): Change return type to HOST_WIDE_INT.
9757 * config/s390/s390-protos.h (s390_arg_frame_offset): Likewise.
9759 2004-01-22 Roger Sayle <roger@eyesopen.com>
9760 Paolo Bonzini <bonzini@gnu.org>
9762 * rtlanal.c (subreg_lsb_1): New function split out from subreg_lsb.
9763 (subreg_lsb): Change to call new subreg_lsb_1 helper function.
9764 * rtl.h (subreg_lsb_1): Prototype here.
9765 * simplify-rtx.c (simplify_subreg): Optimize subregs of zero and
9768 2004-01-22 Kazu Hirata <kazu@cs.umass.edu>
9770 * doc/tm.texi (CASE_VECTOR_PC_RELATIVE): Mention that the
9771 macro need not be defined if jump-tables should contain
9772 relative addresses only when -fPIC or -fPIC is in effect.
9774 2004-01-22 Jan Hubicka <jh@suse.cz>
9776 * alias.c (reg_base_value): Turn into varray.
9777 (reg_base_value_size): Kill.
9778 (old_reg_base_value): New deletable varray.
9779 (alias_invariant_size): New variable.
9780 (REG_BASE_VALUE): Update to use varray.
9781 (find_base_value): Likewise.
9782 (record_set): Likewise.
9783 (record_base_value): Likewise.
9784 (memrefs_conflict_p): Likewise.
9785 (record_set): Likewise
9786 (record_base_value): Likewise.
9787 (memrefs_conflict_p): Use alias_invariant_size.
9788 (init_alias_analysis): Use varray; set alias_invariant_size;
9789 rescale other arrays to be sized by maxreg.
9790 (end_alias_analysis): Save reg_base_value; clear alias_invariant_size.
9792 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9794 * config/sparc/sparc.c (function_arg_slotno): Use
9795 FLOAT_TYPE_P to detect FP fields in structures.
9796 (function_arg_record_value_1): Likewise.
9797 (function_arg_record_value_2): Likewise.
9799 2004-01-22 Jan Hubicka <jh@suse.cz>
9801 * function.c (allocate_struct_function): Do not initialize expr, emit
9803 (prepare_function_start): Do it here.
9804 * c-parse.in (maybe_type_qual): Do not produce line number notes.
9806 2004-01-22 Eric Botcazou <ebotcazou@libertysurf.fr>
9809 * config/sparc/sparc.c (function_arg_record_value_3): Revert
9810 to 'word_mode' once the first slot has been filled.
9812 2004-01-22 Olivier Hainque <hainque@act-europe.fr>
9814 * config/sparc/sparc.c (function_arg_record_value_1): Fix
9815 computation of the number of integer registers required.
9817 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9819 * config/i386/i386.md: Simplify certain comparisons of
9822 2004-01-21 Andrew Pinski <apinski@apple.com>
9825 * config/rs6000/rs6000.md (call_value): Force operand
9826 1 not operand 0 into a register.
9828 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9830 * cpperror.c, cpptrad.c, longlong.h, params.def, rtl.def,
9831 unwind-dw2-fde.h: Update copyright.
9833 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9835 * pa-protos.h: Update copyright.
9839 2004-01-21 Caroline Tice <ctice@apple.com>
9842 * config/i386/i386.md (fix_truncxfdi2): Add clause to clobber
9844 (fix_truncdfdi2): Likewise.
9845 (fix_truncsfdi2): Likewise.
9846 (*fix_truncdi_1): Likewise.
9847 (fix_truncxfsi2): Likewise.
9848 (fix_truncdfsi2): Likewise.
9849 (fix_truncsfsi2): Likewise.
9850 (*fix_truncsi_1): Likewise.
9851 (fix_truncxfhi2): Likewise.
9852 (fix_truncdfhi2): Likewise.
9853 (fix_truncsfhi2): Likewise.
9854 (*fix_trunchi_1): Likewise.
9856 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9858 * alias.c, basic-block.h, c-common.c, c-common.h,
9859 c-cppbuiltin.c, c-opts.c, c-pragma.c, c-pretty-print.c,
9860 calls.c, cfg.c, cfgcleanup.c, cfgrtl.c, cgraph.h, collect2.c,
9861 combine.c, cppcharset.c, cpphash.h, cppinit.c, cpplib.c,
9862 cpplib.h, cppmacro.c, crtstuff.c, cselib.c, cselib.h,
9863 defaults.h, df.c, dominance.c, et-forest.c, expmed.c, expr.c,
9864 expr.h, fix-header.c, function.h, gcc.c, gcse.c, genattrtab.c,
9865 genautomata.c, genconditions.c, genemit.c, genflags.c,
9866 gengtype.c, gengtype.h, genopinit.c, genrecog.c, gensupport.c,
9867 ggc-zone.c, graph.c, haifa-sched.c, input.h, integrate.c,
9868 langhooks-def.h, langhooks.c, langhooks.h, line-map.c,
9869 line-map.h, local-alloc.c, optabs.c, optabs.h, postreload.c,
9870 ra.h, recog.c, reg-stack.c, regmove.c, reload.c, reorg.c,
9871 rtl.c, sched-deps.c, sched-ebb.c, sdbout.c, system.h,
9872 target.h, targhooks.c, toplev.h, tree-inline.c, unwind-pe.h,
9873 unwind.h, varray.c, varray.h: Update copyright.
9875 2004-01-21 Kazu Hirata <kazu@cs.umass.edu>
9877 * config/h8300/coff.h: Update copyright.
9878 * config/h8300/elf.h: Likewise.
9879 * config/h8300/h8300-protos.h: Likewise.
9880 * config/h8300/h8300.c: Likewise.
9881 * config/h8300/h8300.h: Likewise.
9882 * config/h8300/h8300.md: Likewise.
9884 2004-01-21 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9886 * fixinc/inclhack.def (hpux10_stdio_declarations, ultrix_const3,
9887 ultrix_locale, ultrix_stdlib, ultrix_strings, ultrix_sys_time,
9888 ultrix_unistd): New hacks.
9889 * fixinc/tests/base/stdio.h (HPUX10_STDIO_DECLARATIONS_CHECK,
9890 ULTRIX_CONST2_CHECK): Add checks.
9891 * fixinc/tests/base/stdlib.h (ULTRIX_STDLIB_CHECK): Likewise.
9892 * fixinc/tests/base/strings.h (ULTRIX_STRINGS2_CHECK): Likewise.
9893 * fixinc/tests/base/unistd.h (ULTRIX_UNISTD_CHECK): Likewise.
9894 * fixinc/tests/base/sys/time.h (ULTRIX_SYS_TIME_CHECK): Likewise.
9895 * fixinc/tests/base/locale.h: New file.
9896 * fixinc/fixincl.x: Rebuilt.
9898 2004-01-21 Andreas Jaeger <aj@suse.de>
9899 Michael Matz <matz@suse.de>
9901 * doc/extend.texi (Extended Asm): Clarify memory clobber.
9903 2004-01-21 Jakub Jelinek <jakub@redhat.com>
9905 * crtstuff.c (frame_dummy, __do_global_ctors_1): Call
9906 _Jv_RegisterClasses through a function pointer.
9908 2004-01-21 Falk Hueffner <falk@debian.org>
9911 * config/alpha/alpha.c (alpha_emit_set_const_1): If
9912 no_new_pseudos, use gen_rtx_SET directly for SImode constants
9913 which need multiple instructions to emit.
9915 2004-01-21 Inaoka Kazuhiro <inaoka.kazuhiro@renesas.com>
9917 * config/m32r/m32r.h (CPP_SPEC): Define.
9919 2004-01-21 Zack Weinberg <zack@codesourcery.com>
9921 * c-decl.c (merge_decls): Kill different_binding_level and
9922 different_tu arguments; simplify throughout.
9923 (duplicate_decls): Likewise.
9924 (pushdecl, merge_translation_unit_decls): Update calls to
9927 2004-01-20 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9929 * Makefile.in (pretty-print.o): Depend on $(CONFIG_H) and
9931 (print-rtl1.o): Depend on $(SYSTEM_H).
9933 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
9936 * configure.ac: Delete definition and subsitution of docdir.
9937 Add info, man, srcman and srcinfo to target hooks. Create doc/
9939 * configure: Regenerate.
9940 * Makefile.in: Don't substitute docdir and delete all references
9942 (MAKEINFOFLAGS): Define.
9943 (stmp-docobjdir): Delete.
9944 (INFOFILES, MANFILES): Define.
9945 (info): Call lang.info, srcinfo and lang.srcinfo.
9946 (generated-manpages): Call lang.man, srcman and lang.srcman.
9947 (srcinfo, srcman): New rules to copy back files to source directory.
9948 (doc/%.info, doc/%.dvi, doc/%.1, doc/%.7): New implict rule.
9949 (install-man): Revamp rule.
9950 (clean): Update dvi directory.
9951 (distclean): Delete TAGS from front end directorys.
9952 (maintainer-clean): Delete all document files in source directory.
9954 objc/Make-lang.in (objc.man, objc.info): Dummy entries.
9955 (objc.srcman, objc.srcinfo): Likewise.
9957 2004-01-20 Bruce Korb <bkorb@gnu.org>
9959 * fixinc/inclhack.def(math_exception): bypass only for glibc.
9960 (matherr_decl): rename & relocate as exception_structure.
9961 This fix must precede the math_exception fix.
9963 2004-01-20 Roger Sayle <roger@eyesopen.com>
9965 * fold-const.c (fold_convert): Rename to fold_convert_const.
9966 (fold_convert_const): Change arguments to take a tree_code,
9967 a type and the operand/expression to be converted. Return
9968 NULL_TREE if no simplification is possible. Add support for
9969 FIX_CEIL_EXPR and FIX_FLOOR_EXPR in addition to FIX_TRUNC_EXPR.
9970 (fold): Handle FIX_CEIL_EXPR and FIX_FLOOR_EXPR.
9971 Adjust call to fold_convert to match new fold_convert_const.
9972 Avoid modifying the tree passed to fold in-place.
9974 2004-01-21 Alan Modra <amodra@bigpond.net.au>
9976 * config/rs6000/sysv4.h (DWARF2_FRAME_REG_OUT): Define.
9977 * dwarf2out.c (output_cfi): Map regs using DWARF2_FRAME_REG_OUT.
9978 * doc/tm.texi (DWARF_FRAME_REGNUM, DWARF2_FRAME_REG_OUT): Document.
9980 2004-01-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
9982 * pa-protos.h (compute_frame_size): Use HOST_WIDE_INT for frame sizes.
9983 * pa.c (store_reg, store_reg_modify, load_reg, set_reg_plus_d):
9984 Likewise. Handle frames larger than 0x7fffffff on 64-bit ports.
9985 (emit_move_sequence): Check scratch_reg first in various if statements.
9986 Extend source simplification to handle all 64-bit CONST_INTs.
9987 (pa_output_function_prologue): Use HOST_WIDE_INT_PRINT_DEC for printing
9989 (hppa_expand_prologue, hppa_expand_epilogue): Use HOST_WIDE_INT for
9990 frame offset calculations.
9991 * pa.h (NEW_HP_ASSEMBLER): Add comment.
9992 (MAX_LEGIT_64BIT_CONST_INT, MIN_LEGIT_64BIT_CONST_INT,
9993 LEGITIMATE_64BIT_CONST_INT_P): Define.
9994 (LEGITIMATE_CONSTANT_P): Use LEGITIMATE_64BIT_CONST_INT_P. Treat
9995 any CONST_INT as legitimate during and after reload.
9996 (VAL_32_BITS_P, INT_32_BITS): Define.
9997 (LEGITIMIZE_RELOAD_ADDRESS): Handle large frame offsets.
9999 2004-01-20 Jan Hubicka <jh@suse.cz>
10001 * emit-rtl.c (verify_rtx_sharing, copy_insn_1,
10002 emit_copy_of_insn_after, emit_copy_of_insn_after): Clobbers
10003 containing hard regs are shared.
10004 (gen_hard_reg_clobber): New function.
10005 (hard_reg_clobbers): New array.
10006 * genemit.c (gen_exp): Use gen_hard_reg_clobber.
10007 (copy_rtx): Do not copy clobbers containing hard regs.
10008 * rtl.h (gen_hard_reg_clobber): Declare.
10010 2004-01-20 Jan Hubicka <jh@suse.cz>
10012 * varray.c: Include hashtab.h
10013 (varray_descriptor): New structure.
10014 (hash_descriptor, eq_descriptor, varray_descriptor,
10015 print_statistics): New static functions
10016 (varray_init, varray_grow): Update statistics
10017 (dump_varray_statistics): New function.
10018 * varray.h (dump_varray_statistics): Declare.
10019 * toplev.c (finalize): Call it.
10020 * Makefile.in (varray.o): Add dependency.
10022 2004-01-20 Jan Hubicka <jh@suse.cz>
10024 * cselib.c: Include alloc-pool.h
10025 (empty_vals, empty_elt_lists, empty_elt_loc_lists): Kill.
10026 (elt_loc_list_pool, elt_list_pool, cselib_val_pool): Declare.
10027 (new_elt_list, new_elt_loc_list, unchain_one_elt_list,
10028 unchain_one_elt_loc_list_pool, unchain_one_value,
10029 new_cselib_val): Simplify using allocpool.
10030 (cselib_init): Initialize allocpools.
10031 (cselib_finish): Finish allocpools.
10032 * Makefile.in (cselib.o): Depend on alloc-pool.h
10034 2004-01-20 Richard Sandiford <rsandifo@redhat.com>
10036 * config/mips/mips.c (mips_load_call_address): Make the call insn
10037 use $gp if it could be calling a lazy binding stub.
10039 2004-01-20 Kazu Hirata <kazu@cs.umass.edu>
10041 * config/s390/s390.c (TARGET_PROMOTE_FUNCTION_ARGS): Define.
10042 (TARGET_PROMOTE_FUNCTION_RETURN): Likewise.
10043 (TARGET_STRUCT_VALUE_RTX): Likewise.
10044 * config/s390/s390.h (PROMOTE_FUNCTION_ARGS): Remove.
10045 (PROMOTE_FUNCTION_RETURN): Remove.
10046 (STRUCT_VALUE): Remove.
10048 2004-01-20 Denis Chertykov <denisc@overta.ru>
10051 * config/avr/avr.h (BASE_REG_CLASS): Don't permit to use X
10052 register as pointer after reload.
10054 2004-01-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10056 PR optimization/12440
10057 * loop.c: Include ggc.h.
10058 (loop_optimize): Run garbage collector between optimization of loops.
10059 * Makefile.in (loop.o): Add GGC_H dependency.
10061 2004-01-20 Hartmut Penner <hpenner@de.ibm.com>
10063 * gcc/config/rs6000/rs6000.c (function_arg) Handle
10064 vector register special in function without prototype.
10065 (function_arg_advance): Vector parameters get always
10066 GPRs allocated for the linux64 target.
10068 2004-01-20 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
10070 * config/m32r/m32r.h (TARGET_M32R2). Test for TARGET_M32R2_MASK
10071 not TARGET_M32RX_MASK.
10073 2004-01-20 Eric Botcazou <ebotcazou@libertysurf.fr>
10076 * config/sparc/sparc.c (function_arg): Reorder the cases.
10078 2004-01-19 Per Bothner <per@bothner.com>
10080 Move cpp_reader's line_maps field to a shared global.
10081 * cpphash.h (cpp_reader): Rename line_maps field to line_table
10082 and change the type to a pointer rather than a struct.
10083 * cppinit.c (cpp_push_main_field): Adjust accordingly.
10084 * cpplib.c (do_include_common, _cpp_do_file_change, cpp_get_callbacks):
10086 * cppfiles.c (validate_pch): Likewise.
10087 * cppmacro.c (_cpp_warn_if_unused_macro, _cpp_builtin_macro_text):
10089 * cpperror.c (print_location): Likewise.
10090 * cpplib.h (cpp_create_reader): New line_maps pointer parameter.
10091 * cppinit.c (cpp_create_reader): Handle new parameter.
10092 (cpp_destroy): Don't free line_maps - that's no longer our job.
10093 * input.h (line_table): New variable.
10094 * toplev.c (line_table): Declare variable.
10095 (general_init): Initialize line_table.
10096 * c-opts.c (c_common_init_options): Pass line_table to
10098 * fix-header.c (read_scan_file): New local variable line_table.
10099 Initialize, and pass it to cpp_create_reader.
10100 * Makefile.in (LIBS, LIBDEPS): Add libcpp.a.
10101 (C_AND_OBJC_OBJS, fix-header): Remove redundant libcpp.a.
10103 2004-01-19 Per Bothner <per@bothner.com>
10105 Implement a cache for linemap_lookup.
10106 * line-map.h (struct_line_maps): Add cache field.
10107 * line-map.c (linemap_init): Zero cache field.
10108 (linemap_add): Set cache field to offset of newly allocated map.
10109 (linemap_lookup): Use and set cache field.
10111 2004-01-20 Kaz Kojima <kkojima@gcc.gnu.org>
10113 PR optimization/13567
10114 * cse.c (cse_basic_block): Call cse_insn with a non-null
10115 libcall_insn for the last SET insn of a no-confilict block.
10117 2004-01-20 Kelley Cook <kcook@gcc.gnu.org>
10119 * Makefile.in (target_noncanonical, program_transform_name): Use
10120 immediate define instead of deferred.
10121 (GCC_INSTALL_NAME, GCC_TARGET_INSTALL_NAME, CPP_INSTALL_NAME,
10122 PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
10123 GCCBUG_INSTALL_NAME): Define via a immediate $(shell) instead of
10124 deferred backquote.
10126 2004-01-20 Joseph S. Myers <jsm@polyomino.org.uk>
10128 * c-decl.c (c_init_decl_processing): Set pedantic_lvalues to
10129 true unconditionally.
10130 * c-typeck.c (unary_complex_lvalue, pedantic_lvalue_warning):
10132 (build_unary_op, build_modify_expr): Don't handle extended
10134 (build_component_ref, build_conditional_expr): Call non_lvalue
10135 instead of pedantic_non_lvalue.
10136 (build_c_cast): Don't condition use of non_lvalue on pedantic.
10137 * fold-const.c (fold): Don't check pedantic directly for
10138 COMPOUND_EXPR. Ensure that results for COMPOUND_EXPR are
10139 passed to pedantic_non_lvalue.
10140 * doc/extend.texi: Remove documentation of extended lvalues.
10142 2004-01-19 Roger Sayle <roger@eyesopen.com>
10144 PR optimization/5263
10145 * simplify-rtx.c (associative_constant_p): Delete.
10146 (simplify_associative_operation): Rewrite to linearize terms, and
10147 attempt to simplify new term against both left and right subterms.
10148 (simplify_binary_operation): Call swap_commutative_operands_p on
10149 op0 and op1, not trueop0 and trueop1. Move the initialization of
10150 trueop0 and trueop1 down to where first needed.
10151 (simplify_relational_operation): Likewise.
10152 * rtlanal.c (commutative_operand_precedence): Also order constant
10153 operands using avoid_constant_pool_reference.
10155 2004-01-19 Richard Henderson <rth@redhat.com>
10157 * config/alpha/alpha.c (aligned_memory_operand): Check MEM_ALIGN,
10158 don't check memory mode.
10159 (unaligned_memory_operand): Likewise.
10160 (reload_inqi, reload_inhi, reload_outqi, reload_outhi): Don't
10161 abort for op0 not MEM.
10163 * config/alpha/alpha.c (alpha_expand_mov_nobwx): If the destination
10164 is not a reg, copy to a scratch first.
10165 (aligned_loadqi, aligned_loadhi, unaligned_loadqi, unaligned_loadhi,
10166 unaligned_loadqi_le, unaligned_loadqi_be, unaligned_loadhi_le,
10167 unaligned_loadhi_be): Expect op0 in DImode; don't SUBREG.
10168 (reload_inqi, reload_inhi): Fix mode of op0.
10169 (reload_inqi_help, reload_inhi_help, reload_outqi_help,
10170 reload_outhi_help): Likewise. Use define_insn_and_split.
10172 * config/alpha/alpha.md (call peepholes): Check for REG_NORETURN
10173 as well as $29 dead.
10175 2004-01-19 Eric Botcazou <ebotcazou@libertysurf.fr>
10177 * config/sparc/sol2.h (ASM_DECLARE_OBJECT_NAME): New. Emit
10178 "tls_object" for thread-local objects.
10179 * config/sparc/sparc.c (sparc_elf_asm_named_section): Emit
10180 "#tls" for thread-local sections.
10181 * configure.ac (thread-local checks): Specify --fatal-warnings in
10182 every binutils-specific checks. For sparc*-*-*, test whether the
10183 OS is Solaris and the tools are native and act accordingly.
10184 * configure: Rebuild.
10186 2004-01-19 Jeff Law <law@redhat.com>
10188 * contrib.texi: Update Paolo Carlini's entry. New entries for
10189 Jerry Quinn and Petur Runolfsson.
10191 2004-01-19 Roger Sayle <roger@eyesopen.com>
10193 * config/i386/i386.md (*movhi_1, *movqi_1): When optimizing for
10194 size, don't use the larger zero-extending loads.
10196 2004-01-19 Richard Henderson <rth@redhat.com>
10198 * alpha.h (HARD_REGNO_MODE_OK): Disallow SImode in FP regs.
10199 * alpha.md (UNSPEC_NT_LDA): Remove.
10200 (UNSPEC_CVTLQ, cvtlq): New.
10201 (extendsidi2_1): Rename from extendsidi2_nofix; remove f/f.
10202 (extendsidi2_fix): Remove.
10203 (extendsidi2 splitter): Use cvtlq.
10204 (extendsidi2 fp peepholes): Remove.
10205 (cvtql): Use SFmode instead of SImode.
10206 (fix_trunc?fsi): Update to match.
10207 (floatsisf2_ieee, floatsisf2, floatsidf2_ieee, floatsidf2): New.
10208 (movsi): Rename from movsi_nofix, remove f alternatives.
10209 (movsi_nt_vms): Similarly.
10210 (movsi_fix, movsi_nt_vms_fix): Remove.
10212 * alpha.c (alpha_expand_prologue): Use adddi3, not nt_lda.
10214 2004-01-19 Jan Hubicka <jh@suse.cz>
10216 * cgraph.c (cgraph_remove_node): Fix removal from linked list.
10217 * cgraphunit.c (cgraph_finalize_compilation_unit): Clear next_needed
10219 (cgraph_remove_unreachable_nodes): New function
10220 (cgraph_decide_inlining_of_small_function): Fix pasto.
10221 (cgraph_decide_inlining_incrementally): Fix pasto.
10222 (cgrpah_decide_inlining): Likewise; remove unreachable nodes.
10224 2004-01-19 Steven Bosscher <stevenb@suse.de>
10226 * gengtype.c (header_file): Make it static.
10227 (write_types_process_field, write_enum_defn): Minor whitespace fixes.
10228 * gengtype.h (header_file): No longer extern.
10230 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10232 * defaults.h (CASE_VECTOR_PC_RELATIVE): Provide the default.
10233 * expr.c (CASE_VECTOR_PC_RELATIVE): Remove.
10234 * stmt.c (CASE_VECTOR_PC_RELATIVE): Likewise.
10236 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10238 * stmt.c (HAVE_casesi): Define it not already defined.
10239 (HAVE_tablejump): Likewise.
10240 (expand_end_case_type): Resort to the binary tree method if
10241 neither casesi or tablejump is available.
10243 2004-01-18 Daniel Jacobowitz <drow@mvista.com>
10245 * final.c (final_scan_insn): Make non-static again.
10246 * output.h (final_scan_insn): Re-add prototype.
10247 * config/arc/arc.c (arc_output_function_epilogue): Add NULL
10248 to final_scan_insn call.
10249 * config/cris/cris.c (cris_target_asm_function_epilogue): Likewise.
10250 * config/mips/mips.c (mips_output_conditional_branch): Likewise.
10251 * config/pa/pa.c (output_lbranch, output_call): Likewise.
10252 * config/sh/sh.c (print_slot): Likewise.
10253 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Likewise.
10254 (output_sibcall, sparc_flat_function_epilogue): Likewise.
10256 2004-01-18 Jan Hubicka <jh@suse.cz>
10258 * basic-block.h (try_redirect_by_replacing_jump): Declare.
10259 * cfgcleanup.c (try_optimize_cfg): Use it.
10260 * cfgrtl.c (try_redirect_by_replacing_jump): Export.
10261 (rtl_redirect_edge_and_branch, cfg_layout_redirect_edge_and_branch):
10263 (cfg_layout_merge_blocks): Use try_redirect_by_replacing_jump.
10266 2004-01-16 Geoffrey Keating <geoffk@apple.com>
10268 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
10269 even after reload, just don't remove the actual jump tables.
10271 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10273 * config/rs6000/rs6000.h (STRICT_ARGUMENT_NAMING): Remove.
10275 2004-01-18 Kazu Hirata <kazu@cs.umass.edu>
10277 * defaults.h (ASM_OUTPUT_ADDR_VEC_ELT): Fix the computation of
10278 the size of a pointer in bytes.
10280 2004-01-18 Roger Sayle <roger@eyesopen.com>
10282 * builtins.c (expand_builtin_expect_jump): Fix thinko of reusing
10283 live "next" variable, which could lead to an infinite loop.
10285 2004-01-18 Andrew Pinski <pinskia@physics.uc.edu>
10287 * config/rs6000/altivec.h: Wrap C++ functions in extern "C++"
10290 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
10291 Check for NULL in the chain and remove repeated code.
10293 2004-01-18 Jan Hubicka <jh@suse.cz>
10295 * coverage.c (checksum_string): Rename to ...
10296 (coverage_checksum_string): ... this one, Use crc32_string; recognize
10297 names containing random number and zero the number out in order to get
10300 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
10302 * config/mips/mips.c (mips_got_alias_set): Mark for PCH.
10304 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
10306 * doc/c-tree.texi, doc/cpp.texi, doc/extend.texi,
10307 doc/frontends.texi, doc/gcov.texi, doc/gty.texi, doc/install.texi,
10308 doc/invoke.texi, doc/libgcc.texi, doc/md.texi, doc/rtl.texi,
10309 doc/sourcebuild.texi, doc/standards.texi, doc/tm.texi,
10310 doc/trouble.texi: Remove trailing whitespace.
10312 2004-01-18 Richard Sandiford <rsandifo@redhat.com>
10315 * config/mips/mips.c: Include cfglayout.h.
10316 (TARGET_ASM_OUTPUT_MI_THUNK, TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
10317 (mips_unspec_offset_high): Add temporary register argument.
10318 (mips_load_call_address): New function, split out from...
10319 (mips_expand_call): ...here.
10320 (mips_output_cplocal): New function.
10321 (mips_output_function_prologue, mips_output_function_epilogue): Use it.
10322 (mips_emit_loadgp): New function, split out from...
10323 (mips_expand_prologue): ...here.
10324 (mips_output_mi_thunk): New function.
10326 2004-01-17 Bernardo Innocenti <bernie@develer.com>
10328 * longlong.h (mc68020, __mc68030__, mc68030, __mc68040__, mc68040,
10329 mcpu32): Remove redundant checks for implied target predefines.
10331 2004-1-17 Andrew Pinski <pinskia@physics.uc.edu>
10333 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
10334 Return type is unsigned int not int.
10335 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
10338 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
10340 * doc/contrib.texi, doc/cppenv.texi, doc/extend.texi,
10341 doc/install.texi, doc/invoke.texi, doc/tm.texi: Consistently use
10342 "GNU/Linux" and "Microsoft Windows" terminology.
10344 2004-01-18 Joseph S. Myers <jsm@polyomino.org.uk>
10346 * doc/c-tree.texi, doc/compat.texi, doc/cpp.texi,
10347 doc/cppopts.texi, doc/extend.texi, doc/install.texi,
10348 doc/interface.texi, doc/invoke.texi, doc/libgcc.texi, doc/md.texi,
10349 doc/objc.texi, doc/rtl.texi, doc/tm.texi, doc/trouble.texi: Use
10350 @smallexample instead of @example.
10352 2004-01-17 Ziemowit Laski <zlaski@apple.com>
10354 * objc/objc-act.c (build_objc_method_call): Use target
10355 hooks instead of macros to determine if ..._stret
10356 dispatchers should be used (NeXT runtime only).
10358 2004-01-17 Roger Sayle <roger@eyesopen.com>
10360 * builtins.c (expand_builtin_expect_jump): Fix mistake in my
10361 last patch. Use XEXP (x, 0) to get a LABEL_REF's CODE_LABEL.
10363 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10365 * rtl.h (emit_insn_before_sameloc, emit_jump_insn_before_sameloc)
10366 (emit_call_insn_before_sameloc, emit_insn_after_sameloc)
10367 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): New
10369 * reload1.c (emit_reload_insns): Use them.
10370 * emit-rtl.c (emit_insn_before_sameloc, emit_insn_after_sameloc)
10371 (emit_jump_insn_after_sameloc, emit_call_insn_after_sameloc): Check
10374 2004-01-17 Daniel Jacobowitz <drow@mvista.com>
10376 * final.c (SEEN_BB, SEEN_NOTE, SEEN_EMITTED): Define.
10377 (final_scan_insn): Update to take an additional SEEN argument. Emit
10378 a line note after the prologue. Make static.
10379 (line_note_exists): Remove.
10380 (final): Don't initialize line_note_exists. Update call to
10382 * output.h (final_scan_insn): Remove prologue.
10383 * function.c (set_insn_locators): Update comment.
10384 (thread_prologue_and_epilogue_insns): Add a comment.
10386 2004-01-17 Andrew Pinski <pinskia@physics.uc.edu>
10389 * config/rs6000/rs6000-protos.h (rs6000_special_round_type_align):
10391 * config/rs6000/rs6000.c (rs6000_special_round_type_align):
10393 * config/rs6000/linux64.h (ROUND_TYPE_ALIGN): Use it.
10394 * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Likewise.
10395 * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Likewise.
10397 2004-01-17 Jan Hubicka <jh@suse.cz>
10399 * toplev.c (rest_of_handle_reorder_blocks): Fix pasto in previous
10402 * toplev.c (HAVE_conditional_execution): Provide default.
10403 (rest_of_handle_reorder_blocks): For conditional_execution target
10404 update liveness once after all transformations
10405 (rest_of_compilation): Do crossjumping before ce3.
10407 2004-01-17 Geoffrey Keating <geoffk@apple.com>
10409 * alias.c (new_alias_set): Mark last_alias_set for PCH.
10410 (get_varargs_alias_set): Rename 'set' to 'varargs_set' and mark it
10412 (get_frame_alias_set): Likewise, except rename it to 'frame_set'.
10413 * config/rs6000/rs6000.c (rs6000_sr_alias_set): Mark for PCH.
10414 (get_TOC_alias_set): Mark 'set' for PCH.
10416 2004-01-16 Geoffrey Keating <geoffk@apple.com>
10418 * cfgrtl.c (try_redirect_by_replacing_jump): Optimize tablejumps
10419 even after reload, just don't remove the actual jump tables.
10421 2004-01-17 J. Brobecker <brobecker@gnat.com>
10423 * dwarf2out.c (is_subrange_type): Renamed from is_ada_subrange_type().
10424 Remove checks for is_ada() and TREE_UNSIGNED.
10425 (subrange_type_die): Emit a byte_size attribute if the subrange
10426 type size is different from the base type size.
10427 (modified_type_die): Replace call to is_ada_subrange_type() by
10428 call to is_subrange_type().
10430 2004-01-16 Andrew Pinski <pinskia@physics.uc.edu>
10432 * config/sh/sh.c: Include ggc.h.
10434 2004-01-16 Geoffrey Keating <geoffk@apple.com>
10436 * Makefile.in (MD5_H): New.
10437 (fold-const.o): Depend on md5.h.
10438 (dwarf2out.o): Likewise.
10439 (cppfiles.o): Likewise.
10440 * cppfiles.c: Include md5.h.
10441 (should_stack_file): Check against list read from PCH file.
10442 (struct pchf_data): New.
10443 (pchf): New variable.
10444 (struct pchf_adder_info): New.
10446 (pchf_save_compare): New.
10447 (_cpp_save_file_entries): New.
10448 (_cpp_read_file_entries): New.
10449 (struct pchf_compare_data): New.
10450 (pchf_compare): New.
10451 (check_file_against_entries): New.
10452 * cpphash.h (_cpp_save_file_entries): Prototype.
10453 (_cpp_read_file_entries): Prototype.
10454 * cpppch.c (cpp_write_pch_state): Write the list of headers.
10455 (cpp_read_state): Read the list of headers.
10457 2004-01-17 Jan Hubicka <jh@suse.cz>
10459 * c-common.c (c_estimate_num_insns_1): Handle builtin_constant_p and
10460 builtin_expect specially.
10461 * params.def (PARAM_MAX_INLINE_INSNS_AUTO): Set to 100.
10462 (PARAM_LARGE_FUNCTION_INSNS): Set to 3000.
10463 * invoke.texi (max-inline-insns-single): Set to 100.
10464 (large-function-insns): Set to 3000.
10466 2004-01-16 Eric Christopher <echristo@redhat.com>
10467 Chandrakala Chavva <cchavva@redhat.com>
10469 * cppcharset.c (one_iso88591_to_utf8): New function.
10470 (convert_iso88591_utf8): Ditto. Use.
10471 (conversion_tab): Use.
10472 (_cpp_input_to_utf8): New function.
10473 (_cpp_init_iconv_buffer): Ditto.
10474 (_cpp_close_iconv_buffer): Ditto.
10475 * cpphash.h: Prototype new functions.
10476 (cpp_buffer): Add input_cset_desc.
10477 * cppinit.c: Add input_charset default.
10478 * cpplib.c (cpp_push_buffer): Support init and
10480 * cpplib.h (cpp_options): Add input_charset.
10482 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
10484 * system.h (ASM_OUTPUT_SECTION_NAME): Poison.
10485 * config/alpha/unicosmk.h: Remove a commented-out definition
10486 of ASM_OUTPUT_SECTION_NAME.
10487 * config/stormy16/stormy16.h: Likewise.
10489 2004-01-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10491 * fixinc/inclhack.def (alpha___extern_prefix): Renamed to ...
10492 (alpha___extern_prefix_sys_stat): ... this.
10493 Apply to <sys/mount.h>, too.
10494 Tweak to match more variations.
10495 * fixinc/tests/base/sys/stat.h: Adapt for new hackname.
10497 * fixinc/inclhack.def (alpha___extern_prefix,
10498 alpha___extern_prefix_standards): New hacks to obey
10499 __PRAGMA_EXTERN_PREFIX.
10500 * fixinc/tests/base/testing.h [ALPHA___EXTERN_PREFIX_CHECK]: New
10502 * fixinc/tests/base/standards.h: Likewise.
10504 * fixincl/inclhack.def (alpha_pthread): Tweak to match more
10507 * fixinc/tests/base/pthread.h: Handle it.
10509 * fixincl/inclhack.def (bad_lval): Sort file list.
10510 Add many missing files up to Tru64 UNIX V5.1B.
10511 * gcc/fixinc/tests/base/libgen.h: Renamed to ...
10512 * gcc/fixinc/tests/base/dirent.h: ... this to match new file list
10515 * fixinc/fixincl.x: Regenerate.
10517 2004-01-16 Mark Mitchell <mark@codesourcery.com>
10519 * version.c (version_string): Change to 3.5.0.
10520 * doc/include/gcc-common.texi (version-GCC): Likewise.
10522 2004-01-16 Jan Hubicka <jh@suse.cz>
10524 * i386.md (load_tp_di): Fix pasto.
10527 * i386.c (ix86_compute_frame_layout): Fix for alloca on leaf function.
10529 * c-pretty-print.c (pp_c_type_cast, pp_c_abstract_declarator,
10530 pp_c_character_constant, pp_c_floating_constant,
10531 pp_c_additive_expression, pp_c_shift_expression,
10532 pp_c_equality_expression, pp_c_and_expression,
10533 pp_c_exclusive_or_expression, pp_c_inclusive_or_expression,
10534 pp_c_logical_and_expression): Remove inline modifier.
10535 * dwarf2out.c (get_AT): Likewise.
10536 * et-forest.c (et_splay): Likewise.
10537 * ra.h (ra_alloc, ra_calloc): Likewise
10539 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
10541 * config/frv/frv-protos.h: Fix comment formatting.
10542 * config/frv/frv.c: Likewise.
10543 * config/frv/frv.h: Likewise.
10544 * config/frv/frv.md: Likewise.
10545 * config/frv/frvbegin.c: Likewise.
10546 * config/frv/frvend.c: Likewise.
10548 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
10550 * system.h (LINKER_DOES_NOT_WORK_WITH_DWARF2): Poison.
10551 * doc/tm.texi (PREFERRED_DEBUGGING_TYPE): Don't mention
10552 LINKER_DOES_NOT_WORK_WITH_DWARF2.
10553 (LINKER_DOES_NOT_WORK_WITH_DWARF2): Remove.
10555 2004-01-16 J"orn Rennecke <joern.rennecke@superh.com>
10558 * postreload.c (reload_cse_simplify_operands): Don't remove
10559 implicit extension from LOAD_EXTEND_OP.
10561 2004-01-16 Jan Hubicka <jh@suse.cz>
10564 * cfgcleanup.c (try_optimize_cfg): Suppress tablejump removal
10566 * cfgrtl.c (rtl_can_merge_blocks, cfglayout_can_merge_blocks,
10567 rtl_try_redirect_by_replacing_branch): Likewise.
10569 2004-01-15 Geoffrey Keating <geoffk@apple.com>
10572 * alias.c (struct alias_set_entry): Mark for GC.
10573 (alias_sets): Make static, mark for GC.
10574 (record_alias_subset): Use GC to allocate alias structures.
10575 * varray.c (element): Make generic varrays GCed.
10578 * c-typeck.c (constructor_asmspec): Delete.
10579 (struct initializer_stack): Delete field 'asmspec'.
10580 (start_init): Delete saving of asmspec.
10581 (finish_init): Don't update constructor_asmspec.
10582 * dwarf2out.c (rtl_for_decl_location): Duplicate string from tree.
10583 * stmt.c (expand_asm): Duplicate strings from tree.
10584 (expand_asm_operands): Likewise.
10585 * tree.c (tree_size): Update computation of size of STRING_CST.
10586 (make_node): Don't make STRING_CST nodes.
10587 (build_string): Allocate string with tree node.
10588 * tree.def (STRING_CST): Update comment.
10589 * tree.h (TREE_STRING_POINTER): Adjust for change to STRING_CST.
10590 (tree_string): Place contents of string in tree node.
10591 * config/sh/sh.c (sh_handle_sp_switch_attribute): Duplicate string
10594 * config/rs6000/rs6000.c (rs6000_va_arg): No need to special-case
10597 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10599 * c-common.h: Fix comment formatting.
10600 * c-cppbuiltin.c: Likewise.
10601 * c-pragma.c: Likewise.
10602 * calls.c: Likewise.
10603 * collect2.c: Likewise.
10604 * cppcharset.c: Likewise.
10605 * cpptrad.c: Likewise.
10606 * dbxout.c: Likewise.
10607 * defaults.h: Likewise.
10608 * dwarf2out.c: Likewise.
10609 * fold-const.c: Likewise.
10610 * genautomata.c: Likewise.
10611 * genconditions.c: Likewise.
10612 * genflags.c: Likewise.
10613 * gengtype.c: Likewise.
10614 * integrate.c: Likewise.
10615 * loop.c: Likewise.
10616 * predict.c: Likewise.
10617 * sdbout.c: Likewise.
10619 2004-01-15 Zack Weinberg <zack@codesourcery.com>
10621 * config/ia64/ia64.md (*movti_internal): C output template
10622 extracted to ia64.c.
10623 (*movti_internal_reg): Delete.
10624 (reload_inti, reload_outti): Use the correct mode on operand 2
10625 in the first place, don't fix it up in the output template.
10626 (movtf, reload_ointf, reload_outtf): New expanders.
10627 (*movtf_internal): New define_insn_and_split.
10628 * config/ia64/ia64.c (ia64_split_timode): Rename to ia64_split_tmode;
10629 make static; do not hand TFmode CONST_DOUBLEs to split_double.
10630 (ia64_split_tmode_move): New function, body mostly pulled
10631 from ia64.md:*movti_internal.
10632 (ia64_function_arg_words): New function, extracted common
10633 logic from ia64_function_arg et seq.
10634 (ia64_function_arg_offset): Likewise. Handle correctly the
10635 case of a scalar quantity 16 bytes wide with only 8-byte alignment.
10636 (ia64_function_arg, ia64_function_arg_partial_nregs)
10637 (ia64_function_arg_advance): Use ia64_function_arg_words and
10638 ia64_function_arg_offset.
10639 (ia64_function_value): TCmode does not go in float regs.
10640 (ia64_secondary_reload_class): Also handle TFmode.
10641 * config/ia64/ia64-protos.h: Remove prototype for
10642 ia64_split_timode; add prototype for ia64_split_tmode_move.
10644 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
10646 * Makefile.in (MAINT): Make it an immediate assignment.
10648 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10650 * config/m32r/m32r.md: Remove useless calls to gen_lowpart.
10652 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10654 * config/h8300/coff.h: Replace Hitachi with Renesas.
10655 * config/h8300/elf.h: Likewise.
10656 * config/h8300/h8300-protos.h: Likewise.
10657 * config/h8300/h8300.c: Likewise.
10658 * config/h8300/h8300.h: Likewise.
10659 * config/h8300/h8300.md: Likewise.
10660 * config/h8300/lib1funcs.asm: Likewise.
10662 2004-01-15 Andrew Pinski <apinski@apple.com>
10664 * config/rs6000/rs6000.c (uses_TOC): Wrap #if TARGET_ELF
10667 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10669 * config/h8300/h8300.c (h8300_return_in_memory): New.
10670 (TARGET_STRUCT_VALUE_RTX): Likewise.
10671 (TARGET_RETURN_IN_MEMORY): Likewise.
10672 * config/h8300/h8300.h (STRUCT_VALUE): Remove.
10673 (RETURN_IN_MEMORY): Likewise.
10675 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
10677 PR optimization/13375
10678 * gcse.c (handle_avail_expr): Just return if the source is not a
10681 2004-01-15 Richard Earnshaw <rearnsha@arm.com>
10682 Daniel Jacobowitz <drow@mvista.com>
10684 * arm/lib1funcs.asm (ARM_FUNC_START): Correct interworking case.
10686 (ARM_FUNC_ALIAS): New macro.
10687 * arm/ieee754-df.S (gedf2, ledf2, nedf2, eqdf2): Use it.
10688 * arm/ieee754-sf.S (gesf2, lesf2, nesf2, eqsf2): Use it.
10690 2004-01-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10692 PR optimization/12372
10693 * calls.c (expand_call): Add call_fusage data for stack arguments in
10696 2004-01-15 Alan Modra <amodra@bigpond.net.au>
10698 * config/rs6000/rs6000.c (uses_TOC): Correct comment. Make static.
10699 (rs6000_elf_declare_function_name): Formatting.
10700 * config/rs6000/rs6000-protos.h (uses_TOC): Remove declaration.
10702 2004-01-15 Jan Hubicka <jh@suse.cz>
10705 * sched-deps.c (sched_analyze_1, sched_analyze_2): Fix thinko in
10708 2004-01-15 Richard Henderson <rth@redhat.com>
10710 * config/alpha/alpha.h (REG_ALLOC_ORDER): Reorder fp regs after
10711 integer regs of the same call-savedness.
10713 2004-01-15 Andreas Schwab <schwab@suse.de>
10716 * config/m68k/m68k.c (output_move_const_into_data_reg): Clear cc
10717 status for NOTB/NOTW/NEGW methods.
10719 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10721 * doc/invoke.texi: Update dump file names. Fix a typo.
10723 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10725 * builtins.c (expand_builtin_va_end): Don't use
10726 EXPAND_BUILTIN_VA_END.
10727 * system.h (EXPAND_BUILTIN_VA_END): Poison.
10728 * config/d30v/d30v.h: Remove a commented-out definition of
10729 EXPAND_BUILTIN_VA_END.
10730 * config/stormy16/stormy16.h: Likewise.
10732 2004-01-15 Kazu Hirata <kazu@cs.umass.edu>
10734 * system.h (STRUCT_VALUE_INCOMING_REGNUM): Poison.
10735 * targhooks.c (default_struct_value_rtx): Don't use
10736 STRUCT_VALUE_INCOMING_REGNUM.
10738 2004-01-15 Kelley Cook <kcook@gcc.gnu.org>
10741 * configure.in: Revamp enable-generated-files-in-srcdir rule to define
10742 GENINSRC and not parsedir. Define srcextra as a langhook.
10743 * configure: Regenerate.
10744 * Makefile.in: Suppress default .l.c rule. Don't substitute
10745 parsedir and delete all references throughout. Conditionally define
10746 rule for srcextra dependent on GENINSRC.
10747 (stmp-docobjdir): Delete.
10748 (c-parse.o, gengtype-lex.o, gengtype-yacc.o): Use implicit build rule.
10749 (srcextra): Copy c-parse.y, c-parse.c, gengtype-lex.c, gengtype-yacc.c,
10750 and gengtype-yacc.h back to source directory.
10751 (maintainer-clean): Delete all parse files in source directory.
10752 (distclean): Delete generated files.
10754 * objc/Make-lang.in (objc-parse.o): Use implicit build rule.
10755 (objc-parse.c, objc-parse.y): Don't use parsedir.
10756 (objc.srcextra): Copy objc-parse.y and objc-parse.c back to source
10757 directory if requested.
10758 (po-generated): Don't use parsedir.
10759 (objc.maintainer-clean): Delete above files from source directory.
10761 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10763 * doc/tm.texi (FUNCTION_VALUE): Fix a typo.
10765 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10767 * doc/tm.texi: Replace RETURN_IN_MEMORY with
10768 TARGET_RETURN_IN_MEMORY.
10770 2004-01-15 Jan Hubicka <jh@suse.cz>
10772 * builtins.c (std_expand_builtin_va_arg): Align operand when needed.
10773 * i386.c (init_cumulative_args): Set warn_sse; fix handling of variadic
10774 functions accepting SSE arguments
10775 (function_arg): Warn only when asked to warn.
10776 * i386.h (ix86_args): Add warn_sse/warn_mmx fiels.
10778 2004-01-14 Joseph S. Myers <jsm@polyomino.org.uk>
10780 * c-parse.in (stmts_and_decls): Make label at end of compound
10781 statement a hard error.
10783 2004-01-14 Jan Hubicka <jh@suse.cz>
10785 * cgraph.c (create_edge): Use local.redefined_extern_inline.
10786 * cgraph.h (cgraph_local_info): Sort fields by size; add
10787 redefined_extern_inline
10788 (cgraph_global_info): Sort fields by size.
10789 (cgraph_node): Likewise.
10790 * cgraphunit.c (cgraph_finalize_function): Se
10791 local.redefined_extern_inline on redefinition.
10792 (cgraph_analyze_function): Use it; fix formating.
10794 2004-01-14 Jan Hubicka <jh@suse.cz>
10797 * sched-deps.c (trye_dependency_cache, anti_dependency_cache,
10798 outptu_dependency_cache, forward_dependency_cahe): Trun to vectors of
10800 (cache_size): New variable
10801 (add_dependence): Update use; canonize early memory locations
10802 (sched_analyze_1): Likewise.
10803 (sched_analyze_2): Likewise.
10804 (init_dependency_caches): Initialize bitmaps.
10805 (free_dependency_caches): Free bitmaps
10807 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10809 * calls.c: Replace STRICT_ARGUMENT_NAMING in comments with
10810 targetm.calls.strict_argument_naming().
10811 * target.h: Likewise.
10813 2004-01-14 Richard Henderson <rth@redhat.com>
10816 * dwarf2out.c (dwarf2out_stack_adjust): Skip prologue and epilogue
10819 2004-01-14 Richard Henderson <rth@redhat.com>
10822 * except.c (struct eh_region): Add u.fixup.resolved.
10823 (resolve_one_fixup_region): Split out from ...
10824 (resolve_fixup_regions): ... here.
10826 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10828 * config/mn10300/mn10300.h (STRUCT_VALUE): Change to 0.
10830 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10832 * config/alpha/alpha.h (STRUCT_VALUE): Remove.
10833 * config/alpha/vms.h (STRUCT_VALUE_REGNUM): Remove #undef.
10834 (STRUCT_VALUE): Remove.
10836 2004-01-14 Steven Bosscher <stevenb@suse.de>
10838 * system.h: Poison PROMOTED_MODE
10839 * integrate.c (expand_inline_function): Don't mention the
10841 * loop.c (update_giv_derive): Same.
10842 * tree.h (DECL_RTL): Same.
10844 2004-01-14 J"orn Rennecke <joern.rennecke@superh.com>
10847 * sh.c (gen_block_redirect): Add special handling of RETURN.
10848 (gen_far_branch) Don't call gen_stuff_delay_slot if there is no
10849 far branch target (i.e. it's a return).
10851 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10853 * regrename.c (find_oldest_value_reg): Fix a warning.
10855 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
10858 * config.gcc (arm*-*-linux*): Don't include unknown-elf.h in tm_file.
10859 Move linux-gas.h and linux-elf.h before aout.h.
10860 * arm/arm.h (INITIALIZE_TRAMPOLINE): Only define if not already.
10861 * arm/linux-elf.h (SUBTARGET_CPU_DEFAULT): Define.
10863 2004-01-14 Kazu Hirata <kazu@cs.umass.edu>
10865 * config/m32r/m32r.md: Use GEN_INT instead of gen_rtx
10866 (CONST_INT, VOIDmode, ...).
10868 2004-01-14 Richard Earnshaw <rearnsha@arm.com>
10870 * regrename.c (find_oldest_value_reg): If the replacement uses
10871 multiple hard registers, check that all of them are in CLASS.
10873 2004-01-14 Jan Hubicka <jh@suse.cz>
10875 * alias.c (get_alias_set): Initialize alias set to 0 when subset is
10878 2004-01-14 Kelley Cook <kcook@gcc.gnu.org>
10880 * Makefile.in: Define MAINT from --enable-maintainer-mode.
10882 2004-01-14 Hartmut Penner <hpenner@de.ibm.com>
10884 * gcc/config/rs6000/rs6000.c (rs6000_stack_info)
10885 Calculate always vrsave_mask if TARGET_ALTIVEC.
10886 (rs6000_emit_prologue): Emit code for vrsave
10887 only if TARGET_ALTIVEC_VRSAVE.
10888 (rs6000_emit_epilogue): Likewise.
10890 2004-01-14 Eric Botcazou <ebotcazou@libertysurf.fr>
10892 * config/sparc/sparc.md (tie_add32): Fix pasto.
10893 (tie_add64): Likewise.
10895 2004-01-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10897 * config/i386/i386.md (*addqi_1_slp): Do not access operands[2].
10899 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10901 * config/iq2000/iq2000-protos.h: Fix comment formatting.
10902 * config/iq2000/iq2000.c: Likewise.
10903 * config/iq2000/iq2000.md: Likewise.
10905 2004-01-14 J. Brobecker <brobecker@gnat.com>
10907 * dwarf2out.c (is_ada_subrange_type): No longer check the TYPE_NAME.
10908 (subrange_type_die): Add handle for nameless subrange types.
10910 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10912 * config/h8300/h8300-protos.h: Replace do_movsi with
10913 h8300_expand_movsi.
10914 * config/h8300/h8300.c (do_movsi): Change to
10915 h8300_expand_movsi.
10916 * config/h8300/h8300.md (movsi): Replace do_movsi with
10917 h8300_expand_movsi.
10920 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10922 * config/h8300/h8300.c (dosize): Change to
10923 h8300_emit_stack_adjustment. Update callers.
10925 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10927 * config/h8300/h8300.md (movstrictqi): Add an alternative with
10928 the source being post_inc. Tighten the predicate for the
10929 destination to register_operand.
10930 (movstricthi): Likewise.
10932 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10934 * system.h (SHARED_BSS_SECTION_ASM_OP): Poison.
10935 * varasm.c (bss_section): Don't use SHARED_BSS_SECTION_ASM_OP.
10936 * doc/tm.texi (SHARED_BSS_SECTION_ASM_OP): Remove.
10938 2004-01-14 Jan Hubicka <jh@suse.cz>
10940 Partial fix PR c++/12850
10941 * cgraphunit.c (cgraph_finalize_function): Always ggc_collect when
10942 at zero nest level.
10944 2004-01-13 Bernardo Innocenti <bernie@develer.com>
10946 * config/m68k/netbsd-elf.h (REGISTER_NAMES): Add missing "argptr"
10949 2004-01-13 Devang Patel <dpatel@apple.com
10952 * dbxout.c (dbxout_symbol_name): Emit mangled names for
10953 NAMESPACE_DECL memebers.
10955 2004-01-13 Andrew Pinski <pinskia@physics.uc.edu>
10958 * c-common.c (finish_fname_decls): Use the chain only if the
10959 tree is an expr_stmt.
10961 2004-01-13 Vladimir Makarov <vmakarov@redhat.com>
10963 * rtl.def: Add comment about new option in automata_option.
10965 * genautomata.c (PROGRESS_OPTION): New macro.
10966 (progress_flag): New global variable.
10967 (gen_automata_option): Process `progress'.
10968 (transform_insn_regexps, check_unit_distributions_to_automata,
10969 make_automaton, NDFA_to_DFA, build_automaton, create_automata,
10970 expand_automata, write_automata): Print about the progress only if
10971 progress_flag. Remove fflush.
10972 (initiate_automaton_gen): Process command line flag `-progress'.
10974 * doc/md.texi: Describe the new option.
10976 2004-01-13 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10978 * cfg.c (dump_bb): Dump entry edges.
10980 2004-01-13 Richard Earnshaw <rearnsha@arm.com>
10982 * arm.c (thumb_legitimate_address_p): Only allow constant pool
10983 references from SImode.
10984 * arm.md (thumb_movhi_insn): Don't allow minipool references.
10986 2004-01-13 Kazu Hirata <kazu@cs.umass.edu>
10988 * system.h (TEXT_SECTION): Poison.
10989 * varasm.c (text_section): Don't use TEXT_SECTION.
10990 * config/sh/sh.c (sh_file_start): Fix a comment typo.
10991 * doc/tm.texi (TEXT_SECTION): Remove.
10993 2004-01-13 Ben Elliston <bje@wasabisystems.com>
10995 * doc/rtl.texi (Vector Operations): Remove defunct vec_const item.
10997 2004-01-12 James E Wilson <wilson@specifixinc.com>
10999 * unwind-libunwind.c: Delete.
11001 2004-01-12 Zack Weinberg <zack@codesourcery.com>
11004 * c-decl.c (diagnose_mismatched_decls): Whenever newtype or
11005 oldtype is set, set *newtypep or *oldtypep too. Do not set
11006 them at the very end.
11007 (validate_proto_after_old_defn): Restructure for comprehensibility;
11008 make error messages clearer.
11010 2004-01-12 Zack Weinberg <zack@codesourcery.com>
11012 * varray.h (VARRAY_POP): Add checking variant, aborts on underflow.
11013 (VARRAY_TOP): Use VARRAY_CHECK so the access is bounds-checked.
11014 * varray.c: No need to prototype error.
11015 (varray_check_failed): Wrap long string onto two lines.
11016 (varray_underflow): New function.
11018 2004-01-13 Steven Bosscher <stevenb@suse.de>
11021 * function.h (struct function): Kill `name' field.
11022 (current_function_name): Make it an extern function.
11023 * function.c (current_function_name): New function.
11024 * graph.c: Update all uses of current_function_name.
11025 * gcse.c: Likewise.
11026 * config/alpha/alpha.c, config/avr/avr.c, config/c4x/c4x.c,
11027 config/mips/mips.c, config/pdp11/pdp11.c: Likewise.
11028 * config/ip2k/ip2k.c (function_prologue): Use MAIN_NAME_P
11029 instead of a strcmp with "main".
11031 2004-01-13 Jan Hubicka <jh@suse.cz>
11033 * c-decl.c (diagnose_mismatched_decls): Fix warning calls.
11035 * cgraphunit.c (cgraph_optimize_function): Always do
11036 optimize_inline_calls when there is always_inline callee.
11037 (cgraph_decide_inlining): Fix formating.
11038 * tree-inline.c (inlinable_function_p): Do sorry for alwaysinline
11040 (expand_call_inline): Likewise.
11041 * toplev.h (sorry): Fix prototype.
11043 2004-01-12 Roger Sayle <roger@eyesopen.com>
11045 * builtins.c (expand_builtin_expect_jump): Simplify logic. Handle
11046 conditional jumps that drop through to unconditional jumps or the
11047 end of the sequence.
11049 2004-01-13 Jan Hubicka <jh@suse.cz>
11051 * alias.c (new_alias_set): Construct the alias_set varray.
11052 (init_alias_once): Don't do it here.
11054 2004-01-12 Marc Espie <espie@openbsd.org>
11056 * system.h: handle YYBYACC like YYBISON.
11058 2004-01-12 Jonathan Merriman <jonm@dualitymedia.com>
11061 * config.gcc: No longer includes conflicting header sparc/sol2.h when
11062 building on sparc64-*-openbsd*.
11064 2004-01-12 Andrew Pinski <pinskia@physics.uc.edu>
11067 * dbxout.c (dbxout_type): Protected inheritance is not
11068 private but protected.
11070 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
11072 * config/mips/mips.c (mips_symbolic_constant_p): Revert last patch.
11074 2004-01-12 Kazu Hirata <kazu@cs.umass.edu>
11076 PR optimization/12508.
11077 * combine.c (try_combine): Remove a dead set in a parallel
11078 even if its destination is a subreg.
11081 2003-06-03 Kazu Hirata <kazu@cs.umass.edu>
11082 * combine.c (simplify_set): Don't move a subreg in SET_SRC to
11083 SET_DEST if WORD_REGISTER_OPERATIONS is not defined.
11085 2004-01-12 Geoffrey Keating <geoffk@apple.com>
11087 * real.c: Update copyright date.
11088 * emit-rtl.c: Likewise.
11090 * dwarf2out.c: Likewise.
11091 * config/rs6000/darwin-ldouble.c: Likewise.
11092 * config/rs6000/rs6000.md: Likewise.
11094 2004-01-12 David Edelsohn <edelsohn@gnu.org>
11096 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Add AIX
11097 TFmode to SImode libfuncs.
11099 2004-01-12 Roger Sayle <roger@eyesopen.com>
11101 PR middle-end/11397
11102 * varasm.c (assemble_alias): Remove weak aliases from weak_decls.
11104 2004-01-12 Jan Hubicka <jh@suse.cz>
11107 * loop.c (insert_loop_mem): Preffer VOLATILE memory references to be
11111 * cfgcleanup.c (label_is_jump_target_p): Move to...
11112 * rtlanal.c (label_is_jump_target_p): ... here.
11113 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Fix redirecting of fallthru
11114 edges unified with branch edges.
11116 2004-01-12 Richard Earnshaw <rearnsha@arm.com>
11118 * simplify-rtx.c (simplify_immed_subreg): Correctly extract the
11119 high word of an integral CONST_DOUBLE.
11121 2004-01-12 Paul Brook <paul@codesourcery.com>
11123 * simplify-rtx.c (simplify_plus_minus): Always generate canonical form.
11125 2004-01-12 J"orn Rennecke <joern.rennecke@superh.com>
11128 * sh-protos.h (check_use_sfunc_addr): Declare.
11129 * sh.c (extract_sfunc_addr, check_use_sfunc_addr): New functions.
11130 * sh.md (use_sfunc_addr): Use check_use_sfunc_addr in insn predicate.
11132 2004-01-12 Jan Hubicka <jh@suse.cz>
11134 * alias.c: Invlude varray.h
11135 (alias_sets): Turn into varray.
11136 (get_alias_set_entry): Use VARRAY; mark inline.
11137 (mems_in_disjoint_alias_sets_p): Mark inline.
11138 (record_alias_subset): Use varray.
11139 (init_alias_once): Initialize varray.
11140 (new_alias_set): Grow array.
11141 * varray.c: Make VARRAY_GENERIC_PTR non GTYized.
11143 2004-01-12 Jan Hubicka <jh@suse.cz>
11145 Partial fix for PR opt/10776 II
11146 * cselib.c: Include params.h
11147 (cselib_invalidate_mem): Limit amount of nonconflicting memory
11149 * params.def (PARAM_MAX_CSELIB_MEMORY_LOCATIONS): New.
11150 * Makefile.in (cselib.o): Depend on params.h
11152 2004-01-12 Richard Sandiford <rsandifo@redhat.com>
11154 * combine.c (combine_simplify_rtx): Don't pass VOIDmode to
11155 simplify_unary_operation if the operand has a known mode.
11157 2004-01-12 Hartmut Penner <hpenner@de.ibm.com>
11160 * gcc/config/rs6000/rs6000.c (word_offset_memref_operand): New
11161 predicate to handle 'ld' conform addresses.
11162 * gcc/config/rs6000/rs6000.h (EXTRA_CONSTRAINT): New 'Y'
11164 (EXTRA_MEMORY_CONSTRAINT): Tell reload which constraint
11165 are memory contraints.
11166 * gcc/config/rs6000/rs6000-protos.h (word_offset_memref_operand):
11168 * gcc/config/rs6000/rs6000.md (*movdf_hardfloat64):
11169 Change 'o' to 'Y' constraint.
11170 (*movdf_softfloat64): Ditto.
11172 2004-01-12 Bernardo Innocenti <bernie@develer.com>
11174 * gcc/config/m68k/m68k.md: Switch from the "*..." syntax to the
11175 brace-enclosed syntax in all C output statements.
11177 2004-01-12 David Edelsohn <edelsohn@gnu.org>
11180 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
11181 Objective-C language type value is 14.
11183 2004-01-12 Markus F.X.J. Oberhumer <markus@oberhumer.com>
11186 * config/m68k/fpgnulib.c: Fix `-mshort' bugs: Use `long' instead of
11187 `int' in a number of places to make sure we always have a SImode
11188 and not a HImode. Add a 'L' suffix to a number of constants.
11190 2004-01-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11192 * pa.c: Don't include obstack.h.
11194 * pa.md: Correct constraint in pattern for loading PIC label address.
11196 2004-01-11 Kaz Kojima <kkojima@gcc.gnu.org>
11198 * config/sh/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): Undefine
11201 2004-01-11 Steven Bosscher <stevenb@suse.de>
11204 * toplev.c (rest_of_handle_inline): Also consider functions
11205 for deferral if the language is GNU F77.
11207 2004-01-11 Zack Weinberg <zack@codesourcery.com>
11209 * c-decl.c (diagnose_arglist_conflict): Add missing space to
11210 diagnostic messages.
11212 2004-01-11 Jakub Jelinek <jakub@redhat.com>
11214 PR middle-end/13392
11215 * builtins.c (expand_builtin_expect_jump): Handle conditional jumps
11216 to drop through label. Don't fall back to SCC even when conditional
11217 jump has not been found.
11219 2004-01-11 Jan Hubicka <jh@suse.cz>
11221 * invoke.texi: Fix syntax error in previous patch.
11223 Partial fix for PR opt/10776
11224 * Makefile.in (reload.o): Include param.h
11225 * params.def (PARAM_MAX_RELOAD_SEARCH_INSNS): New parameter.
11226 * reload.c: Include params.h.
11227 (find_equiv_reg): Work limiting check.
11228 * invoke.texi: Document.
11230 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
11232 * config/mips/mips.c (mips_symbolic_constant_p): Don't allow
11233 out-of-bounds accesses to string constants. Simplify mips16
11236 2004-01-11 Richard Sandiford <rsandifo@redhat.com>
11238 PR optimization/13469
11239 * toplev.c (rest_of_compilation): Call purge_all_dead_edges after
11240 reload_cse_regs (-fnon-call-exceptions only).
11242 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
11244 * config/mcore/lib1.asm: Fix comment formatting.
11245 * config/mcore/mcore-elf.h: Likewise.
11246 * config/mcore/mcore.c: Likewise.
11247 * config/mcore/mcore.h: Likewise.
11248 * config/mcore/mcore.md: Likewise.
11250 2004-01-10 Zack Weinberg <zack@codesourcery.com>
11252 * c-decl.c (duplicate_decls): Break apart into...
11253 (diagnose_arglist_conflict, validate_proto_after_old_defn)
11254 (locate_old_defn, diagnose_mismatched_decls, merge_decls):
11255 ... these new functions. Restructure for comprehensibility.
11256 Remove various archaic special cases. Always report the
11257 location of the previous declaration when a diagnostic is issued.
11258 (redeclaration_error_message): Fold into diagnose_mismatched_decls.
11259 (match_builtin_function_types): Delete unnecessary forward declaration.
11261 2004-01-10 Zack Weinberg <zack@codesourcery.com>
11263 * genautomata.c (make_automaton, NDFA_to_DFA):
11264 Print progress bars with '.' characters instead of '*'.
11265 (build_automaton): Change notes to match.
11267 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
11269 * config/m32r/m32r.md: Use define_constants for unspec and
11272 2004-01-10 Jan Hubicka <jh@suse.cz>
11275 * expr.c (expand_expr_real): More curefully expand union casts.
11277 2004-01-10 Kazu Hirata <kazu@cs.umass.edu>
11279 * config/m32r/m32r.md (flush_icache): Use 1 for
11282 2004-01-10 David Edelsohn <edelsohn@gnu.org>
11283 James E Wilson <wilson@specifixinc.com>
11286 * dbxout.c (dbxout_symbol): Remove initialization of
11287 current_sym_code, current_sym_value, and current_sym_addr.
11288 (dbxout_symbol_location): Same.
11289 (dbxout_prepare_symbol): Zero current_sym_code,
11290 current_sym_value, and current_sym_addr.
11292 2004-01-10 Richard Sandiford <rsandifo@redhat.com>
11294 * tree.c (get_unwidened): Reorder conditions so that the null pointer
11295 check is done first.
11297 2004-01-09 Eric Christopher <echristo@redhat.com>
11299 * toplev.c (rest_of_handle_cfg): Add reg_scan pass
11300 if we're running mark_constant_function.
11302 2004-01-09 Jeff Bailey <jbailey@nisa.net>
11305 * config/t-gnu: Rename SYSTEM_HEADER_DIR to NATIVE_SYSTEM_HEADER_DIR.
11307 2004-01-09 Andrew Pinski <pinskia@physics.uc.edu>
11310 * dbxout.c (dbxout_type_fields): Return if any item is
11311 error_mark_node or the type is error_mark_node.
11313 2004-01-09 Geoffrey Keating <geoffk@apple.com>
11315 * config/rs6000/darwin-ldouble.c: Add big comment explaining
11316 exactly what is expected as a 'long double'.
11317 (_xlqadd): When a value to be returned is representable as a
11318 'double', just return it directly, do not construct it using a union.
11319 Also, correct final fixup.
11320 (_xlqmul): Likewise.
11321 (_xlqdiv): Likewise.
11322 * real.c (encode_ibm_extended): Make consistent with darwin-ldouble.c.
11324 * config/rs6000/rs6000.md (fix_trunctfdi2): Delete.
11326 2004-01-09 Richard Henderson <rth@redhat.com>
11328 * recog.c (constrain_operands): Validate mem operands.
11330 2004-01-09 James E Wilson <wilson@specifixinc.com>
11332 * gcc.c (init_spec): Remove -lunwind from shared case.
11333 * conifg/ia64/t-hpux (SHLIB_LINK): Add -lunwind.
11335 2004-01-09 Steve Ellcey <sje@cup.hp.com>
11337 * configure.ac: (gcc_cv_ld_hidden) Set to true for ia64*-*-hpux*.
11338 * configure: Regenerate
11340 2004-01-09 Joseph S. Myers <jsm@polyomino.org.uk>
11343 * c-typeck.c (build_c_cast): If pedantic, warn for conversions
11344 between function and object pointers.
11345 (digest_init): When comparing a pointer to function type to the
11346 target type, only apply TREE_TYPE once to the pointer to function
11348 * except.c (for_each_eh_label_1): Treat data as a pointer to a
11349 function pointer rather than casting it to a function pointer.
11350 (for_each_eh_label): Update caller.
11351 * recog.h (struct insn_data): Use a struct or union for output.
11352 * genoutput.c (output_insn_data): Update.
11353 * final.c (get_insn_template): Update.
11355 2004-01-09 Mark Mitchell <mark@codesourcery.com>
11357 * expr.h (expand_expr): Make it a macro, not a function.
11358 (expand_expr_real): New function.
11359 * expr.c (store_expr): Adjust logic for deciding whether or not to
11360 copy the value returned by expand_expr.
11361 (expand_expr): Rename to ...
11362 (expand_expr_real): ... this. Add alt_rtl parameter. Adjust
11363 calls to language hooks.
11364 * c-common.h (c_expand_expr): Adjust prototype.
11365 * c-common.c (c_expand_expr): Add alt_rtl parameter.
11366 * langhooks-def.h (lhd_expand_expr): Change prototype.
11367 * langhooks.c (lhd_expand_expr): Add all_rtl parameter.
11368 * langhooks.h (lang_hooks): Change type of expand_expr.
11369 * stmt.c (stmt_status): Add x_last_expr_alt_rtl.
11370 (last_expr_alt_rtl): Likewise.
11371 (expand_expr_stmt_value): Set last_expr_alt_rtl.
11372 (clear_last_expr): Clear it.
11373 (expand_end_stmt_expr): Set RTL_EXPR_ATL_RTL.
11374 (expand_end_bindings): Save and restor last_expr_alt_rtl.
11375 * tree.def (RTL_EXPR): Give it an additional operand.
11376 * tree.h (RTL_EXPR_ALT_RTL): New macro.
11378 2004-01-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11380 * config/m32r/m32r.h (TARGET_CPU_CPP_BUILTINS): Add __m32r__.
11381 * config/m32r/m32r.c (call26_operand): Allow in PIC mode.
11383 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
11386 * config/m32r/m32r.md: Replace (reg:SI 17) with (reg:CC 17)
11387 or (ne:SI (reg:CC 17) (const_int 0)).
11388 Be specific about modes wherever possible.
11390 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
11392 * config/m32r/m32r.c (m32r_expand_block_move): Call
11393 gen_movestrsi_internal with two more arguments.
11394 (m32r_output_block_move): Adjust operand numbers.
11395 Properly update the source and destination pointers.
11396 * config/m32r/m32r.md (movstrsi_internal): Use 'r' instead of
11397 'r+'. Change the set detinations to match_operand.
11399 2004-01-09 Kazu Hirata <kazu@cs.umass.edu>
11401 * final.c (FIRST_INSN_ADDRESS): Remove.
11402 (shorten_branches): Don't use FIRST_INSN_ADDRESS.
11403 * system.h (FIRST_INSN_ADDRESS): Poison.
11404 * config/avr/avr.h: Remove a comment about FIRST_INSN_ADDRESS.
11405 * config/m32r/m32r-protos.h: Remove the prototype for
11406 m32r_first_insn_address.
11407 * config/m32r/m32r.c (m32r_first_insn_address): Remove.
11408 * config/m32r/m32r.h (FIRST_INSN_ADDRESS): Likewise.
11409 * doc/md.texi (FIRST_INSN_ADDRESS): Likewise.
11411 2004-01-09 J. Brobecker <brobecker@gnat.com>
11413 * dwarf2out.c (gen_enumeration_type_die): Return the DIE that
11415 (is_ada_subrange_type): DIEs for enumeration subtypes should be
11416 emitted as subrange types too.
11417 (subrange_type_die): Add handling of enumeration subtypes.
11419 2004-01-08 Richard Henderson <rth@redhat.com>
11422 Revert: Sat Mar 30 14:08:55 CET 2002 Jan Hubicka <jh@suse.cz>
11423 * i386.c (aligned_operand): Be prepared for SUBREGed registers.
11424 (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
11425 (ix86_address_cost): Be prepared for SUBREGed registers.
11426 (legitimate_address_p): Accept SUBREGed registers.
11428 2004-01-08 Kelley Cook <kcook@gcc.gnu.org>
11430 * Makefile.in: Rename configure.in to configure.ac
11431 * doc/sourcebuild.texi: Likewise.
11432 * configure: Regenerate.
11433 * config.in: Regenerate.
11435 2004-01-08 Stuart Hastings <stuart@apple.com>
11437 * config/i386/i386.md: Typos in MMX/SSE immediate shifts.
11439 2004-01-08 Jan Hubicka <jh@suse.cz>
11441 * cgraphunit.c (cgraph_decide_inlining): Fix typo.
11443 2004-01-08 Geoffrey Keating <geoffk@apple.com>
11445 * config/rs6000/rs6000.md (cmptf_internal1): Correct branch offset.
11446 (UNSPEC_FIX_TRUNC_TF): New constant.
11447 (movtf_internal): Make splitter active only when insn is active.
11448 (extenddftf2): Rewrite to properly load zero into low part.
11449 (extenddftf2_internal): New.
11450 (extendsftf2): Rewrite.
11451 (truncdftf2): Correct length.
11452 (floatditf2): Delete.
11453 (fix_trunc_helper): New.
11454 (fix_trunctfdi2): Use fix_trunc_helper.
11455 (fix_trunctfsi2): Likewise.fix_trunc
11456 (fix_trunctfsi2_internal): New.
11458 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): lo_sum
11459 addresses are legitimate on Darwin even when flag_pic.
11460 (rs6000_legitimize_reload_address) [TARGET_MACHO]: Don't create
11461 non-offsettable addresses for loads of TFmode constants.
11463 2004-01-08 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11465 * config/m32r/m32r.h (ASM_OUTPUT_ALIGNED_BSS): Actually emit
11466 variables in the appropriate bss section.
11468 2004-01-09 Alan Modra <amodra@bigpond.net.au>
11470 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Ensure
11471 target_flags has MASK_POWERPC64 when -m64.
11472 * config/rs6000/rs6000.c (processor_target_table): Add MASK_POWERPC64
11473 to 620, 630, power3, power4 and rs64a entries.
11474 * config/rs6000/rs6000.h (MASK_64BIT): Expand comment.
11476 2004-01-08 Richard Sandiford <rsandifo@redhat.com>
11478 * simplify-rtx.c (simplify_immed_subreg): Fix construction of
11479 floating-point constants.
11481 2004-01-08 J. Brobecker <brobecker@gnat.com>
11483 * dwarf2out.c (subrange_type_die): Add context_die parameter.
11484 Create the subrange_type DIE using the given context DIE.
11485 (modified_type_die): Update call to subrange_type_die.
11487 2004-01-08 Zack Weinberg <zack@codesourcery.com>
11489 * dwarf2.h, unwind-dw2-fde.h, unwind-pe.h, unwind.h:
11490 Add multiple-include guard.
11492 2004-01-08 Hartmut Penner <hpenner@de.ibm.com>
11494 * gcc/config/rs6000/rs6000.c (easy_vector_constant): Accept
11495 all vector constant loadable by vsplt*.
11496 (output_vec_const_move): Likewise.
11498 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
11501 * c-typeck.c (comptypes): Only treat enumerated types in the same
11502 translation unit as compatible with each other when they are the
11504 * doc/extend.texi: Update.
11506 2004-01-07 Joseph S. Myers <jsm@polyomino.org.uk>
11509 * c-decl.c (grokdeclarator): Take type qualifiers of typedefed
11510 array type from the array element type.
11512 2004-01-07 Alan Modra <amodra@bigpond.net.au>
11514 * config/rs6000/rs6000.c (rs6000_dbx_register_number): New function.
11515 * config/rs6000/rs6000-protos.h (rs6000_dbx_register_number): Declare.
11516 * config/rs6000/rs6000.h (DWARF_FRAME_REGNUM): Define.
11517 (DWARF_REG_TO_UNWIND_COLUMN): Correct column adjustment and comment.
11518 * config/rs6000/sysv4.h (DBX_REGISTER_NUMBER): Define.
11520 2004-01-06 Eric Christopher <echristo@redhat.com>
11522 * config/mips/mips.h (MDEBUG_ASM_SPEC): Change for dwarf2 default.
11523 (DWARF2_DEBUGGING_INFO): Define.
11524 (PREFERRED_DEBUGGING_TYPE): Set to dwarf2.
11525 * config/mips/openbsd.h (PREFERRED_DEBUGGING_TYPE): Remove.
11526 * config/mips/iris6.h (SUBTARGET_ASM_DEBUGGING_SPEC): Only pass -g0
11528 (SUBTARGET_ASM_OPTIMIZING_SPEC): Only pass O0 for irix as.
11529 * config/mips/iris6gas.h (MDEBUG_ASM_SPEC): Remove.
11530 * config/mips/iris5gas.h: Ditto.
11531 (DBX_DEBUGGING_INFO): Remove.
11532 (DWARF2_DEBUGGING_INFO): Ditto.
11533 (MIPS_DEBUGGING_INFO): Ditto.
11534 (PREFERRED_DEBUGGING_TYPE): Ditto.
11535 * config/mips/elf.h (DWARF2_DEBUGGING_INFO): Remove.
11536 (PREFERRED_DEBUGGING_TYPE): Ditto.
11537 (SUBTARGET_ASM_DEBUGGING_SPEC): Ditto.
11538 * config/mips/elf64.h: Ditto.
11540 2004-01-06 Jan Hubicka <jh@suse.cz>
11542 * Makefile.in (STAGEPROFILE_FLAGS_TO_PASS): Use -fprofile-generate.
11543 (STAGEFEEDBACK_FLAGS_TO_PASS): Use -fprofile-use.
11545 2004-01-06 Geoffrey Keating <geoffk@apple.com>
11547 * config/rs6000/t-darwin (LIB2FUNCS_EXTRA): Compile darwin-ldouble.c.
11548 (TARGET_LIBGCC2_CFLAGS): Use -mlong-double-128.
11549 * config/rs6000/darwin-ldouble.c: New.
11551 * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg
11553 (constant_subword): Delete.
11554 * rtl.h (constant_subword): Delete prototype.
11555 (immed_double_const): Is not in varasm.c.
11556 * simplify-rtx.c (simplify_immed_subreg): New.
11557 (simplify_subreg): Use simplify_immed_subreg.
11559 * config/rs6000/rs6000.md (floatsitf2): Use expand_float rather
11560 than trying to generate RTL directly.
11561 (fix_trunctfsi2): Use expand_fix rather than trying to generate
11564 * dwarf2out.c (add_const_value_attribute): Remove incorrect comment.
11566 2004-01-06 David Edelsohn <edelsohn@gnu.org>
11568 * config/rs6000/xcoff.h (EXTRA_SECTION_FUNCTIONS): Split each
11569 function into a separate macro.
11570 (read_only_data_section): Add void argument.
11571 (private_data_section): Same.
11572 (read_only_private_data_section): Same.
11573 (toc_section): Same.
11575 2004-01-06 Jan Hubicka <jh@suse.cz>
11577 * invoke.texi: Remove typo in last change.
11580 * config.gcc: Accept opteron and athlon-64 as variants
11582 * i386.c (override_options): Likewise.
11583 * invoke.texi (i386 -mtune): Expand documentation.
11585 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
11587 * alias.c: Fix comment typos.
11588 * builtins.c: Likewise.
11591 * dominance.c: Likewise.
11592 * dwarf2out.c: Likewise.
11593 * emit-rtl.c: Likewise.
11594 * expr.c: Likewise.
11595 * final.c: Likewise.
11596 * fold-const.c: Likewise.
11597 * gcse.c: Likewise.
11598 * genattrtab.c: Likewise.
11599 * genrecog.c: Likewise.
11600 * gensupport.c: Likewise.
11601 * ggc-zone.c: Likewise.
11602 * integrate.c: Likewise.
11603 * local-alloc.c: Likewise.
11604 * loop.c: Likewise.
11605 * recog.c: Likewise.
11606 * regmove.c: Likewise.
11607 * reg-stack.c: Likewise.
11608 * reorg.c: Likewise.
11609 * rtlanal.c: Likewise.
11611 * sched-ebb.c: Likewise.
11612 * simplify-rtx.c: Likewise.
11613 * toplev.c: Likewise.
11614 * varasm.c: Likewise.
11616 2004-01-06 Kazu Hirata <kazu@cs.umass.edu>
11618 * doc/install.texi: Fix typos.
11619 * doc/invoke.texi: Likewise.
11620 * doc/md.texi: Likewise.
11622 2004-01-06 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11624 * config/m32r/m32r.h (TRAMPOLINE_LINE_SIZE): Changed
11626 2004-01-06 Jan Hubicka <jh@suse.cz>
11628 * i386.c (init_cumulative_args): Add handling of MMX_REGPARM.
11629 (function_arg_advance): Do not pass aggregates in SSE; deal handling
11631 (function_arg): Add new warnings about ABI changes; fix SSE_REGPARM;
11633 * i386.h (ix86_args): Add mmx_words/mmx_regs/mmx_regno fields.
11634 (SSE_REGPARM_MAX): Default to 3 on i386 -msse ABI.
11635 (MMX_REGPARM_MAX): Similarly for -mmmx.
11637 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11639 * config/sh/linux.h: Fix comment formatting.
11640 * config/sh/netbsd-elf.h: Likewise.
11641 * config/sh/sh.c: Likewise.
11642 * config/sh/sh.h: Likewise.
11643 * config/sh/vxworks.h: Likewise.
11645 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11647 * system.h (ASM_OUTPUT_MAIN_SOURCE_FILENAME): Poison.
11648 * toplev.c (output_file_directive): Don't use
11649 ASM_OUTPUT_MAIN_SOURCE_FILENAME.
11651 2004-01-05 Steven Bosscher <s.bosscher@student.tudelft.nl>
11653 * toplev.c: Fix broken checkin of 2003-12-30.
11655 2004-01-05 Daniel Berlin <dberlin@dberlin.org>
11657 * ggc-zone.c: Remove everything in #ifdef USING_MALLOC_PAGE_GROUPS
11658 (USING_MMAP): We don't support non-mmap.
11659 (struct alloc_chunk): Steal 1 bit from typecode, use it to mark
11661 (struct page_entry): Remove bytes_free.
11662 (struct page_table_chain): Remove.
11663 (struct globals): Remove page_table member.
11664 (loookup_page_table_entry): Function deleted.
11665 (set_page_table_entry): Ditto.
11666 (ggc_allocated_p): No longer need page table lookups.
11667 (ggc_marked_p): Ditto.
11668 (alloc_small_page): Don't care about bytes_free anymore.
11669 (alloc_large_page): Round up size.
11670 (ggc_alloc_zone_1): Mark large objects as such, and calculate
11671 their size the new way.
11672 Remove page table lookups and setting.
11673 (ggc_get_size): Calculate large object size the new way.
11674 (sweep_pages): Redo to account for fact that we no longer have
11676 (ggc_collect): No longer need to reincrement bytes_free.
11677 (ggc_pch_alloc_object): Handle new large objects properly.
11678 (ggc_pch_read): Put PCH stuff into it's own uncollected zone.
11680 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11682 * doc/invoke.texi: Remove a page break.
11684 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11686 * config/avr/avr.c (avr_output_function_prologue): Remove an
11687 extra pair of curly braces.
11689 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11691 * config/mn10300/mn10300.c: Fix comment formatting.
11692 * config/mn10300/mn10300.h: Likewise.
11694 2004-01-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11696 * tree.h: Update documentation on nothrow_flag.
11697 * print-tree.c (print_node): Print TREE_NOTHROW as "align-ok" for
11700 2004-01-05 Kazu Hirata <kazu@cs.umass.edu>
11702 * doc/invoke.texi: Remove traces of dead ports.
11704 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11706 * doc/invoke.texi: Add documentation for the MIPS -mexplicit-relocs
11709 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11712 * coverage.c (coverage_counter_alloc): Set SYMBOL_FLAG_LOCAL for
11714 * config/mips/mips.c (INTERNAL_SYMBOL_P): Delete.
11715 (mips_classify_symbol): Always treat SYMBOL_REF_FLAG as indicating
11716 string constants if TARGET_MIPS16. Use SYMBOL_REF_DECL to check
11717 the binding of decl symbols, otherwise check SYMBOL_REF_LOCAL_P.
11718 (mips_symbol_insns): Don't trust the local/global classification.
11719 (m16_usym8_4, m16_usym5_4): Same mips16 change as mips_classify_symbol.
11720 (override_options): Make -mabicalls -fno-unit-at-a-time imply
11721 -mno-explicit-relocs.
11722 (mips_encode_section_info): Don't use SYMBOL_REF_FLAG to distinguish
11723 between local and global symbols.
11725 2004-01-05 Richard Sandiford <rsandifo@redhat.com>
11727 * config/mips/mips-protos.h (mips_dangerous_for_la25_p): Declare.
11728 (mips_preferred_reload_class): Declare.
11729 * config/mips/mips.h (DANGEROUS_FOR_LA25_P): Replace with function.
11730 (EXTRA_CONSTRAINT): Update accordingly.
11731 (PREFERRED_RELOAD_CLASS): Use mips_preferred_reload_class.
11732 * config/mips/mips.c (mips_dangerous_for_la25_p): New function.
11733 (mips_preferred_reload_class): New function. Prefer LEA_REGS if
11734 mips_dangerous_for_la25_p.
11735 (mips_secondary_reload_class): Use LEA_REGS rather than GR_REGS
11736 if mips_dangerous_for_la25_p.
11738 2004-01-05 Bernardo Innocenti <bernie@develer.com>
11740 * config/m68k/m68k.c (output_andsi3): Fix signed/unsigned comparison
11743 2004-01-04 Nathanael Nerode <neroden@gcc.gnu.org>
11745 * configure.ac: Use AC_PROG_CPP_WERROR.
11746 * configure: Regenerate.
11748 2004-01-04 Zack Weinberg <zack@codesourcery.com>
11750 * .cvsignore: Add autom4te.cache.
11752 2004-01-04 Richard Sandiford <rsandifo@redhat.com>
11754 * doc/invoke.texi: Revamp documentation of MIPS options. Remove
11755 -mabi=meabi, -mabi-fake-default, -mmips-as, -mgas, -mmips-tfile,
11756 -m4650, -mfix7000 and -(m)no-crt0. Put endianness options first,
11757 then architecture options, then ABI options. General rewording.
11759 2004-01-04 Joseph S. Myers <jsm@polyomino.org.uk>
11762 * doc/extend.texi: Clarify definition of malloc attribute.
11764 2004-01-04 Jan Hubicka <jh@suse.cz>
11766 * Makefile.in (cgraph.o, cgraphunit.o): Add intl.h dependency.
11767 * cgraph.c (create_edge, dump_cgraph): Update to use inline_failed
11768 * cgraph.h (cgraph_edge): Replace inline_call by inline_failed
11769 (cgraph_inline_p): Add extra argument reason.
11770 * cgraphunit.c: Minor formating fixes.
11771 cgraph_first_inlined_callee): New functions.
11772 (record_call_1): Record builtins too.
11773 (cgraph_analyze_function): Update inline_failed messages.
11774 (cgraph_mark_functions_to_output, cgraph_expand_function, cgraph_inlined_into,
11775 cgraph_inlined_callees, cgraph_estimate_growth): Update to use inline_failed.
11776 (cgraph_check_inline_limits): Likewise; Add argument reason.
11777 (cgraph_set_inline_failed): New static function.
11778 (cgraph_decide_inlining_of_small_function, cgraph_decide_inlining): Set
11780 (cgraph_inline_p): Add new argument reason.
11781 * tree-inline.c (expand_call_inline): Update warning.
11783 2004-01-03 Nathanael Nerode <neroden@gcc.gnu.org>
11785 * configure.ac: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
11786 with modern equivalents.
11787 * configure: Regenerate.
11789 * configure.ac: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
11790 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
11791 * configure: Regenerate.
11793 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
11795 * configure.in: Rename to configure.ac.
11796 * configure.ac: Renamed from configure.in; make minimum necessary
11797 changes for autoconf 2.5x.
11798 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
11799 * configure: Regenerate with autoconf 2.57.
11801 2004-01-03 Kazu Hirata <kazu@cs.umass.edu>
11803 * config/mips/linux.h: Fix comment formatting.
11804 * config/mips/mips.c: Likewise.
11805 * config/mips/mips.h: Likewise.
11806 * config/mips/mips.md: Likewise.
11807 * config/mips/netbsd.h: Likewise.
11808 * config/mips/windiss.h: Likewise.
11810 2004-01-02 Richard Henderson <rth@redhat.com>
11812 * config/i386/i386.md (fp constant pool splitter): Reorg suppression
11813 for sse and 387; add suppression for mmx.
11815 2004-01-02 Andrew Pinski <pinskia@physics.uc.edu>
11817 * loop.c (loop_optimize): Free all loops_info's mems.
11819 * c-typeck.c (finish_init): Free spelling_base before
11822 * cfgloop.c (flow_loops_find): Always free the sbitmap
11825 * predict.c (estimate_probability): Free bbs after being
11828 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
11830 * config/mn10300/mn10300.h (PREDICATE_CODES): Add
11831 const_8bit_operand and call_address_operand.
11833 2004-01-02 Jan Hubicka <jh@suse.cz>
11835 * cgraphunit.c (cgraph_optimize_function): Call optimize_inline_calls
11836 when there is nothing to inline but warnings are requested.
11837 (cgraph_decide_inlining): Fix memory leak.
11839 2004-01-02 Jan Hubicka <jh@suse.cz>
11841 * expr.c (store_constructor): Fix pasto in previous patch.
11843 2004-01-02 Kazu Hirata <kazu@cs.umass.edu>
11845 * config/i386/cygming.h: Fix comment formatting.
11846 * config/i386/djgpp.h: Likewise.
11847 * config/i386/gthr-win32.c: Likewise.
11848 * config/i386/i386-interix.h: Likewise.
11849 * config/i386/i386.c: Likewise.
11850 * config/i386/i386.h: Likewise.
11851 * config/i386/openbsd.h: Likewise.
11852 * config/i386/winnt.c: Likewise.
11853 * config/i386/xm-mingw32.h: Likewise.
11855 2004-01-02 Joseph S. Myers <jsm@polyomino.org.uk>
11857 * doc/gcc.texi, doc/invoke.texi, doc/install.texi: Update
11858 copyright and last modification dates.
11860 2004-01-02 Andreas Jaeger <aj@suse.de>, Gerald Pfeifer <gp@suse.de>
11862 * doc/install.texi (Specific): Mention x86_64.
11864 2004-01-01 Hans-Peter Nilsson <hp@bitrange.com>
11866 * builtins.c (expand_builtin_apply_args_1) [STACK_GROWS_DOWNWARD]:
11867 Call force_operand on plus_constant result.
11869 2004-01-01 Jan Hubicka <jh@suse.cz>
11871 * expmed.c (store_bit_field, extract_bit_field): Use new named patterns
11872 * expr.c (store_constructor): Use vec_init pattern.
11873 * genopinit.c (optabs): Initailize vec_set/vec_extract/vec_init.
11874 * optabs.h (optab_index): ADD OTI_vec_set/OTI_vec_extract/OTI_vec_init
11875 (vec_set_optab, vec_extract_optab, vec_init_optab): New.
11876 * i386.md (vec_setv2df, vec_extractv2df, vec_setv4sf, vec_extractv4sf):
11878 (sse2_unpc?pd): Fix pattern.
11879 (sse2_movlpd): Kill.
11880 (sse2_movsd): Deal with movlpd too.
11881 * i386.c (ix86_expand_builtin): Use sse2_movsd instead of sse2_movlpd.
11882 (ix86_expand_vector_init): New.
11883 * emmintrin.h (__mm_set_pd, __mm_set_ps): Use vector extensions.
11884 * md.texi (vec_set, vec_extract): Document
11886 2003-12-31 Jan Hubicka <jh@suse.cz>
11889 * recog.c (validate_replace_rtx_1): Take care for RTL sharing inside
11893 * toplev.c (dump_file_index): Reorder ce3 and bbro.
11894 (dump_file): Likewise.
11895 (rest_of_compilation): Likewise.
11898 * cgraph.c (cgraph_function_possibly_inlined): Even with
11899 flag_really_no_inline we inline always_inline functions.
11900 * cgraphunit.c (cgraph_analyze_function): Clear inlinable flag
11901 for non-always_inline functions when there is flag_really_no_inline.
11902 (cgraph_decide_inlining): Limit work done when not inlining.
11903 (cgraph_decide_inlining_incrementally): Likewise.
11904 (cgraph_optimize_function): Check whether something got inlined.
11905 * c-objc-common.c (c_disregard_inline_limits): Do not always inline
11906 extern inline functions when not inlining.
11908 * opts.c (decode_options): Disable crossjumping at -O1
11909 * invoke.texi (-O1): Document change.
11911 See ChangeLog.10 for earlier changes.