1 2003-12-13 Jan Hubicka <jh@suse.cz>
3 * coverage.c (get_coverage_counts): Use inform instead of warning
6 2003-12-12 Steven Bosscher <stevenb@suse.de>
8 * Makefile.in (opts.o, explow.o): Depend on langhooks.h
10 2003-12-12 Geoffrey Keating <geoffk@apple.com>
12 * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
13 <powerpc-*-darwin*>: Likewise.
15 2003-12-12 Jakub Jelinek <jakub@redhat.com>
17 * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
18 (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
19 br_loc[7]. Update comment.
20 (MD_HANDLE_UNWABI): Define.
21 * config/ia64/unwind-ia64.c (struct unw_state_record): Add
23 (struct _Unwind_Context): Increase br_loc array size to 8 entries.
24 (desc_abi): Set unwabi.
25 (uw_update_reg_address): Allow br up to 7.
26 (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
27 (uw_install_context): Load b1..b5 from correct locations.
28 Fix insn loading ar.fpsr.
29 * doc/tm.texi: Document MD_HANDLE_UNWABI.
31 2003-12-12 Roger Sayle <roger@eyesopen.com>
34 * loop.c (update_giv_derive): Ignore redundant sets of a biv when
35 calculating how to derive a giv from a biv.
37 2003-12-12 Neil Booth <neil@daikokuya.co.uk>
39 PR preprocessor/12935 preprocessor/12952 preprocessor/13046
40 * cpplib.c (prepare_directive_trad): Clear skipping only in
41 #if and #elif directives.
42 (do_undef): Call the handler even if the identifier is not a macro.
43 * cpptrad.c (scan_parameters): Emit an error message.
44 (_cpp_create_trad_definition): Remember the params list even on
47 2003-12-11 Zack Weinberg <zack@codesourcery.com>
49 * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
50 to inline functions: arm_arm_address_cost, arm_thumb_address_cost
52 (arm_address_cost): Use 'em.
54 2003-12-12 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
56 * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
57 __STDC_VERSION__ to ISO C94 for C++.
59 * fixinc/inclhack.def (alpha_wchar): New fix.
60 * fixinc/fixincl.x: Regenerate.
61 * fixinc/tests/base/wchar.h: New file.
63 2003-12-11 David Mosberger <davidm@hpl.hp.com>
65 * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
66 required by C++ ABI for Itanium.
67 * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
68 * config/t-libunwind-no-eh: New file.
69 * configure.in: Check libunwind for _Unwind_Resume() and if it's
70 present, set libunwind_has_eh_support to "yes".
71 * configure: Regenerate.
72 * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
73 set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
75 2003-12-11 Richard Sandiford <rsandifo@redhat.com>
77 * config/mips/mips.c (mips_global_pointer): Force functions with
78 a nonlocal goto to set up $gp.
80 2003-12-11 James E Wilson <wilson@specifixinc.com>
83 * function.c (gen_mem_addressof): When no decl, explicitly clear flag
86 2003-12-12 Nick Clifton <nickc@redhat.com>
88 * config/m32r/m32r.c: Convert to ISO-C
90 2003-12-12 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
92 * doc/invoke.texi: Replace Mitsubishi with Renesas.
93 * config/m32r/m32r.h: Ditto.
94 * config/m32r/m32r.c: Ditto.
95 * config/m32r/m32r.md: Ditto.
97 2003-12-11 Steven Bosscher <steven@gcc.gnu.org>
99 * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
100 (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
101 (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
102 (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
103 fields of a basic block.
104 * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
105 cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
106 cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
107 final.c, flow.c, function.c, gcse.c, global.c, graph.c,
108 haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
109 loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
110 ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
111 regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
112 sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
113 config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
114 accessing the `head' and `end' fields of a basic block directly.
116 * gengtype.c: Teach about "void**" pointers and "void *" function
117 types. Fixes earlier commit.
119 2003-12-10 Geoffrey Keating <geoffk@apple.com>
121 * doc/extend.texi (Vector Extensions): Document that bitwise
122 operations also work on vectors.
124 2003-12-10 Richard Earnshaw <rearnsha@arm.com>
126 * arm.md: New split patterns for optimizing bitfield accesses.
128 2003-12-10 Steven Bosscher <stevenb@suse.de>
130 * README.Portability: Remove K+R section.
132 * gengtype-lex.l: Teach about "void**" pointers and
133 "void*" function types.
135 2003-12-10 Eric Botcazou <ebotcazou@libertysurf.fr>
138 * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
139 manually if one can do that with only one instruction.
141 2003-12-10 Nick Clifton <nickc@redhat.com>
143 * config.gcc (arm-linux): Include linux.h in tm_file so that
144 LINUX_TARGET_OS_CPP_BUILTINS is defined.
145 * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
147 2003-12-09 James E Wilson <wilson@specifixinc.com>
149 * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
151 2003-12-09 Matt Austern <austern@apple.com>
154 * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
156 2003-12-09 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
158 * config/m32r/m32r.h: Add support for m32r2 processor. Including
159 a new command line option -m32r2 to select it.
160 * config/m32r/m32r.c: Add support for the new processor variant.
161 * config/m32r/m32r.md: Likewise.
162 * config/m32r/t-m32r: Add m32r2 multilibs.
163 * doc/invoke.texi: Document the new command line switch.
165 2003-12-08 Kazu Hirata <kazu@cs.umass.edu>
167 * defaults.h (LOCAL_REGNO): Give the default definition.
168 * flow.c (LOCAL_REGNO): Remove.
169 * reload1.c (LOCAL_REGNO): Likewise.
171 2003-12-08 Geoffrey Keating <geoffk@apple.com>
174 * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
175 in floating-point registers between TFmode and DImode.
176 * rs6000.c (rs6000_emit_move): Split moves early.
177 (secondary_reload_class): Random Whitespace Change.
178 (rs6000_split_multireg_move): Support moves involving FP registers.
179 Emit instructions directly.
180 * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
181 * altivec.md: Update for changes to rs6000_split_multireg_move.
182 * rs6000.md: Update for changes to rs6000_split_multireg_move.
183 (movtf_internal): Support moves to/from GPRs.
185 2003-12-08 Stuart Hastings <stuart@apple.com>
187 * config/i386/i386.md: Typo in split of fp-valued if_then_else.
189 2003-12-08 James E Wilson <wilson@specifixinc.com>
192 * expmed.c (extract_bit_field): Only call mode_for_size for scalar
195 2003-12-08 Nathanael Nerode <neroden@gcc.gnu.org>
197 * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
200 2003-12-08 Alexandre Oliva <aoliva@redhat.com>
202 * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
203 by using match_scratch.
206 2003-12-08 Jason Merrill <jason@redhat.com>
207 Daniel Berlin <dberlin@dberlin.org>
210 Support namespaces in DWARF 2 output.
211 * dwarf2out.c (gen_namespace_die): New function.
212 (force_namespace_die, setup_namespace_context): New fns.
213 (declare_in_namespace): New fn.
214 (gen_decl_die): Call declare_in_namespace. Handle namespaces.
215 (dwarf2out_decl): Handle namespaces.
216 (scope_die_for): Pass through a namespace scope.
217 (class_scope_p): Rename to class_or_namespace_scope_p.
218 (gen_subprogram_die, gen_variable_die): Adjust.
219 (gen_struct_or_union_die): Always emit a declaration
220 if context_die is a namespace.
222 2003-12-08 Jan Hubicka <jh@suse.cz>
224 * unwind-pe.h (read_uleb128): Fix handling of large values
225 (read_sleb128): Fix handling of large values
227 2003-12-08 Andrew Pinski <pinskia@physics.uc.edu>
230 * emit-rtl.c (copy_rtx_if_shared): Split out into ...
231 (copy_rtx_if_shared_1): here and optimize the last one
232 in the sequence into tail-recursion.
233 (reset_used_flags): Optimize the last one
234 in the sequence into tail-recursion.
236 2003-12-08 Richard Earnshaw <rearnsha@arm.com>
238 * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
241 2003-12-08 Richard Sandiford <rsandifo@redhat.com>
243 * calls.c (expand_call): Don't try using tail or recursive calls
244 after the function body has been expanded.
246 2003-12-08 Jan Hubicka <jh@suse.cz>
248 * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
250 2003-12-08 Arnaud Charlet <charlet@act-europe.fr>
252 PR ada/13324, PR ada/12614
253 * doc/install.texi: Update requirements for building Ada.
255 2003-12-07 David Edelsohn <edelsohn@gnu.org>
256 Graham Reed <greed@pobox.com>
258 * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
259 (GCC_UNDEF_SYMBOL): Same.
261 2003-12-07 Kazu Hirata <kazu@cs.umass.edu>
263 * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
264 * system.h (FINAL_PRESCAN_LABEL): Poison.
265 * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
267 2003-12-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
269 * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
271 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
273 * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
274 * configure: Regenerate with autoconf 2.13.
276 * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
277 with modern equivalents.
278 * configure: Regenerate.
280 * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
281 * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
282 * configure: Regenerate.
284 * configure: Regenerate with (preferred) autoconf 2.57.
285 * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
287 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
289 PR optimization/12965
290 * caller-save.c (save_call_clobbered_regs): Do not save/restore
291 registers around no-return calls.
293 2003-12-07 Nathanael Nerode <neroden@gcc.gnu.org>
295 * configure.in: Make minimum necessary changes for autoconf 2.5x.
296 * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
297 * configure: Regenerate with autoconf 2.58.
299 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
301 PR optimization/13318
302 * loop.c (express_from): Protect integer division from overflow.
304 2003-12-07 Eric Botcazou <ebotcazou@libertysurf.fr>
306 PR optimization/13060
307 * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
308 replacement already exists. Fix again the whole insn if that fails.
310 2003-12-06 Andrew Pinski <pinskia@physics.uc.edu>
312 * config/rs6000/rs6000.c (macho_branch_islands): Use
313 HOST_WIDE_INT_PRINT_UNSIGNED.
315 2003-12-06 Richard Sandiford <rsandifo@redhat.com>
317 * varasm.c (incorporeal_function_p): New.
318 (assemble_external): Use it as a filter.
319 * config/mips/mips.c (mips_output_external): Don't check for builtin
322 2003-12-06 Richard Earnshaw <reanrsha@arm.com>
324 * arm.md (IOR (COMPARISON) (AND)): New define_splits.
326 2003-12-06 Kelley Cook <kcook@gcc.gnu.org>
328 * Makefile.in (program_transform_cross_name): Delete.
329 (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
330 (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
331 (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
332 (install_cpp, install_driver, install-man, uninstall): Likewise.
334 2003-12-06 Alan Modra <amodra@bigpond.net.au>
337 * basic-block.h (PROP_ASM_SCAN): Define.
338 * final.c (regs_asm_clobbered): New array.
339 * regs.h (regs_asm_clobbered): Declare.
340 * flow.c (life_analysis): Init it.
341 (mark_set_regs): Set PROP_ASM_SCAN for asms.
342 (mark_set_1): Set regs_asm_clobbered.
343 * global.c (global_alloc): Don't set eliminable_regset when
346 2003-12-05 Mark Mitchell <mark@codesourcery.com>
348 * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
351 * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
353 2003-12-05 Andrew Pinski <pinskia@physics.uc.edu>
356 * gcc.c (execute) Increment execution_count when returning
357 early because verbose_only_flag is true.
359 2003-12-05 Per Bothner <pbothner@apple.com>
361 * cppfiles.c (file_hash_hash): New static function.
362 (hash_string_eq): Renamed static function to file_hash_eq.
363 (_cpp_init_files): Create file_hash table with above callbacks.
364 (cpp_included): Must use htab_find_with_hash insead of htab_find.
365 (_cpp_find_find, make_cpp_dir): Must use htab_find_slot_with_hash.
367 2003-12-05 Per Bothner <pbothner@apple.com>
369 * line-map.h (source_location): New typedef.
370 (fileline): Redefined as source_location.
371 (struct line_map, linemap_add, linemap_lookup): Replace filefile
373 * line-map.c (linemap_add, linemap_lookup): Use source_location.
375 2003-12-05 Richard Henderson <rth@redhat.com>
377 * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
378 field to suppress -Wpadded warnings.
380 2003-12-05 Stuart Hastings <stuart@apple.com>
382 * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
384 2003-12-05 Stuart Menefy <stuart.menefy@st.com>
385 J"orn Rennecke <joern.rennecke@superh.com>
388 * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
390 2003-12-05 Roger Sayle <roger@eyesopen.com>
392 * dojump.c (do_jump): If the expression being compared against
393 zero, is the subreg of a promoted variable, perform the comparison
394 in the promoted mode.
395 * simplify-rtx.c (simplify_unary_operation): Optimize sign and
396 zero-extensions of subregs of promoted variables where the
397 extension is identical to that used to promote the variable.
399 2003-12-05 Hans-Peter Nilsson <hp@axis.com>
402 * resource.h (enum mark_resource_type): Remove member MARK_DEST.
403 The only user changed as follows:
404 * resource.c (mark_set_resources) <case SET>: Always recurse for
406 <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
408 <case STRICT_LOW_PART>: Delete, deferring to default code.
410 2003-12-05 Waldek Hebisch <hebisch@math.uni.wroc.pl>
412 * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
413 and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
415 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
417 * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
418 for n32 & n64 abicalls.
420 2003-12-05 Richard Sandiford <rsandifo@redhat.com>
423 * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
424 * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
425 (mips_load_got): Always create a constant MEM.
426 (mips_expand_call): Use load_callsi and load_calldi.
427 * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
428 (load_callsi, load_calldi): New patterns.
430 2003-12-05 Peter Gerwinski <peter@gerwinski.de>
432 * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
434 2003-12-05 Steven Bosscher <stevenb@suse.de>
436 * config/d30v/d30v-protos.h , config/d30v/d30v.c,
437 config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
438 config/fr30/fr30-protos.h, config/fr30/fr30.c,
439 config/i370/i370-protos.h, config/i370/i370.c,
440 config/i960/i960-protos.h, config/i960/i960.c,
441 config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
442 config/m32r/m32r-protos.h, config/m32r/m32r.c,
443 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
444 config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
445 Convert to ISO C90 function declarations and definitions.
447 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
449 * doc/extend.texi (Constructing Calls): Add warning about
450 the limitations of the functions.
452 2003-12-05 Eric Botcazou <ebotcazou@libertysurf.fr>
455 * function.h (struct function): New field 'x_naked_return_label'.
456 * function.c (free_after_compilation): Set it to NULL.
457 (expand_function_end): Emit 'naked_return_label' if it exists.
458 * rtl.h (expand_naked_return): Declare.
459 * stmt.c (expand_naked_return): New function to generate a
460 jump to 'naked_return_label'.
461 * builtins.c (expand_builtin_return): Call expand_naked_return
462 instead of expand_null_return.
463 * config/sparc/sparc.md (untyped_return): Likewise.
465 2003-12-04 Andrew Pinski <pinskia@physics.uc.edu>
468 * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
471 * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
473 2003-12-04 Stuart Hastings <stuart@apple.com>
475 * rs6000.c (output_call, macho_branch_islands,
476 add_compiler_branch_island, no_previous_def, get_previous_label)
477 Revisions of xx_stub functions for branch islands,
478 add -fPIC support for Darwin.
479 * rs6000-protos.h (output_call) Prototype.
480 * rs6000.md Use output_call.
481 * invoke.texi Explain Darwin semantics of -longcall.
482 * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
484 2003-12-04 Richard Henderson <rth@redhat.com>
486 * config/i386/i386.md (addqi3_carry): Use q not r constraints.
487 (subqi3_carry): Likewise.
489 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
491 PR optimization/13260
492 * sh-protos.h (sh_expand_t_scc): Declare.
493 * sh.h (PREDICATE_CODES): Add cmpsi_operand.
494 * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
495 * sh.md (cmpsi): Use cmpsi_operand. If T_REG is compared to
496 something that is not a CONST_INT, copy it into a pseudo register.
497 (subc): Fix description of new T value.
498 (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
499 (sltu, sleu, sgeu): Likewise.
500 (seq, sne): Likewise. Use sh_expand_t_scc.
502 2003-12-04 Nathanael Nerode <neroden@gcc.gnu.org>
504 * configure.in: Generalize the CONFIG_HEADERS pattern under which
506 * configure: Regenerate.
508 * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
509 to avoid trouble when updating to autoconf 2.5x.
510 * configure: Regenerate (with autoconf 2.13 still).
512 2003-12-04 J"orn Rennecke <joern.rennecke@superh.com>
514 * sh.md (truncdiqi2): Use andi opcode for immediate.
515 (reload_outdf+1,reload_outdf+2): Remove constraints.
516 (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
517 (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
518 (fipr, ftrv): Add .s suffix to opcode.
520 2003-12-04 Richard Sandiford <rsandifo@redhat.com>
524 Revert all of the following patch, except the addition of
525 hook_bool_machine_mode_true:
527 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
529 * Makefile.in (targhooks.o, reload.o): Update dependencies.
530 (GTFILES): Add targhooks.c.
531 (gt-targhooks.h): New rule; depend on s-gtype.
532 * target.h (direct_pool_load_p): New hook.
533 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
534 (TARGET_INITIALIZER): Include it.
535 * targhooks.h (default_direct_pool_load_p): Declare.
536 (hook_bool_machine_mode_true): Declare.
537 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
539 (pool_symbol): New variable.
540 (default_direct_pool_load_p): New function.
541 (hook_bool_machine_mode_true): New function.
542 * reload.c: Include target.h.
543 (find_reloads): If an alternative will force a constant into memory,
544 count an extra reload if constant pool symbols are not valid
545 addresses. If an alternative uses memory to move values between
546 registers, count the move as two reloads rather than one.
547 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
548 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
550 2003-12-03 Mark Mitchell <mark@codesourcery.com>
552 * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
553 * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
555 * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
557 2003-12-03 James E Wilson <wilson@specifixinc.com>
559 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
561 * gcc-page.c (extra_order_size_tab): Correct comment.
563 2003-12-03 Kazu Hirata <kazu@cs.umass.edu>
565 * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
566 instead of gen_push_h8300hs.
567 (pop): Call gen_pop_h8300hs_advanced instead of
569 * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
570 * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
571 Tighten the predicate.
572 (*tablejump_h8300hs_normal): Tighten the predicate.
573 (push_h8300hs): Change to
574 push_h8300hs_advanced.
575 (pop_h8300hs): Change to pop_h8300hs_advanced.
577 2003-12-03 Eric Christopher <echristo@redhat.com>
580 * config/mips/mips.h: Ditto. Fix formatting.
582 2003-12-04 Ben Elliston <bje@wasabisystems.com>
584 * future.options: Remove. Move to gnu.org web pages.
586 2003-12-03 Eric Christopher <echristo@redhat.com>
588 * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
592 2003-12-03 Jan Hubicka <jh@suse.cz>
594 PR optimization/12324
595 * toplev.c (rest_of_decl_compilation): Do not deffer when compiling
596 in unit-at-a-time mode.
598 2003-12-03 Jakub Jelinek <jakub@redhat.com>
600 * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
601 read-only field if cleared is 0.
603 2003-12-03 Nathanael Nerode <neroden@gcc.gnu.org>
605 * config.gcc: Mark obsolete targets for GCC 3.4.
607 2003-12-03 Zack Weinberg <zack@codesourcery.com>
609 * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
610 * config.in, configure.in: Regenerate.
611 * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
614 2003-12-03 Alan Modra <amodra@bigpond.net.au>
617 * cse.c (cse_insn): Set classp using src_const_elt if
620 2003-12-03 Richard Earnshaw <rearnsha@arm.com>
622 * gcse.c (reg_clear_last_set): New function.
623 (reg_set_info): If data is non-null, treat it as an sbitmap of
624 registers, set the bit for the register being set.
625 (compute_store_table): Allocate last_set_in with xcalloc. Do not
626 memset this array on each iteration. Pass reg_set_in_block[bb->index]
627 to note_stores while computing last_set_in instead of scanning
628 last_set_in after the first pass through the insns.
629 Clear last_set_in using reg_clear_last_set instead of explicitly
630 rescanning after each insn. If checking is enabled, assert that
631 last_set_in is completely zeroed after each bb has been processed.
633 2003-12-02 Geoffrey Keating <geoffk@geoffk.org>
635 * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
637 <REG>: Delete incorrect comment.
638 <SET>: Remove 'use_flags' variable.
640 2003-12-03 David Edelsohn <edelsohn@gnu.org>
642 * function.c (assign_parms): Make sure parm PARALLEL combined
643 in reg is composed of more than one object and the mode really
646 2003-12-03 Jan Hubicka <jh@suse.cz>
648 * i386.c (classify_argument): Make it 64bit clean.
650 2003-12-02 Richard Sandiford <rsandifo@redhat.com>
652 * config/mips/mips.c (mips_output_external): Replace checks for
653 specific builtin-in functions with a check for DECL_BUILTIN_IN.
655 2003-12-02 Richard Henderson <rth@redhat.com>
657 * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
658 * tree.h (TREE_SET_CODE): Likewise.
659 * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
661 2003-12-02 Ben Elliston <bje@wasabisystems.com>
663 * dbxstclass.h: Rename from this ..
664 * xcoff.h: .. to this.
665 * xcoffout.c: Include xcoff.h.
667 2003-12-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
669 * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
671 2003-12-01 James Lemke <jim@wasabisystems.com>
673 * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
675 2003-12-01 Roger Sayle <roger@eyesopen.com>
677 PR optimization/11634
678 * recog.c (split_insn): Factor test of INSN_P and handling of
679 set_noop_p out of here into the two callers.
680 (split_all_insns): Add INSN_P test and set_noop_p handling here.
681 If deleting a no-op set after reload that has a REG_UNUSED note,
682 mark the basic block as changed and recalculate life information.
683 (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
686 2003-12-01 Roger Sayle <roger@eyesopen.com>
688 PR optimization/12322
689 * gcse.c (struct ls_expr): Change type of hash_index from int to
691 (hash_expr): Document hash_table_size parameter and wrap long line.
692 (ldst_entry): Calculate expression's hash_index and record in ptr.
693 (trim_ld_motion_mems): Use hash_index to search a single bucket
694 instead of scanning the entire hash_table. Remove the "del" local
695 variable and use the equivalent "expr == 0" instead. Change last
696 to be a pointer to the pointer to the current element, to simplify
697 and speed-up deleting from a linked list.
699 2003-12-01 James E Wilson <wilson@specifixinc.com>
701 * doc/contrib.texi: Update David Mosberger.
703 * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
707 * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
708 gen_rtx_REG to create new reg with argument mode.
710 2003-12-01 Steven Bosscher <stevenb@suse.de>
712 * ggc.h (struct alloc_zone): Move forward declaration up.
713 (new_ggc_zone): New function prototype.
714 (destroy_ggc_zone): Ditto.
715 * ggc-simple.c (new_ggc_zone): New function, does nothing.
716 (destroy_ggc_zone): Ditto.
717 * ggc-page.c (new_ggc_zone): New function, does nothing.
718 (destroy_ggc_zone): Ditto.
719 * ggc-zone.c (struct page_entry): Fix comment.
720 (ggc_alloc_typed): Use a switch statement instead of ifs.
721 (new_ggc_zone): New function to set up a new GC zone.
722 (destroy_ggc_zone): New function to remove a GC zone.
723 init_ggc): Use new_ggc_zone to set up the default zones.
724 (ggc_collect): Walk a list of zones, instead of just the
725 default zones. Report statistics using the zone name.
727 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
729 * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
731 2003-12-01 Roger Sayle <roger@eyesopen.com>
733 PR optimization/12628
734 * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
735 * regclass.c (reg_scan): Include allocate_reg_info time in
736 TV_REG_SCAN. Minor clean-ups.
737 (reg_scan_update): Minor clean-ups.
739 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
741 * config.gcc (s390x-ibm-tpf*): Add extra_parts.
743 2003-12-01 James E Wilson <wilson@specifixinc.com>
745 * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
748 2003-12-01 Zack Weinberg <zack@codesourcery.com>
750 * common.opt: Remove -fgnu-linker.
751 * flags.h: Remove flag_gnu_linker.
752 * opts.c: Don't handle OPT_fgnu_linker.
753 * toplev.c: Don't initialize flag_gnu_linker.
754 Remove gnu-linker entry from f_options.
755 * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
756 Don't reset flag_gnu_linker.
757 * config/mips/mips.c (override_options): Likewise.
758 * doc/invoke.texi: Remove all mention of -fgnu-linker.
760 2003-12-01 Daniel Berlin <dberlin@dberlin.org>
762 * ggc-zone.c (ggc_pch_write_object): Calculate object size using
763 ggc_get_size (which accounts for large objects properly).
765 2003-12-01 Jeff Sturm <jsturm@one-point.com>
767 PR optimization/13024
768 * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
770 (rest_of_handle_old_regalloc): Likewise. Add rebuild_notes
771 declaration. Rebuild jump labels following local_alloc if necessary.
772 (rest_of_compilation): Remove rebuild_label_notes_after_reload
773 declaration. Don't pass rebuild_notes parameter to
774 rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
775 Don't rebuild jump labels.
777 2003-12-01 Jeff Law <law@redhat.com>
779 * flow.c (count_or_remove_death_notes_bb): New. Extracted from
780 count_or_remove_death_notes.
781 (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
783 2003-12-01 Andreas Krebbel <krebbel1@de.ibm.com>
785 * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
787 2003-12-01 Ulrich Weigand <uweigand@de.ibm.com>
789 * reload.c (find_reloads_address): Split addresses of type
790 (plus (plus (reg) (reg)) (const_int)) only if one register
791 is either a valid base register or else one of the stack
792 frame related registers (sp/fp/ap).
794 2003-12-01 Steven Bosscher <stevenb@suse.de>
796 * function.c (update_epilogue_consts): Don't use PARAMS.
797 * rtl.h (web_main): Ditto.
798 * target.h (is_costly_dependence): Ditto
800 2003-12-01 Eric Botcazou <ebotcazou@libertysurf.fr>
803 * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
804 do not recheck that 'op0' is a MEM. Move comment. When testing for
805 unaligned objects, take also into account the alignment of 'op0' and
806 'mode1' if 'op0' is a MEM.
808 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
810 * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
812 2003-12-01 Kelley Cook <kcook@gcc.gnu.org>
814 * doc/install.texi: Note that fastjar is built with automake 1.7.x
817 2003-12-01 Alan Modra <amodra@bigpond.net.au>
819 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
820 target_flags directly rather than using TARGET_* defines.
822 2003-11-30 Ben Elliston <bje@wasabisystems.com>
826 2003-11-30 Richard Sandiford <rsandifo@redhat.com>
829 * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
830 on 32-bit big-endian targets.
832 2003-11-30 Kazu Hirata <kazu@cs.umass.edu>
834 * genemit.c (register_constraints): Remove.
836 2003-11-30 Andreas Krebbel <krebbel1@de.ibm.com>
838 * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
839 "iordi3"): Insns now use multiple letter constraints.
840 ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
841 covered by "*movdi_64".
842 ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
843 covered by "*movsi_zarch" and "*movsi_esa".
844 ("*movsi_zarch", "*movsi_!zarch"): New insns.
845 ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
846 by "*andsi3_zarch" and "anddi3".
847 ("*anddi3_ni"): Insn merged with "anddi3".
848 ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
849 ("*andsi3_zarch", "*andsi3_esa"): New insns.
850 ("*iordi3_oi"): Insn merged with "iordi3".
851 ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
852 ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
854 * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
855 merged to s390_single_part.
856 (s390_single_part): New function.
857 NOTE: Semantics have changed a bit. Now the value of the part must
858 be different from the others to get a non-negative return value.
859 (s390_extract_qi, s390_extract_hi): Functions merged to
861 (s390_extract_part, s390_extra_constraint_str,
862 s390_const_ok_for_constraint_p): New functions. The L constraint got a
863 new meaning and the N constraint was added as a multiple letter
865 (s390_extra_constraint): Function deleted.
866 (print_operand): New output modifier 'i' and 'j' added.
867 All uses of CONST_OK_FOR_LETTER_P were replaced by
868 CONST_OK_FOR_CONSTRAINT_P.
870 * config/s390/s390-protos.h: Function prototypes adapted.
871 * doc/md.texi: Documentation for new constraint letters added.
873 2003-11-30 Andreas Schwab <schwab@suse.de>
875 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
877 2003-11-29 James E Wilson <wilson@specifixinc.com>
879 * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
880 instead of in shared_name.
882 * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
883 * reload1.c (reload): Re-add it here.
885 2003-11-30 Alan Modra <amodra@bigpond.net.au>
887 * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
888 set SECTION_WRITE on TARGET_RELOCATABLE.
890 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
892 * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
894 2003-11-28 Gunther Nikl <gni@gecko.de>
896 * config/m68k/m68k.c (MOTOROLA): Move from here...
897 * config/m68k/m68k.h (MOTOROLA): ... to here.
898 (OUTPUT_JUMP): Use do {...} while (0).
899 * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
901 2003-11-28 Gunther Nikl <gni@gecko.de>
903 * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
904 m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
905 MOTOROLA and USE_GAS.
906 * config/m68k/rtemself.h (MOTOROLA): Delete.
907 * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
908 * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
910 2003-11-29 Kazu Hirata <kazu@cs.umass.edu>
912 * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
914 2003-11-29 Kelley Cook <kcook@gcc.gnu.org>
916 * Makefile.in (install-info): Install gccinstall.info too.
918 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
920 * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
922 2003-11-29 Ulrich Weigand <uweigand@de.ibm.com>
924 * config/s390/s390.md ("movhi"): Do not emit extender pattern
925 when loading from a (MEM (ADDRESSOF ...)).
928 2003-11-29 Joseph S. Myers <jsm@polyomino.org.uk>
931 * c-parse.in (typespec_reserved_nonattr): Reject typeof on
934 2003-11-29 Richard Sandiford <rsandifo@redhat.com>
936 * stmt.c (expand_asm_operands): Check whether force_const_mem
939 2003-11-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
941 * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
942 * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
944 * config/alpha/gnu.h, config/alpha/linux.h,
945 config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
946 config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
947 config/i386/linux-aout.h, config/i386/linux.h,
948 config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
949 config/m68k/uclinux.h, config/mips/linux.h,
950 config/mn10300/linux.h, config/pa/pa-linux.h,
951 config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
952 config/sparc/linux.h, config/sparc/linux64.h,
953 config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
954 HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
955 all necessary assertions are included.
957 2003-11-28 Jan Hubicka <jh@suse.cz>
959 * emit-rtl.c (set_used_flags): New.
960 (verify_rtx_sharing, verify_rtl_sharing): New.
961 (unshare_all_rtl_1): Rename to....
962 (unshare_all_rtl_in_chain): ... this one; make static.
963 (copy_rtx_if_shared): LABEL_REF chan be shared.
964 * ifcvt.c (unshare_ifcvt_sequence): New.
965 (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
966 noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
967 noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
968 noce_try_abs, noce_process_if_block, find_cond_trap
969 * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
972 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
974 * config/h8300/h8300.md: Fix a comment typo.
976 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
978 * config/h8300/h8300.md (*movsf_h8300h): Change to
980 (addsi_h8300): Change to *addsi_h8300.
981 (addsi_h8300h): Change to *addsi_h8300hs.
982 (subsi3_h8300): Change to *subsi3_h8300.
983 (subsi3_h8300h): Change to *subsi3_h8300hs.
984 (neghi2_h8300h): Change to *neghi2_h8300hs.
985 (negsi2_h8300h): Change to *negsi2_h8300hs.
987 2003-11-28 Kazu Hirata <kazu@cs.umass.edu>
989 * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
991 (*subhi3_h8300hs): Likewise.
993 2003-11-28 David Edelsohn <edelsohn@gnu.org>
995 * config/rs6000/rs6000.h (MASK_MFCRF): New.
996 (TARGET_MFCRF): Test target_flags, not processor type.
997 (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
998 Change Don't to Do not.
999 * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1002 2003-11-27 J"orn Rennecke <joern.rennecke@superh.com>
1004 * cse.c (cse_set_around_loop): When changing a constant load
1005 to a register -register copy, add a REG_EQUAL note.
1007 2003-11-27 Randolph Chung <tausq@debian.org>
1008 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1010 * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1011 insns. Use the regular call expander for the call to the profiler.
1012 * pa.md (call_profiler): Delete.
1013 (load_offset_label_address): New insn to load the address of the
1014 current function for the profiler.
1015 (lcla1, lcla2): New insns to output a code label and load its address.
1017 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1019 * final.c (final_scan_insn): Remove commented-out code.
1021 2003-11-27 Nathanael Nerode <neroden@gcc.gnu.org>
1023 * doc/install.texi: Remove ADAC reference and make accurate.
1025 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1027 * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1028 (FUNCTION_VALUE_REGNO_P): Likewise.
1029 * config/h8300/h8300.md: Define R0_REG.
1031 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1033 * config/h8300/h8300.c: Fix formatting.
1034 * config/h8300/h8300.md: Likewise.
1036 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1038 * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1040 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1042 * config/h8300/h8300.md: Give names to anonymous insns.
1044 2003-11-27 Kazu Hirata <kazu@cs.umass.edu>
1046 * config/h8300/h8300.md (extendqisi2): Remove constraints.
1048 2003-11-27 Gunther Nikl <gni@gecko.de>
1050 * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1052 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1054 PR optimization/13041
1055 * final.c (frame_pointer_needed): Fix comment.
1056 * reload1.c (reload): Decrease alignment of the frame
1057 pointer if it was used for register allocation.
1059 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1062 * reg-stack (move_for_stack_reg): New prototype. Return
1063 whether a control flow insn was deleted.
1064 (subst_stack_regs_pat): Likewise, using the information provided
1065 by move_for_stack_reg.
1066 (subst_stack_regs): Likewise, using the information provided
1067 by subst_stack_regs_pat.
1068 (convert_regs_1): Record whether a control flow insn was deleted,
1069 using the information provided by subst_stack_regs. Purge dead
1070 edges only if a control flow insn was deleted.
1072 2003-11-27 Eric Botcazou <ebotcazou@libertysurf.fr>
1080 * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1081 as the base address to copy the memory arguments to.
1083 2003-11-26 Danny Smith <dannysmith@users.sourceforge.net>
1085 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1086 function aliases as functions.
1088 2003-11-26 Nathanael Nerode <neroden@gcc.gnu.org>
1090 * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1092 * configure: Regenerate.
1094 * Makefile.in: Remove references to ADAC.
1096 * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1097 * configure: Regenerate.
1099 2003-11-26 Eric Botcazou <ebotcazou@libertysurf.fr>
1100 Olivier Hainque <hainque@act-europe.fr>
1103 * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1104 (sparc_flat_compute_frame_size): Likewise.
1105 (sparc_flat_save_restore): Move prototype...
1106 * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1107 (save_regs): New prototype.
1108 (build_big_number): Likewise.
1109 (apparent_fsize): Change type to HOST_WIDE_INT.
1110 (actual_fsize): Likewise.
1111 (frame_base_offset): Likewise.
1112 (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1113 Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1114 [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1115 to load a 64-bit constant.
1116 (sparc_nonflat_function_prologue): Change string descriptor to
1117 HOST_WIDE_INT_PRINT_DEC. Change offset type to HOST_WIDE_INT.
1118 (output_restore_regs): Change offset type to HOST_WIDE_INT.
1119 (sparc_nonflat_function_epilogue): Change string descriptor to
1120 HOST_WIDE_INT_PRINT_DEC. Use build_big_number.
1121 (output_sibcall): Change size type to HOST_WIDE_INT. Use
1122 build_big_number. Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1123 (sparc_frame_info): Change types for several components.
1124 (sparc_flat_compute_frame_size): Update types according to previous
1126 (sparc_flat_function_prologue): Change string descriptor to
1127 HOST_WIDE_INT_PRINT_DEC. Change offset type to int. Use
1129 (sparc_flat_function_epilogue): Change offset type to int.
1130 Rename 'size1' into 'reg_offset1'. Change string descriptor to
1131 HOST_WIDE_INT_PRINT_DEC. Use build_big_number. Change big number
1132 limit to 4096 instead of 4095.
1134 * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1137 2003-11-24 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1139 * function.c: Make outer_function-chain external.
1140 * function.h: Likewise.
1142 2003-11-24 Richard Sandiford <rsandifo@redhat.com>
1144 * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1146 * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1147 whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1148 (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1149 (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1150 (SUBTARGET_EXTRA_SPECS): Define.
1151 * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1152 to __gcc_init and -fini function to __gcc_fini.
1153 (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1154 (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1155 (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1156 * config/mips/t-iris6gld,
1157 * config/mips/irix6-crti.asm,
1158 * config/mips/irix6-crtn.asm: New files.
1160 2003-11-24 Eric Christopher <echristo@redhat.com>
1163 * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1164 (start_function): Use.
1165 (c_push_function_context): Ditto.
1166 (c-pop_function_context): Ditto.
1167 (language_function): Move...
1168 * c-tree.h: ... here. Add x_in_iteration_stmt, and
1170 * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1171 c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1172 check for valid break or continue statment here...
1173 * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1174 here. Change original errors to abort.
1176 2003-11-24 Jan Hubicka <jh@suse.cz>
1178 * fold-const.c (fold): Do not return early when optimizing
1179 COMPONENT_REF and constant.
1181 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1183 * config/h8300/h8300.md (tablejump_h8300): Change to
1185 (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1186 (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1187 (indirect_jump_h8300): Change to *indirect_jump_h8300.
1188 (indirect_jump_h8300h): Change to
1189 *indirect_jump_h8300hs_advanced.
1190 (indirect_jump_normal_mode): Change to
1191 *indirect_jump_h8300hs_normal.
1193 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1195 * config/h8300/h8300.md: Remove constraints from expanders.
1197 2003-11-24 Kazu Hirata <kazu@cs.umass.edu>
1199 * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1200 stm_h8300s_2_advanced.
1201 (stm_h8300s_2_normal): New.
1202 (stm_h8300s_2): Likewise.
1203 (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1204 (stm_h8300s_3_normal): New.
1205 (stm_h8300s_3): Likewise.
1206 (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1207 (stm_h8300s_4_normal): New.
1208 (stm_h8300s_4): Likewise.
1209 (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1210 (ldm_h8300s_2_normal): New.
1211 (ldm_h8300s_2): Likewise.
1212 (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1213 (ldm_h8300s_3_normal): New.
1214 (ldm_h8300s_3): Likewise.
1215 (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1216 (ldm_h8300s_4_normal): New.
1217 (ldm_h8300s_4): Likewise.
1218 (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1219 (two peephole2's): New.
1221 2003-11-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1223 * genattrtab.c (simplify_cond): Update indices correctly.
1224 (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1225 attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1226 (check_attr_test, encode_units_mask, compute_alternative_mask,
1227 make_alternative_compare, simplify_and_tree,
1228 attr_rtx_cost, simplify_test_exp, gen_attr,
1229 write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1230 * rtl.def (EQ_ATTR_ALT): New.
1232 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1234 * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1235 (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1237 (main): Initialize them.
1238 (find_attr): Canonicalize the attribute name string.
1239 (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1241 (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1242 (check_attr_test, check_attr_value, make_length_attrs,
1243 write_length_unit_log, simplify_by_exploding, gen_attr,
1244 write_test_expr, write_attr_value, write_eligible_delay,
1245 write_complex_function, make_internal_attr,
1246 write_const_num_delay_slots): Changed due to change of type of
1248 (fill_attr, evaluate_eq_attr, simplify_and_tree,
1249 attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1252 2003-11-23 Kazu Hirata <kazu@cs.umass.edu>
1255 * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1257 (pop): Call pop_h8300hs_normal in normal mode.
1258 * config/h8300/h8300.md: Likewise.
1259 (pushqi1_h8300hs_normal): New.
1260 (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1261 (pushhi1_h8300hs_normal): New.
1262 (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1263 (push_h8300hs_normal): New.
1264 (pop_h8300hs_normal): Likewise.
1266 2003-11-23 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
1268 * genattrtab.c (count_sub_rtxs): Removed.
1270 2003-11-23 Richard Earnshaw <rearnsha@arm.com>
1272 * recog.c (preprocess_constraints): Only zero those elements of
1273 recog_op_alt that are needed for this insn.
1274 * arm.c (note_invalid_constants): A function can't contain invalid
1275 constants if it has no constraints.
1277 2003-11-22 Jan Hubicka <jh@suse.cz>
1279 * i386.c (classify_argument): Pass __float128 in memory.
1280 (ix86_return_in_memory): Likewise.
1281 (ix86_libcall_value): Likewsie.
1283 2003-11-22 Kazu Hirata <kazu@cs.umass.edu>
1285 * config/h8300/h8300.c (dosize): Convert to ISO-C.
1287 2003-11-22 J"orn Rennecke <joern.rennecke@superh.com>
1289 * flow.c (update_life_info): Amend comment about when a register
1292 2003-11-21 Kelley Cook <kcook@gcc.gnu.org>
1294 * doc/.cvsignore: Delete.
1296 2003-11-21 Daniel Berlin <dberlin@dberlin.org>
1297 David Edelsohn <edelsohn@gnu.org>
1299 * dwarf2out.c (add_location_or_const_value_attribute): Add support
1302 2003-11-21 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1304 * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1305 (TARGET_LIBGCC2_CFLAGS): Define.
1307 * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1308 (__do_global_ctors): Likewise.
1310 2003-11-21 Mark Wielaard <mark@klomp.org>
1312 * doc/invoke.texi (-O2): Doesn't enable -fweb.
1314 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1316 * doc/invoke.texi: Mention dV and dZ.
1318 2003-11-21 Kazu Hirata <kazu@cs.umass.edu>
1320 * doc/invoke.texi: Update dump file names.
1321 Remove de, dW, and dX.
1323 2003-11-20 James E Wilson <wilson@specifixinc.com>
1326 * reload1.c (reload): Delete special handling for setjmp.
1328 2003-11-21 Andreas Tobler <a.tobler@schweiz.ch>
1330 * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1332 * config/t-slibgcc-darwin: Adjust install path.
1333 * config/rs6000/t-darwin: Revert multilib matches since
1334 it is not used on darwin.
1336 2003-11-20 Richard Henderson <rth@redhat.com>
1338 * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1339 * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1340 (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1341 (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1342 * flow.c: Don't include ssa.h.
1343 (set_phi_alternative_reg): Remove.
1344 (calculate_global_regs_live): Don't call it.
1345 (mark_used_regs): Don't handle PHI.
1346 * gengtype.c (open_base_files): Don't reference ssa.h.
1347 * rtl.def (PHI): Remove.
1348 * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1349 * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1350 * opts.c (common_handle_option): Likewise.
1351 * toplev.c (f_options): Likewise.
1352 (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1353 (dump_file): Update to match.
1354 (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1355 (rest_of_handle_ssa): Remove.
1356 (rest_of_compilation): Don't call it.
1357 * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1358 * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1359 * doc/passes.texi (SSA optimizations): Remove.
1361 2003-11-20 Bob Wilson <bob.wilson@acm.org>
1363 * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1364 * configure: Regenerate.
1366 2003-11-20 Kelley Cook <kcook@gcc.gnu.org>
1368 * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1370 2003-11-20 David Mosberger <davidm@hpl.hp.com>
1372 * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1374 * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1375 (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1377 2003-11-20 Fariborz Jahanian <fjahanian@apple.com>
1378 David Edelsohn <edelsohn@gnu.org>
1380 * calls.c (expand_call): Allocate new temp in pass1.
1381 (store_one_arg): If PARALLEL, calculate excess using mode size of
1383 * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1384 mode size of rtvec elt.
1385 * function.c (assign_parms): Use parm in register, if available.
1387 2003-11-20 Kazu Hirata <kazu@cs.umass.edu>
1389 * config/h8300/lib1funcs.asm (MOVP): Remove.
1393 2003-11-20 Richard Earnshaw <rearnsha@arm.com>
1395 * arm.c (use_return_insn): New argument, SIBLING. Support returning
1396 with a single instruction if the stack has been decremented by 4
1397 and we have a frame pointer. Update all callers.
1398 (output_return_instruction): Likewise.
1399 (arm_output_epilogue): Change argument to SIBLING. Calculate
1400 really_return from the new argument. Update all callers.
1401 * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1402 * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1403 pass the sibling call.
1404 * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1407 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1409 * Makefile.in (extraclean): Delete.
1410 * configure.in (target_list): Remove extraclean.
1411 * configure: Regenerate.
1412 * doc/makefile.texi, doc/sourcebuild.texi: Update.
1413 * objc/Make-lang.in (objc.extraclean): Delete.
1415 2003-11-20 Joseph S. Myers <jsm@polyomino.org.uk>
1417 * Makefile.in (lang_checks): Add.
1418 (check-c++, check-f77, check-java, check-g++, check-g77,
1419 check-objc): Remove hardcoded targets.
1420 * doc/sourcebuild.texi: Document testsuite hooks.
1421 * objc/Make-lang.in (check-objc, lang_checks): Add.
1423 2003-11-19 Scott Snyder <snyder@fnal.gov>
1426 * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1427 flag, not a constant.
1429 2003-11-19 Kelley Cook <kcook@gcc.gnu.org>
1431 * config/arc/arc-protos.h: Update to C90 prototypes.
1432 * config/arc/arc.c: Likewise.
1433 * config/arc/initfini.c: Likewise.
1435 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1437 * stmt.c (expand_goto): Memory clobbers added.
1439 2003-11-19 Andreas Krebbel <krebbel1@de.ibm.com>
1441 * reload.c (find_reloads): Added missing type casts.
1443 2003-11-19 James E Wilson <wilson@specifixinc.com>
1445 * combine.c (sets_function_arg_p): Delete unused function.
1447 2003-11-19 Eric Christopher <echristo@redhat.com>
1449 * reload1.c (reload): Revert 2 previous checkins.
1451 2003-11-19 Nathanael Nerode <neroden@gcc.gnu.org>
1453 * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1454 whether directive begins at the beginning of a line.
1456 2003-11-19 Richard Sandiford <rsandifo@redhat.com>
1458 * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1460 2003-11-19 Gerald Pfeifer <gp@suse.de>
1462 * doc/install.texi (Specific): Remove information on old versions
1463 of glibc versus old versions of GCC.
1465 2003-11-19 Richard SAndiford <rsandifo@redhat.com>
1467 * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1468 the register lowpart is a TRULY_NOOP_TRUNCATION.
1470 2003-11-19 Richard Henderson <rth@redhat.com>
1472 * config/i386/i386.c (print_reg): Handle QI and HI modes for
1475 2003-11-19 Andreas Tobler <a.tobler@schweiz.ch>
1477 * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1479 * config/t-slibgcc-darwin: New file, libgcc build specification.
1480 * config/t-darwin: Add libgcc2 flag -fPIC.
1481 * config/rs6000/t-darwin: Multilib matches float.
1482 * libgcc-darwin.ver: New file, contains libgcc symbols.
1484 2003-11-18 Nathanael Nerode <neroden@gcc.gnu.org>
1486 * config/ns32k/ns32k.h: Remove obsolete comment.
1488 2003-11-18 Roger Sayle <roger@eyesopen.com>
1491 * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1492 size for calls to libgcc's div & mod subroutines when using -Os.
1494 2003-11-18 Jan Hubicka <jh@suse.cz>
1496 * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1498 2003-11-18 Marc Espie <espie@openbsd.org>
1500 * config/rs6000/sysv4.h: OpenBSD hooks.
1502 2003-11-18 Richard Henderson <rth@redhat.com>
1504 * expr.c (expand_expr): Don't look through constant arrays if
1505 they don't bind locally.
1507 2003-11-17 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1509 * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1510 when seeing if truncation or extension.
1512 2003-11-17 Eric Christopher <echristo@redhat.com>
1514 * reload1.c (reload): Fix previous change.
1516 2003-11-17 Scott Snyder <snyder@fnal.gov>
1519 * dwarf2out.c (struct die_struct): Add die_definition field.
1520 (add_AT_specification): New.
1521 (gen_subprogram_die, gen_variable_die,
1522 gen_struct_or_union_type_die): Use it.
1523 (prune_unused_types_mark): If we're marking a forward declaration,
1524 also mark the full definition, if it exists.
1526 2003-11-16 Nick Clifton <nickc@redhat.com>
1528 * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1529 * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1531 * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1532 to xstormy16_build_builtin_va_list and make static.
1533 (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1535 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1537 * config/h8300/h8300-protos.h: Add the prototype for
1538 same_cmp_following_p.
1539 * config/h8300/h8300.c (same_cmp_following_p): New.
1540 * config/h8300/h8300.md (peephole2): Use it.
1542 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1544 * config/h8300/h8300.md: Don't use REGNO when its operand is
1545 not guaranteed to be a REG.
1547 2003-11-16 Richard Sandiford <rsandifo@redhat.com>
1549 * Makefile.in (expr.o): Depend on $(TARGET_H).
1550 * target.h (return_in_msb): New target hook.
1551 * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1552 (TARGET_CALLS): Include it.
1553 * calls.c (shift_returned_value): New function.
1554 (expand_call): Use it.
1555 * expr.c: Include target.h.
1556 (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1557 deciding what padding is needed. Change the name of the local
1558 padding variable from big_endian_correction to padding_correction.
1559 * stmt.c (shift_return_value): New function.
1560 (expand_return): Use it. Adjust memory->register copy in the same
1561 way as copy_blkmode_from_reg. Only change the return register's
1562 mode if it was originally BLKmode.
1563 * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1564 * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1565 (mips_fpr_return_fields): New, split out from mips_function_value.
1566 (mips_return_in_msb, mips_return_fpr_pair): New functions.
1567 (mips_function_value): Rework to use the functions above.
1568 * config/mips/irix6-libc-compat.c: Delete.
1569 * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1571 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1573 * doc/install.texi (--enable-checking): Update valgrind's URL.
1575 2003-11-16 Kazu Hirata <kazu@cs.umass.edu>
1577 * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1578 with -2147483647 - 1.
1580 2003-11-16 Gerald Pfeifer <gerald@pfeifer.com>
1582 Fix links in online manuals.
1583 * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1584 (Precompiled Headers): @pxref to cpp, not cpp.info.
1586 2003-11-16 Jason Merrill <jason@redhat.com>
1588 * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1589 files in each directory and TAGS files that include them for each
1592 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1594 * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1596 (modnorm): Likewise.
1597 (exitdiv): Look at bit 3 of S2L only.
1599 2003-11-15 Kazu Hirata <kazu@cs.umass.edu>
1601 * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1602 (DO_GLOBAL_DTORS_BODY): Likewise.
1604 2003-11-15 Joseph S. Myers <jsm@polyomino.org.uk>
1606 * doc/install.texi (Prerequisites): Refine documentation of
1607 autoconf, automake and perl requirements. Document required
1610 <2003-11-14 Jason Merrill <jason@redhat.com>
1612 * function.c (assign_parms): Use TREE_TYPE to determine the real
1613 type of the argument object.
1615 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1617 * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1620 2003-11-14 Fariborz Jahanian <fjahanian@apple.com>
1622 * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1623 New routine to save vararg registers on stack. Support for
1624 -mpowerpc64 in mixed mode.
1626 2003-11-14 Bernardo Innocenti <bernie@develer.com>
1628 * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1629 for MOTOROLA versus MIT syntax. Improves readability and provides
1630 better compile-time error checking for both code paths.
1632 2003-11-14 Kelley Cook <kcook@gcc.gnu.org>
1634 * config/frv/frv-protos.h: Update for C90.
1635 * config/frv/frv.h: Likewise.
1636 * config/frv/frvbegin.c: Likewise.
1637 * config/frv/frv.c: Likewise.
1638 (frv_adjust_field_align): Delete unused variable.
1640 2003-11-14 Geoffrey Keating <geoffk@apple.com>
1642 * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1643 to each place where TARGET_LONG_DOUBLE_128 is used with
1644 DEFAULT_ABI == ABI_AIX.
1646 * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1647 message comply with GNU standards.
1649 2003-11-14 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
1652 * function.c (struct epi_info): New field const_equiv.
1653 (update_epilogue_consts): New function.
1654 (keep_stack_depressed): Clear new field and verify scratch register
1655 doesn't have it set.
1656 Call new function via note_stores.
1657 (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1658 Allow PLUS where second operand is register known set to constant.
1659 (emit_equiv_load): Write load using proper mode if source different.
1660 * config/mips/mips.md (return_internal): Put (return) first.
1662 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1664 * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1666 2003-11-14 Kazu Hirata <kazu@cs.umass.edu>
1668 * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1671 (reti): Don't restore unused registers.
1673 2003-11-14 Nick Clifton <nickc@redhat.com>
1675 * config/fr30/fr30.c: Include toplev.h
1677 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1679 * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1681 2003-11-14 Richard Earnshaw <rearnsha@arm.com>
1683 * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1684 function definition syntax.
1686 2003-11-14 Eric Christopher <echristo@redhat.com>
1688 * reload1.c (reload): Revert previous patch. Make
1689 check for assignment into reg_equiv_address stricter.
1691 2003-11-14 Arnaud Charlet <charlet@act-europe.fr>
1693 * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1695 2003-11-14 Richard Sandiford <rsandifo@redhat.com>
1697 * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1700 2003-11-14 Jason Merrill <jason@redhat.com>
1703 * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1704 * calls.c (call_expr_flags): New fn.
1705 * tree.h: Declare it.
1707 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1709 * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1710 (divmodsi3): Change the name to ___udivsi3.
1713 2003-11-13 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1715 * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1716 __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1717 __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1718 __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1719 __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1720 __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1721 Const-ify and/or initialize automatic variables at declaration.
1723 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1725 * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1726 of er4 with er3. Adjust all callers.
1728 2003-11-13 Andrew Pinski <apinski@apple.com>
1730 * config/darwin.c (machopic_output_possible_stub_label):
1731 Allow stub symbol be not defined when outputting possible
1734 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1736 * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1738 (___umodsi3): Likewise.
1739 (exitdiv): Do not restore any register.
1740 (reti): Restore registers.
1742 2003-11-13 Steven Bosscher <stevenb@suse.de>
1744 * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1746 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1748 * config/h8300/lib1funcs.asm: Fix comment typos.
1750 2003-11-13 Kazu Hirata <kazu@cs.umass.edu>
1752 * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1753 unused registers. Don't jump to exitdiv.
1754 (umodsi3): Likewise.
1756 2003-11-13 Mark Mitchell <mark@codesourcery.com>
1757 Kean Johnston <jkj@sco.com>
1760 * toplev.c (check_global_declarations): Do not warn about unused
1763 2003-11-13 Pavel Pisa <pisa@cmp.felk.cvut.cz>
1764 Kazu Hirata <kazu@cs.umass.edu>
1766 * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1767 the approximate quotient method.
1769 2003-11-13 Richard Earnshaw <rearnsha@arm.com>
1771 * combine.c (distribute_notes): When re-distributing the notes from
1772 an insn we are about to delete, ensure we can't end up with a cyclic
1775 2003-11-13 Eric Botcazou <ebotcazou@libertysurf.fr>
1777 PR optimization/12926
1778 * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1779 the UNCHANGING_RTX_P flag on memory references to read-only
1780 components that are not addressable.
1782 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
1784 * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1787 2003-11-13 Jan Hubicka <jh@suse.cz>
1790 * c-decl.c (finish_decl): Use change_decl_assembler_name.
1791 * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1792 * varasm.c (make_decl_rtl): Likewise.
1793 * cgraph.c (change_decl_assembler_name): New function.
1794 * tree.h (set_decl_assembler_name): Kill dead declaration.
1795 (change_decl_assembler_name): Declare.
1797 * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1798 * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1800 2003-11-12 Kazu Hirata <kazu@cs.umass.edu>
1802 * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1805 2003-11-12 Richard Sandiford <rsandifo@redhat.com>
1808 * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1809 (MULTILIB_OSDIRNAMES): Reorder accordingly.
1811 2003-11-12 Janis Johnson <janis187@us.ibm.com>
1813 * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1814 (rs6000_stack_info): Remove. (debug_stack_info): Remove.
1815 (rs6000_emit_eh_reg_restore): Add
1816 * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1817 of vars_size and total_size to HOST_WIDE_INT.
1818 (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1819 (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1820 (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1822 (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1823 (rs6000_initial_elimination_offset): New, with code formerly in
1824 INITIAL_ELIMINATION_OFFSET.
1825 * rs6000.h (rs6000_stack_t): Remove.
1826 (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1827 rs6000_initial_elimination_offset.
1828 * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1829 rs6000_emit_eh_reg_restore.
1831 2003-11-12 Mike Stump <mrs@apple.com>
1833 * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1834 is the argumnt we are processing so that warnings and errors
1835 will have that information.
1836 * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1838 (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1839 * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1840 * langhooks.h (convert_parm_for_inlining): Likewise.
1841 * tree-inline.c (initialize_inlined_parameters): Compute and
1844 2003-11-12 Alexey Starovoytov <alexey.starovoytov@sun.com>
1845 Roger Sayle <roger@eyesopen.com>
1847 PR optimization/12953
1848 * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1849 before switch by FUNCTION_CODE.
1851 2003-11-12 Richard Earnshaw <rearnsha@arm.com>
1853 * arm.md (storehi): Avoid use of explicit subreg.
1854 (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1856 2003-11-12 J"orn Rennecke <joern.rennecke@superh.com>
1858 * config/sh/sh.md (prefetch): New pattern.
1860 2003-11-11 Eric Christopher <echristo@redhat.com>
1862 * reload1.c (reload): Verify that addresses for
1863 reg_equiv_* are valid for the architecture.
1865 2003-11-11 Eric Christopher <echristo@redhat.com>
1867 * function.c (purge_addressof_1): Add libcall check.
1868 Remove test for cached replacements on fallback case.
1869 Simplify mode comparisons. Add libcall test for
1870 paradoxical subregs.
1872 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
1874 * config/h8300/t-h8300: Fix an obsolete comment.
1876 2003-11-11 James E Wilson <wilson@specifixinc.com>
1878 * expmed.c (store_bit_field, extract_bit_field): Revert last two
1881 2003-11-11 Kazu Hirata <kazu@cs.umass.edu>
1883 * config/h8300/lib1funcs.asm: Replace DenHighZero with
1886 2003-11-11 Jan Hubicka <jh@suse.cz>
1888 * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1891 2003-11-11 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1893 * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1894 generating 64-bit code.
1896 2003-11-10 David Edelsohn <edelsohn@gnu.org>
1898 * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1899 accidental commit in previous change.
1901 2003-11-10 Fariborz Jahanian <fjahanian@apple.com>
1903 * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1904 * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1905 address recognition.
1906 (macho_lo_sum_memory_operand): Routine to recognize macho-style
1907 address recognition.
1909 2003-11-10 Richard Henderson <rth@redhat.com>
1911 * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1913 2003-11-10 Matt Austern <austern@apple.com>
1915 * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1916 * config/darwin.c (darwin_assemble_visibility): Define. Warn for
1917 anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1918 * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1919 darwin_assemble_visibility instead of default.
1921 2003-11-10 Waldek Hebisch <hebisch@math.uni.wroc.pl>
1924 * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1925 __enable_execute_stack only after writing onto the stack.
1926 (sparc64_initialize_trampoline): Likewise.
1928 2003-11-09 Roger Sayle <roger@eyesopen.com>
1930 * loop.c (check_dbra_loop): Try swapping the comparison operands
1931 of the loop condition to identify a suitable induction variable.
1932 * unroll.c (loop_iterations): Likewise.
1934 2003-11-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1936 * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1937 sparc64 #cpu and #machine assertions.
1939 2003-11-09 Richard Henderson <rth@redhat.com>
1941 * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1943 2003-11-09 Jan Hubicka <jh@suse.cz>
1945 * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1947 * cgraphunit.c (cgraph_expand_function): Use
1948 cgraph_possibly_inlined_p.
1949 * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1951 * opts.c (common_handle_option): Do not set max-inline-insns.
1952 * params.def: Update comments.
1953 (PARAM_MAX_INLINE_INSNS): Kill.
1954 * invoke.texi (max-inline-insns): Kill.
1956 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
1960 * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1961 * invoke.texi: Update.
1963 2003-11-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1965 PR optimization/12630
1966 * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1967 Handle length computation 64-bit moves.
1968 (compute_clrstr_length, output_block_clear): Implement block clear.
1969 (output_block_move): Handle 64-bit moves.
1970 (pa_adjust_insn_length): Use compute_movstr_length and
1971 compute_clrstr_length.
1972 * pa.md (movstrsi): Revise operand order and comments. Don't use
1974 (movstrsi_internal): Delete.
1975 (movstrsi_prereload, movstrsi_postreload): New insns. Define splitter
1976 and peephole2 patterns to transform prereload to postreload form.
1977 (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1978 clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1979 clrstrdi_postreload): New patterns for 64-bit block move, and block
1981 * pa-protos.h (output_block_clear): New prototype.
1983 2003-11-08 Andreas Schwab <schwab@suse.de>
1985 * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1986 XCOFF_DEBUGGING_INFO.
1988 2003-11-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
1990 * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1992 2003-11-07 Geoffrey Keating <geoffk@apple.com>
1994 * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1997 * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1998 (find_file_in_dir): Likewise.
1999 (_cpp_find_file): Print message if no header file is found
2000 but an invalid PCH file was.
2002 2003-11-08 Joseph S. Myers <jsm@polyomino.org.uk>
2004 * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2005 expressions as lvalues.
2006 (internal_build_compound_expr): Remove special handling for
2008 * doc/extend.texi: Document that all extended lvalues are now
2011 2003-11-07 Geoffrey Keating <geoffk@apple.com>
2014 * dbxout.c (struct dbx_file): Do not save for PCH.
2015 (current_file): Likewise.
2016 (dbxout_init): Don't allocate struct dbx_file using GC.
2017 (dbxout_start_source_file): Likewise.
2019 2003-11-07 Falk Hueffner <falk@debian.org>
2021 * config/alpha/elf.h, config/alpha/unicosmk.h,
2022 config/alpha/vms.h: Convert to ISO C90.
2024 2003-11-07 Nathanael Nerode <neroden@gcc.gnu.org>
2026 * config/arm/pe.h: Convert to ISO C90.
2028 2003-11-07 J"orn Rennecke <joern.rennecke@superh.com>
2030 * sh-protos.h (sh_pch_valid_p): Declare.
2031 * sh.c ("intl.h"): Include.
2032 (TARGET_PCH_VALID_P): Override.
2033 (sh_target_switches): New variable.
2034 (target_switches): Define.
2035 (sh_pch_valid_p): New function.
2037 * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2039 2003-11-07 Jan Hubicka <jh@suse.cz>
2041 * i386.c (x86_64_sign_extended_value): Return false from tls variables.
2042 (x86_64_zero_extended_value): likewise.
2044 2003-11-07 Richard Sandiford <rsandifo@redhat.com>
2046 * config/mips/mips.md (loadgp): Take $25 as a second operand.
2047 * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2049 2003-11-06 Matt Austern <austern@apple.com>
2051 * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2052 field instead of hanging an attribute object off the decl.
2053 * tree.h (DECL_VISIBLITY): New accessor macro for
2054 symbol_visibility field in struct tree_decl.
2055 (enum symbol_visibility): Move definition to before tree_decl.
2056 (struct tree_decl): Define new two-bit field, symbol_visibility.
2057 (decl_visibility): Remove declaration.
2058 * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2059 instead of decl_visibility.
2060 (default_binds_local_p_1): Use DECL_VISIBILITY instead of
2062 (decl_visibility): Remove.
2064 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2066 * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2067 where register 14 will be saved.
2069 2003-11-06 Geoffrey Keating <geoffk@apple.com>
2071 * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2072 (USE_ALTIVEC_FOR_ARG_P): Likewise.
2073 * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2074 Take a pointer as the CUM parameter. Update callers.
2075 (USE_ALTIVEC_FOR_ARG_P): Likewise. Also correct for Darwin/AIX
2077 (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P. Correct case
2078 of vector parameters as named arguments of stdarg function.
2079 (function_arg): Likewise.
2081 * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2082 -maltivec is specified, not the non-existent -faltivec.
2084 2003-11-06 Ulrich Weigand <uweigand@de.ibm.com>
2086 * config/s390/s390-protos.h (s390_function_value): Declare.
2087 * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2088 (s390_return_in_memory): New function.
2089 (s390_function_value): New function.
2090 (s390_function_arg_float): Return false for all arguments larger
2092 (s390_function_arg_pass_by_reference): Likewise. Return true for
2093 all vector arguments.
2094 (s390_function_arg_integer): New function.
2095 (s390_function_arg_advance): Call it. Add sanity checks.
2096 (s390_function_arg): Likewise.
2097 * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2098 (LIBCALL_VALUE): Likewise.
2100 (RETURN_IN_MEMORY): Remove.
2102 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2104 * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2105 return type to HOST_WIDE_INT.
2106 * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2107 Make initialized a bool. Make register masks unsigned ints.
2108 (compute_frame_size): Make same mask change here. Use HOST_WIDE_INT
2110 (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2111 (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2113 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2115 * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2118 2003-11-06 Richard Sandiford <rsandifo@redhat.com>
2120 * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2122 2003-11-06 Momchil Velikov <velco@fadata.bg>
2124 * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2127 2003-11-06 Jan Hubicka <jh@suse.cz>
2129 * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2132 2003-11-06 Zack Weinberg <zack@codesourcery.com>
2134 * genmodes.c: Change the word "bitsize" to "precision" throughout.
2135 * machmode.def: Likewise.
2136 * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2137 (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2138 (GET_MODE_PRECISION): New macro.
2139 (mode_bitsize): Renamed mode_precision.
2140 * stor-layout.c (mode_for_size, smallest_mode_for_size):
2141 Use GET_MODE_PRECISION; clarify comments.
2143 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2145 * doc/install-old.texi: Remove old documentation of building
2147 * doc/install.texi: Move some of it to here.
2149 2003-11-05 Per Bothner <pbothner@apple.com>
2151 PR preprocessor/12891
2152 * c-opts.c (finish_options): Set include_cursor to disable premature
2153 calls to push_command_line_include from cpp_scan_nooutput.
2154 Fixes bug reported by DJ Delorie.
2156 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2158 * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2159 code supporting old-style varargs.
2161 * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2162 an intermediate register for better optimisation.
2164 2003-11-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
2166 PR optimization/10080
2167 * cfgloopanal.c (variable_initial_value, variable_initial_values,
2168 simple_loop_exit_p): Record the fact that initial value is extended
2170 (count_strange_loop_iterations, count_loop_iterations): Handle
2171 ivs that iterate in a narrower mode. Fix handling of overflows.
2172 Improve handling of NE conditions.
2173 (inverse, fits_in_mode_p): New static functions.
2174 (simple_increment): Detect variables that iterate in a narrower mode.
2175 * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2177 2003-11-05 Geoffrey Keating <geoffk@apple.com>
2179 * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2182 * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2185 2003-11-05 Joseph S. Myers <jsm@polyomino.org.uk>
2187 * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2188 conditional expressions as lvalues.
2190 2003-11-05 Kazu Hirata <kazu@cs.umass.edu>
2192 * tsystem.h: Add the prototype of strlen.
2193 * unwind-pe.h (read_encoded_value_with_base): Add an
2194 appropriate cast to handle a case where the pointer size is
2195 smaller than sizeof (int).
2197 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2199 * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2200 (mips_delegitimize_address): Delete.
2201 (mips_gotoff_global, mips_load_got_page): Declare.
2202 (mips_load_got_global, mips_rewrite_small_data): Declare.
2204 * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2205 (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2206 (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2207 small_data_pattern. Remove CONST from const_arith_operand's entry.
2209 * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2210 (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2211 (mips_constant_type): Delete.
2212 (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2213 SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2214 (NUM_SYMBOL_TYPES): New macro.
2215 (mips_address_type): Remove ADDRESS_INVALID.
2216 (machine_function): Add has_gp_insn_p.
2217 (mips_constant_info): Delete.
2218 (mips_address_info): Add the address type as an extra field. Replace
2219 the c field with symbol_type.
2220 (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2221 (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2222 (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2223 (mips_split_const, mips_symbolic_constant_p): New functions.
2224 (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2225 (mips_classify_address): Return true if the address is valid, storing
2226 its type in INFO. Use mips_symbolic_constant_p. Use mips_lo_relocs[]
2227 to test whether a LO_SUM address is allowed.
2228 (mips_symbol_insns): Return 0 for general mips16 symbols.
2229 Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2230 Handle the new SYMBOL_GOTOFF_*s.
2231 (mips_address_insns): Update call to mips_classify_address.
2232 (mips_const_insns): Be more fussy about HIGH constants. Remove use
2233 of mips_classify_constant. Be more accurate about CONSTs.
2234 (mips_global_pic_constant_p): Delete.
2235 (const_arith_operand): Only accept CONST_INTs.
2236 (call_insn_operand): Remove call to mips_classify_constant.
2237 Let mips_symbolic_constant_p check for invalid offsets.
2238 (move_operand): Check for general_operands first. Only accept symbolic
2239 constants if they satisfy mips_symbolic_constant_p and cannot be split.
2240 (symbolic_constant): Use mips_symbolic_constant_p.
2241 (global_got_operand, local_got_operand): New predicates.
2242 (stack_operand): Update call to mips_classify_address.
2243 (mips_legitimate_address_p): Likewise.
2244 (mips_reloc, mips_lui_reloc): Delete.
2245 (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2247 (mips_split_symbol, mips_unspec_address): New functions.
2248 (mips_unspec_offset_high): New function.
2249 (mips_load_got): Replace reloc argument with a symbol_type.
2250 Use mips_unspec_address to create the address and put it in a
2251 LO_SUM with the base register.
2252 (mips_load_got16, mips_load_got32): Delete.
2253 (mips_emit_high, mips_legitimize_symbol): Delete.
2254 (mips_gotoff_global): New function.
2255 (mips_load_got_page, mips_load_got_global): New functions.
2256 (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2257 (mips_legitimize_const_move): Likewise. Remove HIGH handling.
2258 Inline code to handle constants plus invalid offsets. Use
2259 mips_split_symbol to legitimize constant pool addresses.
2260 (mips_delegitimize_address): Delete.
2261 (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2262 a cost of 1 insn. Give the rest a cost of CONSTANT_POOL_ADDRESS.
2263 (mips_subword): Pass memrefs through mips_rewrite_small_data.
2264 (mips_output_move): Remove use of mips_classify_constant.
2265 (mips_expand_call): Use mips_unspec_offset_high to calculate the
2266 high part of the GOT address for calls to global functions.
2267 (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2268 and mips_hi_relocs[].
2269 (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2270 Remove use of mips_classify_constant.
2271 (mips_reloc_string): Delete.
2272 (print_operand_reloc): New function.
2273 (print_operand_address): Update call to mips_classify_address.
2274 (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2275 (small_data_pattern): New predicate.
2276 (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2277 (mips_function_has_gp_insn): New function.
2278 (mips_global_pointer): Use it.
2279 (mips_gp_insn): Delete.
2280 (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2281 single loadgp pattern to initialize $gp. Pass it the offset of _gp
2282 from the start of the current function.
2283 (mips16_gp_pseudo_reg): Revert last patch.
2285 * config/mips/mips.md (RELOC_*): Delete.
2286 (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2287 (got): New insn attribute.
2288 (type): Set to "load" if got == load.
2289 (length): Set to 4 if got == load, 8 if got == xgot_high.
2291 (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2292 (*got_disp[sd]i, *got_page[sd]i): Likewise.
2293 (*low[sd]i): Change constraints to "d". Add a new define_split to
2294 rewrite small data constants into LO_SUMs.
2295 (loadgp): New insns.
2297 2003-11-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2299 * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2301 2003-11-04 DJ Delorie <dj@redhat.com>
2303 * config/v850/v850.md (mulhisi3): Expand the const_int case
2304 separately to avoid trying to sign extend the const.
2306 2003-11-04 Richard Sandiford <rsandifo@redhat.com>
2308 * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2309 addresses to be shared.
2310 (force_const_mem): Return a copy of the pool entry.
2312 2003-11-03 Andreas Jaeger <aj@suse.de>
2314 * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2316 2003-11-03 Kelley Cook <kcook@gcc.gnu.org>
2318 * Makefile.in (cpp.dvi): New target split from cpp.info.
2319 (gcc.dvi): New target split from gcc.info.
2320 (gccint.dvi): New target split from gccint.info.
2321 (cppinternals.dvi): New target split from cppinternals.info
2322 (gccinstall.info): New specific rule.
2323 (gccinstall.dvi): Likewise.
2324 (dvi): Move targets to $(docobjdir).
2325 ($(docobjdir)/%.dvi): New implicit rule.
2327 2003-11-03 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2329 * doc/gty.texi (tag, desc): Say more about role of desc values in
2330 selecting between tags.
2332 2003-11-03 Alexander Kabaev <ak03@gte.com>
2334 * real.c (encode_ieee_single): Ensure proper promotion.
2336 2003-11-03 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
2338 * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2341 2003-11-03 Syd Polk <spolk@apple.com>
2343 * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2344 marketing names to the list of supported processors.
2345 * config/rs6000/rs6000.h: Ditto.
2346 * doc/invoke.texi: Ditto.
2347 * config.gcc: Ditto.
2349 2003-11-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2351 * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2352 Merge two substitutions.
2353 * fixinc/fixincl.x: Regenerate.
2354 Fixes PR bootstrap/12666.
2356 2003-11-03 Joseph S. Myers <jsm@polyomino.org.uk>
2358 * doc/install-old.texi: Remove VMS documentation.
2360 2003-11-03 Jan Hubicka <jh@suse.cz>
2362 * i386.c (override_options): Remove hack enabling 128bit long double
2363 commited by accident.
2365 2003-11-02 Per Bothner <per@bothner.com>
2367 * c-opts.c (needValue): Do cpp_find_main_file before processing
2368 any imacros flags, so pfile->main_file is set for the latter.
2370 2003-11-03 Andreas Jaeger <aj@suse.de>
2371 Zack Weinberg <zack@codesourcery.com>
2373 * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2374 (SYSCALLS.c.X-warn): Suppress warnings.
2376 2003-11-02 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2378 PR optimization/12845
2379 * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2381 2003-11-02 Zack Weinberg <zack@codesourcery.com>
2383 * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2384 * config/i386/i386.c (print_reg): Abort on a virtual register
2385 if code != -1; not if file == asm_out_file.
2386 * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2387 (DEBUG_PRINT_REG): Delete, unused.
2389 2003-11-02 Andreas Schwab <schwab@suse.de>
2391 * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2392 empty to avoid conflict with the definition from configure.
2394 2003-11-02 Roger Sayle <roger@eyesopen.com>
2396 PR optimization/10817
2397 * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2398 (noce_try_move): New function to optimize an if-the-else into an
2399 unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2400 (noce_process_if_block): Attempt simplification with noce_try_move.
2402 * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2403 and improvements to the optimizations of IF_THEN_ELSE expressions.
2404 (simplify_subreg): Silence signed/unsigned comparison warning.
2406 2003-11-02 Richard Sandiford <rsandifo@redhat.com>
2408 * Makefile.in (targhooks.o, reload.o): Update dependencies.
2409 (GTFILES): Add targhooks.c.
2410 (gt-targhooks.h): New rule; depend on s-gtype.
2411 * target.h (direct_pool_load_p): New hook.
2412 * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2413 (TARGET_INITIALIZER): Include it.
2414 * targhooks.h (default_direct_pool_load_p): Declare.
2415 (hook_bool_machine_mode_true): Declare.
2416 * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2418 (pool_symbol): New variable.
2419 (default_direct_pool_load_p): New function.
2420 (hook_bool_machine_mode_true): New function.
2421 * reload.c: Include target.h.
2422 (find_reloads): If an alternative will force a constant into memory,
2423 count an extra reload if constant pool symbols are not valid
2424 addresses. If an alternative uses memory to move values between
2425 registers, count the move as two reloads rather than one.
2426 * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2427 * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2429 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2431 PR optimization/12799
2432 * postreload.c (reload_cse_move2add): Generate the add2
2435 2003-11-02 Eric Botcazou <ebotcazou@libertysurf.fr>
2437 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2438 Return 0 for all complex modes whose size is lesser or equal to
2439 a word. Add a ??? comment for the condition used with 16-byte
2442 2003-11-01 Kelley Cook <kcook@gcc.gnu.org>
2444 * .cvsignore: Remove c-parse* and tradcif.c.
2445 * objc/.cvsignore: Delete.
2447 2003-11-01 Roger Sayle <roger@eyesopen.com>
2449 * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2452 2003-11-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2454 * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2456 * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2458 * collect2.c (scan_libraries): Fix typos.
2460 PR preprocessor/12847
2461 * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2462 cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2463 c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2464 DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2467 2003-11-01 Fariborz Jahanian <fjahanian@apple.com>
2469 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2470 no_units calculation.
2472 2003-11-01 Andreas Jaeger <aj@suse.de>
2474 * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2477 2003-11-01 Andreas Schwab <schwab@suse.de>
2479 * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2481 (SBSS_SECTION_FUNCTION): Likewise.
2483 2003-11-01 Andreas Jaeger <aj@suse.de>
2485 * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2487 2003-11-01 Andreas Tobler <a.tobler@schweiz.ch>
2489 * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2492 2003-11-01 Andreas Jaeger <aj@suse.de>
2494 * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2495 (uw_frame_state_for): Constify variables.
2496 (extract_cie_info): Constify first argument.
2498 * unwind-dw2-fde-darwin.c: Adjust prototype of
2499 _Unwind_Find_registered_FDE for recent changes.
2500 (examine_objects): Constify return value and local variable result.
2501 (_Unwind_Find_FDE): Constify return value and local variable ret.
2503 2003-10-31 Per Bothner <pbothner@apple.com>
2505 * c-opts.c (finish_options): Change to returns boolean - false iff
2506 the call to cpp_find_main_file fails.
2507 (c_common_init): Skip preprocess_file if finish_options failed.
2508 (c_common_parse_file): Break if finish_options failed.
2509 Fixes PR preprocessor/12545.
2511 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2513 * aclocal.m4: Blacklist ultrix* for mmap file.
2514 * configure: Rebuilt.
2516 * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2517 reg_parm_stack_space.
2518 * toplev.c (default_get_pch_validity): Fix warning.
2520 * vax.c: Include toplev.h.
2521 (vax_init_libfuncs): Fix typo (umod).
2522 * vax.h (ASM_COMMENT_START): Define.
2523 (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2525 2003-10-31 Roger Sayle <roger@eyesopen.com>
2528 * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2529 confusing comment; distributivity isn't handled in expand_expr.
2530 * fold-const.c (extract_muldiv_1 <PLUS_EXPR>): Allow overflow
2531 in distributivity, if wrap-around semantics are specified with
2534 2003-11-01 Alan Modra <amodra@bigpond.net.au>
2537 * final.c (profile_function): Allow for NULL svrtx.
2539 2003-10-31 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2541 * pa.c (pa_select_section): Use new style declaration.
2542 * som.h (readonly_data): Likewise.
2544 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2546 * config/rs6000/rs6000.c: Update to C90 prototypes.
2548 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2551 * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2554 2003-10-31 Andreas Jaeger <aj@suse.de>,
2555 Zack Weinberg <zack@codesourcery.com>
2558 * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2559 (__deregister_frame_info, __deregister_frame_info_bases):
2560 Constify void * argument.
2561 * unwind-dw2-fde.h (struct fde_vector):
2562 Constify 'orig_data' and 'array' fields.
2563 (__register_frame_info, __register_frame_info_bases)
2564 (__deregister_frame_info, __deregister_frame_info_bases):
2565 Constify void * argument.
2566 (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2567 return values, and casts of type fde *, struct dwarf_fde *,
2568 and struct dwarf_cie *.
2569 * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2570 (__deregister_frame_info, __deregister_frame_info_bases):
2571 Constify void * argument.
2572 (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2573 (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2574 (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2575 fde_split, SWAP, frame_downheap, frame_heapsort)
2576 (classify_object_over_fdes, add_fdes, linear_search_fdes,
2577 binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2578 binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2579 Constify arguments, local variables, return values, and casts
2580 of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2581 Use const pointer types in sizeof expressions, for clarity.
2582 * unwind-dw2-fde-glibc.c
2583 (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2584 (struct unw_eh_callback_data): Constify 'ret' field.
2586 2003-10-31 Fariborz Jahanian <fjahanian@apple.com>
2587 David Edelsohn <edelsohn@gnu.org>
2589 * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2590 (function_arg): Call it.
2591 (rs6000_function_value): Widen integral return value to mode based
2592 on TARGET_32BIT, not word_mode.
2593 * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2594 (UNITS_PER_ARG): New.
2595 (RS6000_ARG_SIZE): Use it.
2597 2003-10-31 Gerald Pfeifer <gerald@pfeifer.com>
2599 * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2600 and gengtype-yacc.h.
2602 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2604 PR optimization/8896
2605 * postreload.c (reload_combine): Check that REGY doesn't die in an
2606 insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2608 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2611 * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2613 2003-10-31 Josef Zlomek <zlomekj@suse.cz>
2616 * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2617 immediatelly before BARRIER.
2619 2003-10-31 Kelley Cook <kcook@gcc.gnu.org>
2621 * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2623 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2626 * reload.c (find_reloads_address): Handle any register in
2627 (PLUS (PLUS (REG) (REG)) (CONST_INT).
2629 2003-10-31 Richard Earnshaw <rearnsha@arm.com>
2631 * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2632 ENABLE_GC_CHECKING not in GGC_POISON.
2634 2003-10-31 Nathanael Nerode <neroden@gcc.gnu.org>
2637 * configure.in: Bail out if awk is missing.
2638 * configure: Regenerate.
2641 * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2642 T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2644 2003-10-30 Richard Henderson <rth@redhat.com>
2646 * c-objc-common.c (c_tree_printer): Handle types correctly.
2649 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2651 * value-prof.c, web.c: Update to C90.
2653 2003-10-30 Eric Christopher <echristo@redhat.com>
2655 * function.c (purge_addressof_1): Add case for REG_RETVAL
2656 notes when modes are unequal.
2658 2003-10-31 Jan Hubicka <jh@suse.cz>
2660 * i386-modes.def: Add XFmode format adjustment.
2662 2003-10-30 Jan Hubicka <jh@suse.cz>
2664 * real.c (encode_ieee_extended): Back out previous patch.
2666 2003-10-30 Jan Hubicka <jh@suse.cz>
2668 * real.c (encode_ieee_extended): Initialize whole array.
2669 * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2670 * i386-modes.def: Change definitions of TFmode and XFmode.
2671 * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2673 (construct_container): Allow constructing of TFmode integer containers.
2674 (ix86_return_in_memory): XFmode is not returned in memory.
2675 (init_ext_80387_constants): Always use XFmode.
2676 (print_operand): Likewise.
2677 (ix86_prepare_fp_compare_regs): Likewise.
2678 (split_to_parts): Deal with TFmode.
2679 (split_long_move): Simplify.
2680 (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2681 (ix86_memory_move_cost): Do not confuse TFmode.
2682 * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2683 (IS_STACK_MODE): TFmode is not stack mode.
2684 (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2685 (VALID_SSE_REG_MODE): Allow TFmode.
2686 (VALID_FP_MODE_P): Disallow TFmode.
2687 (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2688 * i386.md (TFmode patterns): Kill.
2689 (movtf, motf_rex64): New patterns.
2691 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2693 * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2695 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2697 * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2698 (mov_lwr, mov_swl, mov_swr): Likewise.
2699 (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2701 2003-10-30 Richard Sandiford <rsandifo@redhat.com>
2703 * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2705 2003-10-30 Richard Henderson <rth@redhat.com>
2707 * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2708 test for irix6 rather than preprocessor test.
2710 2003-10-30 Richard Henderson <rth@redhat.com>
2712 * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2714 2003-10-30 Ulrich Weigand <uweigand@de.ibm.com>
2716 * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2717 as a general flag that the return address register needs to be saved,
2718 not necessarily because of __builtin_return_addr (0).
2719 (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2720 remove special handling of zSeries machines.
2721 (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2722 register as a regular register on zSeries machines.
2723 (s390_reorg): Adjust calls to s390_split_branches and
2724 s390_optimize_prolog.
2725 (s390_frame_info): On zSeries machines, do not assume the return
2726 register is always used. Update regs_ever_live with current data
2727 for the special registers.
2728 (s390_emit_epilogue): Use save_return_addr_p to determine whether
2729 the return register was saved.
2730 * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2731 RETURN_REGNUM fixed on zSeries machines.
2732 (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2733 * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2734 via ahi-jgne pair on zSeries machines.
2735 ("*doloop_di"): Likewise.
2736 ("*doloop_di_long"): Remove.
2738 2003-10-30 Richard Earnshaw <rearnsha@arm.com>
2740 * arm.c (arm_override_options): Revert change of arm_constant_limit
2741 when optimizing for size.
2743 2003-10-29 Richard Henderson <rth@redhat.com>
2745 * fold-const.c (fold_single_bit_test): Convert the input to the
2746 operational intermediate type.
2748 2003-10-29 Richard Henderson <rth@redhat.com>
2750 * builtins.c (std_build_builtin_va_list): New.
2751 * expr.h (std_build_builtin_va_list): Declare.
2752 * defaults.h (BUILD_VA_LIST_TYPE): New.
2753 * system.h (BUILD_VA_LIST_TYPE): Poison.
2754 * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2755 * target.h (struct gcc_target): Add build_builtin_va_list.
2756 * tree.c (build_common_tree_nodes_2): Use it.
2758 * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2759 config/alpha/alpha.h, config/alpha/unicosmk.h,
2760 config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2761 config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2762 config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2763 config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2764 config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2765 config/mips/mips.h, config/rs6000/rs6000-protos.h,
2766 config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2767 config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2768 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2769 config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2770 config/xtensa/xtensa.h: Rename foo_build_va_list to
2771 foo_build_builtin_va_list; make it static. Define
2772 TARGET_BUILD_BUILTIN_VA_LIST. Remove BUILD_VA_LIST_TYPE.
2775 * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2776 * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2778 2003-10-29 James E Wilson <wilson@specifixinc.com>
2780 * recog.c (asm_operand_ok): Add missing break after case 'X'.
2781 Change if statements to else if statements in default case.
2782 (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2784 (constrain_operands_cached): Likewise.
2785 (constrain_operands): Change if statements to else if statements in
2787 * reload.c (find_reloads): Likewise.
2789 2003-10-29 Richard Henderson <rth@redhat.com>
2791 * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2794 2003-10-30 Alan Modra <amodra@bigpond.net.au>
2796 * config/rs6000/rs6000.md: Remove duplicate pattern.
2798 2003-10-29 Hans-Peter Nilsson <hp@axis.com>
2800 * real.c (do_divide): Initialize result with a 0.
2802 * configure.in <enable-checking for valgrind>: Look for
2803 <valgrind/memcheck.h> first. AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2805 * configure, config.in: Regenerate.
2806 * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2807 HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>. Use
2808 #elif for other alternatives.
2809 * ggc-page.c: Ditto.
2810 * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2811 include structure from ggc-common.c.
2813 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2815 * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2816 (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2817 * pa.c (pa_adjust_insn_length): Check for btable branches using
2818 attribute TYPE_BTABLE_BRANCH.
2819 (pa_reorg): Simplify.
2820 * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2821 (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2822 (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2823 * pa.md (btable_branch): New instruction type.
2824 (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2826 (define_delay): Add btable branches to insn types that may have an
2827 insn in the delay position.
2828 (Z2, Z3): Add btable branch to list.
2829 Simplify unamed pattern set copy pic_label_operand to register. Add
2831 (short_jump): New jump for use in branch tables.
2832 (casesi, casesi0): Revise for new branch table formats.
2833 (casesi32, casesi32p, casesi64p): New casesi patterns.
2834 (indirect_jump): Move.
2836 2003-10-29 David Edelsohn <edelsohn@gnu.org>
2838 * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2840 (UNITS_PER_GPR_WORD): Delete.
2841 (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2842 (HARD_REGNO_MODE_OK): Same.
2843 (CLASS_MAX_NREGS): Same.
2845 2003-10-29 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2847 * pa.h (ASM_COMMENT_START): Define.
2849 2003-10-29 Zack Weinberg <zack@codesourcery.com>
2851 * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2852 MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2853 component, not zero.
2855 2003-10-29 Andreas Schwab <schwab@suse.de>
2857 * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2859 2003-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
2861 * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2862 Never return 1 for complex integral modes whose size is lesser or
2864 (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2866 (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2868 (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2869 greater than 16 bytes by reference.
2871 2003-10-29 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
2873 * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2875 (ia64_initialize_trampoline): Use globalize_label target call.
2877 2003-10-29 Andreas Schwab <schwab@suse.de>
2879 * doc/install.texi (Building): Add a sentence about building Ada
2880 for a canadian cross.
2882 2003-10-28 Zack Weinberg <zack@codesourcery.com>
2884 * config/ia64/ia64.c (cmptf_libfunc): New static.
2885 (ia64_expand_compare): Add logic to open-code calls to
2886 _U_Qfcmp for TFmode comparisons.
2887 (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2888 Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2889 never be generated anymore.
2890 * config/ia64/ia64.md (cmptf): New expander.
2892 2003-10-28 Zack Weinberg <zack@codesourcery.com>
2894 * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2895 (*sqrt_approx): New instruction pattern for approximate square roots.
2896 (*setf_exp_xf): New instruction pattern for exponentiation.
2897 (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2898 (sqrtsf2_internal_thr): New define_and_split implementing
2899 throughput-optimized inline calculation of SFmode square root.
2900 (sqrtdf2_internal_thr): Likewise for DFmode.
2901 (sqrtxf2_internal_thr): Likewise for XFmode.
2902 (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2903 latency- and throughput-optimized square root algorithms.
2904 * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2905 TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2907 (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2908 -minline-sqrt-max-throughput.
2909 * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2910 and -minline-sqrt-max-throughput are given, notify the user
2911 that both options cannot be used simultaneously.
2912 If -minline-sqrt-min-latency is given, notify the user that
2913 this mode is not yet implemented.
2914 (rtx_needs_barrier): Reformat initial comment to obey
2915 72-character width limit. Support UNSPEC_SETF_EXP and
2916 UNSPEC_FR_SQRT_RECIP_APPROX.
2918 2003-10-29 Alan Modra <amodra@bigpond.net.au>
2920 * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2923 2003-10-28 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
2927 * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2929 2003-10-28 Richard Earnshaw <rearnsha@arm.com>
2931 * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2932 an extra stack adjustment insn if the stack pointer is already
2933 pointing at the right place.
2934 (use_return_insn): Allow a return insn to be used when we have a
2935 frame pointer if the stack pointer is in the right place.
2936 (output_return_instruction): Handle it.
2938 2003-10-28 Andreas Jaeger <aj@suse.de>
2940 * ggc-zone.c (check_cookies): Add missing variable.
2941 Add void to prototypes.
2943 2003-10-27 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
2945 * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2946 * crtstuff.c (__do_global_ctors_1): Move prototype.
2947 * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2949 * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2950 Mark parameter with __attribute__((unused)).
2952 2003-10-27 Zack Weinberg <zack@codesourcery.com>
2954 * c-decl.c (pushdecl): Clarify comment.
2956 2003-10-27 Arnaud Charlet <charlet@act-europe.fr>
2958 * doc/install.texi: Update instructions for Ada cross builds
2961 * doc/sourcebuild.texi: Document Ada test suite.
2963 2003-10-27 Stephane Carrez <stcarrez@nerim.fr>
2965 * config/m68hc11/m68hc11.c: Convert to ISO C90.
2966 * config/m68hc11/m68hc11-protos.h: Likewise.
2968 2003-10-27 Jan Hubicka <jh@suse.cz>
2969 Eric Botcazou <ebotcazou@libertysurf.fr>
2971 * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2974 2003-10-27 Jakub Jelinek <jakub@redhat.com>
2975 Jan Hubicka <jh@suse.cz>
2977 * reload1.c (struct elim_table): Change offset, initial_offset and
2978 previous_offset fields to HOST_WIDE_INT.
2979 (offsets_at): Change from int to HOST_WIDE_INT.
2980 (reload): Adjust offsets_at initialization.
2981 (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2982 (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2983 * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2984 to HOST_WIDE_INT. Don't save regs using mov for huge frame sizes
2986 (pro_epilogue_adjust_stack): New function.
2987 (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2988 * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2989 (pro_epilogue_adjust_stack_1): Remove * in front of name.
2990 (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2991 (pro_epilogue_adjust_stack_rex64_2): New insn.
2993 * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2995 * config/i386/i386.c (ix86_expand_call): Replace 40 with
2996 FIRST_REX_INT_REG + 3 /* R11 */.
2998 2003-10-26 Richard Henderson <rth@redhat.com>
3000 * config/alpha/alpha.md (attr cannot_copy): New.
3001 (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3002 prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3003 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3005 2003-10-26 Daniel Berlin <dberlin@dberlin.org>
3007 * ggc-zone.c: New file, zone allocating collector.
3008 * configure: Accept zone option for --with-gc
3009 * configure.in: Ditto.
3010 * ggc.h (ggc_pch_count_object): Pass bool indicating
3011 stringiness. Update all callers.
3012 (ggc_pch_alloc_object): Ditto.
3013 (ggc_pch_write_object): Ditto.
3014 (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3016 (ggc_alloc_rtvec): Ditto.
3017 (ggc_alloc_tree): Use zone allocation, since some things using this macro
3018 aren't a single typecode.
3019 * ggc-none.c (ggc_alloc_typed): New function.
3020 (ggc_alloc_zone): Ditto.
3021 * ggc-page.c: Ditto on both functions.
3023 2003-10-26 Gunther Nikl <gni@gecko.de>
3025 * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3026 frame information is always valid.
3027 (m68k_output_function_prologue): Remove superfluous TARGET_68881
3028 test; fix formatting.
3030 2003-10-26 Gunther Nikl <gni@gecko.de>
3032 * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3033 reg_rev_mask computation.
3034 (m68k_output_function_prologue): Fix usage of current_frame (one typo
3035 and one missing); use reg_rev_mask not reg_mask.
3036 (m68k_output_function_epilogue): Fix usage of current_frame;
3037 use fpu_rev_mask not fpu_mask.
3039 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3041 * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3042 num_saved_regs, use current_frame.reg_no instead.
3044 2003-10-26 Bernardo Innocenti <bernie@develer.com>
3045 Paul Dale <pauli@snapgear.com>
3047 * doc/extend.texi (interrupt_handler): Add m68k to the
3048 list of processors implementing it.
3049 * doc/invoke.texi (-msep-data): Document new m68k option.
3050 (-mno-sep-data): Likewise.
3051 (-mid-shared-library): Likewise.
3052 (-mno-id-shared-library): Likewise.
3053 (-mshared-library-id): Likewise.
3055 2003-10-26 Andreas Jaeger <aj@suse.de>
3057 * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3059 (_Unwind_SetGR): Likewise.
3061 2003-10-26 Ottavio Campana <ottavio@campana.vi.it>
3064 * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3066 2003-10-26 Gunther Nikl <gni@gecko.de>
3068 * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3069 comment from here to...
3070 (m68k_save_reg): ...here. Fix comment formatting.
3071 (m68k_output_function_prologue): Fix comment formatting.
3072 (m68k_output_function_epilogue): Likewise.
3073 (const_method): Likewise.
3075 2003-10-26 Kazu Hirata <kazu@cs.umass.edu>
3077 * toplev.c (default_get_pch_validity): Guard the use of
3078 target_options with #ifdef TARGET_OPTIONS.
3079 (default_pch_valid_p): Likewise.
3081 2003-10-26 Andreas Jaeger <aj@suse.de>
3082 Zack Weinberg <zack@codesourcery.com>
3083 Andreas Tobler <toa@pop.agri.ch>
3085 * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3086 (output_die): Likewise.
3087 (print_die): Likewise.
3089 2003-10-26 Andreas Jaeger <aj@suse.de>
3091 * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3092 dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3095 * toplev.c (default_pch_valid_p): Fix warning.
3097 2003-10-25 Roger Sayle <roger@eyesopen.com>
3099 * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3100 RTL nodes. If an operator's operands are unchanged, return the
3101 original argument unchanged.
3103 2003-10-26 Graham Stott <graham.stott@btinternet.com>
3105 Fix bootstrap failure.
3106 * expmed.c (store_bit_field): Don't compare bitsize against
3107 modes with zero bit-size.
3109 (extract_bit_field): Likewise
3111 2003-10-25 Jan Hubicka <jh@suse.cz>
3113 * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3114 (cfa_loc): Likewise.
3115 (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3117 (args_size, old_args_size): change type to HOST_WIDE_INT.
3118 (dwarf2out_def_cfa, dwarf2out_args_size,
3119 dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3120 (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3121 (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3122 AT_offset): Use HOST_WIDE_INT.
3123 (based_loc_descr): offset is HOST_WIDE_INT.
3124 (add_data_member): Likewise.
3125 (add_const_value_attribute): Simplify.
3127 2003-10-25 Richard Henderson <rth@redhat.com>
3129 * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3130 (ix86_expand_prologue): Save and restore eax around stack probe
3133 2003-10-25 Jan Hubicka <jh@suse.cz>
3135 * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3137 2003-10-25 Eric Botcazou <ebotcazou@libertysurf.fr>
3140 * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3141 if the block has no predecessors.
3142 (convert_regs_2): Document the problem with successors whose
3143 only predecessor is the block to be processed.
3144 (convert_regs): Don't create the arbitrary input stack here.
3146 2003-10-24 Zack Weinberg <zack@codesourcery.com>
3148 * genmodes.c (struct mode_data): Add contained and next_cont
3150 (complete_mode): Maintain linked list of modes that have a
3152 (emit_mode_unit_size): Delete.
3153 (emit_mode_nunits): New.
3154 (emit_insn_modes_c): Update to match.
3155 (emit_mode_adjustments): Propagate size and alignment
3156 adjustments from component modes to their containers.
3157 * machmode.h (mode_unit_size): Delete.
3159 (GET_MODE_NUNITS): Just return the value in the table.
3160 (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3162 * expmed.c (store_bit_field, extract_bit_field): Can use a
3163 plain move instruction if bitsize >= GET_MODE_BITSIZE of
3164 destination/source mode, respectively.
3165 * varasm.c (assemble_real): Write out the full size of the
3166 constant, not just its bitsize.
3167 (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3169 * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3170 Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3171 alignment of XF and TF modes in compliance with ia64 ABIs.
3172 Can now hardwire the format of both modes.
3173 * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3174 (general_tfmode_operand, destination_tfmode_operand)
3175 (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3176 general_xfmode_operand, destination_xfmode_operand,
3177 xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3178 (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3179 and float80_type be 96 so they get XFmode. Use !TARGET_HPUX,
3180 not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3182 * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3183 Change TFmode to XFmode wherever appropriate. Remove all
3184 references to INTEL_EXTENDED_IEEE_FORMAT.
3185 (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3186 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3187 (PREDICATE_CODES): Update to match function renames.
3188 * config/ia64/ia64.md: Change TF to XF throughout; rename all
3189 patterns to match. Remove all references to
3190 INTEL_EXTENDED_IEEE_FORMAT. Update predicate calls to match
3192 * config/ia64/ia64-protos.c: Update all prototypes to match
3194 * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3195 Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3196 * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3197 __divtf3; keep old name for backward compatibility.
3198 (L__compat): New section providing forwarding stubs for
3199 __fixtfti, __fixunstfti, __floattitf.
3200 * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3202 2003-10-24 Geoffrey Keating <geoffk@apple.com>
3205 * c-pch.c: Include target.h. Improve comments.
3206 (struct c_pch_validity): Add target_data_length.
3207 (pch_init): Add target's validity data.
3208 (c_common_valid_pch): Check target's validity data.
3209 * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3210 (TARGET_PCH_VALID_P): New.
3211 (TARGET_INITIALIZER): Add new fields.
3212 * target.h: Include tm.h.
3213 (struct gcc_target): Add get_pch_validity, pch_valid_p.
3214 * toplev.h (default_get_pch_validity): New prototype.
3215 (default_pch_valid_p): New prototype.
3216 * toplev.c (default_get_pch_validity): New routine.
3217 (default_pch_valid_p): New routine.
3218 * Makefile.in (TARGET_H): Add TM_H. Replace all users of
3219 target.h with $(TARGET_H).
3220 (c-pch.o): Add TARGET_H.
3221 * doc/tm.texi (PCH Target): New node.
3222 (TARGET_GET_PCH_VALIDITY): Document.
3223 (TARGET_PCH_VALID_P): Document.
3225 2003-10-24 Kelley Cook <kcook@gcc.gnu.org>
3227 * Makefile.in: Define a vpath for %.texi. Remove explicit $(docdir)
3228 and $(docdir)/include from any *.texi dependencies.
3229 ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3230 ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3231 ($(docobjdir)/%.7): Likewise.
3232 (%.pod): New implicit rule.
3233 (cpp.pod): New dependency only rule.
3234 (gcc.pod): New intermediate rule with dependencies and commands.
3235 (gfdl.pod): Likewise.
3236 (fsf-funding.pod): Likewise.
3238 2003-10-24 Nathanael Nerode <neroden@gcc.gnu.org>
3240 * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3242 * fixinc/fixinc.ptx: Remove.
3243 * fixinc/fixinc.svr4: Remove.
3245 2003-10-24 Ulrich Weigand <uweigand@de.ibm.com>
3247 * config/s390/s390.c (load_multiple_operation): Allow both SImode
3248 and DImode if word_mode is DImode.
3249 (store_multiple_operation): Likewise.
3250 * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3251 ("*load_multiple_di"): Allow only if word_mode == DImode.
3252 ("movqi"): Use LLGC whenever TARGET_ZARCH.
3253 ("fix_truncdfsi2"): Fix incorrect temporary size.
3254 ("fix_truncsfsi2"): Likewise.
3255 ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3256 string for function return value operand.
3257 ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3259 2003-10-24 Joseph S. Myers <jsm@polyomino.org.uk>
3261 * c-parse.in (array_declarator): Use expr_no_commas.
3264 2003-10-24 Richard Sandiford <rsandifo@redhat.com>
3266 * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3267 associated includes in #ifndef inhibit_libc.
3269 2003-10-24 Roger Sayle <roger@eyesopen.com>
3271 * doc/libgcc.texi: Document some more of the libgcc API.
3273 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3275 * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3276 comparing a constant with small negative numbers and add costing
3277 for constants in conjunction with AND.
3278 (note_invalid_constants): Tidy previous change.
3279 (thumb_cmp_operand): Tidy.
3280 (thumb_cmpneg_operand): New function.
3281 * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3283 (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3284 (PREDICATE_CODES): Add thumb_cmpneg_operand.
3285 * arm.md (cbranchsi4): Convert to define_expand. Handle comparison
3286 with a negative constant.
3287 (cbranchsi4_insn): Matcher for cbranchsi4.
3288 (cbranchsi4_scratch): Similar, but a scratch is available for
3289 handling negative constants.
3290 (movsi_cbranchsi4): New pattern.
3291 (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3292 and use the TST instruction.
3293 (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3294 (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3295 cannot see high regs or memory alternatives.
3296 (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3298 2003-10-24 Richard Earnshaw <rearnsha@arm.com>
3300 * arm.c (note_invalid_constants): Try to extract the constant
3301 pool value using avoid_constant_pool_reference; only use
3302 get_pool_constant if that returns the original reference.
3304 2003-10-24 Jan Hubicka <jh@suse.cz>
3307 * varasm.c (notice_global_symbol): Disqualify global registers.
3309 2003-10-23 Roger Sayle <roger@eyesopen.com>
3312 * loop.c (load_mems): Use redirect_jump to forward jumps from
3313 the original loop end label to the new "loop sink" block's label.
3315 2003-10-23 Roger Sayle <roger@eyesopen.com>
3318 * optabs.c (expand_binop): When expanding complex operations
3319 inline, always calculate result into a new temporary register.
3320 Minor code clean-ups.
3322 2003-10-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3324 * objc/lang-specs.h: Handle -print-objc-runtime-info.
3325 * doc/invoke.texi (Objective-C Dialect Options): Document it.
3327 2003-10-24 Danny Smith <dannysmith@users.sourceforge.net>
3329 * config/i386/cygwin.asm: Add copyright notice. Add comment
3330 on why this code is needed.
3332 2003-10-23 Kazu Hirata <kazu@cs.umass.edu>
3334 * config/h8300/clzhi2.c: Fix warnings.
3335 * config/h8300/ctzhi2.c: Likewise.
3336 * config/h8300/fixunssfsi.c: Likewise.
3337 * config/h8300/parityhi2.c: Likewise.
3338 * config/h8300/popcounthi2.c: Likewise.
3340 2003-10-23 James E Wilson <wilson@specifixinc.com>
3342 * gcc.c (option_map): Delete --target and --use-version.
3344 2003-10-23 Fariborz Jahanian <fjahanian@apple.com>
3345 David Edelsohn <edelsohn@gnu.org>
3347 * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3349 (UNITS_PER_GPR_WORD): Define.
3350 (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3351 (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3352 (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3353 (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3354 * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3355 DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3356 (rs6000_emit_prologue): Select reg_mode and reg_size using
3357 TARGET_32BIT, not TARGET_POWERPC64.
3358 (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3359 ABI / 64-bit computation mode
3361 2003-10-22 Andrew Haley <aph@redhat.com>
3363 * toplev.c (output_file_directive): Allow for null input_name.
3365 2003-10-22 Waldek Hebisch <hebisch@math.uni.wroc.pl>
3367 * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3369 2003-10-22 Chris Demetriou <cgd@broadcom.com>
3371 * configure.in: In --enable-generated-files-in-srcdir option
3372 handling, fix default case handling.
3373 * configure: Regenerate.
3375 2003-10-22 Phil Edwards <phil@codesourcery.com>
3377 * config.gcc: Update *-*-vxworks* generic hook and comments.
3378 (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3379 mips-wrs-windiss, sh-wrs-vxworks): New stanzas.
3380 * genmultilib: Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3381 * config/svr4.h (SWITCH_TAKES_ARG): Undefine it before redefining it.
3382 * config/windiss.h: New file.
3383 * config/arm/t-vxworks: New file.
3384 * config/arm/vxworks.h: New file.
3385 * config/i386/t-vxworks: New file.
3386 * config/i386/vxworks.h: New file.
3387 * config/mips/t-vxworks: New file.
3388 * config/mips/vxworks.h: New file.
3389 * config/mips/windiss.h: New file.
3390 * config/sh/t-vxworks: New file.
3391 * config/sh/vxworks.h: New file.
3393 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3395 * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3396 (h8300_saveall_function_p): New.
3397 (h8300_insert_attributes): Insert the saveall attribute if
3398 #pragma saveall is specified.
3399 (h8300_attribute_table): Add saveall.
3400 (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3401 * doc/extend.texi: Mention the saveall attribute.
3403 2003-10-22 Joseph S. Myers <jsm@polyomino.org.uk>
3405 * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3406 deprecation of casts as lvalues.
3407 * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3408 * fixinc/fixincl.x: Regenerate.
3409 * fixinc/tests/base/obstack.h: New test.
3411 2003-10-22 Andreas Schwab <schwab@suse.de>
3414 * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3417 2003-10-22 Jan Hubicka <jh@suse.cz>
3419 * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3420 presence of DW_AT_inline.
3421 (gen_subprogram_die): Likewise; do not abort instead of emitting
3424 2003-10-22 Jan Hubicka <jh@suse.cz>
3426 * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3427 global info is not ready.
3429 2003-10-22 Kazu Hirata <kazu@cs.umass.edu>
3431 * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3433 2003-10-22 Ulrich Weigand <uweigand@de.ibm.com>
3435 * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3436 ("*movstr_short"): ... into this insn pattern.
3437 ("movstr_short"): New expander.
3438 ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3439 ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3440 ("movstr_long"): New expander.
3441 ("clrstr_short_64", "clrstr_short_31"): Merge ...
3442 ("*clrstr_short"): ... into this insn pattern.
3443 ("clrstr_short"): New expander.
3444 ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3445 ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3446 ("clrstr_long"): New expander.
3447 ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3448 ("*cmpmem_short"): ... into this insn pattern.
3449 ("cmpmem_short"): New expander.
3450 ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3451 ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3452 ("cmpmem_long"): New expander.
3453 * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3454 (s390_expand_clrstr): Likewise.
3455 (s390_expand_cmpmem): Likewise.
3457 2003-10-22 Mark Mitchell <mark@codesourcery.com>
3459 * c-pch.c (struct c_pch_validity): Add pch_init field.
3461 (c_common_valid_pch): Check it.
3463 2003-10-22 David Taylor <dtaylor@emc.com>
3466 * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3468 2003-10-22 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
3470 * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3471 alpha_return_in_memory if no VALTYPE specified.
3473 2003-10-22 Jan Hubicka <jh@suse.cz>
3476 * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3477 * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3478 * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3479 (cgraph_global_info): Add flag inlined
3480 * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3481 cgraph_function_possibly_inded_p
3482 * cgraphunit.c (mark_inline): Set inlined flag.
3483 * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3484 only for possibly inlined functions.
3485 * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3488 2003-10-22 Andrew Haley <aph@redhat.com>
3490 * varasm.c (output_constructor): Make constructor annotation
3491 conditional on ASM_COMMENT_START.
3493 2003-10-21 Jason Merrill <jason@redhat.com>
3495 * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3496 (get_narrower): Likewise.
3498 * stor-layout.c (layout_decl): Do packed field alignment for
3501 2003-10-21 Eric Christopher <echristo@redhat.com>
3503 * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3505 2003-10-21 Geoffrey Keating <geoffk@apple.com>
3507 * c-pch.c: Add comments in various places.
3508 (struct c_pch_validity): Add the lengths of various strings.
3509 (host_machine): New static.
3510 (target_machine): New static.
3511 (get_ident): Bump version number.
3512 (pch_init): Write out version, host, target validity data.
3513 (c_common_valid_pch): Check version, host, target.
3514 * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3517 2003-10-21 Jason Merrill <jason@redhat.com>
3519 * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3520 (EXPR_P): New macro.
3522 2003-10-21 Zack Weinberg <zack@codesourcery.com>
3524 * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3525 * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3526 ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3527 DImode. Use convert_move to load ar.ccv.
3528 (ia64_expand_compare_and_swap): Likewise.
3529 If expand_expr doesn't put 'old' and 'new' in the proper
3530 modes, run them through convert_to_mode.
3532 2003-10-21 Eric Christopher <echristo@redhat.com>
3534 * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3535 for too large bitfields.
3537 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3539 * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3541 2003-10-21 Andrew Haley <aph@redhat.com>
3543 * varasm.c (output_constructor): Annotate constructor.
3545 2003-10-21 Mark Mitchell <mark@codesourcery.com>
3547 * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3548 on existence of destination file.
3550 2003-10-21 Jan Hubicka <jh@suse.cz>
3552 * haifa-sched.c (choose_ready): Initialize index.
3554 2003-10-21 Jason Merrill <jason@redhat.com>
3556 * tree.c (build1): Fix off-by-one error.
3558 2003-10-21 Robert Millan <robertmh@gnu.org>
3560 * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3561 * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3562 * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3563 * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3565 2003-10-21 Eric Botcazou <ebotcazou@libertysurf.fr>
3567 * web.c: Fix various comments.
3569 2003-10-20 Nicolas Pitre <nico@cam.org>
3571 * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3572 to 2 instead of 1 when optimize_size is true. Gather code based on
3573 optimize_size together. Add comment about XScale load latency.
3575 2003-10-21 Gunther Nikl <gni@gecko.de>
3577 * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3580 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3582 * Makefile.in: Get parsedir and docobjdir from configure.
3583 * configure.in: Recogonize --enable-generated-files-in-srcdir.
3584 Pass along parsedir and docobjdir.
3585 * configure: Regenerate.
3586 * doc/install.texi: Document --enable-generated-files-in-srcdir.
3588 2003-10-20 Kelley Cook <kcook@gcc.gnu.org>
3590 * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3593 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3595 * c-common.c (expand_tree_builtin): Ensure creal and cimag
3596 functions do not return lvalues.
3598 2003-10-20 Jason Merrill <jason@redhat.com>
3601 * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3605 * stor-layout.c (layout_decl): Fix alignment handling.
3607 2003-10-20 Joseph S. Myers <jsm@polyomino.org.uk>
3609 * doc/extend.texi: Deprecate casts as lvalues.
3611 2003-10-20 Jan Hubicka <jh@suse.cz>
3613 * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3615 * cgraphunit.c (decide_is_function_needed): Fix test dealing
3616 with functions implicitly made inline.
3618 * cgraphunit.c (cgraph_decide_inlining_incrementally): New function.
3619 (cgraph_finalize_function): Use it.
3620 (cgraph_mark_inline): Allow incrmental decisions
3621 * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3622 * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3623 * tree-inline.c (limits_allow_inlining): Kill.
3624 (expand_call_inline): Always use unit-at-a-time path.
3626 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3628 * fixinc/inclhack.def (hpux11_snprintf): New edit.
3629 * fixinc/fixincl.x: Regenerate.
3630 * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3632 2003-10-20 Mark Mitchell <mark@codesourcery.com>
3634 * Makefile.in (install-info): Simplify.
3635 ($(DESTDIR)$(infodir)/%.info): New rule.
3636 * configure.in (target_list): Remove install-info.
3637 * doc/.cvsignore (gcc.info*): Remove.
3638 (gccint.info*): Likewise.
3639 (gccinstall.info*): Likewise.
3640 (cpp.info*): Likewise.
3641 (cppinternals.info*): Likewise.
3643 * doc/sourcebuild.texi: Update description of install-info.
3644 * objc/Make-lang.in (objc.install-info): Remove.
3646 2003-10-20 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3648 * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3649 Use it in _MIPS_SIM definition.
3650 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3652 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3654 * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3655 virtual register, but only if file == asm_out_file.
3656 * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3657 for ARG_POINTER_REGNUM.
3659 2003-10-20 Zack Weinberg <zack@codesourcery.com>
3661 * c-common.c (registered_builtin_types): New static.
3662 (c_common_type_for_mode): Consult registered_builtin_types.
3663 (c_register_builtin_type): Add type to registered_builtin_types.
3664 * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3665 all MODE_FLOAT modes, not just the ones corresponding to
3666 float_type_node, double_type_node, and long_double_type_node.
3668 2003-10-20 Richard Henderson <rth@redhat.com>
3670 * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3671 * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3673 2003-10-20 Dorit Naishlos <dorit@il.ibm.com>
3675 * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3676 support new flag -minsert-sched-nops.
3677 (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3678 * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3679 support new flag -minsert-sched-nops.
3680 (is_cracked_insn, is_microcoded_insn): New functions.
3681 (rs6000_sched_finish): New function.
3682 (rs6000_issue_rate): Return 5 for power4.
3683 (get_next_active_insn, insn_terminates_group_p): New
3685 (is_costly_group, force_new_group): New functions.
3686 (redefine_groups, pad_groups): New functions.
3687 (rs6000_variable_issue): Use new functions.
3688 * doc/invoke.texi (-minsert-sched-nops): Document new
3691 2003-10-20 David S. Miller <davem@redhat.com>
3693 * config/sparc/sparc.md (type attribute): Add new insn types
3694 fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3695 (patterns emitting VIS insns): Use them.
3696 * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3697 * config/sparc/ultra3.md: Likewise.
3699 2003-10-20 Falk Hueffner <falk@debian.org>
3702 * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3703 comparison against constant by adjusting the argument except for
3706 2003-10-19 Mark Mitchell <mark@codesourcery.com>
3708 * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3709 arm1136jfs, and armv6j.
3710 * config/arm/arm.c (FL_ARCH6J): New macro.
3711 (FL_VFPV2): Likewise.
3712 (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3714 (all_architectures): Add entry for armv6j.
3715 (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3716 arm1136js, and arm1136jfs.
3717 * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3718 (TARGET_CPU_arm1026ej_s): Likewise.
3719 (TARGET_CPU_arm1136j_s): Likewise.
3720 (TARGET_CPU_arm1136jf_s): Likewise.
3721 * doc/invoke.texi: Document new ARM cores and architecture
3724 2003-10-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
3726 * Makefile.in (toplev.o): Add value-prof.h dependency.
3727 (value-prof.o): Add REGS_H dependency.
3728 * common.opt (fprofile-values, fvpt): New.
3729 * flags.h (flag_value_profile_transformations): Declare.
3730 * opts.c (common_handle_option): Handle -fprofile_values and
3732 * profile.c (branch_prob): Don't remove death notes here.
3733 * timevar.def (TV_VPT): New.
3734 * value-prof.c: Include regs.h.
3735 (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3736 gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3737 mod_subtract_transform, value_profile_transformations): New.
3738 (insn_values_to_profile): Call insn_divmod_values_to_profile.
3739 (find_values_to_profile): Add dumps.
3740 * value-prof.h (value_profile_transformations): Declare.
3741 * toplev.c: Include value-prof.h.
3742 (rest_of_handle_value_profile_transformations): New.
3743 (enum dump_file_index): Add DFI_vpt.
3744 (dump_file): Add vpt dump.
3745 (flag_value_profile_transformations): New.
3746 (lang_independent_options): Add flag_profile_values and
3747 flag_value_profile_transformations.
3748 (rest_of_compilation): Call
3749 rest_of_handle_value_profile_transformations.
3750 (process_options): Let -fvpt imply -fprofile-values.
3751 * doc/invoke.texi (-fvpt): Document.
3753 2003-10-19 Jan Hubicka <jh@suse.cz>
3755 * i386.c (print_reg): Do not abort on certain registers.
3757 PR optimization/12612
3758 * reg-stack.c (subst_stack_regs_pat): Use st(1) for clobbers.
3759 * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3760 match_scratch; avoid bogus paralles.
3763 * i386.c (ix86_function_regparm): Disable implicit register passing
3764 conventions when profiling.
3766 2003-10-19 Eric Botcazou <ebotcazou@libertysurf.fr>
3767 Richard Henderson <rth@redhat.com>
3769 PR optimization/8178
3770 * config/i386/i386.md (*movsi_zero): Delete.
3771 (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3773 2003-10-19 Richard Henderson <rth@redhat.com>
3775 * config/alpha/alpha.c (fix_operator): New.
3776 (divmod_operator): Tidy.
3777 (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3778 * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3779 (PREDICATE_CODES): Update.
3780 * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3781 (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3782 (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3783 (fix_truncsfdi_ieee): Likewise.
3784 (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3785 (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3786 * config/alpha/alpha-protos.h: Update.
3788 2003-10-19 Richard Sandiford <rsandifo@redhat.com>
3790 * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3791 * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3792 * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3795 2003-10-18 Kazu Hirata <kazu@cs.umass.edu>
3797 * doc/extend.texi: Fix typos.
3798 * doc/invoke.texi: Likewise.
3800 2003-10-18 Nicolas Pitre <nico@cam.org>
3802 * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3803 XScale optimizations not arm_arch_xscale.
3804 * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3806 2003-10-18 Ulrich Weigand <uweigand@de.ibm.com>
3808 * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3809 * config/s390/s390.c (shift_count_operand): New function.
3810 (s390_extra_constraint): Use it to implement 'Y' constraint.
3811 (print_shift_count_operand): New function.
3812 (print_operand): Use it to implement '%Y'.
3813 * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3814 (PREDICATE_CODES): Add shift_count_operand.
3815 * config/s390/s390.md ("rotldi3"): Merge alternatives,
3816 using "shift_count_operand" predicate and "Y" constraint,
3817 and "%Y" to output the combined shift count.
3818 ("rotlsi3"): Likewise.
3819 ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3820 ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3821 "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3822 ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3823 ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3824 ("lshrsi3"): Likewise.
3826 2003-10-18 Gunther Nikl <gni@gecko.de>
3828 * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3829 argument to asm_fprintf statement.
3831 2003-10-18 Fariborz Jahanian <fjahanian@apple.com>
3833 * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3834 (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3835 a "long long" argument.
3837 2003-10-18 Alexandre Oliva <aoliva@redhat.com>
3839 * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3842 2003-10-18 Richard Sandiford <rsandifo@redhat.com>
3844 * rtl.h (rtl_size): Declare.
3845 (rtunion): Remove rtwint.
3846 (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3847 (RTX_HDR_SIZE, RTX_SIZE): New macros.
3848 (RTL_CHECK1): Adjust for new rtx_def layout.
3849 (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3850 (XWINT, XCWINT): Likewise. Access the rtx structure directly.
3853 * rtl.def: Adjust comments for new rtx_def layout.
3854 * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3856 * rtl.c (rtx_size): New array.
3857 (rtx_alloc): Adjust call to ggc_alloc_rtx. Use RTX_HDR_SIZE.
3858 (copy_rtx): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
3859 (shallow_copy_rtx): Adjust call to ggc_alloc_rtx. Use RTX_SIZE.
3860 * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3861 * emit-rtl.c (copy_most_rtx): Likewise.
3862 (copy_rtx_if_shared): Use RTX_SIZE.
3863 (copy_insn_1): Use RTX_HDR_SIZE. Adjust for new rtx_def layout.
3864 * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call. Use RTX_HDR_SIZE.
3865 * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3866 (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3867 an array. Adjust output for new rtx_def layout.
3868 * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3869 * reload1.c (eliminate_regs): Use RTX_SIZE.
3870 * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3871 * gdbinit.in (pi): Likewise.
3873 2003-10-18 Jan Hubicka <jh@suse.cz>
3875 * integrate.c (copy_decl_for_inlining): Revert previous patch.
3877 2003-10-18 Jan Hubicka <jh@suse.cz>
3879 * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3881 2003-10-18 Roger Sayle <roger@eyesopen.com>
3883 * libgcc.texi: Group multi-word types, such as "long double" and
3884 "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3885 Document __unord?f2 as returning a non-zero value, not just one.
3887 2003-10-18 Hans-Peter Nilsson <hp@bitrange.com>
3889 * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3890 ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3892 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3894 * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3897 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3899 * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3900 parameter packed_p. Search for a DECL_PACKED field only if
3901 packed_p is false. Pass packed_p recursively.
3902 (function_arg_record_value_2): Likewise.
3903 (function_arg_record_value): Update calls to
3904 function_arg_record_value_1 and function_arg_record_value_2.
3906 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3908 * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3909 was successfully forced to memory before using the result.
3911 2003-10-18 Eric Botcazou <ebotcazou@libertysurf.fr>
3913 PR optimization/8178
3914 * config/i386/i386.md (*movsi_zero): New insn to set
3915 a register to zero on TARGET_USE_MOV0 targets.
3917 2003-10-18 Kelley Cook <kcook@gcc.gnu.org>
3919 * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3920 (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3922 2003-10-17 David Edelsohn <edelsohn@gnu.org>
3924 * doc/invoke.texi (gcse-las): Fix typo.
3926 2003-10-17 Andrew Pinski <pinskia@physics.uc.edu>
3928 * doc/install.texi: Remove first part of the sentence for
3929 zsh not working. Change gcc to GCC.
3932 * doc/install.texi: Document that zsh does not work when
3935 2003-10-17 Nathanael Nerode <neroden@gcc.gnu.org>
3937 * config/ptx4.h: Switch to DWARF 2; update comments.
3939 2003-10-17 Segher Boessenkool <boessen@de.ibm.com>
3940 Hartmut Penner <hpenner@de.ibm.com>
3942 PR 10404, partial 11591, partial 11601
3943 * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3944 "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3945 "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3946 "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3947 "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3948 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3949 (altivec_expand_stv_builtin): Adjust for the memory_operand.
3950 (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3951 (altivec_init_builtins): Use `long int' for memory offsets.
3953 2003-10-17 Jan Hubicka <jh@suse.cz>
3955 * opts.c (common_handle_option): Handle OPT_fweb
3956 * invoke.texi (-fweb): Add missing parts of documentation.
3958 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
3960 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3961 before redefinition.
3963 2003-10-17 Mostafa Hagog <mustafa@il.ibm.com>
3965 * common.opt: Add description of the new -fgcse-las flag.
3966 * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3967 * gcse.c (hash_scan_set): Handle the case of store expression and
3968 insert the memory expression to the hash table, this way we make it
3969 possible to discover redundant loads after stores and remove them.
3970 (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3971 to pre_insert_copies, it is not the correct place to call it after
3972 adding stores to be in the available expression hash table.
3973 (pre_insert_copies): Added the call to update_ld_motion_stores when
3974 one or more copies were inserted.
3975 * opts.c (common_handle_option): Handle the -fgcse-las flag.
3976 * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3978 * doc/invoke.tex: Document new -fgcse-las flag.
3980 2003-10-18 Alan Modra <amodra@bigpond.net.au>
3982 * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3983 for posterity, then remove it.
3985 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
3986 Nathan Sidwell <nathan@codesourcery.com>
3988 * config/arm/arm.c (use_return_insn): Not a single instruction, if
3989 there's a frame pointer.
3990 (arm_output_epilogue): Protect stack pointer from being corrupted
3993 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
3995 * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3997 2003-10-17 Ulrich Weigand <uweigand@de.ibm.com>
3999 * combine.c (simplify_set): Do not clear out undobuf.other_insn
4000 already set elsewhere.
4002 2003-10-17 Kelley Cook <kcook@gcc.gnu.org>
4004 * config/i386/i386.c (ix86_expand_prologue): Use
4005 gen_allocate_stack_worker.
4007 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4009 * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4011 (mips-sgi-irix6*): Likewise.
4013 * config/mips/iris6gas.h: New file.
4014 * gcc/config.gcc (mips-sgi-irix6*): Use it.
4016 * config/mips/mips.h (TARGET_IRIX): Provide default.
4017 (TARGET_IRIX5): Likewise.
4018 (TARGET_SGI_O32_AS): Likewise.
4019 * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4020 (TARGET_IRIX5): Likewise.
4021 * config/mips/iris6.h (TARGET_IRIX6): Remove.
4022 (TARGET_IRIX5): Redefine as 0.
4024 * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4025 linker workaround with TARGET_IRIX and mips_abi instead of
4026 ASM_OUTPUT_UNDEF_FUNCTION.
4027 (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4028 testing TARGET_IRIX and mips_abi explicitly.
4029 * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4030 * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4032 * config/mips/mips.c (irix_output_external_libcall): Renamed from
4033 mips_output_external_libcall.
4034 Use new TARGET_IRIX in guard.
4035 * config/mips/mips-protos.h (irix_output_external_libcall): Match
4037 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4039 * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4042 * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4043 depending on mips_abi.
4044 * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4045 * config/mips/mips.c (mips_output_function_prologue): Test
4046 FUNCTION_NAME_ALREADY_DECLARED at runtime.
4047 (mips_output_function_epilogue): Likewise.
4048 (build_mips16_function_stub): Likewise.
4049 (build_mips16_call_stub): Likewise.
4050 * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4053 * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4054 IRIX 6 O32 assembler.
4055 (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4056 (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4057 _MIPS_SIM for O32 ABI.
4058 (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4059 (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4060 (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4061 Integrate O32 version.
4062 (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4063 (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4065 (BSS_SECTION_ASM_OP_32): Define.
4066 (BSS_SECTION_ASM_OP_64): Likewise.
4067 (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4069 (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4070 Move up to allow override for O32 ABI without GNU as.
4071 (EH_FRAME_SECTION_NAME): Define explicitly.
4072 (MUST_USE_SJLJ_EXCEPTIONS): Define.
4073 [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4074 DTORS_SECTION_ASM_OP): Dummy definitions.
4075 (TARGET_ASM_NAMED_SECTION): Undef statically.
4076 (EH_FRAME_SECTION_NAME): Likewise.
4077 (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4078 (LINK_SPEC): Only use default options -call_shared -no_unresolved
4080 Don't pass -init, -fini with -mabi=32.
4081 (COLLECT_PARSE_FLAG): Define.
4083 * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4085 Renamed to use irix_ prefix.
4086 (iris6_asm_named_section): Likewise.
4087 (iris_section_align_entry_eq): Likewise.
4088 (iris_section_align_entry_hash): Likewise.
4089 (iris6_file_start): Likewise.
4090 (iris6_section_align_1): Likewise.
4091 (iris6_file_end): Likewise.
4092 (iris6_section_type_flags): Likewise.
4093 (iris_section_align_htab): Likewise.
4094 (iris_orig_asm_out_file): Likewise.
4095 [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4096 (TARGET_ASM_FILE_END): Likewise.
4097 (TARGET_SECTION_TYPE_FLAGS): Likewise.
4099 * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4100 (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4101 override_options instead.
4102 (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4103 (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4104 * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4105 flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4107 Likewise for constructor/destructor handling.
4108 (override_options): Handle IRIX O32 assembler quirks.
4109 [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4111 (mips_file_start): Use new TARGET_IRIX.
4112 (mips_declare_object_name): No special processing for IRIX O32
4114 (mips_finish_declare_object): Likewise.
4115 (irix_asm_output_align): Renamed from iris6_asm_output_align.
4116 Don't record alignment for O32 ABI.
4117 (irix_file_start): Renamed from iris6_file_start.
4118 Return early for O32 ABI.
4119 (irix_file_end): Renamed from iris6_file_end.
4120 Don't emit .section directives for O32 ABI.
4121 * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4122 * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4124 * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4125 (MULTILIB_OSDIRNAMES): Likewise.
4127 2003-10-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4129 * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4131 * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4133 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4135 * arm-modes.def (CC_Nmode): New condition code mode.
4136 * arm.c (thumb_condition_code): Delete.
4137 (arm_select_cc_mode): Handle single-bit test for Thumb.
4138 (arm_print_operand, cases 'd' and 'D'): Don't special case the
4139 condition code logic for Thumb.
4140 (get_arm_condition_code): Handle CC_Nmode.
4141 (thumb_cbrch_target_operand): New function.
4142 * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4143 * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4144 * arm.md: Add Thumb split patterns for zero_extract and
4146 (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4147 (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4148 (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4149 (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4150 (cbranchne_decr1): Re-work to use CC_Nmode.
4152 * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4153 by the return instruction. Add a use of the link register if it
4156 2003-10-17 Richard Earnshaw <rearnsha@arm.com>
4158 * flow.c (init_propagate_block_info): Don't abort if a conditional
4159 jump is not a comparison of a register. Instead, just don't record
4160 conditional life information.
4162 2003-10-16 Jan Hubicka <jh@suse.cz>
4164 PR optimization/12630
4165 * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4166 for operands 7 and 8.
4168 2003-10-16 Kelley Cook <kcook@gcc.gnu.org>
4170 * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4172 2003-10-16 Danny Smith <dannysmith@users.sourceforge.net>
4174 * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4176 * config/i386/winnt.c (gen_stdcall_suffix): Make static
4177 (gen_fastcall_suffix): Likewise.
4178 (i386_pe_dllexport_p): Likewise.
4179 (i386_pe_dllimport_p): Likewise.
4180 (i386_pe_mark_dllexport): Likewise.
4181 (i386_pe_mark_dllimport): Likewise.
4182 (i386_pe_asm_named_section): Fix formatting.
4184 2003-10-16 Zack Weinberg <zack@codesourcery.com>
4186 * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4187 * system.h: Declare snprintf if necessary.
4188 * configure, config.in: Regenerate.
4190 2003-10-15 David Edelsohn <edelsohn@gnu.org>
4192 * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4193 arguments if TARGET_ALTIVEC_ABI.
4195 2003-10-15 Roger Sayle <roger@eyesopen.com>
4197 * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4198 fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4199 fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4201 (expand_builtin_memcpy): Use integer_zerop instead of testing
4202 host_integerp and tree_low_cst directly. Move misapplied hunk
4203 for optimization wher SRC and DEST point to the same location.
4204 (expand_builtin_mempcpy): From here.
4205 (expand_builtin_memmove): Use integer_zerop instead of testing
4206 host_integerp and tree_low_cst_directly.
4207 (expand_builtin_memset): Likewise.
4208 (expand_builtin_memcmp): Likewise (and for integer_onep).
4209 (expand_builtin_strncmp): Likewise.
4210 (fold_builtin): Call the appropriate fold_builtin_foo functions
4211 to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4214 2003-10-15 Geoffrey Keating <geoffk@apple.com>
4216 * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4217 prototype. Clean up some whitespace.
4218 * config/darwin.c: Use gen_rtx_FOO (...) rather than
4220 (machopic_non_lazy_ptr_name): Make static.
4221 (name_needs_quotes): Allow '.' and '$' unquoted.
4222 (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4225 2003-10-15 Gábor Lóki <alga@rgai.hu>
4227 * fold-const.c (tree_swap_operands_p): Disable some features
4228 when optimizing for size.
4230 2003-10-15 David Daney <ddaney@avtrex.com>
4232 * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4233 * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4234 from leaf functions.
4235 (DWARF_FRAME_RETURN_COLUMN): Ditto.
4236 (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4237 by MD_FALLBACK_FRAME_STATE_FOR.
4238 * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4240 2003-10-15 Zack Weinberg <zack@codesourcery.com>
4242 * genmodes.c: Include hashtab.h.
4243 (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4244 (adj_bytesize, adj_alignment, adj_format, new_adjust)
4245 (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4246 (print_maybe_const_decl, emit_mode_adjustments): New.
4247 (known_modes): Rename to modes.
4248 (find_mode): Kill class argument; look up in hash table.
4249 (new_mode): Insert into hash table also.
4251 (reset_float_format, make_partial_integer_mode)
4252 (make_vector_mode): Tweak error reporting.
4253 (reset_float_format): Correct type of fourth argument.
4254 (emit_insn_modes_h): Add #defines to help make mode_size,
4255 mode_base_align, and real_format_for_mode conditionally const.
4256 (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4257 (emit_real_format_for_mode): Likewise, but temporarily disabled.
4258 (emit_insn_modes_c): Call emit_mode_adjustments.
4259 (main): Initialize modes_by_name.
4260 * Makefile.in: Update dependencies.
4261 * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4262 * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4263 declarations of mode_size and mode_base_align. Declare
4264 init_adjust_machine_modes.
4265 * toplev.c (backend_init): Call init_adjust_machine_modes.
4267 2003-10-15 Olivier Hainque <hainque@act-europe.fr>
4269 * genmodes.c (calc_wider_mode): Allocate enough room for all the
4270 entries we'll possibly assign in the sort buffer.
4272 2003-10-15 Ulrich Weigand <uweigand@de.ibm.com>
4274 * config.gcc (s390x-ibm-tpf*): New target.
4275 * doc/install.texi: Document it.
4276 * config/s390/t-tpf: New file.
4277 * config/s390/tpf.h: New file.
4279 2003-10-15 Hans-Peter Nilsson <hp@axis.com>
4282 * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4283 (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4284 Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4285 ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4286 (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4287 (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4288 replace_equiv_address, not gen_rtx_MEM.
4289 * config/cris/cris.c (cris_mem_op): New match_operator function.
4290 (cris_notice_update_cc): Use replace_equiv_address, not
4292 * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4294 2003-10-15 Bernardo Innocenti <bernie@develer.com>
4296 * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4297 MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4298 definitions after the other flags.
4300 2003-10-14 Ziemowit Laski <zlaski@apple.com>
4302 * c-parse.in (methoddef, methodproto): Call objc_add_method()
4303 instead of add_method().
4304 * objc/objc-act.c (objc_check_decl): Do not check for
4305 constant_string_type.
4306 (add_method): Rename to objc_add_method().
4307 (really_start_method): Call objc_add_method() instead of
4309 * objc/objc-act.h (add_method): Rename to objc_add_method().
4311 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4313 * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4314 (s390_slb_comparison): Likewise.
4315 * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4317 * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4318 and s390_slb_comparison.
4319 * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4321 ("*adddi3_31z", "*subdi3_31z"): New insns.
4322 ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4323 "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4326 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4328 * configure.in: Clean up some feedback echoes.
4329 * configure: Regenerate.
4331 * aclocal.m4: Properly quote names of macros being defined.
4333 * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4335 2003-10-14 Steve Ellcey <sje@cup.hp.com>
4337 * config/ia64/ia64.c (ia64_expand_call): Force function address
4339 * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4341 2003-10-14 Ulrich Weigand <uweigand@de.ibm.com>
4343 * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4344 "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4345 ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4346 "*divsf3_ibm"): Likewise.
4348 2003-10-14 Nathanael Nerode <neroden@gcc.gnu.org>
4350 * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4351 target_alias with target_noncanonical.
4353 2003-10-14 Geoffrey Keating <geoffk@apple.com>
4355 * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4356 and add case for machines where outgoing register parameters
4359 * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4360 register when generating indirect address.
4362 2003-10-14 Richard Earnshaw <rearnsha@arm.com>
4364 * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4365 * arm.md (cbranchne_decr1): Fix bootstrap warning.
4367 2003-10-14 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4369 * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4370 * fixinc/fixincl.x: Regenerate.
4371 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4373 Fixes PR bootstrap/9330.
4375 2003-10-13 Eric Christopher <echristo@redhat.com>
4377 * config/frv/frv.c (frv_adjust_field_align): Redo check for
4379 (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4380 * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4381 (SBSS_SECTION_ASM_OP): Remove.
4382 (EXTRA_SECTIONS): Remove in_sbss.
4383 (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4384 (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4385 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4388 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4390 * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4391 uses of ${target_alias} for directory names (and other places which
4392 won't like the empty string) with ${target_noncanonical}. Introduce
4393 call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4395 * configure: Regenerate.
4397 2003-10-13 Ian Lance Taylor <ian@wasabisystems.com>
4399 * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4400 * config/arm/arm.md: For splits which rely on conditional moves,
4401 remove ! TARGET_IWMMXT condition.
4403 2003-10-13 David S. Miller <davem@redhat.com>
4405 * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4406 (find_cond_trap): Always increment if we emit a conditional
4409 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4411 * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4412 with min-insn-modes.o.
4413 (STAGESTUFF): Add min-insn-modes.c.
4414 (genobjs): Add genmodes.o.
4415 (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4416 (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4417 (min-insn-modes.c, min-insn-modes.o): New rules.
4418 (s-modes): Also generate min-insn-modes.c.
4419 ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4420 * genmodes.c (struct mode_data): Add format field.
4421 (blank_mode, validate_mode, complete_mode): Update to match.
4422 (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4423 (_SCALAR_MODE): Kill.
4424 (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4425 (emit_insn_modes_c_header): Adjust.
4426 (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4427 (emit_min_insn_modes_c): New functions.
4428 (emit_insn_modes_c): Call emit_real_format_for_mode.
4429 (main): Add -m option to generate min-insn-modes.c.
4430 * machmode.h: Update documentation. Add format argument to
4431 all uses of FLOAT_MODE.
4432 * real.c: Don't define real_format_for_mode here.
4434 * dwarfout.c: Move default definition of PRINT_REG...
4435 * defaults.h: ...here.
4436 * print-rtl.c: Include tm_p.h.
4437 (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4439 (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG. But surround
4440 this entire block with #ifndef GENERATOR_FILE.
4441 * regclass.c: Unconditionally define reg_names.
4442 * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4443 Don't define DEBUG_REGISTER_NAMES.
4444 * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4445 redefinition of REGISTER_NAMES.
4446 * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4448 * combine.c: Change all preprocessor conditionals on
4449 EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4451 * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4452 * configure.in: Don't define EXTRA_CC_MODES.
4453 * configure, config.in: Regenerate.
4454 * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4456 * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4457 May assume that GET_MODE_CLASS is accurate for extra CC modes
4460 * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4461 number of arguments to aggregate_value_p.
4463 * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4464 * machmode.def: Explain ARCH-modes.def. Document
4465 RESET_FLOAT_FORMAT. Improve commentary on various mode
4466 clusters. Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4467 XF, or TF modes here. Remove backward-compatibility
4470 * config/alpha/alpha-modes.def: New file; define TF mode.
4471 * config/arc/arm-modes.def: Define XF mode.
4472 * config/c4x/c4x-modes.def: Define QF and HF modes. Unset
4473 float format for SF and DF modes.
4474 * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4475 * config/i386/i386-modes.def: Define XF and TF modes.
4476 * config/i960/i960-modes.def: Define TF mode.
4477 * config/ia64/ia64-modes.def: Define TF and OI modes.
4478 * config/m68k/m68k-modes.def: New file; define XF mode.
4479 * config/mips/mips-modes.def: New file; define TF mode, reset
4480 formats for SF and DF modes.
4481 * config/pa/pa-modes.def: Define TF mode.
4482 * config/rs6000/rs6000.c: Define TF and PSI modes.
4483 * config/s390/s390-modes.def: Define OI mode.
4484 * config/sh/sh-modes.def: New file; define PSI mode.
4485 * config/sparc/sparc-modes.def: Define TF mode.
4486 * config/vax/vax-modes.def: New file; reset formats for SF and
4489 * config/c4x/c4x.c (c4x_override_options): No need to mess
4490 with real_format_for_mode or set REAL_MODE_FORMATs.
4491 (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4493 * config/i386/i386.c (override_options): No need to set
4494 REAL_MODE_FORMATs here.
4495 * config/i960/i960.c (i960_initialize): Likewise.
4496 * config/m68k/m68k.c (m68k_override_options): Likewise.
4497 * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4498 for TFmode only if not the default.
4499 * config/mips/mips.c (override_options): Likewise.
4500 * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4501 DFmode only if not the default.
4503 * config/i370/i370.h (RET_REG): Don't consider TFmode.
4504 * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4505 * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4506 of modes that don't appear anywhere in the machine description.
4508 * config/arc/arc-modes.def, config/arm/arm-modes.def
4509 * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4510 * config/i386/i386-modes.def, config/i960/i960-modes.def
4511 * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4512 * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4513 * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4514 * config/sparc/sparc-modes.def: Convert to new style for
4515 declaring extra CC modes.
4517 2003-10-13 Zack Weinberg <zack@codesourcery.com>
4519 * cpplex.c (_cpp_clean_line): In the common case of a line
4520 with no trigraphs and no \-newline, avoid writing to memory.
4521 (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4522 of the buffer member. Make c an uchar to avoid unnecessary
4525 2003-10-13 Nathanael Nerode <neroden@gcc.gnu.org>
4527 * configure.in: Remove unnecessary test.
4528 * configure: Regenerate.
4530 * configure.in: Fix grammatical error. Move UWIN host error to...
4531 * config.host: Here.
4532 * configure: Regenerate.
4534 2003-10-13 Andreas Krebbel <krebbel1@de.ibm.com>
4536 * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4537 "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4538 of flag_unsafe_math_optimizations.
4539 * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4540 "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4541 fused-madd and no-fused-madd.
4542 * doc/invoke.texi: Documented the new options fused-madd and
4543 no-fused-madd for S/390.
4545 2003-10-14 Alan Modra <amodra@bigpond.net.au>
4547 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4548 MASK_ALIGN_NATURAL if rs6000_alignment_string not given. Don't
4550 (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4551 * config/rs6000/rs6000.c: Formatting.
4552 (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4553 when rs6000_alignment_string given.
4555 2003-10-13 Eric Botcazou <ebotcazou@libertysurf.fr>
4558 * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4559 (sparc_flat_must_save_register_p): New function to decide whether
4560 a register must be saved/restored in the function prologue/epilogue.
4561 (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4563 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4565 * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4566 ISO C90 function declarations and definitions.
4567 * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4569 2003-10-12 Nathanael Nerode <neroden@gcc.gnu.org>
4571 * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4572 config files which do the same thing.
4573 * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4574 config/freebsd6.h: Remove now unnecessary files.
4576 2003-10-12 Steven Bosscher <steven@gcc.gnu.org>
4578 * c-common.c (c_common_truthvalue_conversion): Warn if the
4579 address of a non-weak function is used as a truth value.
4581 2003-10-12 Kazu Hirata <kazu@cs.umass.edu>
4583 * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4585 * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4586 instead of a literal.
4588 2003-10-12 Hans-Peter Nilsson <hp@bitrange.com>
4590 * doc/extend.texi (Function Attributes): Mention the exceptional
4591 path for noreturn-marked functions.
4593 2003-10-12 Jan Hubicka <jh@suse.cz>
4595 * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4598 2003-10-12 Danny Smith <dannysmith@users.sourceforge.net>
4600 * config/i386/i386.c (x86_this_parameter): Fix typo.
4602 203-10-11 Jan Hubicka <jh@suse.cz>
4604 * Makefile.in (web.o): New.
4606 * rtl.h (web_main): Declare.
4607 * timervar.def (TV_WEB): New.
4608 * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4609 (rest_of_hanle_web): New.
4610 (flag_web): New static variable.
4611 (lang_independent_options): Add "web".
4612 (rest_of_compilation): Call rest_of_handle_web.
4613 * invoke.texi (-fweb): Document.
4614 * common.opt (fweb): New.
4615 * flags.h (flag_web): New.
4616 * opts.c (decode_options): Set flag_web at -O3.
4618 * passes.texi (web construction): Document.
4619 * invoke.texi (-O3): Document that -fweb is enabled.
4621 * regrename.c (regrename_optimize): Deal better with situation when
4624 * sched-ebb.c: Include params.h and profile.h
4625 (schedule_ebbs): Use tracer parameters to discover superblocks
4626 * Makefile.in (sched-ebb.o): Add dependencies.
4628 2003-10-11 Roger Sayle <roger@eyesopen.com>
4630 * fold-const.c (negate_mathfn_p): New function to determine whether
4631 a built-in mathematical function is sign preserving, f(-x) == -f(x).
4632 Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4633 (tree_swap_operands_p): Change API to take an additional argument
4634 indicating that the swapped operands evaluate in reverse order.
4635 Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4636 operand side-effects or we don't care about flag_evaluation_order.
4637 (reorder_operands_p): New function to check whether its safe to
4638 evaluate the given operands in reverse order.
4639 (negate_expr_p): We can always negate integer constants unless
4640 we honor -ftrapv and the signed type would overflow. Only allow
4641 -(A-B) into B-A if reorder_operands_p says that its OK. Allow
4642 negation of COMPLEX_CST if both real and imaginary parts can be
4643 negated. Allow negation through floating point extensions and
4644 sign-preserving built-in functions.
4645 (negate_expr): Move the code to negate integers from "fold" to
4646 here. Always negate integer constants unless we honor -ftrapv
4647 and the signed type would overflow. Always negate real constants
4648 unless we honor -ftrapping-math. Only convert -(A-B) into B-A
4649 if allowed by reorder_operands_p. Add support for COMPLEX_CST.
4650 Optimize negation through floating point extensions and
4651 sign-preserving built-in functions (as defined by negate_mathfn_p).
4652 (fold): Adjust calls to tree_swap_operands_p.
4653 (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4654 to negate_expr_p/negate_expr.
4655 (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4656 allowed to convert (-A) - B into (-B) - A.
4658 2003-10-11 Roger Sayle <roger@eyesopen.com>
4660 * builtins.c (expand_builtin_strcmp): Defend against the possibility
4661 that gen_cmpstrsi may fail: Stabilize the argument list against
4662 re-evaluation and expand the library call directly using this saved
4663 argument list if a cmpstrsi sequence can't be generated.
4664 (expand_builtin_strncmp): Likewise.
4666 * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4668 2003-10-11 Roger Sayle <roger@eyesopen.com>
4670 PR optimization/12260
4671 * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4672 operations through CONST nodes. Optimize (neg (plus X C)) as
4673 (minus -C X) for constant values C.
4674 (simplify_binary_operation): Optimize (minus (neg X) C) as
4675 (minus -C X) for constant values C.
4676 (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4677 instead create (minus -C X).
4679 2003-10-11 Roger Sayle <roger@eyesopen.com>
4681 * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4682 safe_from_p for us, once it chooses an evaluation order.
4683 (expand_expr <MULT_EXPR>): Likewise.
4684 (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise. If expand_operands
4685 places the second operand in "target", swap the operands.
4686 (do_store_flag): Let expand_operands call safe_from_p for us.
4688 2003-10-11 Eric Botcazou <ebotcazou@libertysurf.fr>
4690 PR optimization/12544
4691 * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4692 for DECL_NONLOCAL decls.
4694 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4696 * expr.c: Follow spelling conventions.
4697 * final.c: Likewise.
4698 * optabs.c: Likewise.
4699 * sched-deps.c: Likewise.
4700 * sdbout.c: Likewise.
4702 Sat Oct 11 12:24:23 CEST 2003 Jan Hubicka <jh@suse.cz>
4704 * varasm.c (notice_global_symbol): Fix handling of variables; avoid
4705 re-computing of variable.
4707 2003-10-11 Richard Henderson <rth@redhat.com>
4709 * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4710 return_in_memory, make static, change signature to match target hook.
4711 (alpha_setup_incoming_varargs): Make static, change signature to
4712 match target hook, add code for vms and unicos.
4713 (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4714 TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4715 TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4716 TARGET_STRICT_ARGUMENT_NAMING,
4717 TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4718 * config/alpha/alpha-protos.h: Update.
4719 * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4720 PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4721 SETUP_INCOMING_VARARGS): Remove.
4722 * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4723 * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4725 2003-10-11 Ian Lance Taylor <ian@wasabisystems.com>
4727 * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4729 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4731 * config/m68k/lb1sf68.asm: Follow spelling conventions.
4732 * config/m68k/m68k.c: Likewise.
4733 * config/m68k/m68k.h: Likewise.
4734 * config/m68k/m68k.md: Likewise.
4736 2003-10-11 Roger Sayle <roger@eyesopen.com>
4738 * builtins.c (expand_builtin_memcpy): Optimize case when the two
4739 pointer arguments are the equal, non-volatile and side-effect free.
4740 (expand_builtin_mempcpy): Likewise.
4741 (expand_builtin_memmove): Likewise.
4742 (expand_builtin_strcpy): Likewise.
4743 (expand_builtin_memcmp): Likewise.
4744 (expand_builtin_strcmp): Likewise.
4745 (expand_builtin_strncmp): Likewise.
4747 2003-10-11 Roger Sayle <roger@eyesopen.com>
4749 * combine.c (apply_distributive_law): Enable "distributive" floating
4750 point optimizations with -funsafe-math-optimizations.
4752 2003-10-11 Andrew Pinski <pinskia@physics.uc.edu>
4754 * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4756 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4758 * config/m68k/m68k-protos.h: Remove the prototype for
4761 2003-10-11 Kazu Hirata <kazu@cs.umass.edu>
4763 * config/m68k/m68k.c: Fix comment typos.
4765 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4767 * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4769 * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4770 (current_frame): New global var.
4771 (m68k_compute_frame_layout): Cache computations in current_frame.
4772 (m68k_initial_elimination_offset): Use values from current_frame
4773 instead of recomputing them.
4774 (use_return_insn): Likewise.
4775 (m68k_output_function_prologue): Likewise.
4776 (m68k_output_function_epilogue): Likewise.
4777 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4778 inside the block for __pic__.
4780 2003-10-11 Peter Barada <peter@baradas.org>
4781 Bernardo Innocenti <bernie@develer.com>
4783 * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4784 (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4785 (m68k_interrupt_function_p): New function.
4786 (m68k_handle_fndecl_attribute): Ditto.
4787 (m68k_compute_frame_layout): Ditto.
4788 (m68k_attribute_table): Define back-end specific attributes.
4789 (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4792 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4794 * config/m68k/t-uclinux: New target Makefile fragment.
4795 * config/m68k/uclinux.h: New target macro file.
4796 * config.gcc (m68k-*-uclinux): New target definition.
4798 2003-10-10 Roger Sayle <roger@eyesopen.com>
4800 * builtins.c (builtin_mathfn_code): Generalize to check whether
4801 the call is to any built-in function by comparing the call's
4802 argument list against the builtin decl's function type.
4804 2003-10-10 Roger Sayle <roger@eyesopen.com>
4806 * cse.c (constant_pool_entries_regcost): New global variable to
4807 hold the register cost component of constant_pool_entries_cost.
4808 (fold_rtx): Calculate constant_pool_entries_regcost at the same
4809 time as constant_pool_entries_cost.
4810 (cse_insn): Set both src_folded_cost and src_folded_regcost from
4811 constant_pool_entries_cost and constant_pool_entries_regcost.
4812 (cse_main): Initialize constant_pool_entries_regcost to zero.
4814 * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4815 the semantics of the sequence of bit operations used to negate
4816 a floating-point value.
4817 (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4818 the semantics of the bit operations used to abs a floating point
4821 2003-10-11 Bernardo Innocenti <bernie@develer.com>
4822 Paul Dale <pauli@snapgear.com>
4824 * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4826 * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4827 -fpic, -fPIC, -msep-data and -mid-shared-library.
4828 * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4829 (override_options): Add -msep-data and -mshared-library-id support.
4830 (m68k_output_function_prologue): Generate code to load A5 for
4831 TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4832 (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4833 (m68k_output_pic_call): New function.
4834 * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4835 (TARGET_ID_SHARED_LIBRARY): Ditto.
4836 (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4837 * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4838 (call_value): Likewise.
4840 2003-10-10 Zack Weinberg <zack@codesourcery.com>
4842 * gengenrtl.c (find_formats, genheader): Make i an unsigned
4843 int, remove cast of NUM_RTX_CODE.
4844 * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4845 entire file. Remove the #ifs on GET_MODE_MASK etc and
4846 GET_MODE_WIDER_MODE etc.
4848 2003-10-10 Eric Christopher <echristo@redhat.com>
4850 * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4851 to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4853 * config/sh/sh.h (MODE_ENTRY): New macro.
4855 (MODE_AFTER): Ditto.
4856 * config/sh/sh.md: Change for MODE_AFTER. Add
4858 * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4860 2003-10-10 Zack Weinberg <zack@codesourcery.com>
4862 * genmodes.c, mode-classes.def: New files.
4863 * machmode.def: Rewritten to genmodes.c interface.
4864 * Makefile.in (extra_modes_file): New substitution variable.
4865 (MACHMODE_H): No longer includes machmode.def or
4866 @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4867 (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4868 (OBJS-common): Add insn-modes.o.
4869 (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4870 genmodes$(build_exeext).
4871 (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4872 genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4873 (s-genrtl): Don't depend on $(RTL_BASE_H).
4874 (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4875 or $(RTL_BASE_H); just rtl.def.
4876 * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4877 real.h. Give fake definition of CONST_DOUBLE_FORMAT and
4878 substitute definition of NUM_RTX_CODE. Add casts to avoid
4880 * machmode.h: Include insn-modes.h, not machmode.def. Include
4881 mode-classes.def to define enum mode_class. Tweak definitions
4882 of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4883 GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4884 (inner_mode_array): Renamed mode_inner.
4885 (mode_base_align): New.
4886 * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4887 mode_unit_size, mode_wider_mode, mode_mask_array,
4888 inner_mode_array, class_narrowest_mode): Delete definitions.
4889 * stor-layout.c (get_mode_alignment): Use mode_base_align.
4890 * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4891 and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4893 * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4894 No need to define BITS_PER_UNIT.
4896 2003-10-10 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
4898 * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4899 (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4900 (ia64_initialize_trampoline): If not using GAS, declare trampoline
4902 * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4903 (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4905 * stor-layout.c (compute_record_mode): Don't force BLKmode if
4906 field is zero-length BLKmode.
4907 * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4908 zero-size references.
4910 * combine.c (distribute_links): Properly test for REG being set.
4912 * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4913 gen_lowpart and company except for REG.
4915 2003-10-10 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4917 * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4919 2003-10-10 Nathanael Nerode <neroden@gcc.gnu.org>
4921 * config.gcc (mips*-*-netbsd*): Remove content-free line.
4923 2003-10-10 Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4925 * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4926 gcov_position_t and gcov_type.
4928 2003-10-09 Kaz Kojima <kkojima@gcc.gnu.org>
4930 * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4931 * configure: Regenerate.
4933 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
4935 * config/h8300/h8300.md (define_asm_attributes): Specify
4936 the length of an asm insn more precisely.
4938 2003-10-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
4940 * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4942 2003-10-09 Bob Wilson <bob.wilson@acm.org>
4944 * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4945 FP register number to 48 and MAC16 accumulator to 0x210.
4947 2003-10-09 Nathanael Nerode <neroden@gcc.gnu.org>
4949 * config.gcc: Remove redundant thread_file setting clauses for
4950 various *-*-linux* targets.
4952 2003-10-09 Kazu Hirata <kazu@cs.umass.edu>
4954 * config/h8300/h8300.md (define_asm_attributes): New.
4956 2003-10-09 Roger Sayle <roger@eyesopen.com>
4958 * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4959 to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4961 2003-10-09 Dorit Naishlos <dorit@il.ibm.com>
4963 * haifa-sched.c (ok_for_early_schedule): New function.
4964 (early_queue_to_ready): New function.
4965 (schedule_block): Allow early removal of insns from Q.
4966 (schedule_insn): Update INSN_TICK in case of premature
4968 * common.opt (sched_stalled_insns): New flag.
4969 (sched_stalled_insns_dep): New flag.
4970 * flags.h: Same above flags.
4971 * opts.c: Same as above.
4972 * toplev.c: Same as above.
4973 * target.h (targetm.sched.is_costly_dependence): New
4975 * target-def.h: Same as above.
4976 * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4977 Support new flag -msched-costly-dep.
4978 (DEFAULT_SCHED_COSTLY_DEP): Define.
4979 * config/rs6000/rs6000.c:
4980 (rs6000_is_costly_dependence): New function.
4981 (is_load_insn, is_store_insn): New functions.
4982 (is_load_insn1, is_store_insn1, is_mem_ref): New
4984 * doc/invoke.texi (-fsched-stalled-insns-dep)
4985 (-fsched-stalled-insns, -msched-costly-dep): Document
4987 * doc/tm.texi (is_costly_dependence): Define new
4988 scheduler target hook.
4990 2003-10-09 Jason Merrill <jason@redhat.com>
4993 * c-common.c (c_build_qualified_type): Look through arrays first.
4994 (c_apply_type_quals_to_decl): Look through arrays.
4996 * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4997 types with constructors.
4999 * coverage.c (build_ctr_info_value): Use build_decl to make a
5001 (create_coverage): Likewise.
5003 * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5005 (expand_asm_operands): Not here.
5006 (parse_input_constraint): No longer static.
5007 * tree.h: Declare it.
5009 2003-10-08 Kaz Kojima <kkojima@gcc.gnu.org>
5011 * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5013 (SHLIB_INSTALL): Likewise.
5015 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5017 * doc/install.texi: Remove reference to removed 'pthreads' thread
5020 2003-10-08 Aldy Hernandez <aldyh@redhat.com>
5022 * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5025 2003-10-08 Nathanael Nerode <neroden@gcc.gnu.org>
5027 * config.gcc: Don't accept --enable-threads=pthreads. Clean
5028 up related case statements.
5029 * configure.in: Don't accept --enable-threads=pthreads,
5030 decosf1, mach, or os2 (none of which work anyway). Alphabetize
5031 supported thread files in case clause.
5032 * configure: Regenerate.
5034 2003-10-08 Geoffrey Keating <geoffk@apple.com>
5036 * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5037 definition to above SPARC_STACK_BOUNDARY_HACK.
5039 2003-10-08 Jason Merrill <jason@redhat.com>
5041 * c-pretty-print.c (pp_c_postfix_expression)
5042 <COMPOUND_LITERAL_EXPR>: Fix thinko.
5044 2003-10-08 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5046 * mklibgcc.in: Don't hide undefined or typeless symbols.
5048 2003-10-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5050 PR optimization/12142
5051 * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5052 uses of the register in the SET_SRC. Remove unnecessary argument.
5053 * pa.c (legitimize_pic_address): Before reload, use a scratch register
5054 for the intermediate result in loading the address of a SYMBOL_REF.
5055 Set the MEM_NOTRAP_P flag for the MEM. Add a REG_EQUAL to the insn
5056 which loads the SYMBOL_REF address.
5058 2003-10-08 Timo Kokkonen <tjko@iki.fi>
5059 Eric Botcazou <ebotcazou@libertysurf.fr>
5062 * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5063 to define the size of the extern_C_braces array. Set it to 200.
5064 (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5066 2003-10-08 Carlo Wood <carlo@alinoe.com>
5068 * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5069 a space after the -o option. flex 2.5.31 understands both, with
5070 and without the space. Removed that space.
5072 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5074 * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5075 (compute_frame_size): Initialize it. Remove the .cprestore slot
5077 (mips_output_function_prologue): Simplify accordingly.
5078 (mips_debugger_offset): Change the mips16 frame pointer offset from
5079 current_function_outgoing_args to cfun->machine->frame.args_size.
5080 (mips_initial_elimination_offset): Likewise.
5081 (mips_expand_prologue): Likewise.
5082 (mips_expand_epilogue): Likewise.
5084 2003-10-08 Richard Sandiford <rsandifo@redhat.com>
5086 * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5087 (EXTRA_MEMORY_CONSTRAINT): Define.
5088 (CAN_ELIMINATE): Remove lwu workaround.
5089 * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5090 Use a 'W' constraint for the source operand.
5092 2003-10-08 Kazu Hirata <kazu@cs.umass.edu>
5094 * genopinit.c (main): Output code to declare undefined
5097 2003-10-07 Kelley Cook <kcook@gcc.gnu.org>
5099 * gengtype-lex.l: Remove -Wtraditional cruft.
5100 * Makefile.in (gengtype-lex.c): Likewise.
5102 2003-10-07 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5104 * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5106 2003-10-07 Jason Merrill <jason@redhat.com>
5109 * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5112 2003-10-07 Alexandre Oliva <aoliva@redhat.com>
5114 * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5116 Fixes PR bootstrap/12173.
5118 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5120 * errors.c: Don't include coretypes.h or tm.h.
5121 (trim_filename): Use IS_DIR_SEPARATOR.
5122 * Makefile.in: Update dependencies of errors.o and
5123 $(BUILD_PREFIX_1)errors.o.
5125 2003-10-07 Geoffrey Keating <geoffk@apple.com>
5127 * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5128 account when aligning arguments.
5129 * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5130 * defaults.h (STACK_POINTER_OFFSET): ... to here.
5131 * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5132 it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5133 (SPARC_STACK_BOUNDARY_HACK): Define.
5134 * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5135 arrange for vector parameters to varargs functions to be passed
5136 in both memory and GPRs when appropriate.
5137 (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5140 * hooks.c (hook_bool_tree_true): New.
5141 (hook_rtx_tree_int_null): New.
5142 (hook_rtx_rtx_null): Use NULL, not 0.
5143 * hooks.h: Add 'extern' to everything.
5144 (hook_bool_tree_true): New.
5145 (hook_rtx_tree_int_null): New.
5146 * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5147 * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5148 * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5150 * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5151 (setup_incoming_varargs): Prototype.
5152 (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5153 (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5154 (TARGET_STRUCT_VALUE_RTX): Define.
5155 (TARGET_RETURN_IN_MEMORY): Define.
5156 (TARGET_SETUP_INCOMING_VARARGS): Define.
5157 (TARGET_STRICT_ARGUMENT_NAMING): Define.
5158 (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5159 (init_cumulative_args): Use rs6000_return_in_memory.
5160 (setup_incoming_varargs): Make 'static'.
5161 * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5162 (PROMOTE_FUNCTION_RETURN): Delete.
5163 (STRUCT_VALUE): Delete.
5164 (RETURN_IN_MEMORY): Delete.
5165 (SETUP_INCOMING_VARARGS): Delete.
5167 2003-10-07 Gerald Pfeifer <gerald@pfeifer.com>
5169 * doc/invoke.texi (Warning Options): Simplify and clarify the
5170 descriptions of -Wnonnull and -Winit-self.
5172 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5174 * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5175 indicees for floating-point conversersion libcalls.
5177 2003-10-07 Nathanael Nerode <neroden@gcc.gnu.org>
5179 * Makefile.in: Add more comments separating large conceptually
5182 * configure.in: Clean up thread file logic.
5183 * configure: Regenerate.
5185 2003-10-07 Danny Smith <dannysmith@users.sourceforge.net>
5187 * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5188 (switch_to_section): Handle in_readonly_data.
5189 * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5192 2003-10-07 Richard Earnshaw <rearnsha@arm.com>
5194 * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5196 (cbranchne_decr1): New Thumb pattern.
5197 * arm.c (arm_addimm_operand): New insn predicate.
5198 * arm-protos.h: Add a prototype for it.
5199 * arm.h (PREDICATE_CODES): Add it.
5201 2003-10-07 Dorit Naishlos <dorit@il.ibm.com>
5203 * sched-int.h (sched_info): New field
5204 sched_max_insns_priority.
5205 * sched-rgn.c (init_ready_list): Add invocations to
5206 targetm.sched.adjust_priority.
5207 (sched_max_insns_priority): Init new field.
5208 * sched-ebb.c (sched_max_insns_priority): Init new field.
5209 * haifa-sched.c (set_priorities): Set
5210 sched_info->sched_max_insns_priority.
5211 * config/rs6000/rs6000.h:
5212 (rs6000_sched_restricted_insns_priority_str): Support new
5213 flag -mprioritize-restricted-insns.
5214 (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5215 * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5217 (rs6000_adjust_priority): Change priority of restricted
5218 insns, using above new function and new flag.
5219 * doc/invoke.texi (-mprioritize-restricted-insns): Document
5222 2003-10-07 Zack Weinberg <zack@codesourcery.com>
5224 * expr.c (cmpstr_optab, cmpmem_optab): New.
5225 * genopinit.c: Initialize them.
5226 * optabs.h: Declare them.
5227 * optabs.c (init_optabs): Clear them.
5228 (prepare_cmp_insn): Use cmpstr_optab and cmpmem_optab to find
5229 block memory compare insns, not conditional chains. Restructure
5230 the fallback generation of a call to memcmp/bcmp for better
5233 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5235 * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5236 (mips_save_restore_fn): New typedef.
5237 (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5238 (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5239 (save_restore_insns): Remove, replacing with...
5240 (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5241 (mips_save_reg, mips_restore_reg): New function.
5242 (mips_expand_prologue, mips_expand_epilogue): Rework.
5243 * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5244 (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5245 (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5247 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5249 * config/mips/mips.c (mips_expand_prologue): Remove unused
5250 traversal of function arguments.
5252 2003-10-07 Richard Sandiford <rsandifo@redhat.com>
5254 * doc/invoke.texi: Remove documentation of -mentry.
5255 * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5256 (override_options, mips_save_reg_p): Remove handling.
5257 (compute_frame_size, mips_output_function_prologue): Likewise.
5258 (mips_expand_prologue, mips_expand_epilogue): Likewise.
5259 * config/mips/mips.h (mips_entry_string): Remove declaration.
5260 (TARGET_OPTIONS): Remove -mentry.
5261 * config/mips/mips16.S: Remove mention of -mentry.
5263 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5265 * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5266 (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5267 (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5268 (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5269 (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5270 (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5271 (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5272 (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5273 (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5274 (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5275 (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5276 (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5277 (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5278 (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5279 (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5280 (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5281 (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5282 (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5283 (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5284 (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5285 (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5286 (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5287 (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5288 (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5289 (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5290 (fixunstfti_libfunc): Delete.
5291 * optabs.h (struct optab_handlers): Break out of struct optab.
5292 (struct convert_optab, convert_optab, enum convert_optab_index,
5293 convert_optab_table, sext_optab, zext_optab, trunc_optab,
5294 sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5295 sfloat_optab, ufloat_optab): New.
5296 (set_conv_libfunc): Prototype.
5297 (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5298 (trunc_optab): Renamed btrunc_optab.
5299 * builtins.c (expand_builtin_mathfn): Update to match.
5300 * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5301 (convert_optab_table, new_convert_optab, init_convert_optab)
5302 (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5303 (set_conv_libfunc): New.
5304 (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5305 (expand_float, expand_fix): Use new conversion optabs,
5306 not old insn code tables or long chains of ifs.
5307 (init_optabs): No need to clear old insn code tables.
5308 Initialize the new optabs, not the old libfunc array entries.
5309 Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5310 * genopinit.c: Initialize conversion optabs, not the
5311 former insn code tables. Remove unnecessary casts.
5312 Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5313 * expr.c (convert_move): Remove redundant check that
5314 to_real==from_real. Use the conversion optabs instead
5315 of long chains of tests of modes. Move partial-integer-mode
5316 interconversion above all integer conversion. Do not recurse
5317 on a value forced into a register in the original mode.
5319 * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5320 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5321 * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5322 in new conversion optabs; do not reference the old libfunc
5323 array entries. No need to include libfuncs.h.
5325 2003-10-06 Roger Sayle <roger@eyesopen.com>
5327 * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5328 point comparison sequence with a REG_EQUAL note that describes
5329 the comparison's semantics.
5331 2003-10-06 Roger Sayle <roger@eyesopen.com>
5333 * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5334 of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5336 2003-10-06 Roger Sayle <roger@eyesopen.com>
5337 Zack Weinberg <zack@codesourcery.com>
5339 * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5340 instruction by using LCT_CONST and then calling emit_libcall_block
5343 2003-10-06 Falk Hueffner <falk.hueffner@student.uni-tuebingen.de>
5345 PR optimization/11974
5346 * optabs.c (expand_unop): Promote libcall outmode according to
5349 2003-10-06 Zack Weinberg <zack@codesourcery.com>
5351 * real.h (REAL_MODE_FORMAT): New macro.
5352 * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5353 * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5354 * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5355 * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5356 * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5357 directly to real_format_for_mode array, wherever possible.
5359 2003-10-06 Devang Patel <dpatel@apple.com>
5361 * dwarf2out.c (is_main_source): Remove variable.
5362 (dwarf2out_start_source_file): Do not check is_main_source.
5363 Do not reset is_main_source.
5364 (dwarf2out_init): Do not initialize is_main_source.
5366 2003-10-06 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5368 * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5369 (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5370 introduced some multi-line prototypes.
5371 * fixinc/fixincl.x: Regenerate.
5373 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5375 * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5376 * config/mips/mips.c (stack_operand): New predicate.
5377 * config/mips/mips.md: Use it for the destination of mips16 insns
5380 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5382 * config/mips/mips.md (*lowsi): Renamed from lowsi.
5383 (*lowdi): Likewise lowdi.
5384 (*lowsi_mips16, *lowdi_mips16): New patterns.
5385 * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5386 mips16 CONSTANT_RELOC handling.
5387 (mips_delegitimize_address): Adjust for new sdata representation.
5389 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5391 * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5392 skip any remaining register arguments.
5394 2003-10-06 Ulrich Weigand <uweigand@de.ibm.com>
5396 * reload.c (find_reloads_subreg_address): Use correct offset for
5397 paradoxical MEM subregs on big-endian targets.
5399 2003-10-06 Andrew Haley <aph@redhat.com>
5401 * tree.c (get_callee_fndecl): Call
5402 lang_hooks.lang_get_callee_fndecl.
5403 * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5404 (lhd_get_callee_fndecl): New.
5406 2003-10-06 Andrew Pinski <apinski@apple.com>
5408 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5409 error in calculating the length of the string.
5410 (machopic_stub_name): Likewise.
5412 2003-10-06 Roger Sayle <roger@eyesopen.com>
5414 * optabs.c (prepare_float_lib_cmp): Attach a REG_EQUAL note
5415 describing the return value of the comparison libcall to the
5416 REG_RETVAL instruction of the emitted sequence.
5418 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5420 PR optimization/12215
5421 * cse.c (cse_set_around_loop): Emit the move at the beginning
5422 of the next basic block for trapping sets.
5424 2003-10-06 Eric Botcazou <ebotcazou@libertysurf.fr>
5426 PR optimization/11637
5427 * combine.c (adjust_for_new_dest): New function to adjust the
5428 notes and LOG_LINKS when the dest of an insn has changed.
5429 (try_combine): Use it when deleting the first insn of a two-insn
5430 parallel or splitting a two-load parallel.
5432 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5434 * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5435 if TARGET_EXPLICIT_RELOCS.
5437 2003-10-06 Mark Mitchell <mark@codesourcery.com>
5440 * Makefile.in (info): Use double-colon rules.
5442 (generated-manpages): Likewise.
5443 * configure.in: Do not create lang.info, lang.dvi, or
5444 lang.generated-manpages hooks.
5445 * configure: Regenerated.
5446 * objc/Make-lang.in (objc.info): Remove.
5448 (objc.generated-manpages): Remove.
5449 * doc/sourcebuild.texi: Update description of info, dvi, and
5450 generated-manpages hooks.
5452 2003-10-06 Richard Sandiford <rsandifo@redhat.com>
5454 * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5456 2003-10-05 Andrew Pinski <apinski@apple.com>
5458 * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5459 errors in memcpy destinations.
5460 (machopic_stub_name): Likewise.
5462 2003-10-05 Andrew Pinski <apinski@apple.com>
5464 * config/darwin.c (machopic_non_lazy_ptr_name):
5465 Change strcat to memcpy and add length together.
5466 (machopic_stub_name): Likewise.
5468 2003-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
5470 * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5471 signal trampoline codes.
5473 2003-10-05 Chris Demetriou <cgd@broadcom.com>
5475 * config/mips/mips.md (*divsf3): Move description of
5476 SB-1 F2 erratum from here to...
5477 (divsf3): Here. Disable if TARGET_FIX_SB1 is set and
5478 flag_unsafe_math_optimizations is not.
5480 2003-10-05 Aldy Hernandez <aldyh@redhat.com>
5482 * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5483 TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5485 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5487 * c-pretty-print.c: Fix comment typos.
5488 * c-pretty-print.h: Likewise.
5489 * calls.c: Likewise.
5490 * cfgloopmanip.c: Likewise.
5491 * cgraphunit.c: Likewise.
5492 * cppfiles.c: Likewise.
5493 * final.c: Likewise.
5494 * function.c: Likewise.
5495 * gcov-io.h: Likewise.
5497 * genoutput.c: Likewise.
5499 * postreload.c: Likewise.
5500 * reg-stack.c: Likewise.
5501 * regmove.c: Likewise.
5502 * sched-int.h: Likewise.
5503 * sched-rgn.c: Likewise.
5504 * simplify-rtx.c: Likewise.
5505 * tree-inline.c: Likewise.
5506 * config/m68hc11/m68hc11.h: Likewise.
5507 * config/mmix/mmix.c: Likewise.
5508 * config/mn10300/mn10300.md: Likewise.
5509 * config/sh/sh.h: Likewise.
5511 2003-10-05 Richard Henderson <rth@redhat.com>
5513 * tree-inline.c (remap_type): New.
5514 (remap_decl): Use it. Remap DECL_SIZE*.
5515 (copy_body_r): Use it.
5516 (walk_tree): Walk TREE_TYPE too.
5517 (copy_tree_r): Don't walk subtrees of types.
5518 * tree.c (variably_modified_type_p): Restructure. Consider integer
5519 types with non-const bounds variably modified.
5521 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5523 * doc/invoke.texi: Fix typos.
5525 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5527 * fold-const.c: Follow spelling conventions.
5528 * function.c: Likewise.
5529 * config/c4x/c4x.h: Likewise.
5530 * config/c4x/c4x.md: Likewise.
5531 * config/frv/frv.md: Likewise.
5532 * config/rs6000/aix.h: Likewise.
5533 * config/rs6000/linux64.h: Likewise.
5534 * config/xtensa/xtensa.c: Likewise.
5536 2003-10-05 Kazu Hirata <kazu@cs.umass.edu>
5538 * c-pretty-print.c: Fix comment formatting.
5539 * cfglayout.c: Likewise.
5540 * cfgloopanal.c: Likewise.
5541 * cppcharset.c: Likewise.
5542 * dbxout.c: Likewise.
5543 * ggc-page.c: Likewise.
5545 * target.h: Likewise.
5547 2003-10-04 Kelley Cook <kelleycook@wideopenwest.com>
5549 * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5551 2003-10-04 Nathanael Nerode <neroden@gcc.gnu.org>
5553 * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5554 Convert to ISO C90 function declarations and definitions.
5556 2003-10-04 Zack Weinberg <zack@codesourcery.com>
5559 (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5560 (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5561 (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5562 (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5563 (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5564 (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5565 (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5566 (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5567 (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5568 (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5569 (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5570 (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5571 (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5572 (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5573 (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5574 (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5576 * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5577 (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5578 (le_optab, unord_optab): New.
5580 * optabs.c (prepare_float_lib_cmp): Rewrite. Get the libfuncs
5581 from the code_to_optab table, not a giant switch; use
5582 swap_condition; do widening only if a comparison function that
5583 we can call exists in a wider mode, not if a cmp_optab insn or
5584 libfunc exists in a wider mode; call protect_from_queue
5585 exactly once on each operand.
5586 (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5588 * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5589 * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5590 Set floating point comparison libfuncs using set_optab_libfunc
5591 on the appropriate optab.
5593 * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5594 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5595 selector conditionals.
5597 2003-10-04 Stephane Carrez <stcarrez@nerim.fr>
5599 * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5600 identical to m68hc12 as far as libraries are concerned.
5602 2003-10-04 Eric Botcazou <ebotcazou@libertysurf.fr>
5605 * c-typeck.c (convert_for_assignment): Issue an error for
5606 array to pointer assignment after default conversion.
5607 (digest_init): Likewise.
5609 2003-10-04 Fariborz Jahanian <fjahanian@apple.com>
5611 * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5613 2003-10-03 Gerald Pfeifer <gerald@pfeifer.com>
5615 * doc/extend.texi (Function Attributes): Fix title of GNU C
5616 Preprocessor manual.
5617 (C++ Extensions): Fix reference to "Predefined Macros" in the
5618 GNU C Preprocessor manual.
5620 2003-10-04 Richard Earnshaw <reanrsha@arm.com>
5622 * doc/extend.texi: Document how GCC estimates and relies on the size
5625 2003-10-04 Richard Sandiford <rsandifo@redhat.com>
5627 * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5628 arguments downward for big-endian o64.
5630 2003-10-03 Robert Bowdidge <bowdidge@apple.com>
5632 * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5633 PCH generation, avoiding too-frequent flushes when writing to NFS
5636 2003-10-03 Ziemowit Laski <zlaski@apple.com>
5638 * objc/objc-act.c (lookup_category): Mark as 'inline'.
5640 2003-10-03 Alexander Malmberg <alexander@malmberg.org>
5641 Ziemowit Laski <zlaski@apple.com>
5643 * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5645 (lookup_method_in_hash_lists): New parameter indicating whether
5646 we are messaging 'Class' or 'id'.
5647 (check_duplicates): Likewise; do not assume all methods will
5648 be either class or instance methods.
5649 (generate_category, finish_class): Use lookup_category().
5650 (add_method): Use add_method_to_hash_list(); insert instance
5651 methods of root classes into the global class method hash table.
5652 (add_category): Use lookup_category(); avoid constructing
5653 duplicate categories.
5654 (really_start_method): Add method to corresponding @interface,
5655 if not already there (and if the @interface exists).
5656 (finish_message_expr, finish_objc): Adjust calls to
5659 2003-10-03 Roger Sayle <roger@eyesopen.com>
5661 PR optimization/9325, PR java/6391
5662 * fold-const.c (fold_convert): For floating point to integer
5663 conversions, return the maximum/minimum representable integer
5664 value if the real constant overflows the destination type.
5665 * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5666 meaning don't truncate the result to a floating point mode.
5667 Simplify the logic by calling real_from_integer directly.
5668 * simplify-rtx.c (simplify_unary_operation): Implement the
5669 same semantics for folding floating point to integer conversions
5672 2003-10-03 Chris Demetriou <cgd@broadcom.com>
5674 * config/mips/mips.c (mips_emit_prefetch): Restructure
5675 to avoid use of arrays, handle indexed prefetch.
5676 * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5677 (ISA_HAS_PREFETCHX): New deffine.
5678 * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5680 (prefetch_indexed_di, prefetch_indexed_si): New insns.
5682 2003-10-03 Jeff Sturm <jsturm@one-point.com>
5683 Roger Sayle <roger@eyesopen.com>
5685 PR optimization/12289
5686 * calls.c (emit_call_1): Pretend to have popped the arguments
5687 to noreturn and longjmp functions instead of ignoring them.
5688 (expand_call): Don't adjust stack_pointer_dela while
5689 inhibit_defer_pop is set.
5691 2003-10-03 Andreas Schwab <schwab@suse.de>
5694 * configure.in: Check for libunwind on the host only if building
5696 * configure: Regenerated.
5698 2003-10-03 Paolo Carlini <pcarlini@unitus.it>
5700 * unwind-pe.h (read_encoded_value_with_base): Constify u and
5701 its inizialization cast.
5703 2003-10-03 Richard Sandiford <rsandifo@redhat.com>
5706 * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5708 2003-10-02 Mark Mitchell <mark@codesourcery.com>
5710 PR optimization/12180
5711 * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5712 functions containing calls to __builtin_next_arg.
5714 2003-10-02 Chris Demetriou <cgd@broadcom.com>
5716 * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5717 in instructions being output.
5718 * config/mips/mips.md (prefetch_si_address): Change third
5719 operand's constraint letter to 'I'.
5720 (prefetch_di_address): Likewise.
5721 (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5723 2003-10-02 Zack Weinberg <zack@codesourcery.com>
5725 * system.h: Poison macros obsoleted by earlier patch.
5726 * config/cris/cris.c: C90-ify a function definition.
5728 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5731 * combine.c (make_field_assignment): Check whether rtx's code
5732 is CONST_INT before using INTVAL.
5734 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5736 * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5737 htab_find_slot_with_hash.
5738 (cgraph_node_for_identifier): Use NO_INSERT.
5739 (cgraph_remove_node): Use NO_INSERT.
5740 (cgraph_varpool_node): Use INSERT.
5741 (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5743 2003-10-02 Josef Zlomek <zlomekj@suse.cz>
5745 Waldek Hebisch <hebisch@math.uni.wroc.pl>
5747 * varasm.c (compare_constant): Fix thinko.
5749 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
5751 * config/frv/frv.c (frv_issue_rate): New function.
5752 (frv_pack_insns): Use it.
5753 (TARGET_SCHED_ISSUE_RATE): Define.
5755 2003-10-02 Steven Bosscher <s.bosscher@student.tudelft.nl>
5757 * config/mcore/mcore.c: Convert to ISO C90 function declarations
5759 * config/mcore/mcore.h: Likewise.
5760 * config/mcore/mcore-protos.h: Likewise.
5762 2003-10-02 Richard Sandiford <rsandifo@redhat.com>
5764 * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5765 (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5767 2003-10-01 Per Bothner <pbothner@apple.com>
5769 * c-lex.c (src_line): Remove unneeded static variable.
5770 (cb_line_change): Set input_line directly, instead of src_line.
5771 (get_non_padding_token): We no longer need to compensate for the
5772 "horrible things" the C++ front-end does with the current line number,
5774 * cpplib.c (_cpp_pop_buffer): Do generate a _cpp_do_file_change
5775 callback even when popping the main file.
5776 * c-lex.c (fe_file_change): Handle a NULL new_map.
5777 * fix-header.c (cb_file_change): Likewise.
5778 * c-ppoutput.c (pp_file_change): Likewise.
5780 * cppinit.c (cpp_read_main_file): Split into two functions:
5781 Distribute _cpp_stack_file call over the two functions.
5782 (cpp_find_main_file): New function.
5783 Don't call _cpp_do_file_change even if working_directory flag set.
5784 (cpp_push_main_file): New function.
5785 * cppfiles.c (_cpp_find_failed): New helper function.
5786 (find_file): Made non-static and renamed to _cpp_find_file.
5787 (_cpp_stack_file): No longer needed. But note the following.
5788 (stack_file): Made non-static and renamed to _cpp_stack_file.
5789 * fix-header.c (cpp_read_main_file): Replace cpp_read_main_file
5790 call with calls to cpp_find_main_file and cpp_push_main_file.
5791 (search_path_head): If there is no current buffer, use main_file.
5792 * cpphash.h: Update function declarations.
5793 * cpplib.h: Update function declarations.
5795 * c-opts.c (c_common_post_options): Don't call cpp_find_main_file yet.
5796 (c_common_parse_file): No longer need to call cpp_read_main_file
5797 when file_index > 0 (as in multi-file or server compiation).
5798 (finish_options): Change to <built-in> is an LC_ENTER, not LC_RENAME
5799 as this now happens before cpp_push_main_file.
5800 (push_command_line_include): When done with options, pass LC_LEAVE
5801 instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5802 (fe_file_change): Handle NULL new_map, and simplify.
5803 * cpplex.c (_cpp_get_fresh_line): Revert my no-longer-needed
5804 08-28 change, since we're never called with a NULL buffer.
5805 (_cpp_lex_direct): Likewise.
5806 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
5807 Return false if buffer is NULL at end.
5809 * cpplex.c (_cpp_get_fresh_line): Return value now just depends on
5810 whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5811 * cpphash.h (struct cpp_buffer): Remove unused return_at_eof field.
5812 * cpplib.c (cpp_push_buffer): Since we no longer set return_at_eof,
5813 remove the unused return_at_eof parameter.
5814 * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5815 Update callers of cpp_push_buffer.
5817 2003-10-01 Zack Weinberg <zack@codesourcery.com>
5819 * target.h (init_libfuncs): New hook.
5820 * target-def.h: Default TARGET_INIT_BUILTINS and
5821 TARGET_INIT_LIBFUNCS to hook_void_void. Add
5822 TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5823 * builtins.c (default_init_builtins): Delete.
5824 * expr.h (default_init_builtins): Delete prototype.
5825 * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5826 Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5827 Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5828 DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5829 MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5830 and UMODDI3_LIBCALL,
5832 * Makefile.in (optabs.o): Depends on target.h.
5833 * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5834 * optabs.c: Include target.h.
5835 (prepare_float_lib_cmp): No need for #ifdef around use of
5836 FLOAT_LIB_COMPARE_RETURNS_BOOL.
5837 (set_optab_libfunc): New function.
5838 (init_optabs): Delete use of all *_LIBCALL defines.
5839 Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5840 * optabs.h: Prototype set_optab_libfunc.
5842 * config.gcc: Remove all references to pa/long_double.h,
5843 ia64/hpux_longdouble.h, and gofast.h.
5844 (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5845 to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5847 * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5848 * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5849 * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5850 * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5851 * config/sparc/sparc.c, config/vax/vax.c:
5852 Provide a definition for TARGET_INIT_LIBFUNCS. Where
5853 necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5855 * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5856 * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5857 * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5858 * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5859 * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5860 * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5861 * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5862 * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5863 INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5865 * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5866 Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5867 * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5868 HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5869 * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5871 * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5872 * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5873 SUN_INTEGER_MULTIPLY_64 to 0.
5874 * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5875 SUN_INTEGER_MULTIPLY_64 to 1.
5876 * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5877 SUN_INTEGER_MULTIPLY_64 to 0.
5878 * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5879 Define US_SOFTWARE_GOFAST.
5880 * config/vax/vax.h: Default TARGET_ELF to 0.
5881 * config/vax/elf.h: Redefine TARGET_ELF to 1.
5883 * config/gofast.h: Don't define any macros here. Provide one
5884 static function, gofast_maybe_init_libfuncs, which does what
5885 INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5886 is already defined. Do not clear negation libfuncs. Do
5887 not mess with HFmode, XFmode, or TFmode libfuncs.
5889 * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5891 2003-10-01 Kelley Cook <kelleycook@wideopenwest.com>
5894 * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5896 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5898 * config/mips/xm-iris5.h: Remove, unnecessary.
5899 * config.build (mips-sgi-irix5*): Remove.
5900 (mips-sgi-irix6*o32): Likewise.
5901 * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5902 (mips-sgi-irix5cross64): Likewise.
5903 (mips-sgi-irix5*): Likewise.
5904 * config.host (mips-sgi-irix5*): Remove.
5905 (mips-sgi-irix6*o32): Likewise.
5907 2003-10-01 Zack Weinberg <zack@codesourcery.com>
5909 * dbxout.c (dbxout_fptype_value): Delete.
5910 (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5912 2003-10-01 Alexandre Oliva <aoliva@redhat.com>
5914 * output.h (compute_reloc_for_constant): Declare.
5915 * varasm.c (compute_reloc_for_constant): Extract from...
5916 (output_addressed_constants): ... here. Adjust all callers.
5918 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5920 * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5921 * configure: Rebuilt.
5923 2003-10-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5925 * fold-const.c (make_range): When handling unsigned, don't reverse
5926 range if high bound is zero.
5928 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
5930 * config/frv/frv.h (PREDICATE_CODES): Added
5931 condexec_si_media_operator, condexec_sf_add_operator and
5932 condexec_sf_conv_operator. Removed condexec_sf_binary_operator
5933 and condexec_sf_unary_operator.
5935 2003-10-01 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5937 * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5938 * configure: Rebuilt.
5940 2003-10-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
5942 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5944 * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5946 2003-09-23 David S. Miller <davem@redhat.com>
5948 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5950 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5952 2003-10-01 Steven Bosscher <steven@gcc.gnu.org>
5954 * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5955 C90 function declarations and definitions.
5957 2003-10-01 Nathanael Nerode <neroden@gcc.gnu.org>
5959 * config.gcc (cris-*-linux*): Revert mistaken commit.
5961 2003-10-01 Eric Botcazou <ebotcazou@libertysurf.fr>
5963 PR optimization/11753
5964 * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5965 the length in the non-V9 case.
5967 2003-09-30 Richard Henderson <rth@redhat.com>
5969 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5970 DWARF_ALT_FRAME_RETURN_COLUMN.
5971 * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5972 (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5973 (uw_frame_state_for): Return end-of-stack for null return address.
5974 * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5976 * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5977 (alpha_expand_prologue): Store a zero for it.
5978 (alpha_expand_epilogue): Don't reload it.
5979 * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5980 * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5981 for the sigframe return address.
5983 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
5985 * sdbout.c: Convert to ISO C90 prototypes.
5986 * objc/objc-act.c: Likewise.
5988 2003-09-30 Kelley Cook <kelleycoook@wideopenwest.com>
5990 * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5991 * config/i386/winnt.c: Likewise.
5992 * config/i386/cygming.h: Likewise.
5994 2003-09-30 Kazu Hirata <kazu@cs.umass.edu>
5996 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5997 (A ^ B) - B for any B.
5999 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6001 * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6002 powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6004 2003-09-30 Richard Earnshaw <rearnsha@arm.com>
6006 * arm/ieee754-sf.S: Tidy formatting.
6008 2003-09-30 Nicolas Pitre <nico@cam.org>
6010 * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6012 (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6013 (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6014 added better divisor alignment in the other case.
6015 (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6016 (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6017 macros above, add fast exits for divisor >= dividend, etc.
6019 2003-09-30 Nicolas Pitre <nico@cam.org>
6021 * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6023 * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6025 2003-09-30 Nathanael Nerode <neroden@gcc.gnu.org>
6027 * config.gcc: Default use_fixproto to 'no'.
6029 2003-09-30 Richard Sandiford <rsandifo@redhat.com>
6031 PR optimization/12345
6032 * config/mips/mips-protos.h (mips_restore_gp): Remove.
6033 (mips_gp_save_slot): Declare.
6034 * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6035 (mips_gp_save_slot): ...this new function.
6036 * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6037 and mips_output_move to generate the output template.
6038 (call_internal): Force splitting if TARGET_SPLIT_CALLS. Don't emit
6039 a gp load after a noreturn call. Load the gp using a move rather
6040 than an exception_receiver pattern.
6041 (call_value_internal, call_value_multiple_internal): Likewise.
6042 (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6044 2003-09-30 Carlo Wood <carlo@alinoe.com>
6047 * cfglayout.c (insn_scope): Use prologue_locator and
6048 epilogue_locator; return the outer function scope for
6049 pro- and epilogue insns.
6051 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6053 * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6054 REAL_TYPEs based on the bitsize of the type's mode, not the
6057 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6059 * dwarf2out.c (default_eh_frame_section): Split into ...
6060 (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6062 * output.h (named_section_eh_frame_section): Declare.
6063 (collect2_eh_frame_section): Likewise.
6065 2003-09-29 Zack Weinberg <zack@codesourcery.com>
6067 * real.c (real_sqrt): Use get_canonical_qnan directly.
6069 * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6071 * varasm.c (assemble_real): Use real_to_target directly,
6072 calculate the number of significant elements of the result
6073 array and write them out in a loop, instead of using a giant
6074 switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6077 2003-09-29 Jan Hubicka <jh@suse.cz>
6080 * varasm.c (notice_global_symbol): Discard external symbols.
6082 PR optimization/12286
6083 * gcov-io.c (gcov_read_words): Fix memmove call.
6084 * profile.c (compute_branch_probabilities): Add extra sanity checks.
6086 2003-09-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6088 * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6091 * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6092 wildcards which explicitly match micro versions.
6093 * fixinc/fixincl.x: Regenerate.
6095 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6097 * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6098 (A ^ B) - B, where B is any power of 2 minus 1.
6100 2003-09-29 Jan Hubicka <jh@suse.cz>
6102 * libgcov.c (gcov_exit): Fix two pastos.
6104 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6106 * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6107 define_split immediately below to form define_insn_and_split.
6109 2003-09-29 Kazu Hirata <kazu@cs.umass.edu>
6111 * config/h8300/h8300.md (*tstsi_variable_bit): New.
6112 (*tstsi_variable_bit_qi): Likewise.
6114 2003-09-28 Phil Edwards <phil@codesourcery.com>
6116 * doc/cppopts.texi: Use 'dashMP' instead of '-MP' as a cross-
6119 2003-09-28 Richard Henderson <rth@redhat.com>
6121 * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6122 file and line separately.
6124 2003-09-28 Ulrich Weigand <uweigand@de.ibm.com>
6126 * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6127 "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6128 "*subdi3_borrow_cconly"): New insns.
6129 ("*addsi3_sub", "*subsi3_sub"): Remove.
6130 ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6131 ("*subsi3_cc"): Fix op_type attribute.
6133 2003-09-28 Richard Henderson <rth@redhat.com>
6135 * stmt.c (expand_asm_operands): Take a location_t, instead of
6136 individual file and line.
6137 * c-typeck.c (c_expand_asm_operands): Likewise.
6138 * tree.h (expand_asm_operands): Update decl.
6139 * c-common.h (c_expand_asm_operands): Likewise.
6140 * c-semantics (genrtl_asm_stmt): Update call.
6142 2003-09-28 Philip Blundell <philb@gnu.org>
6144 * config/arm/arm.c (legitimize_pic_address): Check
6145 SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6146 (arm_assemble_integer): Likewise.
6148 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6150 * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6151 config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6153 Convert to ISO C90 function declarations and definitions.
6155 2003-09-28 Steven Bosscher <steven@gcc.gnu.org>
6157 * config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6158 Convert to ISO C90 function declarations and definitions.
6160 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6162 * config/mips/mips.c (mips_constant_info): Add reloc field.
6163 (mips_classify_constant): Initialize it. Always set SYMBOL to the
6164 underlying symbol, not to an unspec.
6165 (mips_delegitimize_address, print_operand): Clean up accordingly.
6167 2003-09-28 Richard Sandiford <rsandifo@redhat.com>
6169 * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6170 * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6171 * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6172 (mips_classify_constant): Use it.
6173 (mips_splittable_symbol_p): Add an offset argument.
6174 (mips_classify_address): Adjust call accordingly.
6175 (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6176 than a relocation unspec. Update call to mips_splittable_symbol_p.
6177 Generalize the code that copes with symbols + invalid offsets.
6178 (print_operand): Allow '%R' to be applied to small data addresses.
6179 (mips_reloc_string): Remove RELOC_GPREL16.
6180 (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg. Return $gp
6181 for TARGET_EXPLICIT_RELOCS. Return null if we can't use gp-relative
6182 relocation operators.
6183 * config/mips/mips.md (RELOC_GPREL16): Remove. Shuffle other reloc
6184 constants accordingly.
6186 2003-09-27 Roger Sayle <roger@eyesopen.com>
6188 * toplev.c (flag_evaluation_order): New global variable.
6189 * flags.h (flag_evaluation_order): Prototype here.
6190 * expr.c (expand_operands): If we need to preserve observable
6191 evaluation order, protect exp1 from clobbering exp0's result.
6193 2003-09-28 Andreas Jaeger <aj@suse.de>
6195 * c-decl.c (finish_function): Convert definition to ISO C90.
6196 * ifcvt.c (mark_loop_exit_edges): Likewise.
6197 * ra-rewrite.c (emit_colors): Likewise.
6199 2003-09-27 Nathanael Nerode <neroden@gcc.gnu.org>
6201 * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6202 * config.gcc (arm*-*-uclinux*): Disable fixproto.
6203 * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6204 powerpc-*-eabialtivec*): Disable fixproto.
6206 2003-09-27 Eric Botcazou <ebotcazou@libertysurf.fr>
6208 PR optimization/12340
6209 * loop.h (struct induction): Document the new semantics
6210 of the 'same' field for bivs.
6211 * unroll.c (biv_total_increment): Don't count the same
6212 biv increment several times.
6213 (loop_iterations) [GENERAL_INDUCT]: Likewise.
6215 2003-09-27 Graham Stott <graham.stott@btinternet.com>
6217 * unroll.c (loop_interations)[GT]: Add missing break.
6219 2003-09-27 Kelley Cook <kcook@gcc.gnu.org>
6221 * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6222 config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6223 config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6224 config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6225 config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6226 config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6227 config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6228 config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6229 config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6230 config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6231 config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6232 config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6233 config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6234 config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6235 config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6236 config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6237 config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6238 config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6239 config/alpha/xm-vms.h, config/arc/arc-modes.def,
6240 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6241 config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6242 config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6243 config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6244 config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6245 config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6246 config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6247 config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6248 config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6249 config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6250 config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6251 config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6252 config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6253 config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6254 config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6255 config/i960/i960-c.c, config/i960/i960-coff.h,
6256 config/i960/i960-modes.def, config/i960/i960-protos.h,
6257 config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6258 config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6259 config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6260 config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6261 config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6262 config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6263 config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6264 config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6265 config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6266 config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6267 config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6268 config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6269 config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6270 config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6271 config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6272 config/mcore/mcore-protos.h, config/mcore/mcore.c,
6273 config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6274 config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6275 config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6276 config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6277 config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6278 config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6279 config/mips/vr.h, config/mn10300/linux.h,
6280 config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6281 config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6282 config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6283 config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6284 config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6285 config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6286 config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6287 config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6288 config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6289 config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6290 config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6291 config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6292 config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6293 config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6294 config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6295 config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6296 fixinc/fixinc.svr4: GNU CC -> GCC.
6298 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6300 * objc/objc-act.c (tm_p.h): Tweak order.
6301 * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6303 2003-09-26 Nathanael Nerode <neroden@gcc.gnu.org>
6305 * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6306 Include t-slibgcc-elf-ver and t-linux in tmake_file.
6307 * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6309 * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6311 * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6312 sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6314 * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6316 2003-09-26 Loren James Rittle <ljrittle@acm.org>
6318 * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6319 * objc/objc-act.c (tm_p.h): Include.
6321 2003-09-26 Per Bothner <pbothner@apple.com>
6323 * dbxout.c (dbxout_typedefs): Output typedefs in forward order.
6324 No longer any need to reverse by recursion.
6326 2003-09-26 Roger Sayle <roger@eyesopen.com>
6327 Richard Henderson <rth@redhat.com>
6329 PR optimization/11741
6330 * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6331 appropriate set to match that in hash_scan_insn. Fall back to
6332 the original copy method, if we can't validate changing insn.
6333 (pre_delete): Only delete instructions that have a single_set,
6334 instead of aborting when we encounter an PARALLEL insn with more
6337 2003-09-26 Andreas Krebbel <krebbel1@de.ibm.com>
6339 * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6340 ("builtin_longjmp"): Insn deleted.
6341 ("save_stack_nonlocal"): Save literal pool base pointer behind
6342 backchain and stack pointer.
6343 ("restore_stack_nonlocal"): Restore literal pool base pointer.
6344 * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6345 the stack save area for the nonlocal goto case.
6347 2003-09-26 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6350 * pa.c (output_bvb): Fix typo.
6352 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6354 * expmed.c (store_bit_field): Don't search for an integer mode
6355 unless we need the result.
6357 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6359 * expr.c (emit_move_insn_1): If there is no move pattern for the
6360 original mode, try using a pattern for the corresponding integer mode.
6362 2003-09-26 Richard Sandiford <rsandifo@redhat.com>
6365 * combine.c (if_then_else_cond): Tighten mode check.
6367 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6369 * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6370 'struct _cpp_strbuf'.
6372 * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6373 config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6374 config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6375 config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6376 config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6377 config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6378 config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6379 config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6380 config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6381 "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6382 * config/i386/i386-aout.h, config/i386/i386-coff.h,
6383 config/i386/i386-interix.h, config/i386/i386-interix3.h,
6384 config/i386/i386-modes.def, config/i386/i386-protos.h,
6385 config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6386 config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6387 config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6388 config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6389 config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6390 "GNU compiler" -> GCC.
6391 * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6392 config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6393 config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6394 config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6395 config/i386/freebsd-aout.h, config/i386/freebsd.h,
6396 config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6398 2003-09-25 Kelley Cook <kelleycook@wideopenwest.com>
6400 * cgraph.c (dump_cgraph): Don't output newline before dump. Add in
6401 "local" to the callgraph dump. Output "after inlining" earlier.
6402 * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6403 callgraph dumps. Correct misspellings.
6404 (cgraph_decide_inlining): Output number of insns before inlining.
6405 Output the calling function into which a function is inlined.
6406 (cgraph_decide_small_functions): Format dump file like always_inline.
6408 2003-09-25 Loren James Rittle <ljrittle@acm.org>
6410 * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6412 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6414 * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6415 FPR slots in the save area.
6416 (s390_emit_epilogue): Likewise.
6418 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6420 * cgraph.h (cgraph_remove_edge): Declare.
6421 * cgraph.c (cgraph_remove_edge): Make extern.
6422 * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6423 instead of cgraph_remove_call.
6425 2003-09-25 Ulrich Weigand <uweigand@de.ibm.com>
6427 * objc/objc-act.c (gen_declaration_1): Fix printf format.
6429 2003-09-25 Richard Earnshaw <rearnsha@arm.com>
6431 * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6434 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6436 * config/darwin-protos.h (objc_image_info_section):
6439 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6441 * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6443 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6445 * config.gcc: Get rid of more gratuitious 'x'es. Actually allow
6446 tsc701 as a --with-cpu, --with-tune setting for sparc.
6448 2003-09-25 Ziemowit Laski <zlaski@apple.com>
6450 * c-parse.in (objc_try_stmt): Do not specify a %type.
6452 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6454 * config.gcc: New 'widely ported system' clause for rtems.
6455 Set thread file there, not in individual clauses.
6457 2003-09-25 Richard Sandiford <rsandifo@redhat.com>
6460 * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6461 passed on the stack.
6463 2003-09-25 Nathanael Nerode <neroden@gcc.gnu.org>
6465 * config.gcc (widely ported systems section): Mostly alphabetize
6466 by system. Comment the case where we can't.
6467 * config.gcc (widely ported systems section): Reindent and clean up.
6469 * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6470 Actually allow ep9312 as an arm --with-arch setting.
6472 * config.gcc (*-hpux11): Disable fixproto.
6474 2003-09-24 Phil Edwards <phil@codesourcery.com>
6477 * gcc/cppfiles.c (pch_open_file): Return based on combined
6478 result of all files.
6479 (validate_pch): Return validate flag for current file.
6481 2003-09-24 Roger Sayle <roger@eyesopen.com>
6484 * fold-const.c (tree_swap_operands_p): Only reorder operands when
6485 one of the operands is constant.
6487 2003-09-24 Ziemowit Laski <zlaski@apple.com>
6489 MERGE OF objc-improvements-branch into MAINLINE:
6490 * Makefile.in (C_OBJS): Add in stub-objc.o.
6491 (c-parse.y): Change sed demarcations to begin with '@@'.
6492 (stub-objc.o): New rule.
6493 * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6494 flag_replace_objc_classes): New flags.
6495 * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6496 RID_AT_SYNCHRONIZED): New keywords.
6497 (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6498 flag_replace_objc_classes): New flags.
6499 (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6500 objc_comptypes, objc_message_selector, lookup_objc_ivar,
6501 get_current_scope, objc_mark_locals_volatile): New prototypes,
6502 some moved from c-tree.h.
6503 * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6504 (finish_decl): Adjust where objc_check_decl() gets called.
6505 * c-lang.c (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6506 objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6507 * c-opts.c (c_common_handle_option): Add handling for flag_nil_receivers,
6508 flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6509 * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6510 '@@end_ifc', respectively.
6511 (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6512 (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6513 objc_finally_block): New rules.
6514 (component_decl_list2): Clean up semantic action for @defs construct.
6515 (component_decl, c99_block_start): Remove call to add_objc_decls().
6516 (poplevel): Add call to objc_clear_super_receiver().
6517 (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6519 (classdef, methodprotolist): Clean up/simplify.
6520 (methodprotolist2): Eliminate.
6521 (methodproto): Call add_method() instead of add_class_method() and
6522 add_instance_method().
6523 (receiver): Add TYPENAME production.
6524 (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6525 (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6527 * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6528 objc_comptypes, objc_message_selector)
6529 * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6530 struct and pointer types.
6531 (build_c_cast): Do not discard ObjC protocol qualifiers.
6532 (convert_for_assignment): Cache result of comp_target_types() instead
6533 of calling it more than once.
6534 * c.opt (fnext-runtime): Update description string.
6535 (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6536 New ObjC/ObjC++-specific flags.
6537 * function.h (GCC_FUNCTION_H): Header guard.
6538 * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6539 * stub-objc.c: New file, to be used to satisfy references to ObjC
6540 functions by the C and C++ front-ends.
6541 * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6542 * config/darwin.h (FUNCTION): Add in_objc_image_info.
6543 (SECTION_FUNCTION): Add objc_image_info_section.
6544 * doc/invoke.texi: Link to GCC web site for Objective-C information.
6545 (-fconstant-string-class): Update documentation.
6546 (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6547 -fzero-link): New documentation.
6548 * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6550 * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6551 * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6552 throughout; provide casts for return values from memory allocation
6553 functions (xmalloc, alloca, ggc_alloc, etc.).
6554 (OBJC_VOID_AT_END): New macro.
6555 (rtl.h): Do not #include any more.
6556 (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6557 (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6558 TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6559 TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6560 TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6561 (struct val_stack, catch_count_stack, exc_binding_stack, val_stack_push,
6562 val_stack_pop): New.
6563 (objc_check_decl): Fix precondition for error message, along with
6565 (lookup_and_install_protocols): Remove nonexistent protocols from
6566 protocol list instead of returning error_mark_node.
6567 (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6568 (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6569 (synth_module_prologue): General clean-up; construct NeXT-specific
6570 runtime API prototypes if needed.
6571 (build_string_class_template): Remove.
6572 (check_string_class_template, string_layout_checked): New.
6573 (build_objc_string_object): Generalize to work with
6574 -fconstant-string-class.
6575 (build_objc_symtab_template): Fix layout for the NeXT runtime.
6576 (build_metadata_decl): New.
6577 (forward_declare_categories): Call build_metadata_decl() instead of
6578 create_builtin_decl() et al.
6579 (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6581 (build_selector_reference_decl, build_class_reference_decl,
6582 build_objc_string_decl): Do not set TREE_READONLY.
6583 (get_proto_encoding): Do not call hack_method_prototype().
6584 (get_class_reference): Add failure mode for invalid class names;
6585 support -fzero-link; defer if in an ObjC++ template declaration.
6586 (objc_declare_alias, objc_declare_class): Fix up duplicate name
6587 lookup; check for global scope if in ObjC++.
6588 (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6589 RECORD_TYPE, IDENTIFIER_NODE, etc.)
6590 (objc_is_id): Removed.
6591 (objc_is_object_ptr): New function.
6592 (get_class_ivars_from_name): New function, used for @defs construct.
6593 (get_class_ivars): Add option to return raw ivars; create a
6594 ClASS_OWN_IVARS list for each class as needed.
6595 (objc_enter_block, objc_exit_block, objc_declare_variable,
6596 objc_build_throw_stmt, val_stack_push, val_stack_pop,
6597 objc_build_try_enter_fragment, objc_build_extract_expr,
6598 objc_build_try_exit_fragment, objc_build_extract_fragment,
6599 objc_build_try_prologue, objc_build_try_epilogue,
6600 objc_build_catch_stmt, objc_build_catch_epilogue,
6601 objc_build_finally_prologue, objc_build_finally_epilogue,
6602 objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6603 objc_build_synchronized_epilogue, build_objc_exception_stuff):
6605 (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6607 (build_private_template): Fix up calls to get_class_ivars().
6608 (offset_is_register, forwarding_offset): Remove.
6609 (objc_method_parm_type, objc_encoded_type_size): New functions.
6610 (encode_method_prototype): Simplify to no longer depend on
6611 back-end information.
6612 (build_tmp_function_decl_xxx, build_tmp_function_decl,
6613 hack_method_prototype): Removed.
6614 (generate_protocol_references): Remove calls to
6615 build_tmp_function_decl().
6616 (generate_protocols): Adjust calls to encode_method_prototype().
6617 (build_class_template): Generate sel_id' and 'gc_object_type' fields
6618 for the NeXT runtime.
6619 (synth_forward_declarations): Call build_metadata_decl().
6620 (check_ivars): Check that the number of ivars matches also.
6621 (build_super_template): Modify super_type directly; disable debugging
6622 output while generating decl.
6623 (build_ivar_list_initializer): Skip list elements that are not
6625 (ivar_list_length): New function.
6626 (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6627 and encode_method_prototype() instead of encode_method_def().
6628 (build_shared_structure_initializer): Generate 'sel_id' field for
6630 (generate_category): Do not set TREE_USED.
6631 (build_keyword_selector): Ditto; transform into a function argument
6633 (get_arg_type_list): If there are no user-specified arguments, use
6634 '...'; use OBJC_VOID_AT_END.
6635 (check_duplicates): Add a parameter indicating whether methods or
6636 selectors are being checked.
6637 (receiver_is_class_object): Add parameters indicating whether
6638 receiver is 'self' or 'super'; robustify.
6639 (build_message_expr): Defer call to finish_message_expr() if
6640 inside an ObjC++ template.
6641 (lookup_method_in_hash_lists): New function.
6642 (finish_message_expr): Complete rewrite/fix.
6643 (build_objc_method_call): Ditto; factor out commonalities between
6644 the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6645 messenger variants on the NeXT.
6646 (lookup_instance_method_static, lookup_class_method_static):
6647 Fold into a single lookup_method_static() function with an
6648 additional parameter.
6649 (add_class_method, add_instance_method): Fold into a single
6650 add_method() function with an additional parameter.
6651 (add_category): Make duplicate categories a hard error in ObjC++.
6652 (add_instance_variable): Properly handle unnamed ivars, arrays of
6653 zero or no size and bitfields. In ObjC++, check for nontrivial
6654 C++ class instances.
6655 (is_public): Allow C functions to access non-@public ivars, with
6657 (start_class): Move common initializations to
6658 synth_module_prologue(); check for global scope if in ObjC++.
6659 (continue_class): Fix calls to finish_struct().
6660 (objc_declare_protocols, start_protocol): Check for global scope
6662 (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6663 (encode_aggregate_within): Rewrite to properly distinguish
6664 struct tags from typedefs in both ObjC and ObjC++.
6665 (encode_bitfield, encode_complete_bitfield): Remove.
6666 (encode_next_bitfield, encode_gnu_bitfield): New functions.
6667 (encode_field_decl): Call encode_next_bitfield() or
6668 encode_gnu_bitfield() as needed.
6669 (synth_self_and_ucmd_args): New function.
6670 (start_method_def): Use it.
6671 (objc_types_are_equivalent): New function.
6672 (comp_proto_with_proto): Use it instead of comptypes(), since
6674 (really_start_method): Use lookup_method_static() instead of
6675 lookup_class_method_static() and lookup_instance_method_static();
6676 Emit 'extern "C"' if in ObjC++ mode.
6677 (add_objc_decls): Removed.
6678 (UOBJC_SUPER_scope): New variable.
6679 (get_super_receiver): Move construction of 'super' from
6680 add_objc_decls(); remove dependency on struct objc_class.
6681 (encode_method_def): Removed; encode_method_prototype() is
6683 (objc_clear_super_receiver): New function.
6684 (objc_expand_function_end): Do not do anything for ordinary
6686 (finish_method_def): Mark ObjC methods as un-inlinable.
6687 (gen_declaration_1): Emit widths of bitfields.
6688 (finish_objc): Call generate_objc_image_info() if needed;
6689 use check_duplicates() when checking for selector duplicates.
6690 (generate_objc_image_info): New function.
6691 * objc/objc-act.h (add_instance_method, add_class_method,
6692 get_class_ivars): Remove prototypes.
6693 (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6694 objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6695 objc_build_catch_stmt, objc_build_catch_epilogue,
6696 objc_build_finally_prologue, objc_build_finally_epilogue,
6697 add_method, get_class_ivars_from_name): New prototypes.
6698 (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6699 (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6700 TRANSLATION_UNIT_DECLs.
6701 (OBJC_TYPE_NAME): New.
6702 (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6704 (IS_SUPER): Robustify.
6705 (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6706 umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6707 objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6708 objc_exception_match_decl, objc_exception_throw_decl,
6709 objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6710 objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6711 objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6712 objc_catch_type): New ObjC/ObjC++ roots.
6713 * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6714 ObjC/ObjC++ tree node codes.
6716 2003-09-24 Alexandre Oliva <aoliva@redhat.com>
6718 * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6719 code path that calls a handler.
6721 2003-09-24 Nathanael Nerode <neroden@gcc.gnu.org>
6723 * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6726 * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6727 the section giving $with_cpu defaults by target.
6729 * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6730 arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6731 rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6732 rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6733 rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6734 i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6736 2003-09-24 David Edelsohn <edelsohn@gnu.org>
6738 * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6739 together. Protect load string instruction with TARGET_STRING.
6740 (movti_string): Collapse case 1 and 2 together.
6742 2003-09-24 Nathan Sidwell <nathan@codesourcery.com>
6744 * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6746 2003-09-24 Richard Earnshaw <rearnsha@arm.com>
6748 * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6751 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6753 * config.gcc: Move use_fixproto=no from generic vxworks clause to
6756 * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6757 (accidentally missed in last pass).
6759 2003-09-23 Andrew Pinski <apinski@apple.com>
6762 * configure: Regenerate.
6764 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6766 * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6767 missed in last pass).
6769 2003-09-23 Alexandre Oliva <aoliva@redhat.com>
6771 * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6774 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6776 * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6778 * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6779 powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6780 powerpcle-*-eabi*): Disable fixproto.
6782 * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6783 specific FreeBSD clauses.
6784 * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6785 specific NetBSD clauses.
6786 * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6787 to specific OpenBSD clauses.
6789 2003-09-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6791 * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6792 without adding a frame note.
6793 * pa.md (allocate_stack): Save pic register in new frame marker when
6794 generating pic code.
6796 2003-09-23 Kelley Cook <kelleycook@wideopenwest.com>
6798 * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6799 cgraph_expand_functions.
6801 2003-09-23 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
6803 * Makefile.in (gnucompare*): Merge into ...
6804 (slowcompare*): ... here.
6805 (fastcompare*): New targets.
6806 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6807 other "fast" cmp programs.
6808 * configure: Regenerate.
6810 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6812 * targhooks.c: Include output.h.
6813 * Makefile.in (targhooks.o): Add output.h to dependency list.
6815 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6817 * config.host: Removed superfluous newline.
6819 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6821 * config.gcc: Use ${target}, not $machine.
6822 * configure.in: Don't set $machine.
6823 * configure: Regenerate.
6825 2003-09-23 Geoffrey Keating <geoffk@apple.com>
6827 * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6829 * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6830 pass zero-size arrays by reference.
6831 (rs6000_va_arg): Likewise.
6833 2003-09-23 Nathanael Nerode <neroden@gcc.gnu.org>
6835 * config.gcc: Set use_fixproto=no in each specific *-gnu*
6836 configuration, rather than the generic one.
6838 2003-09-23 Richard Henderson <rth@redhat.com>
6840 * tree-inline.c (remap_save_expr): Map new save_expr to identity
6841 rather than to error_mark_node.
6843 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6845 * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6847 * configure: Regenerate.
6848 * config.in: Likewise.
6849 * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6850 HAVE_GAS_SHF_MERGE value.
6851 * varasm.c (mergeable_string_section): Likewise.
6852 (mergeable_constant_section): Likewise.
6854 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6856 * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6859 2003-09-23 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
6861 * target.h (struct gcc_target): New member external_libcall.
6862 * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6863 (TARGET_ASM_OUT): Use it.
6864 * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6865 * targhooks.c: Convert to ISO C 90.
6866 (default_external_libcall): New function.
6867 * targhooks.h (default_external_libcall): Declare.
6868 * varasm.c (assemble_external_libcall): Use
6869 targetm.asm_out.external_libcall instead of
6870 ASM_OUTPUT_EXTERNAL_LIBCALL.
6871 * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6872 (mips_output_external_libcall): Declare.
6873 * config/mips/mips.c (mips_output_external_libcall): Change
6875 Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6876 Only operate for O32 ABI.
6877 * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6878 instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6879 * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6880 superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6882 2003-09-22 Nathnael Nerode <neroden@gcc.gnu.org>
6884 * config.gcc: Do per-target disabling of fixproto here in clauses,
6885 not in t- fragments.
6886 * configure.in: Adjust to set STMP_FIXPROTO correctly.
6887 * configure: Regenerate.
6888 * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6889 config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6890 t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6891 xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6892 * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6893 t-interix, t-linux-aout: Delete files consisting only of
6894 setting of STMP_FIXPROTO.
6896 * config.host: Allow unknown hosts (not targets). Allow
6897 ns32k-*-netbsdelf* as a host (not a target). Remove redundant
6898 empty clauses. Remove useless obsolete-configuration clause.
6899 Prune unsupported configuration list. Collapse identical
6900 clauses for closely related systems. Rewrite comment for
6901 unsupported hosts list. Reorganize a little.
6903 2003-09-22 Richard Henderson <rth@redhat.com>
6905 * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6908 2003-09-22 David Edelsohn <edelsohn@gnu.org>
6909 Hartmut Penner <hpenner@de.ibm.com>
6910 Segher Boessenkool <boessen@de.ibm.com>
6912 * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6913 (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6914 (rs6000_split_altivec_in_gprs): Rename to ...
6915 (rs6000_split_multireg_move): Add support for update addressing.
6916 * config/rs6000/rs6000-protos.h: Same.
6917 * config/rs6000/altivec.md: Same.
6918 * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6920 (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6921 (movti_power): Use new splitter for multiple GPRs.
6922 (movti_string): Same.
6923 (movti_ppc64): Same.
6925 2003-09-22 Bob Wilson <bob.wilson@acm.org>
6927 * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6928 * config/xtensa/xtensa.c: Convert to ISO C90. Minor formatting fixes.
6930 2003-09-22 Alexandre Oliva <aoliva@redhat.com>
6932 * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6933 (andsi3): Set attr cc to set_zn when using shifts or adds.
6935 2003-09-22 Bernardo Innocenti <bernie@develer.com>
6937 * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6939 2003-09-22 Bernardo Innocenti <bernie@develer.com>
6941 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6942 Resurrect -mrtd option.
6944 2003-09-21 Andrew Pinski <pinskia@physics.uc.edu>
6947 * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6948 mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6950 2003-09-22 Olivier Hainque <hainque@act-europe.fr>
6953 * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6954 after potential deletion of trapping insn. Avoids later ICE
6955 from call to fixup_abnormal_edges.
6956 (convert_regs_2): Stack the current block successors before
6957 processing this block, that is, before the potential deletion of
6958 dead edges by convert_regs_1, because these edges have been used
6959 to initialize the predecessors count.
6961 2003-09-22 Eric Botcazou <ebotcazou@libertysurf.fr>
6963 * real.c: Fix several nits in the head comment.
6965 2003-09-21 Richard Henderson <rth@redhat.com>
6967 * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6968 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6969 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6970 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6971 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6973 2003-09-21 Richard Henderson <rth@redhat.com>
6975 * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6976 (TREE_FILENAME, TREE_LINENO): Likewise.
6977 (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6978 (TREE_LOCUS_SET_P): New.
6979 * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6980 diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6981 print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6982 tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6983 config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6985 2003-09-21 Nathanael Nerode <neroden@gcc.gnu.org>
6987 * config/vax/vax-protos.h: Convert to ISO C90.
6988 * config/vax/vax.c: Convert to ISO C90.
6990 2003-09-21 Graham Stott <grahams@btinternet.com>
6993 * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6995 2003-09-21 Eric Botcazou <ebotcazou@libertysurf.fr>
6998 * reorg.c (stop_search_p): Return 1 for insns that can
7001 2003-09-20 Richard Henderson <rth@redhat.com>
7003 * c-format.c (gcc_diag_char_table): Add %J.
7004 (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7005 (check_format_types): Fix wanted_type name lookup.
7006 (init_dynamic_diag_info): Setup %J.
7007 * diagnostic.c (text_specifies_location): Implement %J.
7008 * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7009 dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7010 tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7011 config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7012 config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7014 * tree-inline.c: Include intl.h
7015 (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7016 * Makefile.in (tree-inline.o): Update.
7018 2003-09-20 Roger Sayle <roger@eyesopen.com>
7020 * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7021 transformation of a>=0 into (unsigned)a<0x80000000.
7023 2003-09-20 Andrew Pinski <apinski@apple.com>
7025 * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7027 2003-09-20 Nathanael Nerode <neroden@gcc.gnu.org>
7029 * Makefile.in: Don't set (unused) DLLTOOL.
7031 * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7032 Remove obsolete references to ENQUIRE.
7034 2003-09-19 Nathanael Nerode <neroden@gcc.gnu.org>
7036 * configure.in: Remove --with-elf, which doesn't work.
7037 * configure: Regenerate.
7038 * config.gcc: Remove references to $elf, which does nothing.
7040 * config/i386/xm-vsta.h: Remove xm-file believed useless.
7041 * config.build (i386-vsta): Remove reference to it.
7042 * config.host (i386-vsta): Remove reference to it.
7044 2003-09-19 Phil Edwards <phil@codesourcery.com>
7046 * doc/install.texi: Document the multiple testsuite options.
7048 2003-09-19 Gerald Pfeifer <gerald@pfeifer.com>
7050 * doc/install.texi (Specific): Add the specific versions of GCC
7051 where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7052 version 3 and older was discontinued.
7054 2003-09-19 Joel Sherrill <joel@oarcorp.com>
7056 * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7059 2003-09-19 Bernardo Innocenti <bernie@develer.com>
7061 * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7062 for -m68030, -m68020-60 and -m68020-40.
7063 * config/m68k/m68k.h (TARGET_68030): New target flag.
7064 * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7065 TARGET_REGPARM): Remove.
7066 * config/m68k/m68k.h: Regroup and renumber target flags.
7067 * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7068 * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7069 * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7070 * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7071 * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7073 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7075 * config/m68k/t-rtems (m68k-*-rtems*): New.
7076 * config.gcc: Use config/m68k/t-rtems.
7078 2003-09-19 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7080 * config/mips/t-rtems: New.
7081 * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7083 2003-09-19 Kelley Cook <kelleycook@wideopenwest.com>
7085 * cgraph.c: Fix typo in debugging output.
7087 2003-09-19 T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7088 Eric Botcazou <ebotcazou@libertysurf.fr>
7091 * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7093 2003-09-18 Mike Stump <mrs@apple.com>
7095 * c-ppoutput.c (print): Use fileline typedef for field 'line'.
7096 (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7097 cb_ident, cb_def_pragma): Use fileline typedef.
7098 * cpphash.h (struct cpp_reader): Likewise for field out.first_line.
7100 2003-09-18 Danny Smith <dannysmith@users.sourceforge.net>
7102 * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7103 total parm size if a parm has incomplete type.
7104 (gen_fastcall_suffix): Likewise.
7106 2003-09-18 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
7108 * except.c (output_function_exception_table): Adjust last change
7109 to handle TYPE of INTEGER_CST.
7111 2003-09-18 Mark Mitchell <mark@codesourcery.com>
7114 * builtins.c (expand_builtin_apply): Use convert_memory_address
7115 before returning the value.
7117 * alias.c (find_base_value): Simplify use of
7118 convert_memory_address.
7119 (find_base_term): Likewise.
7120 * builtins.c (expand_builtin_stejmp_setup): Likewise.
7121 (expand_builtin_longjmp): Likewise.
7122 (expand_builtin_prefetch): Likewise.
7123 (get_memory_rtx): Likewise.
7124 (expand_builtin_return): Likewise.
7125 (expand_builtin_memcpy): Likewise.
7126 (expand_builtin_strncpy): Likewise.
7127 (expand_builtin_memset): Likewise.
7128 (expand_builtin_va_arg): Likewise.
7129 (expand_builtin_va_copy): Likewise.
7130 (expand_builtin_alloca): Likewise.
7131 * calls.c (expand_call): Likewise.
7132 * except.c (expand_builtin_extract_return_addr): Likewise.
7133 (expand_builtin_eh_return): Likewise.
7134 * explow.c (convert_memory_address): Define even when
7135 POINTER_EXTEND_UNSIGNED is not defined. Do nothing if the address
7136 is already in the right mode.
7137 * explow.c (memory_address): Simplify use of convert_memory_address.
7138 (probe_stack_range): Likewise.
7139 * expmed.c (make_tree): Likewise.
7140 * expr.c (emit_block_move_in_libcall): Likewise.
7141 (expand_assignment): Likewise.
7142 (expand_expr): Likewise.
7143 * function.c (assign_parms): Likewise.
7144 (expand_function_end): Likewise.
7145 * integrate.c (copy_rtx_and_substitute): Likewise.
7146 * stmt.c (expand_computed_goto): Likewise.
7148 2003-09-18 Roger Sayle <roger@eyesopen.com>
7150 * simplify-rtx.c (simplify_unary_operation): Only transform
7151 (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7152 is -1. RTL "not" is a bit-wise not, "~", not a logical not "!".
7154 2003-09-18 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7157 * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7159 2003-09-18 Roger Sayle <roger@eyesopen.com>
7161 * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7162 PARITY_EXPR): Delete unused tree codes.
7163 * c-common.c (c_common_truthvalue_conversion): Delete references
7164 to FFS_EXPR and POPCOUNT_EXPR.
7165 * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7166 (pp_c_expression): Likewise.
7167 * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7168 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7169 * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7170 CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR. Add support for calls to
7171 BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7172 and long long variants.
7174 2003-09-18 Gabriel Dos Reis <gdr@integrable-solutions.net>
7176 * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7177 * c-pretty-print.c: Fix formatting.
7178 (pp_c_integer_constant): Append type annotation to literals. Tidy.
7179 (pp_c_type_specifier): Tidy.
7180 (pp_c_compound_literal): New function.
7181 (pp_c_initializer): Simplify..
7182 (pp_c_initializer_list): Likewise.
7183 (pp_c_brace_enclosed_initializer_list): New function.
7184 (pp_c_postfix_expression): Simplify.
7186 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
7188 * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7189 one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7191 2003-09-17 Richard Henderson <rth@redhat.com>
7193 * tree-optimize.c (tree_rest_of_compilation): Save and restore
7196 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7198 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7200 2003-09-17 Richard Henderson <rth@redhat.com>
7202 * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7204 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7206 * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7207 * configure: Regenerate.
7209 2003-09-17 Mark Mitchell <mark@codesourcery.com>
7212 * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7213 * langhooks-def.h (lhd_return_null_tree_v): New function.
7214 (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7215 (LANG_HOOKS_DECLS): Add it to the intializer.
7216 * langhooks.c (lhd_return_null_tree_v): New function.
7217 * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7219 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7221 * configure.in: Quote gcc_config_arguments for configargs.h.
7222 * configure: Regenerated.
7223 * gccbug.in: Don't shell-expand gcc_config_arguments.
7225 2003-09-17 Gabriel Dos Reis <gdr@integrable-solutions.net>
7228 * c-pretty-print.c (pp_c_floating_constant): Append
7229 type-annotation to floating constants.
7231 2003-09-17 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
7233 * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7235 Use it for _MIPS_SIM.
7236 * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7238 * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7240 * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7242 Fixes PR target/10190.
7244 2003-09-17 Daniel Jacobowitz <drow@mvista.com>
7246 * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7247 to shared libraries.
7249 2003-09-17 Eric Botcazou <ebotcazou@libertysurf.fr>
7251 PR optimization/11646
7252 * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7253 EDGE_ABNORMAL flag for EH edges.
7254 * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7255 if dead edges were purged.
7257 2003-09-16 Bernardo Innocenti <bernie@develer.com>
7259 * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7260 * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7261 * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7262 * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7264 2003-09-16 Ian Lance Taylor <ian@wasabisystems.com>
7266 * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7267 returned by tablejump_p.
7269 2003-09-16 Joel Brobecker <brobecker@gnat.com>
7271 * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7273 2003-09-16 Roger Sayle <roger@eyesopen.com>
7276 * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7277 argument to be VOIDmode, taking the mode of the comparison from
7278 the operands. Only call simplify_relational_operation if we
7279 know the mode of the comparison. Honor FLOAT_STORE_FLAG_VALUE
7280 if comparison has a floating point result. Ensure that the
7281 result is always of the specified mode.
7282 (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7283 (simplify_unary_operation): Ensure the correct mode and cmp_mode
7284 are always passed to simplify_gen_relational. Simplify NOT of
7285 comparison operator in any mode, not just BImode.
7286 (simplify_ternary_operation): Correct tests on the return value
7287 of simplify_relational_operation to use const_true_rtx, not
7288 const1_rtx. Abort if it ever returns a non-constant result.
7290 * cfgloopanal.c (count_strange_loop_iterations): Use the function
7291 simplify_relational_operation, not simplify_gen_relational, if
7292 we're only interested in constant comparisons and will ignore
7293 non-constant results.
7295 2003-09-16 Roger Sayle <roger@eyesopen.com>
7297 * fold-const.c (tree_swap_operands_p): New function to determine
7298 the prefered ordering of operands.
7299 (fold): Numerous clean-ups. Use tree_swap_operands_p when swapping
7300 operands to commutative, comparison or ternary operators. Replace
7301 uses of TREE_SET_CODE with recursive call to fold. Remove duplicate
7302 transformation of A ? B : C into !A ? C : B.
7304 2003-09-16 Jakub Jelinek <jakub@redhat.com>
7306 * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7307 * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7308 * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7309 * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7310 * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7311 * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7312 * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7313 * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7315 2003-09-16 Jason Merrill <jason@redhat.com>
7316 Jakub Jelinek <jakub@redhat.com>
7318 * c-common.c (handle_warn_unused_result_attribute): New function.
7319 (c_common_attribute_table): Add warn_unused_result.
7320 (c_expand_expr): Issue warning when result of inlined function
7321 with warn_unused_result attribute is ignored.
7322 * calls.c (expand_call): Issue warning when result of function
7323 with warn_unused_result attribute is ignored.
7324 * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7325 * expr.c (expr_wfl_stack): Define.
7326 (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7327 pass const0_rtx as target. Chain locations into expr_wfl_stack.
7328 * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7329 bit if inlined function has warn_unused_result attribute.
7330 * input.h (expr_wfl_stack): Declare.
7331 * doc/extend.texi: Document warn_unused_result attribute.
7333 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
7335 * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7337 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7339 * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7341 (call_insn_operand): For PIC, don't allow a direct call to a
7342 function in a different section than the current one.
7344 2003-09-16 Volker Reichelt <reichelt@igpm.rwth-aachen.de>
7346 * doc/invoke.texi (Warning Options): Add missing hyphen before
7347 "Wimport". Change "-Wno-endif-labels" to "-Wendif-labels".
7348 Move "-Wold-style-definition" to the C-only section.
7349 Fix the ordering of the warning options.
7351 2003-09-15 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7352 Jeff Law <law@redhat.com>
7354 * gcse.c (remove_reachable_equiv_notes): New.
7355 replace_store_insn): Call it. Update antic list.
7356 (store_killed_in_insn): Take REG_EQUAL notes into account.
7357 (build_store_vectors, delete_store): Add parameter to
7358 replace_store_insn call.
7360 2003-09-15 Bob Wilson <bob.wilson@acm.org>
7362 * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7365 2003-09-15 Kazu Hirata <kazu@cs.umass.edu>
7367 * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7368 (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7369 * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7371 * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7373 * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7374 * config/sparc/sparc.c (function_arg_padding): Likewise.
7376 2003-09-15 Vladimir Makarov <vmakarov@redhat.com>
7378 * haifa-sched.c (schedule_block): Use ready_remove_first instead
7379 of choose_ready for non-dfa insn scheduling.
7381 2003-09-15 Andreas Jaeger <aj@suse.de>
7382 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7384 * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7385 * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7386 * c-parse.in: Warn about old-style parameter definition.
7387 * c-common.c: Define warn_old_style_defintion.
7388 * c-common.h: Declare it.
7389 * c.opt: Add Wold-style-defintion.
7391 2003-09-15 Andreas Jaeger <aj@suse.de>
7393 * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7394 * config/rs6000/rs6000.c: Likewise.
7396 2003-09-12 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7398 PR optimization/10914
7399 * expr.h (get_condition, canonicalize_condition): Declaration changed.
7400 * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7401 and canonicalize_condition calls.
7402 * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7403 delete_null_pointer_checks): Ditto.
7404 * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7405 * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7406 * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7407 (canonicalize_condition, get_condition): Allow to return comparisons
7408 of cc mode registers.
7409 * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7410 cc mode registers comparison in condition.
7412 2003-09-12 Mark Mitchell <mark@codesourcery.com>
7414 * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7415 * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7417 * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7419 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7421 * combine.c (simplify_comparison): Convert
7422 (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7423 (eq (and (lshiftrt X Y) 1) 0).
7425 2003-09-14 Kazu Hirata <kazu@cs.umass.edu>
7427 * alias.c: Follow spelling conventions.
7428 * cpphash.h: Likewise.
7429 * fold-const.c: Likewise.
7431 2003-09-14 Alexandre Oliva <aoliva@redhat.com>
7433 * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7434 * c-lex.c (cb_line_change): Skip line changing whenever
7437 2003-09-14 Steven Bosscher <steven@gcc.gnu.org>
7439 * ra.c: Convert to ISO C90 prototypes.
7440 * ra-build.c: Likewise.
7441 * ra-colorize.c: Likewise.
7442 * ra-debug.c: Likewise.
7443 * ra-rewrite.c: Likewise.
7445 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7447 * Makefile.in (%.dvi): Remove excess $(docdir).
7449 2003-09-14 Richard Sandiford <rsandifo@redhat.com>
7451 * function.c (STACK_BYTES): Move definition to head of file.
7452 (assign_parms): Don't pass current_function_pretend_args_size
7453 directly to SETUP_INCOMING_VARARGS. For partial register arguments,
7454 round current_function_pretend_args_size up to STACK_BYTES. Skip any
7455 excess before laying out the argument.
7457 2003-09-14 Andreas Jaeger <aj@suse.de>
7459 * objc/objc-act.c: Convert to ISO C90 prototypes.
7460 * objc/objc-act.h: Likewise.
7462 2003-09-14 Olaf Hering <olh@suse.de>
7464 * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7466 2003-09-13 Andrew Pinski <pinskia@physics.uc.edu>
7469 * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7470 as they already are done in config/m68k/m68k.h.
7471 * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7473 * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7474 (machopic_output_stub): Only generate pic base symbols when using pic
7475 and generate them in the form L00000000$spb.
7477 2003-09-13 Richard Henderson <rth@redhat.com>
7479 * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7480 (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7483 2003-09-12 Dale Johannesen <dalej@apple.com>
7485 * config/rs6000/rs6000.c: Fix typos in previous.
7487 2003-09-12 Ziemowit Laski <zlaski@apple.com>
7489 * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7490 when allocating pp->buffer.
7492 2003-09-12 Geoffrey Keating <geoffk@apple.com>
7494 * config/darwin.c (machopic_select_rtx_section): Use
7495 const_data_section for things that might require relocation.
7497 2003-09-12 H.J. Lu <hongjiu.lu@intel.com>
7500 * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7502 2003-09-12 Bob Wilson <bob.wilson@acm.org>
7504 * config/xtensa/elf.h (ASM_SPEC): Remove no-density option. Reformat.
7505 * config/xtensa/linux.h (ASM_SPEC): Likewise.
7506 * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7507 -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7508 -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7509 -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7510 -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7511 -m[no-]hard-float-rsqrt options. Delete corresponding MASK_* macros
7512 and redefine corresponding TARGET_* macros with constants from the
7513 xtensa-config.h header.
7514 * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7515 for the options listed above.
7517 2003-09-12 Dale Johannesen <dalej@apple.com>
7519 * config/rs6000/rs6000-protos.h: Use C90 prototypes.
7520 * config/rs6000/rs6000-c.c: Ditto.
7521 * config/rs6000/rs6000.c: Ditto.
7522 * config/rs6000/ sysv4.h: Ditto.
7524 2003-09-12 Chris Lattner <sabre@nondot.org>
7526 * loop.c: Move comments describing BIV's and GIV's to top of file
7528 2003-09-12 Roger Sayle <roger@eyesopen.com>
7530 PR optimization/8967
7531 * alias.c (write_dependence_p): Modify to take an additional constp
7532 argument that controls whether the UNCHANGING_RTX_P flags are used.
7533 (anti_dependence, output_dependence): Adjust write_dependence_p
7534 callers to pass this additional argument, to return the same result.
7535 (unchanging_anti_dependence): New variant of anti_dependence that
7536 ignores the UNCHANGING_RTX_P property on memory references.
7537 * rtl.h (unchaning_anti_dependence): Prototype here.
7538 * flow.c (init_propagate_block): Place fake constant mem writes on
7539 the mem_set_list so that dead writes to const variables are deleted.
7540 (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7541 (mark_used_regs): Likewise.
7543 2003-09-12 Richard Sandiford <rsandifo@redhat.com>
7545 * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7546 (mcore_secondary_reload_class): Declare.
7547 (mcore_output_inline_const_forced): Remove.
7548 * config/mcore/mcore.md (movsi): Remove the code that forced
7549 non-inlineable constants into a register if the target was r15
7550 or the stack pointer. Remove constant restrictions from the main
7551 define_insn. Remove r <- I, r <- M and r <- N alternatives in favor
7552 of an r <- P alternative. Remove fallback define_insn for reload.
7553 (movhi, movqi): Use gen_lowpart rather than gen_SUBREG. Remove reload
7554 define_insn. Use mcore_output_move in the remaining define_insn.
7555 Adjust condition and constraints in the way as for movsi.
7556 (movdi): Always split unacceptable constants into two. Use
7557 simplify_gen_subreg instead of operand_subword{,_force}.
7558 * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7559 (mcore_output_move): Support HImode and QImode moves as well.
7560 (mcore_m15_operand_p): New function.
7561 (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7562 (mcore_secondary_reload_class): New function.
7563 * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7564 terms of mcore_secondary_reload_class.
7566 2003-09-11 Mike Stump <mrs@apple.com>
7568 * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7570 2003-09-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7572 * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7573 MODE exactly, then only convert logN(N) -> 1.0 if
7574 flag_unsafe_math_optimizations is set.
7576 * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7577 init_builtin_dconsts): Delete.
7578 * emit-rtl.c (dconstpi, dconste): Define.
7579 (init_emit_once): Initialize dconstpi & dconste.
7580 * real.h (dconstpi, dconste): Declare.
7582 2003-09-11 Alexandre Oliva <aoliva@redhat.com>
7585 * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7586 for ultimate origin even if block is abstract.
7588 2003-09-11 Roger Sayle <roger@eyesopen.com>
7590 * combine.c (combine_simplify_rtx): Move several NOT and NEG
7591 optimizations from here...
7592 * simplify-rtx.c (simplify_unary_operation): to here. Recursively
7593 simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7595 2003-09-11 Richard Henderson <rth@redhat.com>
7597 * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7598 Tweek tests for function already generated.
7599 (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7600 * cgraph.h (cgraph_finalize_function): Update for extra arg.
7601 * c-decl.c (finish_function): Likewise.
7603 2003-09-10 Joe Buck <jbuck@welsh-buck.org>
7605 * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7607 2003-09-10 Jerry Quinn <jlquinn@optonline.net>
7609 * real.c: Update URL to VAX floating point docs.
7610 (decode_vax_d): Extract 8 exponent bits instead of 7.
7612 2003-09-10 Ian Lance Taylor <ian@wasabisystems.com>
7614 * combine.c (force_to_mode): Set fuller_mask based only on mask,
7617 2003-09-11 Jan Hubicka <jh@suse.cz>
7619 * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7620 on why function is not inlinable; do not check
7622 (inline_forbidden_p): Move to...
7623 * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7624 deal with alloca, longjmp.
7625 (inline_forbidden_p): New static function.
7626 (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7627 find_builtin_longjmp_call): Kill.
7629 2003-09-10 Richard Henderson <rth@redhat.com>
7631 * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7632 * cgraphunit.c: Update to match.
7633 (record_call_1): Rearrange. Call lang hook for language nodes.
7634 (cgraph_analyze_function): Don't call lower_function.
7635 * langhooks.h (struct lang_hooks_for_callgraph): Replace
7636 lower_function with analyze_expr.
7637 * langhooks-def.h: Update to match.
7638 * langhooks.c (lhd_callgraph_analyze_expr): New.
7640 2003-09-10 Martin Husemann <martin@duskware.de>
7643 * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7644 constants greater than 63.
7645 * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7646 against constants greater than 31.
7647 (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7648 constants greater than 63.
7650 2003-09-09 Richard Henderson <rth@redhat.com>
7652 * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7653 * cgraph.h (cgraph_finalize_function): Update.
7654 * c-decl.c (finish_function): Update.
7656 2003-09-09 Devang Patel <dpatel@apple.com>
7658 * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7659 * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7661 2003-09-09 Eric Christopher <echristo@redhat.com>
7663 * configure.in: Change usage of 'head' to 'sed 1q'.
7664 * configure: Regenerate.
7666 2003-09-09 Richard Henderson <rth@redhat.com>
7668 * except.c: Include cgraph.h.
7669 (output_function_exception_table): Invoke
7670 cgraph_varpool_mark_needed_node.
7671 * Makefile.in (except.o): Update.
7673 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
7675 * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7676 and use it throughout.
7678 2003-09-09 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7680 * builtins.c (real_dconstp, fold_builtin_logarithm,
7681 fold_builtin_exponent): New, split out from fold_builtin. Also
7682 generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7683 * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7684 (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7685 of hardcoded array size.
7686 * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7687 (tree_expr_nonnegative_p): Likewise.
7688 * real.h (dconst3, dconst10, dconstthird): New.
7690 2003-09-09 Jan Hubicka <jh@suse.cz>
7692 * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7694 (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7697 2003-09-09 Roger Sayle <roger@eyesopen.com>
7699 * builtins.c (fold_builtin_cabs): Protect the complex argument
7700 against multiple evaluation when optimizing cabs* into sqrt*.
7702 2003-09-09 Jan Hubicka <jh@suse.cz>
7704 * varasm.c (notice_global_symbol): Properly deal with weak symbols.
7706 2003-09-08 Kelley Cook <kelleycook@wideopenwest.com>
7708 * Makefile.in: Revert yesterday's change.
7710 2003-09-08 Bernardo Innocenti <bernie@develer.com>
7711 Peter Barada <peter@baradas.org>
7713 * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7714 * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7715 * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7716 * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7717 * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7718 * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7719 * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7720 (m68k_compute_frame_layout): New function.
7721 (m68k_initial_elimination_offset): New function.
7722 (m68k_output_function_prologue): ColdFire-specific movem handling.
7723 (m68k_output_function_epilogue): Likewise.
7724 * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7725 (ARG_POINTER_REGNUM): Add new definition.
7726 (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7727 (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7728 (CAN_ELIMINATE): Likewise.
7729 (INITIAL_ELIMINATION_OFFSET): Likewise.
7731 2003-09-08 Bernardo Innocenti <bernie@develer.com>
7733 * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7734 by removing redundant variable cfa_store_offset.
7736 2003-09-08 Mark Mitchell <mark@codesourcery.com>
7738 * langhooks-def.h (lhd_register_builtin_type): New function.
7739 (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7740 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7741 * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7742 * langhooks.c (lhd_register_builtin_type): New function.
7743 * c-common.h (c_register_builtin_type): Declare.
7744 * c-common.c (c_register_builtin_type): New function.
7745 * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7746 c_register_builtin_type.
7747 * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7748 __float80, and __float128 macros.
7749 * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7750 __float80, and __float128 types.
7752 2003-09-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7755 (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7756 BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7757 BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7758 * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7759 BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7760 BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7761 BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7762 BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7763 BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7764 BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7765 BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7766 BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7767 BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7768 BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7769 BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7770 BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7771 BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7773 * doc/extend.texi: Document new builtins.
7775 2003-09-09 Jan Hubicka <jh@suse.cz>
7777 * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7779 * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7780 functions, check for COMDAT.
7781 (cgraph_assemble_pending_functions): Break out from...
7782 (cgraph_finalize_function): ... here; allow redefinig of extern inline
7784 (record_call_1): Record function references only in non-unit-at-a-time
7786 (cgraph_analyze_function): Reset current_function_decl.
7787 (cgraph_finalize_compilation_unit): Assemble pending functions.
7789 2003-09-08 Mark Mitchell <mark@codesourcery.com>
7791 * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7792 (libgov.a): Likewise.
7793 (libgcc_eh.a): Likewise.
7795 2003-09-08 Roger Sayle <roger@eyesopen.com>
7797 * fold-const.c (operand_equal_p): Clarify documentation.
7799 2003-09-08 Richard Henderson <rth@redhat.com>
7801 * c-decl.c (c_expand_body_1): Push and pop function context here.
7802 * tree-optimize.c (tree_rest_of_compilation): ... not here. Take
7803 nested argument instead of computing nesting ourselves.
7805 2003-09-08 Jakub Jelinek <jakub@redhat.com>
7807 * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7808 regstack if optimizing but not scheduling after reload.
7810 2003-09-08 Jakub Jelinek <jakub@redhat.com>
7812 * config/sparc/sparc.c (struct machine_function): New type.
7813 (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7814 (sparc_override_options): Initialize init_machine_status.
7815 (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7816 tie_symbolic_operand, tle_symbolic_operand): New functions.
7817 (symbolic_operand): Disallow tls_symbolic_operand.
7818 (symbolic_memory_operand): Likewise.
7819 (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7820 constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7822 (sparc_tls_symbol): New variable.
7823 (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7824 legitimize_address): New functions.
7825 (print_operand): Handle %&.
7826 (sparc_init_machine_status, get_some_local_dynamic_name,
7827 get_some_local_dynamic_name_1): New functions.
7828 (sparc_output_dwarf_dtprel): New function.
7829 * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7831 (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7832 (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7833 (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7834 (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7835 (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7836 (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7837 (ASM_OUTPUT_DWARF_DTPREL): Define.
7838 (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7839 tie_symbolic_operand, tle_symbolic_operand.
7840 * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7841 UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7842 (tls_call_delay): New attribute.
7843 (in_call_delay): Use it.
7844 (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7845 (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7846 tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7847 tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7848 tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7849 tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7850 (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7851 tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7852 tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7853 tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7854 tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7855 tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7856 tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7857 tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7859 * config/sparc/sparc-protos.h (legitimate_constant_p,
7860 constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7861 legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7862 tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7863 * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7864 * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7865 * configure.in (sparc*-*-*): Add TLS check.
7866 * configure: Rebuilt.
7868 2003-09-07 Eric Botcazou <ebotcazou@libertysurf.fr>
7871 * config/i386/i386.c (memory_address_length): Fix computation when
7872 the base is esp or ebp.
7874 2003-09-07 Mark Mitchell <mark@codesourcery.com>
7877 * varasm.c (initializer_constant_valid_p): Correct logic for
7880 2003-09-07 Roger Sayle <roger@eyesopen.com>
7882 * expr.c (expand_operands): New function to expand an operand pair.
7883 (expand_expr): Call expand_operands whenever we need to expand both
7884 operands of a binary operator.
7885 (do_store_flag): Likewise for operands of comparison operations.
7887 2003-09-07 Roger Sayle <roger@eyesopen.com>
7889 * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7890 (-A)*B if we care about sign-dependent rounding.
7892 2003-09-07 Gabriel Dos Reis <gcc@integrable-solutions.net>
7894 * c-pretty-print.h (pp_c_left_brace): Declare.
7895 (pp_c_right_brace): Likewise.
7896 * c-pretty-print.c (pp_c_left_brace): Now a function
7897 (pp_c_right_brace): Likewise.
7899 2003-09-07 Jan Hubicka <jh@suse.cz>
7901 * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7903 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
7905 * diagnostic.c (warn_deprecated_use): Move to toplev.c
7907 2003-09-07 Gabriel Dos Reis <gdr@integrable-solutions.net>
7909 * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7910 * Makefile.in (langhooks.o): Depend on diagnostic.h
7912 2003-09-06 James E Wilson <wilson@tuliptree.org>
7914 * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7917 2003-09-07 Kelley Cook <kelleycook@wideopenwest.com>
7919 * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7920 and use it throughout.
7922 2003-09-07 Jan Hubicka <jh@suse.cz>
7924 * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7926 * toplev.c (rest_of_decl_compilation): Do not finalize external
7929 * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7931 (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7933 2003-09-06 Jan Hubicka <jh@suse.cz>
7936 * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7939 * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7941 2003-09-06 Gabriel Dos Reis <gdr@integrable-solutions.net>
7943 * diagnostic.c (announce_function): Move to toplev.c.
7945 2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7947 * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7950 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7952 * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7953 when gc checking is enabled.
7955 2003-09-06 Steven Bosscher <steven@gcc.gnu.org>
7958 * c-decl.c (c_expand_body_1): Move return warning from here...
7959 (finish_function): ...to here.
7961 2003-09-05 Geoffrey Keating <geoffk@apple.com>
7963 * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7964 a subset of the input class.
7966 2003-09-05 Kazu Hirata <kazu@cs.umass.edu>
7968 * config/i860/i860.c: Follow spelling conventions.
7969 * config/i860/i860.h: Likewise.
7970 * config/sh/sh.h: Likewise.
7972 2003-09-05 Nitin Yewale <NitinY@KPITCummins.com>
7974 * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7975 * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7976 * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7978 2003-09-05 Roger Sayle <roger@eyesopen.com>
7979 Richard Henderson <rth@redhat.com>
7981 PR optimization/1823
7982 * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7983 multiplication to implement division by constant integer.
7985 2003-09-05 Jan Hubicka <jh@suse.cz>
7987 * opts.c (decode_options): Enable unit-at-a-time at -O2.
7988 * params.def (max-inline-insns-single): Set to 500
7989 (max-inline-insns-auto): Set to 150
7990 * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7992 2003-09-04 Richard Henderson <rth@redhat.com>
7994 * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7995 (cgraph_mark_needed_node): Remove needed argument.
7996 * cgraph.h: Update to match.
7997 * cgraphunit.c (decide_is_function_needed): Split out from ...
7998 (cgraph_finalize_function): Reorg. Avoid deferred_inline_function
7999 if we generated the function.
8000 (record_call_1): Update for cgraph_mark_reachable_node.
8001 * varasm.c (mark_referenced): Likewise.
8002 * objc/objc-act.c (mark_referenced_methods): Likewise.
8004 2003-09-04 DJ Delorie <dj@redhat.com>
8006 * targhooks.c: Add comment explaining the migration process.
8008 2003-09-04 Eric Christopher <echristo@redhat.com>
8010 * config/frv/t-frv: Fix path for frv-abi.h.
8011 * config/frv/frv-asm.h: Fix string concatenation.
8013 2003-09-04 DJ Delorie <dj@redhat.com>
8015 * builtins.c (apply_args_size): Guard against a NULL cfun.
8016 (expand_builtin_apply_args_1): Likewise.
8017 (expand_builtin_apply): Likewise.
8018 Fixes PR bootstrap/12172.
8020 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8022 * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8023 assembler supports Sun syntax for cmov.
8024 * configure: Regenerate.
8025 * config.in: Likewise.
8026 * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8027 HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8028 * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8029 Fixes PR target/12101.
8031 2003-09-04 Matt Austern <austern@apple.com>
8033 * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8034 with verbosity 0, instead of DECL_NAME, for human-readable string.
8036 2003-09-04 Eric Christopher <echristo@redhat.com>
8038 * targhooks.c (default_return_in_memory): Allow
8041 2003-09-04 Eric Christopher <echristo@redhat.com>
8043 * targhooks.c (default_return_in_memory): Fix typo
8046 2003-09-04 Eric Christopher <echristo@redhat.com>
8048 * targhooks.c (default_return_in_memory): Fix default
8051 2003-09-04 Bernardo Innocenti <bernie@develer.com>
8053 * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8055 * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8056 enable coff-only code in m68k.c.
8058 2003-09-04 Nick Clifton <nickc@redhat.com>
8060 * config.gcc: Add v850e1 target. Allow --with-cpu to accept
8062 * config/v850/v850.h: Accept v850e1 as a default CPU.
8063 Accept -mv850e1 as a command line option.
8064 * doc/invoke.texi: Document new -mv850e1 command line switch.
8065 * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8068 2003-09-04 Nick Clifton <nickc@redhat.com>
8070 * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8071 * config/v850/t-v850: Only produce one extra multilib - for
8073 * config/v850/t-v850e: New file: Only produce one extra
8074 multilib - for the v850.
8076 2003-09-04 Jakub Jelinek <jakub@redhat.com>
8078 * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8079 * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8080 * unwind.h (_Unwind_GetBSP): New prototype.
8081 * libgcc-std.ver: Add empty GCC_3.3.2 version.
8082 * mkmap-symver.awk: For symbol versions with no exported symbols,
8083 don't put anything into version script, just change all symbol
8084 versions which inherit from it to inherit from its ancestor.
8086 2003-09-04 Eric Christopher <echristo@redhat.com>
8088 * config/mips/mips.c (mips_expand_prologue): Convert to
8089 calls.struct_value_rtx hook.
8090 (reg_or_const_float_1_operand): New.
8091 * config/mips/mips.h: Update Comments.
8092 (mips_arg): Add reg_or_const_float_1_operand.
8093 * config/mips/mips.md (divdf3); Convert to expander.
8095 (*divdf3): New pattern.
8098 2003-09-04 Jan Hubicka <jh@suse.cz>
8100 * toplev.c (wrapup_global_declarations): Fix final pass in
8103 2003-09-04 Mark Mitchell <mark@codesourcery.com>
8105 * doc/extend.texi: Document removal of cast-as-lvalue extension in
8108 2003-09-04 Nicolas Roche <roche@act-europe.fr>
8110 * gcc.c (process_command): Fix typo.
8112 2003-09-03 David O'Brien <obrien@FreeBSD.org>
8115 * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8116 (PTRDIFF_TYPE): Likewise.
8117 (WCHAR_TYPE_SIZE): Likewise.
8119 2003-09-03 DJ Delorie <dj@redhat.com>
8121 * targhooks.c: New file.
8122 * targhooks.h: New file.
8123 * Makefile.in: Add targhooks.o support.
8124 (function.o): Depend on$(TARGET_H).
8126 (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8127 * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8128 expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8129 (expand_builtin_saveregs): Convert to
8130 calls.expand_builtin_saveregs hook.
8131 * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8132 here, instead of ...
8133 (get_parm_info) ... here.
8134 (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8136 (finish_function): Handle calls.promote_prototypes hook here too.
8137 * c-typeck.c (convert_arguments): Convert to
8138 calls.promote_prototypes hook.
8139 (c_convert_parm_for_inlining): Likewise.
8140 * calls.c (initialize_argument_information): Convert to
8141 calls.promote_function_args hook.
8142 (expand_call): Convert to calls.struct_value_rtx,
8143 calls.strict_argument_naming,
8144 calls.pretend_outgoing_varargs_named, and
8145 calls.promote_function_return hooks. Pass fndecl to
8146 aggregate_value_p. Initialize CUMULATIVE_ARGS before calling
8147 hooks, so they can use that.
8148 (emit_library_call_value_1): Likewise.
8149 * combine.c (setup_incoming_promotions): Convert to
8150 calls.promote_function_args hook.
8151 * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8152 * expr.c (expand_assignment): Pass call to aggregate_value_p.
8153 (expand_expr): Likewise.
8154 * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8155 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8156 RETURN_IN_MEMORY macro defaults.
8157 * final.c (profile_function): Convert to calls.struct_value_rtx
8159 * function.c (aggregate_value_p): Accept function type tree as
8160 second parameter; try to deduce fntype from it. Convert to
8161 calls.return_in_memory hook.
8162 (assign_parms): Convert to calls.setup_incoming_varargs,
8163 calls.strict_argument_naming, calls.promote_function_args,
8164 calls.pretend_outgoing_varargs_named hooks. Pass fndecl to
8166 (expand_function_start): Likewise. Convert to
8167 calls.struct_value_rtx hook.
8168 (expand_function_end): Convert to calls.promote_function_return hook.
8169 (allocate_struct_function): Pass fndecl to aggregate_value_p.
8170 * hard-reg-set.h: Update comments to new hook names.
8171 * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8172 * reg-stack.c (stack_result): Likewise.
8173 * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8174 * stmt.c (expand_value_return): Convert to
8175 calls.promote_function_return hook.
8176 * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8177 TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8178 TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8179 TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8180 TARGET_STRICT_ARGUMENT_NAMING,
8181 TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8182 * target.h: Likewise.
8183 * tree.h (aggregate_value_p): Also takes a tree to deduce function
8184 attributes from (for target hooks).
8185 * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8186 PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8187 STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8188 EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8189 STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8192 * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8193 to aggregate_value_p.
8194 * config/arm/arm.c (arm_init_cumulative_args,
8195 arm_output_mi_thunk): Likewise.
8196 * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8198 * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8199 mips_can_use_return_insn): Likewise.
8200 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8201 * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8202 * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8204 * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8205 function to aggregate_value_p.
8206 * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8209 * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8210 (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8211 sh_function_arg_advance, sh_pass_in_reg_p): New. * config/sh/sh.c
8212 (sh_handle_renesas_attribute, sh_promote_prototypes,
8213 sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8214 sh_setup_incoming_varargs, sh_strict_argument_naming,
8215 sh_pretend_outgoing_varargs_named): New decls.
8216 (targetm): Add new hooks.
8217 (calc_live_regs): Save MACL and MACH if the function has the
8219 (sh_expand_prologue): Support renesas attribute.
8220 (sh_builtin_saveregs): Make static.
8221 (sh_build_va_list): Support renesas attribute.
8222 (sh_va_start): Likewise.
8223 (sh_va_arg): Likewise.
8224 (sh_promote_prototypes): New.
8225 (sh_function_arg): New, moved from sh.h. Support renesas
8227 (sh_function_arg_advance): Likewise.
8228 (sh_return_in_memory): Likewise.
8229 (sh_strict_argument_naming): Likewise.
8230 (sh_pretend_outgoing_varargs_named): Likewise.
8231 (sh_struct_value_rtx): New.
8232 (sh_attribute): Add renesas attribute.
8233 (sh_handle_renesas_attribute): New.
8234 (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8235 (sh_ms_bitfield_layout_p): Support renesas attribute also.
8236 (sh_output_mi_thunk): Pass function to aggregate_value_p. *
8237 config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8239 (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8241 (sh_args): Add renesas_abi flag.
8242 (INIT_CUMULATIVE_ARGS): Set it. Pass fndecl to aggregate_value_p.
8243 (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8244 (PASS_IN_REG_P): Support renesas attribute. Pass DF and TF on the
8245 stack for the renesas abi.
8246 (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8247 SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8248 PROMOTE_PROTOTYPES): Moved to sh.c. * config/sh/sh.md (call): Set
8249 call cookie to indicate renesas calls.
8251 2003-09-03 Mostafa Hagog <mustafa@il.ibm.com>
8253 * gcse.c (replace_one_set): New function.
8254 (pre_insert_copy_insn): Change the order of copying
8255 to make copy propagation discover additional PRE opportunities.
8257 2003-09-03 Roger Sayle <roger@eyesopen.com>
8259 PR optimization/11700.
8260 * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8261 of a hard register is representable before trying to simplify it
8262 using subreg_hard_regno.
8264 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8266 * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8267 * configure: Regenerate.
8269 2003-09-04 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8271 * intl.h (N_): Remove parentheses.
8273 2003-09-03 Bernardo Innocenti <bernie@develer.com>
8275 * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8276 * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8277 definition and code blocks compiled when not defined.
8278 * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8279 * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8280 * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8281 * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8283 2003-09-03 Jeff Sturm <jsturm@one-point.com>
8285 * cgraphunit.c (visited_nodes): New static variable.
8286 (record_call_1): Use walk_tree with visited_nodes.
8287 (cgraph_create_edges): Use walk_tree with visited_nodes.
8288 Setup/teardown visited_nodes hashtable.
8290 2003-09-03 Roger Sayle <roger@eyesopen.com>
8292 * toplev.c (flag_rounding_math): New global variable.
8293 (f_options): Add to the list of language independent options.
8294 * flags.h (flag_rounding_math): Prototype here.
8295 (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8296 * common.opt (frounding-math): New common command line option.
8297 * opts.c (common_handle_option): Handle OPT_frounding_math.
8298 (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8300 * doc/invoke.texi: Document this new command line option.
8302 2003-09-03 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
8304 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8306 2003-09-03 Jan Hubicka <jh@suse.cz>
8308 * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8309 * c-decl.c (finish_function): Kill arguments, always use cgraph path.
8310 * c-objc-common.c: Kill include of gt-c-objc-common.h
8311 (expand_deferred_fns, deffer_fn): Kill function.
8312 (deferred_fns): Kill variable.
8313 (finish_cdtor): Update finish_function call.
8314 (c_objc_common_finish_file): Always call cgraph code.
8315 * c-parse.c: Regenerate.
8316 * c-parse.y: Regenerate.
8317 * c-tree.h (finish_function): Update prototype.
8318 * objc-acct.c (build_module_descriptor, finish_method_def):
8319 Update call of finish_function.
8320 * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8322 (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8323 function and assemble it if needed.
8324 (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8326 (cgraph_optimize): Likewise.
8327 (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8328 even when it has no inline callees.
8329 * c-parse.in: Update calls to finish_function.
8331 2003-09-03 Nick Clifton <nickc@redhat.com>
8333 * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8334 Use #error to generate the message if TARGET_DEFAULT is not
8337 2003-09-03 Richard Sandiford <rsandifo@redhat.com>
8339 * config/mips/mips.h (MASK_UNUSED1): Remove.
8340 (MASK_XGOT, TARGET_XGOT): Define.
8341 (TARGET_SWITCHES): Add an entry for -mxgot.
8342 (ASM_SPEC): Map -mxgot to -xgot.
8343 * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8344 whether we're using a big-GOT sequences.
8345 (mips_legitimize_const_move, mips_expand_call): Likewise.
8346 (override_options): Revert 2003-01-09 change.
8347 * doc/invoke.texi: Document -mxgot.
8349 2003-09-02 Jason Merrill <jason@redhat.com>
8351 * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8352 * config/sparc/sol2.h: Not here.
8354 2003-09-02 Roger Sayle <roger@eyesopen.com>
8356 * expr.c (expand_expr): The code following both_summands performs
8357 the same task as simplify_gen_binary. Replace all gotos to
8358 both_summands with a call to simplify_gen_binary and delete the
8361 2003-09-02 Jason Merrill <jason@redhat.com>
8364 * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8366 2003-09-02 Jeff Sturm <jsturm@one-point.com>
8368 * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8369 (cgraph_optimize_function): Set current_function_decl to the
8370 fndecl we're integrating from.
8372 2003-09-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8374 * builtins.def: Break out _Complex math functions into their
8377 2003-09-02 Andreas Jaeger <aj@suse.de>
8379 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8381 2003-09-02 Josef Zlomek <zlomekj@suse.cz>
8383 * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8384 finding the note again.
8386 2003-09-02 Nathanael Nerode <neroden@gcc.gnu.org>
8388 * config.gcc: Remove host-specific rewrites of target_alias.
8390 2003-09-01 Mark Mitchell <mark@codesourcery.com>
8392 * Makefile.in (genprogs): Fix typo.
8394 * Makefile.in (gencheck.o): Remove build commands.
8395 (dummy-conditions.o): Likewise.
8396 (read-rtl.o): Likewise.
8397 (gensupport.o): Likewise.
8398 (genconfig$(build_exeext)): Remove rule.
8399 (genconfig.o): Remove build commands.
8400 (genflags$(build_exeext)): Remove rule.
8401 (genflags.o): Remove build commands.
8402 (gencodes$(build_exeext)): Remove rule.
8403 (gencodes.o): Remove build commands.
8404 (genconstants.o): Remove build commands.
8405 (genemit$(build_exeext)): Remove rule.
8406 (genemit.o): Remove build commands.
8407 (genrecog$(build_exeext)): Remove rule.
8408 (genrecog.o): Remove build commands.
8409 (genextract$(build_exeext)): Remove rule.
8410 (genextract.o): Remove build commands.
8411 (genpeep$(build_exeext)): Remove rule.
8412 (genpeep.o): Remove build commands.
8413 (genattr$(build_exeext)): Remove rule.
8414 (genattr.o): Remove build commands.
8415 (genprognames): New variable.
8416 (genprogs): Likewise.
8417 (genobjs): Likewise.
8418 (genprogs): New rule.
8419 (genobjs): Likewise.
8420 (genattrtab.o): Remove build commands.
8421 (genautomata.o): Likewise.
8422 (genoutput$(build_exeext)): Remove rule.
8423 (genoutput.o): Remove build commands.
8424 (gengenrtl.o): Likewise.
8425 (genpreds.o): Likewise.
8426 (gengtype.o): Likewise.
8427 (genconditions.o): Likewise.
8428 (gen-protos.o): Likewise.
8430 (fix-header.o): Likewise.
8431 (scan-decls.o): Likewise.
8432 (check-g++): Combine with other check targets.
8433 (check-gcc): Likewise.
8434 (check-g77): Likewise.
8435 (check-objc): Likewise.
8437 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8439 * config.gcc: Remove host-specific stuff which is unused here
8440 since the introduction of config.host.
8442 * doc/fragments.texi: Mention config.host.
8443 * doc/sourcebuild.texi: Mention config.host. Give brief descriptions
8444 of config.build, config.host, and config.gcc.
8446 2003-09-01 Zack Weinberg <zack@codesourcery.com>
8448 * c-decl.c (pushdecl): Don't put variables on
8449 C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8452 2003-09-01 Nathanael Nerode <neroden@gcc.gnu.org>
8454 * config.host: New file.
8455 * config.gcc: Remove some host-specific stuff and some
8456 logic needed only for repeated invocation.
8457 * configure.in: Use config.host.
8458 * configure: Regenerate.
8460 2003-09-01 Josef Zlomek <zlomekj@suse.cz>
8462 * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8463 * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8464 * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8465 (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8466 * tree.def (BIT_ANDTC_EXPR): Kill.
8468 2003-08-31 Nathanael Nerode <neroden@gcc.gnu.org>
8470 * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8471 * configure: Regenerate.
8473 * config.gcc: Remove references to install_headers_dir, now unused
8474 since introduction of config.build.
8475 * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8477 * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8480 * config.build: New file.
8481 * config.gcc: Remove some build-specific stuff.
8482 * configure.in: Use config.build.
8483 * configure: Regnerate.
8485 2003-08-31 Steven Bosscher <steven@gcc.gnu.org>
8486 Roger Sayle <roger@eyesopen.com>
8489 * stmt.c (expand_end_case_type): Only use jump tables for dense
8490 switch statements when optimizing for size.
8492 2003-08-31 Olivier Hainque <hainque@act-europe.fr>
8494 * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8495 the != 0 case, which ensures pending stack adjustments are flushed.
8497 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8499 * configure.frag: Delete file.
8500 * configure.in: Rename the substitution variables
8501 dep_host_xmake_file and dep_tmake_file to xmake_file and
8502 tmake_file respectively. Do not expand $srcdir in the
8503 value of these; leave that for Make. Introduce a new
8504 substitution varaible, all_lang_makefrags, which lists
8505 subdirectory Make-lang.in files; exclude these from
8506 all_lang_makefiles, which is now only for subdirectory
8507 outputs. Do not invoke configure.frag. Do not set nor
8508 AC_SUBST_FILE target_overrides, host_overrides, or
8509 language_fragments. Create build subdirectories in
8510 config.status extra commands.
8511 * configure: Regenerate.
8512 * Makefile.in: Update substitutions to match changes to
8513 configure. Use include directives instead of @-insertions
8514 to read in host, target, and language fragments.
8515 (Makefile rule): Do not invoke configure.frag. Do not copy
8516 config.status to config.run before executing it. Set
8517 CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8519 (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8521 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8523 * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8524 * c-typeck.c (same_translation_unit_p): New function.
8525 (comptypes): Use it instead of flags parameter to identify
8526 structure types from different translation units.
8527 * c-decl.c (duplicate_decls): Always call comptypes with
8528 COMPTYPE_STRICT flags argument.
8529 (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8532 2003-08-30 Zack Weinberg <zack@codesourcery.com>
8534 * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8535 * c-decl.c (struct c_scope): Remove "incomplete" field.
8536 (pushdecl): Attach variables with incomplete types to
8537 the TYPE_MAIN_VARIANT of the incomplete type in question.
8538 (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8539 to complete, not at current_scope->incomplete. All such
8540 variables do need completion.
8542 2003-08-30 Richard Earnshaw <rearnsha@arm.com>
8543 Nicolas Pitre <nico@cam.org>
8545 * arm/lib1funcs.asm (RETCOND): Delete.
8546 (RETLDM): New assembler macro. Use it for returning with ldm/ldr.
8547 (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8548 (__ARM_ARCH__): Move here from ieee754-?f.S.
8549 (RET, RETc): Clean up definitions.
8550 (DIV_FUNC_END): Renamed from FUNC_END. All uses changed.
8551 (FUNC_END): New macro that marks the end of any function.
8552 (ARM_FUNC_START): New macro that allows an assembler routine to be
8553 implemented in ARM code even if a Thumb-only build.
8554 Unconditionally include ieee754-?f.S.
8555 * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8556 Mark ends of functions.
8557 Split into separate conditionally-compiled units.
8558 Use RETLDM to return from routines.
8559 * arm/ieee754-sf.S: Similarly.
8560 * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8561 Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8562 _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8563 _fixsfsi and _fixunssfsi.
8565 * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8566 multiplication underflows to zero.
8567 (__adddf3): Fix bug when using VFP ordering on little-endian
8569 (__fixdfsi): Use rrx to extract the carry into a register instead of
8570 MRS instruction. Optimize later use of result.
8571 * arm/ieee754-sf.S (__fixsfsi): Likewise.
8572 (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8574 2003-08-29 Richard Henderson <rth@redhat.com>
8576 * tree-optimize.c: New file.
8577 * Makefile.in (OBJS-archive): Add tree-optimize.o.
8578 (tree-optimize.o): New.
8579 * c-decl.c (store_parm_decls): Use allocate_struct_function.
8580 (finish_function): Don't free_after_parsing or free_after_compilation.
8581 (set_save_expr_context): Move to tree-optimize.c.
8582 (c_expand_body_1): Use tree_rest_of_compilation.
8583 * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8584 * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8585 * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8586 iterate until closure.
8587 * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8588 LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8589 (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8590 * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8591 * toplev.h (tree_rest_of_compilation): Declare it.
8593 2003-08-29 Richard Henderson <rth@redhat.com>
8595 * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8596 * integrate.c (save_for_inline): Set saved_for_inline.
8597 * c-semantics.c (genrtl_scope_stmt): Check it.
8598 * toplev.c (wrapup_global_declarations): Check it.
8599 (rest_of_handle_inlining): Set and check rtl_inline_init.
8600 (rest_of_compilation): Remove out of date comment.
8602 2003-08-29 Richard Henderson <rth@redhat.com>
8604 * function.c (allocate_struct_function): New, split out of ...
8605 (prepare_function_start, init_function_start): ... here.
8606 * expr.c (init_expr): Use ggc_alloc_cleared.
8607 * stmt.c (init_stmt_for_function): Likewise.
8608 * tree.h (allocate_struct_function): Declare.
8610 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8612 * config.gcc: Don't use negated character class in shell case
8615 2003-08-29 Richard Henderson <rth@redhat.com>
8617 * function.h (struct function): Move function_frequency and
8618 max_jumptable_ents before start of bit field members.
8620 2003-08-29 Richard Henderson <rth@redhat.com>
8622 * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8623 (fold_builtin_constant_p) ... not here.
8625 2003-08-29 Richard Henderson <rth@redhat.com>
8627 * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8628 * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8629 * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8631 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8633 * builtins.def: Fix typos.
8634 (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8635 (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8636 BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8637 BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8638 BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8640 * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8641 Use ATTR_MATHFN_FPROUNDING_ERRNO.
8643 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8645 * config.gcc (i386-*-vsta): Fix obvious bogosity.
8647 * fixinc/inclhack.def: Remove special cases for unsupported
8648 PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8649 * fixinc/fixincl.x: Regenerate.
8651 2003-08-29 Mark Mitchell <mark@codesourcery.com>
8653 * Makefile.in (cpp.info): Just state dependencies.
8654 (gcc.info): Likewise.
8655 (gccint.info): Likewise.
8656 (gccinstall.info): Likewise.
8657 (cppinternals.info): Likewise.
8658 (cpp.dvi): Likewise.
8659 (gcc.dvi): Likewise.
8660 (gccint.dvi): Likewise.
8661 (gccinstall.dvi): Likewise.
8662 (cppinternals.dvi): Likewise.
8668 (fsf-funding.7): Likewise.
8669 ($(objdir)/%.info): New pattern rule.
8672 2003-08-29 Kelley Cook <kelleycook@wideopenwest.com>
8674 * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8675 (restage2): Likewise.
8676 (restage3): Likewise.
8677 (restage4): Likewise.
8678 (restageprofile): Likewise.
8679 (restagefeedback): Likewise.
8680 (bubblestrap): Likewise.
8682 2003-08-29 Nathanael Nerode <neroden@gcc.gnu.org>
8684 * config.gcc: Narrow unsupported target match to avoid clobbering
8685 i?86-sequent-sysv4*.
8687 2003-08-29 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8689 * builtins.c (mathfn_built_in): Handle new math builtins.
8691 2003-08-28 Per Bothner <per@bothner.com>
8693 Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8694 * cpplex.c (_cpp_get_fresh_line): Check for null buffer.
8695 (_cpp_lex_buffer): Likewise.
8696 * cpptrad.c (_cpp_read_logical_line_trad): Likewise.
8698 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8700 * config/s390/s390.md ("*mulsi3_sign"): New insn.
8701 ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8702 ("mulsidi3"): ... this new insn.
8703 ("umulsidi3"): New insn.
8704 ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8705 mixed-mode matching constraints.
8706 ("udivmodsi4", "udivmoddisi3"): New insns.
8707 ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8709 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8711 * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8712 BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8713 BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8714 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8715 BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8716 BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8717 BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8718 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8719 BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8720 BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8721 BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8722 * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8723 BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8724 BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8725 BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8726 * tree.c: Assign new type_nodes.
8727 * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8728 TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8729 (float_ptr_type_node, double_ptr_type_node,
8730 long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8732 * doc/extend.texi: Document new builtins.
8734 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8736 * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8737 BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8739 * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8740 BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8741 BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8742 BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8743 BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8744 BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8745 BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8746 BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8747 BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8748 BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8750 * doc/extend.texi: Document new builtins.
8752 2003-08-28 Nathanael Nerode <neroden@gcc.gnu.org>
8754 * fixinc/mkfixinc.sh: Remove special case code for unsupported
8755 variants of i?86, powerpcle, and thumb.
8756 * fixinc/mkfixinc.sh: Remove special case code for unsupported
8757 arm and hppa variants.
8759 2003-08-28 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
8761 * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8762 BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8763 BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8764 BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8765 BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8766 BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8767 BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8768 BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8769 BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8770 BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8772 * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8773 BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8774 BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8775 BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8776 BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8777 BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8778 BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8779 BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8780 BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8781 BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8782 BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8783 BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8784 BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8785 BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8786 BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8787 BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8788 BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8789 BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8790 BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8791 BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8792 BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8793 BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8794 BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8795 BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8796 BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8797 BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8798 BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8799 BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8800 BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8801 BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8802 BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8804 * doc/extend.texi: Document new builtins.
8806 2003-08-28 Ulrich Weigand <uweigand@de.ibm.com>
8808 * config/s390/s390.c (legitmate_constant_p): Use LARL on
8809 zSeries machines even in 31-bit addressing mode.
8810 (legitimate_reload_constant_p): Likewise.
8811 (legitimize_pic_address): Likewise.
8812 (legitimize_tls_address): Likewise.
8813 (s390_split_branches): Likewise.
8814 (s390_dump_pool): Likewise.
8815 (s390_mainpool_finish): Likewise.
8816 (s390_chunkify_start): Likewise.
8817 (s390_select_rtx_section): Likewise.
8818 * config/s390/s390.md ("doloop_si"): Likewise.
8819 ("pool_start_31", "pool_end_31"): Likewise.
8820 ("pool_start_64", "pool_end_64"): Likewise.
8821 ("main_base_31_small", "main_base_31_large"): Likewise.
8822 ("main_base_64"): Likewise.
8823 ("reload_base_31", "reload_base_64"): Likewise.
8824 ("*movsi_larl"): New insn.
8825 ("cjump", "icjump"): Use long branches on zSeries machines.
8827 ("call"): Use BRASL on zSeries machines.
8828 ("call_value", "call_value_tls"): Likewise.
8829 ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8831 ("*bras", "*brasl", "*basr") ... these new insns.
8832 ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8833 "bas_31_r"): Remove and replace by ...
8834 ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8835 ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8836 "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8837 ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8838 ("*return_si", "*return_di"): Remove and replace by ...
8839 ("*return"): ... this new insn.
8840 ("rotlsi3"): Allow on zSeries machines.
8842 * config/s390/s390.c (legitimize_reload_constant_p): Use
8843 LL/LH type instructions in z/Architecture mode.
8844 * config/s390/s390.md ("*movsi_lli"): Likewise.
8845 ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8846 ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8847 ("*extendqisi2"): Use LB in z/Architecture mode.
8848 ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8849 z/Architecture mode.
8850 ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8853 * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8855 ("ptr_extend"): Allow only in 64-bit mode.
8857 2003-08-27 Daniel Jacobowitz <drow@mvista.com>
8859 * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8860 (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8862 (main): Only use standard_startfile_prefix if native.
8863 * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8865 2003-08-27 Per Bothner <pbothner@apple.com>
8867 * cpperror.c (print_location): Don't check for !pfile->buffer. That
8868 test fails following my 08-21 change, and it seems unnecessary anyway.
8869 (cpp_error): Likewise.
8871 2003-08-27 Jason Merrill <jason@redhat.com>
8873 * real.c (do_multiply): Initialize with memset.
8875 2003-08-27 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8877 * gcov.c (typedef struct arc_info): New field cs_count.
8878 (accumulate_line_counts): Find cycles correctly.
8880 2003-08-27 Ulrich Weigand <uweigand@de.ibm.com>
8882 * config/s390/s390.c (struct machine_function): Remove member
8884 (s390_optimize_prolog): Replace TEMP_REG argument with
8885 TEMP_USED and BASE_USED. Do not check get_pool_size ().
8886 (general_s_operand): Accept all immediates before reload if
8887 ALLOW_IMMEDIATE. If not ALLOW_IMMEDIATE, reject literal pool
8889 (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8890 (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8891 (s390_alloc_pool): New function.
8892 (s390_new_pool): Call it.
8893 (s390_dump_pool): Add REMOTE_LABEL argument.
8894 (s390_chunkify_start): Add BASE_REG argument. Do not check
8896 (s390_chunkify_finish): Add BASE_REG argument. Adapt
8897 s390_dump_pool call.
8898 (s390_pool_count, s390_nr_constants): Remove.
8899 (s390_output_constant_pool): Remove.
8900 (s390_mainpool_start): New function.
8901 (s390_mainpool_finish): New function.
8902 (s390_mainpool_cancel): New function.
8903 (s390_reorg): Implement main literal pool handling.
8904 (s390_emit_prologue): Emit main_pool placeholder instead of
8905 literal_pool_31 / literal_pool_64 insns.
8906 * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8907 (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8908 * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8909 ("main_base_31_small", "main_base_31_large"): New insns.
8910 ("main_base_64", "main_pool"): New insns.
8911 ("literal_pool_31", "literal_pool_64"): Remove.
8913 2003-08-27 Nathanael Nerode <neroden@gcc.gnu.org>
8915 * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8917 * fixinc/inclhack.def (undefine_null): Don't generate \r characters.
8919 * fixinc/fixincl.x: Regenerate.
8921 2003-08-27 Richard Earnshaw <rearnsha@arm.com>
8923 * lib1funcs.asm (L_ieee754_sp): New. Include ieee754-sf.S.
8924 (L_ieee754_dp): New. Include ieee754-df.S.
8925 * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8926 and compilation in apcs-26 mode.
8927 * arm/ieee754-df.S: Likewise.
8928 * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8929 (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8931 2003-08-27 Nicolas Pitre <nico@cam.org>
8933 * arm/ieee754-sf.S: New.
8934 * arm/ieee754-df.S: New.
8936 2003-08-27 Jakub Jelinek <jakub@redhat.com>
8938 * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8939 and restore it if returning NULL.
8941 2003-08-27 Richard Sandiford <rsandifo@redhat.com>
8943 * calls.c (initialize_argument_information): If an argument has no
8944 stack space associated with it, and BLOCK_REG_PADDING is defined,
8945 use it to decide at which end the argument should be padded.
8946 * function.c (assign_parms): Allocate BLKmode stack slots.
8947 * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8948 (mips_pad_reg_upward): Declare.
8949 * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8950 (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8951 (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8952 (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8953 * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8954 (mips_expand_call): Remove code for generating structure shifts.
8955 (mips_arg_info): Don't set struct_p. Don't set fpr_p for non-float
8956 types unless using the EABI.
8957 (function_arg_advance): Don't generate shift instructions.
8958 (function_arg): Don't return them. Don't short-circuit the
8959 check for double structure chunks for DFmode arguments.
8960 (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8961 (mips_expand_prologue): Remove code to emit structure shifts.
8962 * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8963 structure passing (inet_ntoa, inet_lnaof, inet_netof). Update
8964 comments to say that only structure returns are a problem.
8966 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
8968 * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8969 Fix to match produced versions.
8970 * fixinc/inclhack.def (longlong_t): New disabled test, ported
8972 * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8974 * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8975 ported from fixinc.ptx.
8977 2003-08-26 Per Bothner <pbothner@apple.com>
8979 * cpplib.h (struct cpp_token): Change type of field line to fileline.
8980 (cpp_error_with_line): Use fileline for appropriate parameter.
8981 * cpphash.h (struct cpp_macro): Change type of field line to fileline.
8982 (struct cpp_reader): Likewise for fields line and directive_line.
8983 (_cpp_begin_message): Use fileline for appropriate parameter.
8984 * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8985 cpp_error): Use fileline for appropriate parameters and variables.
8986 (print_location): New local lin, since it is not a fileline.
8988 2003-08-26 Roger Sayle <roger@eyesopen.com>
8991 * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8992 (FLOAT_TYPE_P): Define in terms of these two new macros.
8993 * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8994 for complex floating point types.
8996 2003-08-26 Ulrich Weigand <uweigand@de.ibm.com>
8998 * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8999 * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9000 s390_output_pool_entry.
9002 2003-08-26 Nathanael Nerode <neroden@gcc.gnu.org>
9004 * fixinc/inclhack.def (svr4_preproc_lint_on,
9005 svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9006 fixes, ported from fixinc.svr4.
9008 2003-08-26 Mark Mitchell <mark@codesourcery.com>
9010 * doc/install.texi (Prerequisites): Mention GNU make requirement.
9012 * Makefile.in (AR_FOR_TARGET): Export it.
9013 (AR_CREATE_FOR_TARGET): Likewise.
9014 (AR_FLAGS_FOR_TARGET): Likewise.
9015 (AR_EXTRACT_FOR_TARGET): Likewise.
9017 (BUILD_PREFIX): Likewise.
9018 (BUILD_PREFIX_1): Likewise.
9019 (DESTDIR): Likewise.
9020 (GCC_FOR_TARGET): Likewise.
9021 (INCLUDES): Likewise.
9022 (INSTALL_DATA): Likewise.
9023 (LIB1ASMSRC): Likewise.
9024 (LIBGCC2_CFLAGS): Likewise.
9025 (MACHMODE_H): Likewise.
9026 (NM_FOR_TARGET): Likewise.
9027 (RANLIB_FOR_TARGET): Likewise.
9028 (libsubdir): Likewise.
9029 (slibdir): Likewise.
9030 (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9032 (libgcc.a): Don't pass them here.
9033 (stmp-multilib): Or here.
9034 (install-libgcc): Or here.
9035 (install-multilib): Or here.
9036 (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9037 (stage1_build): Or here.
9039 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9041 * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9042 "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9044 2003-08-26 Andreas Krebbel <krebbel1@de.ibm.com>
9046 * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9047 "*fmaddsf", "*fmsubsf"): New insns.
9049 2003-08-26 Roger Sayle <roger@eyesopen.com>
9051 * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9052 (C1*C2)/X when unsafe math optimizations are allowed.
9053 (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9054 math optimizations. Minor code clean-ups. Recursively call
9055 fold when constructing sub-expressions.
9057 2003-08-26 Roger Sayle <roger@eyesopen.com>
9059 * builtins.c (fold_builtin_bitop): New function to perform constant
9060 folding of ffs, clz, ctz, popcount and parity builtin functions
9061 and their long and long long variants (such as ffsl and ffsll).
9062 (fold_builtin): fold_builtin_bitop when appropriate.
9063 * simplify-rtx.c (simplify_unary_operation): Honor both
9064 CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9065 evaluating clz and ctz at compile-time, for operands wider
9068 2003-08-26 Nathan Sidwell <nathan@codesourcery.com>
9070 * builtins.c (build_function_call_expr): Don't set
9071 TREE_SIDE_EFFECTS here.
9072 * expr.c (emit_block_move_via_libcall): Likewise.
9073 (clear_storage_via_libcall): Likewise.
9074 * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9077 * gcse.c (is_too_expensive): New function.
9078 (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9080 2003-08-25 Zack Weinberg <zack@codesourcery.com>
9082 * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9083 commented-out logic to use DCE threads (if present), add
9084 support for POSIX threads.
9085 * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9086 #defines for -pthread. Add -lpthread to LIB_SPEC when
9087 -pthread. In both cases take -mt as a synonym for -pthread
9088 for acc compatibility.
9089 Define GTHREAD_USE_WEAK to 0.
9090 * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9091 Remove old logic for DCE threads from LIB_SPEC.
9092 * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9094 2003-08-25 Roger Sayle <roger@eyesopen.com>
9096 * builtins.c (expand_builtin_mathfn): Rearrange so that we only
9097 return 0 for invalid argument types. Instead drop through to a
9098 call of expand_call at the bottom of function. If op is SQRT,
9099 try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9101 2003-08-25 Richard Henderson <rth@redhat.com>
9103 * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9104 result when op0 is SImode.
9106 2003-08-25 Nathanael Nerode <neroden@twcny.rr.com>
9108 * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9110 * fixinc/fixincl.x: Regenerate.
9111 * fixinc/tests/base/sys/signal.h: Regenerate.
9113 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9115 * combine.c (simplify_comparison): Re-enable widening of comparisons
9116 with non-paradoxical subregs of non-REG expressions.
9118 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9120 * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9122 2003-08-25 Ulrich Weigand <uweigand@de.ibm.com>
9124 * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9126 2003-08-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
9128 * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9129 * c-pretty-print.h (c_pretty_printer): Now typedef to the
9130 structure. Be consistent with pretty-print.h abd cxx-pretty-print.h
9131 (struct c_pretty_print_info): Document. Add new fields.
9132 (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9133 (pp_direct_abstract_declarator): New macro.
9134 (pp_ptr_operator): Likewise.
9135 (pp_simple_type_specifier): Likewise.
9136 (pp_expression): Likewise.
9137 (pp_parameter_list): Rename from pp_parameter_declaration.
9138 * c-pretty-print.c (pp_c_whitespace): Now a function.
9139 (pp_c_left_paren): Likewise.
9140 (pp_c_right_paren): Likewise.
9141 (pp_c_dot): Likewise.
9142 (pp_c_ampersand): Likewise.
9143 (pp_c_arrow): Likewise.
9144 (pp_c_semicolon): Likewise.
9145 (pp_c_type_cast): New function.
9146 (pp_c_space_for_pointer_operator): Likewise.
9147 (pp_c_call_argument_list): Likewise.
9148 (pp_c_cv_qualifier): Adjust prototype.
9149 (pp_c_type_qualifier_list): Likewise.
9150 (pp_c_pointer): Likewise. Handle REFERENCE_TYPE here.
9151 (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9152 Adjust to follow standard grammar.
9153 (pp_c_specifier_qualifier_list): Adjusr prototype. Handle
9154 REFERENCE_TYPE. Tidy.
9155 (pp_c_parameter_type_list): Adjust prototype. Tidy.
9156 (pp_c_parameter_declaration): Remove.
9157 (pp_c_abstract_declarator): Adjust prototype.
9158 (pp_c_direct_abstract_declarator): Likewise.
9159 (pp_c_type_id): Likewise.
9160 (pp_c_storage_class_specifier): Likewise.
9161 (pp_c_function_specifier): Likewise.
9162 (pp_c_declaration_specifiers): Likewise.
9163 (pp_c_direct_declarator): Likewise.
9164 (pp_c_declarator): Likewise.
9165 (pp_c_declarator): Likewise.
9166 (pp_c_declaration): Likewise.
9167 (pp_c_attributes): Likewise. Tidy.
9168 (pp_c_function_definition): Adjust prototype.
9169 (pp_c_char): Likewise.
9170 (pp_c_string_literal): Likewise.
9171 (pp_c_integer_constant): Likewise.
9172 (pp_c_character_constant): Likewise.
9173 (pp_c_bool_constant): Likewise.
9174 (pp_c_enumeration_constant): Likewise.
9175 (pp_c_floating_constant): Likewise.
9176 (pp_c_constant): Likewise.
9177 (pp_c_identifier): Likewise.
9178 (pp_c_primary_expression): Likewise. Remove TARGET_EXPR case. Tidy.
9179 (pp_c_initializer): Adjust prototype.
9180 (pp_c_init_declarator): Likewise.
9181 (pp_c_initializer_list): Likewise.
9182 (pp_c_id_expression): Likewise.
9183 (pp_c_postfix_expression): Likewise.
9184 (pp_c_expression_list): Likewise.
9185 (pp_c_unary_expression): Likewise.
9186 (pp_c_cast_expression): Likewise.
9187 (pp_c_multiplicative_expression): Likewise.
9188 (pp_c_additive_expression): Likewise.
9189 (pp_c_shift_expression): Likewise.
9190 (pp_c_relational_expression): Likewise.
9191 (pp_c_equality_expression): Likewise.
9192 (pp_c_and_expression): Likewise.
9193 (pp_c_exclusive_or_expression): Likewise.
9194 (pp_c_inclusive_or_expression): Likewise.
9195 (pp_c_logical_and_expression): Likewise.
9196 (pp_c_logical_or_expression): Likewise.
9197 (pp_c_conditional_expression): Likewise.
9198 (pp_c_assignment_expression): Likewise.
9199 (pp_c_expression): Likewise. Tidy.
9200 (pp_c_statement): Likewise. Document.
9201 (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9203 * c-lang.c (c_initialize_diagnostics): Update.
9204 * c-common.h (strip_pointer_operator): Declare.
9205 * c-common.c (strip_pointer_operator): Define.
9207 2003-08-25 Mark Mitchell <mark@codesourcery.com>
9210 * tree.h (build_method_type_directly): Declare.
9211 * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9212 (vector_size_helper): Likewise.
9213 * tree.c (build_method_type_directly): New function.
9214 (build_method_type): Use it.
9216 2003-08-24 Richard Henderson <rth@redhat.com>
9218 * config/i386.i386.c (ix86_return_in_memory): Reformat. Return true
9219 for 16-byte vector modes if sse not enabled; warn for abi change.
9220 (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9222 2003-08-24 Kazu Hirata <kazu@cs.umass.edu>
9224 * rtlanal.c (may_trap_p): Simplify an integer comparison.
9226 2003-08-24 Nathanael Nerode <neroden@gcc.gnu.org>
9228 * fixinc/inclhack.def (AAB_svr4_replace_byteorder): Enhance
9229 comment. Enable for DYNIX/ptx systems (when they switch to
9230 regular fixincludes).
9231 * fixinc/fixincl.x: Regenerate.
9233 2003-08-23 Jason Eckhardt <jle@rice.edu>
9235 * config/i860/t-i860: New.
9236 * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9238 2003-08-23 Jakub Jelinek <jakub@redhat.com>
9240 * c-decl.c (pushdecl): Only put decls which finish_struct will do
9241 something about onto incomplete chain.
9242 (finish_struct): If not removing type from incomplete
9245 2003-08-20 Jan Hubicka <jh@suse.cz>
9248 * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9251 * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9252 const_0_to_15_operand, const_0_to_255_operand): New predicates.
9253 * i386.h (PREDICATE_CODES): Add these.
9254 * i386.c (pinsrw and pextrw patterns): Use them.
9257 * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9260 * expr.c (convert_modes): Deal properly with integer to vector
9261 constant conversion.
9264 * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9266 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9268 * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9269 * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9270 ("*movhi"): ... this.
9271 ("movqi", "*movqi"): Likewise.
9272 ("movqi_64"): Remove.
9273 ("*zero_extendhisi2_31"): Change predicate to s_operand.
9275 2003-08-23 Dale Johannesen <dalej@apple.com>
9276 * calls.c (emit_library_call_value_1): Fix obvious errors in
9277 arguments to emit_group_store.
9279 2003-08-23 Jason Eckhardt <jle@rice.edu>
9281 * calls.c (emit_library_call_value_1): Remove code related
9282 to LIBGCC_NEEDS_DOUBLE.
9283 * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9284 * doc/tm.texi: Likewise.
9285 * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9287 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9289 * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9291 2003-08-23 Richard Sandiford <rsandifo@redhat.com>
9293 * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9294 as well. Put memory references in the varargs alias set.
9295 (mips_expand_prologue): Remove varargs handling from here.
9297 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9299 * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9300 s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9301 s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9302 for function pointer calls.
9303 * config/s390/s390.md ("*negdi2_31"): Likewise.
9305 2003-08-23 Roger Sayle <roger@eyesopen.com>
9307 * combine.c (apply_distributive_law): Correct comment.
9309 2003-08-23 Jason Eckhardt <jle@rice.edu>
9311 * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9313 2003-08-22 Jason Eckhardt <jle@rice.edu>
9315 * config/i860/i860.c (i860_build_va_list): Create the va_decl
9316 declaration. Document the va_list structure.
9317 (i860_va_start): Initialize the va_list structure.
9318 (i860_va_arg): Rewrite completely.
9319 * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9320 * config/i860/varargs.asm: Do not allocate or initialize
9321 a va_list. Return the address of the register save area.
9323 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9325 * config/iq2000/iq2000.c: Fix comment typos.
9326 * config/iq2000/iq2000.md: Likewise.
9328 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9330 * config/iq2000/iq2000.c: Follow spelling conventions.
9331 * config/iq2000/iq2000.h: Likewise.
9332 * config/mn10300/mn10300.c: Likewise.
9334 2003-08-22 Jason Eckhardt <jle@rice.edu>
9336 * config/i860/i860.c (output_move_double): Don't set latehalf
9337 to zero for CONST_INT (since it could be, e.g., -1).
9339 * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9340 (MODSI3_LIBCALL): ...with this one.
9341 (UREMSI3_LIBCALL): Replace this macro...
9342 (UMODSI3_LIBCALL): ...with this one.
9344 2003-08-22 Jason Eckhardt <jle@rice.edu>
9346 * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9347 (output_delayed_branch): Remove prototype.
9348 (single_insn_src_p): Remove prototype.
9349 * config/i860/i860.c (single_insn_src_p): Remove function.
9350 (output_delayed_branch): Remove function.
9351 (output_delay_insn): Remove function.
9352 (va_start): Remove unconditional test and dead code, re-format.
9353 Fix coding style and spelling problems in various comments.
9354 * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9355 (blockage pattern): ...and use it here.
9356 (all define_peephole patterns related to delayed branches): Remove.
9357 Fix coding style and spelling problems in various comments.
9359 2003-08-22 Jason Eckhardt <jle@rice.edu>
9361 * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9362 Remove all uses of the PARAMS macro. Remove superflous prototypes.
9363 Convert all function definitions from traditional to ISO C90 syntax.
9364 * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9365 with 'GCC'. Remove all uses of the PARAMS macro.
9366 * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9367 * config/i860/i860.md: Likewise.
9368 * config/i860/sysv4.h: Likewise.
9369 * config/i860/varargs.asm: Likewise.
9371 2003-08-22 Jason Eckhardt <jle@rice.edu>
9373 * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9375 (tdesc_section): Add prototype.
9376 Update copyright dates.
9377 * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9378 (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9379 (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9380 (targetm): Likewise.
9381 (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9382 for '%d' where necessary.
9383 (i860_va_start): Remove 'stdarg_p' argument. Make conditional checks
9384 on 'stdarg_p' unconditional. Divide current_function_args_info.ints
9385 by UNITS_PER_WORD when referencing (likewise for .floats).
9386 (I860_SVR4_VARARGS): Rename...
9387 (I860_SVR4_VA_LIST): ...to this.
9388 Call build() with 't' rather than 'field'.
9389 (i860_rtx_costs): New function.
9390 (TARGET_RTX_COSTS): Define.
9391 (i860_internal_label): New function.
9392 (TARGET_ASM_INTERNAL_LABEL): Define.
9393 (i860_file_start): New function.
9394 Update copyright dates.
9395 * config/i860/i860.h (CPP_PREDEFINES): Remove.
9396 (TARGET_CPU_CPP_BUILTINS): Define.
9397 (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9398 (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9399 (ASM_FILE_START): Remove.
9400 (ASM_FILE_START_1): Remove.
9401 (ASM_GLOBALIZE_LABEL): Remove.
9402 (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9403 (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9404 with targetm.asm_out.internal_label.
9405 Update copyright dates.
9406 * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9407 (CPP_PREDEFINES): Remove.
9408 (TARGET_OS_CPP_BUILTINS): Define.
9409 (GLOBAL_ASM_OP): Define.
9410 (ASM_FILE_START): Remove.
9411 (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9412 (TARGET_ASM_FILE_START): Define.
9413 Update copyright dates.
9415 2003-08-22 Jason Eckhardt <jle@rice.edu>
9417 * gcc/config.gcc (i860-*-sysv4*): Add target.
9418 * config/i860/i860-protos.h: New.
9419 * config/i860/i860.c: New.
9420 * config/i860/i860.h: New.
9421 * config/i860/i860.md: New.
9422 * config/i860/sysv4.h: New.
9423 * config/i860/varargs.asm: New.
9424 * config/i860/x-sysv4: New.
9426 2003-08-22 Jason Eckhardt <jle@rice.edu>
9428 * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9429 Remove all uses of PARAMS macro.
9430 Convert all function definitions to ISO C90 syntax.
9431 * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9432 * config/pa/fptr.c: Likewise.
9433 * config/pa/lib2funcs.asm: Likewise.
9434 * config/pa/long_double.h: Likewise.
9435 * config/pa/milli64.S: Likewise.
9436 * config/pa/pa-64.h: Likewise.
9437 * config/pa/pa-hpux.h: Likewise.
9438 * config/pa/pa-hpux10.h: Likewise.
9439 * config/pa/pa-hpux11.h: Likewise.
9440 * config/pa/pa-linux.h: Likewise.
9441 * config/pa/pa-modes.def: Likewise.
9442 * config/pa/pa-osf.h: Likewise.
9443 * config/pa/pa-pro-end.h: Likewise.
9444 * config/pa/pa.md: Likewise.
9445 * config/pa/pa32-linux.h: Likewise.
9446 * config/pa/pa64-linux.h: Likewise.
9447 * config/pa/pa64-hpux.h: Likewise.
9448 * config/pa/pa64-regs.h: Likewise.
9449 * config/pa/quadlib.c: Likewise.
9450 * config/pa/rtems.h: Likewise.
9451 * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9452 all uses of the PARAMS macro.
9453 * config/pa/pa.h: Likewise.
9454 * config/pa/som.h: Likewise.
9456 * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9457 Remove all uses of PARAMS macro.
9458 Convert all function definitions to ISO C90 syntax.
9459 * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9460 Remove all uses of PARAMS macro.
9461 * config/iq2000.h: Remove all uses of PARAMS macro.
9462 * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9464 2003-08-23 Ulrich Weigand <uweigand@de.ibm.com>
9466 * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9467 * config/s390/s390.c (gen_consttable): Remove.
9468 (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9469 (s390_output_pool_entry): New function.
9470 * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9471 UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9472 UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9473 (UNSPECV_POOL_ENTRY): ... this new constant.
9474 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9475 "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9476 ("*pool_entry"): ... and replace by this new insn.
9477 ("literal_pool_31"): Do not emit anchor label if pool empty.
9479 * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9480 (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9481 (s390_fixup_clobbered_return_reg): Remove.
9482 (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9483 (s390_return_addr_rtx): Always retrieve return address from save area
9484 slot. Use save_return_addr_p to force slot to be filled.
9485 (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9487 2003-08-22 Chris Demetriou <cgd@broadcom.com>
9489 * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9490 (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9491 * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9492 around SB-1 errata if TARGET_FIX_SB1 is set.
9493 (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9494 * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9496 2003-08-22 Roger Sayle <roger@eyesopen.com>
9498 * hashtable.c (ht_expand): Avoid calculating rehash for the common
9499 case that the first probe hits an empty hash table slot.
9501 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9503 * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9505 2003-08-22 Mark Mitchell <mark@codesourcery.com>
9507 * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9508 (ptr_extend_plus_imm): ... this.
9509 * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9510 optimization in C++.
9511 (ia64_output_mi_thunk): Support ILP32 mode.
9513 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9515 * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9517 * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9519 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9521 * config/i386/i386.c (const_int_1_operand): Simplify an
9524 2003-08-22 Alan Modra <amodra@bigpond.net.au>
9526 * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9527 * config/rs6000/ppc64-fp.c: Likewise.
9529 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9531 * cfgcleanup.c: Fix comment typos.
9532 * emit-rtl.c: Likewise.
9533 * optabs.c: Likewise.
9534 * ra-build.c: Likewise.
9535 * rtlanal.c: Likewise.
9538 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9540 * c-decl.c: Fix comment formatting.
9541 * cfgrtl.c: Likewise.
9542 * combine.c: Likewise.
9543 * convert.c: Likewise.
9544 * dominance.c: Likewise.
9545 * dwarf2out.c: Likewise.
9546 * dwarfout.c: Likewise.
9547 * expmed.c: Likewise.
9548 * fold-const.c: Likewise.
9550 * genattrtab.c: Likewise.
9551 * ggc-common.c: Likewise.
9552 * mips-tfile.c: Likewise.
9553 * regmove.c: Likewise.
9555 2003-08-22 Kazu Hirata <kazu@cs.umass.edu>
9557 * builtin-attrs.def: Fix comment formatting.
9558 * c-pretty-print.c: Likewise.
9559 * diagnostic.h: Likewise.
9560 * langhooks.h: Likewise.
9561 * recog.c: Likewise.
9562 * simplify-rtx.c: Likewise.
9563 * tree.def: Likewise.
9565 2003-08-22 Bernardo Innocenti <bernie@develer.com>
9567 * config/m68k/m68k-protos.h: Convert to ISO C90.
9568 * config/m68k/m68k.c: Likewise.
9570 2003-08-21 Bernardo Innocenti <bernie@develer.com>
9571 Paul Dale <pauli@snapgear.com>
9572 Peter Barada <peter@baradas.org>
9574 * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9577 2003-08-21 Zack Weinberg <zack@codesourcery.com>
9579 * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9580 * config.gcc (*-*-openbsd): Don't set tm_file.
9581 (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9582 arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9583 h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9584 i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9585 i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9586 m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9587 m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9588 m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9589 mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9590 sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9591 xscale-*-coff): Use explicit and complete lists of target headers
9592 to include. Move definitions to tm_defines where appropriate.
9593 (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9594 not-yet-contributed configuration.
9596 * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9597 * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9598 * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9599 * config/i386/nto.h, config/iq2000/iq2000.h,
9600 * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9601 * config/m68k/linux.h, config/m68k/m68k-aout.h
9602 * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9603 * config/m68k/netbsd.h, config/m68k/openbsd.h
9604 * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9605 * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9606 * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9607 Remove includes of other target config headers, and
9608 definitions of macros moved to tm_defines lists. Add #undefs
9609 where now necessary to prevent redefinition warnings.
9611 * config/h8300/coff.h: New file split out of...
9612 * config/h8300/elf.h: ...here.
9613 * config/m68k/hp320base.h: New file split out of...
9614 * config/m68k/hp320.h: ...here.
9615 * config/rs6000/lynxbase.h: New file split out of...
9616 * config/rs6000/lynx.h: ...here.
9618 * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9619 * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9621 * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9622 * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9623 * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9624 Remove unnecessary #ifndef.
9625 * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9626 [under IN_LIBGCC2] with config/.
9628 2003-08-21 Per Bothner <pbothner@apple.com>
9630 * cppfiles.c (stack_file): Correctly pass return_at_eof parameter
9632 * cpplex.c (_cpp_get_fresh_line): Don't buffer->prev - handled
9633 by return_at_eof check. Always call _cpp_pop_buffer at end.
9635 2003-08-21 Kazu Hirata <kazu@cs.umass.edu>
9638 * config/h8300/h8300.md (two anonymous patterns): Remove.
9640 2003-08-21 Richard Sandiford <rsandifo@redhat.com>
9642 * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9643 * config/mips/mips.c (function_arg_pass_by_reference): Never return
9646 2003-08-21 Josef Zlomek <zlomekj@suse.cz>
9648 * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9649 and similarly in (A | C) == D where C & ~D != 0.
9651 2003-08-20 Geoffrey Keating <geoffk@apple.com>
9654 * configure.in: When testing with_libs and with_headers, treat
9655 'no' as unset. Based on a patch by Dan Kegel <dank@kegel.com>.
9656 * configure: Regenerate.
9658 2003-08-20 Peter Barada <peter@baradas.org>
9660 * longlong.h (umul_ppmm): Add ColdFire support.
9662 2003-08-20 Peter Barada <peter@baradas.org>
9663 Bernardo Innocenti <bernie@develer.com>
9665 * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9666 * config/m68k/m68k.h: Likewise.
9667 * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9668 * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9669 * config/m68k/linux.h: Likewise.
9670 * config/m68k/m68k.c: Likewise.
9671 * config/m68k/m68k.md: Likewise.
9672 * config/m68k/m68kelf.h: Likewise.
9673 * config/m68k/netbsd-elf.h: Likewise.
9674 * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9676 2003-08-20 Bernardo Innocenti <bernie@develer.com>
9678 * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9679 * config/m68k/m68k.md: Likewise.
9681 2003-08-20 Mark Mitchell <mark@codesourcery.com>
9685 2003-08-19 Mark Mitchell <mark@codesourcery.com>
9686 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9687 types with precisions other than those given by native machine
9690 2003-08-20 Gunther Nikl <gni@gecko.de>
9692 * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9693 selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9694 * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9695 * config/m68k/m68k.md (anonymous define_insn): Likewise
9696 * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9697 * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9698 code selected by NO_ASM_FMOVECR
9700 2003-08-20 Gunther Nikl <gni@gecko.de>
9702 * config/m68k/m68k.c (output_move_const_into_data_reg,
9703 output_move_himode): unify MOTOROLA/MIT handling of moveq
9704 * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9707 2003-08-20 Gunther Nikl <gni@gecko.de>
9709 * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9711 * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9712 HOST_WIDE_INT_PRINT_DEC with %wd
9714 2003-08-20 Loren James Rittle <ljrittle@acm.org>
9716 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9719 2003-08-20 Roger Sayle <roger@eyesopen.com>
9722 * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9723 operands before calling tree_int_cst_lt when performing associative
9726 2003-08-20 Jason Merrill <jason@redhat.com>
9728 * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9729 (EXPR_CHECK): Don't check for 'r' or 's' if we're
9730 checking IS_EXPR_CODE_CLASS.
9731 * calls.c (calls_function_1): Likewise.
9732 * fold-const.c (fold): Likewise.
9733 * tree.c (iterative_hash_expr): Likewise.
9734 * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9736 2003-08-20 Gunther Nikl <gni@gecko.de>
9738 * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9739 depending on MOTOROLA_BSR
9740 * config/m68k/m68k.md (anonymous define_insn): Likewise
9742 2003-08-20 Jason Merrill <jason@redhat.com>
9744 * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9745 (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9746 fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9747 * dojump.c (do_jump): Likewise.
9748 * fold-const.c (operand_equal_p, fold): Likewise.
9749 (tree_expr_nonnegative_p): Likewise.
9751 * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9752 TYPE_USER_ALIGN for FIELD_DECLs.
9754 * attribs.c (decl_attributes): Rebuild the function pointer type after
9755 changing the target type.
9756 * tree.c (get_qualified_type): Also check that the attributes match.
9758 2003-08-19 Matt Kraai <kraai@alumni.cmu.edu>
9760 * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9761 * objc/config-lang.in (stagestuff): ... to here.
9763 2003-08-19 Mark Mitchell <mark@codesourcery.com>
9766 * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9767 NOP_EXPR) when necessary.
9768 * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9769 types with precisions other than those given by native machine
9772 2003-08-19 Geoffrey Keating <geoffk@apple.com>
9774 * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9775 because some macro is defined.
9777 * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9779 * config/i386/darwin.h (ASM_SPEC): New.
9780 (SUBTARGET_EXTRA_SPECS): New.
9781 * config/rs6000/darwin.h (ASM_SPEC): New.
9782 (SUBTARGET_EXTRA_SPECS): New.
9783 * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9784 a cross-compiler between two different processors on Darwin.
9785 * configure: Regenerate.
9787 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9789 * builtins.c: Fix comment typos.
9790 * c-common.c: Likewise.
9791 * c-decl.c: Likewise.
9792 * c-pretty-print.c: Likewise.
9793 * cfgbuild.c: Likewise.
9794 * cfglayout.c: Likewise.
9795 * cfgloopanal.c: Likewise.
9796 * cgraphunit.c: Likewise.
9797 * cppfiles.c: Likewise.
9798 * dwarfout.c: Likewise.
9800 * fold-const.c: Likewise.
9802 * ggc-page.c: Likewise.
9803 * haifa-sched.c: Likewise.
9804 * pretty-print.c: Likewise.
9807 * value-prof.c: Likewise.
9809 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9811 * c-decl.c: Follow spelling conventions.
9812 * cppfiles.c: Likewise.
9814 2003-08-19 Kazu Hirata <kazu@cs.umass.edu>
9816 * c-common.c: Fix comment formatting.
9817 * c-common.h: Likewise.
9818 * c-decl.c: Likewise.
9819 * cppinit.c: Likewise.
9820 * cpplib.h: Likewise.
9821 * emit-rtl.c: Likewise.
9822 * input.h: Likewise.
9823 * line-map.h: Likewise.
9826 * simplify-rtx.c: Likewise.
9828 2003-08-19 Daniel Jacobowitz <drow@mvista.com>
9830 * unwind-c.c: Add libgcc-style exception.
9831 * unwind-dw2.c: Likewise.
9832 * unwind-pe.h: Likewise.
9833 * unwind-sjlj.c: Likewise.
9834 * unwind.inc: Likewise.
9836 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
9838 PR c/5582 PR c++/10538
9839 * langhooks-def.h (lhd_decl_uninit): Declare.
9840 (LANG_HOOKS_DECL_UNINIT): New macro.
9841 (LANG_HOOKS_INITIALIZER): Adjust.
9842 * langhooks.h (struct lang_hooks): Add new field
9844 * langhooks.c (lhd_decl_uninit): Define.
9845 * c-common.c (c_decl_uninit_1): New function.
9846 (c_decl_uninit): New function.
9847 (warn_init_self): Define.
9848 * c-common.h (c_decl_uninit): Declare.
9849 (warn_init_self): Declare.
9850 * c.opt: Introduce -Winit-self.
9851 * c-opts.c (c_common_handle_options): Set warn_init_self.
9852 * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9853 * objc/objc-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9854 * function.c (uninitialized_vars_warning): Call the language hook.
9855 * doc/invoke.texi: Document -Winit-self.
9857 2003-08-19 Chris Demetriou <cgd@broadcom.com>
9859 * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9860 to use better predicates and constraints. Define new
9861 instruction to handle "trap_if" with DI-mode arguments.
9862 (conditional_trap): FAIL if trap code is not 0.
9864 2003-08-19 Andrew Pinski <pinskia@physics.uc.edu>
9866 * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9867 strstr with $pb to a strcompare with "<pic base>"
9868 (ix86_output_addr_diff_elt): Output the real pic base.
9870 2003-08-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
9872 * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9873 (LANG_HOOKS_INITIALIZER): Correct.
9874 * c-lang.c: Likewise.
9876 2003-08-19 Jan Hubicka <jh@suse.cz>
9878 * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9879 (cgraph_varpool_mark_needed_node): Likewise.
9880 * cgraph.h (notice_global_symbol): Declare
9881 * varasm.c (notice_global_symbol): Break out from ...
9882 (assemble_start_function): ... here; update for variables.
9883 (assemble_variable): Use notice_global_symbol.
9885 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
9887 * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9888 expect SFmode and DFmode arguments to be passed in FPRs,
9889 regardless of the underlying type.
9891 2003-08-19 Richard Sandiford <rsandifo@redhat.com>
9894 * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9895 (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9897 2003-08-18 Matt Kraai <kraai@alumni.cmu.edu>
9900 * c-typeck.c (set_init_index): Check for negative index.
9902 2003-08-18 Bob Wilson <bob.wilson@acm.org>
9904 * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9906 * config/xtensa/crtn.asm (_init, _fini): Likewise.
9907 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9908 __umodsi3, __modsi3): Likewise.
9909 * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9912 2003-08-18 Aldy Hernandez <aldyh@redhat.com>
9914 * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9916 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9918 * config/mips/mips.md: Quote C code in braces. Remove use of
9919 fake const0_rtx operands. Remove double backslashes. Use \;.
9920 Remove workarounds for bogus warnings.
9922 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9924 * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9925 (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9926 rather than TARGET_MIPS4300.
9927 (mulsf3_internal, mulsf3_r4300): Likewise.
9929 2003-08-18 Richard Sandiford <rsandifo@redhat.com>
9931 * config/mips/mips.md: Renumber unspecs. Clean up comments.
9933 2003-08-17 Roger Sayle <roger@eyesopen.com>
9935 * simplify-rtx.c (associative_constant_p): New function to test
9936 whether an RTX expression is an immediate constant.
9937 (simplify_associative_operation): New function to perform some
9938 reassociation optimizations of associative binary expressions.
9939 (simplify_binary_operation): Use simplify_associative_operation
9940 to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9941 Floating point expressions are only reassociated when unsafe
9942 math optimizations are permitted.
9944 2003-08-17 Andreas Jaeger <aj@suse.de>
9946 * config/alpha/alpha.md: Remove usage of PARAMS.
9948 * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9949 * config/i386/i386-interix.h: Likewise.
9950 * config/i386/winnt.c: Likewise.
9951 * config/i386/cygming.h: Likewise.
9952 * config/i386/cygwin2.c: Likewise.
9953 * config/darwin.c: Likewise.
9954 * config/darwin-c.c: Likewise.
9955 * config/darwin-protos.h: Likewise.
9956 * config/darwin.h: Likewise.
9957 * config/s390/s390-protos.h: Likewise.
9958 * config/s390/s390.c: Likewise.
9959 * config/ia64/ia64.c: Likewse
9960 * config/ia64/ia64-protos.h: Likewise.
9961 * config/ia64/ia64-c.c: Likewise.
9963 2003-08-16 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
9965 * config/sparc/sparc.c: Convert to ISO C.
9967 * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9968 * config/sparc/sparc.c: Likewise.
9970 2003-08-16 Nathan Sidwell <nathan@codesourcery.com>
9973 * stmt.c (expand_expr_stmt_value): Don't warn about any void
9976 2003-08-16 Jan Hubicka <jh@suse.cz>
9978 * i386.c (ix86_fntype_regparm): Rename from ...
9979 (ix86_function_regparm): ... this one; add fastcall and local
9981 (ix86_function_ok_for_sibcall): Update.
9982 (ix86_return_pops_args): Likewise.
9983 (init_cumulative_args): Likewise.
9984 (x86_can_output_mi_thunk): Likewise.
9985 (function_arg): Fix formating.
9986 (x86_this_parameter): Fix fastcall.
9987 (x86_output_mi_thunk): Likewise.
9989 * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9990 body as reachable; mark nested functions as needed too.
9991 (dump_cgraph): Do not output global.calls.
9992 * cgraph.h (cgraph_global_info): Kill.
9993 * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9994 (record_call_1): Speedup.
9995 (cgraph_analyze_function): Break out from ...; compute inlining
9997 (cgraph_finalize_compilation_unit): ... here.
9998 (cgraph_mark_inline): Kill computation of calls.
9999 (cgraph_decide_inlining): Do not compute most of initial values.
10001 2003-08-14 Roger Sayle <roger@eyesopen.com>
10003 * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10004 to negate if either operand is easy to negate, if we don't care
10005 about sign-dependent rounding.
10006 (negate_expr): Make the logic to negate a REAL_CST explicit.
10007 Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10008 that's easy to negate, if we don't honor sign-dependent rounding.
10009 (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10010 negate, and the symmetric A * -B as -A * B if A is easy to negate.
10011 (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10012 -C/D if B and C are cheap to negate. Add an explicit rule to
10013 optimize X/-1.0 as -X when we don't care about signaling NaNs.
10015 2003-08-14 Zack Weinberg <zack@codesourcery.com>
10017 * Makefile.in (tm_file): Rename tm_include_list.
10018 (tm_p_file): Rename tm_p_include_list.
10019 (build_xm_file): Rename build_xm_include_list.
10020 (host_xm_file): Rename host_xm_include_list.
10021 (xm_file): Rename xm_include_list.
10022 (xm_file_list): Add to be substituted.
10023 (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10025 (bt-load.o): Add missing dependency on $(TM_H).
10026 * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10027 For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10028 build_xm_file, generate both *_file_list and *_include_list
10029 values from it. (xm_file_list was formerly not being generated.)
10030 In *_include_list, prefix the names of all headers found in
10031 $(srcdir)/config with config/. In each loop, consider only
10032 the special case files that can actually appear in that list.
10033 AC_SUBST all *_file_list and all *_include_list variables; do
10034 not AC_SUBST the plain *_file variables.
10035 * configure: Regenerate.
10037 2003-08-14 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10039 * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10041 2003-08-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10043 * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10045 (attr_length_call): Include it here. Improve length estimate for
10047 (output_call): Use targetm.binds_local_p.
10049 2003-08-14 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10051 * builtins.c (CASE_MATHFN): New helper macro.
10052 (mathfn_built_in): Simplify and sort.
10054 * protoize.c (substr): Delete, callers changed to `strstr'.
10056 2003-08-13 Zack Weinberg <zack@codesourcery.com>
10058 * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10059 * config/iq2000/xm-iq2000.h: Delete file.
10061 2003-08-13 Geoffrey Keating <geoffk@apple.com>
10063 * gengtype.c (walk_type): Process a subobject before processing
10064 the pointer that points to the subobject.
10066 2003-08-13 Per Bothner <pbothner@apple.com>
10068 * regclass.c (init_reg_modes): Make non-static.
10069 Rename to init_reg_modes_once per new naming convention.
10070 (init_regs): Don't call init_reg_modes here.
10071 * emit-rtl.c (init_emit_once): Call init_reg_modes_once here instead.
10072 * rtl.h (init_reg_modes_once): New declaration.
10073 * toplev.c (backend_init): Call init_regs after init_emit_once.
10075 2003-08-13 Kaz Kojima <kkojima@gcc.gnu.org>
10077 * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10078 special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10080 2003-08-13 J"orn Rennecke <joern.rennecke@superh.com>
10082 * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10083 * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10085 2003-08-13 Dale Johannesen <dalej@apple.com>
10087 * config/rs6000/rs6000.md (ctrsi, ctrdi): Reenable
10088 handling of decrement-and-branch farther than 32 bits.
10090 2003-08-12 Kelley Cook <kelleycook@wideopenwest.com>
10092 * configure.in (make_compare_target): Move test to ...
10093 * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10094 * configure: Regenerate.
10096 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10098 * config/mips/iris6.h: Convert to C90 prototypes.
10099 * config/mips/irix6-libc-compat.c: Likewise.
10100 * config/mips/mips-protos.h: Likewise.
10101 * config/mips/mips.c: Likewise.
10103 2003-08-12 Nathanael Nerode <neroden@gcc.gnu.org>
10105 fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel. Enable
10106 for selected machines. Comment heavily.
10107 fixinc/fixincl.x: Rebuild.
10108 fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10110 2003-08-12 Richard Sandiford <rsandifo@redhat.com>
10112 * config/mips/mips.h: Tweak various comments.
10113 * config/mips/mips.c: Likewise.
10115 2003-08-11 James E Wilson <wilson@tuliptree.org>
10117 PR optimization/11319
10119 * alias.c (find_base_value, case REG): Return 0 not src if no base
10122 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10124 * gcse.c (gmalloc): Fix last change.
10126 2003-08-11 Roger Sayle <roger@eyesopen.com>
10128 * simplify-rtx.c (simplify_binary_operation): Replace calls to
10129 gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10130 and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10131 gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10133 2003-08-11 Roger Sayle <roger@eyesopen.com>
10135 * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10136 * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10137 typecode for an ABS_EXPR.
10139 * doc/c-tree.texi: Document ABS_EXPR.
10141 2003-08-11 Roger Sayle <roger@eyesopen.com>
10143 * fold-const.c (fold): Optimize any associative floating point
10144 operator with -funsafe-math-optimizations, not just MULT_EXPR.
10146 2003-08-11 Kaz Kojima <kkojima@gcc.gnu.org>
10148 * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10149 information in SHmedia case too.
10150 (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10152 (__set_fpscr): Use an access via GOT for PIC case.
10154 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10156 * configure.in (intermodule): Make switch test more portable.
10157 * configure: Regenerate.
10159 2003-08-11 Kelley Cook <kelleycook@wideopenwest.com>
10161 * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10162 (restrap): Likewise.
10164 2003-08-11 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10166 * gcse.c (gmalloc): Argument is a size_t. Add ATTRIBUTE_MALLOC.
10167 (grealloc): Size argument is a size_t.
10168 (gcalloc): New function. Use throughout in lieu of
10171 * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10173 * config/ia64/ia64.c (ia64_reorg): Likewise.
10174 * conflict.c (conflict_graph_new): Likewise.
10175 * fixinc/fixincl.c (run_compiles): Likewise.
10176 * genattrtab.c (optimize_attrs): Likewise.
10177 * genrecog.c (new_decision): Likewise.
10178 * haifa-sched.c (schedule_block): Likewise.
10179 * hashtable.c (ht_create): Likewise.
10181 2003-08-11 Bob Wilson <bob.wilson@acm.org>
10183 * config/xtensa/lib2funcs.S: Fix whitespace.
10184 * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10185 syntax where appropriate. Remove unnecessary backslash escapes.
10186 Reformat comments and fix some code formatting.
10187 (extendqisi2): Rearrange conditional.
10188 (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10189 *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10192 2003-08-11 Richard Sandiford <rsandifo@redhat.com>
10194 * config/mips/mips.c: Various formatting fixes.
10195 (override_options): Resync -mtune handling with gas.
10196 (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10197 * config/mips/mips.h: More formatting fixes.
10198 (mips_abi): Move declaration.
10199 * config/mips/mips.md (exception_receiver): Add mode to
10202 2003-08-11 Aldy Hernandez <aldyh@redhat.com>
10204 * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10206 (bdesc_1arg): Remove evsplati and evsplatfi.
10208 2003-08-11 J"orn Rennecke <joern.rennecke@superh.com>
10210 * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10213 2003-08-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10215 * builtins.c (expand_builtin_strcat): Optimize constant strings.
10217 2003-08-10 Gabriel Dos Reis <gdr@integrable-solutions.net>
10219 * pretty-print.c (pp_base_indent): Rename from pp_indent.
10220 * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10221 (struct c_pretty_print_info): Add more fields.
10222 (pp_c_left_paren): Move to c-pretty-print.c.
10223 (pp_c_right_paren): Likewise.
10224 (pp_c_left_brace): Likewise.
10225 (pp_c_right_brace): Likewise.
10226 (pp_c_left_bracket): Likewise.
10227 (pp_c_right_bracket): Likewise.
10228 (pp_c_declarator): Declare.
10229 (pp_c_direct_declarator): Likewise.
10230 (pp_c_specifier_qualifier_list): Likewise.
10231 (pp_c_type_id): Likewise.
10232 * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10233 (pp_c_type_qualifier_list): New.
10234 (pp_c_pointer): Likewise.
10235 (pp_c_parameter_type_list): Likewise.
10236 (pp_c_function_definition): Likewise.
10237 (pp_c_id_expression): Likewise.
10238 (pp_c_simple_type_specifier): Tidy.
10239 (pp_c_unary_expression): Likewise.
10240 (pp_c_expression): Likewise.
10241 (pp_c_pretty_printer_init): Likewise.
10242 (pp_c_specifier_qualifier_list): Rework..
10243 (pp_c_abstract_declarator): Likewise.
10244 (pp_c_postfix_expression): Likewise.
10245 (pp_c_primary_expression): Likewise.
10246 (pp_c_cast_expression): Likewise.
10247 (pp_c_direct_abstract_declarator): Likewise.
10248 (pp_c_storage_class_specifier): Likewise.
10249 (pp_c_function_specifier): Likewise.
10250 (pp_c_declaration_specifiers): Likewise.
10251 (pp_c_direct_declarator): Likewise.
10252 (pp_c_declarator): Likewise.
10253 (pp_c_declaration): Likewise.
10254 (pp_c_statement): Likewise.
10255 (pp_c_integer_constant): Rename from pp_c_integer_literal.
10256 (pp_c_character_constant): Rename from pp_c_character_literal.
10257 (pp_c_bool_constant): Rename from pp_c_bool_literal.
10258 (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10259 (pp_c_floating_constant): Rename from pp_c_real_literal.
10260 (pp_c_constant): Rename from pp_c_literal.
10261 * c-lang.c: Include diagnostic.h and c-pretty-print.h
10262 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10263 (c_initialize_diagnostics): New.
10264 * Makefile.in (c-lang.o): Update dependency.
10266 2003-08-10 Nathan Sidwell <nathan@codesourcery.com>
10268 * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10270 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10272 * config/mips/mips.c (mips_no_mips16_string): Remove.
10273 (override_options): Don't handle -mips16 as part of -mipsN.
10274 * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10275 (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10276 (TARGET_OPTIONS): Remove -mno-mips16.
10278 2003-08-10 Richard Sandiford <rsandifo@redhat.com>
10280 * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10281 (coprocessor2_operand): Likewise.
10282 * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10283 (lookup_name): Remove declaration.
10284 (abort_with_insn): Remove. Replace all uses with fatal_insn.
10285 (mips16, mips_abicalls): Remove.
10286 (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10287 (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10288 (coprocessor_operand, coprocessor2_operand): Remove.
10289 (override_options): Don't set mips16 or mips_abicalls.
10290 (print_operand): Don't expect SIGN_EXTEND operands.
10291 (mips_secondary_reload_class): Likewise.
10292 (mips_output_conditional_branch): Remove disabled long-branch code.
10293 * config/mips/mips.h (call_used_regs): Remove declaration.
10294 (may_call_alloca): Likewise.
10295 (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10296 (mips_abicalls, mips16): Remove declarations.
10297 (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10298 (CC1_SPEC): Remove outdated comment.
10299 (MIPS_VERSION, MACHINE_TYPE): Remove.
10300 (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10301 (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10302 (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10303 (PUSH_ROUNDING): Likewise.
10304 (ASSEMBLER_SCRATCH_REGNUM): Remove.
10305 * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10306 and mips16 with TARGET_MIPS16.
10308 2003-08-09 Per Bothner <pbothner@apple.com>
10310 * cppinit.c (cpp_read_main_file): Split out source-independent
10311 initialization to separate function ...
10312 (cpp_post_options): New function.
10313 * cppfiles.c (cpp_stack_file): Rename public name to ...
10314 (_cpp_stack_file): New internal function name.
10315 * cpplib.h: Update accordingly.
10316 * cppinit.c: (cpp_create_reader): Initialize cpp_readers line here.
10317 (cpp_read_main_file): Don't initialize line here.
10318 * c-opts.c (c_common_post_options): Call cpp_post_options.
10319 (c_common_parse_file): Call cpp_read_main_file, not cpp_stack_file.
10320 * fix-header.c (read_scan_file): Call cpp_post_options.
10322 2003-08-09 Per Bothner <per@bothner.com>
10324 * c-decl.c (SCOPE_LIST_APPEND): Remove bogus line continuation.
10326 2003-08-09 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10328 * pa.c (pa_asm_output_mi_thunk): Fix typo.
10330 2003-08-09 Neil Booth <neil@daikokuya.co.uk>
10332 PR preprocessor/11839
10333 * cppfiles.c (open_file): Handle ENOTDIR.
10335 2003-08-09 Richard Sandiford <rsandifo@redhat.com>
10338 * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10340 2003-08-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10342 * pa.md (extzv, extv, insv): Fix operand limit checks. Fail if
10343 source/destination is not a register operand.
10345 2003-08-08 Richard Henderson <rth@redhat.com>
10348 * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10349 RETURN_ADDRESS_POINTER_REGNUM.
10350 (ia64_expand_prologue): Don't frob it.
10351 (ia64_output_function_epilogue): Likewise.
10352 (ia64_return_addr_rtx): New.
10353 (ia64_split_return_addr_rtx): New.
10354 * config/ia64/ia64-protos.h: Update.
10355 * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10356 (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10357 (GENERAL_REGNO_P): Don't check it.
10358 (AR_*_REGNUM): Renumber.
10359 (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10360 (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10361 (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10362 (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10363 (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10364 * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10365 (movdi_ret_addr): New.
10367 2003-08-08 Geoffrey Keating <geoffk@apple.com>
10369 * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10371 2003-08-08 Roger Sayle <roger@eyesopen.com>
10373 * tree.h (get_identifier) Define a macro form of get_identifier
10374 that calls get_identifier_with_length when the string is constant.
10375 (get_identifier_with_length): Change type of second argument to
10376 size_t in prototype.
10377 * stringpool.c (get_identifier): Undefine the macro before giving
10378 the function definition.
10379 (get_identifier_with_length): Change type of second argument to
10380 size_t in function definition.
10381 * hashtable.c (calc_hash): Change type of second argument to size_t.
10382 (ht_lookup): Change type of third argument to size_t. Reorganize
10383 to speed-up the cases where the hash table slot is empty, or the
10384 first probe matches (i.e. there isn't a collision).
10385 * hashtable.h (ht_lookup): Adjust function prototype.
10387 2003-08-08 Bernardo Innocenti <bernie@develer.com>
10391 * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10393 2003-08-08 Neil Booth <neil@daikokuya.co.uk>
10395 * common.opt: Add debug switches.
10396 * flags.h (use_gnu_debug_info_extensions): Boolify.
10397 * opts.c (write_symbols, debug_info_level,
10398 use_gnu_debug_info_extensions): Move from toplev.c.
10399 (set_debug_level): New.
10400 (common_handle_options): Handle debug switches.
10401 (print_help): Display target options directly.
10402 * toplev.c (debug_hooks): Don't initialize.
10403 (write_symbols, debug_info_level,
10404 use_gnu_debug_info_extensions): Move to opts.c.
10405 (debug_args, display_help, decode_g_option): Remove.
10406 (process_options): Set no debug if level zero here,
10407 and no-debug-hooks. Error here if impossible debug format selected.
10408 * toplev.h (display_help, decode_g_option): Remove.
10410 2003-08-08 Richard Sandiford <rsandifo@redhat.com>
10412 * tree.c (get_file_function_name_long): Fix size of alloca() area.
10414 2003-08-08 Kelley Cook <kelleycook@wideopenwest.com>
10416 * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10417 and gcc_cv_prog_cmp_skip.
10418 * configure: Regenerate.
10420 2003-08-08 Stan Cox <scox@redhat.com>
10422 * config/iq2000: New port.
10423 * config.gcc (iq2000-*-elf): Added.
10424 * doc/install.texi (Specific): Add iq2000 description.
10426 2003-08-08 Andreas Schwab <schwab@suse.de>
10428 * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10429 and insert missing empty argument.
10430 * configure: Regenerate.
10432 2003-08-07 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
10434 * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10435 (attr_length_millicode_call): Likewise.
10436 (attr_length_call): Likewise. Revise some maximum insn lengths.
10437 (attr_length_indirect_call): Likewise.
10438 (output_call): Fix thinko that added extra nop.
10439 * pa.h (IN_NAMED_SECTION_P): Define.
10442 * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10443 __STDC_EXT__ when using C++ dialect.
10445 2003-08-07 J"orn Rennecke <joern.rennecke@superh.com>
10447 * sh.c (calc_live_regs): If the return address pointer is live,
10449 (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10450 for saves / restores.
10451 (sh_expand_epilogue): If sh_media_register_for_return returns a
10452 register number, flag the instructions that restores PR_MEDIA_REG
10454 Remove dead update of offset.
10455 (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10456 we can use the result of get_hard_reg_initial_val.
10457 * sh.md (UNSPEC_RA): New constant.
10458 (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10459 (load_ra). Handle UNSPEC_RA.
10460 (sibcall_media): Use PR_MEDIA_REG.
10462 * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10463 * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10464 needs saving on SHmedia.
10466 2003-08-07 Ulrich Weigand <uweigand@de.ibm.com>
10468 * config/s390/s390.md: Replace all occurrences of \\t with \t.
10470 2003-08-07 Richard Sandiford <rsandifo@redhat.com>
10472 * local-alloc.c (combine_regs): Fix comment typo.
10474 2003-08-06 Zack Weinberg <zack@codesourcery.com>
10476 * c-decl.c (builtin_decls): Replace with first_builtin_decl
10477 and last_builtin_decl.
10478 (c_init_decl_processing): Initialize both.
10479 (c_reset_state): Iterate from first_builtin_decl to
10480 last_builtin_decl inclusive to reintroduce builtins.
10482 2003-08-06 David Mosberger <davidm@hpl.hp.com>
10484 * doc/extend.texi (Function Attributes): Document the IA-64 version
10485 of the "model" attribute.
10487 * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10488 (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10489 (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10491 * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10492 (ia64_encode_section_info): Likewise.
10493 (ia64_attribute_table): Add "model" attribute.
10494 (TARGET_ENCODE_SECTION_INFO): Define.
10495 (small_addr_symbolic_operand): New function.
10496 (got_symbolic_operand): Return 0 for a symbolref to an object
10497 in the small address area.
10498 (enum ia64_addr_area): New type.
10499 (small_ident1): New variable.
10500 (small_ident2): Likewise.
10501 (init_idents): New function.
10502 (ia64_get_addr_area): Likewise.
10503 (ia64_encode_addr_area): Likewise.
10504 (ia64_encode_section_info): Likewise.
10505 (ia64_expand_load_address): For symbolic references to objects in
10506 the small-address-area, load the address via gen_rtx_SET() (which,
10507 eventually, will expand into "addl").
10509 2003-08-06 Per Bothner <pbothner@apple.com>
10511 * line-map.h (fileline): New typedef.
10512 (struct line_map, linemap_add, linemap_lookup): Use it.
10513 * input.h (struct location_s): Comment notes that long-term we want
10514 to replace it by fileline.
10516 2003-08-06 J"orn Rennecke <joern.rennecke@superh.com>
10518 Fix SHcompact exception handling:
10519 * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10520 by the prologue, return a MEM with return_address_pointer_rtx
10522 * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10523 (RETURN_ADDR_OFFSET): Don't define.
10524 (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10525 registers that are visible in compact mode. Show that SHmedia
10526 registers still exist in compact mode, even if there are not
10527 readily accessible.
10528 (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10529 if GLOBAL. Use DW_EH_PE_textrel (nominally) for CODE,
10530 and DW_EH_PE_pcrel for pic data.
10531 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10532 set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10533 DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10534 (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10535 * sh.md (movsi_media-1): New splitter.
10537 2003-08-06 Graeme Peterson <gp@qnx.com>
10539 * config/i386/nto.h: New.
10540 * config/i386/t-nto: New.
10541 * config.gcc (i[34567]86-*-nto-qnx*): New.
10543 2003-08-06 Phil Edwards <pme@gcc.gnu.org>
10545 * doc/install.texi (*-*-solaris2*): Refine configure instructions.
10547 2003-08-06 Alan Modra <amodra@bigpond.net.au>
10549 * calls.c (load_register_parameters): Arrange for call_fusage to
10550 report the whole register as used when shifting to the msb.
10552 2003-08-05 Roger Sayle <roger@eyesopen.com>
10554 * builtins.c (expand_builtin): When not optimizing, call the library
10555 function for all builtins that have library functions (except alloca).
10557 2003-08-05 Alexandre Oliva <aoliva@redhat.com>
10559 * c.opt: Introduce -fworking-directory.
10560 * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10561 * c-common.h (flag_working_directory): Declare.
10562 * c-common.c (flag_working_directory): Define.
10563 * c-opts.c (c_common_handle_options): Set it.
10564 (sanitize_cpp_opts): Set...
10565 * cpplib.h (struct cpp_options): ... working_directory option.
10566 (struct cpp_callbacks): Add dir_change.
10567 * cppinit.c (read_original_filename): Call...
10568 (read_original_directory): New. Look for # 1 "directory//"
10570 (cpp_read_main_file): Call dir_change callback if working_directory
10572 * gcc.c (cpp_unique_options): Pass -g*.
10573 * c-lex.c (cb_dir_change): New.
10574 (init_c_lex): Set dir_change callback.
10575 * toplev.c (src_pwd): New static variable.
10576 (set_src_pwd, get_src_pwd): New functions.
10577 * toplev.h (get_src_pwd, set_src_pwd): Declare.
10578 * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10579 * dwarf2out.c (gen_compile_unit_die): Likewise.
10580 * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10582 2003-08-05 Gabriel Dos Reis <gdr@integrable-solutions.net>
10584 * pretty-print.h (pp_set_line_maximum_length): Make macro.
10585 (pp_set_prefix): Likewise.
10586 (pp_destroy_prefix): Likewise.
10587 (pp_remaining_character_count_for_line): Likewise.
10588 (pp_clear_output_area): Likewise.
10589 (pp_formatted_text): Likewise.
10590 (pp_last_position_in_text): Likewise.
10591 (pp_emit_prefix): Likewise.
10592 (pp_append_text): Likewise.
10593 (pp_flush): Likewise.
10594 (pp_format_text): Likewise.
10595 (pp_format_verbatim): Likewise.
10596 (pp_tree_identifier): Tidy.
10597 * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10598 (pp_base_format_verbatim): Rename from pp_format_verbatim.
10599 (pp_base_flush): Rename from pp_flush.
10600 (pp_base_set_line_maximum_length): Rename from
10601 pp_set_line_maximum_length.
10602 (pp_base_clear_output_area): Rename from pp_clear_output_area.
10603 (pp_base_set_prefix): Rename from pp_set_prefix.
10604 (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10605 (pp_base_emit_prefix): Rename from pp_emit_prefix.
10606 (pp_base_append_text): Rename from pp_append_text.
10607 (pp_base_formatted_text): Rename from pp_formatted_text.
10608 (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10609 (pp_base_remaining_character_count_for_line): Rename from
10610 pp_remaining_character_count_for_line.
10611 * diagnostic.h (diagnostic_format_decoder): Tidy.
10612 (diagnostic_flush_buffer): Likewise.
10613 * c-pretty-print.h: (pp_c_string_literal): Declare.
10614 (pp_c_real_literal): Likewise.
10615 (pp_c_integer_literal): Likewise.
10616 * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10618 (pp_c_character_literal): Tidy.
10619 (pp_c_string_literal): Make public.
10620 (pp_c_bool_literal): Likewise.
10621 (pp_c_integer_literal): Likewise.
10622 (pp_c_real_literal): Likewise.
10624 * Makefile.in (C_PRETTY_PRINT_H): New variable.
10625 (c-pretty-print.o): Update dependence.
10627 2003-08-05 Chris Demetriou <cgd@broadcom.com>
10629 * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10630 ".set nomacro" state.
10631 (fix_truncsfsi2_macro): Likewise.
10633 2003-08-05 Steven Bosscher <steven@gcc.gnu.org>
10635 * tree.h (DID_INLINE_FUNC): Remove macro.
10636 (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10637 add tree check for FUNCTION_DECL.
10638 (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10639 (struct tree_decl): Rename inlined_function_flag to
10640 declared_inline_flag.
10641 * c-common.h (c_lang_decl): Remove.
10642 (DECL_ESTIMATED_INSNS): Remove.
10643 * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10644 (DECL_DECLARED_INLINE_P): Remove.
10645 * c-decl.c (grokdeclarator): Update comment. With -finline-functions,
10646 do not reset DECL_DECLARED_INLINE_P. Don't use DID_INLINE_FUNC.
10647 (finish_function): Make uninlinable a bool. Fixup call to
10648 tree_inlinable_function_p() and fix some code style issues.
10649 * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10650 * cgraph.c (dump_cgraph): Likewise.
10651 * cgraphunit.c (cgraph_decide_inlining): Likewise
10652 (cgraph_finalize_compilation_unit): Likewise.
10653 Also update call to tree_inlinable_function_p().
10654 (cgraph_default_inline_p): Don't use DID_INLINE_FUNC. Instead
10655 look at DECL_DECLARED_INLINE and reverse logic.
10656 * print-tree.c (print_node): Likewise.
10657 * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10658 * tree-inline.h (tree_inlinable_function_p): Make a bool. Update
10660 * tree-inline.c (inlinable_function_p): Split up in this function to
10661 check for basic inlining inhibiting conditions, and new
10662 limits_allow_inlining() function. Warn if inlining is impossible
10663 because the inline candidate calls alloca or uses sjlj exceptions.
10664 (limits_allow_inlining): this new function to check if the inlining
10665 limits are satisfied. Throttle from currfn_max_inline_insns, not from
10666 MAX_INLINE_INSNS_SINGLE. The latter only makes sense if
10667 MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10669 (tree_inlinable_function_p): Make a bool. Update call to
10670 inlinable_function_p
10671 (expand_call_inline): Use limits_allow_inlining() when not in
10672 unit-at-a-time mode to decide on inlining. Don't use DID_INLINE_FUNC,
10673 instead see if the function was declared `inline'.
10675 2003-08-05 Josef Zlomek <zlomekj@suse.cz>
10677 * gcse.c (try_replace_reg): Fix updating of note.
10679 2003-08-04 Roger Sayle <roger@eyesopen.com>
10681 PR middle-end/11771
10682 * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10683 logic in negate_expr, i.e. we don't invert (A-B) for floating
10684 point types unless flag_unsafe_math_optimizations.
10686 2003-08-04 Roger Sayle <roger@eyesopen.com>
10688 * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10689 Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10690 for floating point expressions with -ffast-math.
10691 (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10692 * expmed.c (expand_mult): Wrap long line. Expand x*2.0 as x+x.
10694 2003-08-04 Roger Sayle <roger@eyesopen.com>
10696 * c-common.c (flag_noniso_default_format_attributes): Delete.
10697 (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10698 (c_attrs_initialized): Delete.
10699 (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10700 always call c_init_attributes.
10701 (c_init_attributes): Don't define/undefine DEF_FN_ATTR. Don't
10702 set c_attrs_initialized when done.
10703 (c_common_insert_default_attributes): Delete.
10704 * c-common.h (flag_noniso_default_format_attributes): Delete.
10705 (c_coomon_insert_default_attributes): Delete prototype.
10706 * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10707 flag_noniso_default_format_attributes.
10709 * c-decl.c (c_insert_default_attributes): Delete.
10710 * c-tree.h (c_insert_default_attributes): Delete prototype.
10712 * attribs.c (decl_attributes): Don't call insert_default_attributes
10713 langhook. Update function description comment.
10714 * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10715 * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10716 * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10717 * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10719 * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10722 2003-08-04 Richard Sandiford <rsandif@redhat.com>
10724 * config/mips/mips.c (override_options): Disable -G on targets that
10725 have no .section support.
10726 (mips_select_section): Use default_select_section for such targets.
10728 2003-08-04 Nathanael Nerode <neroden@gcc.gnu.org>
10730 * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10731 * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10732 * fixinc/fixincl.x: Rebuild.
10733 * fixinc/tests/base/regexp.h: New test.
10735 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
10737 * c-ppoutput.c (cb_line_change): Don't skip line changing while
10738 parsing macro arguments in the top-level context.
10740 2003-08-04 Neil Booth <neil@daikokuya.co.uk>
10742 * config.in: Remove HAVE_LSTAT.
10743 * configure, configure.in: Don't test for lstat.
10745 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10747 * opts.c (decode_options): Do language-specific initialization for
10748 the global diagnostic context.
10749 * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10750 (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10751 (LANG_HOOKS_INITIALIZER): Adjust.
10752 * langhooks.h (struct lang_hooks): Add new field
10753 initialize_diagnostics.
10754 * langhooks.c (lhd_initialize_diagnostics): Define.
10756 2003-08-03 Gabriel Dos Reis <gdr@integrable-solutions.net>
10758 * pretty-print.h: Adjust macro definitions.
10759 * pretty-print.c (pp_newline): Rename to pp_base_newline.
10760 (pp_character): Rename to pp_base_character.
10761 (pp_string): Rename to pp_base_string.
10762 * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10763 (pp_newline): Likewise. Adjust.
10764 (pp_c_char): Adjust.
10766 2003-08-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10768 * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10769 BUILT_IN_LLABS): Move to miscellaneous section.
10771 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
10773 PR preprocessor/11534
10774 * cppexp.c (parse_defined): Warn only if -pedantic.
10776 2003-08-03 Neil Booth <neil@daikokuya.co.uk>
10778 * cppfiles.c (stack_file): Use file path.
10780 2003-08-02 Roger Sayle <roger@eyesopen.com>
10782 * builtin-types.def (BT_SSIZE): New primitive type.
10783 (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10784 BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10785 BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10786 BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10787 * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10788 BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10789 BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10790 * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10791 few functions that define default attributes using it.
10792 * c-common.c (c_common_insert_default_attributes): Do nothing.
10794 * doc/extend.texi: Document these "new" builtins.
10796 2003-08-02 Kaz Kojima <kkojima@gcc.gnu.org>
10798 * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10799 (LIB_SPEC): Set -lpthread always when -pthread set. Set -lieee
10800 when -mieee-fp set and -shared not set.
10801 (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10803 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
10805 * cppfiles.c (struct _cpp_file): Rename once_only_next to
10806 next_file. Remove import and pragma_once, add once_only.
10807 (find_file): Add new file structures to the all_files list.
10808 (should_stack_file): Mark #import-ed files once-only, and
10809 don't stack them if the file has already been stacked.
10810 (_cp_mark_file_once_only): Simplify.
10811 * cpphash.h (struct cpp_reader): Rename once_only_files
10812 to all_files. Rename saw_pragma_once to seen_once_only.
10813 (_cpp_mark_file_once_only): Update prototype.
10814 * cpplib.c (do_pragma_once): Update.
10816 2003-08-02 Neil Booth <neil@daikokuya.co.uk>
10818 * cppfiles.c (ENOTDIR): Remove.
10819 (open_file_in_dir): Rename find_file_in_dir. Handle errors
10820 other than ENOENT here.
10821 (once_only_file_p): Rename should_stack_file.
10822 (find_file, open_file_failed, read_file_guts): Report errors
10823 with full path name.
10824 (read_file): Move pch handling to should_stack_file.
10825 (should_stack_file): Handle PCH and once-only issues, and
10827 (stack_file): Don't do file reads.
10829 2003-08-02 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
10831 * libgcov.c (gcov_exit): Cleanup and fix.
10832 * profile.c (compute_value_histograms): Don't try to read profiles
10833 that are not present.
10835 2003-08-02 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10837 * builtins.def: Categorize.
10839 * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10841 (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10843 2003-08-02 Andreas Tobler <a.tobler@schweiz.ch>
10845 * config.gcc: Enable posix threads by default on darwin.
10847 2003-08-01 Jakub Jelinek <jakub@redhat.com>
10849 * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10850 even if nehedges1 is 0.
10852 2003-08-01 Nathanael Nerode <neroden@gcc.gnu.org>
10854 * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10855 fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10856 fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10859 * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10860 * fixinc/fixincl.x: Regenerate.
10861 * fixinc/tests/base/math.h: Regenerate to match test_text change.
10863 2003-08-01 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
10865 * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10867 2003-08-01 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
10869 * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10870 for accesses to exc_ptr.
10872 2003-08-01 Geoffrey Keating <geoffk@apple.com>
10874 * doc/sourcebuild.texi (Front End Directory): Don't make references
10875 to libsubdir, it's not part of the interface to frontends.
10876 * doc/install.texi (Configuration): Help users read faster by saying
10877 that GCC's configure options are the standard autoconf ones.
10878 Mention --libdir. Update the default rules for finding the
10879 assembler. Don't use libsubdir since we haven't said what it means.
10880 (Specific): In the Solaris 7 notes, update the place to put the
10882 * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10883 * doc/cpp.texi (Search Path): Actually, the search path
10884 depends on libdir, which can relocate with cpp.
10885 * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10886 now a private interface between the Makefile and the driver.
10888 2003-08-01 Richard Henderson <rth@redhat.com>
10890 * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10892 * varasm.c (lookup_constant_def): New function.
10893 * rtl.h (lookup_constant_def): Declare it.
10894 * dwarf2out.c (loc_descriptor_from_tree): Use it.
10895 Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10897 2003-08-01 Zack Weinberg <zack@codesourcery.com>
10899 * c-decl.c (gettags, pushdecl_function_level): Delete.
10900 (last_function_parm_vars): Rename last_function_parm_others.
10901 (current_function_parm_vars): Rename current_function_parm_others.
10902 (struct c_scope): Rewrite comment explaining this data structure.
10903 Add names_last, blocks_last, parms_last fields. Rename
10904 incomplete_list to incomplete.
10905 (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10906 (poplevel): Ignore second argument. No need to nreverse
10907 anything. Restructure such that each list is processed
10908 exactly once. Use 'const location_t *locus' syntactic sugar
10909 variable where useful. Issue unused variable warnings
10910 ourselves, do not rely on function.c.
10911 (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10912 (pushdecl_top_level): Likewise. Don't call duplicate_decls.
10913 (implicitly_declare): decl cannot be error_mark_node.
10914 (undeclared_variable): Manipulate scope structure directly.
10915 (c_make_fname_decl): Likewise.
10916 (getdecls, c_init_decl_processing): Fix comment.
10917 (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT. No need
10918 for 'last' variable.
10919 (grokparms): No need to nreverse parms list.
10920 (store_parm_decls_newstyle): Set up the parms_last and
10921 names_last fields of the new scope too.
10922 (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10923 on parms to begin with; check this under ENABLE_CHECKING. Set
10925 (check_for_loop_decls): Refer directly to current_scope->tags.
10926 Use consistent quote style in diagnostics.
10927 (c_write_global_declarations): The names list is not backward.
10929 * c-common.h: Don't prototype gettags.
10930 * c-parse.in: Call poplevel with second argument 0 always.
10932 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10934 * builtins.def: Resort builtins.
10936 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10938 * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10939 DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10940 Prepend "__builtin_" onto NAME with string concatenation. Remove
10941 explicit "__builtin_" from each macro call.
10943 Reformat entire file.
10945 2003-08-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10947 * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10948 ATTR_MATHFN_FPROUNDING_ERRNO): New macros. Use throughout.
10950 2003-08-01 Andreas Krebbel <krebbel1@de.ibm.com>
10952 * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10953 CCL1, or CCL2 modes with floating point operations.
10955 * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10956 "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10957 "*subdf3_cconly"): New insns.
10958 ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10960 2003-08-01 Neil Booth <neil@daikokuya.co.uk>
10962 * Makefile.in: Refine dependencies.
10963 * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10964 * c.opt: Update help for -Wimport.
10965 * cppfiles.c: Include hashtab.h. Update comments.
10966 (stack_file): Read the file before updating dependencies.
10967 (once_only_file_p): Be smarter about marking once-only files.
10968 (_cpp_mark_file_once_only): Correct the check for existence on
10970 (open_file_failed): Use name not path, which is NULL.
10971 * cpphash.h: Don't include hashtab.h.
10972 (struct _cpp_file): Remove.
10973 (struct cpp_reader): Update.
10974 * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10975 * cpplib.h (struct cpp_options): Remove warn_import.
10976 (cpp_simplify_path): Remove.
10978 2003-08-01 Nathan Sidwell <nathan@codesourcery.com>
10981 * doc/extend.texi (Statement Expressions): Document C++ semantics.
10983 2003-07-31 SUGIOKA Toshinobu <sugioka@itonet.co.jp>
10985 * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10987 2003-07-31 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
10989 * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10991 * builtins.def: Likewise.
10993 2003-07-31 Jason Merrill <jason@redhat.com>
10995 * Makefile.in (bubblestrap): Don't require a previous full
10998 * expr.c (mostly_zeros_p): No longer static.
10999 * tree.h: Declare it.
11000 * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11001 unless we need to do substitutions.
11003 2003-07-31 Roger Sayle <roger@eyesopen.com>
11005 * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11006 pow(x,c)*x as pow(x,c+1) for constant values c. Optimize x*x
11007 as pow(x,2.0) when the latter will be expanded back into x*x.
11008 (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11009 * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11010 pow can never set errno when used with an integer exponent.
11011 Always use expand_powi when exponent is -1, 0, 1 or 2.
11012 (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11013 as 1.0/(x*x). This avoids unbounded recursion as we now prefer
11014 the pow forms of these expressions.
11016 2003-07-31 Geoffrey Keating <geoffk@apple.com>
11018 * Makefile.in (libexecdir): New.
11019 (libsubdir): Use gcc instead of gcc-lib.
11020 (libexecsubdir): New.
11021 (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11022 (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11024 (installdirs): Make libexecsubdir.
11025 (install-common): Put executables in libexecsubdir.
11026 (itoolsdir): Use libexecsubdir.
11027 (itoolsdatadir): New.
11028 (install-mkheaders): Separate data files and executables.
11029 (install-collect2): Put executables in libexecsubdir.
11030 (uninstall): Remove libexecsubdir.
11031 * mkheaders.in: Update for new arrangement of files.
11033 (libexecsubdir): New.
11034 (itoolsdir): Use libexecsubdir.
11035 (itoolsdatadir): New.
11036 * gcc.c (gcc_libexec_prefix): New.
11037 (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11038 (standard_exec_prefix_1): Use libexec.
11039 (standard_exec_prefix_2): New.
11040 (standard_libexec_prefix): New.
11041 (process_command): Update for new arrangement of files. Compute
11042 gcc_libexec_prefix. Update for change from gcc-lib to gcc.
11044 2003-07-31 Nathanael Nerode <neroden@gcc.gnu.org>
11046 * inclhack.def (stdio_va_list): Avoid bogus replacement which
11047 triggers on Interix.
11048 * fixincl.x: Regenerate.
11050 2003-07-31 Jakub Jelinek <jakub@redhat.com>
11052 * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11053 SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11055 2003-07-31 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
11057 * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11059 2003-07-31 Per Bothner <pbothner@apple.com>
11061 * opts.c (in_fnames, num_in_fnames): Moved here from c-opts.
11062 (add_input_filename): New function.
11063 (handle_options): Call add_input_filename directly instead of
11065 * opts.h (in_fnames, num_in_fnames): Moved here.
11066 (add_input_filename): Declare.
11067 * c-decl.c: Need to #include opts.h.
11068 * Makefile.in (c-decl.o): Also depends on opts.h.
11069 * c-opts.c (in_fnames, num_in_fnames): Moved to opts.c.
11070 (c_common_handle_filename): Replaced by add_input_filename.
11071 * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11073 * langhooks.h (struct lang_hooks): Remove handle_filename hook.
11074 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11075 (LANG_HOOKS_INITIALIZER): Remove use of LANG_HOOKS_HANDLE_FILENAME.
11076 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME): Remove macro.
11078 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11080 * combine.c (try_combine): Set JUMP_LABEL for newly created
11081 unconditional jump.
11083 2003-07-31 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11085 * fold-const.c (fold): Fold some comparisons of bit operations.
11087 2003-07-31 Jan Hubicka <jh@suse.cz>
11089 * cgraph.c (create_edge): Fix typo.
11090 * i386.c (pic_symbolic_operand): Reorder tests.
11092 2003-07-31 Nathan Sidwell <nathan@codesourcery.com>
11094 * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11096 (Gcov Data Files): Update.
11098 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11100 * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11103 * gthr-posix.c: New file.
11104 * gthr-posix.h: Define _REENTRANT if missing.
11105 Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11107 * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11109 * config/alpha/t-osf-pthread: New file.
11111 * fixinc/inclhack.def (alpha_pthread): New fix.
11112 * fixinc/fixincl.x: Regenerate.
11113 * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11115 * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11117 Fixes PR bootstrap/9330.
11119 2003-07-31 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11121 * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11124 * configure: Regenerate.
11126 2003-07-31 Vladimir Makarov <vmakarov@redhat.com>
11128 * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11131 2003-07-30 Roger Sayle <roger@eyesopen.com>
11133 * builtins.def: Alphabetize.
11135 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11137 * doc/c-tree.texi: Normalize spellings of "lowercase" and
11139 * doc/cpp.texi: Likewise.
11140 * doc/md.texi: Likewise.
11141 * doc/rtl.texi: Likewise.
11142 * doc/tm.texi: Likewise.
11144 2003-07-30 Matt Kraai <kraai@alumni.cmu.edu>
11146 * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11147 (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11150 2003-07-30 Chris Demetriou <cgd@broadcom.com>
11152 * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11153 macros before defining them.
11155 2003-07-31 Ulrich Weigand <uweigand@de.ibm.com>
11157 * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11158 UNSPECV_BLOCKAGE): New constants.
11159 ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11160 "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11161 splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11162 "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11164 (all insns and expanders): Write output control string as brace block
11165 where appropriate. Remove \-escapes for doublequote characters.
11167 2003-07-31 Jan Hubicka <jh@suse.cz>
11169 * gcse.c (insert_store): Fix typo in previous patch.
11171 2003-07-30 Neil Booth <neil@daikokuya.co.uk>
11173 * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11175 2003-07-30 Andi Kleen <ak@muc.de>
11177 * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11179 2003-07-30 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11181 * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11182 * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11183 GCOV_N_VALUE_COUNTERS): New.
11184 * profile.c (compute_value_histograms): New static function.
11185 (branch_prob): Read back the value histograms.
11186 * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11187 * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11188 * value-prof.c: Add comment on reading the profile.
11189 * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11190 * doc/invoke.texi (-fprofile-values): Document behavior with
11191 -fbranch-probabilities.
11193 2003-07-30 David Edelsohn <edelsohn@gnu.org>
11195 * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11197 2003-07-30 Ulrich Weigand <uweigand@de.ibm.com>
11199 * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11202 2003-07-30 Jan Hubicka <jh@suse.cz>
11204 * gcse.c (insert_store): Ignore fake edges.
11206 * c-common.c (flag_vtable_gc): Kill.
11207 * c-common.g (flag_vtable_gc): Kill.
11208 * c-opts (c_common_handle_option): Kill.
11209 * c.opt (fvtable-gc): Kill.
11210 * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11211 * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11212 * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11214 * invoke.texi (-ftable-gc): Kill documentation.
11216 * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11217 just because function body is missing.
11219 * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11221 2003-07-30 Ranjit Mathew <rmathew@hotmail.com>
11223 * unwind-sjlj.c: Fix typo in file description.
11225 2003-07-30 Alan Modra <amodra@bigpond.net.au>
11227 * calls.c (load_register_parameters): When shifting reg sized values
11228 to the msb, move the value to a reg first.
11230 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11232 * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11233 * line-map.h (linemap_add): Update comments.
11234 * line-map.c (linemap_add): Update comments, interpret zero-length
11235 filename as "<stdin>".
11237 2003-07-29 Nathanael Nerode <neroden@gcc.gnu.org>
11239 * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11241 2003-07-29 Zack Weinberg <zack@codesourcery.com>
11243 * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11244 New static variables.
11245 (struct c_scope): Add parms and warned_forward_parm_decls
11246 fields; remove parm_order.
11247 (storedecls, storetags): Delete.
11248 (poplevel): Also clear bindings on the parms chain.
11249 (pushdecl): Handle forward declarations of parameters, and
11250 chain PARM_DECLs on the parms list, not the names list.
11251 (lookup_name_current_level): Check for PARM_DECLs on the parms
11253 (push_parm_decl): Don't update parm_order.
11254 (clear_parm_order): Rename mark_forward_parm_decls. Issue the
11255 warning, only once per parameter list, and set TREE_ASM_WRITTEN
11256 on the decls here. Then move the forward decls to the names list.
11257 (grokparms): Set last_function_parm_vars.
11258 (get_parm_info): Don't use gettags or getdecls. No need to
11259 extract non-parms from the parms list, or reorganize the parms
11260 list. Feed nonparms back in the TREE_TYPE of the list node
11261 returned. Issue only one error per parameter list for "void"
11262 appearing more than once in said parameter list. Collapse
11263 parmlist_tags_warning into this function to avoid double scan
11265 (start_function): Set current_function_parm_vars.
11266 (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11267 directly. Get non-parms from current_function_parm_vars; no
11268 need to extract them from the parms chain. Properly bind tags
11270 (store_parm_decls_oldstyle): No need to extract non-parameters
11271 from the parms chain, nor to store them back afterward. Move
11272 declaration to top of function, restructure code reordering
11274 (store_parm_decls): No need to save and restore warn_shadow.
11275 * c-parse.in: Don't call parmlist_tags_warning nor
11276 clear_parm_order. Call mark_forward_parm_decls when forward
11277 parm decls are encountered.
11278 * c-tree.h: Prototype mark_forward_parm_decls; not
11279 clear_parm_order or parmlist_tags_warning.
11281 2003-07-29 Geoffrey Keating <geoffk@apple.com>
11283 * c-common.c (allow_pch): Remove.
11284 * c-common.h (allow_pch): Remove.
11285 (c_common_no_more_pch): Declare.
11286 * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11287 * c-pch.c: Include hosthooks.h.
11288 (c_common_valid_pch): Don't check allow_pch.
11289 (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11290 (c_common_no_more_pch): New.
11291 * ggc-common.c: Include hosthooks.h.
11292 (gt_pch_save): Call gt_pch_get_address.
11293 (gt_pch_restore): Call gt_pch_use_address.
11294 * hooks.c (hook_voidp_size_t_null): New.
11295 (hook_bool_voidp_size_t_false): New.
11296 * hooks.h (hook_voidp_size_t_null): New.
11297 (hook_bool_voidp_size_t_false): New.
11298 * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11299 (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11300 (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11301 HOST_HOOKS_GT_PCH_USE_ADDRESS.
11302 * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11303 gt_pch_use_address.
11304 * doc/hostconfig.texi (Host Common): Document
11305 HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11306 * Makefile.in (c-pch.o): Depend on hosthooks.h.
11307 (ggc-common.o): Likewise.
11309 * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11310 (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11311 (pch_address_space): New.
11312 (darwin_rs6000_gt_pch_get_address): New.
11313 (darwin_rs6000_gt_pch_use_address): New.
11315 2003-07-29 Neil Booth <neil@daikokuya.co.uk>
11317 PR preprocessor/11569
11318 PR preprocessor/11649
11319 * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11320 * cppfiles.c: Completely rewritten.
11321 * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11322 struct cpp_path is now struct cpp_dir.
11323 (remove_duplicates): Don't simplify path names.
11324 * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11326 * cpphash.h: Include hashtab.h.
11327 (_cpp_file): Declare.
11328 (struct cpp_buffer): struct include_file is now struct _cpp_file,
11329 and struct cpp_path is now struct cpp_dir. Rename members.
11330 (struct cpp_reader): Similarly. New members once_only_files,
11331 file_hash, file_hash_entries, quote_ignores_source_dir,
11332 no_search_path, saw_pragma_once. Remove all_include_files and
11333 max_include_len. Make some members bool.
11334 (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11335 (_cpp_stack_file): Renamed from _cpp_read_file.
11336 (_cpp_stack_include): Renamed from _cpp_execute_include.
11337 (_cpp_init_files): Renamed from _cpp_init_includes.
11338 (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11339 * cppinit.c (cpp_create_reader): Initialize no_search_path. Update.
11340 (cpp_read_next_file): Rename and move to cppfiles.c.
11341 (cpp_read_main_file): Update.
11342 * cpplib.c (run_directive): Update for renamed members.
11343 (do_include_common, _cpp_pop_buffer): Update.
11344 (do_import): Undeprecate #import.
11345 (do_pragma_once): Undeprecate. Use _cpp_mark_file_once_only.
11346 * cpplib.h: Remove file_name_map_list.
11347 (cpp_options): Remove map_list.
11348 (cpp_dir): Rename from cpp_path. New datatype for name_map.
11349 (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11351 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11353 * Makefile.in: Make stamp-objdir safe for parallel builds.
11355 2003-07-29 Phil Edwards <pme@gcc.gnu.org>
11357 * Makefile.in (stmp-docobjdir): New target; ensure $docobjdir exists.
11358 (info): Depend on stmp-docobjdir.
11360 2003-07-29 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11362 * configure: Regenerate.
11364 2003-07-29 Jan Hubicka <jh@suse.cz>
11367 * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11368 in !unit-at-a-time mode.
11370 2003-07-28 Geoffrey Keating <geoffk@apple.com>
11372 * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11375 2003-07-28 Mark Mitchell <mark@codesourcery.com>
11378 * c-common.c (shorten_compare): Take into account differences
11379 between C and C++ representation for enumeration types.
11380 * tree.h (set_min_and_max_values_for_integral_type): Declare.
11381 * stor-layout.c (set_min_and_max_values_for_integral_type): New
11382 function, broken out from ...
11383 (fixup_signed_type): ... here and ...
11384 (fixup_unsigned_type): ... here.
11386 2003-07-28 Zack Weinberg <zack@codesourcery.com>
11388 * c-decl.c: Update commentary, adjust blank lines throughout.
11389 (struct c_scope): Fix indentation. Reorder members so
11390 outer-context pointers come first, booleans last.
11391 (duplicate_decls, define_label): Use a 'locus' variable for
11392 diagnostic locations in a few more places.
11393 (warn_if_shadowing): Un-split a conditional that fits on one line.
11394 (c_init_decl_processing): No need to clear current_scope and
11395 current_function_scope.
11396 (start_decl): Merge if/else if statements with same action.
11397 (push_parm_decl): Rename old_immediate_size_expand to use
11398 save_foo convention; save/restore around entire function.
11399 (grokdeclarator): Remove unnecessary braces.
11401 2003-07-28 Hans-Peter Nilsson <hp@bitrange.com>
11402 Michael Culbertson <Michael.J.Culbertson@wheaton.edu>
11404 * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11405 when warn_declaration_after_statement. Call pedwarn_c90, not
11406 pedwarn. Correct message: it's "ISO C90", not "ISO C89".
11407 * c-common.c (warn_declaration_after_statement): Define.
11408 * c-common.h (warn_declaration_after_statement): Declare.
11409 * c.opt (Wdeclaration-after-statement): New.
11410 * c-errors.c (pedwarn_c90): New function.
11411 * c-opts.c (c_common_handle_option) <case
11412 OPT_Wdeclaration_after_statement>: New.
11413 * c-tree.h (pedwarn_c90): Declare.
11414 * doc/invoke.texi (Option Summary): Document
11415 -Wdeclaration-after-statement.
11416 (Warning Options): Ditto.
11418 2003-07-28 Jan Hubicka <jh@suse.cz>
11420 * i386.md (memory attribute) Avoid accessing uninitialized memory
11421 for ishift1 type instructions.
11423 2003-07-28 Jakub Jelinek <jakub@redhat.com>
11425 * configure.in (--enable-checking): Add fold category.
11426 (ENABLE_FOLD_CHECKING): Define if requested.
11427 * configure: Rebuilt.
11428 * config.in: Rebuilt.
11429 * doc/install.texi: Document it.
11430 * fold-const.c: Include md5.h.
11431 [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11432 [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11433 print_fold_checksum): New functions.
11435 * fold-const.c (fold): Never modify argument passed to fold, instead
11436 change a copy and return it.
11437 * convert.c (convert_to_integer): Likewise.
11439 2003-07-27 Nathanael Nerode <neroden@gcc.gnu.org>
11441 * fixinc/fixinc.svr4: Remove dead code. Remove now-unnecessary
11442 cleanup of junk after #else and #endif directives. Collapse repeated
11443 clauses into for statment.
11445 * fixinc/fixincl.sh: GNU C -> GCC. Add usage comment.
11447 2003-07-27 Zack Weinberg <zack@codesourcery.com>
11449 * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11450 (keep_next_if_subblocks): Rename next_is_function_body.
11451 (pushlevel): Adjust commentary. Always set ->keep on the
11452 outermost level of a function. Don't set ->keep_if_subblocks.
11453 (poplevel): Adjust commentary. Don't look at ->keep_if_subblocks.
11454 (store_parm_decls): Adjust to match.
11455 (finish_function): Adjust to match.
11456 Call poplevel with all three arguments zero.
11458 * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11459 New functions split out of store_parm_decls.
11460 Avoid unnecessary work. Use local variables consistently.
11461 (store_parm_decls): Likewise.
11463 (finish_function): No need to set functionbody flag on call to
11465 (struct language_function): Remove scope field.
11466 (c_push_function_context, c_pop_function_context): No need to
11467 save and restore current_scope.
11469 2003-07-27 Nathan Sidwell <nathan@codesourcery.com>
11471 * doc/extend.texi (Deprecated Features): Implicit typename is
11472 gone. Default args on types is going.
11474 2003-07-26 J"orn Rennecke <joern.rennecke@superh.com>
11476 * Makefile.in (ifcvt.o): Depend on target.h
11477 * ifcvt.c (target.h): Include.
11478 (if_convert): Don't call mark_loop_exit_edges if we can't
11481 2003-07-26 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
11483 * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11485 2003-07-26 Richard Henderson <rth@redhat.com>
11487 PR inline-asm/11676
11488 * cse.c (count_reg_usage): Handle asm_operands properly.
11490 2003-07-26 Roger Sayle <roger@eyesopen.com>
11492 * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11493 (DEF_EXT_FALLBACK_BUILTIN): Delete.
11494 (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11495 the regular DEF_EXT_LIB_BUILTIN macro.
11496 (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11497 the regular DEF_LIB_BUILTIN macro.
11498 (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11499 BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11500 BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11501 DEF_EXT_LIB_BUILTIN macro.
11503 * c-decl.c (duplicate_decls): Remove code to handle builtin
11504 functions prototyped without an argument list.
11506 2003-07-26 Danny Smith <dannysmith@users.sourceforge.net>
11508 * config/i386/winnt.c: Revert 2003-07-08 change.
11509 (i386_pe_section_type_flags): Remove error_with_decl here too.
11511 2003-07-26 Gabriel Dos Reis <gdr@integrable-solutions.net>
11513 * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11514 * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11515 * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11516 (v850_handle_data_area_attribute): Likewise.
11518 2003-07-26 Geoffrey Keating <geoffk@apple.com>
11520 * varasm.c (output_constant_def_contents): Use
11521 ASM_DECLARE_CONSTANT_NAME if defined.
11522 * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11523 * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11524 objects get at least one byte to prevent assembler problems.
11525 (ASM_DECLARE_CONSTANT_NAME): New.
11527 * Makefile.in (libbackend.o): Remove options_.h.
11528 (mostlyclean): Likewise.
11530 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11531 insert a label at the end of an function under Mach-O.
11533 * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11535 2003-07-25 Aldy Hernandez <aldyh@redhat.com>
11537 * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11539 (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11541 * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11543 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11545 * doc/passes.texi (Passes): Mention pretty-printing and
11548 2003-07-25 Nathan Sidwell <nathan@codesourcery.com>
11550 * doc/extend.texi (Function Attributes): GNU C++ does now allow
11551 unused parameter decls.
11552 (Attribute Syntax): GNU C++ does not allow label attributes to be
11555 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11557 * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11558 (objc_declare_class): Likewise.
11559 (error_with_ivar): Likewise.
11560 (start_class): Likewise.
11561 (warn_with_method): Likewise.
11563 2003-07-25 Gabriel Dos Reis <gdr@integrable-solutions.net>
11565 Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11567 * calls.c (try_to_integrate): Don't use xxx_with_decl.
11568 (expand_call): Likewise.
11569 * dwarfout.c (output_reg_number): Likewise.
11570 * expr.c (expand_expr): Likewise.
11571 * function.c (assign_temp): Likewise.
11572 (uninitialized_vars_warning): Likewise.
11573 (setjmp_args_warning): Likewise.
11574 (expand_function_end): Likewise.
11575 * stmt.c (fixup_gotos): Likewise.
11576 (warn_about_unused_variables): Likewise.
11577 (expand_end_bindings): Likewise.
11578 * stor-layout.c (layout_decl): Likewise.
11579 (place_field): Likewise.
11580 * toplev.c (check_global_declarations): Likewise.
11581 (rest_of_handle_inlining): Likewise.
11582 (default_tree_printer): New function.
11583 (general_init): Initialize diagnostic machinery before routing
11584 signals to the ICE machinery. Set default tree printer.
11585 * toplev.h (pedwarn_with_decl): Remove declaration.
11586 (warning_with_decl): Likewise.
11587 (error_with_decl): Likewise.
11588 (pedwarn): Remove attribute for the time being.
11589 * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11590 * varasm.c (named_section): Likewise.
11591 (make_decl_rtl): Likewise.
11592 (assemble_variable): Likewise.
11593 (merge_weak): Likewise.
11594 (declare_weak): Likewise.
11596 * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11597 * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11598 (format_with_decl): Remove.
11599 (diagnostic_for_decl): Likewise.
11600 (pedwarn_with_decl): Likewise.
11601 (warning_with_decl): Likewise.
11602 (error_with_decl): Likewise.
11603 (diagnostic_initialize): Adjust.
11604 (diagnostic_count_diagnostic): Likewise.
11605 (announce_function): Likewise.
11606 (lhd_print_error_function): Likewise.
11607 (diagnostic_report_current_module): Likewise.
11608 (default_diagnostic_starter): Likewise.
11609 (diagnostic_report_diagnostic): Likewise.
11610 (default_diagnostic_finalizer): Likewise.
11611 (verbatim): Likewise.
11613 (warning): Likewise.
11614 * opts.c (common_handle_option): Likewise.
11615 * pretty-print.c: New file.
11616 * c-pretty-print.h (pp_base): Override.
11617 * c-pretty-print.c: Adjust use of macros throughout.
11618 (pp_buffer): New macro.
11619 (pp_newline): Likewise.
11620 * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11621 * Makefile.in (DIAGNOSTIC_H): New variable.
11622 (c-errors.o): Use it.
11623 (c-objc-common.o): Likewise.
11624 (c-common.o): Likewise.
11625 (c-opts.o): Likewise.
11626 (c-format.o): Likewise.
11627 (diagnostic.o): Likewise.
11628 (opts.o): Likewise.
11629 (toplev.o): Likewise.
11630 (rtl-error.o): Likewise.
11631 (dwarf2out.o): Likewise.
11632 (jump.o): Likewise.
11633 (pretty-print.o): New rule.
11635 2003-07-24 Roger Sayle <roger@eyesopen.com>
11637 * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11638 front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11639 (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11640 from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11641 (DEF_FRONT_END_LIB_BUILTIN): Delete.
11642 (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11643 (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11645 * builtins.c (build_string_literal): New function to construct
11646 a char* pointer to a string literal.
11647 (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11648 "rtx target" to be consistent with other expand_builtin_* functions.
11649 Change 3rd argument from "int unlocked" to "bool unlocked".
11650 (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11651 c-common.c to avoid front-end dependencies. Optimize printf("")
11652 as a no-op when the result isn't required. Handle embedded NULs
11654 (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11655 from c-common.c to avoid front-end dependencies. Likewise, optimize
11656 fprintf(fp,"") as a no-op when the result isn't required, evaluating
11657 fp for side-effects. Handle embedded NULs in format string.
11658 (expand_builtin_sprintf): Fix typo.
11659 (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11660 optimizing. Adjust calls of expand_builtin_fputs to match the API
11661 change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11662 expand_builtin_printf. Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11663 and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11665 * c-common.c (is_valid_printf_arglist): Delete.
11666 (c_expand_builtin): Delete.
11667 (c_expand_builtin_printf): Moved to builtins.c. Delete.
11668 (c_expand_builtin_fprintf): Moved to builtins.c. Delete.
11669 (c_expand_expr): No longer treat CALL_EXPRs specially.
11670 (CALLED_AS_BUILT_IN): Delete.
11672 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11674 PR optimization/11631
11675 * gcse.c (store_motion): Connect infinite loops to exit.
11677 2003-07-24 Jason Merrill <jason@redhat.com>
11679 * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11680 (boolean_true_node, boolean_false_node): Likewise.
11681 (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11682 * tree.c (build_common_tree_nodes): Init boolean_type_node.
11683 (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11684 * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11685 * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11686 (truthvalue_true_node): Renamed from boolean_true_node.
11687 (truthvalue_false_node): Renamed from boolean_false_node.
11688 * c-decl.c: Just set truthvalue_* to integer_*.
11689 * c-*.[ch]: s/boolean/truthvalue/. s/c_bool/boolean/.
11691 2003-07-24 Roger Sayle <roger@eyesopen.com>
11693 * c-decl.c (match_builtin_function_types): New subroutine of
11694 duplicate_decls to test whether a redeclaration of a builtin
11695 function is suitably close, i.e. the return type and all of
11696 the argument types have the same modes as the builtin expects.
11697 (duplicate_decls): Fuzzy type matching for builtin functions
11698 moved to match_builtin_function_types.
11700 2003-07-24 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
11702 * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11705 2003-07-24 Zack Weinberg <zack@codesourcery.com>
11707 * c-decl.c: Search-and-replace change 'binding level' to
11708 'scope' in commentary.
11709 (struct binding_level): Now struct c_scope.
11710 (current_binding_level): Now current_scope.
11711 (free_binding_level): Now scope_freelist.
11712 (current_function_level): Now current_function_scope.
11713 (global_binding_level): Now global_scope.
11714 (make_binding_level): Now make_scope.
11715 (pop_binding_level): Now pop_scope.
11717 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11719 * configure.in (libgcc_visibility): Add missing whitespace.
11721 2003-07-24 Richard Henderson <rth@redhat.com>
11723 * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11724 __gcc_personality_v0.
11726 2003-07-24 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
11728 * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11730 2003-07-24 Nathan Sidwell <nathan@codesourcery.com>
11732 * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11733 documentation missed from my 2003-07-09 patch.
11735 2003-07-24 Nathanael Nerode <neroden@gcc.gnu.org>
11737 * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11739 * configure: Rebuild.
11741 2003-07-24 Steven Bosscher <steven@gcc.gnu.org>
11744 * c-typeck.c (type_lists_compatible_p): Do not compare
11745 arguments if one of them is an error_mark_node
11747 2003-07-24 Alan Modra <amodra@bigpond.net.au>
11749 * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11750 if current_function_calls_eh_return.
11752 2003-07-23 Mark Mitchell <mark@codesourcery.com>
11754 * doc/c-tree.texi (OFFSET_TYPE): Update description.
11756 2003-07-23 Bob Wilson <bob.wilson@acm.org>
11758 * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11759 * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11760 __umodsi3, __modsi3): Increase frame size to 32.
11762 2003-07-23 Geoffrey Keating <geoffk@apple.com>
11764 * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11767 2003-07-23 Mark Mitchell <mark@codesourcery.com>
11769 * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11771 PR optimization/10679
11772 * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11774 2003-07-23 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
11776 PR target/11607 and PR target/11516
11777 * pa.md (extzv, extv, insv): Revert latter half of last patch.
11779 2003-07-22 Mark Mitchell <mark@codesourcery.com>
11781 * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11782 * varasam.c (output_constant): Likewise.
11784 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
11786 * alias.c: Fix comment formatting.
11787 * c-common.c: Likewise.
11788 * c-decl.c: Likewise.
11789 * c-opts.c: Likewise.
11790 * combine.c: Likewise.
11791 * cpplib.c: Likewise.
11792 * diagnostic.c: Likewise.
11793 * dojump.c: Likewise.
11794 * final.c: Likewise.
11795 * fold-const.c: Likewise.
11797 * gcse.c: Likewise.
11798 * ggc-page.c: Likewise.
11799 * jump.c: Likewise.
11800 * loop.c: Likewise.
11801 * mips-tfile.c: Likewise.
11802 * recog.c: Likewise.
11803 * regclass.c: Likewise.
11804 * regmove.c: Likewise.
11805 * tree.c: Likewise.
11806 * tree.h: Likewise.
11808 2003-07-22 Per Bothner <pbothner@apple.com>
11810 * line-map.c (add_line_map): Handle invalid LEAVE request.
11811 Fixes PR preprocessor/11361.
11813 2003-07-22 Per Bothner <pbothner@apple.com>
11815 * diagnostic.c.(diagnostic_report_current_module): Update to match
11816 2003-06-05 changes to push_srcloc and pop_srcloc.
11818 2003-07-22 Wolfgang Bangerth <bangerth@dealii.org>
11820 * doc/trouble.texi: Better document two-stage name lookup.
11822 2003-07-22 Eric Christopher <echristo@redhat.com>
11824 * config/s390.c (s390_valid_pointer_mode): New.
11825 (TARGET_VALID_POINTER_MODE): Use.
11826 (s390_emit_prologue): Add tpf profiling hooks.
11827 (s390_emit_epilogue): Ditto.
11828 * config/s390.h (MASK_TPF): New.
11830 (POINTERS_EXTEND_UNSIGNED): Define.
11831 * config/s390.md (ptr_extend): New pattern.
11833 2003-07-22 Zack Weinberg <zack@codesourcery.com>
11835 * hashtable.c (approx_sqrt): Make static.
11836 * hashtable.h: Don't prototype approx_sqrt.
11837 * line-map.c (init_line_maps): Rename linemap_init.
11838 (free_line_maps): Rename linemap_free.
11839 (add_line_map): Rename linemap_add.
11840 (lookup_line): Rename linemap_lookup.
11841 (print_containing_files): Rename linemap_print_containing_files.
11842 * linemap.h: Update to match.
11844 * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11845 linemap routines to use new names.
11847 2003-07-16 Nathan Sidwell <nathan@codesourcery.com>
11849 * c-common.c (handle_packed_attribute): Don't pack a struct via a
11850 typedef. Propagate packedness from a main variant.
11852 2003-07-22 Nathanael Nerode <neroden@gcc.gnu.org>
11854 * Makefile.in (install-common): Add dependency on installdirs.
11856 2003-07-21 Alexandre Oliva <aoliva@redhat.com>
11858 * c-common.c (c_common_type_for_mode): Return integer types for
11861 2003-07-22 Geoffrey Keating <geoffk@apple.com>
11863 * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11864 (finish_decl): Call maybe_apply_pragma_weak here.
11865 (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11866 TREE_PUBLIC and TREE_STATIC are decided.
11867 (start_function): Move call to maybe_apply_pragma_weak. Check that
11868 DECL_ASSEMBLER_NAME isn't set too early.
11870 * cpplex.c (_cpp_process_line_notes): Mention option name in
11873 2003-07-22 Kazu Hirata <kazu@cs.umass.edu>
11875 * combine.c (if_then_else_cond): Simplify the comparison of
11876 rtx against -1, 0, and 1.
11877 * loop.c (check_dbra_loop): Likewise.
11878 * optabs.c (emit_conditional_move): Likewise.
11879 (emit_conditional_add): Likewise.
11880 * config/i386/i386.md (*movsi_or): Likewise.
11881 (*movdi_or_rex6): Likewise.
11883 2003-07-22 Jan Hubicka <jh@suse.cz>
11885 * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11887 2003-07-21 Neil Booth <neil@daikokuya.co.uk>
11889 * cppfiles.c (open_file_pch): Don't put unused entries in the
11890 splay tree. Remove dead code.
11892 2003-07-21 Geoffrey Keating <geoffk@apple.com>
11894 * c-common.h (num_in_fnames): Declare.
11895 (c_static_assembler_name): Move from here...
11896 * c-tree.h (c_static_assembler_name): ... to here.
11897 * c-opts.c: Don't include langhooks-def.h.
11898 (c_static_assembler_name): Move to c-decl.c.
11899 (num_in_fnames): Make externally visible.
11900 * c-decl.c: Include langhooks-def.h.
11901 (c_static_assembler_name): Move from c-opts.c.
11902 * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11903 (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11905 * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11906 when it's not needed.
11908 2003-07-21 Jakub Jelinek <jakub@redhat.com>
11910 * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11911 * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11912 (rs6000_emit_prologue): Save FPRs inline if set.
11914 2003-07-21 H.J. Lu <hongjiu.lu@intel.com>
11916 * config/ia64/ia64.md (prefetch): Support predicate.
11918 2003-07-21 Josef Zlomek <zlomekj@suse.cz>
11920 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11921 * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11924 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
11926 PR optimization/11536
11927 * unroll.c (loop_iterations): Do not replace a register holding
11928 the final value by its equivalent before the loop if it is not
11931 2003-07-21 Dave Fluri <dave.fluri@onlink.net>
11933 * doc/extend.texi: Fixes to spelling, grammar, and diction.
11935 2003-07-21 Ben Elliston <bje@wasabisystems.com>
11937 * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11938 (V850 Options): Spelling fixes.
11940 2003-07-20 Lisa M. Goldstein <opus@gnu.org>
11942 * doc/invoke.texi: Fixes to style, grammar and diction.
11944 2003-07-20 Roger Sayle <roger@eyesopen.com>
11946 * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11947 * system.h (SMALL_STACK): Poison obsolete target macro.
11948 * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11950 2003-07-20 Phil Edwards <pme@gcc.gnu.org>
11952 * configure.in: Cache the results of testing for cmp's capabilities.
11953 * configure: Regenerate.
11955 2003-07-20 Mark Mitchell <mark@codesourcery.com>
11958 * dwarf2out.c (gen_enumeration_type_die): Remember that
11959 enumerators can be unsigned.
11961 2003-07-19 Zack Weinberg <zack@codesourcery.com>
11963 * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11964 (push_label_level, pop_label_level): Kill.
11965 (struct binding_level): Rename level_chain to outer.
11966 Add outer_function field. Change parm_flag, function_body,
11967 keep, keep_if_subblocks to 1-bit bitfields of type bool.
11968 (current_function_level): New variable.
11969 (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11970 (keep_next_level, declare_parm_level, warn_if_shadowing):
11972 (struct language_function): Kill named_labels, shadowed_labels fields.
11973 (c_init_decl_processing, start_function, c_push__function_context)
11974 (c_pop_function_context): No need to muck with named_labels nor
11977 (make_binding_level): No need to clear the structure here.
11978 (pop_binding_level): Always operate on current_binding_level.
11979 Update current_function_level if necessary.
11980 (pushlevel): Don't clear named_labels. Update current_function_level
11981 if necessary. Use "true" and "false" where appropriate.
11982 (poplevel): Diagnose labels defined but not used, or vice
11983 versa, and clear out label-meanings leaving scope, while
11984 walking down the decls list, for all binding levels.
11985 Handle LABEL_DECLs appearing in the shadowed list.
11986 pop_binding_level takes no arguments.
11987 (pushdecl_function_level): Use current_function_level.
11989 (make_label, bind_label): New static functions.
11990 (declare_label): New exported function.
11991 (lookup_label, define_label): Rewritten for new data structure.
11992 (shadow_label): Kill.
11994 * c-tree.h: Prototype declare_label; don't prototype
11995 push_label_level, pop_label_level, nor shadow_label.
11996 * c-parse.in: Remove all calls to push_label_level and
11997 pop_label_level. Use declare_label for __label__ decls.
11999 * doc/extend.texi: Clarify that __label__ can be used to
12000 declare labels with local scope in any nested block, not
12001 just statement expressions. Cross-reference nested functions
12002 section from local labels section.
12004 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12006 * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12008 2003-07-19 Phil Edwards <pme@gcc.gnu.org>
12010 * doc/makefile.texi (restrap, profiledbootstrap): Document targets.
12012 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12014 * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12015 fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12017 2003-07-19 Ulrich Weigand <uweigand@de.ibm.com>
12019 * config/s390/s390.c (legitimize_pic_address): Access local symbols
12020 relative to the GOT instead of relative to the literal pool base.
12021 (s390_output_symbolic_const): Handle new GOT-relative accesses.
12022 * config/s390/s390.md ("call"): Access local functions and PLT stubs
12023 relative to the GOT instead of relative to the literal pool base.
12024 ("call_value"): Likewise.
12025 ("call_value_tls"): Likewise.
12027 * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12028 reloading. Support LTREL_BASE / LTREL_OFFSET construct.
12029 (s390_chunkify_finish): Likewise.
12030 (s390_chunkify_cancel): Likewise.
12031 (s390_reorg): Adapt caller.
12032 (find_base_register_in_addr,
12033 find_base_register_ref, replace_base_register_ref): Delete.
12034 (find_ltrel_base, replace_ltrel_base): New functions.
12035 (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12036 (s390_decompose_address): Handle LTREL_BASE unspecs. Optimize
12037 base vs. index register usage.
12038 (struct constant_pool): Remove 'anchor'.
12039 (s390_add_anchor): Delete.
12040 (s390_dump_pool): Remove anchor handling.
12041 * config/s390/s390.md ("reload_anchor"): Remove.
12043 * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12044 (s390_load_got): New function. Use LTREL_BASE/OFFSET.
12045 (s390_emit_prologue): Use it.
12046 * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12047 "builtin_setjmp_receiver"): Cleanup. Use s390_load_got. Do not
12048 hard-code register 14.
12049 * config/s390/s390-protos.h (s390_load_got): Declare.
12051 * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12052 Support TImode constants.
12053 * config/s390/s390.md ("consttable_ti"): New.
12054 ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12056 * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12057 UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12058 UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12059 UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12060 UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12061 New symbolic constants.
12062 ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12063 "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12064 "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12065 "pool", "literal_pool_31", "literal_pool_64"): Cleanup. Use
12066 symbolic UNSPEC values.
12067 * config/s390/s390.c (larl_operand, s390_short_displacement,
12068 bras_sym_operand, s390_cannot_force_const_mem,
12069 s390_delegitimize_address, s390_decompose_address,
12070 legitimize_pic_address, s390_output_symbolic_const,
12071 s390_function_profiler): Use symbolic UNSPEC values.
12073 2003-07-19 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
12075 * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12076 c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12077 c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12078 collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12079 cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12080 cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12081 dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12082 fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12083 gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12084 genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12085 ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12086 integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12087 loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12088 postreload.c prefix.c print-tree.c protoize.c ra-build.c
12089 ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12090 regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12091 sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12092 simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12093 tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12094 varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12097 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12099 * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12100 * toplev.h (warning): Remove attribute.
12102 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12104 * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12105 (pop_label_level): Likewise.
12106 (duplicate_decls): Likewise.
12107 (implicitly_declare): Likewise.
12108 (shadow_label): Likewise.
12109 (start_decl): Likewise.
12110 (finish_decl): Likewise.
12111 (grokdeclarator): Likewise.
12112 (get_parm_info): Likewise.
12113 (detect_field_duplicates): Likewise.
12114 (finish_struct): Likewise.
12115 (start_function): Likewise.
12116 (store_parm_decls): Likewise.
12117 (finish_function): Likewise.
12118 (c_expand_body_1): Likewise.
12119 (check_for_loop_decls): Likewise.
12120 (merge_translation_unit_decls): Likewise.
12122 2003-07-19 Neil Booth <neil@daikokuya.co.uk>
12124 * common.opt: Document --param.
12125 * opts.c (columns, undocumented_msg): New.
12126 (print_help): Get number of columns from environment. Print
12127 --param help. Tweak newline handling.
12128 (print_param_help): New.
12129 (print_filtered_help): Better handling of duplicates. Complain
12130 about undocumented switches.
12131 (print_switch): New.
12132 (wrap_help): Improve wrapping, use COLUMNS.
12133 * opts.sh: Ignore comments in records.
12134 * params.def: Fix typos and remove trailing periods.
12135 * toplev.c (display_help): Don't dump --param help.
12136 * doc/sourcebuild.texi: Update.
12138 2003-07-18 Richard Henderson <rth@redhat.com>
12141 * optabs.c (prepare_operand): Fail gracefully instead of abort
12142 if the predicate doesn't satisfy.
12143 (gen_cond_trap): Allow prepare_operand to fail.
12145 2003-07-19 Gabriel Dos Reis <gdr@integrable-solutions.net>
12147 * c-common.c: Don't undefine GCC_DIAG_STYLE.
12148 (fname_decl): Don't use xxx_with_decl.
12149 (c_add_case_label): Likewise.
12150 (handle_section_attribute): Likewise.
12151 (handle_alias_attribute): Likewise.
12152 (handle_no_instrument_function_attribute): Likewise.
12153 (handle_no_limit_stack_attribute): Likewise.
12154 * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12155 * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12157 2003-07-19 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
12159 * Makefile.in (ifcvt.o): Add cfgloop.h.
12160 * basic-block.h (EDGE_LOOP_EXIT): New flag.
12161 * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12162 * ifcvt.c: Include cfgloop.h.
12163 (mark_loop_exit_edges): New static function.
12164 (if_convert): Call it.
12165 (find_if_header): Ignore branches out of loops.
12167 2003-07-18 Kazu Hirata <kazu@cs.umass.edu>
12169 * combine.c (simplify_comparison): Don't share rtx when converting
12170 (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12172 2003-07-18 David Edelsohn <edelsohn@gnu.org>
12174 * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12175 (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12176 (MUST_PASS_IN_STACK): Define.
12177 (BLOCK_REG_PADDING): Define.
12179 2003-07-18 Richard Henderson <rth@redhat.com>
12181 * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12182 to skip the addr_vec.
12184 2003-07-18 Alexandre Oliva <aoliva@redhat.com>
12186 * combine.c (combinable_i3pat): Don't forbid occurrences of
12187 i2dest or i1dest in inner_dest if inner_dest is a mem.
12189 2003-07-18 Jan Hubicka <jh@suse.cz>
12191 * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12193 2003-07-17 Jakub Jelinek <jakub@redhat.com>
12196 * loop.c (basic_induction_var): Check if convert_modes emitted any
12197 instructions. Remove them and return 0 if so.
12199 2003-07-18 Eric Botcazou <ebotcazou@libertysurf.fr>
12201 PR optimization/11083
12202 * toplev.c (rest_of_handle_addresof): Rename into
12203 rest_of_handle_addressof. Delete unreachable blocks
12204 if dead edges were purged after the addressof pass.
12206 2003-07-18 Neil Booth <neil@daikokuya.co.uk>
12208 * Makefile.in, configure, configure.in: Remove handling of
12209 lang-options.h and options_.h.
12210 * toplev.c (struct lang_opt, documented_lang_options): Remove.
12211 (display_help): Don't use documented_lang_options.
12213 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12215 * c-decl.c (pushdecl_function_level): Make static, return nothing.
12216 (kept_level_p): Fold into poplevel.
12217 (undeclared_variable): Moved here from c-typeck.c. Export.
12218 * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12219 (undeclared_variable): Prototype here. Don't prototype
12220 kept_level_p nor pushdecl_function_level.
12221 * c-parse.in: Change first argument to poplevel from
12222 "kept_level_p()" to "KEEP_MAYBE".
12223 * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12225 2003-07-17 Roger Sayle <roger@eyesopen.com>
12227 * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12228 commutative operands instead of modifying the RTL in-place.
12230 2003-07-17 Mark Mitchell <mark@codesourcery.com>
12232 PR optimization/11557
12233 * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12234 unless we know which function is being called.
12236 2003-07-17 Roger Sayle <roger@eyesopen.com>
12238 * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12239 whether to reorder the operands of a commutative binary operator.
12241 2003-07-17 Roger Sayle <roger@eyesopen.com>
12243 * fold-const.c (const_binop): Avoid performing the FP operation at
12244 compile-time, if either operand is NaN and we honor signaling NaNs,
12245 or if we're dividing by zero and either flag_trapping_math is set
12246 or the desired mode doesn't support infinities.
12247 (fold_initializer): New function to fold an expression ignoring any
12248 potential run-time exceptions or traps.
12249 * tree.h (fold_initializer): Prototype here.
12250 * c-typeck.c (build_binary_op): Move to the end of the file so
12251 that intializer_stack is in scope. If constructing an initializer,
12252 i.e. when initializer_stack is not NULL, use fold_initializer to
12254 * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12255 performing FP operations at compile-time, if they would raise an
12256 exception at run-time.
12258 2003-07-17 Geoffrey Keating <geoffk@apple.com>
12261 * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12262 (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12263 (GTFILES): Add langhooks.c.
12264 (gt-langhooks.h): New.
12265 * c-common.h (c_static_assembler_name): Prototype.
12266 * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12267 * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12268 * c-opts.c: Include langhooks-def.h.
12269 (c_static_assembler_name): New.
12270 * langhooks.c: Include ggc.h. Include gt-langhooks.h.
12271 (var_labelno): New.
12272 (lhd_set_decl_assembler_name): Give static objects with context
12274 * varasm.c (var_labelno): Delete.
12275 (make_decl_rtl): Don't change the assembler name once it's set.
12277 * c-opts.c (this_input_filename): New.
12278 (finish_options): Take new parameter, name of file being compiled.
12279 Update callers. Set this_input_filename.
12280 (push_command_line_include): Use this_input_filename not
12281 main_input_filename.
12283 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12285 * Makefile.in: Depend .pot generation on options.c.
12286 * po/exgettext: Add an extra_files variable containing additional
12289 2003-07-17 Zack Weinberg <zack@codesourcery.com>
12291 * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12292 c_write_global_declarations.
12294 * c-decl.c: Fix typos in several comments. Remove all
12295 #if 0 blocks; reindent as needed. Remove unused argument
12296 to declare_parm_level; all callers changed.
12297 * c-parse.in: Update calls to declare_parm_level. Avoid
12298 issuing a double warning in some circumstances.
12299 * c-typeck.c: Update calls to declare_parm_level.
12300 * c-tree.h: Update prototype of declare_parm_level.
12302 * c-pragma.c (apply_pragma_weak): Don't complain about a
12303 redundant #pragma weak.
12305 * objc/objc-act.c (forward_declare_categories,
12306 build_selector_reference_decl, build_class_reference_decl,
12307 build_objc_string_decl, synth_forward_declarations,
12308 build_protocol_reference): Set TREE_PUBLIC on synthetic
12309 forward decl to 0, consistent with eventual definition.
12310 Correct comments to match.
12312 * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12313 in regexp that don't form a range expression.
12314 * fixinc/fixincl.def: Regenerate.
12316 2003-07-17 Richard Henderson <rth@redhat.com>
12319 * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12320 even with !TARGET_CONST_GP.
12321 (ia64_function_ok_for_sibcall): Reject non-local functions.
12323 2003-07-17 Steven Bosscher <steven@gcc.gnu.org>
12325 * c-common.c (c_estimate_num_insns_1): Don't handle
12327 * expr.c (safe_from_p): Likewise.
12328 * gengtype.c (adjust_field_tree_exp): Likewise.
12329 * stmt.c (warn_if_unused_value): Likewise
12330 * tree.c (first_rtl_op): Likewise.
12331 * tree.def: Don't define METHOD_CALL_EXPR.
12332 * java/lang.c (java_estimate_num_insns_1): Don't handle
12335 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12338 * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12339 and its restrictions for the SPARC64 port.
12340 Move the entry of "-mimpure-text" before that of "-mv8".
12342 2003-07-17 Eric Botcazou <ebotcazou@libertysurf.fr>
12343 Phil Edwards <phil@jaj.com>
12345 * doc/install.texi (*-*-solaris2*): Document the step-by-step
12346 procedure to bootstrap and install.
12347 Document the preference for the legacy Sun tools in /usr/bin
12348 over the POSIX tools in /usr/xpg4/bin for the build process.
12350 2003-07-17 Neil Booth <neil@daikokuya.co.uk>
12352 * c.opt: Document Uncodumented; use it. Document ObjC options.
12353 * opts.c (print_filtered_help): Skip undocumented switches.
12354 * opts.h (CL_UNDOCUMENTED): New.
12355 * opts.sh: Handle Undocumented.
12356 * toplev.c (documented_lang_options): Prevent its becoming empty.
12358 * lang-options.h: Remove.
12360 2003-07-16 Ulrich Weigand <uweigand@de.ibm.com>
12362 * loop.c (check_ext_dependent_givs): Pass const struct loop *
12363 instead of struct loop_info * as argument. Accept BIVs with
12364 increment +/- 1 provided there is a friendly exit test against
12365 a loop-invariant value.
12366 (strength_reduce): Adapt call to check_ext_dependent_givs.
12368 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12369 Con Bradley <con.bradley@superh.com>
12371 * sh-protos.h (sh_get_pr_initial_val): Declare.
12372 * sh.c (regno_reg_class): Make its elements type enum reg_class.
12373 (output_stack_adjust): Remove emit_fn argument. Add epilogue_p
12374 and live_regs_mask arguments. Changed all callers.
12375 (save_schedule_s): New structure.
12376 (save_schedule): New typedef.
12377 (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12378 (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12379 In interrupts handlers, also save registers that are usually
12380 partially saved, and make sure there is at least one general purpose
12381 register saved if a target register needs saving.
12382 Add casts in comparisons to avoid warnings.
12383 (sh_media_register_for_return): return -1 for interrupt handlers.
12384 (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12385 (sh_expand_prologue): Use sh5_schedule_saves. Check that any temp
12386 registers used are available.
12387 Set RTX_FRAME_RELATED_P where appropriate.
12388 Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12389 (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12390 (initial_elimination_offset): Likewise.
12391 * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12392 (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12393 (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12394 (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12395 (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12396 and for target registers.
12397 (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12398 (regno_reg_class): Make its elements type enum reg_class.
12399 (CONSTRAINT_LEN): Don't use isdigit.
12400 (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12401 (FUNCTION_ARG): Add parentheses to avoid warnings.
12402 (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12403 (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12404 (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12405 (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12406 * sh.md (xordi3+1): Remove unused variable regno.
12407 (return_media): Check that tr0 is available before using it.
12409 2003-07-16 Neil Booth <neil@daikokuya.co.uk>
12411 * c.opt: Document more options.
12413 2003-07-16 Roger Sayle <roger@eyesopen.com>
12415 * combine.c (subst): Also handle (subreg (const_double ...)) case
12416 if created by a substitution, by using the original inner mode.
12418 2003-07-16 Roger Sayle <roger@eyesopen.com>
12420 * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12421 to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12422 (simplify_rtx): Likewise. Simplify (lo_sum (high X) X) as X.
12424 2003-07-16 Andrew Pinski <pinskia@physics.uc.edu>
12426 * doc/install.texi (--without-headers): New.
12428 Partial Fix PR/10129
12429 * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12430 (machopic_output_function_base_name): New; print the true pic label.
12431 (machopic_classify_ident): Pic Base is always a defined data.
12432 * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12433 * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12435 * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12436 if they are not floating point registers.
12439 * ggc.h: Add header guards.
12440 * c-decl.c (finish_struct): Sort fields if
12441 number greater than 15 and there are no
12442 anonymous structs/unions.
12443 * c-common.h: Include ggc.h.
12444 (sorted_fields_type): New struct.
12445 (field_decl_cmp): New prototype.
12446 (resort_sorted_fields): New prototype.
12447 (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12448 * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12449 as s, removing other fields.
12450 * c-typeck.c (lookup_field): Use s in lang_type.
12451 These were mostly moved from cp/class.c:
12452 * c-common.c (field_decl_cmp): New static function.
12453 (field_decl_cmp): New function.
12454 (resort_sorted_fields): New function.
12456 2003-07-16 Geoffrey Keating <geoffk@apple.com>
12458 * config/darwin.c (machopic_select_section): Use decl_readonly_section
12459 to do most of the work.
12461 2003-07-16 Hans-Peter Nilsson <hp@bitrange.com>
12463 * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12464 * config/mmix/mmix.c: Convert functions to ISO C90.
12465 (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12467 (mmix_get_hard_reg_initial_val): Tweak section head comment.
12469 2003-07-16 J"orn Rennecke <joern.rennecke@superh.com>
12471 * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12473 2003-07-16 Jakub Jelinek <jakub@redhat.com>
12475 * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12476 (uw_update_context_1): Use it.
12477 * config/rs6000/rs6000.c (insn_after_throw): Remove.
12478 (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12479 in parent frame if _Unwind_* called directly instead of through
12481 (rs6000_emit_eh_toc_restore): Remove.
12482 (rs6000_emit_prologue): Update stack pointer before doing any saving
12483 if current_function_calls_eh_return. Generate unwind info for $r2.
12484 (rs6000_emit_epilogue): Restore stack pointer after doing all
12485 restoring if current_function_calls_eh_return. Restore $r2.
12486 * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12487 * config/rs6000/rs6000.md (eh_return): Remove call to
12488 rs6000_emit_eh_toc_restore.
12489 * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12490 * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12492 2003-07-15 Jakub Jelinek <jakub@redhat.com>
12494 * expr.c (emit_block_move): Don't move anything if size is const 0.
12495 (clear_storage): Test against const0_rtx instead of comparing INTVAL
12498 2003-07-15 David S. Miller <davem@redhat.com>
12500 * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12501 emit nop if the last real insn is CALL_INSN.
12503 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12505 * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12507 * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12509 2003-07-16 Danny Smith <dannysmith@users.sourceforge.net>
12511 * config/i386/winnt.c (associated_type): Artificial methods are not
12512 affected by the import/export status of their class unless they are
12514 (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12516 * config/i386/winnt.c: Fix GCC copyright comment.
12518 2003-07-16 Gabriel Dos Reis <gcc@integrable-solutions.net>
12521 * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12522 not recursing on hard error.
12523 (diagnostic_for_decl): Likewise.
12524 * diagnostic.def: Rearrange.
12526 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12528 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12529 If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12531 2003-07-15 J"orn Rennecke <joern.rennecke@superh.com>
12532 Richard Henderson <rth@redhat.com>
12534 * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12535 to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12536 (_Unwind_SetGR): Likewise.
12537 (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12538 (Unwind_SpTmp): New typedef.
12539 (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12540 (uw_update_context): Use _Unwind_GetPtr.
12541 (init_dwarf_reg_size_table): Move above uw_init_context_1.
12542 (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12543 Use _Unwind_SetSpColumn.
12544 (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12545 Use _Unwind_GetPtr.
12547 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12549 * c.opt: Document more options.
12550 * toplev.c (documented_lang_options): Remove all local help strings.
12552 2003-07-15 Mark Mitchell <mark@codesourcery.com>
12555 * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12558 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12561 * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12562 swap comparison operands if doing so would generate an
12563 unrecognizable insn.
12565 2003-07-15 Eric Botcazou <ebotcazou@libertysurf.fr>
12567 PR optimization/11320
12568 * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12569 (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12570 * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12571 current_sched_info->compute_jump_reg_dependencies. Record which
12572 registers are used and which registers are set by the jump.
12573 Clear deps->reg_conditional_sets after a barrier.
12574 Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12575 Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12576 (init_deps): Initialize reg_conditional_sets.
12577 (free_deps): Clear reg_conditional_sets.
12578 * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12579 Mark registers live on entry of the fallthrough block and conditionally
12580 set as set by the jump. Mark registers live on entry of non-fallthrough
12581 blocks as used by the jump.
12582 * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12583 Mark new parameters as unused.
12585 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12587 * doc/invoke.texi: Resync MIPS -march documentation.
12589 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12591 * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12592 (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12593 (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12594 * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12595 (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12596 (mips_issue_rate): Handle PROCESSOR_R9000.
12597 (mips_use_dfa_pipeline_interface): Likewise.
12598 * config/mips/9000.md: New file.
12599 * config/mips/mips.md: Include it.
12600 (define_attr cpu): Add r9000.
12601 (mulsi3_mult3): Use "mul" for rm9000 code.
12603 2003-07-15 Stan Cox <scox@redhat.com>
12605 * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12606 (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12607 (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12608 * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12609 (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12610 (mips_issue_rate): Handle PROCESSOR_R7000.
12611 (mips_use_dfa_pipeline_interface): Likewise.
12612 * config/mips/7000.md: New file.
12613 * config/mips/mips.md: Include it.
12614 (define_attr cpu): Add r7000.
12615 (mulsi3_mult3): Use "mul" for rm7000 code.
12617 2003-07-15 Richard Sandiford <rsandifo@redhat.com>
12619 * config/mips/mips.md (define_attr type): Add condmove. Use it for
12620 the conditional move patterns.
12621 * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12622 Check for condmove type.
12623 (ir_vr54_arith): Add move type.
12624 * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12625 * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12627 2003-07-15 Neil Booth <neil@daikokuya.co.uk>
12629 * c-opts.c (print_help): Remove.
12630 (c_common_handle_option): Don't handle --help.
12631 * c.opt: Document some options.
12633 * opts.c (print_filtered_help): New.
12634 (print_help): Use it.
12636 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12638 * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12639 * tree.c: (build_common_tree_nodes_2): Likewise.
12640 * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12641 (V4DF_type_node): New.
12643 * c-opts.c (push_command_line_include): Don't free deferred_opts,
12645 (finish_options): Reset init_cursor.
12647 2003-07-15 Kazu Hirata <kazu@cs.umass.edu>
12649 * expr.c (expand_assignment): Remove an unused argument
12651 * expr.h: Update the prototype.
12652 * function.c: Update the callers.
12653 * stmt.c: Likewise.
12655 2003-07-14 Mark Mitchell <mark@codesourcery.com>
12658 * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12661 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
12663 * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12664 with __cplusplus, not "we must use the C++ compiler's type"
12665 * fixinc/inclhack.def (void_null): Note that Interix needs this.
12666 * fixinc/fixincl.x: Regenerate.
12668 2003-07-14 Geoffrey Keating <geoffk@apple.com>
12670 * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12671 and unseen_objects from the global data before calling
12672 __deregister_frame_info_bases.
12673 (examine_objects): Insert objects into the seen_objects list,
12674 not unseen_objects.
12675 (_Unwind_Find_FDE): Always unlock the global object lists, even if
12676 we couldn't allocate a data structure to put in it.
12678 * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12679 (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12680 (SET_TYPE_PROTOCOL_LIST): New.
12681 * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12682 (get_object_reference): Likewise.
12684 2003-07-14 Jan Hubicka <jh@suse.cz>
12686 * cfglayout.c (locator_file): Break out from ....
12687 (insn_file): ... here.
12688 (locator_line): Break out from ....
12689 (insn_line): ... here.
12690 * rtl.h (locator_file, locator_line): Declare.
12691 (final_start_function): Set proper line/file info.
12693 2003-07-14 Gabriel Dos Reis <gdr@integrable-solutions.net>
12695 * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12696 handled by pp_c_cast_expression.
12698 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12700 * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12701 allocate 32768 bytes of stack. Use addition rather than subtraction
12702 when a single insn is enough.
12703 * config/mips/mips.md: Remove insns and splitters for subtracting
12705 (subsi3): Only accept register operands.
12706 (subsi3_internal): Likewise. Use for TARGET_MIPS16 as well.
12707 (subdi3_internal_3, subsi3_internal_2): Likewise.
12708 (casesi): Use expand_binop to subtract the lower bound.
12710 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12712 * config/mips/mips.c (mips_in_small_data_p): Don't handle
12713 TARGET_MIPS16 specially.
12715 2003-07-14 Richard Sandiford <rsandifo@redhat.com>
12717 * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12718 mips_output_aligned_bss.
12719 * config/mips/linux.h: Likewise.
12720 * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12721 * config/mips/mips.c (mips_output_aligned_bss): New function.
12723 * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12724 * config/mips/elf64.h: Likewise.
12726 * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12727 mips_declare_object_name.
12728 (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12729 * config/mips/elf64.h: As for elf.h.
12730 * config/mips/iris6.h: Likewise.
12731 * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12732 * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12733 do...while (0) block.
12734 * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12735 (mips_finish_declare_object): Declare.
12736 * config/mips/mips.c (mips_declare_object_name): New function.
12737 (mips_finish_declare_object): New function.
12739 * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12740 * config/mips/linux.h: Likewise.
12742 * config/mips/mips.c (inside_function): Delete.
12743 (file_in_function_warning, ignore_line_number): Delete.
12744 (mips_output_filename): Don't warn about changing filenames within
12746 (mips_output_lineno): Update accordingly.
12747 (mips_output_function_prologue): Don't reset the deleted variables.
12748 * config/mips/mips.h (inside_function): Delete.
12749 (file_in_function_warning, ignore_line_number): Delete.
12751 * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12752 * config/mips/elf64.h: Likewise.
12753 * config/mips/openbsd.h: Likewise.
12754 * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12755 * config/mips/linux.h: Likewise.
12756 * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12757 (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12759 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12760 to the list of include files when using gas.
12761 (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12762 * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12763 * config/mips/elf64.h: Likewise.
12764 * config/mips/iris5.h: Likewise.
12765 * config/mips/linux.h: Likewise.
12766 * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12767 * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12768 (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12769 * config/mips/sdb.h: ...this new file.
12771 2003-07-14 Douglas Rupp <rupp@gnat.com>
12773 * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12774 argument to getcwd; use fixed buffer instead.
12776 2003-07-14 Nathanael Nerode <neroden@gcc.gnu.org>
12778 * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12779 * fixinc/fixinc.wrap: Delete.
12781 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
12783 * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12786 2003-07-14 Dan Nicolaescu <dann@ics.uci.edu>
12788 * ggc-page.c (struct globals): Add new fields to keep track of the
12789 total allocated memory and overhead.
12790 (ggc_print_statistics): Print them.
12791 (ggc_alloc): Keep track of the total allocated memory and the
12794 * tree.c (dump_tree_statistics): Increase spacing.
12795 (enum tree_node_kind): Move to ...
12796 * tree.h (enum tree_node_kind): ... here.
12797 (tree_node_counts, tree_node_sizes): Declare.
12799 2003-07-14 James A. Morrison <ja2morri@student.math.uwaterloo.ca>
12801 * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12803 2003-07-14 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
12805 PR optimization/11440
12806 * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12809 2003-07-14 Alan Modra <amodra@bigpond.net.au>
12811 * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12812 * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12813 (emit_group_load, emit_group_store): Adjust declarations.
12814 Remove most occurrences of #ifdef TREE_CODE.
12815 * expr.c (emit_group_load): Add "type" param, and use
12816 BLOCK_REG_PADDING to determine need for a shift. Optimize non-
12817 aligned accesses if !SLOW_UNALIGNED_ACCESS.
12818 (emit_group_store): Likewise.
12819 (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12820 emit_group_load and emit_group_store calls.
12821 * calls.c (store_unaligned_arguments_into_pseudos): Tidy. Use
12822 BLOCK_REG_PADDING to determine whether we need endian_correction.
12823 (load_register_parameters): Localize vars. Handle shifting of
12824 small values to the correct end of regs. Adjust emit_group_load
12826 (expand_call, emit_library_call_value_1): Adjust emit_group_load
12827 and emit_group_store calls.
12828 * function.c (assign_parms): Set mem alignment for stack slots.
12829 Adjust emit_group_store call. Store values at the "wrong" end
12830 of regs to the stack. Use BLOCK_REG_PADDING.
12831 (locate_and_pad_parm): Save where_pad.
12832 (expand_function_end): Adjust emit_group_load call.
12833 * stmt.c (expand_value_return): Adjust emit_group_load call.
12834 * Makefile.in (calls.o): Depend on $(OPTABS_H).
12835 * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12836 (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12837 (MUST_PASS_IN_STACK): Define.
12838 (BLOCK_REG_PADDING): Define.
12839 * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12840 (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12841 * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12842 (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12843 Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12845 2003-07-13 Aaron W. LaFramboise <awlaframboise@aol.com>
12847 * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12849 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12851 * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12852 both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12854 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
12857 * toplev.c: Don't cut off option names.
12859 2003-07-13 Andreas Jaeger <aj@suse.de>
12861 * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12862 to integer of different size.
12864 2003-07-13 Kazu Hirata <kazu@cs.umass.edu>
12866 * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12867 to (eq (and X 1) 0).
12869 2003-07-13 Andreas Jaeger <aj@suse.de>
12871 * config.gcc: Add pmmintrin.h for x86_64-*-*.
12873 2003-07-13 Zack Weinberg <zack@codesourcery.com>
12875 * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12876 (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12877 list. Move these all together down by cpplib.
12879 * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12880 definition of CPPCHAR_SIGNED_T.
12882 * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12883 * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12884 * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12886 * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12887 * cppinit.c (cpp_create_reader): Likewise.
12889 * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12890 * cpptrad.c: Likewise. All callers changed.
12891 * cpplib.c: All callers changed.
12892 * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12893 * hashtable.h: Define GTY(x) to nothing here too.
12895 2003-07-13 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
12897 * stor-layout.c (compute_record_mode): Remove very obsolete test
12898 that forces BLKmode for records with fields crossing word boundary.
12900 2003-07-13 Zack Weinberg <zack@codesourcery.com>
12902 * Makefile.in: Remove orphan reference to acconfig.h.
12904 2003-07-13 Andreas Jaeger <aj@suse.de>
12906 * cgraphunit.c: Convert prototypes to ISO C90.
12908 2003-07-13 Nathanael Nerode <neroden@gcc.gnu.org>
12910 * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12912 * fixinc/fixincl.x: Rebuild.
12914 2003-07-12 Zack Weinberg <zack@codesourcery.com>
12916 * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12917 i?86-*-*. Use correct name of cache variable.
12918 * configure: Regenerate.
12920 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
12922 * config/alpha/alpha.c: Fix comment typos.
12923 * config/alpha/alpha.md: Likewise.
12924 * config/arm/arm.c: Likewise.
12925 * config/arm/arm.md: Likewise.
12926 * config/arm/lib1funcs.asm: Likewise.
12927 * config/avr/avr.md: Likewise.
12928 * config/arm/README-interworking: Fix typos.
12930 2003-07-12 Kazu Hirata <kazu@cs.umass.edu>
12932 * c-format.c: Fix comment formatting.
12933 * c-typeck.c: Likewise.
12934 * coverage.c: Likewise.
12935 * cppcharset.c: Likewise.
12936 * cpplib.c: Likewise.
12937 * dbxout.c: Likewise.
12938 * gcov-io.h: Likewise.
12939 * toplev.c: Likewise.
12941 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
12943 * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12946 2003-07-12 Zack Weinberg <zack@codesourcery.com>
12948 * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12949 uses three-argument AC_DEFINE so no acconfig.h entries are
12951 (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12952 which contains the GAS version number as a scaled integer.
12953 (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers. Add
12954 ability to check for ELF assembler.
12955 (gcc_GAS_CHECK_FEATURE): New macro.
12956 * configure.in: Use gcc_AC_CHECK_TYPE. Rewrite all
12957 assembler feature checks using gcc_GAS_CHECK_FEATURE.
12958 Use three-argument AC_DEFINE everywhere.
12959 * acconfig.h: Deleted.
12960 * config.in, configure: Regenerate.
12962 2003-07-12 Nathanael Nerode <neroden@gcc.gnu.org>
12964 * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12966 * fixinc/fixincl.x: Regenerate.
12968 * fixinc/inclhack.def (gnu_types): Improve comment.
12970 2003-07-12 Andreas Jaeger <aj@suse.de>
12972 * fp-test.c (main): Use ISO C90 prototype.
12974 * version.c: Remove unneded include of ansidecl.h.
12976 * cgraph.h: Convert prototypes to ISO C90.
12977 * cgraph.c: Likewise.
12978 * fix-header.c: Likewise.
12980 * protoize.c: Likewise.
12982 2003-07-12 Jan Hubicka <jh@suse.cz>
12984 * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12987 2003-07-12 Jan Hubicka <jh@suse.cz>
12988 Gerald Pfeifer <pfeifer@dbai.tuwien.ac.at>
12990 * cgraph.c (cgraph_max_uid): New global variable.
12991 (cgraph_node): Set uid field.
12992 (create_edge): Keep inline flags consistent.
12993 (dump_cgraph): Dump more info.
12994 * cgraph.h (struct cgraph_local_info): Remove inline_many and
12995 can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12996 (struct cgraph_global_info): Add insns, calls, cloned_times,
12998 (struct cgraph_node): Add uid.
12999 (struct cgraph_edge): Add inline_call.
13000 (cgraph_max_uid, cgraph_inline_p): Declare.
13001 * cgraph.c: Include params.h and fibheap.h
13002 (cgraph_mark_functions_to_inline_once): Kill.
13003 (INSNS_PER_CALL): New constant.
13004 (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13006 (cgraph_finalize_function): Do not analyze inlining.
13007 (cgraph_finalize_compilation_unit): Set inlining attributes.
13008 (cgraph_mark_functions_to_output): More consistency checks.
13009 (cgraph_optimize_function): Set current_function_decl to NULL.
13010 (cgraph_expand_function): Use new inline flags.
13011 (cgraph_postorder): Expand from cgraph_expand_functions.
13012 (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13013 (cgraph_inlined_into, cgraph_inlined_callees,
13014 cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13015 cgraph_mark_inline, cgraph_check_inline_limits,
13016 cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13017 cgraph_decide_inlining, cgraph_inline_p): New functions.
13018 * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13019 PARAM_INLINE_UNIT_GROWTH): New parameters.
13020 * tree-inline.c (struct inline_data): New field current_decl.
13021 (expand_call_inline): Avoid forward declarations; use
13022 inlinable_function_p.
13023 (optimize_inline_calls): Set id.current_decl.
13025 2003-07-11 Andrew Pinski <pinskia@physics.uc.edu>
13027 * configure.in: Remove wrongly added definition of
13029 * configure: Regenerate.
13031 2003-07-11 Dan Nicolaescu <dann@ics.uci.edu>
13033 * rtl.def (NOTE): Do not use padding.
13035 2003-07-11 Dara Hazeghi <dhazeghi@yahoo.com>
13037 * doc/install.tex: Update required binutils for i?86-*-linux*
13039 2003-07-11 Richard Henderson <rth@redhat.com>
13041 * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13043 2003-07-11 Mark Mitchell <mark@codesourcery.com>
13045 * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13046 TRANSLATION_UNIT_DECL as top_level.
13048 2003-07-11 Jakub Jelinek <jakub@redhat.com>
13050 * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13051 then fall back to cmpstrM.
13052 * builtins.c (expand_builtin_memcmp): Likewise.
13053 * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13054 (s390_expand_cmpmem): ... this.
13055 * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13056 cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13057 from cmpstr* patterns. Rename call to s390_expand_cmpstr
13058 to s390_expand_cmpmem.
13059 * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13060 (s390_expand_cmpstr): ... this. Rename cmpstr* instructions
13062 * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13064 * doc/md.texi (cmpstrM): Describe as String compare insn, not
13065 Block compare insn.
13068 2003-07-11 Loren James Rittle <ljrittle@acm.org>
13070 * config/i386/freebsd.h (SET_ASM_OP): Remove.
13071 (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13072 (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13073 MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13075 2003-07-11 Richard Henderson <rth@redhat.com>
13077 * function.c (assign_parms): Don't recombine complex args if
13078 fnargs is unchanged from orig_fnargs.
13079 (split_complex_args): Return args without complex before copying.
13080 Re-layout the modified parameters.
13082 2003-07-11 J"orn Rennecke <joern.rennecke@superh.com>
13084 * regclass.c (choose_hard_reg_mode): Add third argument.
13085 Changed all callers.
13086 * rtl.h (choose_hard_reg_mode): Update declaration.
13087 * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13088 Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13090 2003-07-11 Geoffrey Keating <geoffk@apple.com>
13092 * c-decl.c (finish_decl): Handle 'used' here...
13093 * cgraphunit.c (cgraph_finalize_function): ... and here ...
13094 * c-common.c: (handle_used_attribute): ... not here.
13096 * configure.in (onstep): Support --enable-intermodule.
13097 * Makefile.in (OBJS-common): New.
13099 (OBJS-archive): New.
13100 (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13101 (OBJS-onestep): New.
13102 (libbackend.a): Support @onestep@.
13103 (libbackend.o): New.
13104 * configure: Regenerate.
13106 * c-common.h (c_reset_state): New prototype.
13107 (c_parse_file): New prototype.
13108 (finish_file): Move prototype from c-tree.h.
13109 * c-decl.c: Include <hashtab.h>.
13110 (builtin_decls): New.
13111 (current_file_decl): New.
13112 (duplicate_decls): Add extra parameter. Change all callers. Don't
13113 output duplicate common symbols.
13114 (link_hash_hash): New.
13115 (link_hash_eq): New.
13116 (poplevel): Handle popping of the top level.
13117 (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13118 (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13119 (pushdecl_top_level): Likewise.
13120 (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13121 (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13122 (finish_decl): Handle TRANSLATION_UNIT_DECL.
13123 (merge_translation_unit_decls): New.
13124 (c_write_global_declarations): New.
13125 (c_reset_state): New.
13126 (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13127 * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13128 * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13129 TRANSLATION_UNIT_DECL.
13130 (c_objc_common_finish_file): Call merge_translation_unit_decls.
13131 * c-opts.c (in_fnames): Rename from in_fname.
13132 (c_common_decode_option): Handle multiple input filenames.
13133 (c_common_post_options): Likewise.
13134 (c_common_parse_file): Likewise; also, call c_parse_file rather than
13136 * c-parse.in: Move cleanup code to c_parse_file.
13137 (free_parser_stacks): Move contents to c_parse_file.
13138 (c_parse_file): New.
13139 * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13141 (C_DECL_FILE_SCOPE): New.
13142 (finish_file): Move prototype to c-common.h.
13143 (merge_translation_unit_decls): New prototype.
13144 (comptypes): Add extra parameter to prototype.
13145 (c_write_global_declarations): New prototype.
13146 * c-typeck.c (tagged_types_tu_compatible_p): New.
13147 (function_types_compatible_p): Add extra parameter, change all callers.
13148 (type_lists_compatible_p): Likewise.
13149 (comptypes): Likewise.
13150 (struct tagged_tu_seen): New.
13151 (tagged_tu_seen_base): New.
13152 (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13153 (c_mark_addressable): Remove #if 0 code.
13154 * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13155 comment explaining why it shouldn't have to.
13156 * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13158 * cppinit.c (cpp_read_next_file): New.
13159 (cpp_read_main_file): Use it.
13160 * cpplib.c (undefine_macros): New.
13161 (cpp_undef_all): New.
13162 * cpplib.h (cpp_read_next_file): Prototype.
13163 (cpp_undef_all): Prototype.
13164 * langhooks-def.h (write_global_declarations): Remove prototype.
13165 * toplev.h (write_global_declarations): Add prototype.
13166 * tree.c (decl_type_context): Use switch statement, handle
13167 TRANSLATION_UNIT_DECL.
13168 * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13169 (TRANSLATION_UNIT_DECL): New kind of tree.
13170 * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13171 * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13172 * doc/invoke.texi: Make attempt to document new functionality.
13174 2003-05-19 Per Bothner <bothner@apple.com>
13176 * gcc.c (combine_inputs): New.
13177 (process_command): Set combine_inputs.
13178 (do_spec_1): Handle combine_inputs.
13181 2003-07-10 James E Wilson <wilson@tuliptree.org>
13183 PR optimization/9745
13184 * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13185 loop_insn_emit_before.
13186 (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13188 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13190 * cppcharset.c: Fix comment.
13191 (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13192 (EILSEQ): #define to EINVAL if not already defined.
13193 (convert_using_iconv): #if out when !HAVE_ICONV.
13194 (init_iconv_desc): Handle !HAVE_ICONV here...
13195 (cpp_init_iconv): ...not here.
13197 2003-07-11 Neil Booth <neil@daikokuya.co.uk>
13199 * common.opt: More --help messages.
13200 * opts.c (print_help): Use puts().
13201 * toplev.c (f_options): Remove help text.
13202 (display_help): Don't dump f_options.
13204 2003-07-11 Nathanael Nerode <neroden@gcc.gnu.org>
13206 * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13207 Move i?86-*-interix* to the don't-fix list.
13208 * fixinc/fixinc.interix: Delete with extreme prejudice.
13210 2003-07-10 Dara Hazeghi <dhazeghi@yahoo.com>
13213 * doc/install.texi: Document requirements for ia64-*-hpux* target.
13215 2003-07-10 Roger Sayle <roger@eyesopen.com>
13217 * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13219 2003-07-10 Zack Weinberg <zack@codesourcery.com>
13221 * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13222 one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13223 one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13224 convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13225 convert_no_conversion, convert_using_iconv): New functions.
13226 (APPLY_CONVERSION): New macro.
13227 (struct conversion, conversion_tab): New data structure.
13228 (init_iconv_desc): Check conversion_tab for a custom conversion
13229 primitive before trying to use iconv.
13230 (convert_cset): Deleted.
13231 (cpp_init_iconv): Use UTF- terminology, not UCS-.
13232 (_cpp_destroy_iconv): Update to match.
13233 (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13234 (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13235 (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13236 (_cpp_interpret_string_notranslate): New function, moved here
13239 * cpphash.h (convert_f, struct cset_converter): New types.
13240 (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13241 are now struct cset_converter, not bare iconv_t.
13243 * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13244 all callers changed.
13246 2003-07-10 Kelley Cook <kelleycook@wideopenwest.com>
13248 * Makefile.in (options.h): Depend on Makefile. Add move-if-change
13249 to opts.sh command line.
13250 * opts.sh: Write to temporary files with a move-if-change at the end.
13252 2003-07-10 Denis Chertykov <denisc@overta.ru>
13253 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13255 * combine.c (gen_binary): Handle the CLOBBER rtx and
13256 don't build a binary operation with it.
13258 2003-07-10 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
13260 * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13261 store_killed_after, store_killed_before): Keep track of the correct
13262 dependency function to use.
13264 2003-07-10 Steven Bosscher <steven@gcc.gnu.org>
13265 * toplev.c (do_compile): Don't try to open dump files before
13266 lang_dependent_init initializes dump_base_name.
13268 2003-07-10 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13270 * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13272 * config/frv/frv.c (frv_expand_builtin): Likewise.
13273 * config/sh/sh.c (sh_media_init_builtins): Likewise.
13275 2003-07-09 Mark Mitchell <mark@codesourcery.com>
13278 * doc/invoke.texi (C++ Dialect Options): Change documentation of
13281 2003-07-10 J"orn Rennecke <joern.rennecke@superh.com>
13283 * tm.texi (RETURN_ADDR_OFFSET): Document.
13285 2003-07-10 Nathan Sidwell <nathan@codesourcery.com>
13287 * gcov-io.h: Update documentation.
13288 (GCOV_UNSIGNED2STRING): New.
13289 (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13290 GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13291 GCOV_TAG_SUMMARY_LENGTH): Adjust.
13292 (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13293 GCOV_TAG_COUNTER_NUM): New.
13294 (GCOV_BLOCK_SIZE): Number of words.
13295 (gcov_var): Adjust buffer type.
13296 * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13297 (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13298 count, not byte count.
13299 (gcov_open): Adjust overread init.
13300 (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13301 gcov_write_string, gcov_write_tag, gcov_write_length,
13302 gcov_write_tag_length): Adjust.
13303 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13304 (gcov_sync, gcov_seek): Adjust.
13305 * gcov-dump.c (print_usage): Show gcc version only.
13306 (dump_file): Use GCOV_UNSIGNED2STRING.
13307 (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13308 * gcov.c (print_version): Show gcc version only.
13309 (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13310 GCOV_TAG_*_NUM macros.
13311 (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13312 GCOV_TAG_COUNTER_LENGTH.
13313 * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13314 Use GCOV_TAG_COUNTER_NUM.
13315 * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13316 (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13318 2003-07-10 Andreas Schwab <schwab@suse.de>
13320 * gcov-dump.c (dump_file): Fix missing address operator.
13322 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13325 * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13327 (fold_single_bit_test): If sign_bit_p() fails, assume that the
13328 bit being tested is not a sign bit.
13330 2003-07-10 Kazu Hirata <kazu@cs.umass.edu>
13332 * config/h8300/h8300.md (a peephole2): New.
13334 2003-07-10 Alexandre Oliva <aoliva@redhat.com>
13336 2001-12-13 Alexandre Oliva <aoliva@redhat.com>
13337 * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13338 from ld-linux.so.2 to ld.so.1.
13339 2001-11-18 Alexandre Oliva <aoliva@redhat.com>
13340 * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13341 * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13342 nor -Wl,-rpath-link.
13343 (LIB_SPEC): Add -rpath-link if !static.
13344 2001-08-22 Alexandre Oliva <aoliva@redhat.com>
13345 * config/mn10300/mn10300.c (mn10300_protect_label): New
13347 * config/mn10300/linux.h (PRINT_OPERAND,
13348 PRINT_OPERAND_ADDRESS): Set it during their execution.
13349 (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13350 mn10300_protect_label is set.
13351 * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13353 (LIB_SPEC, STARTFILE_SPEC): Define.
13354 2001-05-11 Alexandre Oliva <aoliva@redhat.com>
13355 * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13356 FLOAT_BIT_ORDER_MISMATCH.
13357 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13358 * config.gcc (am33_2.0-*-linux*): Added.
13359 * config/mn10300/linux.h: New.
13360 * config/mn10300/t-linux: New.
13362 2003-07-10 Andreas Jaeger <aj@suse.de>
13364 * fold-const.c: Properly wrap prototypes.
13366 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13368 2003-06-16 Alexandre Oliva <aoliva@redhat.com>
13369 * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13371 * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13372 * config/mn10300/mn10300.h: GTY-declare it.
13373 2003-06-11 Alexandre Oliva <aoliva@redhat.com>
13374 * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13375 prototype. Use incoming RTL argument.
13376 2002-12-12 Alexandre Oliva <aoliva@redhat.com>
13377 * config/mn10300/mn10300.md (int_label): Move C statements...
13378 (GOTaddr2picreg): ... here.
13379 2002-08-15 Alexandre Oliva <aoliva@redhat.com>
13380 * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13381 * config/mn10300/mn10300.c (mn10300_encode_section_info):
13382 ... here. New function.
13383 (TARGET_ENCODE_SECTION_INFO): Define to it.
13384 2001-11-04 Alexandre Oliva <aoliva@redhat.com>
13385 * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13387 (mn10300_loadPC): Define as insn splittable after reload.
13388 2001-05-13 Alexandre Oliva <aoliva@redhat.com>
13389 * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13390 be defined in .rodata even in PIC, now that the assembler
13392 2001-05-09 Alexandre Oliva <aoliva@redhat.com>
13393 * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13394 symbol take an underscore prefix.
13395 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13396 * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13397 legitimize_pic_address): Declare.
13398 * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13399 the PIC register as fixed.
13400 (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13401 (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13403 (LEGITIMATE_PIC_OPERAND_P): Define.
13404 (PIC_OFFSET_TABLE_REGNUM): Define.
13405 (GOT_SYMBOL_NAME): Define.
13406 (SYMBOLIC_CONST_P): Define.
13407 (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13409 (MN10300_GLOBAL_P): Test it.
13410 (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13411 (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13412 * config/mn10300/mn10300.c (print_operand): Handle unspec.
13413 (expand_prologue): Set PIC register.
13414 (call_address_operand): Don't match SYMBOL_REFs in PIC.
13415 (legitimize_address): Call legitimize_pic_address.
13416 (legitimize_pic_address): New fn.
13417 (legitimate_pic_operand_p): New fn.
13418 * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13419 (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13420 UNSPEC_PLT): New constants.
13421 (pop_pic_reg): New insn.
13422 (movsi): Adjust non-PIC addresses.
13423 (builtin_setjmp_receiver): Restore the PIC register.
13424 (casesi): New insn.
13425 (call): Adjust non-PIC addresses.
13426 (int_label, GOTaddr2picreg): New expands.
13427 (am33_loadPC): New insn.
13428 (mn10300_loadPC): New expand.
13429 (call_next_insn): New insn.
13430 (add_GOT_to_pic_reg): New expand.
13431 (symGOT2reg, symGOT2reg_i): New expands.
13432 (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13433 (sym2PIC, sym2PLT): New expands.
13435 2003-07-09 Alexandre Oliva <aoliva@redhat.com>
13437 * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13438 2001-05-01 Alexandre Oliva <aoliva@redhat.com>
13439 * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13440 to flag_unsafe_math_optimizations.
13441 2001-04-14 Alexandre Oliva <aoliva@redhat.com>
13442 * config/mn10300/mn10300.c (expand_prologue): Mark
13443 FP-register-saving insns as frame-related.
13444 2001-02-13 Alexandre Oliva <aoliva@redhat.com>
13445 * config/mn10300/mn10300.c
13446 (mn10300_get_live_callee_saved_regs): Don't search past
13447 LAST_EXTENDED_REGNUM.
13448 (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13449 * config/mn10300/mn10300.md: Remove excessive line breaks from
13450 `@' output patterns that were accounted as additional
13452 * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13453 Re-introduce changes accidentally removed in Richard Sandiford's
13454 2000-12-05's patch.
13455 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13456 Re-instate am33-2 lost in merge from net GCC.
13457 2000-08-26 Alexandre Oliva <aoliva@redhat.com>
13458 * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13459 floating-point registers.
13460 2000-08-07 Alexandre Oliva <aoliva@redhat.com>
13461 * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13462 pessimizations that had gone in on 2000-05-08.
13463 2000-06-28 Graham Stott <grahams@cygnus.co.uk>
13464 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13465 2000-06-22 Graham Stott <grahams@cygnus.co.uk>
13466 * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13468 * (movhi): Likewise.
13469 * (movsi): Likewise.
13470 * (movsf): Likewise.
13471 * (movdi): Likewise.
13472 * (movdf): Likewise.
13473 2000-05-24 Alexandre Oliva <aoliva@cygnus.com>
13474 * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13475 (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13476 (expand_prologue, expand_epilogue): Save and restore FP regs.
13477 2000-05-20 Alexandre Oliva <aoliva@cygnus.com>
13478 * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13479 2000-05-13 Alexandre Oliva <aoliva@cygnus.com>
13480 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13481 subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13482 Do not clobber cc0.
13483 2000-05-12 Alexandre Oliva <aoliva@cygnus.com>
13484 * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13485 Discourage the two-argument, longer opcodes.
13486 (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13488 * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13489 (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13490 * config/mn10300/mn10300.md (cmpsf): New pattern.
13491 (branch): Test mdep.fpCC and output fbCC.
13492 * config/mn10300/mn10300.c (print_operand): Output conditions.
13493 (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13494 2000-05-10 Alexandre Oliva <aoliva@cygnus.com>
13495 * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13496 mulsf3, divsf3): Use the `F' constraint for FP values.
13497 * config/mn10300/mn10300.c (const_1f_operand): New function.
13498 * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13499 * config/mn10300/mn10300.md (sqrtsf2): New expand.
13500 (rsqrtsf2): New insn.
13501 2000-05-09 Alexandre Oliva <aoliva@cygnus.com>
13502 * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13504 2000-05-08 Alexandre Oliva <aoliva@cygnus.com>
13505 * config/mn10300/mn10300.md (abssf2, negdf2): On
13506 TARGET_AM33_2, expand to...
13507 (abssf2_am33_2, negdf2_am33_2): New insns.
13508 (addsf3, subsf3, mulsf3, divsf3): Likewise.
13509 (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13510 * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13511 movdi, movdf): Added FP regs.
13512 * invoke.texi (-mam33-2, -mno-am33-2): Document.
13513 2000-04-29 Alexandre Oliva <aoliva@cygnus.com>
13514 * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13516 (REGNO_AM33_2_FP_P): Renamed to...
13517 (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13518 (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13519 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13520 * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13521 regs from GENERAL_REGS.
13522 2000-04-27 Alexandre Oliva <aoliva@cygnus.com>
13523 * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13524 * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13525 * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13526 2000-04-23 Alexandre Oliva <aoliva@cygnus.com>
13527 * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13529 2000-04-21 Alexandre Oliva <aoliva@cygnus.com>
13530 * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13531 (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13532 * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13533 * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13534 * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13535 (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13536 AM33/2.0 floating-point registers.
13537 (CONDITIONAL_REGISTER_USAGE): Adjust.
13538 (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13539 (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13540 (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13541 (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13542 * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13543 (MULTILIB_DIRNAMES): Likewise.
13544 * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13545 `__AM33_2__' when `-mam33-2' is given.
13546 (TARGET_AM33_2): Define.
13547 (TARGET_SWITCHES): Adjust.
13548 * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13551 2003-07-09 Matt Kraai <kraai@alumni.cmu.edu>
13553 * doc/install.texi: Add missing @.
13555 2003-07-09 Bob Wilson <bob.wilson@acm.org>
13557 * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13559 2003-07-09 Aldy Hernandez <aldyh@redhat.com>
13562 * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13564 2003-07-09 Nathanael Nerode <neroden@gcc.gnu.org>
13567 * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13568 "x-crtfini.o" with "crtinit.o", "crtfini.o".
13570 * fixinc/inclhack.def (limits_ifndefs): Add select test.
13571 * fixinc/fixincl.x: Rebuild.
13573 * fixinc/inclhack.def (math_exception): Improve bypass and comment.
13574 * fixinc/fixincl.x: Rebuild.
13576 2003-07-09 Hans-Peter Nilsson <hp@bitrange.com>
13578 * doc/install.texi (Configuration): Document the valgrind option
13579 to --enable-checking.
13581 2003-07-09 Jan Hubicka <jh@suse.cz>
13583 * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13585 2003-07-09 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13587 * c-lex.c (cb_ident): Cast cstr.text to const char *.
13589 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13591 * gcov-io.h: Update documentation.
13592 (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13594 (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13595 (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13596 (struct gcov_var): Change buffer's type. Add endian flag.
13597 (gcov_open): Remove mode in libgcov.
13598 (gcov_magic): Prototype.
13599 * gcov-io.c (from_file): New.
13600 (gcov_open): Clear endian flag.
13602 (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13604 (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13605 gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13606 (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13607 * gcov-iov.c (main): Correct cast.
13608 * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13610 (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13611 (coverage_init): Use GCOV_NOTE_SUFFIX.
13612 * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13613 Rename to gcov_version, and return flag.
13614 (gcov_exit): Use gcov_version.
13615 (__gcov_init): Use gcov_version.
13616 * Makefile.in (coverageexts): Update.
13617 * gcov.c (print_version): Remove endianness conversion.
13618 (create_file_names): Use GCOV_NOTE_SUFFIX.
13619 (read_graph_file): Use gcov_magic.
13620 (read_count_file): Likewise.
13621 * gcov-dump.c (dump_file): Remove endianness conversion, use
13624 2003-07-09 Nathan Sidwell <nathan@codesourcery.com>
13626 * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13628 * configure: Regenerated.
13629 * Makefile.in (ALL_CFLAGS): Correct its comment.
13631 2003-07-08 Mark Mitchell <mark@codesourcery.com>
13633 * fold-const.c (make_range): Do not access operand 1 for a
13634 zero-operand operator.
13636 2003-07-09 Neil Booth <neil@daikokuya.co.uk>
13638 * toplev.c (warn_dummy, W_options): Die.
13639 (display_help): Don't print W_options.
13640 * common.opt: Add W_options help from toplev.c.
13642 2003-07-09 Andreas Jaeger <aj@suse.de>
13644 * opts.c (wrap_help): Only pass int arguments as arguments to
13645 printf's '*' modifier. Change argument of function.
13647 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13649 * doc/invoke.texi: Fix misspelling of "@item".
13651 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
13653 * config/i386/i386.md: Remove an old comment about
13656 2003-07-09 Jan Hubicka <jh@suse.cz>
13658 * cgraph.c (cgraph_node_name): New function.
13659 (dump_cgraph): Use it.
13660 * cgraph.h (cgraph_dump_file): Declare.
13661 (cgraph_node_name): Declare.
13662 * cgraphunit.c: Include timevar.h
13663 (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13664 (cgraph_optimize_function): Use TV_INTEGRATION.
13665 (cgraph_mark_local_functions): reorganize dumps.
13666 (cgraph_mark_functions_to_inline_once): Likewise.
13667 (cgraph_optimize): Likewise; use timevar.
13668 * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13669 * toplev.c (dump_file_index): Add DFI_cgraph.
13670 (dump_file_info): Likewise.
13671 (cgraph_dump_file): New global variable.
13672 (do_compile): Open and close cgraph dump.
13673 * invoke.texi (-d): Document new flag; renumber.
13675 2003-07-08 Roger Sayle <roger@eyesopen.com>
13678 * calls.c (emit_call_1): Don't bother popping the arguments off of
13679 the stack after a noreturn function call; The adjustment is dead.
13680 (expand_call): Likewise.
13682 2003-07-08 Geoffrey Keating <geoffk@apple.com>
13684 * expr.c (MOVE_MAX_PIECES): Move from here...
13685 * defaults.h (MOVE_MAX_PIECES): ... to here.
13687 2003-07-08 Matt Kraai <kraai@alumni.cmu.edu>
13689 * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13691 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13693 * genattr.c (internal_dfa_insn_code): Don't prototype.
13694 * genattrtab.c (attr_desc): Add `static_p' field.
13695 (expand_units): Make blockage range and ready cost functions
13697 (write_attr_get): Don't add extern prototypes in C file. Mark
13698 static functions as appropriate.
13699 (find_attr, make_internal_attr): Initialize static_p.
13700 * genattrtab.h (ATTR_STATIC): New macro.
13701 * genautomata.c (output_internal_reset_func): Mark output function
13703 (make_internal_dfa_insn_code_attr): Mark output function as static.
13705 2003-07-08 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13707 * genattrtab.h: Add new macros for attr `special' flags.
13708 * genattrtab.c (attr_desc): Reorder/resize fields better.
13709 Use attr `special' macros in all calls to make_internal_attr.
13710 * genautomata.c: Likewise.
13712 2003-07-09 Jan Hubicka <jh@suse.cz>
13714 * c-common.c (c_estimate_num_insns_1): New static function.
13715 (c_estimate_num_insns): New global function.
13716 * c-common.h (DECL_NUM_STMTS): Rename to...
13717 (DECL_ESTIMATED_INSNS): ... this.
13718 (c_estimate_num_insns): Declare.
13719 * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13720 * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13721 * c-semantics.c (add_stmt): Do not account statements.
13722 * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13724 * langhooks.h (lang_hooks_for_tree_inlining): Add
13726 * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13728 (max-inline-insns): set to 300.
13729 (min-inline-insns): set to 10.
13730 * tree-inline.c (struct inline_data): Rename inlined_stmts to
13732 (INSNS_PER_STMT): Kill.
13733 (inlinable_function_p): Compute and store body size.
13734 (expand_call_inline): Likewise.
13735 (optimize_inline_calls): Likewise.
13737 2003-07-08 James E Wilson <wilson@tuliptree.org>
13740 * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13741 loop over new variable t2 instead of t.
13743 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
13746 * config/i386/winnt.c: Replace use of error(), warning() with
13747 error_with_decl(), warning_with_decl(), throughout.
13749 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
13751 * opts.c (wrap_help): Use unsigned int, not size_t.
13753 2003-07-08 Stephane Carrez <stcarrez@nerim.fr>
13755 * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13756 as .file/.loc directives are incompatible with linker relaxation.
13758 2003-07-08 Zack Weinberg <zack@codesourcery.com>
13760 * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13761 * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13762 * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13763 * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13764 * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13765 * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13766 Escape { and } characters which are not part of range expressions.
13767 * fixinc/fixincl.x: Regenerate.
13768 * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13770 2003-07-08 Steven Bosscher <steven@gcc.gnu.org>
13773 * tree-inline.c (find_alloca_call): Use
13774 walk_tree_without_duplicates, instead of walk_tree.
13775 (find_builtin_longjmp_call): Likewise.
13776 * c-objc-common.c (c_cannot_inline_fn): Likewise.
13777 * c-semantics.c (find_reachable_label): Likewise.
13779 2003-07-08 Jakub Jelinek <jakub@redhat.com>
13782 * config/i386/i386.c (ix86_check_movabs): New function.
13783 * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13784 * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13785 (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13787 2003-07-08 Chris Demetriou <cgd@broadcom.com>
13789 * Makefile.in (install-po): Cope with empty CATALOGS.
13791 2003-07-08 Richard Sandiford <rsandifo@redhat.com>
13793 * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13794 (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13795 (SECTION_FUNCTION_TEMPLATE): Delete.
13796 * config/mips/elf.h: As for elf64.h.
13797 (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13798 * config/mips/linux.h: As for elf.h
13799 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13800 * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13801 (EXTRA_SECTION_FUNCTIONS): Remove sdata_section. Remove the handling
13802 of in_sdata from current_section_name and current_section_flags.
13803 * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13804 * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13805 (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13806 (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13807 (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13808 (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13809 * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13810 (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13811 (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13812 (override_options): Remove setting of MASK_GPOPT.
13813 (mips_output_external): Use mips_in_small_data_p to check whether a
13814 symbol needs an .extern directive. Don't emit such directives for
13815 TARGET_EXPLICIT_RELOCS.
13816 (mips_declare_object): Update accordingly.
13817 (mips_select_rtx_section): Call named_section rather than
13818 SMALL_DATA_SECTION.
13819 (mips_select_section): Use default_elf_section_section for everything
13820 except .text string constants.
13821 (mips_in_small_data_p): New function.
13822 (mips_encode_section_info): Remove small data handling.
13823 (mips_unique_section): Delete.
13824 (iris6_section_type_flags): New function.
13825 * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13827 2003-07-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
13830 * pa.md: Disparage all mtsar constraints.
13831 (extzv, extv, insv): Don't fail on length of {32|64}.
13833 2003-07-08 Zack Weinberg <zack@codesourcery.com>
13835 * system.h: Poison MAP_CHARACTER.
13836 * config/i370/i370-protos.h (mvs_map_char): Delete.
13837 * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13838 * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13839 (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13841 2003-07-08 Danny Smith <dannysmith@users.sourceforge.net>
13843 * toplev.c (randomize): Correct call to time().
13845 2003-07-08 Jakub Jelinek <jakub@redhat.com>
13847 * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13848 REG_EQUIV notes as well.
13850 2003-07-08 Kazu Hirata <kazu@cs.umass.edu>
13852 * doc/md.texi: Fix the description of addmodecc.
13854 2003-07-07 Zack Weinberg <zack@codesourcery.com>
13856 * Makefile.in (top_builddir): Set to "..", not ".".
13857 (INTLLIBS, INTLDEPS): Delete.
13858 (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13859 (LIBDEPS): Add $(LIBICONV_DEP).
13860 (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13861 (INCLUDES): Replace -I../intl with @INCINTL@.
13862 ($(top_builddir)/intl/libintl.a): Delete rule.
13863 (stage2-start, stage3-start, stage4-start, stageprofile-start,
13864 stagefeedback-start): Use $$ for variable to be evaluated by
13866 * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13867 HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13868 * aclocal.m4: sinclude ../config/progtest.m4. Add
13869 contents of lcmessage.m4 from gettext distro.
13870 * configure.in: Check for wchar.h and setlocale. Set
13871 LIBICONV_DEP to the empty string and substitute it.
13872 Call AM_LC_MESSAGES. Delete AC_ARG_ENABLE for --enable-nls;
13873 this is handled elsewhere. Use ZW_GNU_GETTEXT_SISTER_DIR,
13874 not CY_GNU_GETTEXT. Clear $LIBICONV if its text is included
13875 in $LIBINTL, to avoid linking it twice.
13876 * configure, config.in: Regenerate.
13878 2003-07-08 Nathanael Nerode <neroden@gcc.gnu.org>
13880 * fixinc/mkfixinc.sh: Remove winnt support.
13881 * fixinc/fixinc.winnt: Delete with extreme prejudice.
13883 2003-07-08 Neil Booth <neil@daikokuya.co.uk>
13885 * Makefile.in: Update.
13886 * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13887 * c.opt: Update documentation.
13888 * common.opt: Add some help text.
13889 * opts.c: Include intl.h.
13890 (wrap_help, print_help): New.
13891 (find_opt, handle_option, common_handle_option): opt_text now
13892 contains the '-'. Use print_help to output help.
13893 * opts.h (struct cl_option): New member "help".
13894 * opts.sh: Update to handle help text output and to prepend
13896 * toplev.c (display_help): Remove some help text.
13898 2003-07-07 David Edelsohn <edelsohn@gnu.org>
13899 Fariborz Jahanian <fjahanian@apple.com>
13901 * configure.in: Test for PowerPC mfcr field support in assembler.
13902 * config.in, configure: Regenderated.
13904 * config/rs6000/power4.md: Add mfcrf reservation.
13905 * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13906 * config/rs6000/rs6000.c (mfcr_operation): Define.
13907 (print_operand): Add 'Q' case for mfcrf.
13908 * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13909 * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13910 (movcc_internal1): Emit optional field operand for mfcr and set
13911 "type" attribute appropriately.
13912 (mfcr SCC): Likewise.
13913 (movesi_from_cr_one): New.
13915 2003-07-07 Roger Sayle <roger@eyesopen.com>
13917 * config/i386/i386.md: Correct check-in of incorrect version.
13919 2003-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
13921 * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13922 adjacent stdio calls.
13923 * c-decl.c (c_print_identifier): Likewise.
13924 * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13925 * print-rtl.c (print_rtx): Likewise.
13926 * print-tree.c (print_node_brief, print_node): Likewise.
13927 * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13929 * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13930 * config.in, configure: Regenerated.
13932 2003-07-07 Roger Sayle <roger@eyesopen.com>
13935 * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13936 Changed to define_expand patterns that copy operand[1] to prevent
13937 it from being clobbered before emitting an atan2?f3_1 insn.
13938 (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13939 patterns that actually specify the behaviour of x87's FPATAN.
13941 2003-07-07 Jakub Jelinek <jakub@redhat.com>
13943 * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13944 clearing of SYMBOL_FLAG_LOCAL bit.
13945 If vcall_offset fits into signed 16-bit immediate, use
13946 one instruction for both addition and load.
13948 2003-07-07 Neil Booth <neil@daikokuya.co.uk>
13950 * opts.c (common_handle_option): Correct handling of the
13951 -falign- switches that do and don't take an argument.
13953 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
13955 * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13957 (pushhi1_h8300hs): Likewise.
13959 2003-07-07 Andreas Jaeger <aj@suse.de>
13961 * genextract.c: Convert remaining prototypes to ISO C90.
13963 * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13964 * fold-const.c (fold_single_bit_test): Likewise.
13965 * diagnostic.c (default_diagnostic_finalizer): Likewise.
13966 * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13968 * gengtype.c (write_array): Generate ISO C90 prototypes.
13970 * genflags.c (gen_proto): Generate ISO C90 prototypes.
13972 2003-07-07 Roger Sayle <roger@eyesopen.com>
13974 PR optimization/11059
13975 * expr.c (can_store_by_pieces): Return true if length is zero.
13976 (store_by_pieces): If length is zero and endp is two, abort,
13977 othwerise, if length is zero and endp is not two, return "to".
13978 (clear_by_pieces): Do nothing if length is zero.
13979 (clear_storage): Do nothing if length is zero.
13980 (store_constructor): Simplify code when size is zero, or the
13981 target has already been cleared. This avoids emitting a
13982 blockage instruction when initializing empty structures.
13984 2003-07-07 Andreas Jaeger <aj@suse.de>
13986 * mips-tfile.c: Convert prototypes to ISO C90.
13987 * mips-tdump.c: Convert prototypes to ISO C90.
13989 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
13991 * rtl.h (emit_line_note): Take a location_t.
13992 (emit_line_note_force): Remove.
13993 (set_file_and_line_for_statement): Take a location_t.
13994 * tree.g (emit_line_note): Take a location_t.
13995 * emit-rtl.c (emit_line_note): Take a location_t.
13996 (emit_line_note_force): Remove.
13997 * function.c (init_function_start): Adjust emit_line_note call.
13998 (expand_function_end): Use force_next_line_note, not
13999 emit_line_note_force.
14000 * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14001 * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14002 genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14003 genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14004 genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14005 genrtl_continue_stmt, genrtl_switch_stmt,
14006 genrtl_asm_stmt): Likewise.
14007 * expr.c (expand_expr): Likewise.
14008 * integrate.c (expand_inline_function): Likewise.
14009 * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14010 (expand_decl_init): Adjust emit_line_note call.
14012 2003-07-07 Dale Johannesen <dalej@apple.com>
14014 * config/rs6000/darwin-tramp.asm: Fix trampolines. PR 10900.
14016 2003-07-07 Andreas Jaeger <aj@suse.de>
14018 * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14019 * config/i386/i386.c: Likewise.
14021 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14023 * config/h8300/h8300.md: Use gen_int_mode instead of
14024 GEN_INT (trunc_int_for_mode (...)).
14026 2003-07-07 Kazu Hirata <kazu@cs.umass.edu>
14028 * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14029 2 bytes and then subtract 2 from the stack pointer.
14030 (pushhi1_h8300hs): Likewise.
14032 2003-07-07 Nathan Sidwell <nathan@codesourcery.com>
14034 * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14036 * configure: Regenerated.
14037 * Makefile.in: Remove extraneous comment.
14038 * toplev.c (randomize): Protect against potential multiple calls.
14039 * doc/invoke.texi (-frandom-seed): Document use for in coverage
14042 2003-07-07 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14043 Eric Botcazou <ebotcazou@libertysurf.fr>
14045 PR optimization/11198
14046 * alias.c (objects_must_conflict_p): Return 1 if the types have
14047 the same alias set, not if the alias sets only conflict.
14049 2003-07-07 Andrew Pinski <pinskia@physics.uc.edu>
14051 * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14052 (convert_cset): Change inbuf to type ICONV_CONST char.
14053 * Makefile.in (LIBS): Add LIBICONV.
14055 * doc/invoke.texi (-falign-functions): Document that
14056 when n is zero then a machine-dependent default is used.
14057 (-falign-labels): Document that when n is zero then a
14058 machine-dependent default is used and that -falign-labels =1
14059 is equivalent to -fno-align-labels.
14060 (-falign-loops): Likewise.
14061 (-falign-jumps): Likewise.
14063 2003-07-06 Art Haas <ahaas@airmail.net>
14065 * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14066 initializer syntax.
14068 2003-07-06 James E Wilson <wilson@tuliptree.org>
14070 PR optimization/9812
14071 * rtl.h (mem_for_const_double): Delete prototype.
14072 * varasm.c (mem_for_const_double): Delete function.
14073 * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14074 config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14075 (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14076 * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14077 (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14078 * config/m68k/m68k.md (movxf): Add reload_in_progress guard. Add
14079 comment about confused support for XFmode constants.
14081 2003-07-07 Jan Hubicka <jh@suse.cz>
14083 * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14085 2003-07-06 Kazu Hirata <kazu@cs.umass.edu>
14087 * config/h8300/h8300.c: Fix comment typos.
14088 * config/h8300/h8300.md: Likewise.
14089 * config/i386/athlon.md: Likewise.
14090 * config/i386/i386.c: Likewise.
14091 * config/i386/pentium.md: Likewise.
14092 * config/ia64/ia64.c: Likewise.
14093 * config/ia64/itanium1.md: Likewise.
14094 * config/ia64/itanium2.md: Likewise.
14095 * config/m32r/m32r.md: Likewise.
14096 * config/m68hc11/m68hc11.c: Likewise.
14097 * config/mcore/mcore.c: Likewise.
14098 * config/mips/sr71k.md: Likewise.
14099 * config/mips/t-iris5-as: Likewise.
14100 * config/mmix/mmix.h: Likewise.
14101 * config/ns32k/ns32k.h: Likewise.
14102 * config/ns32k/NOTES: Fix a typo.
14104 2003-07-06 Andreas Jaeger <aj@suse.de>
14106 * stmt.c: Convert remaining prototypes to ISO C90.
14107 * cfglayout.c: Likewise.
14108 * dbxout.c: Likewise.
14110 * genemit.c: Likewise.
14112 * basic-block.h: Convert prototypes to ISO C90.
14113 * c-parse.in: Likewise.
14114 * c-pragma.h: Likewise.
14115 * c-typeck.c: Likewise.
14116 * cfghooks.h: Likewise.
14117 * cfgloopanal.c: Likewise.
14118 * dbxout.h: Likewise.
14119 * debug.h: Likewise.
14120 * dwarf2asm.h: Likewise.
14121 * gcov.c: Likewise.
14122 * gengtype-lex.l: Likewise.
14123 * sched-int.h: Likewise.
14124 * timevar.c: Likewise.
14126 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14128 * c-common.h (c_comon_handle_filename,
14129 c_common_missing_arguement): New.
14130 * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14131 LANG_HOOKS_MISSING_ARGUMENT): New.
14132 * c-opts.c (missing_arg): Rename c_common_missing_argument,
14133 update to be an appropriate langhook.
14134 (c_common_handle_option): Don't handle filenames.
14135 (c_common_handle_filename): New.
14136 * hooks.c (hook_void_constcharptr,
14137 hook_bool_constcharptr_size_t_false): New.
14138 * hooks.h (hook_void_constcharptr,
14139 hook_bool_constcharptr_size_t_false): New.
14140 * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14141 LANG_HOOKS_MISSING_ARGUMENT): New.
14142 (LANG_HOOKS_INITIALIZER): Update.
14143 * langhooks.h (struct lang_hooks): Add handle_filename and
14145 * opts.c (handle_option): Don't handle filenames here, but ...
14146 (handle_options): ... here.
14147 (common_handle_option): Don't handle missing arguments here.
14148 * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14149 LANG_HOOKS_MISSING_ARGUMENT): New.
14151 2003-07-06 Neil Booth <neil@daikokuya.co.uk>
14153 * Makfile.in: Remove traces of mbchar.
14154 * c-parse.in (MULTIBYTE_CHARS): Remove.
14155 * config.in (MULTIBYTE_CHARS): Remove.
14156 * configure: Remove --enable-mbchar.
14157 * configure.in: Remove --enable-mbchar.
14158 * mbchar.c, mbchar.h: Remove.
14159 * system.h: Poison MULTIBYTE_CHARS.
14160 * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14161 * config/linux.h (MULTIBYTE_CHARS): Remove.
14162 * config/svr4.h (MULTIBYTE_CHARS): Remove.
14163 * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14165 2003-07-06 Andreas Jaeger <aj@suse.de>
14167 * varray.c (varray_check_failed): Fix typo.
14169 * unroll.c: Convert prototypes to ISO C90.
14170 * varasm.c: Likewise.
14171 * varray.c: Likewise.
14172 * varray.h: Likewise.
14173 * vmsdbgout.c: Likewise.
14174 * xcoffout.c: Likewise.
14175 * xcoffout.h: Likewise.
14177 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14179 * gcov-io.h: Add a local time stamp.
14180 (struct gcov_info): Add stamp field.
14181 (gcov_truncate): New.
14182 * coverage.c (read_counts_file): Skip the stamp.
14183 (coverage_begin_output): Write the stamp.
14184 (build_gcov_info): Declare and init the stamp.
14185 (coverage_finish): Only unlink data file, if stamp is zero.
14186 * gcov-dump.c (dump_file): Dump the stamp.
14187 * gcov.c (bbg_stamp): New.
14188 (release_structures): Clear bbg_stamp.
14189 (read_graph_file): Read stamp.
14190 (read_count_file): Check stamp.
14191 * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14193 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14195 * tree.h (default_flag_random_seed): Remove.
14196 * toplev.h (local_tick): Declare.
14197 * tree.c (flag_random_seed, default_flag_random_seed): Move to
14199 (append_random_chars): Don't call default_flag_random_seed.
14200 * toplev.c (flag_random_seed): Define here. Set local_tick.
14201 (local_tick): Define.
14202 (randomize): New, moved from tree.c.
14203 (print_switch_values): Adjust.
14204 (toplev_main): Call randomize.
14206 2003-07-06 Nathan Sidwell <nathan@codesourcery.com>
14208 * tree.h (crc32_string): Declare.
14209 * tree.c (append_random_chars): Remove.
14210 (crc32_string): New.
14211 (get_file_function_name_long): Use crc32_string here.
14213 2003-07-06 Andreas Jaeger <aj@suse.de>
14215 * gcc.c: Convert prototypes to ISO C90.
14217 * gcov-dump.c: Likewise.
14218 * gcov-iov.c: Likewise.
14219 * gcse.c: Likewise.
14220 * genattrtab.h: Likewise.
14222 * global.c: Likewise.
14223 * graph.c: Likewise.
14224 * graph.h: Likewise.
14225 * hosthooks.h: Likewise.
14226 * hooks.h: Likewise.
14227 * hooks.c: Likewise.
14228 * hashtable.h: Likewise.
14229 * hashtable.c: Likewise.
14230 * haifa-sched.c: Likewise.
14231 * integrate.h: Likewise.
14232 * integrate.c: Likewise.
14233 * input.h: Likewise.
14234 * ifcvt.c: Likewise.
14235 * jump.c: Likewise.
14236 * langhooks-def.h: Likewise. Add extern to prototypes.
14237 * langhooks.c: Likewise.
14238 * langhooks.h: Likewise.
14240 * local-alloc.c: Likewise.
14241 * loop-init.c: Likewise.
14242 * loop-unroll.c: Likewise.
14243 * loop-unswitch.c: Likewise.
14244 * loop.c: Likewise.
14245 * loop.h: Likewise. Add extern to prototypes.
14246 * machmode.h: Likewise.
14247 * main.c: Likewise.
14248 * mbchar.c: Likewise.
14249 * mbchar.h: Likewise.
14250 * mkdeps.c: Likewise.
14251 * mkdeps.h: Likewise.
14252 * optabs.c: Likewise.
14253 * optabs.h: Likewise.
14254 * output.h: Likewise.
14255 * gccspec.c: Likwise.
14256 * postreload.c: Likewise.
14257 * prefix.c: Likewise.
14258 * prefix.h: Likewise.
14259 * print-rtl.c: Likewise.
14260 * print-tree.c: Likewise.
14261 * profile.c: Likewise.
14262 * read-rtl.c: Likewise.
14263 * real.c: Likewise.
14264 * real.h: Likewise.
14265 * recog.c: Likewise.
14266 * recog.h: Likewise.
14267 * reg-stack.c: Likewise.
14268 * regclass.c: Likewise.
14269 * regmove.c: Likewise.
14270 * regrename.c: Likewise.
14271 * regs.h: Likewise.
14272 * reload.c: Likewise.
14273 * reload.h: Likewise.
14274 * reload1.c: Likewise.
14275 * reorg.c: Likewise.
14276 * resource.c: Likewise.
14277 * resource.h: Likewise.
14278 * rtl-error.c: Likewise.
14281 * rtlanal.c: Likewise.
14282 * sbitmap.c: Likewise.
14283 * sbitmap.h: Likewise.
14284 * scan-decls.c: Likewise.
14285 * scan.c: Likewise.
14286 * sched-deps.c: Likewise.
14287 * sched-ebb.c: Likewise.
14288 * sched-int.h: Likewise.
14289 * sched-rgn.c: Likewise.
14290 * sched-vis.c: Likewise.
14291 * sibcall.c: Likewise.
14292 * simplify-rtx.c: Likewise.
14293 * sreal.c: Likewise.
14294 * sreal.h: Likewise.
14295 * ssa-ccp.c: Likewise.
14296 * ssa-dce.c: Likewise.
14299 * stack.h: Likewise.
14300 * stmt.c: Likewise.
14301 * stor-layout.c: Likewise.
14302 * stringpool.c: Likewise.
14303 * target.h: Likewise.
14304 * timevar.c: Likewise.
14305 * timevar.h: Likewise.
14306 * tlink.c: Likewise.
14307 * tracer.c: Likewise.
14308 * tree-inline.c: Likewise.
14309 * tree-inline.h: Likewise.
14310 * tree.c: Likewise.
14311 * tree.h: Likewise.
14313 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14315 * combine.c (nonzero_bits1): Fix a warning.
14317 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14319 * config/h8300/h8300.c (compute_mov_length): Correct the
14320 length of loading CONST0_RTX (SFmode).
14322 2003-07-05 Nathan Sidwell <nathan@codesourcery.com>
14324 * toplev.c (output_clean_symbol_name): Remove.
14325 * toplev.h (output_clean_symbol_name): Remove.
14326 * config/alpha/alpha.c (unicosmk_output_module_name): Use
14327 lbasename & clean_symbol_name.
14329 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14331 * ggc.h: Follow spelling conventions.
14332 * config/i386/i386.c: Likewise.
14333 * config/i386/winnt.c: Likewise.
14334 * config/rs6000/rs6000.c: Likewise.
14336 2003-07-05 Kazu Hirata <kazu@cs.umass.edu>
14338 * bt-load.c: Fix comment typos.
14339 * c-incpath.c: Likewise.
14341 * cfgcleanup.c: Likewise.
14342 * cfgloop.h: Likewise.
14343 * cfgloopmanip.c: Likewise.
14344 * cfgrtl.c: Likewise.
14345 * diagnostic.h: Likewise.
14346 * dwarfout.c: Likewise.
14347 * emit-rtl.c: Likewise.
14348 * et-forest.c: Likewise.
14349 * et-forest.h: Likewise.
14350 * expr.c: Likewise.
14351 * gcse.c: Likewise.
14352 * genattr.c: Likewise.
14353 * jump.c: Likewise.
14354 * langhooks.h: Likewise.
14355 * local-alloc.c: Likewise.
14356 * loop-unroll.c: Likewise.
14357 * loop-unswitch.c: Likewise.
14358 * ra-build.c: Likewise.
14359 * regclass.c: Likewise.
14360 * regmove.c: Likewise.
14361 * rtl.def: Likewise.
14362 * rtlanal.c: Likewise.
14363 * sched-ebb.c: Likewise.
14364 * sched-rgn.c: Likewise.
14365 * simplify-rtx.c: Likewise.
14367 * tracer.c: Likewise.
14368 * tree.c: Likewise.
14370 2003-07-05 Zack Weinberg <zack@codesourcery.com>
14372 * cppcharset.c: Use the correct return type for the fallback iconv
14375 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14377 Blame to Jan Hubicka <jh@suse.cz>
14378 * cfglayout.c (record_effective_endpoints): Split insns before
14379 first basic block correctly.
14381 2003-07-05 Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
14383 * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14384 bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14385 if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14387 2003-07-05 Andreas Jaeger <aj@suse.de>
14389 * genattrtab.c (write_attr_get): Revert part of last patch to
14390 always write out a prototype.
14392 * genemit.c (gen_split): Readd lost unused attributes in last
14395 2003-07-05 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14397 * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14398 different from header.
14400 2003-07-05 Andreas Schwab <schwab@suse.de>
14402 * config/m68k/m68k.c: Remove code protected by CRDS.
14403 * config/m68k/m68k.md: Likewise.
14405 2003-07-05 Neil Booth <neil@daikokuya.co.uk>
14408 * c-opts.c (permit_fortran_options): New.
14409 (c_common_init_options): Accept fortran front end options if
14410 it looks like we might be preprocessing Fortran.
14411 (c_common_handle_option): Don't reject switch if permit_fotran_options.
14413 2003-07-05 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14415 * genattr.c (internal_dfa_insn_code): Output prototype.
14416 * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14417 * genautomata.c: Likewise.
14418 * genconditions.c: Likewise.
14419 * genemit.c: Likewise.
14420 * genextract.c: Likewise.
14421 * gengenrtl.c: Likewise.
14422 * gengtype.c: Likewise.
14423 * genopinit.c: Likewise.
14424 * genoutput.c: Likewise.
14425 * genpeep.c: Likewise.
14426 * genrecog.c: Likewise.
14428 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14430 * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14431 (struct cpp_options): Add narrow_charset, wide_charset,
14432 bytes_big_endian fields. Remove EBCDIC field.
14433 (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14435 * cpphash.h: Include <iconv.h> if we have it, otherwise
14436 provide a dummy definition of iconv_t.
14437 (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14438 (_cpp_valid_ucn): Update prototype.
14439 (_cpp_destroy_iconv): New prototype.
14441 * doc/cpp.texi: Document character set handling.
14442 * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14443 * doc/extend.texi: Delete entire section on multiline strings.
14444 Rewrite section on __FUNCTION__ etc now that these are
14447 * cppucnid.tab, cppucnid.pl: New files.
14448 * cppucnid.h: New generated file.
14449 * cppcharset.c: Include cppucnid.h. Lots of commentary added.
14450 (iconv_open, iconv, iconv_close): Provide dummy definitions
14452 (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14453 _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14454 emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14455 cpp_interpret_string, narrow_str_to_charconst,
14456 wide_str_to_charconst): New.
14457 (ucn_valid_in_identifier): Use a binary search through the
14458 ucnranges table defined in cppucnid.h, not a long chain of if
14460 (_cpp_valid_ucn): Add a limit pointer. Downgrade "universal
14461 character names are only valid in C++ and C99" to a warning.
14462 Issue the "meaning of \[uU] is different in traditional C"
14463 warning here. Take care not to let iconv see an invalid UCS
14464 value if we get a malformed UCN. Issue an error if we don't
14466 (cpp_interpret_charconst): Moved here from cpplex.c. Use
14467 cpp_interpret_string to do the heavy lifting.
14469 * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14470 narrow_charset, wide_charset fields of options structure.
14471 (cpp_destroy): Call _cpp_destroy_iconv.
14472 * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14473 (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14474 (cpp_interpret_charconst): Moved to cppcharset.c.
14475 * cpplib.c (dequote_string): Delete.
14476 (interpret_string_notranslate): New.
14477 (do_line, do_linemarker): Use interpret_string_notranslate.
14479 * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14481 * c-common.c (fname_string, combine_strings): Delete.
14482 * c-common.h (fname_string, combine_strings): Delete prototypes.
14483 * c-lex.c (ignore_escape_flag): Delete.
14484 (cb_ident): Use cpp_interpret_string, not lex_string.
14485 (get_nonpadding_token): New function.
14486 (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14487 Adjust calls to lex_string. Don't write *value twice.
14488 (lex_string): Now handles string constant concatenation.
14489 Most of the work handed off to cpp_interpret_string.
14490 Call fix_string_type here.
14491 * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14492 FUNC_NAME, throughout.
14493 (OBJC_STRING): New token type.
14494 (primary:STRING): No need to call fix_string_type here.
14495 (primary:objc_string): Make that OBJC_STRING.
14496 (objc_string nonterminal): Delete.
14497 (yylexname): Delete code to handle fake string constants.
14498 (yylexstring): Delete entirely.
14499 (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING. No need
14500 to handle CPP_ATSIGN.
14502 * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14503 * c-opts.c (missing_arg, c_common_handle_option): Handle
14504 OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14505 (c_common_init): Set cpp_opts->bytes_big_endian, not
14506 cpp_opts->EBCDIC. Call cpp_init_iconv.
14507 (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14508 (TARGET_EBCDIC): Delete default definition.
14510 * objc/objc-act.c (build_objc_string_object): No need to
14511 handle string constant concatenation.
14513 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14515 * doc/install.texi: Fix typos.
14516 * doc/invoke.texi: Likewise.
14517 * doc/tm.texi: Likewise.
14519 2003-07-04 Kazu Hirata <kazu@cs.umass.edu>
14521 * config/pa/fptr.c: Fix comment typos.
14522 * config/pa/pa-64.h: Likewise.
14523 * config/pa/pa.c: Likewise.
14524 * config/pa/pa.h: Likewise.
14525 * config/rs6000/603.md: Likewise.
14526 * config/rs6000/7xx.md: Likewise.
14527 * config/rs6000/darwin.h: Likewise.
14528 * config/rs6000/freebsd.h: Likewise.
14529 * config/rs6000/rs6000.c: Likewise.
14530 * config/rs6000/rs6000.md: Likewise.
14531 * config/rs6000/spe.h: Likewise.
14533 2003-07-04 Ulrich Weigand <uweigand@de.ibm.com>
14535 * config/s390/2064.md: Change GNU CC to GCC.
14536 * config/s390/2084.md: Likewise.
14537 * config/s390/fixdfdi.h: Likewise.
14538 * config/s390/linux.h: Likewise.
14539 * config/s390/s390-modes.def: Likewise.
14540 * config/s390/s390-protos.h: Likewise.
14541 * config/s390/s390.c: Likewise.
14542 * config/s390/s390.h: Likewise.
14543 * config/s390/s390.md: Likewise.
14544 * config/s390/s390x.h: Likewise.
14546 2003-07-04 Jeff Law <law@redhat.com>
14549 * expr.c (do_store_flag): Pass in the correct result type
14550 when calling fold_single_bit_test.
14551 * fold-const.c (fold_single_bit_test): Use result_type for the
14552 result when folding a sign bit test.
14554 2003-07-04 Neil Booth <neil@daikokuya.co.uk>
14556 * opts.c (common_handle_options): Negate sense of -falign- switches.
14558 2003-07-04 H.J. Lu <hongjiu.lu@intel.com>
14560 * Makefile.in: Replace PWD with PWD_COMMAND.
14562 2003-07-04 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14564 * cfgloopanal.c (count_strange_loop_iterations): New static function.
14565 (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14566 Handle strange loops.
14568 2003-07-04 Toon Moene <toon@moene.indiv.nluug.nl>
14570 * install.texi: Even the g77 manpage is derived from
14571 the full g77 manual.
14573 2003-07-04 Zack Weinberg <zack@codesourcery.com>
14575 * ABOUT-NLS: Delete.
14576 * intl: Delete entire directory.
14577 * aclocal.m4: Include ../config/gettext.m4. Delete
14578 AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14579 AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14580 * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14581 Remove intl/Makefile from all_outputs.
14582 * configure, config.in: Regenerate.
14583 * Makefile.in: Expunge all references to intl subdirectory.
14584 Add -I../intl to INCLUDES.
14585 * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14587 2003-07-04 Roger Sayle <roger@eyesopen.com>
14589 * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14590 * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14592 2003-07-04 Danny Smith <dannysmith@users.sourceforge.net>
14594 PR c++/5287, PR c++/7910, PR c++/11021
14595 * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14596 dllimport attribute if function is defined at declaration, but
14597 report error instead. Likewise for dllimport'd variable
14598 definitions. Set implicit TREE_PUBLIC for dllimport'd variables
14599 declared within functions, Report error if dllimport or dllexport
14600 symbol is not global.
14601 (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14602 if defined after declaration or if inlined. Don't allow definition
14603 of static data members of C++ classes. Don't dllimport virtual
14605 (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14606 (i386_pe_mark_dllimport): Remove unnecessary checks.
14607 (i386_pe_encode_section_info): Warn if the dllimport attribute
14608 and symbol prefix have been instantiated and then overridden.
14610 * doc/extend.texi: Document dllimport and dllexport attributes.
14612 * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14614 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14616 * config/kaos.h (CPP_PREDEFINES): Delete.
14617 (TARGET_OS_CPP_BUILTINS): New.
14619 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14621 * c-aux-info.c: Include toplev.h after c-tree.h.
14622 * c-common.c: Likewise.
14623 (GCC_DIAG_STYLE): Undef.
14624 * c-semantics.c (GCC_DIAG_STYLE): Define.
14625 * c-tree.h (GCC_DIAG_STYLE): Likewise.
14626 * diagnostic.h (inform): Move prototype to toplev.h.
14627 * jump.c: Include diagnostic.h before toplev.h.
14628 * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14629 (warning, error, fatal_error, pedwarn, sorry, inform,
14630 error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14632 2003-07-03 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
14634 * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14635 at all if edge is not specified.
14636 (can_copy_bbs_p, copy_bbs): New.
14637 * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14638 * cfgloop.c (get_loop_body): Comment more precisely.
14639 * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14640 (scale_bbs_frequencies): Fix comment typo.
14641 (can_duplicate_loop_p): Use can_copy_bbs_p.
14642 (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14644 2003-07-03 Devang Patel <dpatel@apple.com>
14646 * c-opts.c (c_common_parse_file): Remove extra
14647 debug_hooks->start_source_file call.
14649 2003-07-03 Roger Sayle <roger@eyesopen.com>
14651 * real.c (real_trunc, real_floor, real_ceil): New functions
14652 to implement trunc, floor and ceil respectively.
14653 * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14654 * builtins.c (integer_valued_real_p): New function to test if
14655 a floating point expression has an integer valued result.
14656 (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14657 foo(x) where foo is an integer rounding function. Similarly,
14658 optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14659 (double)(int)x when both foo and bar are integer rounding
14660 functions and we don't need to honor errno.
14661 (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14662 New functions to fold trunc, floor and ceil.
14663 (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14664 fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14665 to fold BUILT_IN_CEIL*.
14666 * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14667 the remaining integer rounding functions.
14669 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14671 * config/sparc/sparc.c (function_arg_partial_nregs): Use
14672 SPARC_INT_ARG_MAX to determine where to split unnamed
14673 complex FP arguments.
14675 2003-07-03 Jan Hubicka <jh@suse.cz>
14677 * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14678 * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14679 (merge_blocks_move_predecessor_nojumps,
14680 merge_blocks_move_successor_nojumps): Use merge_blocks.
14681 (try_optimize_cfg): Use merge_blocks_move.
14682 * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14683 (merge_blocks_nomove): Rename to rtl_merge_blocks.
14684 (cfg_layout_create_basic_block): New.
14685 (rtl_can_merge_blocks): New.
14686 (cfg_layout_split_block): Do not alloc aux by hand.
14687 * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14689 (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14690 * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14691 * cfgloopmanip.c (loop_split_edge_with): Likewise.
14692 * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14694 * basic-block.h (basic_block_def): Add field 'rbi'.
14695 * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14696 find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14697 * cfg.c (entry_exit_blocks): Add new field.
14698 * cfglayout.c: Include alloc-pool.h;
14699 (cfg_layout_pool): New.
14700 (record_effective_endpoints, fixup_reorder_chain,
14701 fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14703 (cfg_layout_initialize_rbi): New function.
14704 (cfg_layout_initialize): Use it.
14705 (cfg_layout_finalize): Clear rbi fields.
14706 * cfglayout.h (RBI): Kill.
14707 (cfg_layout_initialize_rbi): Declare.
14708 * cfgloopmanip.c (copy_bbs): Use rbi.
14709 (record_exit_edges): Likewise.
14710 (duplicate_loop_to_header_edge): Likewise.
14711 * cfgrtl.c (cfg_layout_create_basic_block): Use
14712 cfg_layout_initialize_rbi.
14713 (cfg_layout_split_block): Use rbi.
14714 (cfg_layout_delete_block): Likewise.
14715 * loop-init.c (loop_optimizer_finalize): Likewise.
14716 * loop-unswitch.c (unswitch_loop): Likewise.
14717 * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14719 * cfgrtl.c: Update comments.
14720 (try_redirect_by_replacing_jump): New argument.
14721 (redirect_branch_edge): Break out from ...
14722 (rtl_redirect_edge_and_branch): ... this one.
14723 (update_cfg_after_block_merging): Break out from ...
14724 (rtl_merge_blocks): ... this one.
14725 (cfg_layout_split_edge): New.
14726 (cfg_layout_merge_blocks): New.
14727 (cfg_layout_can_merge_blocks_p): New.
14728 (cfg_layout_redirect_edge_and_branch): Reorganize.
14729 (cfg_layout_rtl_cfg_hooks): Fill in.
14730 (cfg_layout_delete_block): Kill barriers.
14731 * cfganal.c (can_fallthru): Deal with exit blocks
14732 * cfglayout.c (cfg_layout_function_header): New function
14733 (record_effective_endpoints): Record function header.
14734 (fixup_reorder_chain): Fixup dead jumptables; place header
14736 * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14737 * bb-reorder.c (cfg_layout_initialize): Update call.
14738 * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14739 edges in cfglayout mode.
14740 * cfglayout.c (cleanup_unconditional_jumps): Kill.
14741 (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14742 * cfglayout.h (cfg_layout_initialize): Update prototype.
14743 * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14744 * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14745 * flow.c (propagate_block): Do not crash when basic block ends
14746 by first insn in the chain.
14747 * loop-init.c (loop_optimizer_init): First enter cfglayout mode; later
14749 * tracer.c (tracer): Update call of cfg_layout_initialize.
14751 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14753 * Makefile.in: Use dependency variables in lieu of explicit
14756 2003-07-03 Steven Bosscher <steven@gcc.gnu.org>
14758 * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14759 * tree.h: ...to here.
14761 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
14763 * config/s390/2064.md: Fix comment typos.
14764 * config/s390/2084.md: Likewise.
14765 * config/s390/s390.c: Likewise.
14766 * config/s390/s390.md: Likewise.
14767 * config/sh/sh.c: Likewise.
14768 * config/sh/sh.h: Likewise.
14769 * config/sh/sh.md: Likewise.
14770 * config/sparc/sparc.c: Likewise.
14771 * config/sparc/sparc.h: Likewise.
14772 * config/sparc/sparc.md: Likewise.
14773 * config/stormy16/stormy16.c: Likewise.
14774 * config/stormy16/stormy16.h: Likewise.
14775 * config/stormy16/stormy-abi: Fix a typo.
14777 2003-07-03 Kelley Cook <kelleycook@wideopenwest.org>
14779 * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14781 2003-07-03 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
14783 * config/mips/mips.h (save_argv): Delete.
14785 2003-07-03 Roger Sayle <roger@eyesopen.com>
14788 * fold-const.c (extract_muldiv_1): There's nothing that can be done
14789 if the expression is a SAVE_EXPR.
14791 2003-07-03 Kazu Hirata <kazu@cs.umass.edu>
14793 * config/m32r/m32r.c: Fix comment typos.
14794 * config/m68hc11/m68hc11.c: Likewise.
14795 * config/m68hc11/m68hc11.h: Likewise.
14796 * config/m68k/m68k.c: Likewise.
14797 * config/mcore/mcore.c: Likewise.
14798 * config/mcore/mcore.h: Likewise.
14799 * config/mcore/mcore.md: Likewise.
14800 * config/mips/mips.c: Likewise.
14801 * config/mips/mips.h: Likewise.
14802 * config/mips/mips.md: Likewise.
14803 * config/mips/netbsd.h: Likewise.
14804 * config/mn10300/mn10300.c: Likewise.
14806 2003-07-03 Andreas Schwab <schwab@suse.de>
14808 * dbxout.c (pending_bincls): Move decl down inside
14809 DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14811 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
14813 * rtl.h (NOTE_DATA): Refer to whole union.
14814 * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14816 2003-07-03 Eric Botcazou <ebotcazou@libertysurf.fr>
14818 PR optimization/11381
14819 * simplify-rtx.c (simplify_relational_operation): Check that
14820 two equal operands have no side-effects before simplifying
14823 2003-07-02 Jeff Law <law@redhat.com>
14825 * expr.c (do_store_flag): Remove special case folding for
14826 single bit tests. Instead call back into the commonized folder
14828 * fold-const.c (fold_single_bit_test): New function, mostly
14829 extracted from do_store_flag, with an additional case extracted
14831 (fold): Call fold_single_bit_test appropriately.
14832 * tree.h (fold_single_bit_test): Prototype.
14834 2003-07-02 Zack Weinberg <zack@codesourcery.com>
14836 * system.h: Include filenames.h.
14837 (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14838 (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14839 define based on HAVE_DOS_BASED_FILE_SYSTEM.
14840 * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14841 * config/i386/xm-mingw32.h: Don't define
14842 HAVE_DOS_BASED_FILE_SYSTEM,
14843 DIR_SEPARATOR, or DIR_SEPARATOR_2.
14844 * doc/hostconfig.texi: Update to match.
14846 * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14847 config/i386/cygwin.h:
14848 Use IS_ABSOLUTE_PATH throughout.
14849 * gcc.c (DIR_UP): Delete, unused.
14850 * protoize.c (IS_SAME_PATH): Define in terms of
14852 (is_abspath): Delete.
14854 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
14856 * config/i386/emmintrin.h: Fix comment typos.
14857 * config/i386/i386.c: Likewise.
14858 * config/i386/i386.h: Likewise.
14859 * config/i386/sco5.h: Likewise.
14860 * config/ia64/ia64.c: Likewise.
14861 * config/ia64/itanium2.md: Likewise.
14863 2003-07-02 H.J. Lu <hongjiu.lu@intel.com>
14865 * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14867 (emit_bincl_stab): Same.
14868 (emit_pending_bincls): Same.
14870 2003-07-02 Kazu Hirata <kazu@cs.umass.edu>
14872 * config/h8300/h8300.c (compute_mov_length): Fix the length of
14873 loading CONST0_RTX (SFmode).
14874 * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14875 'G' to CONST0_RTX (SFmode).
14876 * config/h8300/h8300.md (movsf_h8300): Change the first
14878 (movsf_h8300h): Likewise.
14880 2003-07-02 Neil Booth <neil@daikokuya.co.uk>
14882 * c-common.h (c_common_init_options): New prototype.
14883 * c-opts.c (deferred_size): Remove.
14884 (defer_opt): Array is now pre-allocated.
14885 (c_common_init_options): Pre-allocate deferred_opts. Make
14886 lang_flags unsigned.
14887 (push_command_line_options): Free deferred_opts.
14888 * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14889 * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14890 * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14891 * langhooks.h (struct lang_hooks): New prototype for init_options.
14892 * main.c (main): Cast argv.
14893 * opts.c (handle_option, handle_options): Update prototypes.
14894 (decode_options): save_argc, save_argv are not global. Constify.
14895 * opts.h (decode_options): New prototype.
14896 * toplev.c (general_init): New protoype.
14897 (save_argv): Make static.
14898 (save_argc): Remove.
14899 (print_switch_values, general_init): Constify.
14900 (toplev_main): Save argv.
14901 * toplev.h (toplev_main): Update prototype.
14902 (save_argc, save_argv): Remove.
14904 2003-07-02 David Edelsohn <edelsohn@gnu.org>
14906 * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14907 (emit_bincl_stab): Same.
14908 (emit_pending_bincls): Same.
14910 2003-07-02 Nathan Sidwell <nathan@codesourcery.com>
14913 * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14915 2003-07-02 Andreas Schwab <schwab@suse.de>
14917 * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14919 2003-07-02 Eric Botcazou <ebotcazou@libertysurf.fr>
14921 PR optimization/11210
14922 * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14923 about the behaviour with regard to bitfields.
14924 * fold-const (decode_field_reference): Record outermost type in
14925 case the expression is a NOP. Strip all NOPs. Set the signedness
14926 to that of the outermost type (if any) when the bitsize is equal
14927 to the size of the type.
14929 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
14931 * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14932 (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14933 (adddi3_internal_3, addsi3_internal_2): Likewise.
14935 2003-07-02 Richard Sandiford <rsandifo@redhat.com>
14937 * config/mips/mips.c (machine_function): Add new fields:
14938 ignore_hazard_length_p and all_noreorder_p.
14939 (mips_flag_delayed_branch): New variable.
14940 (override_options): Treat '/' as an operand punctuation character.
14941 Set up mips_flag_delayed_branch.
14942 (print_operand): Handle '/'.
14943 (mips_output_function_prologue): Put the whole function in
14944 .set noreorder and .set nomacro if all_noreorder_p is true.
14945 (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14946 (mips16_optimize_gp): Remove "first insn" parameter.
14947 (mips16_lay_out_constants): New function, split out from mips_reorg.
14948 (mips_avoid_hazard, mips_avoid_hazards): New functions.
14949 (mips_reorg): For mips16 code, call mips16_lay_out_constant
14950 and (optionally) mips16_optimize. If TARGET_EXPLICIT_RELOCS,
14951 do delayed-branch scheduling followed by hazard detection.
14952 (mips_adjust_insn_length): Only account for hazards if
14953 !ignore_hazard_length_p.
14954 (mips_output_load_label): Add a nop to the o32 sequence if
14955 the target suffers from load delays.
14956 (mips_output_conditional_branch): Add %/ to the end of branches.
14957 (mips_output_division): Fill the branch delay slot with %#.
14958 * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14959 instructions. End all other %* branches with %/.
14960 (ffssi2, ffsdi2): Fix lengths.
14961 (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14962 (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14963 (fix_truncsfsi2_macro): Likewise.
14964 (mov_lwl): Set hazard to "none".
14965 (ashldi3_internal): Fill the branch delay slot with %#.
14966 (ashrdi3_internal, lshrdi3_internal): Likewise.
14967 (exception_receiver): Explicitly set $28.
14968 (hazard_nop): New pattern.
14970 2003-07-02 Jan Hubicka <jh@suse.cz>
14972 * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14973 before calling tree_inlinable_function_p.
14975 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14977 * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14978 <internal/stdio_core.h> too.
14979 (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14980 <internal/wchar_core.h> too.
14981 Substitute va_list uses in inline definition.
14982 * fixinc/fixincl.x: Regenerate.
14984 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14986 * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14987 Undef before redefinition.
14988 (LABEL_AFTER_LOC): Likewise.
14989 (DEFAULT_SIGNED_CHAR): Likewise.
14990 (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14993 * config/mips/iris3.h: Remove, unused.
14994 * config/mips/iris4.h: Likewise.
14996 * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14998 * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14999 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15000 target_cpu_default.
15002 * config/mips/iris5.h: Move explicit includes ...
15003 * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15005 * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15006 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15009 * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15010 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15011 target_cpu_default.
15013 * config/mips/iris6.h: Fix IRIX spelling.
15014 (MULTILIB_DEFAULTS): Undef before redefinition.
15016 * config/mips/iris6.h: Move explicit includes ...
15017 * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15019 2003-07-02 Jan Hubicka <jh@suse.cz>
15021 * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15022 cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15023 Use next_needed field instead of aux to maintain the queue.
15024 * cgraph.h (cgraph_node): Add next_needed.
15025 (cgraph_varpool_node): Add next_needed; remove aux.
15026 * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15028 2003-07-02 Jan Hubicka <jh@suse.cz>
15030 * cgraphunit.c (cgraph_finalize_function): Set finalized.
15031 (cgraph_finalize_function): Do not examine inlinablility.
15032 (cgraph_finalize_compilation_unit): Do it here.
15033 * cgraph.h (cgraph_local_info): Add finalized field.
15035 2003-07-02 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
15037 * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15038 (gt_pch_restore): Likewise.
15040 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15042 * config/alpha/alpha.c: Fix comment typos.
15043 * config/alpha/elf.h: Likewise.
15044 * config/arm/arm.c: Likewise.
15045 * config/arm/arm.h: Likewise.
15046 * config/arm/arm.md: Likewise.
15047 * config/arm/t-arm-coff: Likewise.
15048 * config/arm/t-strongarm-pe: Likewise.
15049 * config/arm/xscale-elf.h: Likewise.
15050 * config/avr/avr.h: Likewise.
15052 2003-07-01 Jeff Law <law@redhat.com>
15054 * stmt.c (any_pending_cleanups): Remove another redundant test.
15056 2003-07-01 David Edelsohn <edelsohn@gnu.org>
15057 J"orn Rennecke <joern.rennecke@superh.com>
15059 * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15062 2003-07-01 Devang Patel <dpatel@apple.com>
15064 * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15065 (binclstatus): New.
15066 (struct dbx_file): New members - bincl_status, pending_bincl_name and
15068 (pending_bincls): New.
15069 (dbxout_init): Initialize new dbx_file members.
15070 (dbxout_start_source_file): Same.
15071 (emit_bincl_stab): New function.
15072 (emit_pending_bincls): Same.
15073 (emit_pending_bincls_if_required): Same.
15074 (dbxout_end_source_file): Emit EINCL stab only if BINCL is already
15076 (dbxout_begin_block): Emit pending BINCL stabs.
15077 (dbxout_end_block): Same.
15078 (dbxout_function_decl): Same.
15079 (dbxout_continue): Same.
15080 (dbxout_type): Same.
15081 (dbxout_class_name_qualifiers): Same.
15082 (dbxout_symbol): Same.
15083 (dbxout_symbol_location): Same.
15084 (dbxout_parms): Same.
15086 2003-07-01 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
15088 * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15089 * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15091 2003-07-01 Andreas Jaeger <aj@suse.de>
15093 * fold-const.c: Convert prototypes to ISO C90.
15094 * function.c: Likewise.
15095 * function.h: Likewise.
15097 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15099 * doc/contrib.texi: Fix typos.
15100 * doc/invoke.texi: Likewise.
15101 * doc/passes.texi: Likewise.
15102 * doc/sourcebuild.texi: Likewise.
15103 * doc/tm.texi: Likewise.
15105 2003-07-01 Kazu Hirata <kazu@cs.umass.edu>
15107 * basic-block.h: Fix comment typos.
15108 * bb-reorder.c: Likewise.
15109 * c-format.c: Likewise.
15110 * cfgcleanup.c: Likewise.
15111 * cfghooks.h: Likewise.
15112 * cfgloop.c: Likewise.
15113 * cfgloopmanip.c: Likewise.
15114 * cfgrtl.c: Likewise.
15115 * cgraph.h: Likewise.
15116 * cgraphunit.c: Likewise.
15117 * combine.c: Likewise.
15118 * convert.c: Likewise.
15119 * dbxout.c: Likewise.
15122 * diagnostic.c: Likewise.
15123 * dwarf2out.c: Likewise.
15124 * et-forest.h: Likewise.
15125 * flow.c: Likewise.
15126 * fold-const.c: Likewise.
15127 * function.h: Likewise.
15128 * gcov-io.h: Likewise.
15129 * gcov.c: Likewise.
15130 * gcse.c: Likewise.
15131 * genautomata.c: Likewise.
15132 * ggc-common.c: Likewise.
15133 * ggc-page.c: Likewise.
15134 * loop-unroll.c: Likewise.
15135 * loop-unswitch.c: Likewise.
15136 * loop.c: Likewise.
15137 * mips-tfile.c: Likewise.
15138 * optabs.c: Likewise.
15139 * ra-build.c: Likewise.
15140 * ra-colorize.c: Likewise.
15141 * ra-rewrite.c: Likewise.
15143 * regmove.c: Likewise.
15144 * reload.c: Likewise.
15145 * rtlanal.c: Likewise.
15146 * sched-ebb.c: Likewise.
15147 * sched-int.h: Likewise.
15148 * sched-vis.c: Likewise.
15149 * sreal.c: Likewise.
15150 * ssa-ccp.c: Likewise.
15152 * toplev.c: Likewise.
15153 * tree-inline.c: Likewise.
15154 * value-prof.c: Likewise.
15155 * value-prof.h: Likewise.
15157 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15159 * rtl.h (emit_line_note_after): Remove.
15160 (emit_note_copy_after, emit_note_copy): New.
15161 * emit-rtl.c (reorder_insns_with_line_notes): Replace
15162 emit_line_note_after with emit_note_copy_after.
15163 (emit_insn_after_with_line_notes): Likewise.
15164 (emit_line_note_after): Kill.
15165 (emit_note_copy_after): New.
15166 (emit_note_copy): New.
15167 * function.c (emit_return_into_block): Use emit_note_copy_after.
15168 (thread_prologue_and_epilogue_insns): Likewise.
15169 * integrate.c (expand_inline_function): Use emit_note_copy.
15170 (copy_insn_list): Likewise.
15171 * unroll.c (copy_loop_body): Likewise.
15172 * cfglayout.c (duplicate_insn_chain): Likewise.
15174 2003-07-01 Nathan Sidwell <nathan@codesourcery.com>
15176 * c-tree.h (define_label): Replace filename and lineno arguments
15178 * c-decl.c (poplevel): Adjust define_label call.
15179 (pop_label_level): Likewise.
15180 (define_label): Replace filename and lineno arguments with a
15182 (store_parm_decls): Use DECL_SOURCE_LOCATION.
15183 * c-parse.in (label): Adjust define_label call.
15185 2003-07-01 Neil Booth <neil@daikokuya.co.uk>
15187 * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15188 config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15189 config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15190 config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15191 config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15193 2003-07-01 Andreas Jaeger <aj@suse.de>
15195 * final.c: Convert prototypes to ISO C90.
15196 * flow.c: Likewise.
15197 * flags.h: Likewise.
15198 * gcov-io.c: Likewise.
15199 * gcov-io.h: Likewise.
15201 See ChangeLog.9 for earlier changes.