1 2004-04-30 Uros Bizjak <uros@kss-loka.si>
3 * reg-stack.c (subst_stack_regs_pat): <UNSPEC_SIN, UNSPEC_COS,
4 UNSPEC_FRNDINT, UNSPEC_F2XM1>: abort() if src1 dies.
5 <UNSPEC_SINCOS_COS, UNSPEC_TAN_ONE, UNSPEC_XTRACT_FRACT>: Same.
6 <UNSPEC_SINCOS_SIN, UNSPEC_TAN_TAN, UNSPEC_XTRACT_EXP>: Same.
8 2004-04-29 Richard Guenther <richard.guenther@uni-tuebingen.de>
10 * commom.opt (Wfatal-errors): Add it.
11 * diagnostic.c (flag_fatal_errors): Define it.
12 (diagnostic_action_after_output): Check for flag_fatal_errors.
13 * flags.h (flag_fatal_errors): Declare it.
14 * opts.c (common_handle_option): Add OPT_Wfatal_errors.
15 * doc/invoke.texi (Warning Options): Document -Wfatal-errors.
17 2004-04-30 Josef Zlomek <zlomekj@suse.cz>
19 * gcse.c (remove_reachable_equiv_notes): Delete notes also in
20 blocks which have kill flag set.
22 2004-04-29 Ben Elliston <bje@au.ibm.com>
24 * configure.ac (--with-as): Abort if user-supplied assembler
26 (--with-ld): Likewise for the linker.
27 * configure: Regenerate.
29 2004-04-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
31 * convert.c (convert_to_integer): Ensure `long_integer_type_node'
32 isn't NULL before using it.
34 2004-04-29 Richard Sandiford <rsandifo@redhat.com>
37 * config/mips/mips.md (load_df_low): Use default length.
38 (load_df_high, store_df_high): Likewise.
40 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
42 * config/mips/mips.md, config/mips/sb1.md,
43 config/rs6000/rs6000.c: Fix comment typos.
45 2004-04-29 Kazu Hirata <kazu@cs.umass.edu>
47 * builtins.c, cgraph.c, cgraphunit.c, final.c, fold-const.c:
50 2004-04-29 Douglas B Rupp <rupp@gnat.com>
52 * gcc.c (DELETE_IF_ORDINARY): New macro default definition.
53 (delete_if_ordinary): Use above macro.
54 * config/alpha/xm-vms.h (DELETE_IF_ORDINARY): New macro VMS definition.
56 * doc/hostconfig.texi (DELETE_IF_ORDINARY): Document new macro.
58 2004-04-29 Richard Earnshaw <rearnsha@arm.com>
60 * c-decl.c (get_parm_info): Use the correct tag keywords when
61 warning about type declarations in prototypes.
63 2004-04-29 Paul Brook <paul@codesourcery.com>
65 * config.gcc: Pull list of cores from arm-cores.def.
67 2004-04-29 Paolo Bonzini <bonzini@gnu.org>
69 * combine.c (combine_simplify_rtx): Adjust call to use
70 simplify_relational_operation. Do not use SELECT_CC_MODE
71 when a comparison already has a MODE_CC mode.
72 (simplify_set): simplify_relational_operation may now
73 return another relational expression.
74 * cse.c (fold_rtx): simplify_relational_operation now
75 takes of computing the comparison mode.
76 * dojump.c (compare_from_rtx): Use simplify_relational_operation,
78 (do_compare_rtx_and_jump): Likewise.
79 * integrate.c (subst_constants): simplify_relational_operation
80 may now return another relational expression.
81 * simplify-rtx.c (simplify_gen_relational): Move most code to
82 the new simplify_relational_operation and
83 simplify_relational_operation_1 functions.
84 (simplify_relational_operation): Rewritten.
85 (simplify_relational_operation_1): New function.
86 (simplify_ternary_operation): simplify_relational_operation
87 may now return another relational expression.
88 (simplify_rtx): Remove unnecessary temp variable.
90 2004-04-29 Uros Bizjak <uros@kss-loka.si>
92 * reg-stack.c (swap_to_top): New function.
93 (subst_stack_regs_pat): UNSPEC_FPATAN, UNSPEC_FYL2X: Use
95 (subst_stack_regs_pat): UNSPEC_FSCALE: Remove.
96 (subst_stack_regs_pat): Handle UNSPEC_FSCALE_FRACT and
99 * config/i386/i386.md (UNSPEC_FSCALE): Remove.
100 (*fscale_sfxf3, *fscale_dfxf3, *fscale_xf3): Remove insn pattern.
101 (UNSPEC_FSCALE_FRACT, UNSPEC_FSCALE_EXP): New unspecs to represent
103 (*fscalexf4: Define new insn pattern to implement x87 fscale insn.
104 (exp?f2, exp10?f2, exp2?f2): Use *fscalexf4 and float_truncate
107 2004-04-28 Serge Belyshev <1319@bot.ru>
110 * coverage.c (read_counts_file): Fix usage of warning () call.
111 * pretty-print.c (pp_base_format_text): Fix typo in the comment.
113 2004-04-28 Ben Elliston <bje@au.ibm.com>
115 * doc/invoke.texi (Objective-C Dialect Options): Don't prefix
116 options with "-" in the option index.
117 (SPARC Options): Likewise.
118 (M32R/D Options): Likewise.
120 2004-04-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
122 * convert.c (convert_to_integer): Convert (long)round -> lround,
125 2004-04-28 Andrew Pinski <pinskia@physics.uc.edu>
127 * config/rs6000/rs6000.c (registers_ok_for_quad_peep):
128 Return false if we do not have fp register.
129 (addrs_ok_for_quad_peep): Rename to ...
130 (mems_ok_for_quad_peep): this.
131 Add check for volatile memory.
132 * config/rs6000/rs6000-protos.h (addrs_ok_for_quad_peep):
134 (mems_ok_for_quad_peep): this.
135 * config/rs6000/rs6000.md: Change peephole's for lfq/stq
137 (lfq_power2): New instruction.
138 (stfq_power2): Likewise.
140 2004-04-28 Jan Hubicka <jh@suse.cz>
143 * function.c (do_warn_unused_parameter): Break out form ...
144 (expand_function_end): ... here; warn only when not using cgraphunit.
145 * function.h (do_warn_unused_parameter): Declare.
146 * cgraphunit.c: Include function.h.
147 (cgraph_finalize_function): Do unused parameter warning.
148 * Makefile.in (cgraphunit.o): Depend on function.h
150 2004-04-28 Joseph S. Myers <jsm@polyomino.org.uk>
152 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Don't condition
153 calling install-info on $(DESTDIR)$(infodir)/dir already being
156 2004-04-28 Paul Brook <paul@codesourcery.com>
158 * dwarf2out.c (mem_loc_descriptor): Handle shifts.
160 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
162 * gcse.c (find_moveable_store): Do not accept store insns with
165 2004-04-28 Paul Brook <paul@codesourcery.com>
167 * calls.c (precompute_arguments): Remove PROMOTE_FOR_CALL_ONLY.
168 * function.c (assign_temp): Ditto.
169 * system.h (PROMOTE_FOR_CALL_ONLY): Poison.
171 2004-04-28 Paul Brook <paul@codesourcery.com>
173 * config/arm/lib1funcs.asm: Recognize armv5tej and armv6.
175 2004-04-28 Josef Zlomek <zlomekj@suse.cz>
177 * var-tracking.c (variable_different_p): Add a parameter
178 compare_current_location, compare current location of variable parts
180 (dataflow_set_different_1): Pass compare_current_location == false.
181 (dataflow_set_different_2): Pass compare_current_location == false.
182 (emit_notes_for_differences_1): Pass compare_current_location == true.
184 2004-04-28 Ulrich Weigand <uweigand@de.ibm.com>
186 * config/s390/s390.md ("casesi"): Mark jump table access as
187 non-trapping and unchanging.
189 2004-04-27 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
192 * dwarf2out.c (reg_number): Rename to dbx_reg_number. Adjust all
194 (multiple_reg_loc_descriptor, reg_loc_descriptor): Use gcc register
195 number for indexing hard_regno_nregs array.
197 2004-04-27 Geoffrey Keating <geoffk@apple.com>
199 * config/darwin.h (STARTFILE_SPEC): Use %s to find crt2.o.
200 * config/darwin-crt2.c: Only have contents on __ppc__.
202 2004-04-27 Bob Wilson <bob.wilson@acm.org>
204 * config/xtensa/xtensa.c (call_insn_operand): Check
205 SYMBOL_REF_EXTERNAL_P in addition to SYMBOL_REF_LOCAL_P.
206 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND): Likewise.
207 * config/xtensa/xtensa.md (call, call_value): Likewise.
209 2004-04-27 Wu Yongwei <adah@sh163.net>
211 * gthr-win32.h (__gthread_mutex_t): Change typedef to new structure.
212 (__GTHREAD_MUTEX_INIT_DEFAULT): Adjust.
213 (__gthread_mutex_init_function): Replace CreateMutex with
214 initialization of custom mutex using CreateSemaphore.
215 (__gthread_mutex_lock): Use InterlockedIncrement.
216 (__gthread_mutex_trylock): Use InterlockedCompareExchange.
217 (__gthread_mutex_unlock): Use InterlockedDecrement and
218 ReleaseSemaphore to unlock
219 * config/i386/gthr-win32.c (__gthread_mutex_init_function,
220 __gthread_mutex_lock, __gthread_mutex_trylock,
221 __gthread_mutex_unlock): Adjust to match inline versions in
224 2004-04-27 Paul Brook <paul@codesourcery.com>
226 * config/arm/arm.c (arm_promote_prototypes): New function.
227 (TARGET_PROMOTE_PROTOTYPES): Use it.
229 2004-04-27 Paul Brook <paul@codesourcery.com>
231 * config/arm/arm.c (arm_expand_epilogue): Count blocks of 4 regs.
233 2004-04-26 Bernard Giroud <bgiroud@free.fr>
235 * config/alpha.c (alpha_end_function): For OpenVMS gas,
236 correctly output .pdesc directive before .end.
238 2004-04-26 James E Wilson <wilson@specifixinc.com>
241 * config/ia64/ia64.md (movxf): New local op0. Handle case where
242 operands[0] is a SUBREG. Handle case where operands[1] is a GR reg.
244 2004-04-26 Zack Weinberg <zack@codesourcery.com>
246 * config/ia64/hpux.h: Predefine __STDCPP__ when compiling C++.
247 * config/pa/pa-hpux10.h: Likewise.
248 * config/pa/pa-hpux11.h: Likewise.
250 2004-04-26 Geoffrey Keating <geoffk@apple.com>
252 * doc/invoke.texi (Overall Options): Document default for -o
255 2004-04-26 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
257 * builtins.c (expand_builtin_update_setjmp_buf): New function.
258 (expand_builtin, case BUILT_IN_UPDATE_SETJMP_BUF): New case.
259 * builtins.def (BUILT_IN_UPDATE_SETJMP_BUF): New code.
261 2004-04-26 Paul Brook <paul@codesourcery.com>
263 * config/arm/arm.c (arm_legitimate_index_p): Correct iwmmxt offsets.
265 2004-04-26 Paul Brook <paul@codesourcery.com>
267 * config/arm/arm.c (arm_legitimate_index_p): Correct maverick offsets.
269 2004-04-25 Roger Sayle <roger@eyesopen.com>
271 * fold-const.c (fold): Prefer fold_convert (negate_expr (...)) to
272 fold (build1 (NEGATE_EXPR, ...)). Optimize X / -1 as -X and
275 2004-04-26 Hans-Peter Nilsson <hp@bitrange.com>
278 * except.c (connect_post_landing_pads): Delete insns after the
279 barrier when generating a unwind_resume_libfunc call.
281 2004-04-25 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
284 * tree.c (substitute_placeholder_in_expr, case 4): New case,
287 2004-04-25 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
289 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
290 __gcov_execv, __gcov_execvp, __gcov_execve): Do not declare when
291 inhibit_libc is defined.
293 2004-04-25 Richard Sandiford <rsandifo@redhat.com>
295 * config/mips/mips-protos.h (mips_linked_macc_p): Declare.
296 * config/mips/mips.h (TUNE_MACC_CHAINS): New macro.
297 * config/mips/mips.c (TARGET_SCHED_REORDER): Define.
298 (TARGET_SCHED_VARIABLE_ISSUE): Define.
299 (mips_adjust_cost): Move later in file, next to other sched hooks.
300 (mips_macc_chains_last_hilo): New variable.
301 (mips_linked_madd_p, mips_macc_chains_record, mips_macc_chains_reorder)
302 (mips_promote_ready, mips_sched_reorder, mips_variable_issue): New.
303 * config/mips/mips.md (may_clobber_hilo): New attribute.
305 2004-04-24 Roger Sayle <roger@eyesopen.com>
306 Bruce Korb <bkorb@gnu.org>
308 * fixinc/inclhack.def (aix_syswait_2): New fix.
309 * fixinc/fixincl.x: Regenerate.
310 * fixinc/tests/base/sys/wait.h: Update for new test.
312 2004-04-24 Alan Modra <amodra@bigpond.net.au>
315 * config/rs6000/rs6000.c (rs6000_stack_info): Rename total_raw_size
316 to non_fixed_size, and leave out fixed_size from the sum.
317 (generate_set_vrsave): Correct clobbers.
318 (rs6000_emit_epilogue): Test TARGET_ALTIVEC with TARGET_ALTIVEC_SAVE.
319 (rs6000_function_value): Test TARGET_ALTIVEC and TARGET_ALTIVEC_ABI.
320 (rs6000_libcall_value): Likewise.
321 * config/rs6000/rs6000.h (FUNCTION_VALUE_REGNO_P): Likewise.
322 (FUNCTION_ARG_REGNO_P): Likewise.
324 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
326 * expmed.c (expand_mult_highpart_adjust): Do not assume OP1
328 (expand_mult_highpart_optab): Call expand_mult_highpart_adjust
329 with NARROW_OP1 instead of OP1.
331 2004-04-24 Ulrich Weigand <uweigand@de.ibm.com>
333 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for __s390__
336 2004-03-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
338 * Makefile.in (LIBGCOV): Add _gcov_fork, _gcov_execl, _gcov_execlp,
339 _gcov_execle, _gcov_execv, _gcov_execvp, _gcov_execve.
340 * builtin-types.def (BT_PID, BT_PTR_CONST_STRING, BT_FN_PID,
341 BT_FN_INT_CONST_STRING_PTR_CONST_STRING,
342 BT_FN_INT_CONST_STRING_PTR_CONST_STRING_PTR_CONST_STRING): New.
343 * builtins.c (expand_builtin_fork_or_exec): New.
344 (expand_builtin): Call it.
345 * builtins.def (BUILT_IN_EXECL, BUILT_IN_EXECLP,BUILT_IN_EXECLE,
346 BUILT_IN_EXECV, BUILT_IN_EXECVP, BUILT_IN_EXECVE, BUILT_IN_FORK): New.
347 * c-common.c (PID_TYPE): New macro.
348 (c_common_nodes_and_builtins): Initialize pid_type_node.
349 * calls.c (special_function_p): Do not handle fork and exec.
350 (expand_call): Do not handle ECF_FORK_OR_EXEC.
351 * gcov-io.h (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
352 __gcov_execv, __gcov_execvp, __gcov_execve): Declare.
353 * libgcov.c (__gcov_fork, __gcov_execl, __gcov_execlp, __gcov_execle,
354 __gcov_execv, __gcov_execvp, __gcov_execve): New.
355 * tree.h (enum tree_index): Add TI_PID_TYPE.
356 (pid_type_node): New macro.
357 (ECF_FORK_OR_EXEC): Removed.
359 2004-04-23 Eric Botcazou <ebotcazou@libertysurf.fr>
361 PR optimization/13985
362 * cfgloopmanip.c (fix_loop_placements): New prototype.
363 Call fix_bb_placements on the preheader of loops that have
365 (remove_path): Adjust call to fix_loop_placements.
367 2004-04-23 Andrew Pinski <pinskia@physics.uc.edu>
369 * config/darwin7.h: New file.
370 * config.gcc (*-*-darwin*): Add darwin7.h if the
371 version is greater than 6.
372 * config/darwin.h (TARGET_C99_FUNCTIONS): Define.
373 (MATH_LIBRARY): Wrap in ifdefs.
375 2004-04-23 Daniel Jacobowitz <drow@mvista.com>
377 * config/arm/arm.c (arm_output_epilogue): Reverse the order of
378 loading iWMMXt registers with a frame pointer. Use post-increment
379 without a frame pointer.
380 (arm_expand_prologue): Reverse the order of saving iWMMXt registers.
382 2004-04-23 Paolo Bonzini <bonzini@gnu.org>
384 * doc/invoke.texi (Optimize Options): Refer to "unit-at-a-time
385 mode" rather than "-funit-at-a-time" since -O2 enables it
386 without requiring -f* options. Refer to -fprofile-generate and
387 -fprofile-use correctly. Move -funit-at-a-time among options
388 enabled by -O. Add information about unit-at-a-time caveats.
390 2004-04-22 Per Bothner <per@bothner.com>
392 * line-map.h (struct line_maps): New field highest_line.
393 (linemap_position_for_column): Make non-inline function.
394 (LINEMAP_POSITION_FOR_COLUMN): New macro.
395 * line-map.c (linemap_init): Clear highest_line field.
396 (linemap_add): Set highest_line field.
397 (linemap_line_start): Minor optimization - use highest_line field.
398 Reduce maximum column hint to 10000. Update highest_line field.
399 (linemap_position_for_column): Moved from line-map.h. Optimize a bit.
400 * cpphash.h (struct cpp_reader): Remove line field - instead use
401 line_table->highest_line.
402 (saved_line): Remove unused field.
403 (CPP_INCREMENT_FILE): Don't do linemap_lookup - just use newest map.
404 Use line_table's highest_line field instead of cpp_reader's line.
405 * cpplib.c (start_directive): Likewise use highest_line field.
406 (do_line, do_linemarker): Likewise just use newest map.
407 (_cpp_do_file_change): Don't need to set cpp_reader's line field.
408 * cpperror.c (cpp_error): Likewise use highest_line field.
409 * cppfiles.c (open_file_failed: Likewise.
410 (cpp_make_system_header): Likewise use newest map and highest_line.
411 * cppinit.c (cpp_create_reader): Don't initialize removed field.
412 * cpplex.c (_cpp_process_line_notes, _cpp_skip_block_comment,
413 skip_line_comment, skip_whitespace, _cpp_get_fresh_line,
414 _cpp_lex_direct): Likewise use highest_line.
415 (_cpp_lex_direct): Use new LINEMAP_POSITION_FOR_COLUMN macro.
416 * cppmacro.c (_cpp_builtin_macro_text): Likewise use highest_line,
418 * cpppch.c (cpp_read_state): Don't save+restore cpp_reader's line.
419 * cpptrad.c (_cpp_overlay_buffer): Don't save cpp_reader's line.
420 (copy_comment, _cpp_scan_out_logical_line): Likewise use highest_line.
422 2004-04-23 Alan Modra <amodra@bigpond.net.au>
425 * gcc.c (init_gcc_specs): Test USE_LD_AS_NEEDED, not HAVE_LD_AS_NEEDED.
426 * config/linux.h (USE_LD_AS_NEEDED): Define.
427 * gcc/config/alpha/linux.h (USE_LD_AS_NEEDED): Define.
428 * gcc/config/arm/linux-elf.h (USE_LD_AS_NEEDED): Define.
429 * gcc/config/rs6000/linux.h (USE_LD_AS_NEEDED): Define.
430 * gcc/config/rs6000/linux64.h (USE_LD_AS_NEEDED): Define.
431 * gcc/config/sh/linux.h (USE_LD_AS_NEEDED): Define.
432 * gcc/config/sparc/linux.h (USE_LD_AS_NEEDED): Define.
433 * gcc/config/sparc/linux64.h (USE_LD_AS_NEEDED): Define.
435 2004-04-22 Per Bothner <per@bothner.com>
437 * cppinit.c (cpp_read_main_file): Return NULL rather than false.
438 Fixes PR preprocessor/15067.
440 2004-04-23 Andreas Schwab <schwab@suse.de>
442 * config/ia64/ia64intrin.h: Add intermediate cast to void * to
443 avoid aliasing warning.
445 2004-04-22 Jan Hubicka <jh@suse.cz>
446 Mostafa Hagog <mustafa@il.ibm.com>
448 * cfgloopmanip.c (scale_bbs_frequencies): Use RDIV macro
449 * cfgloopanal.c (expected_loop_iterations): Change the return value
451 2004-04-22 Jakub Jelinek <jakub@redhat.com>
453 * cselib.h (struct elt_loc_list): Remove canon_loc field.
454 * cselib.c (new_elt_loc_list): Remove canon_loc initialization.
455 (cselib_invalidate_mem): Remove all canon_loc and canon_x
458 2004-04-22 Josef Zlomek <zlomekj@suse.cz>
461 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
463 * var-tracking.c (variable_part_different_p): Variable parts
464 differ when the most recent locations differ.
466 2004-04-22 Richard Sandiford <rsandifo@redhat.com>
468 * doc/invoke.texi: Remove the MIPS -membedded-pic option.
469 * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): Delete.
470 (embedded_pic_offset): Delete.
471 * config/mips/mips.h (MASK_EMBEDDED_PIC): Delete. Shuffle other
473 (TARGET_EMBEDDED_PIC): Delete.
474 (TARGET_SWITCHES): Remove -m{no-,}embedded-pic.
475 (ASM_SPEC): Remove -membedded-pic.
476 (ASM_OUTPUT_ADDR_DIFF_ELT): Remove embedded-pic handling.
477 (ASM_OUTPUT_CASE_LABEL): Likewise.
478 * config/mips/vxworks.h (ASM_SPEC): Remove -membedded-pic.
479 * config/mips/windiss.h (ASM_SPEC): Likewise.
480 * config/mips/mips.c (struct machine_function): Remove
481 embedded_pic_fnaddr_rtx.
482 (TARGET_ENCODE_SECTION_INFO): Remove override.
483 (embedded_pic_fnaddr_reg, embedded_pic_offset): Delete.
484 (override_options): Remove -membedded-pic handling.
485 (print_operand): Remove handling of '%S'.
486 (mips_select_section: Remove -membedded-pic handling.
487 (mips_encode_section_info): Delete.
488 (mips_output_conditional_branch): Remove mention of -membedded-pic.
489 * config/mips/mips.md (define_attr length, movsi, movdi, jump): Remove
490 -membedded-pic handling.
491 (casesi, casesi_internal, casesi_internal_di, get_fnaddr): Delete.
493 2004-04-22 Alan Modra <amodra@bigpond.net.au>
495 * var-tracking.c (frame_base_decl): Remove useless GTY.
497 2004-04-21 Aldy Hernandez <aldyh@redhat.com>
499 * config/rs6000/rs6000.c (rs6000_override_options): Error when
500 user wants altivec and e500 instructions.
502 2004-04-21 H.J. Lu <hongjiu.lu@intel.com>
505 * config/ia64/crtend.asm: Move pointer to __do_global_ctors_aux
506 in .init_array section to ...
507 * config/ia64/crtbegin.asm: Here.
509 * config/ia64/crtend.asm: Mark __do_global_ctors_aux global
510 and hidden if HAVE_INITFINI_ARRAY is defined.
512 2004-04-21 James E Wilson <wilson@specifixinc.com>
514 * config/mips/mips-protos.h (fp_register_operand, lo_operand): Declare.
515 * config/mips/mips.c (mips_multipass_dfa_lookahead): Declare.
516 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): New.
517 (fp_register_operand, lo_operand): New.
518 (mips_rtx_costs): Add TUNE_SB1 support.
519 (mips_issue_rate): Add comment. Add PROCESSOR_SB1 support.
520 (mips_use_dfa_pipeline_interface): Add PROCESSOR_SB1 support.
521 (mips_multipass_dfa_lookahead): New.
522 * config/mips/mips.h (MASK_FP_EXCEPTIONS, TARGET_FP_EXCEPTIONS,
524 (TARGET_SWITCHES): Add -mfp-exceptions support.
525 (TARGET_FP_EXCEPTIONS_DEFAULT): New.
526 (BRANCH_COST): Fix whitespace.
527 * config/mips/mips.md: Include sb1.md.
528 * config/mips/sb1.md: New file.
529 * doc/invoke.texi: Document -mfp-exceptions.
531 * Makefile.in (fixinc.sh): Don't set or export WARN_CFLAGS. Fix
533 * fixinc/Makefile.in (FL_LIST): Don't mention WARN_CFLAGS.
534 (fixincl.o-warn): Delete.
536 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
538 * config/rs6000/rs6000 (print_operand) ['z']:
539 Change ifdef of TARGET_MACHO to if TARGET_MACHO.
541 2004-04-21 Daniel Jacobowitz <drow@mvista.com>
543 * config.gcc: Support --with-arch=iwmmxt for ARM.
545 2004-04-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
547 * expmed.c (expand_mult_highpart_optab): Use narrower version of OP1
548 in two more places; remove unneeded force_reg
550 2004-04-21 Andrew Pinski <pinskia@physics.uc.edu>
552 * config/rs6000/rs6000.c (symbol_ref_operand): Remove hack
554 (print_operand): For TARGET_MACHO check to see if we need a stub
555 and output one if we need it.
558 * dwarf2out.c (rtl_for_decl_location): Check for NULL
561 2004-04-20 James E Wilson <wilson@specifixinc.com>
563 * config/ia64/ia64.md (call_value_nogp): Add constraints for op0.
564 (vall_value_gp): Likewise.
566 2004-04-20 DJ Delorie <dj@redhat.com>
568 * dwarf2out.c (rtl_for_decl_location): Adjust rtl for byte
569 variables stored in word registers, then in memory.
571 2004-04-20 Eric Christopher <echristo@redhat.com>
573 * cp/parser.c (cp_parser_declaration): Move translate
574 up before tokens are lexed.
576 2004-04-20 Uros Bizjak <uros@kss-loka.si>
578 * optabs.h (enum optab_index): Add new OTI_asin and OTI_acos.
579 (asin_optab, acos_optab): Define corresponding macros.
580 * optabs.c (init_optabs): Initialize asin_optab and acos_optab.
581 * genopinit.c (optabs): Implement asin_optab and acos_optab
582 using asin?f2 and acos?f2 patterns.
583 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_ASIN{,F,L}
584 using asin_optab, and BUILT_IN_ACOS{,F,L} using acos_optab.
585 (expand_builtin): Expand BUILT_IN_ASIN{,F,L} and BUILT_IN_ACOS{,F,L}
586 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
588 * config/i386/i386.md (asindf2, asinsf2, asinxf2, acosdf2,
589 acossf2, acosxf2): New expanders to implement asin, asinf, asinl,
590 acos, acosf and acosl built-ins as inline x87 intrinsics.
592 2004-04-20 Paul Brook <paul@codesourcery.com>
594 * config/arm/arm.c (arm_legitimate_address_p): Use rtx_equal_p.
596 2004-04-20 Paul Brook <paul@codesourcery.com>
598 * config/arm/arm.c (arm_expand_prologue): Fix size calculation.
600 2004-04-20 Paolo Bonzini <bonzini@gnu.org>
602 Revert part of 2004-04-17 change that moved -frename-registers
603 to -O1. -frename-registers is buggy.
605 * toplev.c (flag_rename_registers): Initialize to 0.
606 * doc/invoke.texi (Optimize options): Move -frename-registers
607 to "Not triggered by any -O level" section. Adjust commentary
610 2004-04-20 Anil Paranjpe <anilp1@kpitcummins.com>
612 * toplev.c (compile_file): Move targetm.asm_out.file_end call to end.
614 2004-04-20 Richard Sandiford <rsandifo@redhat.com>
616 * config/mips/mips.c (mips_legitimize_move): Generate special patterns
617 for mflo and mfhi instructions.
618 (mips_output_move): Remove mflo and mfhi handling.
619 * config/mips/mips.md (UNSPEC_MFHILO): New unspec.
620 (*mulsidi3_64bit): Update for new mfhi/mflo representation.
621 Likewise various define_peephole2s.
622 (*movdi_32bit, *movdi_64bit, *movsi_internal): Merge x<-J and x<-d
624 (*movdi_64bit, *movdi_64bit_mips16, *mov[shq]i_internal)
625 (*mov[shq]i_mips16): Remove mflo and mfhi alternatives.
626 (mfhilo_di, mfhilo_si): New patterns.
628 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
630 * function.c (assign_parms): Force
631 MEM_EXPR (DECL_INCOMING_RTL (parm)) == parm.
633 2004-04-20 Josef Zlomek <zlomekj@suse.cz>
635 * var-tracking.c (variable_part_different_p): Variable parts differ
636 when the most recent locations differ.
638 2004-04-19 James E Wilson <wilson@specifixinc.com>
640 * rtl.h (reg_set_last): Delete declaration.
641 * rtlanal.c (reg_set_last): Delete.
643 2004-04-19 Roger Sayle <roger@eyesopen.com>
645 * fold-const.c (fold_convert): Make function extern/public.
646 * tree.h (fold_convert): Prototype here.
647 * builtins.c (expand_builtin_strstr, expand_builtin_strchr,
648 expand_builtin_strrchr, expand_builtin_strpbrk,
649 expand_builtin_mempcpy, expand_builtin_bcopy,
650 expand_builtin_bzero, expand_builtin_memcmp,
651 expand_builtin_strcmp, expand_builtin_strncmp,
652 stabilize_va_list, expand_builtin_sprintf,
653 fold_trunc_transparent_mathfn, fold_builtin_logarithm,
654 fold_builtin_exponent, fold_builtin_mempcpy,
655 fold_builtin_strcpy, fold_builtin_strcmp, fold_builtin_strncmp,
656 fold_builtin_signbit, fold_builtin_isdigit, fold_builtin): Prefer
657 fold_convert to "convert" or "fold (build1 (NOP_EXPR, ...))".
659 2004-04-19 Aldy Hernandez <aldyh@redhat.com>
661 * config/rs6000/rs6000.md (UNSPEC_MV_CR_GT): New constant.
662 (move_from_CR_gt_bit): New.
663 (cceq_ior_compare): Name previously unnamed pattern. Disable for
665 (cceq_rev_compare): Name previously unnamed pattern. Allow for
668 * config/rs6000/spe.md (cmpsfeq_gpr): Rewrite as unspec.
674 (e500_cceq_ior_compare): New.
675 (e500_flip_gt_bit): New.
677 * config/rs6000/rs6000.c (ccr_bit): Remove E500 specific code.
678 (print_operand): Add 'c' and 'D'.
679 (rs6000_generate_compare): Rewrite to generate correct rtl.
680 (rs6000_emit_sCOND): Handle E500.
681 (output_cbranch): Adjust for changes in rs6000_generate_compare.
682 (output_e500_flip_gt_bit): New.
684 * config/rs6000/rs6000-protos.h (output_e500_flip_gt_bit):
687 2004-04-19 Eric Christopher <echristo@redhat.com>
689 * config/mips/mips.h (DWARF2_ADDR_SIZE): New.
691 2004-04-19 David Edelsohn <edelsohn@gnu.org>
693 * doc/install.texi (*-ibm-aix*): Add AIX 5.1 assembler and archiver
696 2004-04-19 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
698 * doc/install.texi (Specific, mips-sgi-irix5): Fix IRIX 5.3 IDO
701 2004-04-19 Daniel Jacobowitz <drow@mvista.com>
703 * stor-layout.c (layout_decl): Check DECL_PACKED before calling
704 ADJUST_FIELD_ALIGN. Check maximum_field_alignment after.
706 2004-04-19 Andrew PInski <pinskia@physics.uc.edu>
708 * builtins.c (fold_builtin_cabs): Remove fndecl parameter.
709 (fold_builtin): Update caller to match.
712 * bb-reorder.c (fix_up_fall_thru_edges): Init cond_jump.
715 * builtins.c (fold_builtin_cabs): Mark fndecl as unused.
717 2004-04-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
719 * varasm.c (compare_constant, case VIEW_CONVERT_EXPR): Add case.
721 * expmed.c (expand_mult_highpart_adjust): Make OP1 valid for MODE.
722 (expand_mult_highpart_optab): Likewise.
723 (expand_mult_highpart): Make OP1 valid for WIDER_MODE, not MODE.
725 2004-04-19 Paul Brook <paul@codesourcery.com>
727 * config/arm/arm.md (fixuns_truncsfsi2, fixuns_truncdfsi2,
728 floatunssisf2, floatunssidf2): New patterns.
730 2004-04-18 Mark Mitchell <mark@codesourcery.com>
733 * doc/invoke.texi (-fprofile-generate): Document requirement to
734 use -fprofile-generate when linking.
736 * doc/extend.texi (Strong Using): Warn users against using this
739 2004-04-18 Richard Sandiford <rsandifo@redhat.com>
741 * config/mips/mips-protos.h (m16_usym8_4, m16_usym5_4): Delete.
742 * config/mips/mips.h (mips_entry, mips_string_length): Delete.
743 (CONSTANT_POOL_BEFORE_FUNCTION, ASM_OUTPUT_POOL_EPILOGUE): Undefine.
744 * config/mips/mips.c (struct mips16_constant): Renamed from struct
745 constant. Propogate change throughout file.
746 (struct machine_function): Remove insns_len.
747 (mips_string_length, mips16_strings, string_constants): Delete.
748 (mips_classify_symbol): Return SYMBOL_CONSTANT_POOL for LABEL_REFs
749 when generating mips16 code. Remove special mips16 treatment of
751 (mips_symbolic_constant_p): Allow mips16 constant pool accesses
752 to have the form LABEL+CONSTANT.
753 (mips_symbolic_address_p): Fix comment.
754 (m16_usym8_4, m16_usym5_4): Delete.
755 (mips_output_function_epilogue): Remove mips16 string handling.
756 (mips_output_mi_thunk): Call mips16_lay_out_constants.
757 (mips_select_section, mips_encode_section_info): Remove mips16
759 (struct mips16_constant_pool): New.
760 (add_constant): Take a mips16_constant_pool structure. Keep pool
761 sorted into order of ascending mode size. Keep track of the highest
762 possible start address, taking padding and the masking of the base PC
764 (dump_constants_1): New function, split out from dump_constants.
765 Handle vector constants. Use gen_consttable_{int,float} rather than
766 separate functions for each mode.
767 (dump_constants): Simplify. Use GET_MODE_ALIGNMENT. Use gen_align
768 rather than separate functions for each alignment.
769 (mips_find_symbol): Delete.
770 (mips16_insn_length): New function, split out from
771 mips16_lay_out_constants.
772 (mips16_rewrite_pool_refs): New function.
773 (mips16_lay_out_constants): Rework. Remove string handling.
774 Always create an inline constant pool.
775 * config/mips/mips.md (UNSPEC_CONSTTABLE_INT, UNSPEC_CONSTTABLE_FLOAT)
776 (UNSPEC_ALIGN): New constants.
777 (UNSPEC_CONSTTABLE_[QHSD]I, UNSPEC_CONSTTABLE_[SD]F): Delete.
778 (UNSPEC_ALIGN_[248]): Delete.
779 (consttable_int, consttable_float, align): New patterns.
780 (consttable_[qhsd]i, consttable_[sd]f, align_[248]): Delete.
782 2004-04-17 Aldy Hernandez <aldyh@redhat.com>
784 * config/rs6000/altivec.h (vec_any_numeric): Correct typo in
787 2004-04-17 Alan Modra <amodra@bigpond.net.au>
790 * config/rs6000/rs6000.c (rs6000_stack_info): Make parm_size agree
791 with STARTING_FRAME_OFFSET.
793 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
795 * config/mips/mips.h (PREDICATE_CODES): Add macc_msac_operand.
796 * config/mips/mips.c (macc_msac_operand): New function.
797 * config/mips/mips.md (*msac): Move after *macc.
798 (*msac2): New. Generalize macc-related peepholes so that they apply
801 2004-04-17 Paolo Bonzini <bonzini@gnu.org>
803 * opts.c (decode_options): Do not enable flag_rename_registers
805 * toplev.c (flag_rename_registers): Initialize
806 flag_rename_registers and flag_web to
807 AUTODETECT_FLAG_VAR_TRACKING.
808 (default_debug_hooks): New global.
809 (process_options): Initialize default_debug_hooks. Warn if
810 -fvar-tracking specified but not supported by the current
811 debug format. Do not run var tracking at -O0 or if not
812 supported by the current debug format, even if
813 -fvar-tracking was given. If -fno-rename-registers
814 is not specified, always run register renaming if var
815 tracking is supported by the default debugging information
816 format for the target, and we are at -O1 or higher; similarly
817 for -fweb, but only at -O2 or higher.
818 * doc/invoke.texi (Optimize Options): Document this.
820 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
822 * configure.ac (gcc_cv_ld_as_needed): Use AC_CACHE_CHECK.
823 * configure: Regenerate.
825 2004-04-17 Richard Sandiford <rsandifo@redhat.com>
827 * gcc.c (used_arg): Check whether an option has been removed.
829 2004-04-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
831 * config.gcc (i[34567]86-*-solaris2*): Default to DWARF-2
832 debugging on Solaris 7 and up.
834 2004-04-16 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
836 * doc/install.texi (Specific, mips-sgi-irix5): Reflect working
838 Remove -save-temps workaround, handled automatically.
839 Require GNU binutils 2.15 for debugging.
840 Remove SGI make warnings since GNU make is now required.
841 (Specific, mips-sgi-irix6): Some markup fixes.
842 Describe MIPSpro C problems and workarounds.
843 Mention working O32 ABI support.
844 Recommend GNU as 2.15 for O32 with debugging.
845 Remove description of fixed structure pass/return bug.
847 2004-04-16 DJ Delorie <dj@redhat.com>
849 * sdbout.c (sdbout_one_type): Use TYPE_VALUES for enums, not
851 (sdbout_finish): Don't free deferred_global_decls; it's GC'd.
853 2004-04-16 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
855 * pa.md: Remove unnecessary declarations for asm_out_file.
857 * pa64-regs.h (DBX_REGISTER_NUMBER): Simplify and correct mapping of
858 SAR register. Fix comment.
859 (ADDITIONAL_REGISTER_NAMES): Correct register number of SAR register
862 * pa64-hpux.h (LIB_SPEC): Fix library specification used with GNU ld.
864 2004-04-16 Nick Clifton <nickc@redhat.com>
866 * config/arm/arm.c (arm_override_options): Revert previous patch.
867 * config/arm/t-xscale-elf: Disable iwmmxt multilibs until they can
870 2004-04-16 Kazuhiro Inaoka <inaoka dot kazuhiro at renesas dot com>
872 * config/m32r/m32r.h (BIG_ENDIAN_BIT): Deleted to fix endian
874 (TARGET_LITTLE_ENDIAN, TARGET_BIG_ENDIAN,
875 TARGET_DEFAULT): Changed. Ditto.
876 (LITTLE_ENDIAN_BIT, TARGET_CPU_DEFAULT,
877 TARGET_ENDIAN_DEFAULT): Added. Ditto.
878 * config/m32r/little.h (TARGET_LITTLE_ENDIAN): Deleted.
879 (TARGET_ENDIAN_DEFAULT): Added.
881 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
883 * builtins.def (BUILT_IN_ISDIGIT, BUILT_IN_ISXDIGIT): Mark with
884 ATTR_CONST_NOTHROW_LIST.
886 2004-04-15 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
889 * builtins.c (expand_builtin_signbit): Test BYTES_BIG_ENDIAN, not
892 2004-04-15 Pat Haugen <pthaugen@us.ibm.com>
894 * ra-debug.c (ra_print_rtx): Add break's to case legs.
896 2004-04-14 James E Wilson <wilson@specifixinc.com>
898 * Makefile.in (fixinc.sh): Set WARN_CFLAGS to empty string.
900 2004-04-14 Nathanael Nerode <neroden@gcc.gnu.org>
902 * libada-mk.in: New file.
903 * configure.ac: Create libada-mk from libada-mk.in.
904 * configure: Regenerate.
906 2004-04-14 Uros Bizjak <uros@kss-loka.si>
908 * optabs.h (enum optab_index): Add new OTI_logb and OTI_ilogb.
909 (logb_optab, ilogb_optab): Define corresponding macros.
910 * optabs.c (init_optabs): Initialize logb_optab and ilogb_optab.
911 * genopinit.c (optabs): Implement logb_optab and ilogb_optab
912 using logb?f2 and ilogb?i2 patterns.
913 * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_LOGB{,F,L}
914 using logb_optab, and BUILT_IN_ILOGB{,F,L} using ilogb_optab.
915 (expand_builtin): Expand BUILT_IN_LOGB{,F,L} and BUILT_IN_ILOGB{,F,L}
916 using expand_builtin_mathfn if flag_unsafe_math_optimizations is set.
918 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_XTRACT_FRACT
919 and UNSPEC_XTRACT_EXP.
921 * config/i386/i386.md (*fxtractdf3, *fxtractsf3, *fxtractxf3): New
922 patterns to implement fxtract x87 instruction.
923 (logbdf2, logbsf2, logbxf2, ilogbsi2): New expanders to implement
924 logb, logbf, logbl, ilogb, ilogbf and ilogbl built-ins as inline x87
926 (UNSPEC_XTRACT_FRACT, UNSPEC_XTRACT_EXP): New unspecs to represent
929 2004-04-14 Eric Christopher <echristo@redhat.com>
931 * config/mips/t-elf: Enable multilibs by default.
933 2004-04-14 Andreas Tobler <a.tobler@schweiz.ch>
935 * bb-reorder.c (fix_crossing_conditional_branches): Adjust the
936 previous fix to check HAVE_return at runtime too.
938 2004-04-14 Nick Clifton <nickc@redhat.com>
940 * config/arm/arm.c (arm_override_options): If the user has not
941 specified an ABI, then default to AAPCS for the iWMMXt processor.
942 * config/arm/t-xscale-elf: Remove redundant multilib specifications.
943 * config/arm/t-xscale-coff: Likewise.
945 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
947 * builtins.c (fold_builtin_isdigit): New.
948 (fold_builtin): Handle BUILT_IN_ISDIGIT.
949 * defaults.h: Add TARGET_DIGIT0 and sort.
950 * doc/tm.texi: Add TARGET_BS and TARGET_DIGIT0.
952 2004-04-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
954 * builtins.c (fold_builtin_cabs, fold_builtin): Use
955 `mathfn_built_in' to determine the new builtin.
956 * fold-const.c (fold): Likewise.
958 2004-04-14 Richard Sandiford <rsandifo@redhat.com>
960 * doc/invoke.texi: Rename MIPS's -mfix-vr4122-bugs to -mfix-vr4120.
961 * config/mips/mips.h (MASK_FIX_VR4120): Renamed from MASK_FIX_VR4122.
962 (TARGET_FIX_VR4120): Likewise TARGET_FIX_VR4122.
963 (TARGET_SWITCHES): Replace -mfix-vr4122-bugs with -mfix-vr4120.
964 (ASM_SPEC): Update accordingly.
965 * config/mips/mips.c: Update after above renaming.
966 * config/mips/mips.md, config/mips/t-vr, config/mips/vr.h: Likewise.
967 * config/mips/vr4120-div.S: Renamed from vr4122-div.S.
969 2004-04-13 James E Wilson <wilson@specifixinc.com>
971 * c-opt.c (c_common_post_options): If this_input_filename is NULL,
972 increment errorcount and return false instead of true.
974 2004-04-13 Uros Bizjak <uros@kss-loka.si>:
976 * optabs.c (expand_twoval_unop): Reorder function arguments.
977 * builtins.c (expand_builtin_mathfn_3): Update calls to
980 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_TAN_ONE
981 and UNSPEC_TAN_TAN. Add missing comment.
983 * config/i386/i386.md (*tandf3_1, *tansf3_1, *tanxf3_1): New
984 patterns to implement fptan x87 instruction.
985 (tandf2, tansf2, tanxf2): New expanders to implement tan, tanf
986 and tanl built-ins as inline x87 intrinsics. Define corresponding
987 peephole2 optimizers for 'fptan; fstp %st(0); fld1' sequence.
988 (UNSPEC_TAN_ONE, UNSPEC_TAN_TAN): New unspecs to represent
991 2004-03-13 Richard Henderson <rth@redhat.com>
993 * bb-reorder.c (fix_crossing_unconditional_branches): Use Pmode
996 * defaults.h (HOT_TEXT_SECTION_NAME): Add leading dot.
997 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Likewise.
998 * doc/invoke.texi: Update to match.
1000 * varasm.c (unlikely_text_section): Use assemble_align instead of
1001 ASM_OUTPUT_ALIGN. Use it in the correct place with an approximately
1002 correct alignment argument.
1004 2004-04-13 Ulrich Weigand <uweigand@de.ibm.com>
1006 * reload1.c (emit_reload_insns): Set reg_has_output_reload to one
1007 after setting reg_last_reload_reg for optional output reloads.
1009 2004-04-12 Fariborz Jahanian <fjahanian@apple.com>
1011 * config/rs6000/altivec.h (vec_mergeh, vec_mergel):
1012 Definition of these two macros are corrected by adding
1013 matchine right paren.
1015 2004-04-12 Jonathan Larmour <jifl@eCosCentric.com>
1017 * fix-header.c: kill(), putenv() and tzset() are POSIX not ANSI.
1019 2004-04-12 Roger Sayle <roger@eyesopen.com>
1021 * config/i386/i386.c (output_387_reg_move): New function.
1022 * config/i386/i386-protos.h (output_387_reg_move): Prototype here.
1023 * config/i386/i386.md (*movsf_1, *movsf1_nointerunit,
1024 *movdf_nointeger, *movdf_integer, *movxf_nointeger, *movxf_integer,
1025 *extendsfdf2_1, *extendsfxf2_1, *extenddfxf2_1, truncdfsf2_noop,
1026 truncxfsf2_noop, truncxfdf2_noop): Call output_387_reg_move.
1028 2004-04-12 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1030 * c-decl.c (finish_decl): Make a decl_stmt for a variable-sized
1032 * c-semantics.c (genrtl_decl_stmt): Handle TYPE_DECL.
1033 * stmt.c (expand_decl): Remove redundant expansion of TYPE_DOMAIN.
1034 * stor-layout.c (variable_size): Don't check for MINUS_EXPR.
1035 Use skip_simple_arithmetic to find SAVE_EXPR.
1036 (force_type_save_exprs, force_type_save_exprs_1): New functions.
1037 * tree-inline.c (remap_type, case POINTER_TYPE, case REFERENCE_TYPE):
1038 Properly chain multiple pointers.
1039 (copy_tree_r): Copy a TYPE_DECL.
1040 * tree.c (variably_modified_type_p): Add some missing tests and
1041 make some other minor changes.
1042 * tree.h (force_type_save_exprs): New declaration.
1044 2004-04-12 Roger Sayle <roger@eyesopen.com>
1046 * simplify-rtx.c (simplify_binary_operation) <UDIV, DIV, UMOD, MOD>:
1047 Remove fall throughs. Convert 0/x and 0%x into x&0 when x has
1048 side-effects. Don't convert x/1.0 into x if we honor signaling NaNs.
1049 Convert x/-1.0 into -x if we don't honor signaling NaNs. Convert
1050 x/-1 into -x. Optimize x%1 into x&0 if x has side-effects. Optimize
1051 x%-1 into 0 (or x&0 if x has side-effects).
1053 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1055 * config/rs6000/rs6000.md: Document why a pattern is not
1058 * config/rs6000/rs6000.c (rs6000_emit_cmove): Disable comparisons
1059 of floats on the E500.
1060 (branch_positive_comparison_operator): Do not allow NE even on the
1063 2004-04-11 Aldy Hernandez <aldyh@redhat.com>
1065 * config/rs6000/rs6000.c (rs6000_assemble_integer): Change
1066 in_text_unlikely_section to in_unlikely_text_section.
1068 2004-04-11 Roger Sayle <roger@eyesopen.com>
1070 * fold-const.c (fold_binary_op_with_conditional_arg): Tweak
1071 calling convention to allow a NULL_TREE to be returned. Factor
1072 sanity checks from callers, return NULL_TREE when appropriate.
1073 (fold): Handle COMPOUND_EXPR operands of binary expressions
1074 before COND_EXPR operands. Use reorder_operands_p(a,b) to check
1075 whether a op (b,c) can be rewritten as (b, a op c). Simplify
1076 calls to fold_binary_op_with_conditional_arg.
1078 2004-04-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1080 * config/mips/iris5.h (current_section_flags): Add
1081 in_unlikely_executed_text and default case.
1083 2004-04-11 Andreas Tobler <a.tobler@schweiz.ch>
1085 * bb-reorder.c (fix_crossing_conditional_branches): Fix bootstrap
1086 failure on solaris. Place ifdef HAVE_return around gen_ret call.
1087 * cfgrtl.c (force_nonfallthru_and_redirect): Remove ifdef
1088 HAVE_return and place it around the place where it is needed.
1090 2004-04-11 Andrew Pinski <pinskia@physics.uc.edu>
1092 * varasm.c (text_section): Use TEXT_SECTION_ASM_OP and
1093 ASM_OUTPUT_ALIGN instead of SECTION_FORMAT_STRING
1094 and NORMAL_TEXT_SECTION_NAME.
1095 (unlikely_text_section): Check targetm.have_named_sections
1096 instead of TARGET_ASM_NAMED_SECTION and use TEXT_SECTION_ASM_OP
1097 instead of SECTION_FORMAT_STRING.
1098 * config/mips/iris5.h (current_section_name): Add
1099 in_unlikely_executed_text case and move the abort into the switch.
1100 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME): Remove.
1101 (NORMAL_TEXT_SECTION_NAME): Remove.
1102 (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Remove.
1103 (SECTION_FORMAT_STRING): Remove.
1104 * defaults.h (SECTION_FORMAT_STRING): Remove.
1105 * tm.texi (NORMAL_TEXT_SECTION_NAME): Remove.
1106 (SECTION_FORMAT_STRING): Remove.
1108 2004-04-10 Joseph S. Myers <jsm@polyomino.org.uk>
1110 * c-typeck.c (common_type): Prefer long long to long when same
1113 2004-04-09 Zack Weinberg <zack@codesourcery.com>
1116 * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Look only at
1118 * config/ia64/ia64.c (ia64_hpux_file_end): Check
1119 TREE_SYMBOL_REFERENCED on DECL_ASSEMBLER_NAME, not DECL_NAME.
1121 2004-04-09 Roger Sayle <roger@eyesopen.com>
1123 * simplify-rtx.c (mode_signbit_p): New function to check whether
1124 an RTX is an immediate constant that represents the most significant
1125 bit of a given machine mode.
1126 (simplify_unary_operation) <NOT>: Optimize ~(X+C) as X ^ ~C, where
1128 (simplify_binary_operation) <PLUS>: Optimize (X^C1) + C2 as X^(C1^C2)
1129 when C2 is the sign bit.
1130 (simplify_binary_operation) <XOR>: Canonicalize X^C as X+C when C
1131 is the sign bit. Optimize (X+C1) ^ C2 as X^(C1^C2) when C1 is the
1134 2004-04-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1136 * builtins.c (mathfn_built_in): Check TYPE_MAIN_VARIANT, not
1139 2004-04-09 Andrew Pinski <pinskia@physics.uc.edu>
1141 * c-common.c (handle_noreturn_attribute): Use TYPE_READONLY instead
1142 of TREE_READONLY for types.
1144 2004-04-09 Caroline Tice <ctice@apple.com>
1146 * basic-block.h (struct edge_def): Add new field, crossing_edge.
1147 (struct basic_block_def): Add new field, partition.
1148 (UNPARTITIONED, HOT_PARTITION, COLD_PARTITION): New constant macro
1150 (partition_hot_cold_basic_blocks): Add extern function
1152 * bb-reorder.c (function.h, obstack.h, expr.h, regs.h): Add four new
1154 (N_ROUNDS): Increase the maximum number of rounds by 1.
1155 (branch_threshold): Add array value for new round.
1156 (exec_threshold): Add array value for new round.
1157 (push_to_next_round_p): New function.
1158 (add_unlikely_executed_notes): New function.
1159 (find_rarely_executed_basic_blocks_and_crossing_edges): New function.
1160 (mark_bb_for_unlikely_executed_section): New function.
1161 (add_labels_and_missing_jumps): New function.
1162 (add_reg_crossing_jump_notes): New function.
1163 (fix_up_fall_thru_edges): New function.
1164 (find_jump_block): New function.
1165 (fix_crossing_conditional_branches): New function.
1166 (fix_crossing_unconditional_branches): New function.
1167 (fix_edges_for_rarely_executed_code): New function.
1168 (partition_hot_cold_basic_blocks): New function.
1169 (find_traces): Add an extra round for partitioning hot/cold
1171 (find_traces_1_round): Add a parameter. Modify to push all cold blocks,
1172 and only cold blocks, into the last (extra) round of collecting traces.
1173 (better_edge_p): Add a parameter. Modify to favor non-crossing edges
1174 over crossing edges.
1175 (bb_to_key): Add code to correctly identify cold blocks when
1177 (connect_traces): Modify to connect all the non-cold traces first, then
1178 go back and connect up all the cold traces.
1179 (reorder_basic_blocks): Add call to add_unlikely_executed_notes.
1180 * cfg.c (entry_exit_blocks): Add initialization for partition field in
1181 entry and exit blocks.
1182 * cfgbuild.c (make_edges): Update current_function_has_computed_jump
1183 if we are doing hot/cold partitioning.
1184 * cfgcleanup.c (cfglayout.h): Add new include statement.
1185 (try_simplify_condjump): Modify to not attempt on blocks with jumps
1186 that cross section boundaries.
1187 (try_forward_edges): Likewise.
1188 (merge_blocks_move_predecessor_nojumps): Likewise.
1189 (merge_blocks_move_successor_nojumps): Likewise.
1190 (merge_blocks_move): Likewise.
1191 (try_crossjump_to_edge): Modify to not attempt after we have done
1192 the block partitioning.
1193 (try_crossjump_bb): Modify to not attempt on blocks with jumps that
1194 cross section boundaries.
1195 (try_optimize_cfg): Likewise.
1196 * cfghooks.c (tidy_fallthru_edges): Modify to not remove indirect
1197 jumps that cross section boundaries.
1198 * cfglayout.c (flags.h): Add new include statement.
1199 (update_unlikely_executed_notes): New function.
1200 (fixup_reorder_chain): Add code so when a new jumping basic block is
1201 added, it's UNLIKELY_EXECUTED_CODE and REG_CROSSING_JUMP notes are
1202 updated appropriately.
1203 (duplicate_insn_chain): Add code to duplicate the new NOTE insn
1204 introduced by this optimization.
1205 * cfglayout.h (scan_ahead_for_unlikely_executed_note): Add new
1206 extern function declaration.
1207 * cfgrtl.c (can_delete_note_p): Add NOTE_INSN_UNLIKELY_EXECUTED_CODE to
1208 list of notes that can be deleted.
1209 (create_basic_block_structure): Add initialization for partition field.
1210 (rtl_can_merge_blocks): Modify to test blocks for jumps that cross
1212 (try_redirect_by_replacing_jump): Modify to not attempt on jumps that
1213 cross section boundaries.
1214 (commit_one_edge_insertion): Add code so newly created basic block
1215 ends up in correct (hot or cold) section. Modify to disallow
1216 insertions before NOTE_INSN_UNLIKELY_EXECUTED_CODE notes.
1217 (rtl_verify_flow_info_1): Add code to verify that no fall_thru edge
1218 crosses section boundaries.
1219 (cfg_layout_can_merge_blocks_p): Modify to test blocks for jumps that
1220 cross section boundaries.
1221 (force_nonfallthru_and_redirect): Modify to make sure new basic block
1222 ends up in correct section, with correct notes attached.
1223 * common.opt (freorder-blocks-and-partition): Add new flag for this
1225 * dbxout.c (dbx_function_end): Add code to make sure scope labels at
1226 the end of functions are written into the correct (hot or cold)
1228 (dbx_source_file): Add code so writing debug file information
1229 doesn't incorrectly change sections.
1230 * defaults.h (NORMAL_TEXT_SECTION_NAME): New constant macro, for use
1231 in partitioning hot/cold basic blocks into separate sections.
1232 (SECTION_FORMAT_STRING): New constant macro, for linux/i386 hot/cold
1233 section partitioning.
1234 (HAS_LONG_COND_BRANCH): New constant macro, indicating whether or not
1235 conditional branches can span all of memory.
1236 (HAS_LONG_UNCOND_BRANCH): New constant macro, indicationg whether or not
1237 unconditional branches can span all of memory.
1238 * final.c (scan_ahead_for_unlikely_executed_note): New function.
1239 (final_scan_insn): Add code to check for NOTE instruction indicating
1240 whether basic block belongs in hot or cold section, and to make sure
1241 the current basic block is being written to the appropriate section.
1242 Also added code to ensure that jump table basic blocks end up in the
1244 * flags.h (flag_reorder_blocks_and_partition): New flag.
1245 * ifcvt.c (find_if_case_1): Modify to not attempt if conversion if
1246 one of the branches has a jump that crosses between sections.
1247 (find_if_case_2): Likewise.
1248 (ifcvt): Modify to not attempt to mark loop exit edges after
1249 hot/cold partitioning has occurred.
1250 * opts.c (decode_options): Code to handle new flag,
1251 flag_reorder_blocks_and_partition; also to turn it off if
1252 flag_exceptions is on.
1253 (common_handle_option): Code to handle new flag,
1254 flag_reorder_blocks_and_partition.
1255 * output.h (unlikely_text_section): New extern function declaration.
1256 (in_unlikely_text_section): New extern function declaration.
1257 * passes.c (rest_of_handle_stack_regs): Add
1258 flag_reorder_blocks_and_partition as an 'or' condition for calling
1259 reorder_basic_blocks.
1260 (rest_of_handle_reorder_blocks): Add flag_reorder_blocks_and_partition
1261 as an 'or' condition for calling reorder_basic_blocks.
1262 (rest_of_compilation): Add call to partition_hot_cold_basic_blocks.
1263 * print-rtl.c (print_rtx): Add code for handling new note,
1264 NOTE_INSN_UNLIKELY_EXECUTED_CODE
1265 * rtl.c (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note insn (see below).
1266 (REG_CROSSING_JUMP): New kind of reg_note, to mark jumps that
1267 cross between section boundaries.
1268 * rtl.h (NOTE_INSN_UNLIKELY_EXECUTED_CODE): New note instruction,
1269 indicating the basic block containing it belongs in the cold section.
1270 (REG_CROSSING_JUMP): New type of reg_note, to mark jumps that cross
1271 between hot and cold sections.
1272 * toplev.c (flag_reorder_blocks_and_partition): Add code to
1273 initialize this flag, and to tie it to the command-line option
1274 freorder-blocks-and-partition.
1275 * varasm.c (cfglayout.h): Add new include statement.
1276 (unlikely_section_label_printed): New global variable, used for
1277 determining when to output section name labels for cold sections.
1278 (in_section): Add in_unlikely_executed_text to enum data structure.
1279 (text_section): Modify code to use SECTION_FORMAT_STRING and
1280 NORMAL_TEXT_SECTION_NAME macros.
1281 (unlikely_text_section): New function.
1282 (in_unlikely_text_section): New function.
1283 (function_section): Add code to make sure beginning of function is
1284 written into correct section (hot or cold).
1285 (assemble_start_function): Add code to make sure stuff is written to
1286 the correct section.
1287 (assemble_zeros): Add in_unlikely_text_section as an 'or' condition
1288 to an if statement that was checking 'in_text_section'.
1289 (assemble_variable): Add 'in_unlikely_text_section' as an 'or'
1290 condition to an if statement that was checking 'in_text_section'.
1291 (default_section_type_flags_1): Add check: if in cold section
1292 flags = SECTION_CODE.
1293 * config/darwin.c (darwin_asm_named_section): Modify to use
1294 SECTION_FORMAT_STRING if we are partitioning hot/cold blocks.
1295 * config/i386/i386.h (HAS_LONG_COND_BRANCH): Defined this macro
1296 specifically for the i386.
1297 (HAS_LONG_UNCOND_BRANCH): Defined this macro specifically for the i386.
1298 * config/rs6000/darwin.h (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Change
1299 text string to something more informative.
1300 (NORMAL_TEXT_SECTION_NAME): Add new definition.
1301 (SECTION_FORMAT_STRING): Add new definition.
1302 * config/rs6000/rs6000.c (rs6000_assemble_integer): Add
1303 '!in_unlikely_text_section' as an 'and' condition to an if statement
1304 that was already checking '!in_text_section'.
1305 * config/rs6000/sysv4.h (HOT_TEXT_SECTION_NAME,NORMAL_TEXT_SECTION_NAME,
1306 UNLIKELY_EXECUTED_TEXT_SECTION_NAME,SECTION_FORMAT_STRING): Make
1307 sure these are properly defined for linux on ppc.
1308 * doc/invoke.texi (freorder-blocks-and-partition): Add documentation
1310 * doc/rtl.texi (REG_CROSSING_JUMP): Add documentation for new
1312 * doc/tm.texi (NORMAL_TEXT_SECTION_NAME, SECTION_FORMAT_STRING,
1313 HAS_LONG_COND_BRANCH, HAS_LONG_UNCOND_BRANCH): Add documentation for
1316 2004-04-08 Roger Sayle <roger@eyesopen.com>
1318 * function.c (gen_mem_addressof): When changing the RTX from a REG
1319 to a MEM, clear MEM_VOLATILE_P which was formerly REG_USERVAR_P.
1321 2004-04-08 Roger Sayle <roger@eyesopen.com>
1324 * config/i386/i386.md (truncdfsf2_noop, truncxfsf2_noop,
1325 truncxfdf2_noop): Provide dummy "fmov" implementations.
1327 2004-04-08 Ian Lance Taylor <ian@wasabisystems.com>
1329 * gcc.c (default_compilers): Add missing initializers.
1331 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
1332 Return 1 if file was successfully mapped.
1334 2004-04-08 Geoffrey Keating <geoffk@apple.com>
1339 * doc/invoke.texi (Precompiled Headers): Suggest -o
1340 to put an output file in a particular place. Be more detailed
1341 about which options affect PCH validity and which options
1343 * c-pch.c (pch_matching): New.
1345 (struct c_pch_validity): New field 'match'.
1346 (pch_init): Handle pch_matching.
1347 (c_common_valid_pch): Check pch_matching.
1349 * explow.c: Fix typo defining default of PROMOTE_FUNCTION_MODE.
1351 2004-04-08 Mark Mitchell <mark@codesourcery.com>
1353 * doc/invoke.texi (Precompiled Headers): Warn about known
1356 2004-04-08 Danny Smith <dannysmith@users.sourceforge.net>
1359 * defaults.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): New macro. Default
1360 to 1 if ASM_OUTPUT_DEF is defined.
1361 * doc/tm.texi (TARGET_USE_LOCAL_THUNK_ALIAS_P): Document.
1362 * config/i386/cygming.h (TARGET_USE_LOCAL_THUNK_ALIAS_P): Define.
1363 Set to non-zero iff not a one_only decl.
1365 2004-04-08 Paul Brook <paul@codesourcery.com>
1367 * arm.h (CLASS_LIKELY_SPILLED_P): Define.
1369 2004-04-08 Paul Brook <paul@codesourcery.com>
1371 * explow.c (promote_mode): Use PROMOTE_FUNCTION_MODE instead of
1372 PROMOTE_FOR_CALL_ONLY.
1373 * config/arm/arm-protos.h (arm_function_value): Declare.
1374 * config/arm/arm.h (TARGET_PROMOTE_FUNCTION_ARGS): Define.
1375 (TARGET_PROMOTE_PROTOTYPES): Return false.
1376 (arm_function_value): New function.
1377 * config/arm/arm.h (PROMOTE_FUNCTION_MODE): Define.
1378 (FUNCTION_VALUE): Call arm_function_value.
1379 * config/cris/cris.h (PROMOTE_MODE): Rename ...
1380 (PROMOTE_FUNCTION_MODE): ... to this.
1381 (PROMOTE_FOR_CALL_ONLY): Remove.
1382 * config/mmix/mmix.h: Likewise.
1383 * config/s390/s390.h: Likewise.
1384 * config/sparc/sparc.h: Likewise.
1385 * config/sparc/sparc.c: Update comments about PROMOTE_MODE.
1386 * doc/tm.texi (PROMOTE_FUNCTION_MODE): Document.
1387 (TARGET_PROMOTE_FUNCTION_MODE, TARGET_PROMOTE_FUNCTION_RETURN): Update.
1388 (PROMOTE_FOR_CALL_ONLY): Remove.
1390 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1393 * ada/5rosinte.adb: Remove fake mprotect() body.
1394 * ada/5rosinte.ads: Add SA_SIGINFO.
1395 * ada/5rtpopsp.adb: Rewrite to use new interface.
1396 * ada/init.c: Reorder so the simple single OS conditional __rtems__
1397 is tested before more complex ones which mix UNIX and embedded
1398 systems in the conditional.
1400 2004-04-08 Joel Sherrill <joel@oarcorp.com>
1403 * ada/osint.adb (Find_Program_Name): Rework to properly handle
1404 filenames which end in .exe or have versioning suffixes like VMS.
1406 2004-04-08 Andrew Pinski <pinskia@physics.uc.edu>
1409 * config/darwin.c (darwin_encode_section_info): When the decl has
1410 a DECL_INITIAL, it is only defined also when it is not a common.
1412 2004-04-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1414 * builtins.c (fold_builtin_isascii, fold_builtin_toascii): New.
1415 (fold_builtin): Handle BUILT_IN_ISASCII and BUILT_IN_TOASCII.
1417 2004-04-07 H.J. Lu <hongjiu.lu@intel.com>
1419 * config/ia64/ia64.c (ia64_encode_section_info): Don't prod
1420 global register variables.
1422 2004-04-07 Joseph S. Myers <jsm@polyomino.org.uk>
1424 * fixinc/inclhack.def (rpc_xdr_lvalue_cast_a,
1425 rpc_xdr_lvalue_cast_b): New fixes.
1426 * fixinc/fixincl.x: Regenerate.
1427 * fixinc/tests/base/rpc/xdr.h: Add new tests.
1429 2004-04-07 David Edelsohn <edelsohn@gnu.org>
1431 * config/rs6000/rs6000.c (processor_target_table): Add MASK_MFCRF
1432 to power4 and power5 entries.
1434 2004-04-06 Geoffrey Keating <geoffk@apple.com>
1436 * c-common.h (pending_lang_change): Mark for PCH.
1438 2004-04-07 Caroline Tice <ctice@apple.com>
1440 * gcc.c (main): Move 'break' in main loops (on an error)
1441 to wait until error processing has occurred.
1443 2004-04-06 Nathanael Nerode <neroden@gcc.gnu.org>
1445 * config.gcc: Stop changing enable_threads midstream.
1446 Replace uses of enable_threads_flag with enable_threads.
1447 * configure.ac: Replace uses of enable_threads_flag with
1448 enable_threads. Improve autoconf quotation in one place.
1449 * configure: Regenerate.
1451 2004-04-06 Uros Bizjak <uros@kss-loka.si>
1453 * builtins.c: Implement support for sincos function.
1454 (expand_builtin_mathfn): Remove BUILT_IN_SIN{,F,L} and
1456 (expand_builtin_mathfn_3): New function.
1457 (expand_builtin): Expand BUILT_IN_SIN{,F,L} and
1458 BUILT_IN_COS{,F,L} using expand_builtin_mathfn_3 if
1459 flag_unsafe_math_optimization is set.
1461 * optabs.h (enum optab_index): Add new OTI_sincos.
1462 (sincos_optab): Define corresponding macro.
1464 * optabs.c (init_optabs): Initialize sincos_optab.
1465 (expand_twoval_unop): New function.
1467 * genopinit.c (optabs): Implement sincos_optab using sincos?f3
1470 * reg-stack.c (subst_stack_regs_pat): Handle UNSPEC_SINCOS_COS
1471 and UNSPEC_SINCOS_SIN.
1473 * config/i386/i386.md (sincosdf3, sincossf3, *sincosextendsfdf3,
1474 sincosxf3): New patterns to implement sincos, sincosf and sincosl
1475 built-ins as inline x87 intrinsics. Define splits for
1476 sindf2, sinsf2, *sinextendsfdf2, sinxf2, cosdf2,
1477 cossf2, *cosextendsfdf2 and cosxf2 patterns from corresponding
1479 (sindf2, sinsf2, sinxf2): Rename to *sindf2, *sinsf2, *sinxf2.
1480 (cosdf2, cossf2, cosxf2): Rename to *cosdf2, *cossf2, *cosxf2.
1482 (UNSPEC_SINCOS_SIN, UNSPEC_SINCOS_COS): New unspecs to represent
1485 2004-04-06 Devang Patel <dpatel@apple.com>
1488 * config/darwin.h (LINK_COMMAND_SPEC): Use c++filt instead of c++filt3.
1490 2004-04-06 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1492 * doc/install.texi: Update HP-UX 11 installation procedure.
1494 2004-04-06 Paul Brook <paul@codesourcery.com>
1496 * doc/sourcebuild.texi: Remove obsolete contraint on testcases.
1498 2004-04-05 Kaz Kojima <kkojima@gcc.gnu.org>
1500 * config/sh/sh.c (prepare_move_operands): Use emit_call_insn
1501 when the TLS address is generated by a function call.
1502 * config/sh/sh.md (tls_global_dynamic): Use a call expression.
1503 (tls_local_dynamic): Likewise.
1505 2004-04-05 Andrew Pinski <pinskia@physics.uc.edu>
1507 * tree.c (reconstruct_complex_type): Use TYPE_READONLY
1510 2004-04-05 Caroline Tice <ctice@apple.com>
1512 * gcc.c (combine_flag): New global variable, for new driver option.
1513 (struct compiler): Add two new fields, to be used when
1514 combining multiple input files in a single pass (IMA).
1515 (default_compilers): Add values for the new fields to all
1516 compiler entries. Modify the "@c" compiler entry for doing IMA
1517 properly with "-save-temps" and the "combine" flag.
1518 (option_map): Add new driver option, "--combine", to tell driver
1519 to pass multiple input files to compiler at one time.
1520 (have_o_argbuf_index): New global variable.
1521 (store_arg): Modify to assign value to have_o_argbuf_index.
1522 (struct infile): Add three new fields, to help with IMA.
1523 (display_help): Add help for new "combine" option.
1524 (process_command): Remove local variable have_o; add code to check
1525 for new "combine" option; remove assignment to combine_inputs.
1526 (do_spec_1): Modify to deal with IMA better.
1527 (main): Make variable 'lang_n_infiles' local to entire function
1528 rather than to a single block. Use flag combine_flag to
1529 determine whether to do IMA or not; Modify loop initializing
1530 infiles to deal properly with linker files.
1531 Add code for doing preprocessing in presence of
1532 IMA with "-save-temps" flag. Modify "main" loop to handle
1533 multiple input files, in multiple languages, with or without
1534 preprocessing, gracefully.
1535 * toplev.c (set_src_pwd): Modify to not complain if attempting to
1536 re-set it to same directory it's previously been set to (avoid
1537 irritating, meaningless warning messages when doing IMA with
1539 * doc/invoke.texi: Add "-combine" to list of Overall Options;
1540 remove documentation about IMA that is no longer accurate; Add
1541 documentation explaining what "-combine" does.
1542 * ada/lang-specs.h: Add initialization values for new fields in
1544 * cp/lang-specs.h: Likewise.
1545 * f/lang-specs.h: Likewise.
1546 * java/lang-specs.h: Likewise.
1547 * objc/lang-specs.h: Likewise.
1548 * treelang/lang-specs.h: Likewise.
1550 2004-04-05 David Edelsohn
1552 * config/rs6000/rs6000.c (VTABLE_NAME_P): Add _ZTI to special
1555 2004-04-05 Jakub Jelinek <jakub@redhat.com>
1556 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1558 PR optimization/13424 (hppa), bootstrap/14462, c/14828
1559 * pa.md: Use replace_equiv_address to retain the attributes of the
1560 memory operands used in the split and peephole2 patterns for optimizing
1561 the pre-reload movstrsi, movstrdi, clrstrsi and clrstrdi patterns.
1563 2004-04-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1565 * c-decl.c (build_compound_literal): Use TYPE_READONLY.
1566 * emit-rtl.c (set_mem_attributes_minus_bitpos): Likewise.
1567 * objc/objc-act.c (adorn_decl, gen_declspecs): Likewise.
1568 * c-typeck.c (decl_constant_value): Don't access DECL_INITIAL of a
1570 * calls.c (flags_from_decl_or_type): Use TYPE_READONLY and do so only
1572 * print-tree.c (print_node): Properly handle side-effects, readonly,
1574 * tree.c (build1_stat, build_expr_wfl): Only look at TREE_SIDE_EFFECTS
1575 and TREE_CONSTANT if not a type.
1576 * tree.h (IS_NON_TYPE_CODE_CLASS): New macro.
1577 (IS_EXPR_CODE_CLASS): Write 'E', not 'e'.
1578 (NON_TYPE_CHECK): New macro.
1579 (TREE_SIDE_EFFECT, TREE_READONLY, TREE_CONSTANT: Add check.
1581 2004-04-05 Eric Botcazou <ebotcazou@libertysurf.fr>
1583 * config/sparc/sol2-bi.h (PREFERRED_DEBUGGING_TYPE): Set
1584 to DWARF2_DEBUG unconditionally.
1585 (ASM_DEBUG_SPEC): Set the default to --gdwarf2 unconditionally.
1587 2004-04-04 Ian Lance Taylor <ian@wasabisystems.com>
1588 Nathanael Nerode <neroden@gcc.gnu.org>
1591 * config.host: Set the shell variable host_can_use_collect2.
1592 Set it to yes by default, and to no for alpha*-dec-*vms*,
1593 i[34567]86-*-mingw32*, and powerpc-*-beos*.
1594 * configure.ac: Set and substitute the shell variable collect2.
1595 Give an error if use_collect2 is yes and host_can_use_collect2 is
1597 * Makefile.in (COLLECT2): Rename from USE_COLLECT2. Change all
1598 uses. Initialize to @collect2@.
1599 (STAGESTUFF): Remove $(USE_COLLECT2).
1600 * config/alpha/x-vms (USE_COLLECT2): Don't set.
1601 * config/i386/t-mingw32 (USE_COLLECT2): Likewise.
1602 * config/rs6000/t-beos (USE_COLLECT2): Likewise.
1603 * config/pa/t-pa64: Remove commented out USE_COLLECT2.
1604 * configure: Regenerate.
1606 2004-04-04 Roger Sayle <roger@eyesopen.com>
1608 * simplify-rtx.c (simplify_binary_operation): Constant fold
1609 DIV, MOD, UDIV and UMOD using div_and_round_double.
1611 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1614 * varasm.c (initializer_constant_valid_p): Allow NOP_EXPRs to
1617 2004-04-04 Mark Mitchell <mark@codesourcery.com>
1619 * doc/invoke.texi (-mabi=o64): Create link to O64 ABI
1622 2004-04-04 Roger Sayle <roger@eyesopen.com>
1624 * cse.c (cse_insn): Correct usage of simplify_replace_rtx when
1625 updating the REG_EQUAL note on an insn's libcall_insn.
1627 2004-04-04 Roger Sayle <roger@eyesopen.com>
1629 * df.h: Tidy up whitespace in the definitions of the DF_ flags.
1631 2004-04-03 Roger Sayle <roger@eyesopen.com>
1633 * fold-const.c (fold) <PLUS_EXPR>: Guard (-A)+B -> B-A transformation
1634 with reorder_operands_p.
1636 2004-04-03 Jan Hubicka <jh@suse.cz>
1638 * md.texi (vec_set, vec_extract, vec_init): Document.
1640 2004-04-02 Gabor Loki <loki@inf.u-szeged.hu>
1642 * opts.c (decode_options): Do function inlining with very small
1643 max-inline-insns-* parameters when optimizing for size.
1645 2004-04-02 Vladimir Makarov <vmakarov@redhat.com>
1647 * config/i386/i386.h (TARGET_NOCONA): New macro.
1648 (TARGET_CPU_CPP_BUILTINS): Add code for Nocona.
1649 (processor_type): Add PROCESSOR_NOCONA.
1651 * config/i386/i386.md (cpu): Add nocona to the attribute values.
1653 * config/i386/i386.c (nocona_cost): New variable.
1654 (m_NOCONA): New macro.
1655 (x86_push_memory, x86_movx, x86_cmove, x86_deep_branch,
1656 x86_branch_hints, x86_use_sahf, x86_single_stringop,
1657 x86_sub_esp_4, x86_sub_esp_8, x86_add_esp_4, x86_add_esp_8,
1658 x86_integer_DFmode_moves, x86_partial_reg_dependency,
1659 x86_memory_mismatch_stall, x86_accumulate_outgoing_args,
1660 x86_decompose_lea, x86_arch_always_fancy_math_387,
1661 x86_sse_partial_reg_dependency, x86_sse_load0_by_pxor,
1662 x86_ext_80387_constants, x86_four_jump_limit):
1663 (override_options): Add nocona_cost to processor_target_table.
1664 Set up PROCESSOR_NOCONA for Nocona entry in processor_alias_table.
1665 (incdec_operand): Prevent inc/dec generation for Nocona too.
1666 (ix86_issue_rate): Add PROCESSOR_NOCONA.
1668 2004-04-01 Andrew Pinski <pinskia@physics.uc.edu>
1670 * rtlanal.c (find_reg_note): Manually
1673 2004-04-01 Mark Mitchell <mark@codesourcery.com>
1675 * genemit.c (gen_split): Change prototype of generated code.
1676 * genrecog.c (write_action): Adjust prototype for and calls to
1678 * gensupport.c (struct queue_elem): Add split field.
1679 (queue_pattern): Return a value. Clear the split field.
1680 (process_rtx): Maintain an association between an insn and the
1681 split generated from it for a define_insn_and_split.
1682 (process_one_cond_exec): Generate a new split for a
1683 define_insn_and_split.
1684 * config/arm/arm-protos.h (arm_split_constant): Add insn
1686 (emit_constant_insn): New function.
1687 (arm_gen_constant): Use it.
1688 * config/arm/arm.md: Adjust calls to arm_split_constant.
1690 2004-04-02 Jan Hubicka <jh@suse.cz>
1692 * cgraph.c: Add overall comment.
1693 (cgraph_inline_hash): New global variable.
1694 (cgraph_create_node): Break out from ...
1695 (cgraph_node): ... here.
1696 (cgraph_edge): New function.
1697 (cgraph_create_edge): New CALL_EXPR argument; some sanity checking.
1698 (cgraph_remove_edge): Accept edge, intead of source and destination.
1699 (cgraph_redirect_edge_callee): New.
1700 (cgraph_remove_node): Update all new datastructures.
1701 (cgraph_record_call, cgraph_remove_call): Kill.
1702 (dump_cgraph_node): Break out from ... ; dump new datastructures.
1703 (dump_cgraph): ... here.
1704 (cgraph_function_possibly_inlined_p): Use new hashtable.
1705 (cgraph_clone_edge, cgraph_clone_node): New.
1706 * cgraph.h: Include hashtab.h
1707 (struct cgraph_global_info): Kill cloned_times, inline_once, will_be_output
1708 fields, add inlined_to pointer.
1709 (cgraph_node): Add pointer to next_clone.
1710 (cgraph_remove_edge, cgraph_create_edge): Update prototype.
1711 (cgraph_remove_call, cgraph_record_call): Kill.
1712 (cgraph_inline_hash): Declare.
1713 (dump_cgraph_node, cgraph_edge, cg4raph_clone_edge, cgraph_clone_node,
1714 cgraph_redirect_edge_callee): Declare.
1715 (cgraph_create_edges, cgraph_inline_p): Update prorotype.
1716 (cgraph_preserve_function_body_p, verify_cgraph, verify_cgraph_node,
1717 cgraph_mark_inline_edge, cgraph_clone_inlined_nodes): Declare.
1718 * cgraphunit.c: Add overall comment.
1719 (cgraph_optimize_function): Kill.
1720 (cgraph_assemble_pending_functions): Do not assemble inline clones.
1721 (cgraph_finalize_function): Update call of cgraph_remove_node
1722 (record_call_1): Record call sites.
1723 (cgraph_create_edges): Accept node instead of decl argument.
1724 (error_found): New static variable.
1725 (verify_cgraph_node_1, verify_cgraph_node, verify_cgraph): New functions.
1726 (cgraph_analyze_function): Update for new datastructures.
1727 (cgraph_finalize_compilation_unit): Plug memory leak.
1728 (cgraph_optimize_function): Kill.
1729 (cgraph_expand_function): Do not use cgraph_optimize_function.
1730 (INLINED_TIMES, SET_INLINED_TIMES, cgraph_inlined_into,
1731 cgraph_inlined_callees): Kill.
1732 (cgraph_remove_unreachable_nodes): Verify cgraph; update handling of
1734 (estimate_growth): Simplify.
1735 (cgraph_clone_inlined_nodes): New function.
1736 (cgraph_mark_inline_edge): Re-implement.
1737 (cgraph_mark_inline): Likewise.
1738 (cgraph_check_inline_limits): Simplify.
1739 (cgraph_recursive_inlining_p): New.
1740 (update_callee_keys): Break out from ...
1741 (cgraph_decide_inlining_of_small_functions): ... here; simplify.
1742 (cgraph_decide_inlining, cgraph_decide_inlining_incrementally):
1744 (cgraph_expand_all_functions): Remove inline clones from the ordered
1746 (cgraph_preserve_function_body_p): New predicate.
1747 (cgraph_optimize): Verify cgraph.
1748 * function.h (struct function): Add fields saved_tree/saved_args.
1749 * timevar.def (TV_CGRAPH_VERIFY): Use verifier.
1750 * toplev.c (rest_of_compilation): Do not free cfun.
1751 * tree-inline.c: Include function.h
1752 (struct inline_data): Add saving_p field; replace decl/current_decl by
1754 (insert_decl_map): New function.
1755 (copy_body_r): Handle saving; update cgraph datastructure.
1756 (copy_body): Handle recursive inlining.
1757 (initialize_inlined_parameters): Likewise.
1758 (expand_call_inline): Propagate node attributes; update cgraph.
1759 (optimize_inline_calls): Verify that datastructure still match.
1760 (save_body): New function.
1761 * tree-inline.h (save_body): New.
1762 * tree-optimize.c (tree_rest_of_compilation): preserve function body; do inlining.
1763 * langhooks-def.c (LANG_HOOKS_UPDATE_DECL_AFTER_SAVING): New.
1764 * langhooks.c (lang_hooks): Add update_decl_after_saving.
1766 2004-04-01 Serge Belyshev <1319@bot.ru>
1769 * config/i386/i386.md: fix source operand constraints in
1770 mmx_pshufw, sse2_pshufd, sse2_pshuflw, sse2_pshufhw
1772 2004-04-01 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1774 * fold-const.c (folda): Preserve types of comparisons.
1776 2004-04-01 Richard Henderson <rth@redhat.com>
1778 * toplev.c (backend_init): Move init_optimization_passes call ...
1779 (lang_dependent_init): ... here.
1781 2004-04-01 Alan Modra <amodra@bigpond.net.au>
1782 Jakub Jelinek <jakub@redhat.com>
1784 * gcc.c (init_gcc_specs): If HAVE_LD_AS_NEEDED, link with
1785 -lgcc --as-needed -lgcc_s --no-as-needed by default.
1786 * configure.ac (HAVE_LD_AS_NEEDED): Check for ld --as-needed.
1787 * configure: Rebuilt.
1788 * config.in: Rebuilt.
1789 * Makefile.in (stage1-start): Copy also libgcc_s*$(SHLIB_EXT).
1790 (stage2-start, stage3-start, stage4-start): Likewise.
1791 (stageprofile-start, stagefeedback-start): Likewise.
1793 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1795 * config/sparc/sparc.h (DITF_CONVERSION_LIBFUNCS): Define to 0.
1796 * config/sparc/linux.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1797 * config/sparc/linux64.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1798 * config/sparc/sol2.h (DITF_CONVERSION_LIBFUNCS): Redefine to 1.
1799 (SOLARIS_CONVERSION_LIBFUNCS): Rename to SUN_CONVERSION_LIBFUNCS.
1800 * config/sparc/sparc.c (sparc_init_libfuncs): Initialize optabs
1801 with _Q_qtoll, _Q_qtoull and _Q_lltoq if DITF_CONVERSION_LIBFUNCS.
1802 * config.gcc (sparc-*-linux*): Revert 2004-03-23 change.
1803 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Likewise.
1804 * config/sparc/t-linux: Removed.
1806 2004-04-01 Jakub Jelinek <jakub@redhat.com>
1809 * fold-const.c (fold) <EQ_EXPR>: Properly compute newconst in
1810 "bitfld++ == const" to "++bitfld == const + incr" transformations.
1812 2004-04-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1814 * expr.c (get_inner_reference): Use DECL_UNSIGNED, not TREE_UNSIGNED.
1815 * stor-layout.c (layout_decl): Likewise.
1816 * tree.c (get_narrower): Likewise and also use BIT_FIELD_REF_UNSIGNED.
1817 * fold-const.c (make_bit_field_ref): Use BIT_FIELD_REF_UNSIGNED.
1818 * print-tree.c (print_node): Handle various used of unsigned_flag.
1819 * tree.def (BIT_FIELD_REF): Update comment.
1820 * tree.h (TREE_UNSIGNED): Deleted.
1821 (DECL_UNSIGNED, BIT_FIELD_REF_UNSIGNED): New macros.
1823 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1825 * builtins.c, c-aux-info.c, c-common.c, c-cppbuiltin.c, c-decl.c:
1826 Change most occurrences of TREE_UNSIGNED to TYPE_UNSIGNED.
1827 * c-format.c, c-opts.c, c-pretty-print.c, c-typeck.c: Likewise.
1828 * calls.c, convert.c, dbxout.c, dojump.c, dwarf2out.c: Likewise.
1829 * expmed.c, expr.c, fold-const.c, function.c, integrate.c: Likewise.
1830 * optabs.c, sdbout.c, stmt.c, stor-layout.c, tree-dump.c: Likewise.
1831 * tree.c, config/iq2000/iq2000.c, config/m32r/m32r.c: Likewise.
1832 * config/mips/mips.c, config/rs6000/rs6000.c: Likewise.
1833 * config/s390/s390.c, config/sparc/sparc.c, objc/objc-act.c: Likewise.
1834 * stor-layout.c (layout_type, case COMPLEX_TYPE): Test for
1835 REAL_TYPE, not INTEGER_TYPE.
1836 (layout_type, case VECTOR_TYPE): Simplify code.
1837 * tree.c (build_vector_type_for_mode): Remove dup unsigned setting.
1838 * tree.h: Update comments.
1839 (STRIP_NOPS): Use TYPE_UNSIGNED.
1840 (TYPE_UNSIGNED): New macro.
1841 (TYPE_TRAP_SIGNED): Remove now redundant check.
1842 (SAVE_EXPR_NOPLACEHOLDER): Don't use TREE_UNSIGNED.
1844 2004-03-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1846 * function.c (put_var_into_stack): Properly set orig_reg for indirect.
1848 2004-03-31 Andrew Pinski <pinskia@physics.uc.edu>
1850 * config/rs6000/t-darwin (LIB2FUNCS_STATIC_EXTRA):
1851 Add darwin-fpsave.asm, darwin-vecsave.asm,
1852 and darwin-world.asm.
1853 (TARGET_LIBGCC2_CFLAGS): Add -Wa,-force_cpusubtype_ALL
1854 as the asm files contain altivec instructions.
1855 * config/rs6000/darwin-fpsave.asm: New file.
1856 * config/rs6000/darwin-vecsave.asm: New file.
1857 * config/rs6000/darwin-world.asm: New file.
1859 2004-03-31 Zack Weinberg <zack@codesourcery.com>
1861 * gengtype-yacc.y (option, stringseq): Add missing
1862 terminating semicolon.
1864 2004-03-30 David Edelsohn <edelsohn@gnu.org>
1866 * config/rs6000/rs6000.md (tls_gd_32, tls_gd_64,
1867 tls_ld_32, tls_ld_64, tls_dtprel_32, tls_dtprel_64,
1868 tls_dtprel_ha_32, tls_dtprel_ha_64,
1869 tls_dtprel_lo_32, tls_dtprel_lo_64,
1870 tls_got_dtprel_64, tls_tprel_32, tls_tprel_64,
1871 tls_tprel_ha_32, tls_tprel_ha_64,
1872 tls_tprel_lo_32, tls_tprel_lo_64,
1873 tls_got_tprel_32, tls_got_tprel_64,
1874 tls_tls_32, tls_tls_64): Replace register_operand with
1877 2004-03-30 Mostafa Hagog <mustafa@il.ibm.com>
1879 * config/rs6000/rs6000.md (*ctrsi_internal1, *ctrsi_internal2,
1880 *ctrdi_internal1, *ctrdi_internal2, *ctrsi_internal3,
1881 *ctrsi_internal4, *ctrdi_internal3, *ctrdi_internal4,
1882 *ctrsi_internal5, *ctrsi_internal6, *ctrdi_internal5,
1883 *ctrdi_internal6): Replace register_operand with
1884 nonimmediate_operand.
1886 2004-03-29 Fariborz Jahanian <fjahanian@apple.com>
1888 * fold-const.c (fold): Reassociate multiply expression
1889 with an adjacent non-multiply expression to use
1890 architecture's multiply-add instruction.
1892 2004-03-30 Zack Weinberg <zack@codesourcery.com>
1894 * gengtype.c (create_option): New function.
1895 * gengtype.h: Prototype it.
1896 * gengtype-yacc.y (stringseq): New rule.
1897 (option): Use create_option. Add new bare ID production. Use
1898 stringseq, not STRING directly.
1900 * alias.c, bitmap.c, c-decl.c, cgraph.h, cpplib.h, cselib.h
1901 * dwarf2out.c, emit-rtl.c, function.h, lists.c, tree.h
1902 * varray.h, config/alpha/alpha.c:
1903 Use new shorter form of GTY markers.
1905 * doc/gty.texi: Rewrite.
1907 2004-03-30 Andrew Pinski <pinskia@physics.uc.edu>
1909 * config/darwin.c (machopic_function_base_name):
1910 Remove current_name and getting the name of the
1913 2004-03-30 Nick Clifton <nickc@redhat.com>
1915 * config/arm/arm.md (thumb_jump): Reduce the backward branch
1916 range, and increase the forward branch range, to allow for
1917 the fact that the PC will be off by 4.
1919 2004-03-30 Alan Modra <amodra@bigpond.net.au>
1921 * .cvsignore: Add GPATH, GRTAGS, GSYMS and GTAGS (GNU GLOBAL)
1923 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1925 * config/rs6000/rs6000.c (output_vec_const_move):
1926 Find all cases of EASY_VECTOR_15_ADD_SELF.
1927 (easy_vector_constant_add_self): Accept
1928 all vector constant loadable by vsplt* and vadd*.
1929 (easy_vector_same): Use easy_vector_splat_const.
1930 (easy_vector_const): Use easy_vector_splat_const.
1931 (easy_vector_splat_const): New function.
1932 (gen_easy_vector_constant_add_self): New function.
1934 * config/rs6000/rs6000-protos.c (gen_easy_vector_constant_add_self):
1937 * config/rs6000/altivec.md (movv4si splitter): Change to
1938 emit move insn with halfed vector constant.
1939 (*movv8hi splitter): Likewise.
1940 (*movv16qi splitter): Likewise.
1942 2004-03-30 Hartmut Penner <hpenner@de.ibm.com>
1945 * config/rs6000/rs6000.c (rs6000_legitimate_address):
1946 Allow any offset to argument pointer in no-strict case.
1948 2004-03-30 Jan Hubicka <jh@suse.cz>
1950 * toplev.c (backend_init): Add missing call to inint_optimization_passes.
1951 * passes.c (init_optimization_passes, finish_optimization_passes): Output cgraph
1952 dump file in non-unit-at-a-time mode.
1954 2004-03-29 Hans-Peter Nilsson <hp@axis.com>
1956 * config/cris/cris.h: Correct #ifdef to test for
1957 HAVE_AS_NO_MUL_BUG_ABORT_OPTION, not
1958 HAVE_AS_MUL_BUG_ABORT_OPTION.
1960 2004-03-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1962 * function.c (put_var_into_stack): If old RTL was ADDRESSOF, update
1963 the address inside the old RTL.
1965 2004-03-28 Zack Weinberg <zack@codesourcery.com>
1967 * c-decl.c: Verify that C_SIZEOF_STRUCT_LANG_IDENTIFIER is correct.
1968 (struct c_binding, struct c_scope): Add chain_next
1969 attributes to GTY markers.
1970 (struct lang_identifier, struct lang_tree_node): Define
1972 * c-tree.h: ... not here. No longer need to declare struct
1973 c_binding either. Do define C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1974 * c-lang.c, objc/objc-lang.c: Set LANG_HOOKS_IDENTIFIER_SIZE
1975 to C_SIZEOF_STRUCT_LANG_IDENTIFIER.
1978 * c-decl.c (get_parm_info): If error_mark_node is encountered
1979 in the bindings chain, unbind and discard it; don't abort.
1981 2004-03-28 Olga Golovonevsky <olga@il.ibm.com>
1982 Dorit Naishlos <dorit@il.ibm.com>
1984 * config/rs6000/altivec.md: (andvv16qi3, andv8hi3, one_cmplv16qi2,
1985 one_cmplv8hi2, one_cmplv4si2, iorv16qi3, iorv8hi3,): New modelling.
1987 2004-03-28 Stephane Carrez <stcarrez@nerim.fr>
1989 * config/m68hc11/m68hc11-protos.h (m68hc11_page0_symbol_p): Declare.
1991 * config/m68hc11/m68hc11.c (m68hc11_handle_page0_attribute): New.
1992 (m68hc11_attribute_table): New attribute "page0" to mark a global
1993 variable as being allocated from within page0 section.
1994 (m68hc11_encode_label): New function.
1995 (m68hc11_strip_name_encoding): New function.
1996 (m68hc11_page0_symbol_p): New function.
1997 (m68hc11_indirect_p): Accept global variables marked in page0.
1998 (m68hc11_encode_section_info): Lookup "page0" attribute.
2000 * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): 'R' constraint also
2001 represents access to page0 variables.
2003 * config/m68hc11/m68hc11.md ("*logicalsi3_zexthi"): Use gen_rtx_REG.
2004 ("*logicalsi3_silshl16_zext"): Likewise.
2005 ("*ashldi3_const32"): Likewise.
2006 (peephole2 ashift): Likewise.
2008 2004-03-28 Joseph S. Myers <jsm@polyomino.org.uk>
2010 * c-tree.h (C_DECL_REGISTER): New.
2011 * c-aux-info.c (gen_decl), c-decl.c (objc_mark_locals_volatile,
2012 finish_decl, grokdeclarator, get_parm_info), c-typeck.c
2013 (build_array_ref, c_mark_addressable): Set and use it.
2014 * c-decl.c (grokdeclarator), c-typeck.c (c_mark_addressable):
2015 Allow structures with volatile fields to be declared register.
2016 Don't check TREE_ADDRESSABLE before warning about taking address
2018 * c-decl.c (finish_decl): Don't allow structures with volatile
2019 fields to be placed in named register.
2020 * doc/trouble.texi: Remove reference to structures with volatile
2021 fields in registers.
2023 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2025 * function.c (thread_prologue_and_epilogue): Move
2026 NOTE_INSN_FUNCTION_END and NOTE_INSN_FUNCTION_BEG notes
2027 before the epilogue.
2029 2004-03-27 Ulrich Weigand <uweigand@de.ibm.com>
2031 * expr.c (store_constructor): Use gen_int_mode to correctly
2032 sign-extend CONST_INT value.
2034 2004-03-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2036 * builtin-types.def (BT_WINT, BT_FN_INT_WINT, BT_FN_WINT_WINT): New.
2037 * builtins.def (DEF_C94_BUILTIN): New. Add wctype builtins.
2038 * doc/extend.texi: Likewise.
2040 2004-03-26 Diego Novillo <dnovillo@redhat.com>
2042 * c-typeck.c (comptypes): Replace calls to TYPE_DOMAIN
2043 with TYPE_ORIG_SIZE_TYPE.
2045 2004-03-25 Aldy Hernandez <aldyh@redhat.com>
2048 * c-typeck.c (build_binary_op): Do not allow comparisons of
2051 2004-03-26 James A. Morrison <ja2morri@uwaterloo.ca>
2053 * config.gcc: Remove sparc-tti-*.
2054 * config/sparc/pbd.h: Delete.
2056 * config/sparc/sol2.h: Remove note about Sun OS 4.x.
2057 * config/sparc/aout.h: Likewise.
2059 * config/sparc/sparc.h: Remove if 0'd code.
2060 * config/sparc/sparc.md (call): Remove if 0'd code.
2061 (call_value): Likewise.
2062 (nonlocal_goto): Likewise.
2063 (unimp_insn): Delete.
2065 2004-03-25 Roger Sayle <roger@eyesopen.com>
2067 * fold-const.c (tree_expr_nonnegative_p): Handle BIT_XOR_EXPR like
2068 BIT_IOR_EXPR; A^B is nonnegative when A and B are nonnegative.
2070 2004-03-25 Richard Henderson <rth@redhat.com>
2073 * c-typeck.c (pop_init_level): Emit pending init elements earlier
2076 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2078 * builtins.c (fold_builtin): Fix error in last change.
2080 2004-03-25 Richard Sandiford <rsandifo@redhat.com>
2082 * config/mips/mips.h: Formatting fix.
2084 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2086 * builtins.def: Add ctype builtins.
2087 * doc/extend.texi: Likewise.
2089 2004-03-25 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2091 * builtins.c (fold_builtin): Add new builtin optimizations for
2093 * fold-const.c (fold): Likewise.
2095 2004-03-25 David Edelsohn <edelsohn@gnu.org>
2097 * config/rs6000/rs6000.c (rs6000_always_hint): New variable.
2098 (rs6000_sched_groups): New variable.
2099 (processor_target_table): Add power5.
2100 (rs6000_override_options): Set rs6000_sched_insert_nops,
2101 rs6000_sched_costly_dep and rs6000_sched_restricted_insns_priority
2102 from rs6000_sched_groups.
2103 (output_cbranch): Use rs6000_always_hint.
2104 (rs6000_variable_issue): Use rs6000_sched_groups.
2105 (rs6000_adjust_cost): Add CPU_POWER5.
2106 (is_microcoded_insn): Use rs6000_sched_groups.
2107 (is_dispatch_slot_restricted): Use rs6000_sched_groups.
2108 Return 2 for POWER5 cracked instructions.
2109 (is_cracked_insn): Use rs6000_sched_groups.
2110 (is_branch_slot_insn): Use rs6000_sched_groups.
2111 (rs6000_issue_rate): Add CPU_POWER5.
2112 (rs6000_sched_finish): Use rs6000_sched_groups.
2113 (rs6000_rtx_costs): Add PROCESSOR_POWER5.
2114 * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_POWER5.
2115 (DEFAULT_SCHED_COSTLY_DEP): Delete.
2116 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Delete.
2117 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Delete.
2118 * config/rs6000/rs6000.md (define_attr "cpu"): Add power5.
2119 * config/rs6000/power5.md: New file.
2120 * doc/invoke.texi: Add power5 option.
2122 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2124 * cfgrtl.c, dbxout.c, tree.def, config/darwin.h,
2125 config/arm/arm.c, objc/objc-act.c: Fix comment typos.
2126 * doc/invoke.texi: Fix a typo.
2128 2004-03-25 Kazu Hirata <kazu@cs.umass.edu>
2130 PR optimization/9707.
2131 * stmt.c (emit_case_nodes): Emit equality comparisons instead
2132 of recursing if both children are single-valued cases with no
2135 2004-03-25 Paul Brook <paul@codesourcery.com>
2137 * config/arm/arm.c (vfp_print_multi): Remove.
2138 (arm_output_fldmx): New function.
2139 (vfp_emit_fstmx): Return block size, not insn. Add ARM10 VFPr1 bugfix.
2140 (arm_expand_prologue): Update to match.
2141 (arm_get_vfp_saved_size): New Function.
2142 (arm_get_frame_offsets): Use it.
2143 (arm_output_epilogue): Use new functions.
2145 2004-03-24 Richard Henderson <rth@redhat.com>
2147 * alias.c (alias_invariant, alias_invariant_size): Mark GTY.
2148 (reg_known_value, reg_known_value_size): Likewise; make static.
2149 (reg_known_equiv_p): Make static.
2150 (clear_reg_alias_info): Update for new indexing.
2151 (get_reg_known_value, set_reg_known_value): New.
2152 (get_reg_known_equiv_p, set_reg_known_equiv_p): New.
2153 (canon_rtx): Use them.
2154 (init_alias_analysis): Likewise. Allocate reg_known_value with gc.
2155 Don't play queer offsetting games with reg_known_value and
2157 (end_alias_analysis): Free reg_known_value with gc.
2158 * rtl.h (get_reg_known_value, get_reg_known_equiv_p): Declare.
2159 * sched-deps.c (reg_known_equiv_p, reg_known_value): Remove.
2160 (deps_may_trap_p, sched_analyze_1, sched_analyze_2): Use the new
2163 2004-03-24 Kazu Hirata <kazu@cs.umass.edu>
2165 * dwarf2asm.c, loop.h, pretty-print.c, pretty-print.h,
2166 config/i386/mmintrin.h: Update copyright.
2168 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2170 * configure.ac: Add --enable-werror-always (for top level bootstrap
2172 * configure: Regenerate.
2174 2004-03-24 Ziemowit Laski <zlaski@apple.com>
2176 * objc/objc-act.c (objc_comptypes): Treat comparisons
2177 between 'Class' and '<class> *' as explicitly invalid.
2179 2004-03-24 David Edelsohn <edelsohn@gnu.org>
2181 * doc/invoke.texi (-frename-registers: Add enabled at -O3.
2182 (-fprofile-values): Add enabled with profile-{generate,use}.
2184 (-ftracer): Add enabled with profile-use.
2185 (-funit-at-a-time): Add enabled at -O2,-O3.
2186 (-funroll-loops): Add enabled with profile-use.
2187 (-funswitch-loops): Add enabled with profile-use. Remove duplicates.
2188 (max-gcse-passes): Mention default.
2189 (max-cse-path-length): Mention default.
2191 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2193 * Makefile.in (STRICT2_WARN): Reorder.
2194 * configure.ac: Check for -Wold-style-definition, and use it
2195 in strict1_warn if it's available.
2196 * configure: Regnerate.
2198 2004-03-24 Paul Brook <paul@nowt.org>
2200 * config.gcc <arm>: Add --with-abi=
2201 * config/arm/arm-protos.h (arm_get_frame_size, thumb_get_frame_size,
2202 thumb_far_jump_used): Remove prototypes.
2203 (arm_needs_doubleword_align): Add prototype.
2204 (thumb_compute_initial_elimination_offset): Ditto.
2205 * config/arm/arm.c (arm_get_frame_offsets): New function.
2206 (use_return_insn, output_return_instruction, arm_output_epilogue,
2207 arm_output_function_epilogue, arm_compute_initial_elimination_offset,
2208 arm_expand_prologue, thumb_expand_epilogue): Use it.
2209 (arm_abi, target_abi_name, all_arm_abis): New variables.
2210 (arm_override_options): Set them. Set structure padding for AAPCS.
2211 (arm_return_in_memory): Update ABI check.
2212 (arm_init_cumulative_args): Initialize can_split.
2213 (arm_needs_doubleword_align): New function.
2214 (arm_function_arg): Don't split args after pushing to stack. Handle
2215 doubleword/even reg alignment.
2216 (arm_va_arg): Handle all doubleword aligned args.
2217 (add_minpoolforward ref, dump_minpool, push_minpool_fix): Align based
2219 (arm_compute_save_reg0_reg12_mask): Fix comment.
2220 (thumb_get_frame_size, thumb_get_frame_size): Remove.
2221 (thumb_jump_far_used_p): Remove superfluous argument. Return save
2222 value for alignment.
2223 (thumb_unexpanded_epilogue, thumb_output_function_prologue): Change
2225 (thumb_compute_initial_elimination_offset): New function.
2226 (thumb_expand_prologue): Use arm_get_frame_offsets. Remove
2227 unneccessary rounding.
2228 * config/arm/arm.h (target_abi_name): Declare.
2229 (ARM_DOUBLEWORD_ALIGN, DOUBLEWORD_ALIGNMENT, TARGET_IWMMXT_ABI,
2230 arm_abi_type, ARM_DEFAULT_ABI): Define.
2231 (ARM_FLAG_ATPCS): Remove.
2232 (TARGET_OPTIONS, OPTION_DEFAULT_SPECS): Add -mabi=.
2233 (BIGGEST_ALIGNMENT, PREFERRED_STACK_BOUNDARY, STACK_BOUNDARY): Use it.
2234 (ADJUST_FIELD_ALIGN, DATA_ALIGNMENT, LOCAL_ALIGNMENT,
2235 TYPE_NEEDS_IWMMXT_ALIGNMENT): Remove.
2236 (LIBCALL_VALUE, FUNCTION_VALUE_REGNO_P, FUNCTION_ARG_REGNO_P):
2237 Contitionalize on ABI, not CPU.
2238 (struct arm_stack_offsets): Define.
2239 (struct machine_function): Add stack_offsets. Remove frame_size.
2240 (FUNCTION_ARG_PARTIAL_NREGS): Don't split if previous args have been
2242 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG_BOUNDARY): Handle general
2243 doubleword alignment.
2244 (THUMB_INITIAL_ELIMINATION_OFFSET,
2245 ARM_INITIAL_ELIMINATION_OFFSET): Remove.
2246 (INITIAL_ELIMINATION_OFFSET): Call functions directly.
2247 * config/arm/arm.md (align_8): Enable for all targets.
2248 * config/arm/netbsd-elf.h (TARGET_DEFAULT): Remove TARGET_ATPCS.
2249 (ARM_DEFAULT_ABI): Define.
2250 * doc/invoke.texi <ARM>: Document -mabi=. Update documentation for
2251 -mstructure-size-boundary.
2253 2004-03-24 Nathanael Nerode <neroden@gcc.gnu.org>
2255 * configure.ac: Check for -Wno-variadic-macros; don't use
2256 -pedantic (in stage 1 or a simple 'make all') unless it's available,
2257 and if it's available, use it. Also, clean up check for
2259 * configure: Regenerate.
2261 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2263 * config.gcc (mips64vr-*-elf*, mips64vrel-*-elf*): Remove tm_defines.
2264 * config/mips/vr.h (DEFAULT_VR_ARCH): New macro, defined to vr4130.
2265 (MULTILIB_DEFAULTS): Use it.
2266 (MIPS_CPU_STRING_DEFAULT): Remove.
2267 (MIPS_ABI_DEFAULT, MIPS_MARCH_CONTROLS_SOFT_FLOAT): Define.
2268 (DRIVER_SELF_SPECS): Make -mfix-vr4122-bugs imply -march=vr4120. Make
2269 EABI64 -mlong32 the default ABI. Enforce the default architecture.
2270 * config/mips/t-vr (MULTILIB_OPTIONS): Add mfix-vr4122-bugs,
2271 march=vr4130, march=vr4300, march=vr5000 and march=vr5500.
2272 (MULTILIB_MATCHES): Use -mfix-vr4122-bugs multilibs for -march=vr4120.
2273 (MULTILIB_EXCEPTIONS): Change choice of multilibs. Update comments
2276 2004-03-24 DJ Delorie <dj@redhat.com>
2277 Richard Sandiford <rsandifo@redhat.com>
2279 * config/mips/mips.h (MASK_FIX_VR4122, TARGET_FIX_VR4122): New macros.
2280 (TARGET_SWITCHES): Add -mfix-vr4122-bugs and -mno-fix-vr4122-bugs.
2281 (ASM_SPEC): Pass down -mfix-vr4122-bugs.
2282 * config/mips/mips.c (mips_avoid_hazards): Don't emit whole functions
2283 in .set noreorder and .set nomacro if TARGET_FIX_VR4122.
2284 (mips_init_libfuncs): Use special functions for divsi3 and modsi3
2285 if TARGET_FIX_VR4122.
2286 * config/mips/mips.md (define_attr length): Account for nops inserted
2287 after macc and dmult when using -mfix-vr4122-bugs.
2288 (umuldi3_highpart, divmodsi4, divmoddi4): Disable if TARGET_FIX_VR4122.
2289 * config/mips/t-vr (LIB2FUNCS_STATIC_EXTRA): Define instead of
2290 LIB2FUNCS_EXTRA. Add config/mips/vr4122-div.S.
2291 * config/mips/vr4122-div.S: New file.
2292 * doc/invoke.texi: Document -mfix-vr4122-bugs.
2294 2004-03-24 Richard Sandiford <rsandifo@redhat.com>
2296 * config/mips/mips.h (PROCESSOR_R4130): New processor_type.
2297 (TARGET_MIPS4130): New macro.
2298 (ISA_HAS_MACC): Return true if TARGET_MIPS4130 && !TARGET_MIPS16.
2299 * config/mips/mips.c (mips_cpu_info_table): Add a vr4130 entry.
2300 (override_options): Extend MIPS_MARCH_CONTROLS_SOFT_FLOAT to deal
2301 with PROCESSOR_R4130.
2302 * config/mips/mips.md (define_attr cpu): Add r4130.
2303 * doc/invoke.texi: Document vr4130 as a supported MIPS architecture.
2305 2004-03-24 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2306 Richard Sandiford <rsandifo@redhat.com>
2308 * doc/invoke.texi: Apply missed hunk from 2004-03-03 change.
2310 2004-03-24 Alexandre Oliva <aoliva@redhat.com>
2312 PR preprocessor/14438
2313 * cpplib.c (do_pragma): Remove line_change call after pragma
2316 2004-03-23 Ian Lance Taylor <ian@wasabisystems.com>
2318 * doc/extend.texi (ARM Built-in Functions): Replace with correct
2321 2004-03-23 Roger Sayle <roger@eyesopen.com>
2323 * reg-stack.c (get_true_reg): Handle FLOAT_TRUNCATE like FLOAT_EXTEND
2324 if flag_unsafe_math_optimizations.
2325 * config/i386/i386.md (truncdfsf2): If flag_unsafe_math_optimizations
2326 and TARGET_80387 expand using truncdfsf2_noop pattern.
2327 (truncxfsf2): Likewise using truncxfsf2_noop.
2328 (truncxfdf2): Likewise using truncxfdf2_noop.
2329 (truncdfsf2_noop, truncxfsf2_noop, truncxfdf2_noop): New patterns.
2331 2004-03-23 Ziemowit Laski <zlaski@apple.com>
2333 * hooks.c (hook_constcharptr_tree_null): New hook.
2334 * hooks.h (hook_constcharptr_tree_null): New prototype.
2335 * target-def.h (TARGET_MANGLE_FUNDAMENTAL_TYPE): New target hook.
2336 * target.h (mangle_fundamental_type): New target hook.
2337 * config/rs6000/rs6000.c (TARGET_MANGLE_FUNDAMENTAL_TYPE): Point
2338 target hook at rs6000_mangle_fundamental_type.
2339 (rs6000_mangle_fundamental_type): New function.
2340 * doc/tm.texi (TARGET_MANGLE_FUNDAMENTAL_TYPE): Document.
2342 2004-03-23 Zack Weinberg <zack@codesourcery.com>
2344 PR 12267, 12391, 12560, 13129, 14114, 14133
2345 * c-tree.h: Forward declare struct c_binding. Declare
2346 c_override_bindings_to_false. Update prototypes.
2347 (struct lang_identifier): Update comments. Change fields to be
2349 (IDENTIFIER_SYMBOL_VALUE, IDENTIFIER_TAG_VALUE)
2350 (IDENTIFIER_LABEL_VALUE, C_DECL_INVISIBLE)
2351 (KEEP_NO, KEEP_YES, KEEP_MAYBE): Delete.
2352 (C_DECL_IN_EXTERNAL_SCOPE, C_DECL_DECLARED_BUILTIN): New.
2353 * c-common.h: Update prototypes.
2354 * c-decl.c (struct c_scope): Update commentary. Remove names,
2355 names_last, parms, parms_last, tags, and shadowed fields. Add
2356 bindings and depth fields.
2357 (scope_freelist): Move to more appropriate location.
2358 (c_print_identifier): Update for changes to struct lang_identifier.
2359 (objc_mark_locals_volatile): Update for new bindings structures.
2360 (global_bindings_p): Honor c_override_global_bindings_to_false.
2361 (pushlevel): Rename to push_scope; take no arguments; use the
2362 scope_freelist; initialize scope->depth and check for overflow.
2363 (poplevel): Rename to pop_scope; totally rewritten for new bindings
2365 (diagnose_mismatched_decls): Use C_DECL_DECLARED_BUILTIN, not
2366 C_DECL_INVISIBLE, for certain decisions. Adjust some diagnostics.
2367 Improve some commentary. Adjust handling of forward parm decls.
2368 (merge_decls): Set C_DECL_DECLARED_BUILTIN when appropriate.
2369 Preserve C_DECL_IN_EXTERNAL_SCOPE.
2370 (warn_if_shadowing): Correct indentation. Improve diagnostics.
2371 (pushdecl): Remove unnecessary assertion. Short-circuit anonymous
2372 decls. Rewrite for new bindings structures. Improve commentary.
2373 Eliminate the copy_node call.
2374 (implicit_decl_warning): Use the "diag" idiom (as seen in
2375 locate_old_decl) to reduce code duplication; call locate_old_decl
2376 if appropriate. Relocate to remove need for forward declaration.
2377 (implicitly_declare): Adjust for new bindings structures. Kludge
2378 around Objective-C not-really-builtin functions.
2379 (undeclared_variable): Improve diagnostics. If current_function_decl
2380 is nonnull but current_function_scope is null, use current_scope.
2382 (lookup_tag): Adjust for new bindings structures. Kludge around
2383 Objective-C's tag declarations that wind up in the external scope.
2384 (lookup_name): Adjust for new bindings structures. Kludge around
2385 c-common.c's pseudo-typedefs that wind up in the external scope.
2386 (lookup_name_current_level): Rename lookup_name_in_scope; take a
2387 second argument indicating the scope to examine; rewrite for
2388 new bindings structures.
2389 (c_init_decl_processing): Adjust for renamed functions. Do not
2390 initialize current_file_decl, first_builtin_decl, last_builtin_decl.
2391 First scope pushed is the external scope, not the global scope.
2392 (builtin_function): Use bind, not pushdecl. Adjust other bits
2393 for new data structures. Keep track of builtins that should be
2394 made visible automatically.
2395 (start_decl): Adjust diagnostics. Remove unnecessary call to
2397 (grokparms): Return 0 if arg_types is error_mark_node.
2398 (get_parm_info): Rename "void_at_end" argument to "ellipsis", with
2399 reversed sense. Rewrite for new bindings structures. Do not
2400 leave any decls in the scope, to prevent pop_scope from doing
2401 contradictory things with them.
2402 (finish_struct, finish_enum): Remove redundant diagnostics.
2403 (build_enumerator): Don't cascade diagnostics for error_mark_node.
2404 Mark location where -pedantic changes the meaning of the program.
2405 (store_parm_decls_newstyle, store_parm_decls_oldstyle): Load the
2406 parameter decls into the function's scope structure using bind.
2407 Warn here about function definitions in the wrong style.
2409 (store_parm_decls): Correct the determination of whether a
2410 function was defined with a prototype.
2411 (c_write_global_declarations): Operate on all file decls and on
2412 the external scope. Split body of the loop to...
2413 (c_write_global_declarations_1): ... this new function, to avoid
2415 (truly_local_externals, first_builtin_decl, last_builtin_decl)
2416 (make_scope, pop_scope, in_parm_level_p, set_block)
2417 (any_external_decl, record_external_decl, bind_label, getdecls)
2418 (link_hash_hash, link_hash_eq, merge_translation_unit_decls)
2419 (c_reset_state): Delete.
2420 (visible_builtins, c_override_global_bindings_to_false)
2421 (c_binding, I_SYMBOL_BINDING, I_SYMBOL_DECL, I_TAG_BINDING)
2422 (I_TAG_DECL, I_LABEL_BINDING, I_LABEL_DECL, file_scope)
2423 (external_scope, binding_freelist, bind, free_binding_and_advance)
2424 (push_file_scope, pop_file_scope): New.
2425 (pushtag, pushdecl_top_level, lookup_label, declare_label)
2426 (define_label, c_make_fname_decl, finish_decl)
2427 (mark_forward_parm_decls, build_compound_literal)
2428 (grokdeclarator, start_function, check_for_loop_decls)
2429 (identifier_global_value, record_builtin_type): Minor adjustments
2430 for new bindings structures. Improve diagnostics and commentary.
2431 * c-objc-common.c (start_cdtor, finish_cdtor): Adjust calls to
2432 pushlevel/poplevel respectively.
2433 (c_objc_common_finish_file): Don't call merge_translation_unit_decls.
2434 * c-opts.c (c_common_parse_file): Remove spurious ATTRIBUTE_UNUSED.
2435 Warn about YYDEBUG not being defined only if -dy. Remove no-longer-
2436 correct loop over multiple translation units; call fatal_error if
2437 requested to compile more than one file at once. (This disables
2438 IMA temporarily - an up-front error being preferable to a crash.)
2439 * c-parse.in (pushlevel, poplevel rules): Rename push_scope, pop_scope.
2440 (all actions): Adjust calls to pushlevel/poplevel.
2441 (parsing_iso_function_signature): Delete.
2442 (extdef_1): Fold into extdef.
2443 (old_style_parm_decls_1): Fold into old_style_parm_decls. Don't
2444 warn here about function definitions in the wrong style.
2445 (after_tyle_declarator, parm_declarator_starttypename)
2446 (parm_declarator_nostarttypename, notype_declarator): Remove
2447 commented-out productions.
2448 (parmlist_1, parmlist_2): Use make_node, not tree_cons, to create
2449 an empty TREE_LIST node. Adjust calls to get_parm_info.
2450 (parmlist_2 : ELLIPSIS): Tag the arg-info block with error_mark_node
2451 to suppress -Wold-style-definition after this error.
2452 (c_parse_file): Don't clear the binding stack or call
2453 finish_fname_decls here. Correct comment.
2454 * c-typeck.c (same_translation_unit_p): Export.
2455 (common_type): Use c_override_global_bindings_to_false, not
2456 pushlevel/poplevel/declare_parm_level.
2457 * c-lang.c: Override LANG_HOOKS_CLEAR_BINDING_STACK,
2458 LANG_HOOKS_PUSHLEVEL, LANG_HOOKS_POPLEVEL, LANG_HOOKS_SET_BLOCK,
2459 and LANG_HOOKS_GETDECLS with do-nothing stubs.
2460 * objc/objc-lang.c: Likewise.
2461 * objc/objc-act.c: Adjust all calls to pushlevel, poplevel,
2463 (OBJC_VOID_AT_END): Delete; replace all uses
2464 with void_list_node.
2465 (generate_forward_declaration_to_string_table): Delete.
2466 * objc/objc-act.h (OCTI_STRG_DECL, UOBJC_STRINGS_decl): Delete.
2468 * coverage.c (create_coverage): Don't pushdecl anything.
2469 * langhooks.c (lhd_clear_binding_stack): Call
2470 lang_hooks.decls.poplevel, not poplevel.
2471 * tree.c (list_length): If ENABLE_TREE_CHECKING, abort on a
2472 circular list rather than going into an infinite loop.
2474 2004-03-23 Olivier Hainque <hainque@act-europe.fr>
2476 * optabs.c (expand_binop): When synthesizing double word rotates
2477 from single word shifts, use a new register target if the provided
2478 target is not a REG already.
2480 2004-03-23 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2482 * alias.c (get_alias_set): Add support for TYPE_REF_CAN_ALIAS_ALL.
2483 * c-common.c (handle_mode_attribute): Add extra arg to
2484 build_pointer_type_for_mode and build_reference_type_for_mode.
2485 * c-typeck.c (build_c_cast): Only look at TREE_CONSTANT_OVERFLOW
2487 * tree.c (build_pointer_type_for_mode): Add arg CAN_ALIAS_ALL.
2488 Chain pointers via TYPE_NEXT_PTR_TO.
2489 (build_reference_type_for_mode): Similarly.
2490 (build_type_no_quals): Add extra arg to build_pointer_type_for_mode
2491 and build_reference_type_for_mode.
2492 (tree_check4_failed): New function.
2493 * tree.h (TREE_CHECK4, PTR_OR_REF_CHECK): New macros.
2494 (TYPE_REF_CAN_ALIAS_ALL, TYPE_NEXT_PTR_TO, TYPE_NEXT_REF_TO): Likewise.
2495 (TREE_NO_UNSUED_WARNING, TREE_VIA_VIRTUAL, TREE_CONSTANT_OVERFLOW):
2498 2004-03-23 Roger Sayle <roger@eyesopen.com>
2500 * fold-const.c (tree_expr_nonnegative_p): A&B is nonnegative when
2501 A is nonnegative or B is nonnegative. Similarly A|B is nonnegative
2502 when both A and B are nonnegative.
2503 (tree_expr_nonzero_p): A|B is nonzero when A is nonzero or B is
2506 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2508 * fold-const.c (fold): Remove cases for INTEGER_CST, REAL_CST,
2509 VECTOR_CST, STRING_CST, COMPLEX_CST, and CONSTRUCTOR.
2511 2004-03-23 Kazu Hirata <kazu@cs.umass.edu>
2513 PR optimization/14669
2514 * fold-const.c (fold): Only unwiden integer comparisons for equality
2515 and inequality operators, or when the signedness doesn't change.
2517 2004-03-23 Jakub Jelinek <jakub@redhat.com>
2519 * config.gcc (sparc-*-linux*): Add sparc/t-linux to tmake_file.
2520 * config/sparc/t-linux64 (TARGET_LIBGCC2_CFLAGS): Set.
2521 * config/sparc/t-linux: New file.
2523 2004-03-23 Richard Sandiford <rsandifo@redhat.com>
2525 * gcse.c (can_assign_to_reg_p): New function, split out from...
2526 (want_to_gcse_p): ...here.
2527 (compute_ld_motion_mems): Use can_assign_to_reg_p to validate
2530 2004-03-22 Diego Novillo <dnovillo@redhat.com>
2532 * c-typeck.c (same_translation_unit_p): Fix pasto.
2534 2004-03-22 David Edelsohn <edelsohn@gnu.org>
2536 * params.def (PARAM_MAX_SCHED_REGION_BLOCKS): New.
2537 (PARAM_MAX_SCHED_REGION_INSNS): New.
2538 * sched-rgn.c: Include params.h
2539 (MAX_RGN_BLOCKS): Delete.
2540 (MAX_RGN_INSNS): Delete.
2541 (too_large): Return bool. Convert to PARAM_VALUE.
2542 * Makefile.in (sched-rgn.o): Depend on $(PARAMS_H).
2543 * doc/invoke.texi (param): Document max-sched-region-blocks and
2544 max-sched-region-insns.
2546 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2548 * dwarf2out.c (is_subrange_type): Do not emit a subrange_type DIE
2551 2004-03-22 Joel Brobecker <brobecker@gnat.com>
2553 * dwarf2out.c (is_subrange_type): Minor code rework. No behavior
2556 2004-03-22 Jakub Jelinek <jakub@redhat.com>
2559 * c-decl.c (finish_struct): Change type of incorrect flexible array
2560 field into error_mark_node.
2562 2004-03-22 Andrew Pinski <pinskia@physics.uc.edu>
2565 * config/rs6000/rs6000.c (symbol_ref_operand): Reject symbols
2566 who are not local for Darwin PIC.
2568 2004-03-22 Ulrich Weigand <uweigand@de.ibm.com>
2570 * regrename.c (regrename_optimize): Set regs_ever_live for all
2571 registers introduced as replacement.
2573 2004-03-22 Eric Botcazou <ebotcazou@libertysurf.fr>
2576 * expr.c (mark_queue): New function.
2577 (emit_insns_enqueued_after_mark): New function replacing
2578 emit_queue. Clear the body of emitted queued insns.
2579 (emit_queue): Call emit_insns_enqueued_after_mark.
2580 (store_expr): Mark the increment queue on entry. Emit
2581 only the incrementations queued when expanding the source.
2583 2004-03-22 Nathanael Nerode <neroden@gcc.gnu.org>
2585 * configure.ac: Allow --disable-coverage-flags (for the future benefit
2586 of top level bootstrap, and consistency). Reindent.
2587 * configure: Regenerate.
2589 2004-03-21 Kazu Hirata <kazu@cs.umass.edu>
2591 * bt-load.c, builtins.c, cfghooks.c, cfgrtl.c, gcse.c,
2592 ggc-page.c, integrate.c, var-tracking.c, web.c: Remove
2595 2004-03-22 Danny Smith <dannysmith@users.sourceforge.net>
2598 * gcov-io.h (gcov_truncate): Define ftruncate as _chsize for
2601 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2603 * config/s390/s390.md ("*doloop_si"): Change predicate for operand 2
2604 to nonimmediate_operand.
2605 ("*doloop_di"): Likewise.
2607 2004-03-21 Alexandre Oliva <aoliva@redhat.com>
2609 * real.h (struct real_value): Use the same type for all
2610 bitfields. Rename exp to uexp.
2611 (REAL_EXP, SET_REAL_EXP): New accessor macros for uexp.
2612 Adjust all uses of exp...
2613 * builtins.c: ... here, ...
2614 * emit-rtl.c: ... here, and ...
2615 * real.c: ... and here.
2617 2004-03-21 Gabriel Dos Reis <gdr@integrable-solutions.net>
2619 * pretty-print.c (pp_base_maybe_space): New function.
2620 * pretty-print.h (pp_base_maybe_space): Declare.
2621 (pp_maybe_space): New macro.
2623 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2625 * config/s390/s390.md ("addti3", "subti3"): New insns and splitters.
2627 2004-03-21 Ulrich Weigand <uweigand@de.ibm.com>
2629 * expmed.c (choose_mult_variant): Pass MULT_COST as argument instead
2630 of using register multiplication cost.
2631 (expand_mult): Adapt choose_mult_variant call.
2632 (expand_mult_highpart): Call choose_mult_variant with WIDER_MODE
2633 of MODE; pass appropriate cost bound. Adjust result when
2634 performing signed multiplication by a negative constant.
2635 Don't use intermediate modes larger than word_mode.
2637 2004-03-21 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2639 * alias.c (get_alias_set): Remove handling of PLACEHOLDER_EXPR.
2640 * emit-rtl.c (component_ref_for_mem_expr): Likewise.
2641 (set_mem_attributes_minus_bitpos): Call SUBSTITUTE_PLACEHOLDER_IN_EXPR.
2642 * explow.c (expr_size): Likewise.
2643 * expr.h (placeholder_list, find_placeholder): Deleted.
2644 * expr.c (store_constructor): Likewise.
2645 (get_inner_reference): Likewise. Also don't call find_placeholder.
2646 (placeholder_list, find_placeholder): Deleted.
2647 (is_aligning_offset): Don't handle WITH_RECORD_EXPR, PLACEHOLDER_EXPR.
2648 (expand_expr_real, cases PLACEHOLDER_EXPR, WITH_RECORD_EXPR): Likewise.
2649 (highest_pow2_factor, case WITH_RECORD_EXPR): Remove.
2650 * dojump.c (do_jump, case WITH_RECORD_EXPR): Likewise.
2651 * dwarf2out.c (loc_descriptor_from_tree, case WITH_RECORD_EXPR):
2653 * fold-const.c (invert_truthvalue, case WITH_RECORD_EXPR): Likewise.
2654 (extract_muldiv, case WITH_RECORD_EXPR): Likewise.
2655 * tree.c (expr_align, case WITH_RECORD_EXPR): Likewise.
2656 (contains_placeholder_p): Don't handle WITH_RECORD_EXPR.
2657 Clean up by using first_rtl_op.
2658 (substitute_in_expr): Use SUBSTITUTE_IN_EXPR for recursive call.
2659 (substitute_placeholder_in_expr): New function.
2660 * tree.def (WITH_RECORD_EXPR): Deleted.
2661 * tree.h (SUBSTITUTE_IN_EXPR, SUBSTITUTE_PLACEHOLDER_IN_EXPR): New.
2662 (substitute_placeholder_in_expr): New.
2664 2004-03-21 Andrew Pinski <pinskia@gcc.gnu.org>
2666 * dojump.c (prefer_and_bit_test): Fix which part of
2667 the and_test is replaced.
2669 2004-03-21 Joseph S. Myers <jsm@polyomino.org.uk>
2671 * frontends.texi: Add missing line.
2673 2004-03-21 Zack Weinberg <zack@codesourcery.com>
2674 Chris Devers <cdevers@pobox.com>
2675 Joseph S. Myers <jsm@polyomino.org.uk>
2677 * doc/frontends.texi: Rewrite.
2678 * doc/gcc.texi: Update last modification date.
2680 2004-03-21 Josef Zlomek <zlomekj@suse.cz>
2682 * cfgrtl.c (cfg_layout_redirect_edge_and_branch): Print the debug
2683 message before redirecting the edge.
2685 2004-03-20 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2687 * emit-rtl.c (set_mem_attributes_minus_bitpos): Set MEM_POINTER
2689 * explow.c (force_not_mem): Set REG_POINTER flag according to
2691 * rtl.h (MEM_POINTER): New macro.
2692 (struct rtx_def): Use integrated for MEM_SCALAR_P and frame_related
2695 2004-03-20 Roger Sayle <roger@eyesopen.com>
2698 * cse.c (fold_rtx): Avoid substituting constants into unary
2699 conversion operations.
2701 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2703 * fold-const.c (fold): Replace "expr" with "t".
2705 2004-03-20 Ian Lance Taylor <ian@wasabisystems.com>
2708 * c-typeck.c (tagged_types_tu_compatible_p): Don't use
2709 DECL_ORIGINAL_TYPE if there isn't one.
2711 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2713 * fold-const.c (fold): Replace "final_type" with "type".
2714 Remove variable "final_type".
2716 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2718 * fold-const.c (fold): Constify "type".
2719 Replace "TREE_TYPE (t)" with "type".
2721 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2723 * bb-reorder.c, bt-load.c, c-decl.c, cfgcleanup.c, coverage.c,
2724 dwarf2asm.c, ifcvt.c, stor-layout.c, varasm.c: Replace calls
2725 via (*targetm.foo) () with targetm.foo ().
2727 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2730 * doc/install.texi: Add info directory category and entry.
2732 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2734 * fold-const.c (fold): Replace "t" with "tem" where it is used
2735 as a temporary variable. Remove "orig_t" and all of its uses.
2737 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2739 * fold-const.c (fold): Remove variable "invert".
2740 Move the handling of relational expressions that can be folded
2742 (fold_relational_const): ... here.
2743 (tree_expr_nonzero_p): New.
2745 2004-03-20 Joseph S. Myers <jsm@polyomino.org.uk>
2748 * builtins.def (nan, nanf, nanl, nans, nansf, nansl): Change to
2751 2004-03-20 Richard Sandiford <rsandifo@redhat.com>
2753 * Makefile.in (dojump.o): Depend on $(GGC_H) and dojump.h.
2754 (GTFILES): Add $(srcdir)/dojump.h.
2755 (gt-dojump.h): New dependency.
2756 * dojump.c (and_reg, and_test, shift_test): New static variables.
2757 (prefer_and_bit_test): New function.
2758 (do_jump): Use it to choose between (X & (1 << C)) and (X >> C) & 1.
2760 2004-03-20 Kazu Hirata <kazu@cs.umass.edu>
2762 * c-common.c, cfgcleanup.c, cgraphunit.c, c-pretty-print.c,
2763 expmed.c, ggc-common.c, jump.c, passes.c, recog.c, regmove.c,
2764 reorg.c, tree.h: Fix comment typos.
2766 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2768 * alias.c, attribs.c, bt-load.c, builtins.c, c-common.c,
2769 c-decl.c, c-objc-common.c, c-typeck.c, calls.c, cfglayout.c,
2770 cse.c, dbxout.c, dwarf2out.c, except.c, final.c,
2771 haifa-sched.c, integrate.c, passes.c, rtlanal.c, sched-rgn.c,
2772 sched-vis.c, simplify-rtx.c, stor-layout.c, tree.c, varasm.c,
2773 vmsdbgout.c: Replace calls via (*targetm.foo) () with
2776 2004-03-19 Ziemowit Laski <zlaski@apple.com>
2778 * config/rs6000/altivec.h (vec_dst, vec_dstst, vec_dststt,
2779 vec_dstt, vec_sld, vec_splat): Add prototypes, marked with
2780 always_inline attribute.
2781 * config/rs6000/rs6000.c (altivec_expand_dst_builtin):
2782 Treat expansion as completed even if literal argument is
2783 invalid (so that other expansions are not tried in vain).
2785 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2787 * loop-doloop.c (add_test): Replace GEN_INT (0) with
2790 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2792 * fold-const.c (fold) <ABS_EXPR>: Move the handling of constants
2794 (fold_abs_const): ... here.
2796 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2798 * tree.h (TYPE_ARRAY_MAX_SIZE): Use type.maxval directly.
2800 2004-03-19 Denis Chertykov <denisc@overta.ru>
2803 * config/avr/avr.md ("call_insn"): Handle explicit integer
2805 (call_value_insn): Likewise.
2807 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2809 * tree.c (substitute_in_expr): Rewrite to simplify and be more generic.
2811 2004-03-19 Kazu Hirata <kazu@cs.umass.edu>
2813 * fold-const.c (negate_expr): Move the handling of constants
2815 (fold_negate_const): ... here.
2817 2004-03-19 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2819 * langhooks-def.h (LANG_HOOKS_HASH_TYPES): New macro and hook.
2820 * langhooks.h (struct lang_hooks_for_types): New field hash_types.
2821 * tree.c (debug_no_type_hash): Deleted.
2822 (type_hash_canon): Abort if passed a variant.
2823 Check lang_hooks.types.hash_types.
2824 (build_type_no_quals): Copy mode of POINTER_TYPE and REFERENCE_TYPE.
2825 (build_array_type): Remove unnecessary allocation of pointer type.
2826 (build_complex_type): Properly qualify resulting type.
2828 2004-03-19 Paolo Bonzini <bonzini@gnu.org>
2830 * config/rs6000/rs6000.c (rs6000_init_builtins): Fix typo.
2832 2004-03-19 Richard Sandiford <rsandifo@redhat.com>
2834 * expmed.c (choose_mult_variant, expand_mult_const): New, split from...
2835 (expand_mult): ...here.
2836 (extract_high_half): New, split out from expand_mult_highpart.
2837 (expand_highpart_optab): Likewise. Don't clobber target prematurely.
2838 (expand_highpart): Evaluate the cost of a shift/add sequence,
2839 then see if any of the specialized optabs are cheaper.
2841 2004-03-18 Ian Lance Taylor <ian@wasabisystems.com>
2843 * mklibgcc.in: Remove obsolete MAYBE_USE_COLLECT2.
2845 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2847 * convert.c (convert_to_real): Add more math builtins.
2849 2004-03-18 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2851 * convert.c (convert_to_real): Reformat using switch stmt.
2853 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2855 * c-common.c (pointer_int_sum): Do not complain about using
2856 pointers to pointers-to-members.
2858 2004-03-18 Kazu Hirata <kazu@cs.umass.edu>
2860 * system.h (MD_ASM_CLOBBERS): Move to "Old target macros that
2861 have moved to the target hooks structure".
2863 2004-03-18 James E Wilson <wilson@specifixinc.com>
2865 * config/mips/mips.md (type): Split move into arith and fmove. Split
2866 hilo into mthilo and mfhilo. Add trap. Delete icmp. Fix all uses.
2867 * config/mips/5400.md (ir_vr54_hilo, ir_vr54_arith, ir_vr54_fabs):
2869 * config/mips/5500.md (ir_vr55_hilo, ir_vr55_arith, ir_vr55_fabs):
2871 * config/mips/7000.md (rm7_int_other, rm7_mthilo, rm7_mfhilo,
2872 rm7_fp_quick): Likewise.
2873 * config/mips/9000.md (rm9k_int, rm9k_mfhilo, rm9k_mthilo,
2874 rm9k_fquick): Likewise.
2875 * config/mips/sr71k.md (ir_sr70_hilo, ir_sr70_arith, ir_sr70_fabs):
2877 (ir_sr70_icmp): Delete.
2879 2004-03-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2881 * tree.h (TREE_CHECK2, TREE_CHECK3, TREE_CHECK5): New macros.
2882 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New decl.
2883 (FUNC_OR_METHOD_CHECK, SET_ARRAY_OR_VECTOR_CHECK): New macros.
2884 (REC_OR_UNION_CHECK, NUMERICAL_TYPE_CHECK): Likewise.
2885 (TYPE_VALUES, TYPE_DOMAIN, TYPE_FIELDS, TYPE_METHODS, TYPE_VFIELD):
2886 Protect with proper check.
2887 (TYPE_ARG_TYPES, TYPE_METHOD_BASETYPE, TYPE_OFFSET_BASETYPE): Likewise.
2888 (TYPE_MIN_VALUE, TYPE_MAX_VALUE): Likewise.
2889 * tree.c (type_hash_eq): Rewrite to access proper fields for each type.
2890 (tree_check2_failed, tree_check3_failed, tree_check5_failed): New.
2891 * c-typeck.c (build_array_ref): Use TYPE_DOMAIN, not TYPE_VALUES.
2892 * dwarf2out.c (gen_enumeration_type_die): Use TYPE_VALUES,
2894 * stor-layout.c (set_sizetype): Use TYPE_ORIG_SIZE_TYPE.
2896 2004-03-18 Mostafa Hagog <mustafa@il.ibm.com>
2898 * gcse.c (eliminate_partially_redundant_loads): Reject change if
2899 dest is set between beginning and current insn.
2901 2004-03-18 Mark Mitchell <mark@codesourcery.com>
2903 * c-decl.c (grokdeclarator): Do not complain about redeclaring
2904 visible "static" identifiers "extern" in a local scope.
2905 * dwarf2out.c (loc_descriptor_from_tree): Handle pre- and
2906 post-increments/decrements.
2908 2004-03-18 Bob Wilson <bob.wilson@acm.org>
2910 * config/xtensa/xtensa.c (current_function_arg_words): Delete.
2911 (xtensa_builtin_saveregs): Use current_function_args_info.arg_words.
2912 (xtensa_va_start): Remove assignment to current_function_arg_words.
2914 2004-03-18 Richard Sandiford <rsandifo@redhat.com>
2916 * alias.c (record_set): Detect the case where a register is assigned
2917 a new value that has the same base term as the old one.
2919 2004-03-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2921 * doloop.c: Removed.
2922 * loop-doloop.c: New file.
2923 * Makefile.in (doloop.o): Remove.
2924 (loop-doloop.o): New.
2925 * cfgloop.h (get_loop_level, doloop_optimize_loops): Declare.
2926 * cfgloopanal.c (get_loop_level): New function.
2927 * loop-iv.c (iv_number_of_iterations): Handle case when loop
2928 is leaved immediatelly.
2929 * loop.c (strength_reduce): Do not call doloop optimization.
2930 * loop.h (LOOP_BCT): Removed.
2931 * passes.c (rest_of_handle_loop_optimize): Do not use LOOP_BCT.
2932 (rest_of_handle_loop2): Call doloop_optimize_loops.
2933 (rest_of_compilation): Test for optimizations moved to
2934 rest_of_handle_loop2.
2936 2004-03-17 Fariborz Jahanian <fjahanian@apple.com>
2938 * config/rs6000/rs6000.c (rs6000_stack_info): correct reg_size
2940 (rs6000_emit_prologue): Ditto.
2941 (rs6000_emit_epilogue): Ditto.
2942 * config/rs6000/rs6000.h: Definition of DWARF_CIE_DATA_ALIGNMENT
2943 macro for mixed mode.
2945 2004-03-18 Jan Hubicka <jh@suse.cz>
2947 * predict.c (propagate_freq): Compute correctly frequency of
2950 2004-03-17 Eric Christopher <echristo@redhat.com>
2952 * builtins.c (apply_args_size): Use reg_raw_mode.
2953 (apply_result_size): Ditto.
2955 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2958 * config/rtems.h: Add STD_LIB_SPEC and LIB_SPEC.
2960 2004-03-17 Jakub Jelinek <jakub@redhat.com>
2962 * config/rs6000/t-linux64 (bispecs): Don't add -mlong-double-128 for
2963 32-bit builds when defaulting to 32-bit.
2965 2004-03-17 Jan Hubicka <jh@suse.cz>
2967 * cfgrtl.c (rtl_create_basic_block): Pre-allocate basic_block_info
2970 2004-03-17 James E Wilson <wilson@specifixinc.com>
2972 * config/mips/mips.md (zero_extendsidi2): Add length attribute.
2973 (hazard_nop): Change type to nop.
2974 (type): Split arith into arith, shift, slt, clz. Delete darith.
2975 Fix all uses. Change arith to multi if more than one insn emitted.
2976 * config/mips/5400.md (ir_vr54_arith): Likewise.
2977 * config/mips/5500.md (ir_vr55_arith): Likewise.
2978 * config/mips/7000.md (rm7_int_other): Likewise.
2979 * config/mips/9000.md (rm9k_int): Likewise.
2980 * config/mips/sr71k.md (ir_sr70_arith): Likewise.
2982 2004-03-17 Joel Brobecker <brobecker@gnat.com>
2984 * dwarf2out.c (subrange_type_die): Define new variable "subtype"
2985 to hold the subtype tree instead of recomputing it several times.
2987 2004-03-17 Kazu Hirata <kazu@cs.umass.edu>
2989 * config/mn10300/mn10300.c (notice_update_cc): Don't handle
2991 * config/mn10300/mn10300.md (cc): Remove "invert".
2993 2004-03-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2995 * builtins.c (integer_valued_real_p): Add builtin rint.
2996 (fold_builtin): Likewise.
2997 * convert.c (convert_to_real): Likewise.
2999 * convert.c (convert_to_real): Fix typos in `long double'
3002 2004-03-16 Mark Mitchell <mark@codesourcery.com>
3005 * fold-const.c (fold): Set TREE_NO_UNUSED_WARNING on implicitly
3006 generated COMPOUND_EXPRs.
3008 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3010 * config/h8300/t-rtems (h8300-*-rtems*): New.
3012 2004-03-16 Eric Christopher <echristo@redhat.com>
3014 * doc/cppopts.texi(fwide-exec-charset): Fix typo.
3016 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3018 * config/i386/i386-protos.h: Add a prototype for
3019 ix86_reverse_condition.
3020 * config/i386/i386.c (ix86_reverse_condition): New.
3021 * config/i386/i386.h (REVERSE_CONDITION): Use
3022 ix86_reverse_condition.
3023 * config/i386/i386.md: Use ix86_reverse_condition instead of
3026 2004-03-16 J. Brobecker <brobecker@gnat.com>
3028 * dwarf2out.c (loc_descriptor_from_tree): Add handling for MIN_EXPR.
3030 2004-03-16 Nathanael Nerode <neroden@gcc.gnu.org>
3033 * Makefile.in: Pass $(INCLUDES) down to libgcc.mk explicitly.
3035 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3037 * c-common.c (c_common_type_for_mode): Build vector types on
3039 (handle_mode_attribute): Deprecate using the mode attribute
3040 to create vector types. Fix indentation.
3041 (vector_type_node_list): Remove.
3042 (handle_vector_size_attribute): Create vector types on demand.
3043 Strip a NON_LVALUE_EXPR from the attribute if there is one.
3044 * c-typeck.c (comptypes): Make vector types compatible if they
3045 have the same underlying mode.
3046 (convert_for_assignment): Use comptypes to convert between
3048 * tree.c (build_common_tree_nodes_2): Do not create vector types.
3049 * config/arm/arm.c (arm_init_iwmmxt_builtins): Create necessary
3051 * tree.h: Remove vector types.
3052 * config/i386/i386.c (i386_init_mmx_sse_builtins): Likewise.
3053 * config/rs6000/rs6000.c (rs6000_init_builtins): Likewise.
3054 (V16QI_type_node, V2SI_type_node, V2SF_type_node, V4HI_type_node,
3055 V4SI_type_node, V4SF_type_node, V8HI_type_node): New globals.
3056 * doc/extend.texi (Vector Types): Document how to use the
3057 vector_size attribute to create vectors, rather than mode.
3059 * config/arm/mmintrin.h: Use vector_size attribute, not mode.
3060 * config/i386/emmintrin.h: Likewise.
3061 * config/i386/mmintrin.h: Likewise.
3062 * config/i386/xmmintrin.h: Likewise.
3063 * config/sh/ushmedia.h: Likewise.
3065 2004-03-16 Kazu Hirata <kazu@cs.umass.edu>
3067 * config/freebsd-spec.h, config/arc/arc-protos.h,
3068 config/arm/aout.h, config/arm/elf.h, config/arm/freebsd.h,
3069 config/arm/linux-gas.h, config/arm/semi.h,
3070 config/cris/cris-protos.h, config/i386/xm-djgpp.h,
3071 config/ia64/freebsd.h, config/mips/7000.md,
3072 config/mips/9000.md, config/ns32k/ns32k-protos.h,
3073 config/sparc/pbd.h: Update copyright.
3075 2004-03-16 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
3078 * config.gcc: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff.
3080 2004-03-16 Paolo Bonzini <bonzini@gnu.org>
3082 * combine.c (combine_simplify_rtx): Remove the "last"
3083 parameter and its documentation. Adjust recursive calls.
3084 (simplify_logical): Always perform the only simplification
3085 controlled by "last", if the simplified expression is
3087 (try_combine): Do not pass the "last" parameter to
3088 combine_simplify_rtx.
3090 2004-03-16 Richard Sandiford <rsandifo@redhat.com>
3093 * config/mips/mips.md (UNSPEC_GP): New constant.
3094 * config/mips/mips.c (CONST_GP_P): Expect the CONST to contain
3095 an UNSPEC instead of (reg $gp).
3096 (mips16_gp_pseudo_reg): Change accordingly.
3097 (print_operand): Print $gp directly when handling CONST_GP_P.
3099 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3101 * config.gcc, config/m68k/linux.h: Implement with-cpu for m68k-linux.
3102 * longlong.h: Make code 68060 clean when compiling for m68060.
3104 2004-03-16 Richard Zidlicky <rz@linux-m68k.org>
3106 * config/m68k/m68k.md: Fix constraints for bitfield instructions.
3107 * doc/md.texi: Clarify description of "i" constraint.
3109 2004-03-15 James E Wilson <wilson@specifixinc.com>
3111 * config/mips/mips.md (type): Split load into load, fpload, fpidxload.
3112 Split store into store, fpstore, fpidxstore. Fix all uses.
3113 * config/mips/5400.md (ir_vr54_load, ir_vr54_store, ir_vr54_fstore):
3115 * config/mips/5500.md (ir_vr55_load, i5_vr55_store): Likewise.
3116 * config/mips/7000.md (rm7_ld, rm7_st): Likewise.
3117 * config/mips/9000.md (rm9k_load, rm9k_store): Likewise.
3118 * config/mips/sr71k.md (ir_sr70_load, ir_sr70_store, ir_sr70_fload,
3119 ir_sr70_fstore): Likewise.
3121 2004-03-15 Richard Henderson <rth@redhat.com>
3124 * except.c (collect_one_action_chain): Record action for cleanup
3125 outer of exception spec.
3127 2004-03-15 Ian Lance Taylor <ian@wasabisystems.com>
3129 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3130 Fix the check for abort and only do the mmap if we can.
3132 2004-03-15 Eric Botcazou <ebotcazou@act-europe.fr>
3134 * config/sparc/sparc.h: Rework comments about the code model
3135 in 64-bit environment and the mode 'Pmode'.
3136 * doc/invoke.texi (SPARC options): Rework description of the
3137 different code models supported in 64-bit environment.
3139 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3141 * defaults.h (REVERSIBLE_CC_MODE): Define.
3142 * jump.c (reversed_comparison_code_parts): Don't check if
3143 REVERSIBLE_CC_MODE is defined.
3145 2004-03-15 Kazu Hirata <kazu@cs.umass.edu>
3147 * c-incpath.c, c-incpath.h, c-pch.c, c.opt, cppexp.c,
3148 et-forest.h, genattr.c, ggc-none.c, hosthooks-def.h,
3149 hosthooks.h, params.h, ra-colorize.c, web.c,
3150 config/darwin-c.c, config/alpha/freebsd.h, config/arm/pe.c,
3151 config/avr/avr-protos.h, config/avr/avr.md,
3152 config/fr30/fr30-protos.h, config/fr30/fr30.md,
3153 config/h8300/fixunssfsi.c, config/i386/darwin.h,
3154 config/i386/freebsd.h, config/i386/freebsd64.h,
3155 config/ia64/hpux.h, config/ia64/unwind-ia64.c,
3156 config/ip2k/libgcc.S, config/m32r/xm-m32r.h,
3157 config/mmix/mmix-modes.def, config/ns32k/netbsd.h,
3158 config/ns32k/ns32k.md, config/pa/pa64-hpux.h,
3159 config/pa/pa64-regs.h, config/rs6000/aix41.h,
3160 config/rs6000/aix43.h, config/rs6000/host-darwin.c,
3161 config/sparc/aout.h, config/sparc/freebsd.h,
3162 config/sparc/litecoff.h, config/vax/vax-protos.h,
3163 doc/hostconfig.texi, doc/include/gcc-common.texi: Update
3166 2004-03-15 Paul Brook <paul@codesourcery.com>
3168 * config/arm/arm.c (thumb_expand_prologue): Tie prologue insns to fp.
3170 2004-03-15 Gabriel Dos Reis <gdr@integrable-solutions.net>
3172 * c-pretty-print.c (pp_c_semicolon): Fix formatting.
3173 (pp_c_cv_qualifier): Document.
3174 (pp_c_space_for_pointer_operator): Likewise.
3175 (pp_c_integer_constant): Likewise.
3176 (pp_c_identifier): Likewise.
3177 (pp_c_init_declarator): Don't print function body.
3179 2004-03-14 Joseph S. Myers <jsm@polyomino.org.uk>
3181 * doc/contrib.texi, doc/extend.texi, doc/gcov.texi,
3182 doc/install.texi, doc/invoke.texi, doc/makefile.texi,
3183 doc/sourcebuild.texi, doc/tm.texi, doc/trouble.texi: Capitalize
3184 "gcc", "g++" and "g77" or mark up with appropriate markup. Adjust
3185 wording and grammar.
3187 2004-03-14 Roger Sayle <roger@eyesopen.com>
3189 * alias.c (get_alias_set): Replace calls via (*lang_hooks.foo) ()
3190 with lang_hooks.foo ().
3191 * builtins.c (expand_builtin_va_arg): Likewise.
3192 * c-common.c (fname_as_string, c_common_truthvalue_conversion,
3193 c_common_type_for_mode, c_common_nodes_and_builtins,
3194 handle_mode_attribute, handle_vector_size_attribute): Likewise.
3195 * c-convert.c (convert): Likewise.
3196 * c-format.c (check_format_types): Likewise.
3197 * c-objc-common.c (c_tree_printer): Likewise.
3198 * c-typeck.c (build_unary_op, build_conditional_expr,
3199 build_binary_op): Likewise.
3200 * calls.c (try_to_integrate, expand_call,
3201 emit_library_call_value_1): Likewise.
3202 * cgraph.c (cgraph_node_name, cgraph_function_possibly_inlined_p):
3204 * cgraphunit.c (record_call_1, cgraph_analyze_function,
3205 cgraph_expand_function): Likewise.
3206 * convert.c (convert_to_pointer, convert_to_integer): Likewise.
3207 * coverage.c (build_fn_info_type, build_ctr_info_type,
3208 build_gcov_info, create_coverage): Likewise.
3209 * dbxout.c (dbxout_init): Likewise.
3210 * diagnostic.c (diagnostic_report_current_function): Likewise.
3211 * dojump.c (do_jump): Likewise.
3212 * dwarf2out.c (dwarf2_name): Likewise.
3213 * except.c (init_eh): Likewise.
3214 * explow.c (expr_size, int_expr_size): Likewise.
3215 * expmed.c (make_tree, const_mult_add_overflow_p, expand_mult_add):
3217 * expr.c (store_expr, store_constructor, safe_from_p,
3218 expand_expr_real, do_store_flag, try_casesi): Likewise.
3219 * function.c (push_function_context_to, pop_function_context_from,
3220 free_after_parsing, assign_stack_local_1, assign_stack_temp_for_type,
3221 put_var_into_stack, allocate_struct_function, current_function_name):
3223 * integrate.c (copy_decl_for_inlining, expand_inline_function):
3225 * langhooks.c (lhd_clear_binding_stack, write_global_declarations,
3226 lhd_print_error_function): Likewise.
3227 * opts.c (handle_option, decode_options): Likewise.
3228 * passes.c (open_dump_file): Likewise.
3229 * print-tree.c (print_node): Likewise.
3230 * stmt.c (expand_fixup, fixup_gotos, expand_asm_operands,
3231 expand_decl_cleanup, emit_case_nodes): Likewise.
3232 * stor-layout.c (variable_size): Likewise.
3233 * toplev.c (announce_function, wrapup_global_declarations,
3234 check_global_declarations, compile_file, default_tree_printer,
3235 process_options, lang_dependent_init, finalize): Likewise.
3236 * tree-dump.c (dequeue_and_dump): Likewise.
3237 * tree-inline.c (remap_decl, remap_block, copy_body_r,
3238 initialize_inlined_parameters, declare_return_variable,
3239 inlinable_function_p, expand_call_inline, optimize_inline_calls,
3240 walk_tree, copy_tree_r): Likewise.
3241 * tree-optimize.c (tree_rest_of_compilation): Likewise.
3242 * tree.c (decl_assembler_name, tree_size, size_in_bytes, staticp,
3243 unsafe_for_reeval, get_unwidened, get_narrower, get_callee_fndecl,
3244 variably_modified_type_p, dump_tree_statistics): Likewise.
3245 * varasm.c (assemble_variable, compare_constant, copy_constant,
3246 force_const_mem, compute_reloc_for_constant, output_constant,
3247 output_addressed_constants, initializer_constant_valid_p): Likewise.
3249 2004-03-14 Kelley Cook <kcook@gcc.gnu.org>
3251 * doc/install.texi: Make autoconf 2.13 the exception, not the rule.
3253 2004-03-14 Andreas Tobler <a.tobler@schweiz.ch>
3255 * doc/install.texi: Reflect autoconf and automake version for
3256 libffi. Update autoconf version to 2.59.
3258 2004-03-13 Roger Sayle <roger@eyesopen.com>
3260 * fold-const.c (negate_expr, operand_equal_for_comparison_p,
3261 optimize_bit_field_compare, decode_field_reference, all_ones_mask_p,
3262 make_range, build_range_check, fold_range_test, unextend,
3263 constant_boolean_node, fold_binary_op_with_conditional_arg,
3264 fold_truthop, fold_mathfn_compare, fold_inf_compare,
3265 fold_single_bit_test, fold): Replace calls via (*lang_hooks.foo) ()
3266 with lang_hooks.foo ().
3268 2004-03-14 Richard Earnshaw <rearnsha@arm.com>
3270 * arm.h (EXTRA_CONSTRAINT_STR_ARM): Update comment.
3272 2004-03-13 Dara Hazeghi <dhazeghi@yahoo.com>
3274 * doc/install.texi: Note status of -fnew-ra.
3276 2004-03-13 Eric Botcazou <ebotcazou@libertysurf.fr>
3279 * expr.c (store_expr): Call emit_queue before generating the move
3280 from the temporary to the original target. Protect the temporary
3283 2004-03-13 Jakub Jelinek <jakub@redhat.com>
3286 * config/s390/s390.c (legitimize_pic_address): Don't abort on UNSPEC
3287 other than UNSPEC_GOTOFF.
3289 2004-03-13 Richard Earnshaw <rearnsha@arm.com>
3291 * arm.c (arm_legitimate_address_p): New argument, OUTER. Pass through
3292 to arm_legitimate_index_p. Update all callers with SET as default
3294 (arm_legitimate_index_p): New argument, OUTER. Restrict the index
3295 range if OUTER is a sign-extend operation on QImode. Correctly
3296 reject shift operations on sign-extended QImode addresses.
3297 (bad_signed_byte_operand): Delete.
3298 (arm_extendqisi_mem_op): New function.
3299 * arm.h (EXTRA_CONSTRAINT_ARM): Delete. Replace with...
3300 (EXTRA_CONSTRAINT_STR_ARM): ... this. Handle extended address
3302 (CONSTRAINT_LEN): New.
3303 (EXTRA_CONSTRAINT): Delete. Replace with...
3304 (EXTRA_CONSTRAINT_STR): ... this.
3305 (PREDICATE_CODES): Remove bad_signed_byte_operand.
3306 * arm.md (extendqihi_insn): Use new constraint Uq. Rework. Length
3307 is now always default.
3308 (define_splits for bad sign-extend loads): Delete.
3309 (arm_extendqisi, arm_extendqisi_v5): Likewise.
3310 * arm/vfp.md (arm_movsi_vfp, arm_movdi_vfp, movsf_vfp, movdf_vfp):
3311 Rework 'U' constraint to 'Uv'.
3312 * arm-protos.h: Remove bad_signed_byte_operand. Add
3313 arm_extendqisi_mem_op.
3314 * doc/md.texi (ARM constraints): Rename VFP constraint (now Uv).
3317 2004-03-13 Alan Modra <amodra@bigpond.net.au>
3319 * config/rs6000/rs6000.c (rs6000_va_arg): Replace SPLIT_COMPLEX_ARGS
3320 with targetm version.
3323 * config/rs6000/rs6000.h (UNITS_PER_ARG, RS6000_ARG_SIZE): Delete.
3324 (HARD_REGNO_MODE_OK): Disallow TFmode for fp31.
3325 * config/rs6000/rs6000.c (rs6000_arg_size): New function.
3326 Update all users of RS6000_ARG_SIZE.
3327 (function_arg_advance): Count fregno using mode size.
3328 (function_arg): Handle long double split over regs and memory.
3329 (function_arg_partial_nregs): Likewise.
3330 (rs6000_va_arg): Repackage complex args.
3332 2004-03-13 Dean Ferreyra <dferreyra@igc.org>
3335 * config/avr/avr.c (avr_progmem_p): Add "attributes" parameter.
3336 (avr_insert_attributes): Pass "attributes" to avr_progmem_p.
3337 * config/avr/avr-protos.h (avr_progmem_p): Change prototype.
3339 2004-03-12 Jakub Jelinek <jakub@redhat.com>
3341 * config/rs6000/rs6000-protos.h (rs6000_output_dwarf_dtprel): Add
3343 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): New.
3344 * config/rs6000/rs6000.h (ASM_OUTPUT_DWARF_DTPREL): Define.
3346 2003-03-12 Andrew Pinski <apinski@apple.com>
3348 * config/rs6000/host-darwin.c (darwin_rs6000_gt_pch_use_address):
3349 Use ret instead of result. Use addr instead of base.
3351 2004-03-12 David Edelsohn <edelsohn@gnu.org>
3353 * doc/install.texi (*-ibm-aix*): Document assembler and achiver
3354 fixes required by libstdc++ and update installation instructions
3357 2004-03-12 Danny Smith <dannysmith@users.sourceforge.net>
3359 * config/i386/winnt.c (i386_pe_strip_name_encoding_full): Strip
3360 leading '@' on fastcall symbols before stripping suffix.
3362 2004-03-12 Roger Sayle <roger@eyesopen.com>
3364 * combine.c (unmentioned_reg_p): New function to check whether an
3365 expression is a "specialization" of another, i.e. that there are
3366 no registers or memory references mentioned in the first that don't
3367 appear in the second.
3368 (unmentioned_reg_p_1): New helper subroutine of unmentioned_reg_p.
3369 (combine_instructions): Also try combining instructions using the
3370 REG_EQUAL note from a preceding log-linked instruction.
3372 2004-03-12 Roger Sayle <roger@eyesopen.com>
3374 * config/i386/i386.c (ix86_split_ashrdi): Optimize shift by 63.
3376 2004-03-12 Matt Austern <austern@apple.com>
3378 * target.h (struct gcc_target): New target hook, unwind_label.
3379 * target-def.h (TARGET_ASM_EMIT_UNWIND_LABEL): New hook.
3380 * output.h (default_emit_unwind_label): New function.
3381 * default.h (TARGET_EXPLICIT_INSTANTIATIONS_ONE_ONLY): New macro.
3382 (TARGET_USES_WEAK_UNWIND_INFO): New target macro.
3383 (TARGET_SUPPORTS_HIDDEN): New target macro.
3384 * dwarf2out.c (struct dw_fde_struct): Add field for function decl
3385 that corresponds to this FDE.
3386 (FRAME_BEGIN_LABEL): Allow target to override default label.
3387 (output_call_frame_info): If FDEs are linknonce, then use extra
3388 indirection for FDE encoding, output a label for each FDE, and
3389 output an empty label for each function without an FDE.
3390 (dwarf2out_begin_prologue): Set up decl field when creating an FDE.
3391 * varasm.c (globalize_decl): Call ASM_MAKE_LABEL_LINKONCE for
3392 decls with DECL_ONE_ONLY set, if that macro is defined.
3393 (make_decl_one_only): Don't use DECL_COMMON if we're compiling
3394 for a SUPPORTS_ONE_ONLY target.
3395 * config/darwin-protos.h (darwin_unique_section): Declare.
3396 (darwin_asm_named_section): Likewise.
3397 (darwin_section_type_flags): Likewise.
3398 (darwin_non_lazy_pcrel): Likewise.
3399 (darwin_emit_unwind_label): Likewise.
3400 (darwin_make_decl_one_only): Likewise.
3401 * config/darwin.c (machopic_finish): Get rid of tweak that
3402 eliminate stubs for symbols that are defined.
3403 (darwin_encode_section_info): Don't treat weak functions as defined.
3404 (darwin_make_decl_one_only): Define.
3405 (darwin_asm_named_section): Likewise.
3406 (darwin_section_type_flags): Likewise.
3407 (darwin_unique_section): Likewise.
3408 (darwin_emit_unwind_label): Likewise.
3409 (darwin_non_lazy_pcrel): Likewise.
3410 (darwin_asm_output_dwarf_delta): Difference between two labels is
3411 local only if both labels are local.
3412 * config/darwin.h (MAKE_DECL_ONE_ONLY): Define.