OSDN Git Service

* system.h (DEFAULT_CALLER_SAVES): Poison.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-12-15  Kazu Hirata  <kazu@cs.umass.edu>
2
3         * system.h (DEFAULT_CALLER_SAVES): Poison.
4         * toplev.c (flag_caller_saves): Always initialize with 0.
5         * doc/tm.texi (DEFAULT_CALLER_SAVES): Remove.
6
7 2003-12-15  Kazu Hirata  <kazu@cs.umass.edu>
8
9         * flow.c (EXIT_IGNORE_STACK): Move to ...
10         * defaults.h (EXIT_IGNORE_STACK): ... here.
11         * dojump.c (clear_pending_stack_adjust): Don't use #ifdef
12         EXIT_IGNORE_STACK.
13         * function.c (expand_function_end): Likewise.
14         * global.c (global_alloc): Likewise.
15         * ra.c (init_ra): Likewise.
16         * reload1.c (init_elim_table): Likewise.
17         * reorg.c (fill_simple_delay_slots): Likewise.
18         * resource.c (init_resource_info): Likewise.
19         * doc/tm.texi (EXIT_IGNORE_STACK): Document that the default
20         is 0.
21
22 2003-12-15  J"orn Rennecke <joern.rennecke@superh.com>
23
24         * reload.c (reg_overlap_mentioned_for_reload_p):
25         When looking at a PLUS in X, avoid spuriously returning nonzero
26         when IN is a REG or another simple PLUS, or a MEM containing one.
27
28         * loop.c (loop_invariant_p): Amend comment about where new registers
29         might come from.
30
31 2003-12-15  Andreas Jaeger  <aj@suse.de>
32
33         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Remove
34         handling of obsolete language CHILL.
35
36 2003-12-15  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
37
38         * tree.c (initializer_zerop): Add test for empty set.
39         * integrate.c (function_cannot_inline_p): Forbid inlining
40         functions calling `longjmp'.
41
42 2003-12-15  Nathan Sidwell  <nathan@codesourcery.com>
43
44         PR c++/11773
45         * doc/gcov.texi (Gcov and Optimization): Document inline function
46         behaviour. Fix some file suffixes.
47
48 2003-12-14  David O'Brien  <obrien@FreeBSD.org>
49
50         * config/i386/i386.h (__amd64, __amd64__): Remove duplicates.
51
52 2003-12-14  Mark Mitchell  <mark@codesourcery.com>
53
54         * c-common.h (c_parse_error): Declare it.
55         * c-common.c (c_parse_error): New function.
56         * c-parse.y (yyerror): Use it.
57
58 2003-12-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
59
60         PR target/13054
61         * pa-protos.h (indexed_memory_operand, borx_reg_operand,
62         move_dest_operand, move_src_operand): New protypes.
63         (basereg_operand, move_operand, reg_or_nonsymb_mem_operand): Deleted.
64         * pa.c (copy_reg_pointer, indexed_memory_operand, move_dest_operand,
65         move_src_operand): New functions.
66         (basereg_operand, reg_or_nonsymb_mem_operand, move_operand): Delete.
67         (reg_or_0_or_nonsymb_mem_operand): Return false for unscaled indexed
68         address until cse is not expected on targets with non-equivalent
69         space registers.
70         (hppa_legitimize_address): Canonicalize unscaled indexed addresses
71         on targets non-equivalent space registers.
72         (emit_move_sequence): Break out indexed addresses from destination
73         operand.  Similarly, break out unscaled indexed addresses from
74         source operand on targets with non-equivalent space registers.  Fix
75         REG_POINTER flag when possible.  Mark register pointer when creating
76         new pointers.
77         (print_operand): Handle unscaled index addresses.
78         * pa.h (IS_INDEX_ADDR_P, IS_LO_SUM_DLT_ADDR_P): New macro subroutines
79         for EXTRA_CONSTRAINT.
80         (EXTRA_CONSTRAINT): Rework to make more readable.
81         (MODE_OK_FOR_SCALED_INDEXING_P, MODE_OK_FOR_UNSCALED_INDEXING_P): New
82         subroutines for GO_IF_LEGITIMATE_ADDRESS.
83         (GO_IF_LEGITIMATE_ADDRESS): Rework using new subroutines.  Allow scaled
84         and unscaled addresses.  Canonicalize unscaled indexed addresses on
85         targets with non-equivalent space registers.  Document issues in
86         handling indexed address modes on PA-RISC.
87         (PREDICATE_CODES): Update for new and deleted predicates.
88         * pa.md (move_dest_operand, move_src_operand, indexed_memory_operand):
89         Use new predicates in move patterns.
90         Add peephole2 patterns to optimize floating point stores.  Fix
91         constrain preferencing in move patterns.  Delete patterns for handling
92         unscaled indexed memory loads.  Add missing load and store with
93         base-register modification patterns.  Correct SFmode floating point
94         store pattern.  Add missing zero extension loads.
95
96 2003-12-13  Steven Bosscher  <stevenb@suse.de>
97
98         * ggc-zone.c (struct alloc_zone): Don't pre-declare, it already
99         comes in with ggc.h.  Add a new bool field `dead'.
100         (destroy_ggc_zone): Don't destroy a zone at once.  Instead, only
101         set the `dead' flag for the dead zone.  Wrap a sanity check in
102         ENABLE_CHECKING.
103         (ggc_collect_1): Always mark and sweep if a zone has the `dead'
104         flag set.
105         (ggc_collect): Free dead zones after collecting.
106
107 2003-12-13  Jan Hubicka  <jh@suse.cz>
108
109         * coverage.c (get_coverage_counts):  Use inform instead of warning
110         about missing profile.
111
112 2003-12-12  Steven Bosscher  <stevenb@suse.de>
113
114         * Makefile.in (opts.o, explow.o): Depend on langhooks.h
115
116 2003-12-12  Geoffrey Keating  <geoffk@apple.com>
117
118         * config.gcc <i[34567]86-*-darwin*>: Don't use fixproto.
119         <powerpc-*-darwin*>: Likewise.
120
121 2003-12-12  Jakub Jelinek  <jakub@redhat.com>
122
123         * config/ia64/linux.h (IA64_GATE_AREA_END): Increase by 64K.
124         (MD_FALLBACK_FRAME_STATE_FOR): Set fpsr_loc, br_loc[6] and
125         br_loc[7].  Update comment.
126         (MD_HANDLE_UNWABI): Define.
127         * config/ia64/unwind-ia64.c (struct unw_state_record): Add
128         unwabi field.
129         (struct _Unwind_Context): Increase br_loc array size to 8 entries.
130         (desc_abi): Set unwabi.
131         (uw_update_reg_address): Allow br up to 7.
132         (uw_update_context): Invoke MD_HANDLE_UNWABI if defined.
133         (uw_install_context): Load b1..b5 from correct locations.
134         Fix insn loading ar.fpsr.
135         * doc/tm.texi: Document MD_HANDLE_UNWABI.
136
137 2003-12-12  Roger Sayle  <roger@eyesopen.com>
138
139         PR optimization/13037
140         * loop.c (update_giv_derive): Ignore redundant sets of a biv when
141         calculating how to derive a giv from a biv.
142
143 2003-12-12  Neil Booth  <neil@daikokuya.co.uk>
144
145         PR preprocessor/12935 preprocessor/12952 preprocessor/13046
146         * cpplib.c (prepare_directive_trad): Clear skipping only in
147         #if and #elif directives.
148         (do_undef): Call the handler even if the identifier is not a macro.
149         * cpptrad.c (scan_parameters): Emit an error message.
150         (_cpp_create_trad_definition): Remember the params list even on
151         failure.
152
153 2003-12-11  Zack Weinberg  <zack@codesourcery.com>
154
155         * arm.c (ARM_ADDRESS_COST, THUMB_ADDRESS_COST): Convert macros
156         to inline functions: arm_arm_address_cost, arm_thumb_address_cost
157         respectively.
158         (arm_address_cost): Use 'em.
159
160 2003-12-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
161
162         * config/alpha/osf.h (TARGET_OS_CPP_BUILTINS): Define
163         __STDC_VERSION__ to ISO C94 for C++.
164
165         * fixinc/inclhack.def (alpha_wchar): New fix.
166         * fixinc/fixincl.x: Regenerate.
167         * fixinc/tests/base/wchar.h: New file.
168
169 2003-12-11  David Mosberger  <davidm@hpl.hp.com>
170
171         * unwind-libunwind.c (_Unwind_SetGR): Clear the NaT bit as
172         required by C++ ABI for Itanium.
173         * config/t-libunwind (LIB2ADDEH): Remove unwind-libunwind.c.
174         * config/t-libunwind-no-eh: New file.
175         * configure.in: Check libunwind for _Unwind_Resume() and if it's
176         present, set libunwind_has_eh_support to "yes".
177         * configure: Regenerate.
178         * config.gcc (ia64*-*-linux*): If $libunwind_has_eh_support is
179         set to yes, use t-libunwind, otherwise, use t-libunwind-no-eh.
180
181 2003-12-11  Richard Sandiford  <rsandifo@redhat.com>
182
183         * config/mips/mips.c (mips_global_pointer): Force functions with
184         a nonlocal goto to set up $gp.
185
186 2003-12-11  James E Wilson  <wilson@specifixinc.com>
187
188         PR target/13132
189         * function.c (gen_mem_addressof): When no decl, explicitly clear flag
190         bits.
191
192 2003-12-12  Nick Clifton  <nickc@redhat.com>
193
194         * config/m32r/m32r.c: Convert to ISO-C
195
196 2003-12-12  Kazuhiro Inaoka  <inaoka.kazuhiro@renesas.com>
197
198         * doc/invoke.texi: Replace Mitsubishi with Renesas.
199         * config/m32r/m32r.h: Ditto.
200         * config/m32r/m32r.c: Ditto.
201         * config/m32r/m32r.md: Ditto.
202
203 2003-12-11  Steven Bosscher  <steven@gcc.gnu.org>
204
205         * basic-block.h (BLOCK_HEAD, BLOCK_END): Remove.
206         (BLOCK_HEAD_TREE, BLOCK_END_TREE): Remove.
207         (basic_block_def): Rename `head' to `head_' and `end' to `end_'.
208         (BB_HEAD, BB_END): New accessor macros for the `head_' and `end_'
209         fields of a basic block.
210         * bb-reorder.c, bt-load.c, caller-save.c, cfg.c, cfganal.c,
211         cfgbuild.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgloopanal.c,
212         cfgloopmanip.c, cfgrtl.c, combine.c, conflict.c, df.c, emit-rtl.c,
213         final.c, flow.c, function.c, gcse.c, global.c, graph.c,
214         haifa-sched.c, ifcvt.c, lcm.c, local-alloc.c, loop-unswitch.c,
215         loop.c, postreload.c, predict.c, profile.c, ra-build.c, ra-debug.c,
216         ra-rewrite.c, ra.c, recog.c, reg-stack.c, regclass.c, regmove.c,
217         regrename.c, reload1.c, resource.c, sched-ebb.c, sched-rgn.c,
218         sibcall.c, tracer.c, config/frv/frv.c, config/i386/i386.c,
219         config/ia64/ia64.c: Use the BB_HEAD and BB_END macros instead of
220         accessing the `head' and `end' fields of a basic block directly.
221
222         * gengtype.c: Teach about "void**" pointers and "void *" function
223         types.  Fixes earlier commit.
224
225 2003-12-10  Geoffrey Keating  <geoffk@apple.com>
226
227         * doc/extend.texi (Vector Extensions): Document that bitwise
228         operations also work on vectors.
229
230 2003-12-10  Richard Earnshaw  <rearnsha@arm.com>
231
232         * arm.md: New split patterns for optimizing bitfield accesses.
233
234 2003-12-10  Steven Bosscher  <stevenb@suse.de>
235
236         * README.Portability: Remove K+R section.
237
238         * gengtype-lex.l: Teach about "void**" pointers and
239         "void*" function types.
240
241 2003-12-10  Eric Botcazou  <ebotcazou@libertysurf.fr>
242
243         PR target/13354
244         * config/sparc/sparc.c (sparc_output_mi_thunk): Load DELTA
245         manually if one can do that with only one instruction.
246
247 2003-12-10  Nick Clifton  <nickc@redhat.com>
248
249         * config.gcc (arm-linux): Include linux.h in tm_file so that
250         LINUX_TARGET_OS_CPP_BUILTINS is defined.
251         * config/arm/linux-elf.h (LIB_SPEC): Protect the definition.
252
253 2003-12-09  James E Wilson  <wilson@specifixinc.com>
254
255         * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
256
257 2003-12-09  Matt Austern  <austern@apple.com>
258
259         PR c/13134
260         * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
261
262 2003-12-09  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
263
264         * config/m32r/m32r.h: Add support for m32r2 processor.  Including
265         a new command line option -m32r2 to select it.
266         * config/m32r/m32r.c: Add support for the new processor variant.
267         * config/m32r/m32r.md: Likewise.
268         * config/m32r/t-m32r: Add m32r2 multilibs.
269         * doc/invoke.texi: Document the new command line switch.
270
271 2003-12-08  Kazu Hirata  <kazu@cs.umass.edu>
272
273         * defaults.h (LOCAL_REGNO): Give the default definition.
274         * flow.c (LOCAL_REGNO): Remove.
275         * reload1.c (LOCAL_REGNO): Likewise.
276
277 2003-12-08  Geoffrey Keating  <geoffk@apple.com>
278
279         PR target/11848
280         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
281         in floating-point registers between TFmode and DImode.
282         * rs6000.c (rs6000_emit_move): Split moves early.
283         (secondary_reload_class): Random Whitespace Change.
284         (rs6000_split_multireg_move): Support moves involving FP registers.
285         Emit instructions directly.
286         * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
287         * altivec.md: Update for changes to rs6000_split_multireg_move.
288         * rs6000.md: Update for changes to rs6000_split_multireg_move.
289         (movtf_internal): Support moves to/from GPRs.
290
291 2003-12-08  Stuart Hastings  <stuart@apple.com>
292
293         * config/i386/i386.md: Typo in split of fp-valued if_then_else.
294
295 2003-12-08  James E Wilson  <wilson@specifixinc.com>
296
297         PR target/13132
298         * expmed.c (extract_bit_field): Only call mode_for_size for scalar
299         integer modes.
300
301 2003-12-08  Nathanael Nerode  <neroden@gcc.gnu.org>
302
303         * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
304         directory.
305
306 2003-12-08  Alexandre Oliva  <aoliva@redhat.com>
307
308         * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
309         by using match_scratch.
310         (negdi2): New.
311
312 2003-12-08  Jason Merrill <jason@redhat.com>
313             Daniel Berlin  <dberlin@dberlin.org>
314
315         PR debug/11114
316         Support namespaces in DWARF 2 output.
317         * dwarf2out.c (gen_namespace_die): New function.
318         (force_namespace_die, setup_namespace_context): New fns.
319         (declare_in_namespace): New fn.
320         (gen_decl_die): Call declare_in_namespace.  Handle namespaces.
321         (dwarf2out_decl): Handle namespaces.
322         (scope_die_for): Pass through a namespace scope.
323         (class_scope_p): Rename to class_or_namespace_scope_p.
324         (gen_subprogram_die, gen_variable_die): Adjust.
325         (gen_struct_or_union_die): Always emit a declaration
326         if context_die is a namespace.
327
328 2003-12-08  Jan Hubicka  <jh@suse.cz>
329
330         * unwind-pe.h (read_uleb128): Fix handling of large values
331         (read_sleb128): Fix handling of large values
332
333 2003-12-08  Andrew Pinski  <pinskia@physics.uc.edu>
334
335         PR middle-end/10060
336         * emit-rtl.c (copy_rtx_if_shared): Split out into ...
337         (copy_rtx_if_shared_1): here and optimize the last one
338         in the sequence into tail-recursion.
339         (reset_used_flags): Optimize the last one
340         in the sequence into tail-recursion.
341
342 2003-12-08  Richard Earnshaw  <rearnsha@arm.com>
343
344         * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
345         for constant X.
346
347 2003-12-08  Richard Sandiford  <rsandifo@redhat.com>
348
349         * calls.c (expand_call): Don't try using tail or recursive calls
350         after the function body has been expanded.
351
352 2003-12-08  Jan Hubicka  <jh@suse.cz>
353
354         * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
355
356 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
357
358         PR ada/13324, PR ada/12614
359         * doc/install.texi: Update requirements for building Ada.
360
361 2003-12-07  David Edelsohn  <edelsohn@gnu.org>
362             Graham Reed <greed@pobox.com>
363
364         * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
365         (GCC_UNDEF_SYMBOL): Same.
366
367 2003-12-07  Kazu Hirata  <kazu@cs.umass.edu>
368
369         * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
370         * system.h (FINAL_PRESCAN_LABEL): Poison.
371         * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
372
373 2003-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
374
375         * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
376
377 2003-12-07  Nathanael Nerode  <neroden@gcc.gnu.org>
378
379         * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
380         * configure: Regenerate with autoconf 2.13.
381
382         * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
383         with modern equivalents.
384         * configure: Regenerate.
385
386         * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
387         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
388         * configure: Regenerate.
389
390         * configure: Regenerate with (preferred) autoconf 2.57.
391         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
392
393 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
394
395         PR optimization/12965
396         * caller-save.c (save_call_clobbered_regs): Do not save/restore
397         registers around no-return calls.
398
399 2003-12-07  Nathanael Nerode  <neroden@gcc.gnu.org>
400
401         * configure.in: Make minimum necessary changes for autoconf 2.5x.
402         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
403         * configure: Regenerate with autoconf 2.58.
404
405 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
406
407         PR optimization/13318
408         * loop.c (express_from): Protect integer division from overflow.
409
410 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
411
412         PR optimization/13060
413         * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
414         replacement already exists.  Fix again the whole insn if that fails.
415
416 2003-12-06  Andrew Pinski  <pinskia@physics.uc.edu>
417
418         * config/rs6000/rs6000.c (macho_branch_islands): Use
419         HOST_WIDE_INT_PRINT_UNSIGNED.
420
421 2003-12-06  Richard Sandiford  <rsandifo@redhat.com>
422
423         * varasm.c (incorporeal_function_p): New.
424         (assemble_external): Use it as a filter.
425         * config/mips/mips.c (mips_output_external): Don't check for builtin
426         functions here.
427
428 2003-12-06  Richard Earnshaw  <reanrsha@arm.com>
429
430         * arm.md (IOR (COMPARISON) (AND)): New define_splits.
431
432 2003-12-06  Kelley Cook  <kcook@gcc.gnu.org>
433
434         * Makefile.in (program_transform_cross_name): Delete.
435         (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
436         (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
437         (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
438         (install_cpp, install_driver, install-man, uninstall): Likewise.
439
440 2003-12-06  Alan Modra  <amodra@bigpond.net.au>
441
442         PR 13169
443         * basic-block.h (PROP_ASM_SCAN): Define.
444         * final.c (regs_asm_clobbered): New array.
445         * regs.h (regs_asm_clobbered): Declare.
446         * flow.c (life_analysis): Init it.
447         (mark_set_regs): Set PROP_ASM_SCAN for asms.
448         (mark_set_1): Set regs_asm_clobbered.
449         * global.c (global_alloc): Don't set eliminable_regset when
450         regs_asm_clobbered.
451
452 2003-12-05  Mark Mitchell  <mark@codesourcery.com>
453
454         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
455
456         PR c++/13314
457         * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
458
459 2003-12-05  Andrew Pinski <pinskia@physics.uc.edu>
460
461         PR driver/13211
462         * gcc.c (execute) Increment execution_count when returning
463         early because verbose_only_flag is true.
464
465 2003-12-05  Per Bothner  <pbothner@apple.com>
466
467         * cppfiles.c (file_hash_hash):  New static function.
468         (hash_string_eq):  Renamed static function to file_hash_eq.
469         (_cpp_init_files):  Create file_hash table with above callbacks.
470         (cpp_included):  Must use htab_find_with_hash insead of htab_find.
471         (_cpp_find_find, make_cpp_dir):  Must use htab_find_slot_with_hash.
472
473 2003-12-05  Per Bothner  <pbothner@apple.com>
474
475         * line-map.h (source_location):  New typedef.
476         (fileline):  Redefined as source_location.
477         (struct line_map, linemap_add, linemap_lookup):  Replace filefile
478         by source_location.
479         * line-map.c (linemap_add, linemap_lookup):  Use source_location.
480
481 2003-12-05  Richard Henderson  <rth@redhat.com>
482
483         * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
484         field to suppress -Wpadded warnings.
485
486 2003-12-05  Stuart Hastings  <stuart@apple.com>
487
488         * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
489
490 2003-12-05  Stuart Menefy <stuart.menefy@st.com>
491             J"orn Rennecke <joern.rennecke@superh.com>
492
493         PR target/13302
494         * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
495
496 2003-12-05  Roger Sayle  <roger@eyesopen.com>
497
498         * dojump.c (do_jump): If the expression being compared against
499         zero, is the subreg of a promoted variable, perform the comparison
500         in the promoted mode.
501         * simplify-rtx.c (simplify_unary_operation): Optimize sign and
502         zero-extensions of subregs of promoted variables where the
503         extension is identical to that used to promote the variable.
504
505 2003-12-05  Hans-Peter Nilsson  <hp@axis.com>
506
507         PR target/13256
508         * resource.h (enum mark_resource_type): Remove member MARK_DEST.
509         The only user changed as follows:
510         * resource.c (mark_set_resources) <case SET>: Always recurse for
511         SET_SRC (x).
512         <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
513         operands.
514         <case STRICT_LOW_PART>: Delete, deferring to default code.
515
516 2003-12-05  Waldek Hebisch <hebisch@math.uni.wroc.pl>
517
518         * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
519         and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
520
521 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
522
523         * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
524         for n32 & n64 abicalls.
525
526 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
527
528         PR bootstrap/13145
529         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
530         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
531         (mips_load_got): Always create a constant MEM.
532         (mips_expand_call): Use load_callsi and load_calldi.
533         * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
534         (load_callsi, load_calldi): New patterns.
535
536 2003-12-05  Peter Gerwinski <peter@gerwinski.de>
537
538         * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
539
540 2003-12-05  Steven Bosscher  <stevenb@suse.de>
541
542         * config/d30v/d30v-protos.h , config/d30v/d30v.c,
543         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
544         config/fr30/fr30-protos.h, config/fr30/fr30.c,
545         config/i370/i370-protos.h, config/i370/i370.c,
546         config/i960/i960-protos.h, config/i960/i960.c,
547         config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
548         config/m32r/m32r-protos.h, config/m32r/m32r.c,
549         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
550         config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
551         Convert to ISO C90 function declarations and definitions.
552
553 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
554
555         * doc/extend.texi (Constructing Calls): Add warning about
556         the limitations of the functions.
557
558 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
559
560         PR middle-end/11151
561         * function.h (struct function): New field 'x_naked_return_label'.
562         * function.c (free_after_compilation): Set it to NULL.
563         (expand_function_end): Emit 'naked_return_label' if it exists.
564         * rtl.h (expand_naked_return): Declare.
565         * stmt.c (expand_naked_return): New function to generate a
566         jump to 'naked_return_label'.
567         * builtins.c (expand_builtin_return): Call expand_naked_return
568         instead of expand_null_return.
569         * config/sparc/sparc.md (untyped_return): Likewise.
570
571 2003-12-04  Andrew Pinski  <pinskia@physics.uc.edu>
572
573         PR target/11322
574         * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
575
576         PR target/12467
577         * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
578
579 2003-12-04  Stuart Hastings  <stuart@apple.com>
580
581         * rs6000.c (output_call, macho_branch_islands,
582         add_compiler_branch_island, no_previous_def, get_previous_label)
583         Revisions of xx_stub functions for branch islands,
584         add -fPIC support for Darwin.
585         * rs6000-protos.h (output_call) Prototype.
586         * rs6000.md Use output_call.
587         * invoke.texi Explain Darwin semantics of -longcall.
588         * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
589
590 2003-12-04  Richard Henderson  <rth@redhat.com>
591
592         * config/i386/i386.md (addqi3_carry): Use q not r constraints.
593         (subqi3_carry): Likewise.
594
595 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
596
597         PR optimization/13260
598         * sh-protos.h (sh_expand_t_scc): Declare.
599         * sh.h (PREDICATE_CODES): Add cmpsi_operand.
600         * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
601         * sh.md (cmpsi): Use cmpsi_operand.  If T_REG is compared to
602         something that is not a CONST_INT, copy it into a pseudo register.
603         (subc): Fix description of new T value.
604         (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
605         (sltu, sleu, sgeu): Likewise.
606         (seq, sne): Likewise. Use sh_expand_t_scc.
607
608 2003-12-04  Nathanael Nerode  <neroden@gcc.gnu.org>
609
610         * configure.in: Generalize the CONFIG_HEADERS pattern under which
611         we stamp cstamp-h.
612         * configure: Regenerate.
613
614         * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
615         to avoid trouble when updating to autoconf 2.5x.
616         * configure: Regenerate (with autoconf 2.13 still).
617
618 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
619
620         * sh.md (truncdiqi2): Use andi opcode for immediate.
621         (reload_outdf+1,reload_outdf+2): Remove constraints.
622         (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
623         (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
624         (fipr, ftrv): Add .s suffix to opcode.
625
626 2003-12-04  Richard Sandiford  <rsandifo@redhat.com>
627
628         PR target/13186
629
630         Revert all of the following patch, except the addition of
631         hook_bool_machine_mode_true:
632
633         2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
634
635         * Makefile.in (targhooks.o, reload.o): Update dependencies.
636         (GTFILES): Add targhooks.c.
637         (gt-targhooks.h): New rule; depend on s-gtype.
638         * target.h (direct_pool_load_p): New hook.
639         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
640         (TARGET_INITIALIZER): Include it.
641         * targhooks.h (default_direct_pool_load_p): Declare.
642         (hook_bool_machine_mode_true): Declare.
643         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
644         gt-targhooks.h.
645         (pool_symbol): New variable.
646         (default_direct_pool_load_p): New function.
647         (hook_bool_machine_mode_true): New function.
648         * reload.c: Include target.h.
649         (find_reloads): If an alternative will force a constant into memory,
650         count an extra reload if constant pool symbols are not valid
651         addresses.  If an alternative uses memory to move values between
652         registers, count the move as two reloads rather than one.
653         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
654         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
655
656 2003-12-03  Mark Mitchell  <mark@codesourcery.com>
657
658         * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
659         * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
660         HAVE_AS_TLS is true.
661         * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
662
663 2003-12-03  James E Wilson  <wilson@specifixinc.com>
664
665         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
666
667         * gcc-page.c (extra_order_size_tab): Correct comment.
668
669 2003-12-03  Kazu Hirata  <kazu@cs.umass.edu>
670
671         * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
672         instead of gen_push_h8300hs.
673         (pop): Call gen_pop_h8300hs_advanced instead of
674         gen_pop_h8300hs.
675         * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
676         * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
677         Tighten the predicate.
678         (*tablejump_h8300hs_normal): Tighten the predicate.
679         (push_h8300hs): Change to
680         push_h8300hs_advanced.
681         (pop_h8300hs): Change to pop_h8300hs_advanced.
682
683 2003-12-03  Eric Christopher  <echristo@redhat.com>
684
685         * rtl.c: Fix typo.
686         * config/mips/mips.h: Ditto. Fix formatting.
687
688 2003-12-04  Ben Elliston  <bje@wasabisystems.com>
689
690         * future.options: Remove. Move to gnu.org web pages.
691
692 2003-12-03  Eric Christopher  <echristo@redhat.com>
693
694         * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
695         from here...
696         * c-tree.h: to here.
697
698 2003-12-03  Jan Hubicka  <jh@suse.cz>
699
700         PR optimization/12324
701         * toplev.c  (rest_of_decl_compilation): Do not deffer when compiling
702         in unit-at-a-time mode.
703
704 2003-12-03  Jakub Jelinek  <jakub@redhat.com>
705
706         * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
707         read-only field if cleared is 0.
708
709 2003-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>
710
711         * config.gcc: Mark obsolete targets for GCC 3.4.
712
713 2003-12-03  Zack Weinberg  <zack@codesourcery.com>
714
715         * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
716         * config.in, configure.in: Regenerate.
717         * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
718         including iconv.h.
719
720 2003-12-03  Alan Modra  <amodra@bigpond.net.au>
721
722         PR target/11229
723         * cse.c (cse_insn): Set classp using src_const_elt if
724         src_eqv_elt is NULL.
725
726 2003-12-03  Richard Earnshaw  <rearnsha@arm.com>
727
728         * gcse.c (reg_clear_last_set): New function.
729         (reg_set_info): If data is non-null, treat it as an sbitmap of
730         registers, set the bit for the register being set.
731         (compute_store_table): Allocate last_set_in with xcalloc.  Do not
732         memset this array on each iteration.  Pass reg_set_in_block[bb->index]
733         to note_stores while computing last_set_in instead of scanning
734         last_set_in after the first pass through the insns.
735         Clear last_set_in using reg_clear_last_set instead of explicitly
736         rescanning after each insn.  If checking is enabled, assert that
737         last_set_in is completely zeroed after each bb has been processed.
738
739 2003-12-02  Geoffrey Keating  <geoffk@geoffk.org>
740
741         * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
742         never read-write.
743         <REG>: Delete incorrect comment.
744         <SET>: Remove 'use_flags' variable.
745
746 2003-12-03  David Edelsohn  <edelsohn@gnu.org>
747
748         * function.c (assign_parms): Make sure parm PARALLEL combined
749         in reg is composed of more than one object and the mode really
750         produces a reg.
751
752 2003-12-03  Jan Hubicka  <jh@suse.cz>
753
754         * i386.c (classify_argument): Make it 64bit clean.
755
756 2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
757
758         * config/mips/mips.c (mips_output_external): Replace checks for
759         specific builtin-in functions with a check for DECL_BUILTIN_IN.
760
761 2003-12-02  Richard Henderson  <rth@redhat.com>
762
763         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
764         * tree.h (TREE_SET_CODE): Likewise.
765         * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
766
767 2003-12-02  Ben Elliston  <bje@wasabisystems.com>
768
769         * dbxstclass.h: Rename from this ..
770         * xcoff.h: .. to this.
771         * xcoffout.c: Include xcoff.h.
772
773 2003-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
774
775         * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
776
777 2003-12-01  James Lemke <jim@wasabisystems.com>
778
779         * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
780
781 2003-12-01  Roger Sayle  <roger@eyesopen.com>
782
783         PR optimization/11634
784         * recog.c (split_insn): Factor test of INSN_P and handling of
785         set_noop_p out of here into the two callers.
786         (split_all_insns): Add INSN_P test and set_noop_p handling here.
787         If deleting a no-op set after reload that has a REG_UNUSED note,
788         mark the basic block as changed and recalculate life information.
789         (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
790         here.
791
792 2003-12-01  Roger Sayle  <roger@eyesopen.com>
793
794         PR optimization/12322
795         * gcse.c (struct ls_expr): Change type of hash_index from int to
796         unsigned int.
797         (hash_expr): Document hash_table_size parameter and wrap long line.
798         (ldst_entry): Calculate expression's hash_index and record in ptr.
799         (trim_ld_motion_mems): Use hash_index to search a single bucket
800         instead of scanning the entire hash_table.  Remove the "del" local
801         variable and use the equivalent "expr == 0" instead.  Change last
802         to be a pointer to the pointer to the current element, to simplify
803         and speed-up deleting from a linked list.
804
805 2003-12-01  James E Wilson  <wilson@specifixinc.com>
806
807         * doc/contrib.texi: Update David Mosberger.
808
809         * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
810         of missing fields.
811
812         PR target/8407
813         * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
814         gen_rtx_REG to create new reg with argument mode.
815
816 2003-12-01  Steven Bosscher  <stevenb@suse.de>
817
818         * ggc.h (struct alloc_zone): Move forward declaration up.
819         (new_ggc_zone): New function prototype.
820         (destroy_ggc_zone): Ditto.
821         * ggc-simple.c (new_ggc_zone): New function, does nothing.
822         (destroy_ggc_zone): Ditto.
823         * ggc-page.c (new_ggc_zone): New function, does nothing.
824         (destroy_ggc_zone): Ditto.
825         * ggc-zone.c (struct page_entry): Fix comment.
826         (ggc_alloc_typed): Use a switch statement instead of ifs.
827         (new_ggc_zone): New function to set up a new GC zone.
828         (destroy_ggc_zone): New function to remove a GC zone.
829         init_ggc): Use new_ggc_zone to set up the default zones.
830         (ggc_collect): Walk a list of zones, instead of just the
831         default zones.  Report statistics using the zone name.
832
833 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
834
835         * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
836
837 2003-12-01  Roger Sayle  <roger@eyesopen.com>
838
839         PR optimization/12628
840         * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
841         * regclass.c (reg_scan): Include allocate_reg_info time in
842         TV_REG_SCAN.  Minor clean-ups.
843         (reg_scan_update): Minor clean-ups.
844
845 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
846
847         * config.gcc (s390x-ibm-tpf*): Add extra_parts.
848
849 2003-12-01  James E Wilson  <wilson@specifixinc.com>
850
851         * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
852         GR_ARG_FIRST.
853
854 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
855
856         * common.opt: Remove -fgnu-linker.
857         * flags.h: Remove flag_gnu_linker.
858         * opts.c: Don't handle OPT_fgnu_linker.
859         * toplev.c: Don't initialize flag_gnu_linker.
860         Remove gnu-linker entry from f_options.
861         * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
862         Don't reset flag_gnu_linker.
863         * config/mips/mips.c (override_options): Likewise.
864         * doc/invoke.texi: Remove all mention of -fgnu-linker.
865
866 2003-12-01  Daniel Berlin  <dberlin@dberlin.org>
867
868         * ggc-zone.c (ggc_pch_write_object): Calculate object size using
869         ggc_get_size (which accounts for large objects properly).
870
871 2003-12-01  Jeff Sturm  <jsturm@one-point.com>
872
873         PR optimization/13024
874         * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
875         parameter.
876         (rest_of_handle_old_regalloc): Likewise.  Add rebuild_notes
877         declaration.  Rebuild jump labels following local_alloc if necessary.
878         (rest_of_compilation): Remove rebuild_label_notes_after_reload
879         declaration.  Don't pass rebuild_notes parameter to
880         rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
881         Don't rebuild jump labels.
882
883 2003-12-01  Jeff Law  <law@redhat.com>
884
885         * flow.c (count_or_remove_death_notes_bb): New.  Extracted from
886         count_or_remove_death_notes.
887         (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
888
889 2003-12-01  Andreas Krebbel  <krebbel1@de.ibm.com>
890
891         * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
892
893 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
894
895         * reload.c (find_reloads_address): Split addresses of type
896         (plus (plus (reg) (reg)) (const_int)) only if one register
897         is either a valid base register or else one of the stack
898         frame related registers (sp/fp/ap).
899
900 2003-12-01  Steven Bosscher  <stevenb@suse.de>
901
902         * function.c (update_epilogue_consts): Don't use PARAMS.
903         * rtl.h (web_main): Ditto.
904         * target.h (is_costly_dependence): Ditto
905
906 2003-12-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
907
908         PR middle-end/7847
909         * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
910         do not recheck that 'op0' is a MEM.  Move comment.  When testing for
911         unaligned objects, take also into account the alignment of 'op0' and
912         'mode1' if 'op0' is a MEM.
913
914 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
915
916         * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
917
918 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
919
920         * doc/install.texi: Note that fastjar is built with automake 1.7.x
921         and autoconf 2.57.
922
923 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
924
925         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
926         target_flags directly rather than using TARGET_* defines.
927
928 2003-11-30  Ben Elliston  <bje@wasabisystems.com>
929
930         * doschk.c: Remove.
931
932 2003-11-30  Richard Sandiford  <rsandifo@redhat.com>
933
934         PR target/12727
935         * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
936         on 32-bit big-endian targets.
937
938 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
939
940         * genemit.c (register_constraints): Remove.
941
942 2003-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
943
944         * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
945         "iordi3"): Insns now use multiple letter constraints.
946         ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
947         covered by "*movdi_64".
948         ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
949         covered by "*movsi_zarch" and "*movsi_esa".
950         ("*movsi_zarch", "*movsi_!zarch"): New insns.
951         ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
952         by "*andsi3_zarch" and "anddi3".
953         ("*anddi3_ni"): Insn merged with "anddi3".
954         ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
955         ("*andsi3_zarch", "*andsi3_esa"): New insns.
956         ("*iordi3_oi"): Insn merged with "iordi3".
957         ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
958         ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
959
960         * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
961         merged to s390_single_part.
962         (s390_single_part): New function.
963         NOTE: Semantics have changed a bit. Now the value of the part must
964         be different from the others to get a non-negative return value.
965         (s390_extract_qi, s390_extract_hi): Functions merged to
966         s390_extract_part.
967         (s390_extract_part, s390_extra_constraint_str,
968         s390_const_ok_for_constraint_p): New functions. The L constraint got a
969         new meaning and the N constraint was added as a multiple letter
970         constraint.
971         (s390_extra_constraint): Function deleted.
972         (print_operand): New output modifier 'i' and 'j' added.
973         All uses of CONST_OK_FOR_LETTER_P were replaced by
974         CONST_OK_FOR_CONSTRAINT_P.
975
976         * config/s390/s390-protos.h: Function prototypes adapted.
977         * doc/md.texi: Documentation for new constraint letters added.
978
979 2003-11-30  Andreas Schwab  <schwab@suse.de>
980
981         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
982
983 2003-11-29  James E Wilson  <wilson@specifixinc.com>
984
985         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
986         instead of in shared_name.
987
988         * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
989         * reload1.c (reload): Re-add it here.
990
991 2003-11-30  Alan Modra  <amodra@bigpond.net.au>
992
993         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
994         set SECTION_WRITE on TARGET_RELOCATABLE.
995
996 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
997
998         * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
999
1000 2003-11-28  Gunther Nikl  <gni@gecko.de>
1001
1002         * config/m68k/m68k.c (MOTOROLA): Move from here...
1003         * config/m68k/m68k.h (MOTOROLA): ... to here.
1004         (OUTPUT_JUMP): Use do {...} while (0).
1005         * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
1006
1007 2003-11-28  Gunther Nikl  <gni@gecko.de>
1008
1009         * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
1010         m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
1011         MOTOROLA and USE_GAS.
1012         * config/m68k/rtemself.h (MOTOROLA): Delete.
1013         * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
1014         * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
1015
1016 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
1017
1018         * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
1019
1020 2003-11-29  Kelley Cook  <kcook@gcc.gnu.org>
1021
1022         * Makefile.in (install-info): Install gccinstall.info too.
1023
1024 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1025
1026         * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
1027
1028 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
1029
1030         * config/s390/s390.md ("movhi"): Do not emit extender pattern
1031         when loading from a (MEM (ADDRESSOF ...)).
1032         ("movqi"): Likewise.
1033
1034 2003-11-29  Joseph S. Myers  <jsm@polyomino.org.uk>
1035
1036         PR c/10333
1037         * c-parse.in (typespec_reserved_nonattr): Reject typeof on
1038         bit-fields.
1039
1040 2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
1041
1042         * stmt.c (expand_asm_operands): Check whether force_const_mem
1043         succeeded.
1044
1045 2003-11-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1046
1047         * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
1048         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
1049
1050         * config/alpha/gnu.h, config/alpha/linux.h,
1051         config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
1052         config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
1053         config/i386/linux-aout.h, config/i386/linux.h,
1054         config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
1055         config/m68k/uclinux.h, config/mips/linux.h,
1056         config/mn10300/linux.h, config/pa/pa-linux.h,
1057         config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
1058         config/sparc/linux.h, config/sparc/linux64.h,
1059         config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
1060         HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
1061         all necessary assertions are included.
1062
1063 2003-11-28  Jan Hubicka  <jh@suse.cz>
1064
1065         * emit-rtl.c (set_used_flags): New.
1066         (verify_rtx_sharing, verify_rtl_sharing): New.
1067         (unshare_all_rtl_1): Rename to....
1068         (unshare_all_rtl_in_chain): ... this one; make static.
1069         (copy_rtx_if_shared): LABEL_REF chan be shared.
1070         * ifcvt.c (unshare_ifcvt_sequence): New.
1071         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
1072         noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
1073         noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
1074         noce_try_abs, noce_process_if_block, find_cond_trap
1075         * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
1076         Declare.
1077
1078 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
1079
1080         * config/h8300/h8300.md: Fix a comment typo.
1081
1082 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
1083
1084         * config/h8300/h8300.md (*movsf_h8300h): Change to
1085         *movsf_h8300hs.
1086         (addsi_h8300): Change to *addsi_h8300.
1087         (addsi_h8300h): Change to *addsi_h8300hs.
1088         (subsi3_h8300): Change to *subsi3_h8300.
1089         (subsi3_h8300h): Change to *subsi3_h8300hs.
1090         (neghi2_h8300h): Change to *neghi2_h8300hs.
1091         (negsi2_h8300h): Change to *negsi2_h8300hs.
1092
1093 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
1094
1095         * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
1096         constraint.
1097         (*subhi3_h8300hs): Likewise.
1098
1099 2003-11-28  David Edelsohn  <edelsohn@gnu.org>
1100
1101         * config/rs6000/rs6000.h (MASK_MFCRF): New.
1102         (TARGET_MFCRF): Test target_flags, not processor type.
1103         (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
1104         Change Don't to Do not.
1105         * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
1106         to power4, 970, G5.
1107
1108 2003-11-27  J"orn Rennecke <joern.rennecke@superh.com>
1109
1110         * cse.c (cse_set_around_loop): When changing a constant load
1111         to a register -register copy, add a REG_EQUAL note.
1112
1113 2003-11-27  Randolph Chung  <tausq@debian.org>
1114             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1115
1116         * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
1117         insns.  Use the regular call expander for the call to the profiler.
1118         * pa.md (call_profiler): Delete.
1119         (load_offset_label_address): New insn to load the address of the
1120         current function for the profiler.
1121         (lcla1, lcla2): New insns to output a code label and load its address.
1122
1123 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1124
1125         * final.c (final_scan_insn): Remove commented-out code.
1126
1127 2003-11-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1128
1129         * doc/install.texi: Remove ADAC reference and make accurate.
1130
1131 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1132
1133         * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
1134         (FUNCTION_VALUE_REGNO_P): Likewise.
1135         * config/h8300/h8300.md: Define R0_REG.
1136
1137 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1138
1139         * config/h8300/h8300.c: Fix formatting.
1140         * config/h8300/h8300.md: Likewise.
1141
1142 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1143
1144         * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
1145
1146 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1147
1148         * config/h8300/h8300.md: Give names to anonymous insns.
1149
1150 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
1151
1152         * config/h8300/h8300.md (extendqisi2): Remove constraints.
1153
1154 2003-11-27  Gunther Nikl  <gni@gecko.de>
1155
1156         * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
1157
1158 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1159
1160         PR optimization/13041
1161         * final.c (frame_pointer_needed): Fix comment.
1162         * reload1.c (reload): Decrease alignment of the frame
1163         pointer if it was used for register allocation.
1164
1165 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1166
1167         PR target/12900
1168         * reg-stack (move_for_stack_reg): New prototype.  Return
1169         whether a control flow insn was deleted.
1170         (subst_stack_regs_pat): Likewise, using the information provided
1171         by move_for_stack_reg.
1172         (subst_stack_regs): Likewise, using the information provided
1173         by subst_stack_regs_pat.
1174         (convert_regs_1): Record whether a control flow insn was deleted,
1175         using the information provided by subst_stack_regs.  Purge dead
1176         edges only if a control flow insn was deleted.
1177
1178 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1179
1180         PR middle-end/8028
1181         PR middle-end/9890
1182         PR middle-end/11151
1183         PR middle-end/12210
1184         PR middle-end/12503
1185         PR middle-end/12692
1186         * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
1187         as the base address to copy the memory arguments to.
1188
1189 2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
1190
1191         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
1192         function aliases as functions.
1193
1194 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1195
1196         * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
1197         of ADAC.
1198         * configure: Regenerate.
1199
1200         * Makefile.in: Remove references to ADAC.
1201
1202         * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
1203         * configure: Regenerate.
1204
1205 2003-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
1206             Olivier Hainque  <hainque@act-europe.fr>
1207
1208         PR target/6466
1209         * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
1210         (sparc_flat_compute_frame_size): Likewise.
1211         (sparc_flat_save_restore): Move prototype...
1212         * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
1213         (save_regs): New prototype.
1214         (build_big_number): Likewise.
1215         (apparent_fsize): Change type to HOST_WIDE_INT.
1216         (actual_fsize): Likewise.
1217         (frame_base_offset): Likewise.
1218         (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
1219         Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1220         [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
1221         to load a 64-bit constant.
1222         (sparc_nonflat_function_prologue): Change string descriptor to
1223         HOST_WIDE_INT_PRINT_DEC.  Change offset type to HOST_WIDE_INT.
1224         (output_restore_regs): Change offset type to HOST_WIDE_INT.
1225         (sparc_nonflat_function_epilogue): Change string descriptor to
1226         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.
1227         (output_sibcall): Change size type to HOST_WIDE_INT.  Use
1228         build_big_number.  Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
1229         (sparc_frame_info): Change types for several components.
1230         (sparc_flat_compute_frame_size): Update types according to previous
1231         change.
1232         (sparc_flat_function_prologue): Change string descriptor to
1233         HOST_WIDE_INT_PRINT_DEC.  Change offset type to int.  Use
1234         build_big_number.
1235         (sparc_flat_function_epilogue): Change offset type to int.
1236         Rename 'size1' into 'reg_offset1'.  Change string descriptor to
1237         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.  Change big number
1238         limit to 4096 instead of 4095.
1239
1240         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
1241         HOST_WIDE_INT.
1242
1243 2003-11-24  Waldek Hebisch <hebisch@math.uni.wroc.pl>
1244
1245         * function.c: Make outer_function-chain external.
1246         * function.h: Likewise.
1247
1248 2003-11-24  Richard Sandiford  <rsandifo@redhat.com>
1249
1250         * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
1251         using GNU ld.
1252         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1253         whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1254         (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1255         (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1256         (SUBTARGET_EXTRA_SPECS): Define.
1257         * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1258         to __gcc_init and -fini function to __gcc_fini.
1259         (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1260         (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1261         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1262         * config/mips/t-iris6gld,
1263         * config/mips/irix6-crti.asm,
1264         * config/mips/irix6-crtn.asm: New files.
1265
1266 2003-11-24  Eric Christopher  <echristo@redhat.com>
1267
1268         PR C/13014
1269         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1270         (start_function): Use.
1271         (c_push_function_context): Ditto.
1272         (c-pop_function_context): Ditto.
1273         (language_function): Move...
1274         * c-tree.h: ... here. Add x_in_iteration_stmt, and
1275         x_in_case_stmt.
1276         * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1277         c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1278         check for valid break or continue statment here...
1279         * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1280         here. Change original errors to abort.
1281
1282 2003-11-24  Jan Hubicka  <jh@suse.cz>
1283
1284         * fold-const.c (fold):  Do not return early when optimizing
1285         COMPONENT_REF and constant.
1286
1287 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1288
1289         * config/h8300/h8300.md (tablejump_h8300): Change to
1290         *tablejump_h8300.
1291         (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1292         (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1293         (indirect_jump_h8300): Change to *indirect_jump_h8300.
1294         (indirect_jump_h8300h): Change to
1295         *indirect_jump_h8300hs_advanced.
1296         (indirect_jump_normal_mode): Change to
1297         *indirect_jump_h8300hs_normal.
1298
1299 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1300
1301         * config/h8300/h8300.md: Remove constraints from expanders.
1302
1303 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1304
1305         * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1306         stm_h8300s_2_advanced.
1307         (stm_h8300s_2_normal): New.
1308         (stm_h8300s_2): Likewise.
1309         (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1310         (stm_h8300s_3_normal): New.
1311         (stm_h8300s_3): Likewise.
1312         (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1313         (stm_h8300s_4_normal): New.
1314         (stm_h8300s_4): Likewise.
1315         (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1316         (ldm_h8300s_2_normal): New.
1317         (ldm_h8300s_2): Likewise.
1318         (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1319         (ldm_h8300s_3_normal): New.
1320         (ldm_h8300s_3): Likewise.
1321         (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1322         (ldm_h8300s_4_normal): New.
1323         (ldm_h8300s_4): Likewise.
1324         (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1325         (two peephole2's): New.
1326
1327 2003-11-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1328
1329         * genattrtab.c (simplify_cond): Update indices correctly.
1330         (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1331         attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1332         (check_attr_test, encode_units_mask, compute_alternative_mask,
1333         make_alternative_compare, simplify_and_tree,
1334         attr_rtx_cost, simplify_test_exp, gen_attr,
1335         write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1336         * rtl.def (EQ_ATTR_ALT): New.
1337
1338 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1339
1340         * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1341         (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1342         New variables.
1343         (main): Initialize them.
1344         (find_attr): Canonicalize the attribute name string.
1345         (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1346         string arguments.
1347         (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1348         (check_attr_test, check_attr_value, make_length_attrs,
1349         write_length_unit_log, simplify_by_exploding, gen_attr,
1350         write_test_expr, write_attr_value, write_eligible_delay,
1351         write_complex_function, make_internal_attr,
1352         write_const_num_delay_slots): Changed due to change of type of
1353         find_attr.
1354         (fill_attr, evaluate_eq_attr, simplify_and_tree,
1355         attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1356         strcmp_check.
1357
1358 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1359
1360         PR target/13122
1361         * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1362         normal mode.
1363         (pop): Call pop_h8300hs_normal in normal mode.
1364         * config/h8300/h8300.md: Likewise.
1365         (pushqi1_h8300hs_normal): New.
1366         (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1367         (pushhi1_h8300hs_normal): New.
1368         (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1369         (push_h8300hs_normal): New.
1370         (pop_h8300hs_normal): Likewise.
1371
1372 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1373
1374         * genattrtab.c (count_sub_rtxs): Removed.
1375
1376 2003-11-23  Richard Earnshaw  <rearnsha@arm.com>
1377
1378         * recog.c (preprocess_constraints): Only zero those elements of
1379         recog_op_alt that are needed for this insn.
1380         * arm.c (note_invalid_constants): A function can't contain invalid
1381         constants if it has no constraints.
1382
1383 2003-11-22  Jan Hubicka  <jh@suse.cz>
1384
1385         * i386.c (classify_argument): Pass __float128 in memory.
1386         (ix86_return_in_memory): Likewise.
1387         (ix86_libcall_value): Likewsie.
1388
1389 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
1390
1391         * config/h8300/h8300.c (dosize): Convert to ISO-C.
1392
1393 2003-11-22  J"orn Rennecke <joern.rennecke@superh.com>
1394
1395         * flow.c (update_life_info): Amend comment about when a register
1396         can become dead.
1397
1398 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
1399
1400         * doc/.cvsignore: Delete.
1401
1402 2003-11-21  Daniel Berlin  <dberlin@dberlin.org>
1403             David Edelsohn  <edelsohn@gnu.org>
1404
1405         * dwarf2out.c (add_location_or_const_value_attribute): Add support
1406         for PARALLEL.
1407
1408 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1409
1410         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1411         (TARGET_LIBGCC2_CFLAGS): Define.
1412
1413         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1414         (__do_global_ctors): Likewise.
1415
1416 2003-11-21  Mark Wielaard  <mark@klomp.org>
1417
1418         * doc/invoke.texi (-O2): Doesn't enable -fweb.
1419
1420 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
1421
1422         * doc/invoke.texi: Mention dV and dZ.
1423
1424 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
1425
1426         * doc/invoke.texi: Update dump file names.
1427         Remove de, dW, and dX.
1428
1429 2003-11-20  James E Wilson  <wilson@specifixinc.com>
1430
1431         PR c/13133
1432         * reload1.c (reload): Delete special handling for setjmp.
1433
1434 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
1435
1436         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1437         step too.
1438         * config/t-slibgcc-darwin: Adjust install path.
1439         * config/rs6000/t-darwin: Revert multilib matches since
1440         it is not used on darwin.
1441
1442 2003-11-20  Richard Henderson  <rth@redhat.com>
1443
1444         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1445         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1446         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1447         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1448         * flow.c: Don't include ssa.h.
1449         (set_phi_alternative_reg): Remove.
1450         (calculate_global_regs_live): Don't call it.
1451         (mark_used_regs): Don't handle PHI.
1452         * gengtype.c (open_base_files): Don't reference ssa.h.
1453         * rtl.def (PHI): Remove.
1454         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1455         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1456         * opts.c (common_handle_option): Likewise.
1457         * toplev.c (f_options): Likewise.
1458         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1459         (dump_file): Update to match.
1460         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1461         (rest_of_handle_ssa): Remove.
1462         (rest_of_compilation): Don't call it.
1463         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1464         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1465         * doc/passes.texi (SSA optimizations): Remove.
1466
1467 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
1468
1469         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1470         * configure: Regenerate.
1471
1472 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
1473
1474         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1475
1476 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
1477
1478         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1479         (SHLIB_LC): Define.
1480         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1481         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1482
1483 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
1484             David Edelsohn  <edelsohn@gnu.org>
1485
1486         * calls.c (expand_call): Allocate new temp in pass1.
1487         (store_one_arg): If PARALLEL, calculate excess using mode size of
1488         rtvec elt.
1489         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1490         mode size of rtvec elt.
1491         * function.c (assign_parms): Use parm in register, if available.
1492
1493 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
1494
1495         * config/h8300/lib1funcs.asm (MOVP): Remove.
1496         (ADDP): Likewise.
1497         (CMPP): Likewise.
1498
1499 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
1500
1501         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
1502         with a single instruction if the stack has been decremented by 4
1503         and we have a frame pointer.  Update all callers.
1504         (output_return_instruction): Likewise.
1505         (arm_output_epilogue): Change argument to SIBLING.  Calculate
1506         really_return from the new argument.  Update all callers.
1507         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1508         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1509         pass the sibling call.
1510         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1511         prototypes.
1512
1513 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1514
1515         * Makefile.in (extraclean): Delete.
1516         * configure.in (target_list): Remove extraclean.
1517         * configure: Regenerate.
1518         * doc/makefile.texi, doc/sourcebuild.texi: Update.
1519         * objc/Make-lang.in (objc.extraclean): Delete.
1520
1521 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1522
1523         * Makefile.in (lang_checks): Add.
1524         (check-c++, check-f77, check-java, check-g++, check-g77,
1525         check-objc): Remove hardcoded targets.
1526         * doc/sourcebuild.texi: Document testsuite hooks.
1527         * objc/Make-lang.in (check-objc, lang_checks): Add.
1528
1529 2003-11-19  Scott Snyder  <snyder@fnal.gov>
1530
1531         PR target/13131
1532         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1533         flag, not a constant.
1534
1535 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
1536
1537         * config/arc/arc-protos.h: Update to C90 prototypes.
1538         * config/arc/arc.c: Likewise.
1539         * config/arc/initfini.c: Likewise.
1540
1541 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1542
1543         * stmt.c (expand_goto): Memory clobbers added.
1544
1545 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1546
1547         * reload.c (find_reloads): Added missing type casts.
1548
1549 2003-11-19  James E Wilson  <wilson@specifixinc.com>
1550
1551         * combine.c (sets_function_arg_p): Delete unused function.
1552
1553 2003-11-19  Eric Christopher  <echristo@redhat.com>
1554
1555         * reload1.c (reload): Revert 2 previous checkins.
1556
1557 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
1558
1559         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1560         whether directive begins at the beginning of a line.
1561
1562 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
1563
1564         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1565
1566 2003-11-19  Gerald Pfeifer  <gp@suse.de>
1567
1568         * doc/install.texi (Specific): Remove information on old versions
1569         of glibc versus old versions of GCC.
1570
1571 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
1572
1573         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1574         the register lowpart is a TRULY_NOOP_TRUNCATION.
1575
1576 2003-11-19  Richard Henderson  <rth@redhat.com>
1577
1578         * config/i386/i386.c (print_reg): Handle QI and HI modes for
1579         non Q regs.
1580
1581 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1582
1583         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1584         specification file.
1585         * config/t-slibgcc-darwin: New file, libgcc build specification.
1586         * config/t-darwin: Add libgcc2 flag -fPIC.
1587         * config/rs6000/t-darwin: Multilib matches float.
1588         * libgcc-darwin.ver: New file, contains libgcc symbols.
1589
1590 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
1591
1592         * config/ns32k/ns32k.h: Remove obsolete comment.
1593
1594 2003-11-18  Roger Sayle  <roger@eyesopen.com>
1595
1596         PR middle-end/11821
1597         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1598         size for calls to libgcc's div & mod subroutines when using -Os.
1599
1600 2003-11-18  Jan Hubicka  <jh@suse.cz>
1601
1602         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1603
1604 2003-11-18  Marc Espie  <espie@openbsd.org>
1605
1606         * config/rs6000/sysv4.h: OpenBSD hooks.
1607
1608 2003-11-18  Richard Henderson  <rth@redhat.com>
1609
1610         * expr.c (expand_expr): Don't look through constant arrays if
1611         they don't bind locally.
1612
1613 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1614
1615         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1616         when seeing if truncation or extension.
1617
1618 2003-11-17  Eric Christopher  <echristo@redhat.com>
1619
1620         * reload1.c (reload): Fix previous change.
1621
1622 2003-11-17  Scott Snyder  <snyder@fnal.gov>
1623
1624         PR debug/11325
1625         * dwarf2out.c (struct die_struct): Add die_definition field.
1626         (add_AT_specification): New.
1627         (gen_subprogram_die, gen_variable_die,
1628         gen_struct_or_union_type_die): Use it.
1629         (prune_unused_types_mark): If we're marking a forward declaration,
1630         also mark the full definition, if it exists.
1631
1632 2003-11-16  Nick Clifton  <nickc@redhat.com>
1633
1634         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1635         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1636         Remove prototype.
1637         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1638         to xstormy16_build_builtin_va_list and make static.
1639         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1640
1641 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1642
1643         * config/h8300/h8300-protos.h: Add the prototype for
1644         same_cmp_following_p.
1645         * config/h8300/h8300.c (same_cmp_following_p): New.
1646         * config/h8300/h8300.md (peephole2): Use it.
1647
1648 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1649
1650         * config/h8300/h8300.md: Don't use REGNO when its operand is
1651         not guaranteed to be a REG.
1652
1653 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
1654
1655         * Makefile.in (expr.o): Depend on $(TARGET_H).
1656         * target.h (return_in_msb): New target hook.
1657         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1658         (TARGET_CALLS): Include it.
1659         * calls.c (shift_returned_value): New function.
1660         (expand_call): Use it.
1661         * expr.c: Include target.h.
1662         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1663         deciding what padding is needed.  Change the name of the local
1664         padding variable from big_endian_correction to padding_correction.
1665         * stmt.c (shift_return_value): New function.
1666         (expand_return): Use it.  Adjust memory->register copy in the same
1667         way as copy_blkmode_from_reg.  Only change the return register's
1668         mode if it was originally BLKmode.
1669         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1670         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1671         (mips_fpr_return_fields): New, split out from mips_function_value.
1672         (mips_return_in_msb, mips_return_fpr_pair): New functions.
1673         (mips_function_value): Rework to use the functions above.
1674         * config/mips/irix6-libc-compat.c: Delete.
1675         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1676
1677 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1678
1679         * doc/install.texi (--enable-checking): Update valgrind's URL.
1680
1681 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1682
1683         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1684         with -2147483647 - 1.
1685
1686 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
1687
1688         Fix links in online manuals.
1689         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1690         (Precompiled Headers): @pxref to cpp, not cpp.info.
1691
1692 2003-11-16  Jason Merrill  <jason@redhat.com>
1693
1694         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1695         files in each directory and TAGS files that include them for each
1696         front end.
1697
1698 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1699
1700         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1701         3 of S2L.
1702         (modnorm): Likewise.
1703         (exitdiv): Look at bit 3 of S2L only.
1704
1705 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1706
1707         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1708         (DO_GLOBAL_DTORS_BODY): Likewise.
1709
1710 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1711
1712         * doc/install.texi (Prerequisites): Refine documentation of
1713         autoconf, automake and perl requirements.  Document required
1714         gettext version.
1715
1716 <2003-11-14  Jason Merrill  <jason@redhat.com>
1717
1718         * function.c (assign_parms): Use TREE_TYPE to determine the real
1719         type of the argument object.
1720
1721 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1722
1723         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1724         iteration.
1725
1726 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
1727
1728         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1729           New routine to save vararg registers on stack. Support for
1730           -mpowerpc64 in mixed mode.
1731
1732 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
1733
1734         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1735         for MOTOROLA versus MIT syntax.  Improves readability and provides
1736         better compile-time error checking for both code paths.
1737
1738 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
1739
1740         * config/frv/frv-protos.h: Update for C90.
1741         * config/frv/frv.h: Likewise.
1742         * config/frv/frvbegin.c: Likewise.
1743         * config/frv/frv.c: Likewise.
1744         (frv_adjust_field_align): Delete unused variable.
1745
1746 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
1747
1748         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1749         to each place where TARGET_LONG_DOUBLE_128 is used with
1750         DEFAULT_ABI == ABI_AIX.
1751
1752         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1753         message comply with GNU standards.
1754
1755 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1756
1757         PR/6552
1758         * function.c (struct epi_info): New field const_equiv.
1759         (update_epilogue_consts): New function.
1760         (keep_stack_depressed): Clear new field and verify scratch register
1761         doesn't have it set.
1762         Call new function via note_stores.
1763         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1764         Allow PLUS where second operand is register known set to constant.
1765         (emit_equiv_load): Write load using proper mode if source different.
1766         * config/mips/mips.md (return_internal): Put (return) first.
1767
1768 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1769
1770         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1771
1772 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1773
1774         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1775         registers.
1776         (divsi3): Likewise.
1777         (reti): Don't restore unused registers.
1778
1779 2003-11-14  Nick Clifton  <nickc@redhat.com>
1780
1781         * config/fr30/fr30.c: Include toplev.h
1782
1783 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1784
1785         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1786
1787 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1788
1789         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1790         function definition syntax.
1791
1792 2003-11-14  Eric Christopher  <echristo@redhat.com>
1793
1794         * reload1.c (reload): Revert previous patch. Make
1795         check for assignment into reg_equiv_address stricter.
1796
1797 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
1798
1799         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1800
1801 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1802
1803         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1804         section names.
1805
1806 2003-11-14  Jason Merrill  <jason@redhat.com>
1807
1808         PR middle-end/12526
1809         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1810         * calls.c (call_expr_flags): New fn.
1811         * tree.h: Declare it.
1812
1813 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1814
1815         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1816         (divmodsi3): Change the name to ___udivsi3.
1817         Update all callers.
1818
1819 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1820
1821         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1822         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1823         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1824         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1825         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1826         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1827         Const-ify and/or initialize automatic variables at declaration.
1828
1829 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1830
1831         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1832         of er4 with er3.  Adjust all callers.
1833
1834 2003-11-13  Andrew Pinski <apinski@apple.com>
1835
1836         * config/darwin.c (machopic_output_possible_stub_label):
1837         Allow stub symbol be not defined when outputting possible
1838         stub label.
1839
1840 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1841
1842         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1843         instead of exitdiv.
1844         (___umodsi3): Likewise.
1845         (exitdiv): Do not restore any register.
1846         (reti): Restore registers.
1847
1848 2003-11-13  Steven Bosscher  <stevenb@suse.de>
1849
1850         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1851
1852 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1853
1854         * config/h8300/lib1funcs.asm: Fix comment typos.
1855
1856 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1857
1858         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1859         unused registers.  Don't jump to exitdiv.
1860         (umodsi3): Likewise.
1861
1862 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
1863             Kean Johnston <jkj@sco.com>
1864
1865         PR c/13029
1866         * toplev.c (check_global_declarations): Do not warn about unused
1867         static consts.
1868
1869 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
1870             Kazu Hirata  <kazu@cs.umass.edu>
1871
1872         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1873         the approximate quotient method.
1874
1875 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
1876
1877         * combine.c (distribute_notes): When re-distributing the notes from
1878         an insn we are about to delete, ensure we can't end up with a cyclic
1879         list of notes.
1880
1881 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1882
1883         PR optimization/12926
1884         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1885         the UNCHANGING_RTX_P flag on memory references to read-only
1886         components that are not addressable.
1887
1888 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1889
1890         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1891         DenHighNonZero.
1892
1893 2003-11-13  Jan Hubicka  <jh@suse.cz>
1894
1895         PR opt/12275
1896         * c-decl.c (finish_decl): Use change_decl_assembler_name.
1897         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1898         * varasm.c (make_decl_rtl): Likewise.
1899         * cgraph.c (change_decl_assembler_name): New function.
1900         * tree.h (set_decl_assembler_name): Kill dead declaration.
1901         (change_decl_assembler_name): Declare.
1902
1903         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1904         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1905
1906 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1907
1908         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1909         an unused register.
1910
1911 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
1912
1913         PR bootstrap/12752
1914         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1915         (MULTILIB_OSDIRNAMES): Reorder accordingly.
1916
1917 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
1918
1919         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1920         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
1921         (rs6000_emit_eh_reg_restore): Add
1922         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1923         of vars_size and total_size to HOST_WIDE_INT.
1924         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1925         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1926         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1927         values.
1928         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1929         (rs6000_initial_elimination_offset): New, with code formerly in
1930         INITIAL_ELIMINATION_OFFSET.
1931         * rs6000.h (rs6000_stack_t): Remove.
1932         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1933         rs6000_initial_elimination_offset.
1934         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1935         rs6000_emit_eh_reg_restore.
1936
1937 2003-11-12  Mike Stump  <mrs@apple.com>
1938
1939         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1940         is the argumnt we are processing so that warnings and errors
1941         will have that information.
1942         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1943         * lang-hooks-def.h
1944         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1945         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1946         * langhooks.h (convert_parm_for_inlining): Likewise.
1947         * tree-inline.c (initialize_inlined_parameters): Compute and
1948         pass argnum down.
1949
1950 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1951             Roger Sayle  <roger@eyesopen.com>
1952
1953         PR optimization/12953
1954         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1955         before switch by FUNCTION_CODE.
1956
1957 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
1958
1959         * arm.md (storehi): Avoid use of explicit subreg.
1960         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1961
1962 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
1963
1964         * config/sh/sh.md (prefetch): New pattern.
1965
1966 2003-11-11  Eric Christopher  <echristo@redhat.com>
1967
1968         * reload1.c (reload): Verify that addresses for
1969         reg_equiv_* are valid for the architecture.
1970
1971 2003-11-11  Eric Christopher  <echristo@redhat.com>
1972
1973         * function.c (purge_addressof_1): Add libcall check.
1974         Remove test for cached replacements on fallback case.
1975         Simplify mode comparisons. Add libcall test for
1976         paradoxical subregs.
1977
1978 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1979
1980         * config/h8300/t-h8300: Fix an obsolete comment.
1981
1982 2003-11-11  James E Wilson  <wilson@specifixinc.com>
1983
1984         * expmed.c (store_bit_field, extract_bit_field): Revert last two
1985         changes.
1986
1987 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1988
1989         * config/h8300/lib1funcs.asm: Replace DenHighZero with
1990         DenHighNonZero.
1991
1992 2003-11-11  Jan Hubicka  <jh@suse.cz>
1993
1994         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1995         really_no_inline.
1996
1997 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1998
1999         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
2000         generating 64-bit code.
2001
2002 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
2003
2004         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
2005         accidental commit in previous change.
2006
2007 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
2008
2009         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
2010         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
2011         address recognition.
2012         (macho_lo_sum_memory_operand): Routine to recognize macho-style
2013         address recognition.
2014
2015 2003-11-10  Richard Henderson  <rth@redhat.com>
2016
2017         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
2018
2019 2003-11-10  Matt Austern  <austern@apple.com>
2020
2021         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
2022         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
2023         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
2024         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
2025         darwin_assemble_visibility instead of default.
2026
2027 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
2028
2029         PR target/12865
2030         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
2031         __enable_execute_stack only after writing onto the stack.
2032         (sparc64_initialize_trampoline): Likewise.
2033
2034 2003-11-09  Roger Sayle  <roger@eyesopen.com>
2035
2036         * loop.c (check_dbra_loop): Try swapping the comparison operands
2037         of the loop condition to identify a suitable induction variable.
2038         * unroll.c (loop_iterations): Likewise.
2039
2040 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2041
2042         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
2043         sparc64 #cpu and #machine assertions.
2044
2045 2003-11-09  Richard Henderson  <rth@redhat.com>
2046
2047         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
2048
2049 2003-11-09  Jan Hubicka  <jh@suse.cz>
2050
2051         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
2052
2053         * cgraphunit.c (cgraph_expand_function): Use
2054         cgraph_possibly_inlined_p.
2055         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
2056
2057         * opts.c (common_handle_option): Do not set max-inline-insns.
2058         * params.def: Update comments.
2059         (PARAM_MAX_INLINE_INSNS): Kill.
2060         * invoke.texi (max-inline-insns): Kill.
2061
2062 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
2063
2064         PR c/3190
2065         PR c/8714
2066         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
2067         * invoke.texi: Update.
2068
2069 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2070
2071         PR optimization/12630
2072         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
2073         Handle length computation 64-bit moves.
2074         (compute_clrstr_length, output_block_clear): Implement block clear.
2075         (output_block_move): Handle 64-bit moves.
2076         (pa_adjust_insn_length): Use compute_movstr_length and
2077         compute_clrstr_length.
2078         * pa.md (movstrsi): Revise operand order and comments.  Don't use
2079         match_scratch.
2080         (movstrsi_internal): Delete.
2081         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
2082         and peephole2 patterns to transform prereload to postreload form.
2083         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
2084         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
2085         clrstrdi_postreload): New patterns for 64-bit block move, and block
2086         clear.
2087         * pa-protos.h (output_block_clear): New prototype.
2088
2089 2003-11-08  Andreas Schwab  <schwab@suse.de>
2090
2091         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
2092         XCOFF_DEBUGGING_INFO.
2093
2094 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2095
2096         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
2097
2098 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
2099
2100         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
2101         redundant parens.
2102
2103         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
2104         (find_file_in_dir): Likewise.
2105         (_cpp_find_file): Print message if no header file is found
2106         but an invalid PCH file was.
2107
2108 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
2109
2110         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
2111         expressions as lvalues.
2112         (internal_build_compound_expr): Remove special handling for
2113         non-pedantic case.
2114         * doc/extend.texi: Document that all extended lvalues are now
2115         deprecated.
2116
2117 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
2118
2119         PR 11654
2120         * dbxout.c (struct dbx_file): Do not save for PCH.
2121         (current_file): Likewise.
2122         (dbxout_init): Don't allocate struct dbx_file using GC.
2123         (dbxout_start_source_file): Likewise.
2124
2125 2003-11-07  Falk Hueffner  <falk@debian.org>
2126
2127         * config/alpha/elf.h, config/alpha/unicosmk.h,
2128         config/alpha/vms.h: Convert to ISO C90.
2129
2130 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
2131
2132         * config/arm/pe.h: Convert to ISO C90.
2133
2134 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
2135
2136         * sh-protos.h (sh_pch_valid_p): Declare.
2137         * sh.c ("intl.h"): Include.
2138         (TARGET_PCH_VALID_P): Override.
2139         (sh_target_switches): New variable.
2140         (target_switches): Define.
2141         (sh_pch_valid_p): New function.
2142
2143         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
2144
2145 2003-11-07  Jan Hubicka  <jh@suse.cz>
2146
2147         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
2148         (x86_64_zero_extended_value):  likewise.
2149
2150 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
2151
2152         * config/mips/mips.md (loadgp): Take $25 as a second operand.
2153         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
2154
2155 2003-11-06  Matt Austern <austern@apple.com>
2156
2157         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
2158         field instead of hanging an attribute object off the decl.
2159         * tree.h (DECL_VISIBLITY): New accessor macro for
2160         symbol_visibility field in struct tree_decl.
2161         (enum symbol_visibility): Move definition to before tree_decl.
2162         (struct tree_decl): Define new two-bit field, symbol_visibility.
2163         (decl_visibility): Remove declaration.
2164         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
2165         instead of decl_visibility.
2166         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
2167         decl_visibility.
2168         (decl_visibility): Remove.
2169
2170 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
2171
2172         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
2173         where register 14 will be saved.
2174
2175 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
2176
2177         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
2178         (USE_ALTIVEC_FOR_ARG_P): Likewise.
2179         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
2180         Take a pointer as the CUM parameter.  Update callers.
2181         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
2182         32-bit ABIs.
2183         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
2184         of vector parameters as named arguments of stdarg function.
2185         (function_arg): Likewise.
2186
2187         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
2188         -maltivec is specified, not the non-existent -faltivec.
2189
2190 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
2191
2192         * config/s390/s390-protos.h (s390_function_value): Declare.
2193         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
2194         (s390_return_in_memory): New function.
2195         (s390_function_value): New function.
2196         (s390_function_arg_float): Return false for all arguments larger
2197         than 8 bytes.
2198         (s390_function_arg_pass_by_reference): Likewise.  Return true for
2199         all vector arguments.
2200         (s390_function_arg_integer): New function.
2201         (s390_function_arg_advance): Call it.  Add sanity checks.
2202         (s390_function_arg): Likewise.
2203         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
2204         (LIBCALL_VALUE): Likewise.
2205         (RET_REG): Remove.
2206         (RETURN_IN_MEMORY): Remove.
2207
2208 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
2209
2210         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
2211         return type to HOST_WIDE_INT.
2212         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
2213         Make initialized a bool.  Make register masks unsigned ints.
2214         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
2215         where appropriate.
2216         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
2217         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
2218
2219 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
2220
2221         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
2222         negation.
2223
2224 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
2225
2226         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
2227
2228 2003-11-06  Momchil Velikov  <velco@fadata.bg>
2229
2230         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
2231         for VR4111 too.
2232
2233 2003-11-06  Jan Hubicka  <jh@suse.cz>
2234
2235         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
2236         missing casts.
2237
2238 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
2239
2240         * genmodes.c: Change the word "bitsize" to "precision" throughout.
2241         * machmode.def: Likewise.
2242         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
2243         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
2244         (GET_MODE_PRECISION): New macro.
2245         (mode_bitsize): Renamed mode_precision.
2246         * stor-layout.c (mode_for_size, smallest_mode_for_size):
2247         Use GET_MODE_PRECISION; clarify comments.
2248
2249 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2250
2251         * doc/install-old.texi: Remove old documentation of building
2252         cross-compilers.
2253         * doc/install.texi: Move some of it to here.
2254
2255 2003-11-05  Per Bothner  <pbothner@apple.com>
2256
2257         PR preprocessor/12891
2258         * c-opts.c (finish_options):  Set include_cursor to disable premature
2259         calls to push_command_line_include from cpp_scan_nooutput.
2260         Fixes bug reported by DJ Delorie.
2261
2262 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
2263
2264         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2265         code supporting old-style varargs.
2266
2267         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2268         an intermediate register for better optimisation.
2269
2270 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2271
2272         PR optimization/10080
2273         * cfgloopanal.c (variable_initial_value, variable_initial_values,
2274         simple_loop_exit_p): Record the fact that initial value is extended
2275         from inner mode.
2276         (count_strange_loop_iterations, count_loop_iterations): Handle
2277         ivs that iterate in a narrower mode. Fix handling of overflows.
2278         Improve handling of NE conditions.
2279         (inverse, fits_in_mode_p): New static functions.
2280         (simple_increment): Detect variables that iterate in a narrower mode.
2281         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2282
2283 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
2284
2285         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2286         error.
2287
2288         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2289         needs VRSAVE.
2290
2291 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2292
2293         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2294         conditional expressions as lvalues.
2295
2296 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
2297
2298         * tsystem.h: Add the prototype of strlen.
2299         * unwind-pe.h (read_encoded_value_with_base): Add an
2300         appropriate cast to handle a case where the pointer size is
2301         smaller than sizeof (int).
2302
2303 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
2304
2305         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2306         (mips_delegitimize_address): Delete.
2307         (mips_gotoff_global, mips_load_got_page): Declare.
2308         (mips_load_got_global, mips_rewrite_small_data): Declare.
2309
2310         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2311         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2312         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2313         small_data_pattern.  Remove CONST from const_arith_operand's entry.
2314
2315         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2316         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2317         (mips_constant_type): Delete.
2318         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2319         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2320         (NUM_SYMBOL_TYPES): New macro.
2321         (mips_address_type): Remove ADDRESS_INVALID.
2322         (machine_function): Add has_gp_insn_p.
2323         (mips_constant_info): Delete.
2324         (mips_address_info): Add the address type as an extra field.  Replace
2325         the c field with symbol_type.
2326         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2327         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2328         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2329         (mips_split_const, mips_symbolic_constant_p): New functions.
2330         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2331         (mips_classify_address): Return true if the address is valid, storing
2332         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
2333         to test whether a LO_SUM address is allowed.
2334         (mips_symbol_insns): Return 0 for general mips16 symbols.
2335         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2336         Handle the new SYMBOL_GOTOFF_*s.
2337         (mips_address_insns): Update call to mips_classify_address.
2338         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
2339         of mips_classify_constant.  Be more accurate about CONSTs.
2340         (mips_global_pic_constant_p): Delete.
2341         (const_arith_operand): Only accept CONST_INTs.
2342         (call_insn_operand): Remove call to mips_classify_constant.
2343         Let mips_symbolic_constant_p check for invalid offsets.
2344         (move_operand): Check for general_operands first.  Only accept symbolic
2345         constants if they satisfy mips_symbolic_constant_p and cannot be split.
2346         (symbolic_constant): Use mips_symbolic_constant_p.
2347         (global_got_operand, local_got_operand): New predicates.
2348         (stack_operand): Update call to mips_classify_address.
2349         (mips_legitimate_address_p): Likewise.
2350         (mips_reloc, mips_lui_reloc): Delete.
2351         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2352         Use emit_move_insn.
2353         (mips_split_symbol, mips_unspec_address): New functions.
2354         (mips_unspec_offset_high): New function.
2355         (mips_load_got): Replace reloc argument with a symbol_type.
2356         Use mips_unspec_address to create the address and put it in a
2357         LO_SUM with the base register.
2358         (mips_load_got16, mips_load_got32): Delete.
2359         (mips_emit_high, mips_legitimize_symbol): Delete.
2360         (mips_gotoff_global): New function.
2361         (mips_load_got_page, mips_load_got_global): New functions.
2362         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2363         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
2364         Inline code to handle constants plus invalid offsets.  Use
2365         mips_split_symbol to legitimize constant pool addresses.
2366         (mips_delegitimize_address): Delete.
2367         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2368         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
2369         (mips_subword): Pass memrefs through mips_rewrite_small_data.
2370         (mips_output_move): Remove use of mips_classify_constant.
2371         (mips_expand_call): Use mips_unspec_offset_high to calculate the
2372         high part of the GOT address for calls to global functions.
2373         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2374         and mips_hi_relocs[].
2375         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2376         Remove use of mips_classify_constant.
2377         (mips_reloc_string): Delete.
2378         (print_operand_reloc): New function.
2379         (print_operand_address): Update call to mips_classify_address.
2380         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2381         (small_data_pattern): New predicate.
2382         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2383         (mips_function_has_gp_insn): New function.
2384         (mips_global_pointer): Use it.
2385         (mips_gp_insn): Delete.
2386         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2387         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
2388         from the start of the current function.
2389         (mips16_gp_pseudo_reg): Revert last patch.
2390
2391         * config/mips/mips.md (RELOC_*): Delete.
2392         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2393         (got): New insn attribute.
2394         (type): Set to "load" if got == load.
2395         (length): Set to 4 if got == load, 8 if got == xgot_high.
2396         (lui[sd]i): Delete.
2397         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2398         (*got_disp[sd]i, *got_page[sd]i): Likewise.
2399         (*low[sd]i): Change constraints to "d".  Add a new define_split to
2400         rewrite small data constants into LO_SUMs.
2401         (loadgp): New insns.
2402
2403 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2404
2405         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2406
2407 2003-11-04  DJ Delorie  <dj@redhat.com>
2408
2409         * config/v850/v850.md (mulhisi3): Expand the const_int case
2410         separately to avoid trying to sign extend the const.
2411
2412 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
2413
2414         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2415         addresses to be shared.
2416         (force_const_mem): Return a copy of the pool entry.
2417
2418 2003-11-03  Andreas Jaeger  <aj@suse.de>
2419
2420         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2421
2422 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
2423
2424         * Makefile.in (cpp.dvi): New target split from cpp.info.
2425         (gcc.dvi):  New target split from gcc.info.
2426         (gccint.dvi): New target split from gccint.info.
2427         (cppinternals.dvi): New target split from cppinternals.info
2428         (gccinstall.info): New specific rule.
2429         (gccinstall.dvi): Likewise.
2430         (dvi): Move targets to $(docobjdir).
2431         ($(docobjdir)/%.dvi): New implicit rule.
2432
2433 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2434
2435         * doc/gty.texi (tag, desc): Say more about role of desc values in
2436         selecting between tags.
2437
2438 2003-11-03  Alexander Kabaev  <ak03@gte.com>
2439
2440         * real.c (encode_ieee_single): Ensure proper promotion.
2441
2442 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2443
2444         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2445         and Andrew Pinski.
2446
2447 2003-11-03  Syd Polk  <spolk@apple.com>
2448
2449         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2450         marketing names to the list of supported processors.
2451         * config/rs6000/rs6000.h: Ditto.
2452         * doc/invoke.texi: Ditto.
2453         * config.gcc: Ditto.
2454
2455 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2456
2457         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2458         Merge two substitutions.
2459         * fixinc/fixincl.x: Regenerate.
2460         Fixes PR bootstrap/12666.
2461
2462 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
2463
2464         * doc/install-old.texi: Remove VMS documentation.
2465
2466 2003-11-03  Jan Hubicka  <jh@suse.cz>
2467
2468         * i386.c (override_options):  Remove hack enabling 128bit long double
2469         commited by accident.
2470
2471 2003-11-02  Per Bothner  <per@bothner.com>
2472
2473         * c-opts.c (needValue):  Do cpp_find_main_file before processing
2474         any imacros flags, so pfile->main_file is set for the latter.
2475
2476 2003-11-03  Andreas Jaeger  <aj@suse.de>
2477             Zack Weinberg  <zack@codesourcery.com>
2478
2479         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2480         (SYSCALLS.c.X-warn): Suppress warnings.
2481
2482 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2483
2484         PR optimization/12845
2485         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2486
2487 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
2488
2489         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2490         * config/i386/i386.c (print_reg): Abort on a virtual register
2491         if code != -1; not if file == asm_out_file.
2492         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2493         (DEBUG_PRINT_REG): Delete, unused.
2494
2495 2003-11-02  Andreas Schwab  <schwab@suse.de>
2496
2497         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2498         empty to avoid conflict with the definition from configure.
2499
2500 2003-11-02  Roger Sayle  <roger@eyesopen.com>
2501
2502         PR optimization/10817
2503         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2504         (noce_try_move): New function to optimize an if-the-else into an
2505         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2506         (noce_process_if_block): Attempt simplification with noce_try_move.
2507
2508         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2509         and improvements to the optimizations of IF_THEN_ELSE expressions.
2510         (simplify_subreg): Silence signed/unsigned comparison warning.
2511
2512 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
2513
2514         * Makefile.in (targhooks.o, reload.o): Update dependencies.
2515         (GTFILES): Add targhooks.c.
2516         (gt-targhooks.h): New rule; depend on s-gtype.
2517         * target.h (direct_pool_load_p): New hook.
2518         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2519         (TARGET_INITIALIZER): Include it.
2520         * targhooks.h (default_direct_pool_load_p): Declare.
2521         (hook_bool_machine_mode_true): Declare.
2522         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2523         gt-targhooks.h.
2524         (pool_symbol): New variable.
2525         (default_direct_pool_load_p): New function.
2526         (hook_bool_machine_mode_true): New function.
2527         * reload.c: Include target.h.
2528         (find_reloads): If an alternative will force a constant into memory,
2529         count an extra reload if constant pool symbols are not valid
2530         addresses.  If an alternative uses memory to move values between
2531         registers, count the move as two reloads rather than one.
2532         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2533         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2534
2535 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2536
2537         PR optimization/12799
2538         * postreload.c (reload_cse_move2add): Generate the add2
2539         patterns manually.
2540
2541 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2542
2543         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2544         Return 0 for all complex modes whose size is lesser or equal to
2545         a word.  Add a ??? comment for the condition used with 16-byte
2546         aligned modes.
2547
2548 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
2549
2550         * .cvsignore: Remove c-parse* and tradcif.c.
2551         * objc/.cvsignore: Delete.
2552
2553 2003-11-01  Roger Sayle  <roger@eyesopen.com>
2554
2555         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2556         of NULL.
2557
2558 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2559
2560         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2561
2562         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2563
2564         * collect2.c (scan_libraries): Fix typos.
2565
2566         PR preprocessor/12847
2567         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2568         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2569         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2570         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2571         "CPP_".
2572
2573 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
2574
2575         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2576         no_units calculation.
2577
2578 2003-11-01  Andreas Jaeger  <aj@suse.de>
2579
2580         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2581         enumeration list.
2582
2583 2003-11-01  Andreas Schwab  <schwab@suse.de>
2584
2585         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2586         prototypes.
2587         (SBSS_SECTION_FUNCTION): Likewise.
2588
2589 2003-11-01  Andreas Jaeger  <aj@suse.de>
2590
2591         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2592
2593 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
2594
2595         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2596         prototypes.
2597
2598 2003-11-01  Andreas Jaeger  <aj@suse.de>
2599
2600         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2601         (uw_frame_state_for): Constify variables.
2602         (extract_cie_info): Constify first argument.
2603
2604         * unwind-dw2-fde-darwin.c: Adjust prototype of
2605         _Unwind_Find_registered_FDE for recent changes.
2606         (examine_objects): Constify return value and local variable result.
2607         (_Unwind_Find_FDE): Constify return value and local variable ret.
2608
2609 2003-10-31  Per Bothner  <pbothner@apple.com>
2610
2611         * c-opts.c (finish_options):  Change to returns boolean - false iff
2612         the call to cpp_find_main_file fails.
2613         (c_common_init):  Skip preprocess_file if finish_options failed.
2614         (c_common_parse_file):  Break if finish_options failed.
2615         Fixes PR preprocessor/12545.
2616
2617 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2618
2619         * aclocal.m4: Blacklist ultrix* for mmap file.
2620         * configure: Rebuilt.
2621
2622         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2623         reg_parm_stack_space.
2624         * toplev.c (default_get_pch_validity): Fix warning.
2625
2626         * vax.c: Include toplev.h.
2627         (vax_init_libfuncs): Fix typo (umod).
2628         * vax.h (ASM_COMMENT_START): Define.
2629         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2630
2631 2003-10-31  Roger Sayle  <roger@eyesopen.com>
2632
2633         PR middle-end/11968
2634         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2635         confusing comment; distributivity isn't handled in expand_expr.
2636         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
2637         in distributivity, if wrap-around semantics are specified with
2638         -fwrapv.
2639
2640 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
2641
2642         PR 12315
2643         * final.c (profile_function): Allow for NULL svrtx.
2644
2645 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2646
2647         * pa.c (pa_select_section): Use new style declaration.
2648         * som.h (readonly_data): Likewise.
2649
2650 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2651
2652         * config/rs6000/rs6000.c: Update to C90 prototypes.
2653
2654 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2655
2656         PR target/7513
2657         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2658         code.
2659
2660 2003-10-31  Andreas Jaeger  <aj@suse.de>,
2661             Zack Weinberg  <zack@codesourcery.com>
2662
2663
2664         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2665         (__deregister_frame_info, __deregister_frame_info_bases):
2666         Constify void * argument.
2667         * unwind-dw2-fde.h (struct fde_vector):
2668         Constify 'orig_data' and 'array' fields.
2669         (__register_frame_info, __register_frame_info_bases)
2670         (__deregister_frame_info, __deregister_frame_info_bases):
2671         Constify void * argument.
2672         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2673         return values, and casts of type fde *, struct dwarf_fde *,
2674         and struct dwarf_cie *.
2675         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2676         (__deregister_frame_info, __deregister_frame_info_bases):
2677         Constify void * argument.
2678         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2679         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2680         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2681         fde_split, SWAP, frame_downheap, frame_heapsort)
2682         (classify_object_over_fdes, add_fdes, linear_search_fdes,
2683         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2684         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2685         Constify arguments, local variables, return values, and casts
2686         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2687         Use const pointer types in sizeof expressions, for clarity.
2688         * unwind-dw2-fde-glibc.c
2689         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2690         (struct unw_eh_callback_data): Constify 'ret' field.
2691
2692 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
2693             David Edelsohn  <edelsohn@gnu.org>
2694
2695         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2696         (function_arg): Call it.
2697         (rs6000_function_value): Widen integral return value to mode based
2698         on TARGET_32BIT, not word_mode.
2699         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2700         (UNITS_PER_ARG): New.
2701         (RS6000_ARG_SIZE): Use it.
2702
2703 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
2704
2705         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2706         and gengtype-yacc.h.
2707
2708 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2709
2710         PR optimization/8896
2711         * postreload.c (reload_combine): Check that REGY doesn't die in an
2712         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2713
2714 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2715
2716         PR/10239
2717         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2718
2719 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2720
2721         PR/11640
2722         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2723         immediatelly before BARRIER.
2724
2725 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2726
2727         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2728
2729 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2730
2731         PR target/11271
2732         * reload.c (find_reloads_address): Handle any register in
2733         (PLUS (PLUS (REG) (REG)) (CONST_INT).
2734
2735 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2736
2737         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2738         ENABLE_GC_CHECKING not in GGC_POISON.
2739
2740 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
2741
2742         PR bootstrap/9863
2743         * configure.in: Bail out if awk is missing.
2744         * configure: Regenerate.
2745
2746         PR ada/12761
2747         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2748         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2749
2750 2003-10-30  Richard Henderson  <rth@redhat.com>
2751
2752         * c-objc-common.c (c_tree_printer): Handle types correctly.
2753         Factor code a bit.
2754
2755 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2756
2757         * value-prof.c, web.c: Update to C90.
2758
2759 2003-10-30  Eric Christopher  <echristo@redhat.com>
2760
2761         * function.c (purge_addressof_1): Add case for REG_RETVAL
2762         notes when modes are unequal.
2763
2764 2003-10-31  Jan Hubicka  <jh@suse.cz>
2765
2766         * i386-modes.def: Add XFmode format adjustment.
2767
2768 2003-10-30  Jan Hubicka  <jh@suse.cz>
2769
2770         * real.c (encode_ieee_extended): Back out previous patch.
2771
2772 2003-10-30  Jan Hubicka  <jh@suse.cz>
2773
2774         * real.c (encode_ieee_extended): Initialize whole array.
2775         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2776         * i386-modes.def: Change definitions of TFmode and XFmode.
2777         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2778         code.
2779         (construct_container): Allow constructing of TFmode integer containers.
2780         (ix86_return_in_memory):  XFmode is not returned in memory.
2781         (init_ext_80387_constants): Always use XFmode.
2782         (print_operand): Likewise.
2783         (ix86_prepare_fp_compare_regs): Likewise.
2784         (split_to_parts): Deal with TFmode.
2785         (split_long_move): Simplify.
2786         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2787         (ix86_memory_move_cost): Do not confuse TFmode.
2788         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2789         (IS_STACK_MODE): TFmode is not stack mode.
2790         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2791         (VALID_SSE_REG_MODE): Allow TFmode.
2792         (VALID_FP_MODE_P): Disallow TFmode.
2793         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2794         * i386.md (TFmode patterns): Kill.
2795         (movtf, motf_rex64): New patterns.
2796
2797 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2798
2799         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2800
2801 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2802
2803         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2804         (mov_lwr, mov_swl, mov_swr): Likewise.
2805         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2806
2807 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2808
2809         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2810
2811 2003-10-30  Richard Henderson  <rth@redhat.com>
2812
2813         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2814         test for irix6 rather than preprocessor test.
2815
2816 2003-10-30  Richard Henderson  <rth@redhat.com>
2817
2818         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2819
2820 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
2821
2822         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2823         as a general flag that the return address register needs to be saved,
2824         not necessarily because of __builtin_return_addr (0).
2825         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2826         remove special handling of zSeries machines.
2827         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2828         register as a regular register on zSeries machines.
2829         (s390_reorg): Adjust calls to s390_split_branches and
2830         s390_optimize_prolog.
2831         (s390_frame_info): On zSeries machines, do not assume the return
2832         register is always used.  Update regs_ever_live with current data
2833         for the special registers.
2834         (s390_emit_epilogue): Use save_return_addr_p to determine whether
2835         the return register was saved.
2836         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2837         RETURN_REGNUM fixed on zSeries machines.
2838         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2839         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2840         via ahi-jgne pair on zSeries machines.
2841         ("*doloop_di"): Likewise.
2842         ("*doloop_di_long"): Remove.
2843
2844 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
2845
2846         * arm.c (arm_override_options): Revert change of arm_constant_limit
2847         when optimizing for size.
2848
2849 2003-10-29  Richard Henderson  <rth@redhat.com>
2850
2851         * fold-const.c (fold_single_bit_test): Convert the input to the
2852         operational intermediate type.
2853
2854 2003-10-29  Richard Henderson  <rth@redhat.com>
2855
2856         * builtins.c (std_build_builtin_va_list): New.
2857         * expr.h (std_build_builtin_va_list): Declare.
2858         * defaults.h (BUILD_VA_LIST_TYPE): New.
2859         * system.h (BUILD_VA_LIST_TYPE): Poison.
2860         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2861         * target.h (struct gcc_target): Add build_builtin_va_list.
2862         * tree.c (build_common_tree_nodes_2): Use it.
2863
2864         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2865         config/alpha/alpha.h, config/alpha/unicosmk.h,
2866         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2867         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2868         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2869         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2870         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2871         config/mips/mips.h, config/rs6000/rs6000-protos.h,
2872         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2873         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2874         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2875         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2876         config/xtensa/xtensa.h: Rename foo_build_va_list to
2877         foo_build_builtin_va_list; make it static.  Define
2878         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
2879         Update protos.
2880
2881         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2882         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2883
2884 2003-10-29  James E Wilson  <wilson@specifixinc.com>
2885
2886         * recog.c (asm_operand_ok): Add missing break after case 'X'.
2887         Change if statements to else if statements in default case.
2888         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2889         in comment.
2890         (constrain_operands_cached): Likewise.
2891         (constrain_operands): Change if statements to else if statements in
2892         default case.
2893         * reload.c (find_reloads): Likewise.
2894
2895 2003-10-29  Richard Henderson  <rth@redhat.com>
2896
2897         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2898         shifts and rotates.
2899
2900 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
2901
2902         * config/rs6000/rs6000.md: Remove duplicate pattern.
2903
2904 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
2905
2906         * real.c (do_divide): Initialize result with a 0.
2907
2908         * configure.in <enable-checking for valgrind>: Look for
2909         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2910         if it exists.
2911         * configure, config.in: Regenerate.
2912         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2913         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
2914         #elif for other alternatives.
2915         * ggc-page.c: Ditto.
2916         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2917         include structure from ggc-common.c.
2918
2919 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2920
2921         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2922         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2923         * pa.c (pa_adjust_insn_length): Check for btable branches using
2924         attribute TYPE_BTABLE_BRANCH.
2925         (pa_reorg): Simplify.
2926         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2927         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2928         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2929         * pa.md (btable_branch): New instruction type.
2930         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2931         btable branches.
2932         (define_delay): Add btable branches to insn types that may have an
2933         insn in the delay position.
2934         (Z2, Z3): Add btable branch to list.
2935         Simplify unamed pattern set copy pic_label_operand to register.  Add
2936         PA 2.0 variant.
2937         (short_jump): New jump for use in branch tables.
2938         (casesi, casesi0): Revise for new branch table formats.
2939         (casesi32, casesi32p, casesi64p): New casesi patterns.
2940         (indirect_jump): Move.
2941
2942 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
2943
2944         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2945         !TARGET_POWERPC64.
2946         (UNITS_PER_GPR_WORD): Delete.
2947         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2948         (HARD_REGNO_MODE_OK): Same.
2949         (CLASS_MAX_NREGS): Same.
2950
2951 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2952
2953         * pa.h (ASM_COMMENT_START): Define.
2954
2955 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
2956
2957         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2958         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2959         component, not zero.
2960
2961 2003-10-29  Andreas Schwab  <schwab@suse.de>
2962
2963         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2964
2965 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2966
2967         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2968         Never return 1 for complex integral modes whose size is lesser or
2969         equal to a word.
2970         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2971         in the comment.
2972         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2973         modes.
2974         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2975         greater than 16 bytes by reference.
2976
2977 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2978
2979         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2980         not TARGET_ILP32.
2981         (ia64_initialize_trampoline): Use globalize_label target call.
2982
2983 2003-10-29  Andreas Schwab  <schwab@suse.de>
2984
2985         * doc/install.texi (Building): Add a sentence about building Ada
2986         for a canadian cross.
2987
2988 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2989
2990         * config/ia64/ia64.c (cmptf_libfunc): New static.
2991         (ia64_expand_compare): Add logic to open-code calls to
2992         _U_Qfcmp for TFmode comparisons.
2993         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2994         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2995         never be generated anymore.
2996         * config/ia64/ia64.md (cmptf): New expander.
2997
2998 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2999
3000         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
3001         (*sqrt_approx): New instruction pattern for approximate square roots.
3002         (*setf_exp_xf): New instruction pattern for exponentiation.
3003         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
3004         (sqrtsf2_internal_thr): New define_and_split implementing
3005         throughput-optimized inline calculation of SFmode square root.
3006         (sqrtdf2_internal_thr): Likewise for DFmode.
3007         (sqrtxf2_internal_thr): Likewise for XFmode.
3008         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
3009         latency- and throughput-optimized square root algorithms.
3010         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
3011         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
3012         New macros.
3013         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
3014         -minline-sqrt-max-throughput.
3015         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
3016         and -minline-sqrt-max-throughput are given, notify the user
3017         that both options cannot be used simultaneously.
3018         If -minline-sqrt-min-latency is given, notify the user that
3019         this mode is not yet implemented.
3020         (rtx_needs_barrier): Reformat initial comment to obey
3021         72-character width limit.  Support UNSPEC_SETF_EXP and
3022         UNSPEC_FR_SQRT_RECIP_APPROX.
3023
3024 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
3025
3026         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
3027         moves.
3028
3029 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3030
3031         PR target/11598
3032         PR libgcj/10610
3033         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
3034
3035 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
3036
3037         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
3038         an extra stack adjustment insn if the stack pointer is already
3039         pointing at the right place.
3040         (use_return_insn): Allow a return insn to be used when we have a
3041         frame pointer if the stack pointer is in the right place.
3042         (output_return_instruction): Handle it.
3043
3044 2003-10-28  Andreas Jaeger  <aj@suse.de>
3045
3046         * ggc-zone.c (check_cookies): Add missing variable.
3047         Add void to prototypes.
3048
3049 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3050
3051         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
3052         * crtstuff.c (__do_global_ctors_1): Move prototype.
3053         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
3054         appropriate.
3055         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
3056         Mark parameter with __attribute__((unused)).
3057
3058 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
3059
3060         * c-decl.c (pushdecl): Clarify comment.
3061
3062 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
3063
3064         * doc/install.texi: Update instructions for Ada cross builds
3065
3066         PR ada/5909:
3067         * doc/sourcebuild.texi: Document Ada test suite.
3068
3069 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
3070
3071         * config/m68hc11/m68hc11.c: Convert to ISO C90.
3072         * config/m68hc11/m68hc11-protos.h: Likewise.
3073
3074 2003-10-27  Jan Hubicka  <jh@suse.cz>
3075             Eric Botcazou  <ebotcazou@libertysurf.fr>
3076
3077         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
3078         webizer pass dump.
3079
3080 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
3081             Jan Hubicka  <jh@suse.cz>
3082
3083         * reload1.c (struct elim_table): Change offset, initial_offset and
3084         previous_offset fields to HOST_WIDE_INT.
3085         (offsets_at): Change from int to HOST_WIDE_INT.
3086         (reload): Adjust offsets_at initialization.
3087         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
3088         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
3089         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
3090         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
3091         if TARGET_64BIT.
3092         (pro_epilogue_adjust_stack): New function.
3093         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
3094         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
3095         (pro_epilogue_adjust_stack_1): Remove * in front of name.
3096         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
3097         (pro_epilogue_adjust_stack_rex64_2): New insn.
3098
3099         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
3100
3101         * config/i386/i386.c (ix86_expand_call): Replace 40 with
3102         FIRST_REX_INT_REG + 3 /* R11 */.
3103
3104 2003-10-26  Richard Henderson  <rth@redhat.com>
3105
3106         * config/alpha/alpha.md (attr cannot_copy): New.
3107         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
3108         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
3109         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
3110
3111 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
3112
3113         * ggc-zone.c:  New file, zone allocating collector.
3114         * configure: Accept zone option for --with-gc
3115         * configure.in: Ditto.
3116         * ggc.h (ggc_pch_count_object): Pass bool indicating
3117         stringiness. Update all callers.
3118         (ggc_pch_alloc_object): Ditto.
3119         (ggc_pch_write_object): Ditto.
3120         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
3121         type.
3122         (ggc_alloc_rtvec): Ditto.
3123         (ggc_alloc_tree): Use zone allocation, since some things using this macro
3124         aren't a single typecode.
3125         * ggc-none.c (ggc_alloc_typed): New function.
3126         (ggc_alloc_zone): Ditto.
3127         * ggc-page.c: Ditto on both functions.
3128
3129 2003-10-26  Gunther Nikl  <gni@gecko.de>
3130
3131         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
3132         frame information is always valid.
3133         (m68k_output_function_prologue): Remove superfluous TARGET_68881
3134         test; fix formatting.
3135
3136 2003-10-26  Gunther Nikl  <gni@gecko.de>
3137
3138         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
3139         reg_rev_mask computation.
3140         (m68k_output_function_prologue): Fix usage of current_frame (one typo
3141         and one missing); use reg_rev_mask not reg_mask.
3142         (m68k_output_function_epilogue): Fix usage of current_frame;
3143         use fpu_rev_mask not fpu_mask.
3144
3145 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
3146
3147         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
3148         num_saved_regs, use current_frame.reg_no instead.
3149
3150 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
3151             Paul Dale  <pauli@snapgear.com>
3152
3153         * doc/extend.texi (interrupt_handler): Add m68k to the
3154         list of processors implementing it.
3155         * doc/invoke.texi (-msep-data): Document new m68k option.
3156         (-mno-sep-data): Likewise.
3157         (-mid-shared-library): Likewise.
3158         (-mno-id-shared-library): Likewise.
3159         (-mshared-library-id): Likewise.
3160
3161 2003-10-26  Andreas Jaeger  <aj@suse.de>
3162
3163         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
3164         comparison.
3165         (_Unwind_SetGR): Likewise.
3166
3167 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
3168
3169         PR target/12690
3170         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
3171
3172 2003-10-26  Gunther Nikl  <gni@gecko.de>
3173
3174         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
3175         comment from here to...
3176         (m68k_save_reg): ...here. Fix comment formatting.
3177         (m68k_output_function_prologue): Fix comment formatting.
3178         (m68k_output_function_epilogue): Likewise.
3179         (const_method): Likewise.
3180
3181 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
3182
3183         * toplev.c (default_get_pch_validity): Guard the use of
3184         target_options with #ifdef TARGET_OPTIONS.
3185         (default_pch_valid_p): Likewise.
3186
3187 2003-10-26  Andreas Jaeger  <aj@suse.de>
3188             Zack Weinberg  <zack@codesourcery.com>
3189             Andreas Tobler <toa@pop.agri.ch>
3190
3191         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
3192         (output_die): Likewise.
3193         (print_die): Likewise.
3194
3195 2003-10-26  Andreas Jaeger  <aj@suse.de>
3196
3197         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
3198         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
3199         dwarf2out.c change.
3200
3201         * toplev.c (default_pch_valid_p): Fix warning.
3202
3203 2003-10-25  Roger Sayle  <roger@eyesopen.com>
3204
3205         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
3206         RTL nodes.  If an operator's operands are unchanged, return the
3207         original argument unchanged.
3208
3209 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
3210
3211         Fix bootstrap failure.
3212         * expmed.c (store_bit_field): Don't compare bitsize against
3213         modes with zero bit-size.
3214
3215         (extract_bit_field): Likewise
3216
3217 2003-10-25  Jan Hubicka  <jh@suse.cz>
3218
3219         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
3220         (cfa_loc): Likewise.
3221         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
3222         HOST_WIDE_INT.
3223         (args_size, old_args_size): change type to HOST_WIDE_INT.
3224         (dwarf2out_def_cfa, dwarf2out_args_size,
3225         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
3226         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
3227         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
3228         AT_offset): Use HOST_WIDE_INT.
3229         (based_loc_descr): offset is HOST_WIDE_INT.
3230         (add_data_member): Likewise.
3231         (add_const_value_attribute): Simplify.
3232
3233 2003-10-25  Richard Henderson  <rth@redhat.com>
3234
3235         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
3236         (ix86_expand_prologue): Save and restore eax around stack probe
3237         if it's live.
3238
3239 2003-10-25  Jan Hubicka  <jh@suse.cz>
3240
3241         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
3242
3243 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
3244
3245         PR target/12712
3246         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
3247         if the block has no predecessors.
3248         (convert_regs_2): Document the problem with successors whose
3249         only predecessor is the block to be processed.
3250         (convert_regs): Don't create the arbitrary input stack here.
3251
3252 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
3253
3254         * genmodes.c (struct mode_data): Add contained and next_cont
3255         fields.
3256         (complete_mode): Maintain linked list of modes that have a
3257         given component.
3258         (emit_mode_unit_size): Delete.
3259         (emit_mode_nunits): New.
3260         (emit_insn_modes_c): Update to match.
3261         (emit_mode_adjustments): Propagate size and alignment
3262         adjustments from component modes to their containers.
3263         * machmode.h (mode_unit_size): Delete.
3264         (mode_nunits): New.
3265         (GET_MODE_NUNITS): Just return the value in the table.
3266         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3267         GET_MODE_SIZE.
3268         * expmed.c (store_bit_field, extract_bit_field): Can use a
3269         plain move instruction if bitsize >= GET_MODE_BITSIZE of
3270         destination/source mode, respectively.
3271         * varasm.c (assemble_real): Write out the full size of the
3272         constant, not just its bitsize.
3273         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3274
3275         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3276         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3277         alignment of XF and TF modes in compliance with ia64 ABIs.
3278         Can now hardwire the format of both modes.
3279         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3280         (general_tfmode_operand, destination_tfmode_operand)
3281         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3282         general_xfmode_operand, destination_xfmode_operand,
3283         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3284         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3285         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
3286         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3287         __float128.
3288         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3289         Change TFmode to XFmode wherever appropriate.  Remove all
3290         references to INTEL_EXTENDED_IEEE_FORMAT.
3291         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3292         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3293         (PREDICATE_CODES): Update to match function renames.
3294         * config/ia64/ia64.md: Change TF to XF throughout; rename all
3295         patterns to match.  Remove all references to
3296         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
3297         function renames.
3298         * config/ia64/ia64-protos.c: Update all prototypes to match
3299         renamed functions.
3300         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3301         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3302         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3303         __divtf3; keep old name for backward compatibility.
3304         (L__compat): New section providing forwarding stubs for
3305         __fixtfti, __fixunstfti, __floattitf.
3306         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3307
3308 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
3309
3310         PR 10757
3311         * c-pch.c: Include target.h.  Improve comments.
3312         (struct c_pch_validity): Add target_data_length.
3313         (pch_init): Add target's validity data.
3314         (c_common_valid_pch): Check target's validity data.
3315         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3316         (TARGET_PCH_VALID_P): New.
3317         (TARGET_INITIALIZER): Add new fields.
3318         * target.h: Include tm.h.
3319         (struct gcc_target): Add get_pch_validity, pch_valid_p.
3320         * toplev.h (default_get_pch_validity): New prototype.
3321         (default_pch_valid_p): New prototype.
3322         * toplev.c (default_get_pch_validity): New routine.
3323         (default_pch_valid_p): New routine.
3324         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
3325         target.h with $(TARGET_H).
3326         (c-pch.o): Add TARGET_H.
3327         * doc/tm.texi (PCH Target): New node.
3328         (TARGET_GET_PCH_VALIDITY): Document.
3329         (TARGET_PCH_VALID_P): Document.
3330
3331 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
3332
3333         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
3334         and $(docdir)/include from any *.texi dependencies.
3335         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3336         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3337         ($(docobjdir)/%.7): Likewise.
3338         (%.pod): New implicit rule.
3339         (cpp.pod): New dependency only rule.
3340         (gcc.pod): New intermediate rule with dependencies and commands.
3341         (gfdl.pod): Likewise.
3342         (fsf-funding.pod): Likewise.
3343
3344 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3345
3346         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3347         related code.
3348         * fixinc/fixinc.ptx: Remove.
3349         * fixinc/fixinc.svr4: Remove.
3350
3351 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
3352
3353         * config/s390/s390.c (load_multiple_operation): Allow both SImode
3354         and DImode if word_mode is DImode.
3355         (store_multiple_operation): Likewise.
3356         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3357         ("*load_multiple_di"): Allow only if word_mode == DImode.
3358         ("movqi"): Use LLGC whenever TARGET_ZARCH.
3359         ("fix_truncdfsi2"): Fix incorrect temporary size.
3360         ("fix_truncsfsi2"): Likewise.
3361         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3362         string for function return value operand.
3363         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3364
3365 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
3366
3367         * c-parse.in (array_declarator): Use expr_no_commas.
3368         Fixes PR c/11943.
3369
3370 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
3371
3372         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3373         associated includes in #ifndef inhibit_libc.
3374
3375 2003-10-24  Roger Sayle  <roger@eyesopen.com>
3376
3377         * doc/libgcc.texi: Document some more of the libgcc API.
3378
3379 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
3380
3381         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3382         comparing a constant with small negative numbers and add costing
3383         for constants in conjunction with AND.
3384         (note_invalid_constants): Tidy previous change.
3385         (thumb_cmp_operand): Tidy.
3386         (thumb_cmpneg_operand): New function.
3387         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3388         for size.
3389         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3390         (PREDICATE_CODES): Add thumb_cmpneg_operand.
3391         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
3392         with a negative constant.
3393         (cbranchsi4_insn): Matcher for cbranchsi4.
3394         (cbranchsi4_scratch): Similar, but a scratch is available for
3395         handling negative constants.
3396         (movsi_cbranchsi4): New pattern.
3397         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3398         and use the TST instruction.
3399         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3400         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3401         cannot see high regs or memory alternatives.
3402         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3403
3404 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
3405
3406         * arm.c (note_invalid_constants): Try to extract the constant
3407         pool value using avoid_constant_pool_reference; only use
3408         get_pool_constant if that returns the original reference.
3409
3410 2003-10-24  Jan Hubicka  <jh@suse.cz>
3411
3412         PR c++/12624
3413         * varasm.c (notice_global_symbol): Disqualify global registers.
3414
3415 2003-10-23  Roger Sayle  <roger@eyesopen.com>
3416
3417         PR middle-end/11414
3418         * loop.c (load_mems): Use redirect_jump to forward jumps from
3419         the original loop end label to the new "loop sink" block's label.
3420
3421 2003-10-23  Roger Sayle  <roger@eyesopen.com>
3422
3423         PR middle-end/12705
3424         * optabs.c (expand_binop): When expanding complex operations
3425         inline, always calculate result into a new temporary register.
3426         Minor code clean-ups.
3427
3428 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3429
3430         * objc/lang-specs.h: Handle -print-objc-runtime-info.
3431         * doc/invoke.texi (Objective-C Dialect Options): Document it.
3432
3433 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
3434
3435         * config/i386/cygwin.asm: Add copyright notice. Add comment
3436         on why this code is needed.
3437
3438 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
3439
3440         * config/h8300/clzhi2.c: Fix warnings.
3441         * config/h8300/ctzhi2.c: Likewise.
3442         * config/h8300/fixunssfsi.c: Likewise.
3443         * config/h8300/parityhi2.c: Likewise.
3444         * config/h8300/popcounthi2.c: Likewise.
3445
3446 2003-10-23  James E Wilson  <wilson@specifixinc.com>
3447
3448         * gcc.c (option_map): Delete --target and --use-version.
3449
3450 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
3451             David Edelsohn  <edelsohn@gnu.org>
3452
3453         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3454         TARGET_POWREPC64.
3455         (UNITS_PER_GPR_WORD): Define.
3456         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3457         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3458         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3459         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3460         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3461         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3462         (rs6000_emit_prologue): Select reg_mode and reg_size using
3463         TARGET_32BIT, not TARGET_POWERPC64.
3464         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3465         ABI / 64-bit computation mode
3466
3467 2003-10-22  Andrew Haley  <aph@redhat.com>
3468
3469         * toplev.c (output_file_directive): Allow for null input_name.
3470
3471 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
3472
3473         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3474
3475 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
3476
3477         * configure.in: In --enable-generated-files-in-srcdir option
3478         handling, fix default case handling.
3479         * configure: Regenerate.
3480
3481 2003-10-22  Phil Edwards  <phil@codesourcery.com>
3482
3483         * config.gcc:  Update *-*-vxworks* generic hook and comments.
3484         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3485         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
3486         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3487         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
3488         * config/windiss.h:  New file.
3489         * config/arm/t-vxworks:  New file.
3490         * config/arm/vxworks.h:  New file.
3491         * config/i386/t-vxworks:  New file.
3492         * config/i386/vxworks.h:  New file.
3493         * config/mips/t-vxworks:  New file.
3494         * config/mips/vxworks.h:  New file.
3495         * config/mips/windiss.h:  New file.
3496         * config/sh/t-vxworks:  New file.
3497         * config/sh/vxworks.h:  New file.
3498
3499 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3500
3501         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3502         (h8300_saveall_function_p): New.
3503         (h8300_insert_attributes): Insert the saveall attribute if
3504         #pragma saveall is specified.
3505         (h8300_attribute_table): Add saveall.
3506         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3507         * doc/extend.texi: Mention the saveall attribute.
3508
3509 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
3510
3511         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3512         deprecation of casts as lvalues.
3513         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3514         * fixinc/fixincl.x: Regenerate.
3515         * fixinc/tests/base/obstack.h: New test.
3516
3517 2003-10-22  Andreas Schwab  <schwab@suse.de>
3518
3519         PR target/12676
3520         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3521         LP64 platforms.
3522
3523 2003-10-22  Jan Hubicka  <jh@suse.cz>
3524
3525         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3526         presence of DW_AT_inline.
3527         (gen_subprogram_die): Likewise; do not abort instead of emitting
3528         DW_AT_not_inline.
3529
3530 2003-10-22  Jan Hubicka  <jh@suse.cz>
3531
3532         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3533         global info is not ready.
3534
3535 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3536
3537         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3538
3539 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
3540
3541         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3542         ("*movstr_short"): ... into this insn pattern.
3543         ("movstr_short"): New expander.
3544         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3545         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3546         ("movstr_long"): New expander.
3547         ("clrstr_short_64", "clrstr_short_31"): Merge ...
3548         ("*clrstr_short"): ... into this insn pattern.
3549         ("clrstr_short"): New expander.
3550         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3551         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3552         ("clrstr_long"): New expander.
3553         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3554         ("*cmpmem_short"): ... into this insn pattern.
3555         ("cmpmem_short"): New expander.
3556         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3557         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3558         ("cmpmem_long"): New expander.
3559         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3560         (s390_expand_clrstr): Likewise.
3561         (s390_expand_cmpmem): Likewise.
3562
3563 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
3564
3565         * c-pch.c (struct c_pch_validity): Add pch_init field.
3566         (pch_init): Set it.
3567         (c_common_valid_pch): Check it.
3568
3569 2003-10-22  David Taylor <dtaylor@emc.com>
3570
3571         PR debug/12500
3572         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3573
3574 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3575
3576         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3577         alpha_return_in_memory if no VALTYPE specified.
3578
3579 2003-10-22  Jan Hubicka  <jh@suse.cz>
3580
3581         PR debug/12389
3582         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3583         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3584         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3585         (cgraph_global_info): Add flag inlined
3586         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3587         cgraph_function_possibly_inded_p
3588         * cgraphunit.c (mark_inline): Set inlined flag.
3589         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3590         only for possibly inlined functions.
3591         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3592         body of function.
3593
3594 2003-10-22  Andrew Haley  <aph@redhat.com>
3595
3596         * varasm.c (output_constructor): Make constructor annotation
3597         conditional on ASM_COMMENT_START.
3598
3599 2003-10-21  Jason Merrill  <jason@redhat.com>
3600
3601         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3602         (get_narrower): Likewise.
3603
3604         * stor-layout.c (layout_decl): Do packed field alignment for
3605         bit-fields, too.
3606
3607 2003-10-21  Eric Christopher  <echristo@redhat.com>
3608
3609         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3610
3611 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
3612
3613         * c-pch.c: Add comments in various places.
3614         (struct c_pch_validity): Add the lengths of various strings.
3615         (host_machine): New static.
3616         (target_machine): New static.
3617         (get_ident): Bump version number.
3618         (pch_init): Write out version, host, target validity data.
3619         (c_common_valid_pch): Check version, host, target.
3620         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3621         TARGET_MACHINE.
3622
3623 2003-10-21  Jason Merrill  <jason@redhat.com>
3624
3625         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3626         (EXPR_P): New macro.
3627
3628 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
3629
3630         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3631         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3632         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3633         DImode.   Use convert_move to load ar.ccv.
3634         (ia64_expand_compare_and_swap): Likewise.
3635         If expand_expr doesn't put 'old' and 'new' in the proper
3636         modes, run them through convert_to_mode.
3637
3638 2003-10-21  Eric Christopher  <echristo@redhat.com>
3639
3640         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3641         for too large bitfields.
3642
3643 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3644
3645         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3646
3647 2003-10-21  Andrew Haley  <aph@redhat.com>
3648
3649         * varasm.c (output_constructor): Annotate constructor.
3650
3651 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3652
3653         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3654         on existence of destination file.
3655
3656 2003-10-21  Jan Hubicka  <jh@suse.cz>
3657
3658         * haifa-sched.c (choose_ready): Initialize index.
3659
3660 2003-10-21  Jason Merrill  <jason@redhat.com>
3661
3662         * tree.c (build1): Fix off-by-one error.
3663
3664 2003-10-21  Robert Millan  <robertmh@gnu.org>
3665
3666         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3667         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3668         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3669         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3670
3671 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3672
3673         * web.c: Fix various comments.
3674
3675 2003-10-20  Nicolas Pitre <nico@cam.org>
3676
3677         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3678         to 2 instead of 1 when optimize_size is true.  Gather code based on
3679         optimize_size together.  Add comment about XScale load latency.
3680
3681 2003-10-21  Gunther Nikl  <gni@gecko.de>
3682
3683         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3684         obsolete comments.
3685
3686 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3687
3688         * Makefile.in: Get parsedir and docobjdir from configure.
3689         * configure.in: Recogonize --enable-generated-files-in-srcdir.
3690         Pass along parsedir and docobjdir.
3691         * configure: Regenerate.
3692         * doc/install.texi: Document --enable-generated-files-in-srcdir.
3693
3694 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3695
3696         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3697         included.
3698
3699 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3700
3701         * c-common.c (expand_tree_builtin): Ensure creal and cimag
3702         functions do not return lvalues.
3703
3704 2003-10-20  Jason Merrill  <jason@redhat.com>
3705
3706         PR c/12553
3707         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3708         appropriately.
3709
3710         PR c/11446
3711         * stor-layout.c (layout_decl): Fix alignment handling.
3712
3713 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3714
3715         * doc/extend.texi: Deprecate casts as lvalues.
3716
3717 2003-10-20  Jan Hubicka  <jh@suse.cz>
3718
3719         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3720
3721         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
3722         with functions implicitly made inline.
3723
3724         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
3725         (cgraph_finalize_function): Use it.
3726         (cgraph_mark_inline): Allow incrmental decisions
3727         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3728         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3729         * tree-inline.c (limits_allow_inlining): Kill.
3730         (expand_call_inline): Always use unit-at-a-time path.
3731
3732 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3733
3734         * fixinc/inclhack.def (hpux11_snprintf): New edit.
3735         * fixinc/fixincl.x: Regenerate.
3736         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3737
3738 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
3739
3740         * Makefile.in (install-info): Simplify.
3741         ($(DESTDIR)$(infodir)/%.info): New rule.
3742         * configure.in (target_list): Remove install-info.
3743         * doc/.cvsignore (gcc.info*): Remove.
3744         (gccint.info*): Likewise.
3745         (gccinstall.info*): Likewise.
3746         (cpp.info*): Likewise.
3747         (cppinternals.info*): Likewise.
3748         (*.info*): Add it.
3749         * doc/sourcebuild.texi: Update description of install-info.
3750         * objc/Make-lang.in (objc.install-info): Remove.
3751
3752 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3753
3754         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3755         Use it in _MIPS_SIM definition.
3756         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3757
3758 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3759
3760         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3761         virtual register, but only if file == asm_out_file.
3762         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3763         for ARG_POINTER_REGNUM.
3764
3765 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3766
3767         * c-common.c (registered_builtin_types): New static.
3768         (c_common_type_for_mode): Consult registered_builtin_types.
3769         (c_register_builtin_type): Add type to registered_builtin_types.
3770         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3771         all MODE_FLOAT modes, not just the ones corresponding to
3772         float_type_node, double_type_node, and long_double_type_node.
3773
3774 2003-10-20  Richard Henderson  <rth@redhat.com>
3775
3776         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3777         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3778
3779 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
3780
3781         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3782         support new flag -minsert-sched-nops.
3783         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3784         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3785         support new flag -minsert-sched-nops.
3786         (is_cracked_insn, is_microcoded_insn): New functions.
3787         (rs6000_sched_finish): New function.
3788         (rs6000_issue_rate): Return 5 for power4.
3789         (get_next_active_insn, insn_terminates_group_p): New
3790         functions.
3791         (is_costly_group, force_new_group): New functions.
3792         (redefine_groups, pad_groups): New functions.
3793         (rs6000_variable_issue): Use new functions.
3794         * doc/invoke.texi (-minsert-sched-nops): Document new
3795         option.
3796
3797 2003-10-20  David S. Miller  <davem@redhat.com>
3798
3799         * config/sparc/sparc.md (type attribute): Add new insn types
3800         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3801         (patterns emitting VIS insns): Use them.
3802         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3803         * config/sparc/ultra3.md: Likewise.
3804
3805 2003-10-20  Falk Hueffner  <falk@debian.org>
3806
3807         PR target/12654
3808         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3809         comparison against constant by adjusting the argument except for
3810         EQ and NE.
3811
3812 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
3813
3814         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3815         arm1136jfs, and armv6j.
3816         * config/arm/arm.c (FL_ARCH6J): New macro.
3817         (FL_VFPV2): Likewise.
3818         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3819         and arm1136jfs.
3820         (all_architectures): Add entry for armv6j.
3821         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3822         arm1136js, and arm1136jfs.
3823         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3824         (TARGET_CPU_arm1026ej_s): Likewise.
3825         (TARGET_CPU_arm1136j_s): Likewise.
3826         (TARGET_CPU_arm1136jf_s): Likewise.
3827         * doc/invoke.texi: Document new ARM cores and architecture
3828         variants.
3829
3830 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3831
3832         * Makefile.in (toplev.o): Add value-prof.h dependency.
3833         (value-prof.o): Add REGS_H dependency.
3834         * common.opt (fprofile-values, fvpt): New.
3835         * flags.h (flag_value_profile_transformations): Declare.
3836         * opts.c (common_handle_option): Handle -fprofile_values and
3837         -fvpt.
3838         * profile.c (branch_prob): Don't remove death notes here.
3839         * timevar.def (TV_VPT): New.
3840         * value-prof.c: Include regs.h.
3841         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3842         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3843         mod_subtract_transform, value_profile_transformations): New.
3844         (insn_values_to_profile): Call insn_divmod_values_to_profile.
3845         (find_values_to_profile): Add dumps.
3846         * value-prof.h (value_profile_transformations): Declare.
3847         * toplev.c: Include value-prof.h.
3848         (rest_of_handle_value_profile_transformations): New.
3849         (enum dump_file_index): Add DFI_vpt.
3850         (dump_file): Add vpt dump.
3851         (flag_value_profile_transformations): New.
3852         (lang_independent_options): Add flag_profile_values and
3853         flag_value_profile_transformations.
3854         (rest_of_compilation): Call
3855         rest_of_handle_value_profile_transformations.
3856         (process_options): Let -fvpt imply -fprofile-values.
3857         * doc/invoke.texi (-fvpt): Document.
3858
3859 2003-10-19  Jan Hubicka  <jh@suse.cz>
3860
3861         * i386.c (print_reg): Do not abort on certain registers.
3862
3863         PR optimization/12612
3864         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
3865         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3866         match_scratch; avoid bogus paralles.
3867
3868         PR target/12674
3869         * i386.c (ix86_function_regparm): Disable implicit register passing
3870         conventions when profiling.
3871
3872 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3873             Richard Henderson  <rth@redhat.com>
3874
3875         PR optimization/8178
3876         * config/i386/i386.md (*movsi_zero): Delete.
3877         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3878
3879 2003-10-19  Richard Henderson  <rth@redhat.com>
3880
3881         * config/alpha/alpha.c (fix_operator): New.
3882         (divmod_operator): Tidy.
3883         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3884         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3885         (PREDICATE_CODES): Update.
3886         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3887         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3888         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3889         (fix_truncsfdi_ieee): Likewise.
3890         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3891         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3892         * config/alpha/alpha-protos.h: Update.
3893
3894 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
3895
3896         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3897         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3898         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3899         constant operands.
3900
3901 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
3902
3903         * doc/extend.texi: Fix typos.
3904         * doc/invoke.texi: Likewise.
3905
3906 2003-10-18  Nicolas Pitre <nico@cam.org>
3907
3908         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3909         XScale optimizations not arm_arch_xscale.
3910         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3911
3912 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3913
3914         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3915         * config/s390/s390.c (shift_count_operand): New function.
3916         (s390_extra_constraint): Use it to implement 'Y' constraint.
3917         (print_shift_count_operand): New function.
3918         (print_operand): Use it to implement '%Y'.
3919         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3920         (PREDICATE_CODES): Add shift_count_operand.
3921         * config/s390/s390.md ("rotldi3"): Merge alternatives,
3922         using "shift_count_operand" predicate and "Y" constraint,
3923         and "%Y" to output the combined shift count.
3924         ("rotlsi3"): Likewise.
3925         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3926         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3927         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3928         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3929         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3930         ("lshrsi3"): Likewise.
3931
3932 2003-10-18  Gunther Nikl  <gni@gecko.de>
3933
3934         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3935         argument to asm_fprintf statement.
3936
3937 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
3938
3939         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3940         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3941         a "long long" argument.
3942
3943 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
3944
3945         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3946         as well.
3947
3948 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
3949
3950         * rtl.h (rtl_size): Declare.
3951         (rtunion): Remove rtwint.
3952         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3953         (RTX_HDR_SIZE, RTX_SIZE): New macros.
3954         (RTL_CHECK1): Adjust for new rtx_def layout.
3955         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3956         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
3957         (X0WINT): Remove.
3958         (X0ANY): New macro.
3959         * rtl.def: Adjust comments for new rtx_def layout.
3960         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3961         number of slots.
3962         * rtl.c (rtx_size): New array.
3963         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
3964         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3965         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
3966         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3967         * emit-rtl.c (copy_most_rtx): Likewise.
3968         (copy_rtx_if_shared): Use RTX_SIZE.
3969         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3970         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
3971         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3972         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3973         an array.  Adjust output for new rtx_def layout.
3974         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3975         * reload1.c (eliminate_regs): Use RTX_SIZE.
3976         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3977         * gdbinit.in (pi): Likewise.
3978
3979 2003-10-18  Jan Hubicka  <jh@suse.cz>
3980
3981         * integrate.c (copy_decl_for_inlining): Revert previous patch.
3982
3983 2003-10-18  Jan Hubicka  <jh@suse.cz>
3984
3985         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3986
3987 2003-10-18  Roger Sayle  <roger@eyesopen.com>
3988
3989         * libgcc.texi: Group multi-word types, such as "long double" and
3990         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3991         Document __unord?f2 as returning a non-zero value, not just one.
3992
3993 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
3994
3995         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3996         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3997
3998 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3999
4000         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
4001         match_operand.
4002
4003 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4004
4005         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
4006         parameter packed_p.  Search for a DECL_PACKED field only if
4007         packed_p is false.  Pass packed_p recursively.
4008         (function_arg_record_value_2): Likewise.
4009         (function_arg_record_value): Update calls to
4010         function_arg_record_value_1 and function_arg_record_value_2.
4011
4012 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4013
4014         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
4015         was successfully forced to memory before using the result.
4016
4017 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4018
4019         PR optimization/8178
4020         * config/i386/i386.md (*movsi_zero): New insn to set
4021         a register to zero on TARGET_USE_MOV0 targets.
4022
4023 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
4024
4025         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
4026         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
4027
4028 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
4029
4030         * doc/invoke.texi (gcse-las): Fix typo.
4031
4032 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
4033
4034         * doc/install.texi: Remove first part of the sentence for
4035         zsh not working.  Change gcc to GCC.
4036
4037         PR bootstrap/12546
4038         * doc/install.texi: Document that zsh does not work when
4039         configuring gcc.
4040
4041 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
4042
4043         * config/ptx4.h: Switch to DWARF 2; update comments.
4044
4045 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
4046             Hartmut Penner  <hpenner@de.ibm.com>
4047
4048         PR 10404, partial 11591, partial 11601
4049         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
4050         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
4051         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
4052         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
4053         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
4054         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
4055         (altivec_expand_stv_builtin): Adjust for the memory_operand.
4056         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
4057         (altivec_init_builtins): Use `long int' for memory offsets.
4058
4059 2003-10-17  Jan Hubicka  <jh@suse.cz>
4060
4061         * opts.c  (common_handle_option): Handle OPT_fweb
4062         * invoke.texi (-fweb): Add missing parts of documentation.
4063
4064 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4065
4066         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
4067         before redefinition.
4068
4069 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
4070
4071         * common.opt: Add description of the new -fgcse-las flag.
4072         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
4073         * gcse.c (hash_scan_set): Handle the case of store expression and
4074         insert the memory expression to the hash table, this way we make it
4075         possible to discover redundant loads after stores and remove them.
4076         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
4077         to pre_insert_copies, it is not the correct place to call it after
4078         adding stores to be in the available expression hash table.
4079         (pre_insert_copies): Added the call to update_ld_motion_stores when
4080         one or more copies were inserted.
4081         * opts.c (common_handle_option): Handle the -fgcse-las flag.
4082         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
4083
4084         * doc/invoke.tex: Document new -fgcse-las flag.
4085
4086 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
4087
4088         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
4089         for posterity, then remove it.
4090
4091 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
4092             Nathan Sidwell  <nathan@codesourcery.com>
4093
4094         * config/arm/arm.c (use_return_insn): Not a single instruction, if
4095         there's a frame pointer.
4096         (arm_output_epilogue): Protect stack pointer from being corrupted
4097         on interrupt.
4098
4099 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
4100
4101         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
4102
4103 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
4104
4105         * combine.c (simplify_set): Do not clear out undobuf.other_insn
4106         already set elsewhere.
4107
4108 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
4109
4110         * config/i386/i386.c (ix86_expand_prologue):  Use
4111         gen_allocate_stack_worker.
4112
4113 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4114
4115         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
4116         without gas.
4117         (mips-sgi-irix6*): Likewise.
4118
4119         * config/mips/iris6gas.h: New file.
4120         * gcc/config.gcc (mips-sgi-irix6*): Use it.
4121
4122         * config/mips/mips.h (TARGET_IRIX): Provide default.
4123         (TARGET_IRIX5): Likewise.
4124         (TARGET_SGI_O32_AS): Likewise.
4125         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
4126         (TARGET_IRIX5): Likewise.
4127         * config/mips/iris6.h (TARGET_IRIX6): Remove.
4128         (TARGET_IRIX5): Redefine as 0.
4129
4130         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
4131         linker workaround with TARGET_IRIX and mips_abi instead of
4132         ASM_OUTPUT_UNDEF_FUNCTION.
4133         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
4134         testing TARGET_IRIX and mips_abi explicitly.
4135         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
4136         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
4137
4138         * config/mips/mips.c (irix_output_external_libcall): Renamed from
4139         mips_output_external_libcall.
4140         Use new TARGET_IRIX in guard.
4141         * config/mips/mips-protos.h (irix_output_external_libcall): Match
4142         this.
4143         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
4144
4145         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
4146         Define as 0.
4147
4148         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
4149         depending on mips_abi.
4150         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
4151         * config/mips/mips.c (mips_output_function_prologue): Test
4152         FUNCTION_NAME_ALREADY_DECLARED at runtime.
4153         (mips_output_function_epilogue): Likewise.
4154         (build_mips16_function_stub): Likewise.
4155         (build_mips16_call_stub): Likewise.
4156         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
4157         default.
4158
4159         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
4160         IRIX 6 O32 assembler.
4161         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
4162         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
4163         _MIPS_SIM for O32 ABI.
4164         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
4165         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
4166         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
4167         Integrate O32 version.
4168         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
4169         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
4170         O32 ABI.
4171         (BSS_SECTION_ASM_OP_32): Define.
4172         (BSS_SECTION_ASM_OP_64): Likewise.
4173         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
4174         using them.
4175         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
4176         Move up to allow override for O32 ABI without GNU as.
4177         (EH_FRAME_SECTION_NAME): Define explicitly.
4178         (MUST_USE_SJLJ_EXCEPTIONS): Define.
4179         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
4180         DTORS_SECTION_ASM_OP): Dummy definitions.
4181         (TARGET_ASM_NAMED_SECTION): Undef statically.
4182         (EH_FRAME_SECTION_NAME): Likewise.
4183         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
4184         (LINK_SPEC): Only use default options -call_shared -no_unresolved
4185         without -r.
4186         Don't pass -init, -fini with -mabi=32.
4187         (COLLECT_PARSE_FLAG): Define.
4188
4189         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
4190         TARGET_IRIX.
4191         Renamed to use irix_ prefix.
4192         (iris6_asm_named_section): Likewise.
4193         (iris_section_align_entry_eq): Likewise.
4194         (iris_section_align_entry_hash): Likewise.
4195         (iris6_file_start): Likewise.
4196         (iris6_section_align_1): Likewise.
4197         (iris6_file_end): Likewise.
4198         (iris6_section_type_flags): Likewise.
4199         (iris_section_align_htab): Likewise.
4200         (iris_orig_asm_out_file): Likewise.
4201         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
4202         (TARGET_ASM_FILE_END): Likewise.
4203         (TARGET_SECTION_TYPE_FLAGS): Likewise.
4204
4205         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
4206         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
4207         override_options instead.
4208         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
4209         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
4210         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
4211         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
4212         assemblers.
4213         Likewise for constructor/destructor handling.
4214         (override_options): Handle IRIX O32 assembler quirks.
4215         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
4216         without gas.
4217         (mips_file_start): Use new TARGET_IRIX.
4218         (mips_declare_object_name): No special processing for IRIX O32
4219         assembler.
4220         (mips_finish_declare_object): Likewise.
4221         (irix_asm_output_align): Renamed from iris6_asm_output_align.
4222         Don't record alignment for O32 ABI.
4223         (irix_file_start): Renamed from iris6_file_start.
4224         Return early for O32 ABI.
4225         (irix_file_end): Renamed from iris6_file_end.
4226         Don't emit .section directives for O32 ABI.
4227         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
4228         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
4229
4230         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
4231         (MULTILIB_OSDIRNAMES): Likewise.
4232
4233 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4234
4235         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
4236         (main): Use it.
4237         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
4238
4239 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
4240
4241         * arm-modes.def (CC_Nmode): New condition code mode.
4242         * arm.c (thumb_condition_code): Delete.
4243         (arm_select_cc_mode): Handle single-bit test for Thumb.
4244         (arm_print_operand, cases 'd' and 'D'): Don't special case the
4245         condition code logic for Thumb.
4246         (get_arm_condition_code): Handle CC_Nmode.
4247         (thumb_cbrch_target_operand): New function.
4248         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
4249         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
4250         * arm.md: Add Thumb split patterns for zero_extract and
4251         sign_extract.
4252         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4253         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4254         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4255         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4256         (cbranchne_decr1): Re-work to use CC_Nmode.
4257
4258         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4259         by the return instruction.  Add a use of the link register if it
4260         wasn't stored.
4261
4262 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
4263
4264         * flow.c (init_propagate_block_info): Don't abort if a conditional
4265         jump is not a comparison of a register.  Instead, just don't record
4266         conditional life information.
4267
4268 2003-10-16  Jan Hubicka  <jh@suse.cz>
4269
4270         PR optimization/12630
4271         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4272         for operands 7 and 8.
4273
4274 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
4275
4276         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4277
4278 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
4279
4280         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4281
4282         * config/i386/winnt.c (gen_stdcall_suffix): Make static
4283         (gen_fastcall_suffix): Likewise.
4284         (i386_pe_dllexport_p): Likewise.
4285         (i386_pe_dllimport_p): Likewise.
4286         (i386_pe_mark_dllexport): Likewise.
4287         (i386_pe_mark_dllimport): Likewise.
4288         (i386_pe_asm_named_section): Fix formatting.
4289
4290 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
4291
4292         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4293         * system.h: Declare snprintf if necessary.
4294         * configure, config.in: Regenerate.
4295
4296 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
4297
4298         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4299         arguments if TARGET_ALTIVEC_ABI.
4300
4301 2003-10-15  Roger Sayle  <roger@eyesopen.com>
4302
4303         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4304         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4305         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4306         New functions.
4307         (expand_builtin_memcpy): Use integer_zerop instead of testing
4308         host_integerp and tree_low_cst directly.  Move misapplied hunk
4309         for optimization wher SRC and DEST point to the same location.
4310         (expand_builtin_mempcpy): From here.
4311         (expand_builtin_memmove): Use integer_zerop instead of testing
4312         host_integerp and tree_low_cst_directly.
4313         (expand_builtin_memset): Likewise.
4314         (expand_builtin_memcmp): Likewise (and for integer_onep).
4315         (expand_builtin_strncmp): Likewise.
4316         (fold_builtin): Call the appropriate fold_builtin_foo functions
4317         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4318         strcmp and strncmp.
4319
4320 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
4321
4322         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4323         prototype.  Clean up some whitespace.
4324         * config/darwin.c: Use gen_rtx_FOO (...) rather than
4325         gen_rtx (FOO, ...).
4326         (machopic_non_lazy_ptr_name): Make static.
4327         (name_needs_quotes): Allow '.' and '$' unquoted.
4328         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4329         case.
4330
4331 2003-10-15  Gábor Lóki  <alga@rgai.hu>
4332
4333         * fold-const.c (tree_swap_operands_p): Disable some features
4334         when optimizing for size.
4335
4336 2003-10-15  David Daney  <ddaney@avtrex.com>
4337
4338         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4339         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4340         from leaf functions.
4341         (DWARF_FRAME_RETURN_COLUMN): Ditto.
4342         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4343         by MD_FALLBACK_FRAME_STATE_FOR.
4344         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4345
4346 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
4347
4348         * genmodes.c: Include hashtab.h.
4349         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4350         (adj_bytesize, adj_alignment, adj_format, new_adjust)
4351         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4352         (print_maybe_const_decl, emit_mode_adjustments): New.
4353         (known_modes): Rename to modes.
4354         (find_mode): Kill class argument; look up in hash table.
4355         (new_mode): Insert into hash table also.
4356         (new_adjust): New.
4357         (reset_float_format, make_partial_integer_mode)
4358         (make_vector_mode): Tweak error reporting.
4359         (reset_float_format): Correct type of fourth argument.
4360         (emit_insn_modes_h): Add #defines to help make mode_size,
4361         mode_base_align, and real_format_for_mode conditionally const.
4362         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4363         (emit_real_format_for_mode): Likewise, but temporarily disabled.
4364         (emit_insn_modes_c): Call emit_mode_adjustments.
4365         (main): Initialize modes_by_name.
4366         * Makefile.in: Update dependencies.
4367         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4368         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4369         declarations of mode_size and mode_base_align.  Declare
4370         init_adjust_machine_modes.
4371         * toplev.c (backend_init): Call init_adjust_machine_modes.
4372
4373 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
4374
4375         * genmodes.c (calc_wider_mode): Allocate enough room for all the
4376         entries we'll possibly assign in the sort buffer.
4377
4378 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
4379
4380         * config.gcc (s390x-ibm-tpf*): New target.
4381         * doc/install.texi: Document it.
4382         * config/s390/t-tpf: New file.
4383         * config/s390/tpf.h: New file.
4384
4385 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
4386
4387         PR target/12598
4388         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4389         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4390         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4391         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4392         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4393         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4394         replace_equiv_address, not gen_rtx_MEM.
4395         * config/cris/cris.c (cris_mem_op): New match_operator function.
4396         (cris_notice_update_cc): Use replace_equiv_address, not
4397         gen_rtx_MEM.
4398         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4399
4400 2003-10-15  Bernardo Innocenti <bernie@develer.com>
4401
4402         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4403         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4404         definitions after the other flags.
4405
4406 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
4407
4408         * c-parse.in (methoddef, methodproto): Call objc_add_method()
4409         instead of add_method().
4410         * objc/objc-act.c (objc_check_decl): Do not check for
4411         constant_string_type.
4412         (add_method): Rename to objc_add_method().
4413         (really_start_method): Call objc_add_method() instead of
4414         add_method().
4415         * objc/objc-act.h (add_method): Rename to objc_add_method().
4416
4417 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
4418
4419         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4420         (s390_slb_comparison): Likewise.
4421         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4422         New functions.
4423         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4424         and s390_slb_comparison.
4425         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4426         zSeries machines.
4427         ("*adddi3_31z", "*subdi3_31z"): New insns.
4428         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4429         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4430         New insns.
4431
4432 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4433
4434         * configure.in: Clean up some feedback echoes.
4435         * configure: Regenerate.
4436
4437         * aclocal.m4: Properly quote names of macros being defined.
4438
4439         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4440
4441 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
4442
4443         * config/ia64/ia64.c (ia64_expand_call): Force function address
4444         to DImode.
4445         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4446
4447 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
4448
4449         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4450         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4451         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4452         "*divsf3_ibm"): Likewise.
4453
4454 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4455
4456         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4457         target_alias with target_noncanonical.
4458
4459 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
4460
4461         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4462         and add case for machines where outgoing register parameters
4463         get stack space.
4464
4465         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4466         register when generating indirect address.
4467
4468 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
4469
4470         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4471         * arm.md (cbranchne_decr1): Fix bootstrap warning.
4472
4473 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4474
4475         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4476         * fixinc/fixincl.x: Regenerate.
4477         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4478         testcase.
4479         Fixes PR bootstrap/9330.
4480
4481 2003-10-13  Eric Christopher  <echristo@redhat.com>
4482
4483         * config/frv/frv.c (frv_adjust_field_align): Redo check for
4484         too wide bitfields.
4485         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4486         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4487         (SBSS_SECTION_ASM_OP): Remove.
4488         (EXTRA_SECTIONS): Remove in_sbss.
4489         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4490         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4491         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4492         named_section.
4493
4494 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4495
4496         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4497         uses of ${target_alias} for directory names (and other places which
4498         won't like the empty string) with ${target_noncanonical}.  Introduce
4499         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4500         available.
4501         * configure: Regenerate.
4502
4503 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
4504
4505         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4506         * config/arm/arm.md: For splits which rely on conditional moves,
4507         remove ! TARGET_IWMMXT condition.
4508
4509 2003-10-13  David S. Miller  <davem@redhat.com>
4510
4511         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4512         (find_cond_trap): Always increment if we emit a conditional
4513         trap insn.
4514
4515 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4516
4517         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4518         with min-insn-modes.o.
4519         (STAGESTUFF): Add min-insn-modes.c.
4520         (genobjs): Add genmodes.o.
4521         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4522         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4523         (min-insn-modes.c, min-insn-modes.o): New rules.
4524         (s-modes): Also generate min-insn-modes.c.
4525         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4526         * genmodes.c (struct mode_data): Add format field.
4527         (blank_mode, validate_mode, complete_mode): Update to match.
4528         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4529         (_SCALAR_MODE): Kill.
4530         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4531         (emit_insn_modes_c_header): Adjust.
4532         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4533         (emit_min_insn_modes_c): New functions.
4534         (emit_insn_modes_c): Call emit_real_format_for_mode.
4535         (main): Add -m option to generate min-insn-modes.c.
4536         * machmode.h: Update documentation.  Add format argument to
4537         all uses of FLOAT_MODE.
4538         * real.c: Don't define real_format_for_mode here.
4539
4540         * dwarfout.c: Move default definition of PRINT_REG...
4541         * defaults.h: ...here.
4542         * print-rtl.c: Include tm_p.h.
4543         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4544         Kill.
4545         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
4546         this entire block with #ifndef GENERATOR_FILE.
4547         * regclass.c: Unconditionally define reg_names.
4548         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4549         Don't define DEBUG_REGISTER_NAMES.
4550         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4551         redefinition of REGISTER_NAMES.
4552         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4553
4554         * combine.c: Change all preprocessor conditionals on
4555         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4556         for clarity.
4557         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4558         * configure.in: Don't define EXTRA_CC_MODES.
4559         * configure, config.in: Regenerate.
4560         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4561
4562         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4563         May assume that GET_MODE_CLASS is accurate for extra CC modes
4564         at all times.
4565
4566         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4567         number of arguments to aggregate_value_p.
4568
4569         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4570         * machmode.def: Explain ARCH-modes.def.  Document
4571         RESET_FLOAT_FORMAT.  Improve commentary on various mode
4572         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4573         XF, or TF modes here.  Remove backward-compatibility
4574         definition of CC.
4575
4576         * config/alpha/alpha-modes.def: New file; define TF mode.
4577         * config/arc/arm-modes.def: Define XF mode.
4578         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
4579         float format for SF and DF modes.
4580         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4581         * config/i386/i386-modes.def: Define XF and TF modes.
4582         * config/i960/i960-modes.def: Define TF mode.
4583         * config/ia64/ia64-modes.def: Define TF and OI modes.
4584         * config/m68k/m68k-modes.def: New file; define XF mode.
4585         * config/mips/mips-modes.def: New file; define TF mode, reset
4586         formats for SF and DF modes.
4587         * config/pa/pa-modes.def: Define TF mode.
4588         * config/rs6000/rs6000.c: Define TF and PSI modes.
4589         * config/s390/s390-modes.def: Define OI mode.
4590         * config/sh/sh-modes.def: New file; define PSI mode.
4591         * config/sparc/sparc-modes.def: Define TF mode.
4592         * config/vax/vax-modes.def: New file; reset formats for SF and
4593         DF modes.
4594
4595         * config/c4x/c4x.c (c4x_override_options): No need to mess
4596         with real_format_for_mode or set REAL_MODE_FORMATs.
4597         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4598         variable.
4599         * config/i386/i386.c (override_options): No need to set
4600         REAL_MODE_FORMATs here.
4601         * config/i960/i960.c (i960_initialize): Likewise.
4602         * config/m68k/m68k.c (m68k_override_options): Likewise.
4603         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4604         for TFmode only if not the default.
4605         * config/mips/mips.c (override_options): Likewise.
4606         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4607         DFmode only if not the default.
4608
4609         * config/i370/i370.h (RET_REG): Don't consider TFmode.
4610         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4611         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4612         of modes that don't appear anywhere in the machine description.
4613
4614         * config/arc/arc-modes.def, config/arm/arm-modes.def
4615         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4616         * config/i386/i386-modes.def, config/i960/i960-modes.def
4617         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4618         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4619         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4620         * config/sparc/sparc-modes.def: Convert to new style for
4621         declaring extra CC modes.
4622
4623 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4624
4625         * cpplex.c (_cpp_clean_line): In the common case of a line
4626         with no trigraphs and no \-newline, avoid writing to memory.
4627         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4628         of the buffer member.  Make c an uchar to avoid unnecessary
4629         sign extensions.
4630
4631 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4632
4633         * configure.in: Remove unnecessary test.
4634         * configure: Regenerate.
4635
4636         * configure.in: Fix grammatical error.  Move UWIN host error to...
4637         * config.host: Here.
4638         * configure: Regenerate.
4639
4640 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
4641
4642         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4643         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4644         of flag_unsafe_math_optimizations.
4645         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4646         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4647         fused-madd and no-fused-madd.
4648         * doc/invoke.texi: Documented the new options fused-madd and
4649         no-fused-madd for S/390.
4650
4651 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
4652
4653         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4654         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
4655         assign DEFAULT_ABI.
4656         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4657         * config/rs6000/rs6000.c: Formatting.
4658         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4659         when rs6000_alignment_string given.
4660
4661 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4662
4663         PR target/12538
4664         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4665         (sparc_flat_must_save_register_p): New function to decide whether
4666         a register must be saved/restored in the function prologue/epilogue.
4667         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4668
4669 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4670
4671         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4672         ISO C90 function declarations and definitions.
4673         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4674
4675 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4676
4677         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4678         config files which do the same thing.
4679         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4680         config/freebsd6.h: Remove now unnecessary files.
4681
4682 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4683
4684         * c-common.c (c_common_truthvalue_conversion): Warn if the
4685         address of a non-weak function is used as a truth value.
4686
4687 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
4688
4689         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4690         a literal.
4691         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4692         instead of a literal.
4693
4694 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
4695
4696         * doc/extend.texi (Function Attributes): Mention the exceptional
4697         path for noreturn-marked functions.
4698
4699 2003-10-12  Jan Hubicka  <jh@suse.cz>
4700
4701         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4702         warning.
4703
4704 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4705
4706         * config/i386/i386.c (x86_this_parameter): Fix typo.
4707
4708 203-10-11  Jan Hubicka  <jh@suse.cz>
4709
4710         * Makefile.in (web.o): New.
4711         * web.c: New file.
4712         * rtl.h (web_main): Declare.
4713         * timervar.def (TV_WEB): New.
4714         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4715         (rest_of_hanle_web): New.
4716         (flag_web): New static variable.
4717         (lang_independent_options): Add "web".
4718         (rest_of_compilation): Call rest_of_handle_web.
4719         * invoke.texi (-fweb): Document.
4720         * common.opt (fweb): New.
4721         * flags.h (flag_web): New.
4722         * opts.c (decode_options): Set flag_web at -O3.
4723
4724         * passes.texi (web construction):  Document.
4725         * invoke.texi (-O3): Document that -fweb is enabled.
4726
4727         * regrename.c (regrename_optimize): Deal better with situation when
4728         replacement failed.
4729
4730         * sched-ebb.c: Include params.h and profile.h
4731         (schedule_ebbs):  Use tracer parameters to discover superblocks
4732         * Makefile.in (sched-ebb.o):  Add dependencies.
4733
4734 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4735
4736         * fold-const.c (negate_mathfn_p): New function to determine whether
4737         a built-in mathematical function is sign preserving, f(-x) == -f(x).
4738         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4739         (tree_swap_operands_p): Change API to take an additional argument
4740         indicating that the swapped operands evaluate in reverse order.
4741         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4742         operand side-effects or we don't care about flag_evaluation_order.
4743         (reorder_operands_p): New function to check whether its safe to
4744         evaluate the given operands in reverse order.
4745         (negate_expr_p):  We can always negate integer constants unless
4746         we honor -ftrapv and the signed type would overflow.  Only allow
4747         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
4748         negation of COMPLEX_CST if both real and imaginary parts can be
4749         negated.  Allow negation through floating point extensions and
4750         sign-preserving built-in functions.
4751         (negate_expr):  Move the code to negate integers from "fold" to
4752         here.  Always negate integer constants unless we honor -ftrapv
4753         and the signed type would overflow.  Always negate real constants
4754         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
4755         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
4756         Optimize negation through floating point extensions and
4757         sign-preserving built-in functions (as defined by negate_mathfn_p).
4758         (fold): Adjust calls to tree_swap_operands_p.
4759         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4760         to negate_expr_p/negate_expr.
4761         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4762         allowed to convert (-A) - B into (-B) - A.
4763
4764 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4765
4766         * builtins.c (expand_builtin_strcmp): Defend against the possibility
4767         that gen_cmpstrsi may fail: Stabilize the argument list against
4768         re-evaluation and expand the library call directly using this saved
4769         argument list if a cmpstrsi sequence can't be generated.
4770         (expand_builtin_strncmp): Likewise.
4771
4772         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4773
4774 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4775
4776         PR optimization/12260
4777         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4778         operations through CONST nodes.  Optimize (neg (plus X C)) as
4779         (minus -C X) for constant values C.
4780         (simplify_binary_operation): Optimize (minus (neg X) C) as
4781         (minus -C X) for constant values C.
4782         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4783         instead create (minus -C X).
4784
4785 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4786
4787         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4788         safe_from_p for us, once it chooses an evaluation order.
4789         (expand_expr <MULT_EXPR>): Likewise.
4790         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
4791         places the second operand in "target", swap the operands.
4792         (do_store_flag): Let expand_operands call safe_from_p for us.
4793
4794 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4795
4796         PR optimization/12544
4797         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4798         for DECL_NONLOCAL decls.
4799
4800 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4801
4802         * expr.c: Follow spelling conventions.
4803         * final.c: Likewise.
4804         * optabs.c: Likewise.
4805         * sched-deps.c: Likewise.
4806         * sdbout.c: Likewise.
4807
4808 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
4809
4810         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
4811         re-computing of variable.
4812
4813 2003-10-11  Richard Henderson  <rth@redhat.com>
4814
4815         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4816         return_in_memory, make static, change signature to match target hook.
4817         (alpha_setup_incoming_varargs): Make static, change signature to
4818         match target hook, add code for vms and unicos.
4819         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4820         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4821         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4822         TARGET_STRICT_ARGUMENT_NAMING,
4823         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4824         * config/alpha/alpha-protos.h: Update.
4825         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4826         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4827         SETUP_INCOMING_VARARGS): Remove.
4828         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4829         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4830
4831 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
4832
4833         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4834
4835 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4836
4837         * config/m68k/lb1sf68.asm: Follow spelling conventions.
4838         * config/m68k/m68k.c: Likewise.
4839         * config/m68k/m68k.h: Likewise.
4840         * config/m68k/m68k.md: Likewise.
4841
4842 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4843
4844         * builtins.c (expand_builtin_memcpy): Optimize case when the two
4845         pointer arguments are the equal, non-volatile and side-effect free.
4846         (expand_builtin_mempcpy): Likewise.
4847         (expand_builtin_memmove): Likewise.
4848         (expand_builtin_strcpy): Likewise.
4849         (expand_builtin_memcmp): Likewise.
4850         (expand_builtin_strcmp): Likewise.
4851         (expand_builtin_strncmp): Likewise.
4852
4853 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4854
4855         * combine.c (apply_distributive_law): Enable "distributive" floating
4856         point optimizations with -funsafe-math-optimizations.
4857
4858 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
4859
4860         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4861
4862 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4863
4864         * config/m68k/m68k-protos.h: Remove the prototype for
4865         finalize_pic.
4866
4867 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4868
4869         * config/m68k/m68k.c: Fix comment typos.
4870
4871 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4872
4873         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4874         int to bool.
4875         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4876         (current_frame): New global var.
4877         (m68k_compute_frame_layout): Cache computations in current_frame.
4878         (m68k_initial_elimination_offset): Use values from current_frame
4879         instead of recomputing them.
4880         (use_return_insn): Likewise.
4881         (m68k_output_function_prologue): Likewise.
4882         (m68k_output_function_epilogue): Likewise.
4883         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4884         inside the block for __pic__.
4885
4886 2003-10-11  Peter Barada <peter@baradas.org>
4887             Bernardo Innocenti  <bernie@develer.com>
4888
4889         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4890         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4891         (m68k_interrupt_function_p): New function.
4892         (m68k_handle_fndecl_attribute): Ditto.
4893         (m68k_compute_frame_layout): Ditto.
4894         (m68k_attribute_table): Define back-end specific attributes.
4895         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4896         functions.
4897
4898 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4899
4900         * config/m68k/t-uclinux: New target Makefile fragment.
4901         * config/m68k/uclinux.h: New target macro file.
4902         * config.gcc (m68k-*-uclinux): New target definition.
4903
4904 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4905
4906         * builtins.c (builtin_mathfn_code): Generalize to check whether
4907         the call is to any built-in function by comparing the call's
4908         argument list against the builtin decl's function type.
4909
4910 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4911
4912         * cse.c (constant_pool_entries_regcost): New global variable to
4913         hold the register cost component of constant_pool_entries_cost.
4914         (fold_rtx): Calculate constant_pool_entries_regcost at the same
4915         time as constant_pool_entries_cost.
4916         (cse_insn): Set both src_folded_cost and src_folded_regcost from
4917         constant_pool_entries_cost and constant_pool_entries_regcost.
4918         (cse_main): Initialize constant_pool_entries_regcost to zero.
4919
4920         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4921         the semantics of the sequence of bit operations used to negate
4922         a floating-point value.
4923         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4924         the semantics of the bit operations used to abs a floating point
4925         value.
4926
4927 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4928             Paul Dale  <pauli@snapgear.com>
4929
4930         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4931         support.
4932         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4933         -fpic, -fPIC, -msep-data and -mid-shared-library.
4934         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4935         (override_options): Add -msep-data and -mshared-library-id support.
4936         (m68k_output_function_prologue): Generate code to load A5 for
4937         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4938         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4939         (m68k_output_pic_call): New function.
4940         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4941         (TARGET_ID_SHARED_LIBRARY): Ditto.
4942         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4943         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4944         (call_value): Likewise.
4945
4946 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4947
4948         * gengenrtl.c (find_formats, genheader): Make i an unsigned
4949         int, remove cast of NUM_RTX_CODE.
4950         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4951         entire file.  Remove the #ifs on GET_MODE_MASK etc and
4952         GET_MODE_WIDER_MODE etc.
4953
4954 2003-10-10  Eric Christopher  <echristo@redhat.com>
4955
4956         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4957         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4958         that set mode.
4959         * config/sh/sh.h (MODE_ENTRY): New macro.
4960         (MODE_EXIT): Ditto.
4961         (MODE_AFTER): Ditto.
4962         * config/sh/sh.md: Change for MODE_AFTER. Add
4963         fp_set attribute.
4964         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4965
4966 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4967
4968         * genmodes.c, mode-classes.def: New files.
4969         * machmode.def: Rewritten to genmodes.c interface.
4970         * Makefile.in (extra_modes_file): New substitution variable.
4971         (MACHMODE_H): No longer includes machmode.def or
4972         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4973         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4974         (OBJS-common): Add insn-modes.o.
4975         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4976         genmodes$(build_exeext).
4977         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4978         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4979         (s-genrtl): Don't depend on $(RTL_BASE_H).
4980         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4981         or $(RTL_BASE_H); just rtl.def.
4982         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4983         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
4984         substitute definition of NUM_RTX_CODE.  Add casts to avoid
4985         warnings.
4986         * machmode.h: Include insn-modes.h, not machmode.def.  Include
4987         mode-classes.def to define enum mode_class.  Tweak definitions
4988         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4989         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4990         (inner_mode_array): Renamed mode_inner.
4991         (mode_base_align): New.
4992         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4993         mode_unit_size, mode_wider_mode, mode_mask_array,
4994         inner_mode_array, class_narrowest_mode): Delete definitions.
4995         * stor-layout.c (get_mode_alignment): Use mode_base_align.
4996         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4997         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4998
4999         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
5000         No need to define BITS_PER_UNIT.
5001
5002 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5003
5004         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
5005         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
5006         (ia64_initialize_trampoline): If not using GAS, declare trampoline
5007         as global.
5008         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
5009         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
5010
5011         * stor-layout.c (compute_record_mode): Don't force BLKmode if
5012         field is zero-length BLKmode.
5013         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
5014         zero-size references.
5015
5016         * combine.c (distribute_links): Properly test for REG being set.
5017
5018         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
5019         gen_lowpart and company except for REG.
5020
5021 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5022
5023         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
5024
5025 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
5026
5027         * config.gcc (mips*-*-netbsd*): Remove content-free line.
5028
5029 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
5030
5031         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
5032         gcov_position_t and gcov_type.
5033
5034 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
5035
5036         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
5037         * configure: Regenerate.
5038
5039 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
5040
5041         * config/h8300/h8300.md (define_asm_attributes): Specify
5042         the length of an asm insn more precisely.
5043
5044 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5045
5046         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
5047
5048 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
5049
5050         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
5051         FP register number to 48 and MAC16 accumulator to 0x210.
5052
5053 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
5054
5055         * config.gcc: Remove redundant thread_file setting clauses for
5056         various *-*-linux* targets.
5057
5058 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
5059
5060         * config/h8300/h8300.md (define_asm_attributes): New.
5061
5062 2003-10-09  Roger Sayle  <roger@eyesopen.com>
5063
5064         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
5065         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
5066
5067 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
5068
5069         * haifa-sched.c (ok_for_early_schedule): New function.
5070         (early_queue_to_ready): New function.
5071         (schedule_block): Allow early removal of insns from Q.
5072         (schedule_insn): Update INSN_TICK in case of premature
5073         issue.
5074         * common.opt (sched_stalled_insns): New flag.
5075         (sched_stalled_insns_dep): New flag.
5076         * flags.h: Same above flags.
5077         * opts.c: Same as above.
5078         * toplev.c: Same as above.
5079         * target.h (targetm.sched.is_costly_dependence): New
5080         hook.
5081         * target-def.h: Same as above.
5082         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
5083         Support new flag -msched-costly-dep.
5084         (DEFAULT_SCHED_COSTLY_DEP): Define.
5085         * config/rs6000/rs6000.c:
5086         (rs6000_is_costly_dependence): New function.
5087         (is_load_insn, is_store_insn): New functions.
5088         (is_load_insn1, is_store_insn1, is_mem_ref): New
5089         functions.
5090         * doc/invoke.texi (-fsched-stalled-insns-dep)
5091         (-fsched-stalled-insns, -msched-costly-dep): Document
5092         options.
5093         * doc/tm.texi (is_costly_dependence): Define new
5094         scheduler target hook.
5095
5096 2003-10-09  Jason Merrill  <jason@redhat.com>
5097
5098         PR c++/6392
5099         * c-common.c (c_build_qualified_type): Look through arrays first.
5100         (c_apply_type_quals_to_decl): Look through arrays.
5101
5102         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
5103         types with constructors.
5104
5105         * coverage.c (build_ctr_info_value): Use build_decl to make a
5106         VAR_DECL.
5107         (create_coverage): Likewise.
5108
5109         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
5110         here.
5111         (expand_asm_operands): Not here.
5112         (parse_input_constraint): No longer static.
5113         * tree.h: Declare it.
5114
5115 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
5116
5117         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
5118         libgcc_s.so.
5119         (SHLIB_INSTALL): Likewise.
5120
5121 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
5122
5123         * doc/install.texi: Remove reference to removed 'pthreads' thread
5124         option.
5125
5126 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
5127
5128         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
5129         operand 2.
5130
5131 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
5132
5133         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
5134         up related case statements.
5135         * configure.in: Don't accept --enable-threads=pthreads,
5136         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
5137         supported thread files in case clause.
5138         * configure: Regenerate.
5139
5140 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
5141
5142         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
5143         definition to above SPARC_STACK_BOUNDARY_HACK.
5144
5145 2003-10-08  Jason Merrill  <jason@redhat.com>
5146
5147         * c-pretty-print.c (pp_c_postfix_expression)
5148         <COMPOUND_LITERAL_EXPR>: Fix thinko.
5149
5150 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5151
5152         * mklibgcc.in: Don't hide undefined or typeless symbols.
5153
5154 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5155
5156         PR optimization/12142
5157         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
5158         uses of the register in the SET_SRC.  Remove unnecessary argument.
5159         * pa.c (legitimize_pic_address): Before reload, use a scratch register
5160         for the intermediate result in loading the address of a SYMBOL_REF.
5161         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
5162         which loads the SYMBOL_REF address.
5163
5164 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
5165             Eric Botcazou  <ebotcazou@libertysurf.fr>
5166
5167         PR bootstrap/12490
5168         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
5169         to define the size of the extern_C_braces array.  Set it to 200.
5170         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
5171
5172 2003-10-08  Carlo Wood  <carlo@alinoe.com>
5173
5174         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
5175         a space after the -o option.  flex 2.5.31 understands both, with
5176         and without the space. Removed that space.
5177
5178 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
5179
5180         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
5181         (compute_frame_size): Initialize it.  Remove the .cprestore slot
5182         from args_size.
5183         (mips_output_function_prologue): Simplify accordingly.
5184         (mips_debugger_offset): Change the mips16 frame pointer offset from
5185         current_function_outgoing_args to cfun->machine->frame.args_size.
5186         (mips_initial_elimination_offset): Likewise.
5187         (mips_expand_prologue): Likewise.
5188         (mips_expand_epilogue): Likewise.
5189
5190 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
5191
5192         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
5193         (EXTRA_MEMORY_CONSTRAINT): Define.
5194         (CAN_ELIMINATE): Remove lwu workaround.
5195         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
5196         Use a 'W' constraint for the source operand.
5197
5198 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
5199
5200         * genopinit.c (main): Output code to declare undefined
5201         variables.
5202
5203 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
5204
5205         * gengtype-lex.l: Remove -Wtraditional cruft.
5206         * Makefile.in (gengtype-lex.c): Likewise.
5207
5208 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5209
5210         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
5211
5212 2003-10-07  Jason Merrill  <jason@redhat.com>
5213
5214         PR c++/12519
5215         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
5216         it isn't a decl.
5217
5218 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
5219
5220         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
5221         not overridden.
5222         Fixes PR bootstrap/12173.
5223
5224 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
5225
5226         * errors.c: Don't include coretypes.h or tm.h.
5227         (trim_filename): Use IS_DIR_SEPARATOR.
5228         * Makefile.in: Update dependencies of errors.o and
5229         $(BUILD_PREFIX_1)errors.o.
5230
5231 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
5232
5233         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
5234         account when aligning arguments.
5235         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
5236         * defaults.h (STACK_POINTER_OFFSET): ... to here.
5237         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
5238         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
5239         (SPARC_STACK_BOUNDARY_HACK): Define.
5240         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
5241         arrange for vector parameters to varargs functions to be passed
5242         in both memory and GPRs when appropriate.
5243         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
5244         aligned.
5245
5246         * hooks.c (hook_bool_tree_true): New.
5247         (hook_rtx_tree_int_null): New.
5248         (hook_rtx_rtx_null): Use NULL, not 0.
5249         * hooks.h: Add 'extern' to everything.
5250         (hook_bool_tree_true): New.
5251         (hook_rtx_tree_int_null): New.
5252         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5253         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5254         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5255         prototype.
5256         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5257         (setup_incoming_varargs): Prototype.
5258         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5259         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5260         (TARGET_STRUCT_VALUE_RTX): Define.
5261         (TARGET_RETURN_IN_MEMORY): Define.
5262         (TARGET_SETUP_INCOMING_VARARGS): Define.
5263         (TARGET_STRICT_ARGUMENT_NAMING): Define.
5264         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5265         (init_cumulative_args): Use rs6000_return_in_memory.
5266         (setup_incoming_varargs): Make 'static'.
5267         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5268         (PROMOTE_FUNCTION_RETURN): Delete.
5269         (STRUCT_VALUE): Delete.
5270         (RETURN_IN_MEMORY): Delete.
5271         (SETUP_INCOMING_VARARGS): Delete.
5272
5273 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
5274
5275         * doc/invoke.texi (Warning Options): Simplify and clarify the
5276         descriptions of -Wnonnull and -Winit-self.
5277
5278 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
5279
5280         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5281         indicees for floating-point conversersion libcalls.
5282
5283 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
5284
5285         * Makefile.in: Add more comments separating large conceptually
5286         separate sections.
5287
5288         * configure.in: Clean up thread file logic.
5289         * configure: Regenerate.
5290
5291 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5292
5293         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5294         (switch_to_section): Handle in_readonly_data.
5295         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5296         readonly data.
5297
5298 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
5299
5300         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5301         it.
5302         (cbranchne_decr1): New Thumb pattern.
5303         * arm.c (arm_addimm_operand): New insn predicate.
5304         * arm-protos.h: Add a prototype for it.
5305         * arm.h (PREDICATE_CODES): Add it.
5306
5307 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
5308
5309         * sched-int.h (sched_info): New field
5310         sched_max_insns_priority.
5311         * sched-rgn.c (init_ready_list): Add invocations to
5312         targetm.sched.adjust_priority.
5313         (sched_max_insns_priority): Init new field.
5314         * sched-ebb.c (sched_max_insns_priority): Init new field.
5315         * haifa-sched.c (set_priorities): Set
5316         sched_info->sched_max_insns_priority.
5317         * config/rs6000/rs6000.h:
5318         (rs6000_sched_restricted_insns_priority_str): Support new
5319         flag -mprioritize-restricted-insns.
5320         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5321         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5322         function.
5323         (rs6000_adjust_priority): Change priority of restricted
5324         insns, using above new function and new flag.
5325         * doc/invoke.texi (-mprioritize-restricted-insns): Document
5326         new option.
5327
5328 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
5329
5330         * expr.c (cmpstr_optab, cmpmem_optab): New.
5331         * genopinit.c: Initialize them.
5332         * optabs.h: Declare them.
5333         * optabs.c (init_optabs): Clear them.
5334         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
5335         block memory compare insns, not conditional chains.  Restructure
5336         the fallback generation of a call to memcmp/bcmp for better
5337         readability.
5338
5339 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5340
5341         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5342         (mips_save_restore_fn): New typedef.
5343         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5344         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5345         (save_restore_insns): Remove, replacing with...
5346         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5347         (mips_save_reg, mips_restore_reg): New function.
5348         (mips_expand_prologue, mips_expand_epilogue): Rework.
5349         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5350         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5351         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5352
5353 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5354
5355         * config/mips/mips.c (mips_expand_prologue): Remove unused
5356         traversal of function arguments.
5357
5358 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5359
5360         * doc/invoke.texi: Remove documentation of -mentry.
5361         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5362         (override_options, mips_save_reg_p): Remove handling.
5363         (compute_frame_size, mips_output_function_prologue): Likewise.
5364         (mips_expand_prologue, mips_expand_epilogue): Likewise.
5365         * config/mips/mips.h (mips_entry_string): Remove declaration.
5366         (TARGET_OPTIONS): Remove -mentry.
5367         * config/mips/mips16.S: Remove mention of -mentry.
5368
5369 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
5370
5371         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5372         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5373         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5374         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5375         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5376         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5377         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5378         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5379         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5380         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5381         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5382         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5383         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5384         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5385         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5386         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5387         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5388         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5389         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5390         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5391         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5392         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5393         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5394         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5395         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5396         (fixunstfti_libfunc): Delete.
5397         * optabs.h (struct optab_handlers): Break out of struct optab.
5398         (struct convert_optab, convert_optab, enum convert_optab_index,
5399         convert_optab_table, sext_optab, zext_optab, trunc_optab,
5400         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5401         sfloat_optab, ufloat_optab): New.
5402         (set_conv_libfunc): Prototype.
5403         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5404         (trunc_optab): Renamed btrunc_optab.
5405         * builtins.c (expand_builtin_mathfn): Update to match.
5406         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5407         (convert_optab_table, new_convert_optab, init_convert_optab)
5408         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5409         (set_conv_libfunc): New.
5410         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5411         (expand_float, expand_fix): Use new conversion optabs,
5412         not old insn code tables or long chains of ifs.
5413         (init_optabs): No need to clear old insn code tables.
5414         Initialize the new optabs, not the old libfunc array entries.
5415         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5416         * genopinit.c: Initialize conversion optabs, not the
5417         former insn code tables.  Remove unnecessary casts.
5418         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5419         * expr.c (convert_move): Remove redundant check that
5420         to_real==from_real.  Use the conversion optabs instead
5421         of long chains of tests of modes.  Move partial-integer-mode
5422         interconversion above all integer conversion.  Do not recurse
5423         on a value forced into a register in the original mode.
5424
5425         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5426         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5427         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5428         in new conversion optabs; do not reference the old libfunc
5429         array entries.  No need to include libfuncs.h.
5430
5431 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5432
5433         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5434         point comparison sequence with a REG_EQUAL note that describes
5435         the comparison's semantics.
5436
5437 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5438
5439         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5440         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5441
5442 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5443             Zack Weinberg  <zack@codesourcery.com>
5444
5445         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5446         instruction by using LCT_CONST and then calling emit_libcall_block
5447         ourselves.
5448
5449 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5450
5451         PR optimization/11974
5452         * optabs.c (expand_unop): Promote libcall outmode according to
5453         hard_libcall_value.
5454
5455 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
5456
5457         * real.h (REAL_MODE_FORMAT): New macro.
5458         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5459         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5460         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5461         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5462         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5463         directly to real_format_for_mode array, wherever possible.
5464
5465 2003-10-06  Devang Patel  <dpatel@apple.com>
5466
5467         * dwarf2out.c (is_main_source): Remove variable.
5468         (dwarf2out_start_source_file): Do not check is_main_source.
5469         Do not reset is_main_source.
5470         (dwarf2out_init): Do not initialize is_main_source.
5471
5472 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5473
5474         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5475         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5476         introduced some multi-line prototypes.
5477         * fixinc/fixincl.x: Regenerate.
5478
5479 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5480
5481         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5482         * config/mips/mips.c (stack_operand): New predicate.
5483         * config/mips/mips.md: Use it for the destination of mips16 insns
5484         that store $31.
5485
5486 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5487
5488         * config/mips/mips.md (*lowsi): Renamed from lowsi.
5489         (*lowdi): Likewise lowdi.
5490         (*lowsi_mips16, *lowdi_mips16): New patterns.
5491         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5492         mips16 CONSTANT_RELOC handling.
5493         (mips_delegitimize_address): Adjust for new sdata representation.
5494
5495 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5496
5497         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5498         skip any remaining register arguments.
5499
5500 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5501
5502         * reload.c (find_reloads_subreg_address): Use correct offset for
5503         paradoxical MEM subregs on big-endian targets.
5504
5505 2003-10-06  Andrew Haley  <aph@redhat.com>
5506
5507         * tree.c (get_callee_fndecl): Call
5508         lang_hooks.lang_get_callee_fndecl.
5509         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5510         (lhd_get_callee_fndecl): New.
5511
5512 2003-10-06  Andrew Pinski  <apinski@apple.com>
5513
5514         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5515         error in calculating the length of the string.
5516         (machopic_stub_name): Likewise.
5517
5518 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5519
5520         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
5521         describing the return value of the comparison libcall to the
5522         REG_RETVAL instruction of the emitted sequence.
5523
5524 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5525
5526         PR optimization/12215
5527         * cse.c (cse_set_around_loop): Emit the move at the beginning
5528         of the next basic block for trapping sets.
5529
5530 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5531
5532         PR optimization/11637
5533         * combine.c (adjust_for_new_dest): New function to adjust the
5534         notes and LOG_LINKS when the dest of an insn has changed.
5535         (try_combine): Use it when deleting the first insn of a two-insn
5536         parallel or splitting a two-load parallel.
5537
5538 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5539
5540         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5541         if TARGET_EXPLICIT_RELOCS.
5542
5543 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
5544
5545         PR bootstrap/12512
5546         * Makefile.in (info): Use double-colon rules.
5547         (dvi): Likewise.
5548         (generated-manpages): Likewise.
5549         * configure.in: Do not create lang.info, lang.dvi, or
5550         lang.generated-manpages hooks.
5551         * configure: Regenerated.
5552         * objc/Make-lang.in (objc.info): Remove.
5553         (objc.dvi): Remove.
5554         (objc.generated-manpages): Remove.
5555         * doc/sourcebuild.texi: Update description of info, dvi, and
5556         generated-manpages hooks.
5557
5558 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5559
5560         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5561
5562 2003-10-05  Andrew Pinski  <apinski@apple.com>
5563
5564         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5565         errors in memcpy destinations.
5566         (machopic_stub_name): Likewise.
5567
5568 2003-10-05  Andrew Pinski <apinski@apple.com>
5569
5570         * config/darwin.c (machopic_non_lazy_ptr_name):
5571         Change strcat to memcpy and add length together.
5572         (machopic_stub_name): Likewise.
5573
5574 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5575
5576         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5577         signal trampoline codes.
5578
5579 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
5580
5581         * config/mips/mips.md (*divsf3): Move description of
5582         SB-1 F2 erratum from here to...
5583         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
5584         flag_unsafe_math_optimizations is not.
5585
5586 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
5587
5588         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5589         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5590
5591 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5592
5593         * c-pretty-print.c: Fix comment typos.
5594         * c-pretty-print.h: Likewise.
5595         * calls.c: Likewise.
5596         * cfgloopmanip.c: Likewise.
5597         * cgraphunit.c: Likewise.
5598         * cppfiles.c: Likewise.
5599         * final.c: Likewise.
5600         * function.c: Likewise.
5601         * gcov-io.h: Likewise.
5602         * gcse.c: Likewise.
5603         * genoutput.c: Likewise.
5604         * loop.c: Likewise.
5605         * postreload.c: Likewise.
5606         * reg-stack.c: Likewise.
5607         * regmove.c: Likewise.
5608         * sched-int.h: Likewise.
5609         * sched-rgn.c: Likewise.
5610         * simplify-rtx.c: Likewise.
5611         * tree-inline.c: Likewise.
5612         * config/m68hc11/m68hc11.h: Likewise.
5613         * config/mmix/mmix.c: Likewise.
5614         * config/mn10300/mn10300.md: Likewise.
5615         * config/sh/sh.h: Likewise.
5616
5617 2003-10-05  Richard Henderson  <rth@redhat.com>
5618
5619         * tree-inline.c (remap_type): New.
5620         (remap_decl): Use it.  Remap DECL_SIZE*.
5621         (copy_body_r): Use it.
5622         (walk_tree): Walk TREE_TYPE too.
5623         (copy_tree_r): Don't walk subtrees of types.
5624         * tree.c (variably_modified_type_p): Restructure.  Consider integer
5625         types with non-const bounds variably modified.
5626
5627 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5628
5629         * doc/invoke.texi: Fix typos.
5630
5631 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5632
5633         * fold-const.c: Follow spelling conventions.
5634         * function.c: Likewise.
5635         * config/c4x/c4x.h: Likewise.
5636         * config/c4x/c4x.md: Likewise.
5637         * config/frv/frv.md: Likewise.
5638         * config/rs6000/aix.h: Likewise.
5639         * config/rs6000/linux64.h: Likewise.
5640         * config/xtensa/xtensa.c: Likewise.
5641
5642 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5643
5644         * c-pretty-print.c: Fix comment formatting.
5645         * cfglayout.c: Likewise.
5646         * cfgloopanal.c: Likewise.
5647         * cppcharset.c: Likewise.
5648         * dbxout.c: Likewise.
5649         * ggc-page.c: Likewise.
5650         * ggc.h: Likewise.
5651         * target.h: Likewise.
5652
5653 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
5654
5655         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5656
5657 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5658
5659         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5660         Convert to ISO C90 function declarations and definitions.
5661
5662 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
5663
5664         * libfuncs.h
5665         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5666         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5667         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5668         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5669         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5670         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5671         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5672         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5673         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5674         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5675         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5676         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5677         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5678         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5679         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5680         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5681         Delete.
5682         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5683         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5684         (le_optab, unord_optab): New.
5685
5686         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
5687         from the code_to_optab table, not a giant switch; use
5688         swap_condition; do widening only if a comparison function that
5689         we can call exists in a wider mode, not if a cmp_optab insn or
5690         libfunc exists in a wider mode; call protect_from_queue
5691         exactly once on each operand.
5692         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5693
5694         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5695         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5696         Set floating point comparison libfuncs using set_optab_libfunc
5697         on the appropriate optab.
5698
5699         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5700         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5701         selector conditionals.
5702
5703 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
5704
5705         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5706         identical to m68hc12 as far as libraries are concerned.
5707
5708 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5709
5710         PR c/12446
5711         * c-typeck.c (convert_for_assignment): Issue an error for
5712         array to pointer assignment after default conversion.
5713         (digest_init): Likewise.
5714
5715 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
5716
5717         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5718
5719 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
5720
5721         * doc/extend.texi (Function Attributes): Fix title of GNU C
5722         Preprocessor manual.
5723         (C++ Extensions): Fix reference to "Predefined Macros" in the
5724         GNU C Preprocessor manual.
5725
5726 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
5727
5728         * doc/extend.texi: Document how GCC estimates and relies on the size
5729         of an asm.
5730
5731 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
5732
5733         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5734         arguments downward for big-endian o64.
5735
5736 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
5737
5738         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5739         PCH generation, avoiding too-frequent flushes when writing to NFS
5740         file system.
5741
5742 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
5743
5744         * objc/objc-act.c (lookup_category): Mark as 'inline'.
5745
5746 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
5747             Ziemowit Laski  <zlaski@apple.com>
5748
5749         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5750         New functions.
5751         (lookup_method_in_hash_lists): New parameter indicating whether
5752         we are messaging 'Class' or 'id'.
5753         (check_duplicates): Likewise; do not assume all methods will
5754         be either class or instance methods.
5755         (generate_category, finish_class): Use lookup_category().
5756         (add_method): Use add_method_to_hash_list(); insert instance
5757         methods of root classes into the global class method hash table.
5758         (add_category): Use lookup_category(); avoid constructing
5759         duplicate categories.
5760         (really_start_method): Add method to corresponding @interface,
5761         if not already there (and if the @interface exists).
5762         (finish_message_expr, finish_objc): Adjust calls to
5763         check_duplicates().
5764
5765 2003-10-03  Roger Sayle  <roger@eyesopen.com>
5766
5767         PR optimization/9325, PR java/6391
5768         * fold-const.c (fold_convert): For floating point to integer
5769         conversions, return the maximum/minimum representable integer
5770         value if the real constant overflows the destination type.
5771         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5772         meaning don't truncate the result to a floating point mode.
5773         Simplify the logic by calling real_from_integer directly.
5774         * simplify-rtx.c (simplify_unary_operation):  Implement the
5775         same semantics for folding floating point to integer conversions
5776         in RTL.
5777
5778 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
5779
5780         * config/mips/mips.c (mips_emit_prefetch): Restructure
5781         to avoid use of arrays, handle indexed prefetch.
5782         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5783         (ISA_HAS_PREFETCHX): New deffine.
5784         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5785         update comments.
5786         (prefetch_indexed_di, prefetch_indexed_si): New insns.
5787
5788 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
5789             Roger Sayle  <roger@eyesopen.com>
5790
5791         PR optimization/12289
5792         * calls.c (emit_call_1): Pretend to have popped the arguments
5793         to noreturn and longjmp functions instead of ignoring them.
5794         (expand_call): Don't adjust stack_pointer_dela while
5795         inhibit_defer_pop is set.
5796
5797 2003-10-03  Andreas Schwab  <schwab@suse.de>
5798
5799         PR bootstrap/12276
5800         * configure.in: Check for libunwind on the host only if building
5801         a native compiler.
5802         * configure: Regenerated.
5803
5804 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
5805
5806         * unwind-pe.h (read_encoded_value_with_base): Constify u and
5807         its inizialization cast.
5808
5809 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
5810
5811         PR target/12485
5812         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5813
5814 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
5815
5816         PR optimization/12180
5817         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5818         functions containing calls to __builtin_next_arg.
5819
5820 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
5821
5822         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5823         in instructions being output.
5824         * config/mips/mips.md (prefetch_si_address): Change third
5825         operand's constraint letter to 'I'.
5826         (prefetch_di_address): Likewise.
5827         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5828
5829 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
5830
5831         * system.h: Poison macros obsoleted by earlier patch.
5832         * config/cris/cris.c: C90-ify a function definition.
5833
5834 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5835
5836         PR/12292
5837         * combine.c (make_field_assignment): Check whether rtx's code
5838         is CONST_INT before using INTVAL.
5839
5840 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5841
5842         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5843         htab_find_slot_with_hash.
5844         (cgraph_node_for_identifier): Use NO_INSERT.
5845         (cgraph_remove_node): Use NO_INSERT.
5846         (cgraph_varpool_node): Use INSERT.
5847         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5848
5849 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5850
5851         Waldek Hebisch <hebisch@math.uni.wroc.pl>
5852         PR/12072
5853         * varasm.c (compare_constant): Fix thinko.
5854
5855 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5856
5857         * config/frv/frv.c (frv_issue_rate): New function.
5858         (frv_pack_insns): Use it.
5859         (TARGET_SCHED_ISSUE_RATE): Define.
5860
5861 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5862
5863         * config/mcore/mcore.c: Convert to ISO C90 function declarations
5864         and definitions.
5865         * config/mcore/mcore.h: Likewise.
5866         * config/mcore/mcore-protos.h: Likewise.
5867
5868 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5869
5870         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5871         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5872
5873 2003-10-01  Per Bothner  <pbothner@apple.com>
5874
5875         * c-lex.c (src_line):   Remove unneeded static variable.
5876         (cb_line_change):  Set input_line directly, instead of src_line.
5877         (get_non_padding_token):  We no longer need to compensate for the
5878         "horrible things" the C++ front-end does with the current line number,
5879
5880         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
5881         callback even when popping the main file.
5882         * c-lex.c (fe_file_change):  Handle a NULL new_map.
5883         * fix-header.c (cb_file_change):  Likewise.
5884         * c-ppoutput.c (pp_file_change):  Likewise.
5885
5886         * cppinit.c (cpp_read_main_file):  Split into two functions:
5887         Distribute _cpp_stack_file call over the two functions.
5888         (cpp_find_main_file):  New function.
5889         Don't call _cpp_do_file_change even if working_directory flag set.
5890         (cpp_push_main_file):  New function.
5891         * cppfiles.c (_cpp_find_failed):  New helper function.
5892         (find_file):  Made non-static and renamed to _cpp_find_file.
5893         (_cpp_stack_file):  No longer needed.  But note the following.
5894         (stack_file):  Made non-static and renamed to _cpp_stack_file.
5895         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
5896         call with calls to cpp_find_main_file and cpp_push_main_file.
5897         (search_path_head):  If there is no current buffer, use main_file.
5898         * cpphash.h:  Update function declarations.
5899         * cpplib.h:  Update function declarations.
5900
5901         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
5902         (c_common_parse_file):  No longer need to call cpp_read_main_file
5903         when file_index > 0 (as in multi-file or server compiation).
5904         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
5905         as this now happens before cpp_push_main_file.
5906         (push_command_line_include):  When done with options, pass LC_LEAVE
5907         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5908         (fe_file_change):  Handle NULL new_map, and simplify.
5909         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
5910         08-28 change, since we're never called with a NULL buffer.
5911         (_cpp_lex_direct):  Likewise.
5912         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
5913         Return false if buffer is NULL at end.
5914
5915         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
5916         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5917         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
5918         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
5919         remove the unused return_at_eof parameter.
5920         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5921         Update callers of cpp_push_buffer.
5922
5923 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5924
5925         * target.h (init_libfuncs): New hook.
5926         * target-def.h: Default TARGET_INIT_BUILTINS and
5927         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
5928         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5929         * builtins.c (default_init_builtins): Delete.
5930         * expr.h (default_init_builtins): Delete prototype.
5931         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5932         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5933         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5934         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5935         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5936         and UMODDI3_LIBCALL,
5937
5938         * Makefile.in (optabs.o): Depends on target.h.
5939         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5940         * optabs.c: Include target.h.
5941         (prepare_float_lib_cmp): No need for #ifdef around use of
5942         FLOAT_LIB_COMPARE_RETURNS_BOOL.
5943         (set_optab_libfunc): New function.
5944         (init_optabs): Delete use of all *_LIBCALL defines.
5945         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5946         * optabs.h: Prototype set_optab_libfunc.
5947
5948         * config.gcc: Remove all references to pa/long_double.h,
5949         ia64/hpux_longdouble.h, and gofast.h.
5950         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5951         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5952
5953         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5954         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5955         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5956         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5957         * config/sparc/sparc.c, config/vax/vax.c:
5958         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
5959         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5960
5961         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5962         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5963         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5964         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5965         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5966         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5967         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5968         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5969         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5970
5971         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5972         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5973         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5974         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5975         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5976
5977         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5978         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5979         SUN_INTEGER_MULTIPLY_64 to 0.
5980         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5981         SUN_INTEGER_MULTIPLY_64 to 1.
5982         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5983         SUN_INTEGER_MULTIPLY_64 to 0.
5984         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5985         Define US_SOFTWARE_GOFAST.
5986         * config/vax/vax.h: Default TARGET_ELF to 0.
5987         * config/vax/elf.h: Redefine TARGET_ELF to 1.
5988
5989         * config/gofast.h: Don't define any macros here.  Provide one
5990         static function, gofast_maybe_init_libfuncs, which does what
5991         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5992         is already defined.  Do not clear negation libfuncs.  Do
5993         not mess with HFmode, XFmode, or TFmode libfuncs.
5994
5995         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5996
5997 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
5998
5999         PR C/12466
6000         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
6001
6002 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6003
6004         * config/mips/xm-iris5.h: Remove, unnecessary.
6005         * config.build (mips-sgi-irix5*): Remove.
6006         (mips-sgi-irix6*o32): Likewise.
6007         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
6008         (mips-sgi-irix5cross64): Likewise.
6009         (mips-sgi-irix5*): Likewise.
6010         * config.host (mips-sgi-irix5*): Remove.
6011         (mips-sgi-irix6*o32): Likewise.
6012
6013 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
6014
6015         * dbxout.c (dbxout_fptype_value): Delete.
6016         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
6017
6018 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
6019
6020         * output.h (compute_reloc_for_constant): Declare.
6021         * varasm.c (compute_reloc_for_constant): Extract from...
6022         (output_addressed_constants): ... here.  Adjust all callers.
6023
6024 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6025
6026         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
6027         * configure: Rebuilt.
6028
6029 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6030
6031         * fold-const.c (make_range): When handling unsigned, don't reverse
6032         range if high bound is zero.
6033
6034 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
6035
6036         * config/frv/frv.h (PREDICATE_CODES): Added
6037         condexec_si_media_operator, condexec_sf_add_operator and
6038         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
6039         and condexec_sf_unary_operator.
6040
6041 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6042
6043         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
6044         * configure: Rebuilt.
6045
6046 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6047
6048         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
6049         Allow override.
6050         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
6051
6052 2003-09-23  David S. Miller  <davem@redhat.com>
6053
6054         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
6055         before redefining.
6056         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
6057
6058 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
6059
6060         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
6061         C90 function declarations and definitions.
6062
6063 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6064
6065         * config.gcc (cris-*-linux*): Revert mistaken commit.
6066
6067 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
6068
6069         PR optimization/11753
6070         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
6071         the length in the non-V9 case.
6072
6073 2003-09-30  Richard Henderson  <rth@redhat.com>
6074
6075         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
6076         DWARF_ALT_FRAME_RETURN_COLUMN.
6077         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
6078         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
6079         (uw_frame_state_for): Return end-of-stack for null return address.
6080         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
6081
6082         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
6083         (alpha_expand_prologue): Store a zero for it.
6084         (alpha_expand_epilogue): Don't reload it.
6085         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
6086         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
6087         for the sigframe return address.
6088
6089 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
6090
6091         * sdbout.c: Convert to ISO C90 prototypes.
6092         * objc/objc-act.c: Likewise.
6093
6094 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
6095
6096         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
6097         * config/i386/winnt.c: Likewise.
6098         * config/i386/cygming.h: Likewise.
6099
6100 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
6101
6102         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6103         (A ^ B) - B for any B.
6104
6105 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
6106
6107         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
6108         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
6109
6110 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
6111
6112         * arm/ieee754-sf.S: Tidy formatting.
6113
6114 2003-09-30  Nicolas Pitre  <nico@cam.org>
6115
6116         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
6117         and ARM_MOD_BODY.
6118         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
6119         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
6120         added better divisor alignment in the other case.
6121         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
6122         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
6123         macros above, add fast exits for divisor >= dividend, etc.
6124
6125 2003-09-30  Nicolas Pitre  <nico@cam.org>
6126
6127         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
6128         L_fixdfsi target.
6129         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
6130
6131 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
6132
6133         * config.gcc: Default use_fixproto to 'no'.
6134
6135 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
6136
6137         PR optimization/12345
6138         * config/mips/mips-protos.h (mips_restore_gp): Remove.
6139         (mips_gp_save_slot): Declare.
6140         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
6141         (mips_gp_save_slot): ...this new function.
6142         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
6143         and mips_output_move to generate the output template.
6144         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
6145         a gp load after a noreturn call.  Load the gp using a move rather
6146         than an exception_receiver pattern.
6147         (call_value_internal, call_value_multiple_internal): Likewise.
6148         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
6149
6150 2003-09-30  Carlo Wood  <carlo@alinoe.com>
6151
6152         PR debug/12319
6153         * cfglayout.c (insn_scope):  Use prologue_locator and
6154         epilogue_locator; return the outer function scope for
6155         pro- and epilogue insns.
6156
6157 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
6158
6159         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
6160         REAL_TYPEs based on the bitsize of the type's mode, not the
6161         mode directly.
6162
6163 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6164
6165         * dwarf2out.c (default_eh_frame_section): Split into ...
6166         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
6167         functions.
6168         * output.h (named_section_eh_frame_section): Declare.
6169         (collect2_eh_frame_section): Likewise.
6170
6171 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
6172
6173         * real.c (real_sqrt): Use get_canonical_qnan directly.
6174
6175         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
6176
6177         * varasm.c (assemble_real): Use real_to_target directly,
6178         calculate the number of significant elements of the result
6179         array and write them out in a loop, instead of using a giant
6180         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
6181         macro.
6182
6183 2003-09-29  Jan Hubicka  <jh@suse.cz>
6184
6185         PR c++/12175
6186         * varasm.c (notice_global_symbol): Discard external symbols.
6187
6188         PR optimization/12286
6189         * gcov-io.c (gcov_read_words): Fix memmove call.
6190         * profile.c (compute_branch_probabilities): Add extra sanity checks.
6191
6192 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6193
6194         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
6195         Solaris 7-9.
6196
6197         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
6198         wildcards which explicitly match micro versions.
6199         * fixinc/fixincl.x: Regenerate.
6200
6201 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
6202
6203         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
6204         (A ^ B) - B, where B is any power of 2 minus 1.
6205
6206 2003-09-29  Jan Hubicka  <jh@suse.cz>
6207
6208         * libgcov.c (gcov_exit): Fix two pastos.
6209
6210 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
6211
6212         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
6213         define_split immediately below to form define_insn_and_split.
6214
6215 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
6216
6217         * config/h8300/h8300.md (*tstsi_variable_bit): New.
6218         (*tstsi_variable_bit_qi): Likewise.
6219
6220 2003-09-28  Phil Edwards  <phil@codesourcery.com>
6221
6222         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
6223         reference name.
6224
6225 2003-09-28  Richard Henderson  <rth@redhat.com>
6226
6227         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
6228         file and line separately.
6229
6230 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
6231
6232         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
6233         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
6234         "*subdi3_borrow_cconly"): New insns.
6235         ("*addsi3_sub", "*subsi3_sub"): Remove.
6236         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
6237         ("*subsi3_cc"): Fix op_type attribute.
6238
6239 2003-09-28  Richard Henderson  <rth@redhat.com>
6240
6241         * stmt.c (expand_asm_operands): Take a location_t, instead of
6242         individual file and line.
6243         * c-typeck.c (c_expand_asm_operands): Likewise.
6244         * tree.h (expand_asm_operands): Update decl.
6245         * c-common.h (c_expand_asm_operands): Likewise.
6246         * c-semantics (genrtl_asm_stmt): Update call.
6247
6248 2003-09-28  Philip Blundell  <philb@gnu.org>
6249
6250         * config/arm/arm.c (legitimize_pic_address): Check
6251         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6252         (arm_assemble_integer): Likewise.
6253
6254 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
6255
6256         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6257         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6258         config/c4x/c4x.h:
6259         Convert to ISO C90 function declarations and definitions.
6260
6261 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
6262
6263         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6264         Convert to ISO C90 function declarations and definitions.
6265
6266 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
6267
6268         * config/mips/mips.c (mips_constant_info): Add reloc field.
6269         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
6270         underlying symbol, not to an unspec.
6271         (mips_delegitimize_address, print_operand): Clean up accordingly.
6272
6273 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
6274
6275         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6276         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6277         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6278         (mips_classify_constant): Use it.
6279         (mips_splittable_symbol_p): Add an offset argument.
6280         (mips_classify_address): Adjust call accordingly.
6281         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6282         than a relocation unspec.  Update call to mips_splittable_symbol_p.
6283         Generalize the code that copes with symbols + invalid offsets.
6284         (print_operand): Allow '%R' to be applied to small data addresses.
6285         (mips_reloc_string): Remove RELOC_GPREL16.
6286         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
6287         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
6288         relocation operators.
6289         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
6290         constants accordingly.
6291
6292 2003-09-27  Roger Sayle  <roger@eyesopen.com>
6293
6294         * toplev.c (flag_evaluation_order): New global variable.
6295         * flags.h (flag_evaluation_order): Prototype here.
6296         * expr.c (expand_operands): If we need to preserve observable
6297         evaluation order, protect exp1 from clobbering exp0's result.
6298
6299 2003-09-28  Andreas Jaeger  <aj@suse.de>
6300
6301         * c-decl.c (finish_function): Convert definition to ISO C90.
6302         * ifcvt.c (mark_loop_exit_edges): Likewise.
6303         * ra-rewrite.c (emit_colors): Likewise.
6304
6305 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
6306
6307         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6308         * config.gcc (arm*-*-uclinux*): Disable fixproto.
6309         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6310         powerpc-*-eabialtivec*): Disable fixproto.
6311
6312 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
6313
6314         PR optimization/12340
6315         * loop.h (struct induction): Document the new semantics
6316         of the 'same' field for bivs.
6317         * unroll.c (biv_total_increment): Don't count the same
6318         biv increment several times.
6319         (loop_iterations) [GENERAL_INDUCT]: Likewise.
6320
6321 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
6322
6323         * unroll.c (loop_interations)[GT]: Add missing break.
6324
6325 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
6326
6327         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6328         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6329         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6330         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6331         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6332         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6333         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6334         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6335         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6336         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6337         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6338         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6339         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6340         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6341         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6342         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6343         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6344         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6345         config/alpha/xm-vms.h, config/arc/arc-modes.def,
6346         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6347         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6348         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6349         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6350         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6351         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6352         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6353         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6354         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6355         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6356         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6357         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6358         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6359         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6360         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6361         config/i960/i960-c.c, config/i960/i960-coff.h,
6362         config/i960/i960-modes.def, config/i960/i960-protos.h,
6363         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6364         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6365         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6366         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6367         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6368         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6369         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6370         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6371         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6372         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6373         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6374         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6375         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6376         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6377         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6378         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6379         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6380         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6381         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6382         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6383         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6384         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6385         config/mips/vr.h, config/mn10300/linux.h,
6386         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6387         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6388         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6389         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6390         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6391         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6392         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6393         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6394         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6395         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6396         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6397         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6398         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6399         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6400         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6401         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6402         fixinc/fixinc.svr4: GNU CC -> GCC.
6403
6404 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
6405
6406         * objc/objc-act.c (tm_p.h): Tweak order.
6407         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6408
6409 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6410
6411         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6412         Include t-slibgcc-elf-ver and t-linux in tmake_file.
6413         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6414         Disable fixproto.
6415         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6416         Disable fixproto.
6417         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6418         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6419
6420         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6421
6422 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
6423
6424         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6425         * objc/objc-act.c (tm_p.h): Include.
6426
6427 2003-09-26  Per Bothner  <pbothner@apple.com>
6428
6429         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
6430         No longer any need to reverse by recursion.
6431
6432 2003-09-26  Roger Sayle  <roger@eyesopen.com>
6433             Richard Henderson  <rth@redhat.com>
6434
6435         PR optimization/11741
6436         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6437         appropriate set to match that in hash_scan_insn.  Fall back to
6438         the original copy method, if we can't validate changing insn.
6439         (pre_delete): Only delete instructions that have a single_set,
6440         instead of aborting when we encounter an PARALLEL insn with more
6441         then one SET.
6442
6443 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6444
6445         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6446         ("builtin_longjmp"): Insn deleted.
6447         ("save_stack_nonlocal"): Save literal pool base pointer behind
6448         backchain and stack pointer.
6449         ("restore_stack_nonlocal"): Restore literal pool base pointer.
6450         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6451         the stack save area for the nonlocal goto case.
6452
6453 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6454
6455         PR bootstrap/12358
6456         * pa.c (output_bvb): Fix typo.
6457
6458 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6459
6460         * expmed.c (store_bit_field): Don't search for an integer mode
6461         unless we need the result.
6462
6463 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6464
6465         * expr.c (emit_move_insn_1): If there is no move pattern for the
6466         original mode, try using a pattern for the corresponding integer mode.
6467
6468 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6469
6470         PR middle-end/9200
6471         * combine.c (if_then_else_cond): Tighten mode check.
6472
6473 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6474
6475         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6476         'struct _cpp_strbuf'.
6477
6478         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6479         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6480         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6481         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6482         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6483         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6484         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6485         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6486         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6487         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6488         * config/i386/i386-aout.h, config/i386/i386-coff.h,
6489         config/i386/i386-interix.h, config/i386/i386-interix3.h,
6490         config/i386/i386-modes.def, config/i386/i386-protos.h,
6491         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6492         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6493         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6494         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6495         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6496         "GNU compiler" -> GCC.
6497         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6498         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6499         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6500         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6501         config/i386/freebsd-aout.h, config/i386/freebsd.h,
6502         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6503
6504 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
6505
6506         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
6507         "local" to the callgraph dump.  Output "after inlining" earlier.
6508         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6509         callgraph dumps.  Correct misspellings.
6510         (cgraph_decide_inlining):  Output number of insns before inlining.
6511         Output the calling function into which a function is inlined.
6512         (cgraph_decide_small_functions): Format dump file like always_inline.
6513
6514 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
6515
6516         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6517
6518 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6519
6520         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6521         FPR slots in the save area.
6522         (s390_emit_epilogue): Likewise.
6523
6524 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6525
6526         * cgraph.h (cgraph_remove_edge): Declare.
6527         * cgraph.c (cgraph_remove_edge): Make extern.
6528         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6529         instead of cgraph_remove_call.
6530
6531 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6532
6533         * objc/objc-act.c (gen_declaration_1): Fix printf format.
6534
6535 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
6536
6537         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6538         arm7tdmi core.
6539
6540 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6541
6542         * config/darwin-protos.h (objc_image_info_section):
6543         New prototype.
6544
6545 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6546
6547         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6548
6549 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6550
6551         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
6552         tsc701 as a --with-cpu, --with-tune setting for sparc.
6553
6554 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6555
6556         * c-parse.in (objc_try_stmt): Do not specify a %type.
6557
6558 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6559
6560         * config.gcc: New 'widely ported system' clause for rtems.
6561         Set thread file there, not in individual clauses.
6562
6563 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6564
6565         PR target/6222
6566         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6567         passed on the stack.
6568
6569 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6570
6571         * config.gcc (widely ported systems section): Mostly alphabetize
6572         by system.  Comment the case where we can't.
6573         * config.gcc (widely ported systems section): Reindent and clean up.
6574
6575         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6576         Actually allow ep9312 as an arm --with-arch setting.
6577
6578         * config.gcc (*-hpux11): Disable fixproto.
6579
6580 2003-09-24  Phil Edwards  <phil@codesourcery.com>
6581
6582         PR pch/12112
6583         * gcc/cppfiles.c (pch_open_file): Return based on combined
6584         result of all files.
6585         (validate_pch): Return validate flag for current file.
6586
6587 2003-09-24  Roger Sayle  <roger@eyesopen.com>
6588
6589         PR bootstrap/12358
6590         * fold-const.c (tree_swap_operands_p): Only reorder operands when
6591         one of the operands is constant.
6592
6593 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
6594
6595         MERGE OF objc-improvements-branch into MAINLINE:
6596         * Makefile.in (C_OBJS): Add in stub-objc.o.
6597         (c-parse.y): Change sed demarcations to begin with '@@'.
6598         (stub-objc.o): New rule.
6599         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6600         flag_replace_objc_classes): New flags.
6601         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6602         RID_AT_SYNCHRONIZED): New keywords.
6603         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6604         flag_replace_objc_classes): New flags.
6605         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6606         objc_comptypes, objc_message_selector, lookup_objc_ivar,
6607         get_current_scope, objc_mark_locals_volatile): New prototypes,
6608         some moved from c-tree.h.
6609         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6610         (finish_decl): Adjust where objc_check_decl() gets called.
6611         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
6612         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6613         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
6614         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6615         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6616         '@@end_ifc', respectively.
6617         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6618         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6619         objc_finally_block): New rules.
6620         (component_decl_list2): Clean up semantic action for @defs construct.
6621         (component_decl, c99_block_start): Remove call to add_objc_decls().
6622         (poplevel): Add call to objc_clear_super_receiver().
6623         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6624         constructs.
6625         (classdef, methodprotolist): Clean up/simplify.
6626         (methodprotolist2): Eliminate.
6627         (methodproto): Call add_method() instead of add_class_method() and
6628         add_instance_method().
6629         (receiver): Add TYPENAME production.
6630         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6631         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6632         AT_SYNCHRONIZED.
6633         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6634         objc_comptypes, objc_message_selector)
6635         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6636         struct and pointer types.
6637         (build_c_cast): Do not discard ObjC protocol qualifiers.
6638         (convert_for_assignment): Cache result of comp_target_types() instead
6639         of calling it more than once.
6640         * c.opt (fnext-runtime): Update description string.
6641         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6642         New ObjC/ObjC++-specific flags.
6643         * function.h (GCC_FUNCTION_H): Header guard.
6644         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6645         * stub-objc.c: New file, to be used to satisfy references to ObjC
6646         functions by the C and C++ front-ends.
6647         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6648         * config/darwin.h (FUNCTION): Add in_objc_image_info.
6649         (SECTION_FUNCTION): Add objc_image_info_section.
6650         * doc/invoke.texi: Link to GCC web site for Objective-C information.
6651         (-fconstant-string-class): Update documentation.
6652         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6653         -fzero-link): New documentation.
6654         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6655         with '@@'.
6656         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6657         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6658         throughout; provide casts for return values from memory allocation
6659         functions (xmalloc, alloca, ggc_alloc, etc.).
6660         (OBJC_VOID_AT_END): New macro.
6661         (rtl.h): Do not #include any more.
6662         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6663         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6664         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6665         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6666         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6667         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
6668         val_stack_pop): New.
6669         (objc_check_decl): Fix precondition for error message, along with
6670         the message itself.
6671         (lookup_and_install_protocols): Remove nonexistent protocols from
6672         protocol list instead of returning error_mark_node.
6673         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6674         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6675         (synth_module_prologue): General clean-up; construct NeXT-specific
6676         runtime API prototypes if needed.
6677         (build_string_class_template): Remove.
6678         (check_string_class_template, string_layout_checked): New.
6679         (build_objc_string_object): Generalize to work with
6680         -fconstant-string-class.
6681         (build_objc_symtab_template): Fix layout for the NeXT runtime.
6682         (build_metadata_decl): New.
6683         (forward_declare_categories): Call build_metadata_decl() instead of
6684         create_builtin_decl() et al.
6685         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6686         void_list_node_1.
6687         (build_selector_reference_decl, build_class_reference_decl,
6688         build_objc_string_decl): Do not set TREE_READONLY.
6689         (get_proto_encoding): Do not call hack_method_prototype().
6690         (get_class_reference): Add failure mode for invalid class names;
6691         support -fzero-link; defer if in an ObjC++ template declaration.
6692         (objc_declare_alias, objc_declare_class): Fix up duplicate name
6693         lookup; check for global scope if in ObjC++.
6694         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6695         RECORD_TYPE, IDENTIFIER_NODE, etc.)
6696         (objc_is_id): Removed.
6697         (objc_is_object_ptr): New function.
6698         (get_class_ivars_from_name): New function, used for @defs construct.
6699         (get_class_ivars): Add option to return raw ivars; create a
6700         ClASS_OWN_IVARS list for each class as needed.
6701         (objc_enter_block, objc_exit_block, objc_declare_variable,
6702         objc_build_throw_stmt, val_stack_push, val_stack_pop,
6703         objc_build_try_enter_fragment, objc_build_extract_expr,
6704         objc_build_try_exit_fragment, objc_build_extract_fragment,
6705         objc_build_try_prologue, objc_build_try_epilogue,
6706         objc_build_catch_stmt, objc_build_catch_epilogue,
6707         objc_build_finally_prologue, objc_build_finally_epilogue,
6708         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6709         objc_build_synchronized_epilogue, build_objc_exception_stuff):
6710         New functions.
6711         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6712         the future).
6713         (build_private_template): Fix up calls to get_class_ivars().
6714         (offset_is_register, forwarding_offset): Remove.
6715         (objc_method_parm_type, objc_encoded_type_size): New functions.
6716         (encode_method_prototype): Simplify to no longer depend on
6717         back-end information.
6718         (build_tmp_function_decl_xxx, build_tmp_function_decl,
6719         hack_method_prototype): Removed.
6720         (generate_protocol_references): Remove calls to
6721         build_tmp_function_decl().
6722         (generate_protocols): Adjust calls to encode_method_prototype().
6723         (build_class_template): Generate sel_id' and 'gc_object_type' fields
6724         for the NeXT runtime.
6725         (synth_forward_declarations): Call build_metadata_decl().
6726         (check_ivars): Check that the number of ivars matches also.
6727         (build_super_template): Modify super_type directly; disable debugging
6728         output while generating decl.
6729         (build_ivar_list_initializer): Skip list elements that are not
6730         FIELD_DECLs.
6731         (ivar_list_length): New function.
6732         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6733         and encode_method_prototype() instead of encode_method_def().
6734         (build_shared_structure_initializer): Generate 'sel_id' field for
6735         the NeXT runtime.
6736         (generate_category): Do not set TREE_USED.
6737         (build_keyword_selector): Ditto; transform into a function argument
6738         chain.
6739         (get_arg_type_list): If there are no user-specified arguments, use
6740         '...'; use OBJC_VOID_AT_END.
6741         (check_duplicates): Add a parameter indicating whether methods or
6742         selectors are being checked.
6743         (receiver_is_class_object): Add parameters indicating whether
6744         receiver is 'self' or 'super'; robustify.
6745         (build_message_expr): Defer call to finish_message_expr() if
6746         inside an ObjC++ template.
6747         (lookup_method_in_hash_lists): New function.
6748         (finish_message_expr): Complete rewrite/fix.
6749         (build_objc_method_call): Ditto; factor out commonalities between
6750         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6751         messenger variants on the NeXT.
6752         (lookup_instance_method_static, lookup_class_method_static):
6753         Fold into a single lookup_method_static() function with an
6754         additional parameter.
6755         (add_class_method, add_instance_method): Fold into a single
6756         add_method() function with an additional parameter.
6757         (add_category): Make duplicate categories a hard error in ObjC++.
6758         (add_instance_variable): Properly handle unnamed ivars, arrays of
6759         zero or no size and bitfields.  In ObjC++, check for nontrivial
6760         C++ class instances.
6761         (is_public): Allow C functions to access non-@public ivars, with
6762         a warning.
6763         (start_class): Move common initializations to
6764         synth_module_prologue(); check for global scope if in ObjC++.
6765         (continue_class): Fix calls to finish_struct().
6766         (objc_declare_protocols, start_protocol): Check for global scope
6767         if in ObjC++.
6768         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6769         (encode_aggregate_within): Rewrite to properly distinguish
6770         struct tags from typedefs in both ObjC and ObjC++.
6771         (encode_bitfield, encode_complete_bitfield): Remove.
6772         (encode_next_bitfield, encode_gnu_bitfield): New functions.
6773         (encode_field_decl): Call encode_next_bitfield() or
6774         encode_gnu_bitfield() as needed.
6775         (synth_self_and_ucmd_args): New function.
6776         (start_method_def): Use it.
6777         (objc_types_are_equivalent): New function.
6778         (comp_proto_with_proto): Use it instead of comptypes(), since
6779         we need symmetry.
6780         (really_start_method): Use lookup_method_static() instead of
6781         lookup_class_method_static() and lookup_instance_method_static();
6782         Emit 'extern "C"' if in ObjC++ mode.
6783         (add_objc_decls): Removed.
6784         (UOBJC_SUPER_scope): New variable.
6785         (get_super_receiver): Move construction of 'super' from
6786         add_objc_decls(); remove dependency on struct objc_class.
6787         (encode_method_def): Removed; encode_method_prototype() is
6788         used instead.
6789         (objc_clear_super_receiver): New function.
6790         (objc_expand_function_end): Do not do anything for ordinary
6791         C functions.
6792         (finish_method_def): Mark ObjC methods as un-inlinable.
6793         (gen_declaration_1): Emit widths of bitfields.
6794         (finish_objc): Call generate_objc_image_info() if needed;
6795         use check_duplicates() when checking for selector duplicates.
6796         (generate_objc_image_info): New function.
6797         * objc/objc-act.h (add_instance_method, add_class_method,
6798         get_class_ivars): Remove prototypes.
6799         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6800         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6801         objc_build_catch_stmt, objc_build_catch_epilogue,
6802         objc_build_finally_prologue, objc_build_finally_epilogue,
6803         add_method, get_class_ivars_from_name): New prototypes.
6804         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6805         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6806         TRANSLATION_UNIT_DECLs.
6807         (OBJC_TYPE_NAME): New.
6808         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6809         got included.
6810         (IS_SUPER): Robustify.
6811         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6812         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6813         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6814         objc_exception_match_decl, objc_exception_throw_decl,
6815         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6816         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6817         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6818         objc_catch_type): New ObjC/ObjC++ roots.
6819         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6820         ObjC/ObjC++ tree node codes.
6821
6822 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
6823
6824         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6825         code path that calls a handler.
6826
6827 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6828
6829         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6830         Disable fixproto.
6831
6832         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6833         the section giving $with_cpu defaults by target.
6834
6835         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6836         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6837         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6838         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6839         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6840         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6841
6842 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
6843
6844         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6845         together.  Protect load string instruction with TARGET_STRING.
6846         (movti_string): Collapse case 1 and 2 together.
6847
6848 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
6849
6850         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6851
6852 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
6853
6854         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6855         do...while(0)
6856
6857 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6858
6859         * config.gcc: Move use_fixproto=no from generic vxworks clause to
6860         specific one.
6861
6862         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6863         (accidentally missed in last pass).
6864
6865 2003-09-23  Andrew Pinski  <apinski@apple.com>
6866
6867         PR bootstrap/12383
6868         * configure: Regenerate.
6869
6870 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6871
6872         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6873         missed in last pass).
6874
6875 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
6876
6877         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6878         constant.
6879
6880 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6881
6882         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6883
6884         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6885         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6886         powerpcle-*-eabi*): Disable fixproto.
6887
6888         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6889         specific FreeBSD clauses.
6890         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6891         specific NetBSD clauses.
6892         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6893         to specific OpenBSD clauses.
6894
6895 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6896
6897         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6898         without adding a frame note.
6899         * pa.md (allocate_stack): Save pic register in new frame marker when
6900         generating pic code.
6901
6902 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
6903
6904         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6905         cgraph_expand_functions.
6906
6907 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6908
6909         * Makefile.in (gnucompare*): Merge into ...
6910         (slowcompare*): ... here.
6911         (fastcompare*): New targets.
6912         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6913         other "fast" cmp programs.
6914         * configure: Regenerate.
6915
6916 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6917
6918         * targhooks.c: Include output.h.
6919         * Makefile.in (targhooks.o): Add output.h to dependency list.
6920
6921 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6922
6923         * config.host: Removed superfluous newline.
6924
6925 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6926
6927         * config.gcc: Use ${target}, not $machine.
6928         * configure.in: Don't set $machine.
6929         * configure: Regenerate.
6930
6931 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
6932
6933         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6934
6935         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6936         pass zero-size arrays by reference.
6937         (rs6000_va_arg): Likewise.
6938
6939 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6940
6941         * config.gcc: Set use_fixproto=no in each specific *-gnu*
6942         configuration, rather than the generic one.
6943
6944 2003-09-23  Richard Henderson  <rth@redhat.com>
6945
6946         * tree-inline.c (remap_save_expr): Map new save_expr to identity
6947         rather than to error_mark_node.
6948
6949 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6950
6951         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6952         Update description.
6953         * configure: Regenerate.
6954         * config.in: Likewise.
6955         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6956         HAVE_GAS_SHF_MERGE value.
6957         * varasm.c (mergeable_string_section): Likewise.
6958         (mergeable_constant_section): Likewise.
6959
6960 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6961
6962         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6963         value.
6964
6965 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6966
6967         * target.h (struct gcc_target): New member external_libcall.
6968         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6969         (TARGET_ASM_OUT): Use it.
6970         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6971         * targhooks.c: Convert to ISO C 90.
6972         (default_external_libcall): New function.
6973         * targhooks.h (default_external_libcall): Declare.
6974         * varasm.c (assemble_external_libcall): Use
6975         targetm.asm_out.external_libcall instead of
6976         ASM_OUTPUT_EXTERNAL_LIBCALL.
6977         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6978         (mips_output_external_libcall): Declare.
6979         * config/mips/mips.c (mips_output_external_libcall): Change
6980         definition guard.
6981         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6982         Only operate for O32 ABI.
6983         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6984         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6985         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6986         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6987
6988 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
6989
6990         * config.gcc: Do per-target disabling of fixproto here in clauses,
6991         not in t- fragments.
6992         * configure.in: Adjust to set STMP_FIXPROTO correctly.
6993         * configure: Regenerate.
6994         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6995         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6996         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6997         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6998         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6999         t-interix, t-linux-aout:  Delete files consisting only of
7000         setting of STMP_FIXPROTO.
7001
7002         * config.host: Allow unknown hosts (not targets).  Allow
7003         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
7004         empty clauses.  Remove useless obsolete-configuration clause.
7005         Prune unsupported configuration list.  Collapse identical
7006         clauses for closely related systems.  Rewrite comment for
7007         unsupported hosts list.  Reorganize a little.
7008
7009 2003-09-22  Richard Henderson  <rth@redhat.com>
7010
7011         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
7012         not precision.
7013
7014 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
7015             Hartmut Penner  <hpenner@de.ibm.com>
7016             Segher Boessenkool  <boessen@de.ibm.com>
7017
7018         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
7019         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
7020         (rs6000_split_altivec_in_gprs): Rename to ...
7021         (rs6000_split_multireg_move): Add support for update addressing.
7022         * config/rs6000/rs6000-protos.h: Same.
7023         * config/rs6000/altivec.md: Same.
7024         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
7025         multiple GPRs.
7026         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
7027         (movti_power): Use new splitter for multiple GPRs.
7028         (movti_string): Same.
7029         (movti_ppc64): Same.
7030
7031 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
7032
7033         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
7034         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
7035
7036 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
7037
7038         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
7039         (andsi3): Set attr cc to set_zn when using shifts or adds.
7040
7041 2003-09-22  Bernardo Innocenti <bernie@develer.com>
7042
7043         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
7044
7045 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
7046
7047         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
7048         Resurrect -mrtd option.
7049
7050 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
7051
7052         PR target/12281
7053         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
7054         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
7055
7056 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
7057
7058         PR target/9786
7059         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
7060         after potential deletion of trapping insn. Avoids later ICE
7061         from call to fixup_abnormal_edges.
7062         (convert_regs_2): Stack the current block successors before
7063         processing this block, that is, before the potential deletion of
7064         dead edges by convert_regs_1, because these edges have been used
7065         to initialize the predecessors count.
7066
7067 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
7068
7069         * real.c: Fix several nits in the head comment.
7070
7071 2003-09-21  Richard Henderson  <rth@redhat.com>
7072
7073         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7074         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7075         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7076         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7077         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
7078
7079 2003-09-21  Richard Henderson  <rth@redhat.com>
7080
7081         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
7082         (TREE_FILENAME, TREE_LINENO): Likewise.
7083         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
7084         (TREE_LOCUS_SET_P): New.
7085         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
7086         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
7087         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
7088         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
7089         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
7090
7091 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
7092
7093         * config/vax/vax-protos.h: Convert to ISO C90.
7094         * config/vax/vax.c: Convert to ISO C90.
7095
7096 2003-09-21  Graham Stott  <grahams@btinternet.com>
7097
7098        PR target/12353
7099        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
7100
7101 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
7102
7103         PR target/12301
7104         * reorg.c (stop_search_p): Return 1 for insns that can
7105         throw internally.
7106
7107 2003-09-20  Richard Henderson  <rth@redhat.com>
7108
7109         * c-format.c (gcc_diag_char_table): Add %J.
7110         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
7111         (check_format_types): Fix wanted_type name lookup.
7112         (init_dynamic_diag_info): Setup %J.
7113         * diagnostic.c (text_specifies_location): Implement %J.
7114         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
7115         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
7116         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
7117         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
7118         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
7119
7120         * tree-inline.c: Include intl.h
7121         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
7122         * Makefile.in (tree-inline.o): Update.
7123
7124 2003-09-20  Roger Sayle  <roger@eyesopen.com>
7125
7126         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
7127         transformation of a>=0 into (unsigned)a<0x80000000.
7128
7129 2003-09-20  Andrew Pinski <apinski@apple.com>
7130
7131         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
7132
7133 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
7134
7135         * Makefile.in: Don't set (unused) DLLTOOL.
7136
7137         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
7138         Remove obsolete references to ENQUIRE.
7139
7140 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
7141
7142         * configure.in: Remove --with-elf, which doesn't work.
7143         * configure: Regenerate.
7144         * config.gcc: Remove references to $elf, which does nothing.
7145
7146         * config/i386/xm-vsta.h: Remove xm-file believed useless.
7147         * config.build (i386-vsta): Remove reference to it.
7148         * config.host (i386-vsta): Remove reference to it.
7149
7150 2003-09-19  Phil Edwards  <phil@codesourcery.com>
7151
7152         * doc/install.texi:  Document the multiple testsuite options.
7153
7154 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
7155
7156         * doc/install.texi (Specific): Add the specific versions of GCC
7157         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
7158         version 3 and older was discontinued.
7159
7160 2003-09-19      Joel Sherrill <joel@oarcorp.com>
7161
7162         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
7163         68881.
7164
7165 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
7166
7167         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
7168         for -m68030, -m68020-60 and -m68020-40.
7169         * config/m68k/m68k.h (TARGET_68030): New target flag.
7170         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
7171         TARGET_REGPARM): Remove.
7172         * config/m68k/m68k.h: Regroup and renumber target flags.
7173         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
7174         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
7175         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
7176         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
7177         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
7178
7179 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7180
7181         * config/m68k/t-rtems (m68k-*-rtems*): New.
7182         * config.gcc: Use config/m68k/t-rtems.
7183
7184 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
7185
7186         * config/mips/t-rtems: New.
7187         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
7188
7189 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
7190
7191         * cgraph.c: Fix typo in debugging output.
7192
7193 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
7194             Eric Botcazou <ebotcazou@libertysurf.fr>
7195
7196         PR target/12166
7197         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
7198
7199 2003-09-18  Mike Stump  <mrs@apple.com>
7200
7201         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
7202         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
7203         cb_ident, cb_def_pragma):  Use fileline typedef.
7204         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
7205
7206 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
7207
7208         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
7209         total parm size if a parm has incomplete type.
7210         (gen_fastcall_suffix): Likewise.
7211
7212 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7213
7214         * except.c (output_function_exception_table): Adjust last change
7215         to handle TYPE of INTEGER_CST.
7216
7217 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
7218
7219         PR target/11184
7220         * builtins.c (expand_builtin_apply): Use convert_memory_address
7221         before returning the value.
7222
7223         * alias.c (find_base_value): Simplify use of
7224         convert_memory_address.
7225         (find_base_term): Likewise.
7226         * builtins.c (expand_builtin_stejmp_setup): Likewise.
7227         (expand_builtin_longjmp): Likewise.
7228         (expand_builtin_prefetch): Likewise.
7229         (get_memory_rtx): Likewise.
7230         (expand_builtin_return): Likewise.
7231         (expand_builtin_memcpy): Likewise.
7232         (expand_builtin_strncpy): Likewise.
7233         (expand_builtin_memset): Likewise.
7234         (expand_builtin_va_arg): Likewise.
7235         (expand_builtin_va_copy): Likewise.
7236         (expand_builtin_alloca): Likewise.
7237         * calls.c (expand_call): Likewise.
7238         * except.c (expand_builtin_extract_return_addr): Likewise.
7239         (expand_builtin_eh_return): Likewise.
7240         * explow.c (convert_memory_address): Define even when
7241         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
7242         is already in the right mode.
7243         * explow.c (memory_address): Simplify use of convert_memory_address.
7244         (probe_stack_range): Likewise.
7245         * expmed.c (make_tree): Likewise.
7246         * expr.c (emit_block_move_in_libcall): Likewise.
7247         (expand_assignment): Likewise.
7248         (expand_expr): Likewise.
7249         * function.c (assign_parms): Likewise.
7250         (expand_function_end): Likewise.
7251         * integrate.c (copy_rtx_and_substitute): Likewise.
7252         * stmt.c (expand_computed_goto): Likewise.
7253
7254 2003-09-18  Roger Sayle  <roger@eyesopen.com>
7255
7256         * simplify-rtx.c (simplify_unary_operation): Only transform
7257         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7258         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
7259
7260 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7261
7262         PR target/11674
7263         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7264
7265 2003-09-18  Roger Sayle  <roger@eyesopen.com>
7266
7267         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7268         PARITY_EXPR): Delete unused tree codes.
7269         * c-common.c (c_common_truthvalue_conversion): Delete references
7270         to FFS_EXPR and POPCOUNT_EXPR.
7271         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7272         (pp_c_expression): Likewise.
7273         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7274         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7275         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7276         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
7277         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7278         and long long variants.
7279
7280 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7281
7282         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7283         * c-pretty-print.c: Fix formatting.
7284         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
7285         (pp_c_type_specifier): Tidy.
7286         (pp_c_compound_literal): New function.
7287         (pp_c_initializer): Simplify..
7288         (pp_c_initializer_list): Likewise.
7289         (pp_c_brace_enclosed_initializer_list): New function.
7290         (pp_c_postfix_expression): Simplify.
7291
7292 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
7293
7294         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7295         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7296
7297 2003-09-17  Richard Henderson  <rth@redhat.com>
7298
7299         * tree-optimize.c (tree_rest_of_compilation): Save and restore
7300         input_location.
7301
7302 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7303
7304         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7305
7306 2003-09-17  Richard Henderson  <rth@redhat.com>
7307
7308         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7309
7310 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7311
7312         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7313         * configure: Regenerate.
7314
7315 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
7316
7317         PR debug/12066
7318         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7319         * langhooks-def.h (lhd_return_null_tree_v): New function.
7320         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7321         (LANG_HOOKS_DECLS): Add it to the intializer.
7322         * langhooks.c (lhd_return_null_tree_v): New function.
7323         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7324
7325 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7326
7327         * configure.in: Quote gcc_config_arguments for configargs.h.
7328         * configure: Regenerated.
7329         * gccbug.in: Don't shell-expand gcc_config_arguments.
7330
7331 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7332
7333         PR c++/11357
7334         * c-pretty-print.c (pp_c_floating_constant): Append
7335         type-annotation to floating constants.
7336
7337 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7338
7339         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7340         Define _ABIO32.
7341         Use it for _MIPS_SIM.
7342         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7343
7344         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7345         Moved ...
7346         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7347         updating comment.
7348         Fixes PR target/10190.
7349
7350 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7351
7352         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7353         to shared libraries.
7354
7355 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7356
7357         PR optimization/11646
7358         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7359         EDGE_ABNORMAL flag for EH edges.
7360         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7361         if dead edges were purged.
7362
7363 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
7364
7365         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7366         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7367         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7368         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7369
7370 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
7371
7372         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7373         returned by tablejump_p.
7374
7375 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
7376
7377         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7378
7379 2003-09-16  Roger Sayle  <roger@eyesopen.com>
7380
7381         PR bootstrap/12269
7382         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7383         argument to be VOIDmode, taking the mode of the comparison from
7384         the operands.  Only call simplify_relational_operation if we
7385         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
7386         if comparison has a floating point result.  Ensure that the
7387         result is always of the specified mode.
7388         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7389         (simplify_unary_operation): Ensure the correct mode and cmp_mode
7390         are always passed to simplify_gen_relational.  Simplify NOT of
7391         comparison operator in any mode, not just BImode.
7392         (simplify_ternary_operation): Correct tests on the return value
7393         of simplify_relational_operation to use const_true_rtx, not
7394         const1_rtx.  Abort if it ever returns a non-constant result.
7395
7396         * cfgloopanal.c (count_strange_loop_iterations): Use the function
7397         simplify_relational_operation, not simplify_gen_relational, if
7398         we're only interested in constant comparisons and will ignore
7399         non-constant results.
7400
7401 2003-09-16  Roger Sayle  <roger@eyesopen.com>
7402
7403         * fold-const.c (tree_swap_operands_p): New function to determine
7404         the prefered ordering of operands.
7405         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
7406         operands to commutative, comparison or ternary operators.  Replace
7407         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
7408         transformation of A ? B : C into !A ? C : B.
7409
7410 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
7411
7412         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7413         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7414         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7415         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7416         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7417         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7418         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7419         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7420
7421 2003-09-16  Jason Merrill  <jason@redhat.com>
7422             Jakub Jelinek  <jakub@redhat.com>
7423
7424         * c-common.c (handle_warn_unused_result_attribute): New function.
7425         (c_common_attribute_table): Add warn_unused_result.
7426         (c_expand_expr): Issue warning when result of inlined function
7427         with warn_unused_result attribute is ignored.
7428         * calls.c (expand_call): Issue warning when result of function
7429         with warn_unused_result attribute is ignored.
7430         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7431         * expr.c (expr_wfl_stack): Define.
7432         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7433         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
7434         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7435         bit if inlined function has warn_unused_result attribute.
7436         * input.h (expr_wfl_stack): Declare.
7437         * doc/extend.texi: Document warn_unused_result attribute.
7438
7439 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
7440
7441         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7442
7443 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
7444
7445         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7446         ATTRIBUTE_UNUSED.
7447         (call_insn_operand): For PIC, don't allow a direct call to a
7448         function in a different section than the current one.
7449
7450 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7451
7452         * doc/invoke.texi (Warning Options): Add missing hyphen before
7453         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
7454         Move "-Wold-style-definition" to the C-only section.
7455         Fix the ordering of the warning options.
7456
7457 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7458             Jeff Law  <law@redhat.com>
7459
7460         * gcse.c (remove_reachable_equiv_notes): New.
7461         replace_store_insn): Call it.  Update antic list.
7462         (store_killed_in_insn): Take REG_EQUAL notes into account.
7463         (build_store_vectors, delete_store): Add parameter to
7464         replace_store_insn call.
7465
7466 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
7467
7468         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7469         SYMBOL_REF_LOCAL_P.
7470
7471 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
7472
7473         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7474         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7475         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7476         Likewise.
7477         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7478         Likewise.
7479         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7480         * config/sparc/sparc.c (function_arg_padding): Likewise.
7481
7482 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
7483
7484         * haifa-sched.c (schedule_block): Use ready_remove_first instead
7485         of choose_ready for non-dfa insn scheduling.
7486
7487 2003-09-15  Andreas Jaeger  <aj@suse.de>
7488             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7489
7490         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7491         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7492         * c-parse.in: Warn about old-style parameter definition.
7493         * c-common.c: Define warn_old_style_defintion.
7494         * c-common.h: Declare it.
7495         * c.opt: Add Wold-style-defintion.
7496
7497 2003-09-15  Andreas Jaeger  <aj@suse.de>
7498
7499         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7500         * config/rs6000/rs6000.c: Likewise.
7501
7502 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7503
7504         PR optimization/10914
7505         * expr.h (get_condition, canonicalize_condition): Declaration changed.
7506         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7507         and canonicalize_condition calls.
7508         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7509         delete_null_pointer_checks): Ditto.
7510         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7511         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7512         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7513         (canonicalize_condition, get_condition): Allow to return comparisons
7514         of cc mode registers.
7515         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7516         cc mode registers comparison in condition.
7517
7518 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
7519
7520         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7521         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7522         function.
7523         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7524
7525 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7526
7527         * combine.c (simplify_comparison): Convert
7528         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7529         (eq (and (lshiftrt X Y) 1) 0).
7530
7531 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7532
7533         * alias.c: Follow spelling conventions.
7534         * cpphash.h: Likewise.
7535         * fold-const.c: Likewise.
7536
7537 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
7538
7539         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7540         * c-lex.c (cb_line_change): Skip line changing whenever
7541         c-ppoutput.c would.
7542
7543 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
7544
7545         * ra.c: Convert to ISO C90 prototypes.
7546         * ra-build.c: Likewise.
7547         * ra-colorize.c: Likewise.
7548         * ra-debug.c: Likewise.
7549         * ra-rewrite.c: Likewise.
7550
7551 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7552
7553         * Makefile.in (%.dvi): Remove excess $(docdir).
7554
7555 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7556
7557         * function.c (STACK_BYTES): Move definition to head of file.
7558         (assign_parms): Don't pass current_function_pretend_args_size
7559         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
7560         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
7561         excess before laying out the argument.
7562
7563 2003-09-14  Andreas Jaeger  <aj@suse.de>
7564
7565         * objc/objc-act.c: Convert to ISO C90 prototypes.
7566         * objc/objc-act.h: Likewise.
7567
7568 2003-09-14  Olaf Hering  <olh@suse.de>
7569
7570         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7571
7572 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
7573
7574         PR target/12021
7575         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7576         as they already are done in config/m68k/m68k.h.
7577         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7578
7579         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7580         (machopic_output_stub): Only generate pic base symbols when using pic
7581         and generate them in the form L00000000$spb.
7582
7583 2003-09-13  Richard Henderson  <rth@redhat.com>
7584
7585         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7586         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7587         * cgraph.h: Update.
7588
7589 2003-09-12  Dale Johannesen  <dalej@apple.com>
7590
7591         * config/rs6000/rs6000.c: Fix typos in previous.
7592
7593 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
7594
7595         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7596         when allocating pp->buffer.
7597
7598 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
7599
7600         * config/darwin.c (machopic_select_rtx_section): Use
7601         const_data_section for things that might require relocation.
7602
7603 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
7604
7605         PR bootstrap/12264
7606         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7607
7608 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
7609
7610         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
7611         * config/xtensa/linux.h (ASM_SPEC): Likewise.
7612         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7613         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7614         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7615         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7616         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7617         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
7618         and redefine corresponding TARGET_* macros with constants from the
7619         xtensa-config.h header.
7620         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7621         for the options listed above.
7622
7623 2003-09-12  Dale Johannesen  <dalej@apple.com>
7624
7625         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
7626         * config/rs6000/rs6000-c.c:  Ditto.
7627         * config/rs6000/rs6000.c:  Ditto.
7628         * config/rs6000/ sysv4.h:  Ditto.
7629
7630 2003-09-12  Chris Lattner <sabre@nondot.org>
7631
7632         * loop.c: Move comments describing BIV's and GIV's to top of file
7633
7634 2003-09-12  Roger Sayle  <roger@eyesopen.com>
7635
7636         PR optimization/8967
7637         * alias.c (write_dependence_p): Modify to take an additional constp
7638         argument that controls whether the UNCHANGING_RTX_P flags are used.
7639         (anti_dependence, output_dependence): Adjust write_dependence_p
7640         callers to pass this additional argument, to return the same result.
7641         (unchanging_anti_dependence): New variant of anti_dependence that
7642         ignores the UNCHANGING_RTX_P property on memory references.
7643         * rtl.h (unchaning_anti_dependence): Prototype here.
7644         * flow.c (init_propagate_block): Place fake constant mem writes on
7645         the mem_set_list so that dead writes to const variables are deleted.
7646         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7647         (mark_used_regs): Likewise.
7648
7649 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
7650
7651         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7652         (mcore_secondary_reload_class): Declare.
7653         (mcore_output_inline_const_forced): Remove.
7654         * config/mcore/mcore.md (movsi): Remove the code that forced
7655         non-inlineable constants into a register if the target was r15
7656         or the stack pointer.  Remove constant restrictions from the main
7657         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
7658         of an r <- P alternative.  Remove fallback define_insn for reload.
7659         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
7660         define_insn.  Use mcore_output_move in the remaining define_insn.
7661         Adjust condition and constraints in the way as for movsi.
7662         (movdi): Always split unacceptable constants into two.  Use
7663         simplify_gen_subreg instead of operand_subword{,_force}.
7664         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7665         (mcore_output_move): Support HImode and QImode moves as well.
7666         (mcore_m15_operand_p): New function.
7667         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7668         (mcore_secondary_reload_class): New function.
7669         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7670         terms of mcore_secondary_reload_class.
7671
7672 2003-09-11  Mike Stump  <mrs@apple.com>
7673
7674         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7675
7676 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7677
7678         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7679         MODE exactly, then only convert logN(N) -> 1.0 if
7680         flag_unsafe_math_optimizations is set.
7681
7682         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7683         init_builtin_dconsts): Delete.
7684         * emit-rtl.c (dconstpi, dconste): Define.
7685         (init_emit_once): Initialize dconstpi & dconste.
7686         * real.h (dconstpi, dconste): Declare.
7687
7688 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
7689
7690         PR fortran/11522
7691         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7692         for ultimate origin even if block is abstract.
7693
7694 2003-09-11  Roger Sayle  <roger@eyesopen.com>
7695
7696         * combine.c (combine_simplify_rtx): Move several NOT and NEG
7697         optimizations from here...
7698         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
7699         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7700
7701 2003-09-11  Richard Henderson  <rth@redhat.com>
7702
7703         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7704         Tweek tests for function already generated.
7705         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7706         * cgraph.h (cgraph_finalize_function): Update for extra arg.
7707         * c-decl.c (finish_function): Likewise.
7708
7709 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
7710
7711         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7712
7713 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
7714
7715         * real.c: Update URL to VAX floating point docs.
7716         (decode_vax_d): Extract 8 exponent bits instead of 7.
7717
7718 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
7719
7720         * combine.c (force_to_mode): Set fuller_mask based only on mask,
7721         not op_mode.
7722
7723 2003-09-11  Jan Hubicka  <jh@suse.cz>
7724
7725         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7726         on why function is not inlinable; do not check
7727         the body.
7728         (inline_forbidden_p): Move to...
7729         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7730         deal with alloca, longjmp.
7731         (inline_forbidden_p): New static function.
7732         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7733         find_builtin_longjmp_call): Kill.
7734
7735 2003-09-10  Richard Henderson  <rth@redhat.com>
7736
7737         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7738         * cgraphunit.c: Update to match.
7739         (record_call_1): Rearrange.  Call lang hook for language nodes.
7740         (cgraph_analyze_function): Don't call lower_function.
7741         * langhooks.h (struct lang_hooks_for_callgraph): Replace
7742         lower_function with analyze_expr.
7743         * langhooks-def.h: Update to match.
7744         * langhooks.c (lhd_callgraph_analyze_expr): New.
7745
7746 2003-09-10  Martin Husemann  <martin@duskware.de>
7747
7748         PR target/11965
7749         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7750         constants greater than 63.
7751         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7752         against constants greater than 31.
7753         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7754         constants greater than 63.
7755
7756 2003-09-09  Richard Henderson  <rth@redhat.com>
7757
7758         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7759         * cgraph.h (cgraph_finalize_function): Update.
7760         * c-decl.c (finish_function): Update.
7761
7762 2003-09-09  Devang Patel  <dpatel@apple.com>
7763
7764         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7765         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7766
7767 2003-09-09  Eric Christopher  <echristo@redhat.com>
7768
7769         * configure.in: Change usage of 'head' to 'sed 1q'.
7770         * configure: Regenerate.
7771
7772 2003-09-09  Richard Henderson  <rth@redhat.com>
7773
7774         * except.c: Include cgraph.h.
7775         (output_function_exception_table): Invoke
7776         cgraph_varpool_mark_needed_node.
7777         * Makefile.in (except.o): Update.
7778
7779 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7780
7781         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7782         and use it throughout.
7783
7784 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7785
7786         * builtins.c (real_dconstp, fold_builtin_logarithm,
7787         fold_builtin_exponent): New, split out from fold_builtin.  Also
7788         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7789         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7790         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7791         of hardcoded array size.
7792         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7793         (tree_expr_nonnegative_p): Likewise.
7794         * real.h (dconst3, dconst10, dconstthird): New.
7795
7796 2003-09-09  Jan Hubicka  <jh@suse.cz>
7797
7798         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7799         inline functions.
7800         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7801         DECL_SAVED_TREE.
7802
7803 2003-09-09  Roger Sayle  <roger@eyesopen.com>
7804
7805         * builtins.c (fold_builtin_cabs): Protect the complex argument
7806         against multiple evaluation when optimizing cabs* into sqrt*.
7807
7808 2003-09-09  Jan Hubicka  <jh@suse.cz>
7809
7810         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
7811
7812 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
7813
7814         * Makefile.in: Revert yesterday's change.
7815
7816 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7817             Peter Barada <peter@baradas.org>
7818
7819         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7820         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7821         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7822         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7823         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7824         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7825         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7826         (m68k_compute_frame_layout): New function.
7827         (m68k_initial_elimination_offset): New function.
7828         (m68k_output_function_prologue): ColdFire-specific movem handling.
7829         (m68k_output_function_epilogue): Likewise.
7830         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7831         (ARG_POINTER_REGNUM): Add new definition.
7832         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7833         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7834         (CAN_ELIMINATE): Likewise.
7835         (INITIAL_ELIMINATION_OFFSET): Likewise.
7836
7837 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7838
7839         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7840         by removing redundant variable cfa_store_offset.
7841
7842 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7843
7844         * langhooks-def.h (lhd_register_builtin_type): New function.
7845         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7846         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7847         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7848         * langhooks.c (lhd_register_builtin_type): New function.
7849         * c-common.h (c_register_builtin_type): Declare.
7850         * c-common.c (c_register_builtin_type): New function.
7851         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7852         c_register_builtin_type.
7853         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7854         __float80, and __float128 macros.
7855         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7856         __float80, and __float128 types.
7857
7858 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7859
7860         * builtin-types.def
7861         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7862         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7863         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7864         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7865         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7866         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7867         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7868         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7869         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7870         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7871         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7872         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7873         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7874         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7875         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7876         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7877         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7878         New.
7879         * doc/extend.texi: Document new builtins.
7880
7881 2003-09-09  Jan Hubicka  <jh@suse.cz>
7882
7883         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7884         finalization.
7885         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7886         functions, check for COMDAT.
7887         (cgraph_assemble_pending_functions): Break out from...
7888         (cgraph_finalize_function): ... here; allow redefinig of extern inline
7889         functions.
7890         (record_call_1): Record function references only in non-unit-at-a-time
7891         mode.
7892         (cgraph_analyze_function): Reset current_function_decl.
7893         (cgraph_finalize_compilation_unit):  Assemble pending functions.
7894
7895 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7896
7897         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7898         (libgov.a): Likewise.
7899         (libgcc_eh.a): Likewise.
7900
7901 2003-09-08  Roger Sayle  <roger@eyesopen.com>
7902
7903         * fold-const.c (operand_equal_p): Clarify documentation.
7904
7905 2003-09-08  Richard Henderson  <rth@redhat.com>
7906
7907         * c-decl.c (c_expand_body_1): Push and pop function context here.
7908         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
7909         nested argument instead of computing nesting ourselves.
7910
7911 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7912
7913         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7914         regstack if optimizing but not scheduling after reload.
7915
7916 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7917
7918         * config/sparc/sparc.c (struct machine_function): New type.
7919         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7920         (sparc_override_options): Initialize init_machine_status.
7921         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7922         tie_symbolic_operand, tle_symbolic_operand): New functions.
7923         (symbolic_operand): Disallow tls_symbolic_operand.
7924         (symbolic_memory_operand): Likewise.
7925         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7926         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7927         New functions.
7928         (sparc_tls_symbol): New variable.
7929         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7930         legitimize_address): New functions.
7931         (print_operand): Handle %&.
7932         (sparc_init_machine_status, get_some_local_dynamic_name,
7933         get_some_local_dynamic_name_1): New functions.
7934         (sparc_output_dwarf_dtprel): New function.
7935         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7936         constant_address_p.
7937         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7938         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7939         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7940         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7941         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7942         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7943         (ASM_OUTPUT_DWARF_DTPREL): Define.
7944         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7945         tie_symbolic_operand, tle_symbolic_operand.
7946         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7947         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7948         (tls_call_delay): New attribute.
7949         (in_call_delay): Use it.
7950         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7951         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7952         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7953         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7954         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7955         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7956         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7957         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7958         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7959         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7960         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7961         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7962         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7963         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7964         insns.
7965         * config/sparc/sparc-protos.h (legitimate_constant_p,
7966         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7967         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7968         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7969         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7970         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7971         * configure.in (sparc*-*-*): Add TLS check.
7972         * configure: Rebuilt.
7973
7974 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7975
7976         PR target/11689
7977         * config/i386/i386.c (memory_address_length): Fix computation when
7978         the base is esp or ebp.
7979
7980 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
7981
7982         PR c++/11852
7983         * varasm.c (initializer_constant_valid_p): Correct logic for
7984         CONSTRUCTORs.
7985
7986 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7987
7988         * expr.c (expand_operands): New function to expand an operand pair.
7989         (expand_expr): Call expand_operands whenever we need to expand both
7990         operands of a binary operator.
7991         (do_store_flag): Likewise for operands of comparison operations.
7992
7993 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7994
7995         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7996         (-A)*B if we care about sign-dependent rounding.
7997
7998 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
7999
8000         * c-pretty-print.h (pp_c_left_brace): Declare.
8001         (pp_c_right_brace): Likewise.
8002         * c-pretty-print.c (pp_c_left_brace): Now a function
8003         (pp_c_right_brace): Likewise.
8004
8005 2003-09-07  Jan Hubicka  <jh@suse.cz>
8006
8007         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
8008
8009 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8010
8011         * diagnostic.c (warn_deprecated_use): Move to toplev.c
8012
8013 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8014
8015         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
8016         * Makefile.in (langhooks.o): Depend on diagnostic.h
8017
8018 2003-09-06  James E Wilson  <wilson@tuliptree.org>
8019
8020         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
8021         simplify.
8022
8023 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
8024
8025         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
8026         and use it throughout.
8027
8028 2003-09-07  Jan Hubicka  <jh@suse.cz>
8029
8030         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
8031
8032         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
8033         virables.
8034
8035         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
8036         functions.
8037         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
8038
8039 2003-09-06  Jan Hubicka  <jh@suse.cz>
8040
8041         PR target/12070
8042         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
8043
8044         PR opt/12082
8045         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
8046
8047 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8048
8049         * diagnostic.c (announce_function): Move to toplev.c.
8050
8051 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8052
8053         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
8054         volatile mem.
8055
8056 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8057
8058         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
8059         when gc checking is enabled.
8060
8061 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
8062
8063         PR c/9862
8064         * c-decl.c (c_expand_body_1): Move return warning from here...
8065         (finish_function): ...to here.
8066
8067 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
8068
8069         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
8070         a subset of the input class.
8071
8072 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
8073
8074         * config/i860/i860.c: Follow spelling conventions.
8075         * config/i860/i860.h: Likewise.
8076         * config/sh/sh.h: Likewise.
8077
8078 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
8079
8080         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
8081         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
8082         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
8083
8084 2003-09-05  Roger Sayle  <roger@eyesopen.com>
8085             Richard Henderson  <rth@redhat.com>
8086
8087         PR optimization/1823
8088         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
8089         multiplication to implement division by constant integer.
8090
8091 2003-09-05  Jan Hubicka  <jh@suse.cz>
8092
8093         * opts.c (decode_options): Enable unit-at-a-time at -O2.
8094         * params.def (max-inline-insns-single): Set to 500
8095         (max-inline-insns-auto): Set to 150
8096         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
8097
8098 2003-09-04  Richard Henderson  <rth@redhat.com>
8099
8100         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
8101         (cgraph_mark_needed_node): Remove needed argument.
8102         * cgraph.h: Update to match.
8103         * cgraphunit.c (decide_is_function_needed): Split out from ...
8104         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
8105         if we generated the function.
8106         (record_call_1): Update for cgraph_mark_reachable_node.
8107         * varasm.c (mark_referenced): Likewise.
8108         * objc/objc-act.c (mark_referenced_methods): Likewise.
8109
8110 2003-09-04  DJ Delorie  <dj@redhat.com>
8111
8112         * targhooks.c: Add comment explaining the migration process.
8113
8114 2003-09-04  Eric Christopher  <echristo@redhat.com>
8115
8116         * config/frv/t-frv: Fix path for frv-abi.h.
8117         * config/frv/frv-asm.h: Fix string concatenation.
8118
8119 2003-09-04  DJ Delorie  <dj@redhat.com>
8120
8121         * builtins.c (apply_args_size): Guard against a NULL cfun.
8122         (expand_builtin_apply_args_1): Likewise.
8123         (expand_builtin_apply): Likewise.
8124         Fixes PR bootstrap/12172.
8125
8126 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8127
8128         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
8129         assembler supports Sun syntax for cmov.
8130         * configure: Regenerate.
8131         * config.in: Likewise.
8132         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
8133         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
8134         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
8135         Fixes PR target/12101.
8136
8137 2003-09-04  Matt Austern  <austern@apple.com>
8138
8139         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
8140         with verbosity 0, instead of DECL_NAME, for human-readable string.
8141
8142 2003-09-04  Eric Christopher  <echristo@redhat.com>
8143
8144         * targhooks.c (default_return_in_memory): Allow
8145         unconverted ports.
8146
8147 2003-09-04  Eric Christopher  <echristo@redhat.com>
8148
8149         * targhooks.c (default_return_in_memory): Fix typo
8150         in last checkin.
8151
8152 2003-09-04  Eric Christopher  <echristo@redhat.com>
8153
8154         * targhooks.c (default_return_in_memory): Fix default
8155         definition.
8156
8157 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
8158
8159         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
8160         deleted function.
8161         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
8162         enable coff-only code in m68k.c.
8163
8164 2003-09-04  Nick Clifton  <nickc@redhat.com>
8165
8166         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
8167         v850e1.
8168         * config/v850/v850.h: Accept v850e1 as a default CPU.
8169         Accept -mv850e1 as a command line option.
8170         * doc/invoke.texi: Document new -mv850e1 command line switch.
8171         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
8172         -mv850e.
8173
8174 2003-09-04  Nick Clifton  <nickc@redhat.com>
8175
8176         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
8177         * config/v850/t-v850: Only produce one extra multilib - for
8178         the v850e.
8179         * config/v850/t-v850e: New file: Only produce one extra
8180         multilib - for the v850.
8181
8182 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
8183
8184         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
8185         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
8186         * unwind.h (_Unwind_GetBSP): New prototype.
8187         * libgcc-std.ver: Add empty GCC_3.3.2 version.
8188         * mkmap-symver.awk: For symbol versions with no exported symbols,
8189         don't put anything into version script, just change all symbol
8190         versions which inherit from it to inherit from its ancestor.
8191
8192 2003-09-04  Eric Christopher  <echristo@redhat.com>
8193
8194         * config/mips/mips.c (mips_expand_prologue): Convert to
8195         calls.struct_value_rtx hook.
8196         (reg_or_const_float_1_operand): New.
8197         * config/mips/mips.h: Update Comments.
8198         (mips_arg): Add reg_or_const_float_1_operand.
8199         * config/mips/mips.md (divdf3); Convert to expander.
8200         (divsf3): Ditto.
8201         (*divdf3): New pattern.
8202         (*divsf3): Ditto.
8203
8204 2003-09-04  Jan Hubicka  <jh@suse.cz>
8205
8206         * toplev.c (wrapup_global_declarations): Fix final pass in
8207         unit-at-atime mode.
8208
8209 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
8210
8211         * doc/extend.texi: Document removal of cast-as-lvalue extension in
8212         C++.
8213
8214 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
8215
8216         * gcc.c (process_command): Fix typo.
8217
8218 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
8219
8220         optimization/11980
8221         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
8222         (PTRDIFF_TYPE): Likewise.
8223         (WCHAR_TYPE_SIZE): Likewise.
8224
8225 2003-09-03  DJ Delorie  <dj@redhat.com>
8226
8227         * targhooks.c: New file.
8228         * targhooks.h: New file.
8229         * Makefile.in: Add targhooks.o support.
8230         (function.o): Depend on$(TARGET_H).
8231         (stmt.o): Likewise.
8232         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
8233         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
8234         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
8235         (expand_builtin_saveregs): Convert to
8236         calls.expand_builtin_saveregs hook.
8237         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
8238         here, instead of ...
8239         (get_parm_info) ... here.
8240         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
8241         hook.
8242         (finish_function): Handle calls.promote_prototypes hook here too.
8243         * c-typeck.c (convert_arguments): Convert to
8244         calls.promote_prototypes hook.
8245         (c_convert_parm_for_inlining): Likewise.
8246         * calls.c (initialize_argument_information): Convert to
8247         calls.promote_function_args hook.
8248         (expand_call): Convert to calls.struct_value_rtx,
8249         calls.strict_argument_naming,
8250         calls.pretend_outgoing_varargs_named, and
8251         calls.promote_function_return hooks.  Pass fndecl to
8252         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
8253         hooks, so they can use that.
8254         (emit_library_call_value_1): Likewise.
8255         * combine.c (setup_incoming_promotions): Convert to
8256         calls.promote_function_args hook.
8257         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8258         * expr.c (expand_assignment): Pass call to aggregate_value_p.
8259         (expand_expr): Likewise.
8260         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8261         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8262         RETURN_IN_MEMORY macro defaults.
8263         * final.c (profile_function): Convert to calls.struct_value_rtx
8264         hook.
8265         * function.c (aggregate_value_p): Accept function type tree as
8266         second parameter; try to deduce fntype from it.  Convert to
8267         calls.return_in_memory hook.
8268         (assign_parms): Convert to calls.setup_incoming_varargs,
8269         calls.strict_argument_naming, calls.promote_function_args,
8270         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
8271         aggregate_value_p.
8272         (expand_function_start): Likewise.  Convert to
8273         calls.struct_value_rtx hook.
8274         (expand_function_end): Convert to calls.promote_function_return hook.
8275         (allocate_struct_function): Pass fndecl to aggregate_value_p.
8276         * hard-reg-set.h: Update comments to new hook names.
8277         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8278         * reg-stack.c (stack_result): Likewise.
8279         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8280         * stmt.c (expand_value_return): Convert to
8281         calls.promote_function_return hook.
8282         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8283         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8284         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8285         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8286         TARGET_STRICT_ARGUMENT_NAMING,
8287         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8288         * target.h: Likewise.
8289         * tree.h (aggregate_value_p): Also takes a tree to deduce function
8290         attributes from (for target hooks).
8291         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8292         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8293         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8294         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8295         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8296         to hooks.
8297
8298         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8299         to aggregate_value_p.
8300         * config/arm/arm.c (arm_init_cumulative_args,
8301         arm_output_mi_thunk): Likewise.
8302         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8303         Likewise.
8304         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8305         mips_can_use_return_insn): Likewise.
8306         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8307         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8308         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8309         aggregate_value_p.
8310         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8311         function to aggregate_value_p.
8312         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8313         aggregate_value_p.
8314
8315         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8316         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8317         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
8318         (sh_handle_renesas_attribute, sh_promote_prototypes,
8319         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8320         sh_setup_incoming_varargs, sh_strict_argument_naming,
8321         sh_pretend_outgoing_varargs_named): New decls.
8322         (targetm): Add new hooks.
8323         (calc_live_regs): Save MACL and MACH if the function has the
8324         renesas attribute.
8325         (sh_expand_prologue): Support renesas attribute.
8326         (sh_builtin_saveregs): Make static.
8327         (sh_build_va_list): Support renesas attribute.
8328         (sh_va_start): Likewise.
8329         (sh_va_arg): Likewise.
8330         (sh_promote_prototypes): New.
8331         (sh_function_arg): New, moved from sh.h.  Support renesas
8332         attribute.
8333         (sh_function_arg_advance): Likewise.
8334         (sh_return_in_memory): Likewise.
8335         (sh_strict_argument_naming): Likewise.
8336         (sh_pretend_outgoing_varargs_named): Likewise.
8337         (sh_struct_value_rtx): New.
8338         (sh_attribute): Add renesas attribute.
8339         (sh_handle_renesas_attribute): New.
8340         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8341         (sh_ms_bitfield_layout_p): Support renesas attribute also.
8342         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
8343         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8344         -mhitachi.
8345         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8346         target hooks.
8347         (sh_args): Add renesas_abi flag.
8348         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
8349         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8350         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
8351         stack for the renesas abi.
8352         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8353         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8354         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
8355         call cookie to indicate renesas calls.
8356
8357 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
8358
8359         * gcse.c (replace_one_set): New function.
8360         (pre_insert_copy_insn): Change the order of copying
8361         to make copy propagation discover additional PRE opportunities.
8362
8363 2003-09-03  Roger Sayle  <roger@eyesopen.com>
8364
8365         PR optimization/11700.
8366         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8367         of a hard register is representable before trying to simplify it
8368         using subreg_hard_regno.
8369
8370 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8371
8372         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8373         * configure: Regenerate.
8374
8375 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8376
8377         * intl.h (N_): Remove parentheses.
8378
8379 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
8380
8381         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8382         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8383         definition and code blocks compiled when not defined.
8384         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8385         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8386         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8387         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8388
8389 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
8390
8391         * cgraphunit.c (visited_nodes): New static variable.
8392         (record_call_1): Use walk_tree with visited_nodes.
8393         (cgraph_create_edges): Use walk_tree with visited_nodes.
8394         Setup/teardown visited_nodes hashtable.
8395
8396 2003-09-03  Roger Sayle  <roger@eyesopen.com>
8397
8398         * toplev.c (flag_rounding_math): New global variable.
8399         (f_options): Add to the list of language independent options.
8400         * flags.h (flag_rounding_math): Prototype here.
8401         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8402         * common.opt (frounding-math): New common command line option.
8403         * opts.c (common_handle_option): Handle OPT_frounding_math.
8404         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8405
8406         * doc/invoke.texi: Document this new command line option.
8407
8408 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8409
8410         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8411
8412 2003-09-03  Jan Hubicka  <jh@suse.cz>
8413
8414         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8415         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
8416         * c-objc-common.c: Kill include of gt-c-objc-common.h
8417         (expand_deferred_fns, deffer_fn): Kill function.
8418         (deferred_fns): Kill variable.
8419         (finish_cdtor): Update finish_function call.
8420         (c_objc_common_finish_file): Always call cgraph code.
8421         * c-parse.c: Regenerate.
8422         * c-parse.y: Regenerate.
8423         * c-tree.h (finish_function): Update prototype.
8424         * objc-acct.c (build_module_descriptor, finish_method_def):
8425         Update call of finish_function.
8426         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8427         forward prototype.
8428         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8429         function and assemble it if needed.
8430         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8431         mode.
8432         (cgraph_optimize): Likewise.
8433         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8434         even when it has no inline callees.
8435         * c-parse.in: Update calls to finish_function.
8436
8437 2003-09-03  Nick Clifton  <nickc@redhat.com>
8438
8439         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8440         Use #error to generate the message if TARGET_DEFAULT is not
8441         recognised.
8442
8443 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
8444
8445         * config/mips/mips.h (MASK_UNUSED1): Remove.
8446         (MASK_XGOT, TARGET_XGOT): Define.
8447         (TARGET_SWITCHES): Add an entry for -mxgot.
8448         (ASM_SPEC): Map -mxgot to -xgot.
8449         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8450         whether we're using a big-GOT sequences.
8451         (mips_legitimize_const_move, mips_expand_call): Likewise.
8452         (override_options): Revert 2003-01-09 change.
8453         * doc/invoke.texi: Document -mxgot.
8454
8455 2003-09-02  Jason Merrill  <jason@redhat.com>
8456
8457         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8458         * config/sparc/sol2.h: Not here.
8459
8460 2003-09-02  Roger Sayle  <roger@eyesopen.com>
8461
8462         * expr.c (expand_expr): The code following both_summands performs
8463         the same task as simplify_gen_binary.  Replace all gotos to
8464         both_summands with a call to simplify_gen_binary and delete the
8465         now unused label.
8466
8467 2003-09-02  Jason Merrill  <jason@redhat.com>
8468
8469         PR c++/7327
8470         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8471
8472 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
8473
8474         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8475         (cgraph_optimize_function): Set current_function_decl to the
8476         fndecl we're integrating from.
8477
8478 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8479
8480         * builtins.def: Break out _Complex math functions into their
8481         own category.
8482
8483 2003-09-02  Andreas Jaeger  <aj@suse.de>
8484
8485         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8486
8487 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
8488
8489         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8490         finding the note again.
8491
8492 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8493
8494         * config.gcc: Remove host-specific rewrites of target_alias.
8495
8496 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
8497
8498         * Makefile.in (genprogs): Fix typo.
8499
8500         * Makefile.in (gencheck.o): Remove build commands.
8501         (dummy-conditions.o): Likewise.
8502         (read-rtl.o): Likewise.
8503         (gensupport.o): Likewise.
8504         (genconfig$(build_exeext)): Remove rule.
8505         (genconfig.o): Remove build commands.
8506         (genflags$(build_exeext)): Remove rule.
8507         (genflags.o): Remove build commands.
8508         (gencodes$(build_exeext)): Remove rule.
8509         (gencodes.o): Remove build commands.
8510         (genconstants.o): Remove build commands.
8511         (genemit$(build_exeext)): Remove rule.
8512         (genemit.o): Remove build commands.
8513         (genrecog$(build_exeext)): Remove rule.
8514         (genrecog.o): Remove build commands.
8515         (genextract$(build_exeext)): Remove rule.
8516         (genextract.o): Remove build commands.
8517         (genpeep$(build_exeext)): Remove rule.
8518         (genpeep.o): Remove build commands.
8519         (genattr$(build_exeext)): Remove rule.
8520         (genattr.o): Remove build commands.
8521         (genprognames): New variable.
8522         (genprogs): Likewise.
8523         (genobjs): Likewise.
8524         (genprogs): New rule.
8525         (genobjs): Likewise.
8526         (genattrtab.o): Remove build commands.
8527         (genautomata.o): Likewise.
8528         (genoutput$(build_exeext)): Remove rule.
8529         (genoutput.o): Remove build commands.
8530         (gengenrtl.o): Likewise.
8531         (genpreds.o): Likewise.
8532         (gengtype.o): Likewise.
8533         (genconditions.o): Likewise.
8534         (gen-protos.o): Likewise.
8535         (scan.o): Likewise.
8536         (fix-header.o): Likewise.
8537         (scan-decls.o): Likewise.
8538         (check-g++): Combine with other check targets.
8539         (check-gcc): Likewise.
8540         (check-g77): Likewise.
8541         (check-objc): Likewise.
8542
8543 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8544
8545         * config.gcc: Remove host-specific stuff which is unused here
8546         since the introduction of config.host.
8547
8548         * doc/fragments.texi: Mention config.host.
8549         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
8550         of config.build, config.host, and config.gcc.
8551
8552 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
8553
8554         * c-decl.c (pushdecl): Don't put variables on
8555         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8556         incomplete.
8557
8558 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8559
8560         * config.host: New file.
8561         * config.gcc: Remove some host-specific stuff and some
8562         logic needed only for repeated invocation.
8563         * configure.in: Use config.host.
8564         * configure: Regenerate.
8565
8566 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
8567
8568         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8569         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8570         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8571         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8572         * tree.def (BIT_ANDTC_EXPR): Kill.
8573
8574 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8575
8576         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8577         * configure: Regenerate.
8578
8579         * config.gcc:  Remove references to install_headers_dir, now unused
8580         since introduction of config.build.
8581         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8582
8583         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8584         config.build.
8585
8586         * config.build: New file.
8587         * config.gcc: Remove some build-specific stuff.
8588         * configure.in: Use config.build.
8589         * configure: Regnerate.
8590
8591 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
8592             Roger Sayle  <roger@eyesopen.com>
8593
8594         PR middle-end/11823
8595         * stmt.c (expand_end_case_type): Only use jump tables for dense
8596         switch statements when optimizing for size.
8597
8598 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
8599
8600         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8601         the != 0 case, which ensures pending stack adjustments are flushed.
8602
8603 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8604
8605         * configure.frag: Delete file.
8606         * configure.in: Rename the substitution variables
8607         dep_host_xmake_file and dep_tmake_file to xmake_file and
8608         tmake_file respectively.  Do not expand $srcdir in the
8609         value of these; leave that for Make.  Introduce a new
8610         substitution varaible, all_lang_makefrags, which lists
8611         subdirectory Make-lang.in files; exclude these from
8612         all_lang_makefiles, which is now only for subdirectory
8613         outputs.  Do not invoke configure.frag.  Do not set nor
8614         AC_SUBST_FILE target_overrides, host_overrides, or
8615         language_fragments. Create build subdirectories in
8616         config.status extra commands.
8617         * configure: Regenerate.
8618         * Makefile.in: Update substitutions to match changes to
8619         configure.  Use include directives instead of @-insertions
8620         to read in host, target, and language fragments.
8621         (Makefile rule): Do not invoke configure.frag.  Do not copy
8622         config.status to config.run before executing it.  Set
8623         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8624         regenerated.
8625         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8626
8627 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8628
8629         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8630         * c-typeck.c (same_translation_unit_p): New function.
8631         (comptypes): Use it instead of flags parameter to identify
8632         structure types from different translation units.
8633         * c-decl.c (duplicate_decls): Always call comptypes with
8634         COMPTYPE_STRICT flags argument.
8635         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8636         to file_scope_decl.
8637
8638 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8639
8640         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8641         * c-decl.c (struct c_scope): Remove "incomplete" field.
8642         (pushdecl): Attach variables with incomplete types to
8643         the TYPE_MAIN_VARIANT of the incomplete type in question.
8644         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8645         to complete, not at current_scope->incomplete.  All such
8646         variables do need completion.
8647
8648 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
8649         Nicolas Pitre <nico@cam.org>
8650
8651         * arm/lib1funcs.asm (RETCOND): Delete.
8652         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
8653         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8654         (__ARM_ARCH__): Move here from ieee754-?f.S.
8655         (RET, RETc): Clean up definitions.
8656         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
8657         (FUNC_END): New macro that marks the end of any function.
8658         (ARM_FUNC_START): New macro that allows an assembler routine to be
8659         implemented in ARM code even if a Thumb-only build.
8660         Unconditionally include ieee754-?f.S.
8661         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8662         Mark ends of functions.
8663         Split into separate conditionally-compiled units.
8664         Use RETLDM to return from routines.
8665         * arm/ieee754-sf.S: Similarly.
8666         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8667         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8668         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8669         _fixsfsi and _fixunssfsi.
8670
8671         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8672         multiplication underflows to zero.
8673         (__adddf3): Fix bug when using VFP ordering on little-endian
8674         processors.
8675         (__fixdfsi): Use rrx to extract the carry into a register instead of
8676         MRS instruction.  Optimize later use of result.
8677         * arm/ieee754-sf.S (__fixsfsi): Likewise.
8678         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8679
8680 2003-08-29  Richard Henderson  <rth@redhat.com>
8681
8682         * tree-optimize.c: New file.
8683         * Makefile.in (OBJS-archive): Add tree-optimize.o.
8684         (tree-optimize.o): New.
8685         * c-decl.c (store_parm_decls): Use allocate_struct_function.
8686         (finish_function): Don't free_after_parsing or free_after_compilation.
8687         (set_save_expr_context): Move to tree-optimize.c.
8688         (c_expand_body_1): Use tree_rest_of_compilation.
8689         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8690         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8691         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8692         iterate until closure.
8693         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8694         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8695         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8696         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8697         * toplev.h (tree_rest_of_compilation): Declare it.
8698
8699 2003-08-29  Richard Henderson  <rth@redhat.com>
8700
8701         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8702         * integrate.c (save_for_inline): Set saved_for_inline.
8703         * c-semantics.c (genrtl_scope_stmt): Check it.
8704         * toplev.c (wrapup_global_declarations): Check it.
8705         (rest_of_handle_inlining): Set and check rtl_inline_init.
8706         (rest_of_compilation): Remove out of date comment.
8707
8708 2003-08-29  Richard Henderson  <rth@redhat.com>
8709
8710         * function.c (allocate_struct_function): New, split out of ...
8711         (prepare_function_start, init_function_start): ... here.
8712         * expr.c (init_expr): Use ggc_alloc_cleared.
8713         * stmt.c (init_stmt_for_function): Likewise.
8714         * tree.h (allocate_struct_function): Declare.
8715
8716 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8717
8718         * config.gcc: Don't use negated character class in shell case
8719         clause.
8720
8721 2003-08-29  Richard Henderson  <rth@redhat.com>
8722
8723         * function.h (struct function): Move function_frequency and
8724         max_jumptable_ents before start of bit field members.
8725
8726 2003-08-29  Richard Henderson  <rth@redhat.com>
8727
8728         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8729         (fold_builtin_constant_p) ... not here.
8730
8731 2003-08-29  Richard Henderson  <rth@redhat.com>
8732
8733         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8734         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8735         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8736
8737 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8738
8739         * builtins.def: Fix typos.
8740         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8741         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8742         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8743         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8744         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8745
8746         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8747         Use ATTR_MATHFN_FPROUNDING_ERRNO.
8748
8749 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8750
8751         * config.gcc (i386-*-vsta): Fix obvious bogosity.
8752
8753         * fixinc/inclhack.def:  Remove special cases for unsupported
8754         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8755         * fixinc/fixincl.x: Regenerate.
8756
8757 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
8758
8759         * Makefile.in (cpp.info): Just state dependencies.
8760         (gcc.info): Likewise.
8761         (gccint.info): Likewise.
8762         (gccinstall.info): Likewise.
8763         (cppinternals.info): Likewise.
8764         (cpp.dvi): Likewise.
8765         (gcc.dvi): Likewise.
8766         (gccint.dvi): Likewise.
8767         (gccinstall.dvi): Likewise.
8768         (cppinternals.dvi): Likewise.
8769         (gcov.1): Likewise.
8770         (cpp.1): Likewise.
8771         (gcc.1): Likewise.
8772         (gfdl.7): Likewise.
8773         (gpl.7): Likewise.
8774         (fsf-funding.7): Likewise.
8775         ($(objdir)/%.info): New pattern rule.
8776         (%.dvi): Likewise.
8777
8778 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
8779
8780         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8781         (restage2): Likewise.
8782         (restage3): Likewise.
8783         (restage4): Likewise.
8784         (restageprofile): Likewise.
8785         (restagefeedback): Likewise.
8786         (bubblestrap): Likewise.
8787
8788 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8789
8790         * config.gcc: Narrow unsupported target match to avoid clobbering
8791         i?86-sequent-sysv4*.
8792
8793 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8794
8795         * builtins.c (mathfn_built_in): Handle new math builtins.
8796
8797 2003-08-28  Per Bothner  <per@bothner.com>
8798
8799         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8800         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
8801         (_cpp_lex_buffer):  Likewise.
8802         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
8803
8804 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8805
8806         * config/s390/s390.md ("*mulsi3_sign"): New insn.
8807         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8808         ("mulsidi3"): ... this new insn.
8809         ("umulsidi3"): New insn.
8810         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8811         mixed-mode matching constraints.
8812         ("udivmodsi4", "udivmoddisi3"): New insns.
8813         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8814
8815 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8816
8817         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8818         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8819         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8820         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8821         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8822         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8823         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8824         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8825         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8826         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8827         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8828         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8829         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8830         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8831         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8832         * tree.c: Assign new type_nodes.
8833         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8834         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8835         (float_ptr_type_node, double_ptr_type_node,
8836         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8837
8838         * doc/extend.texi: Document new builtins.
8839
8840 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8841
8842         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8843         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8844
8845         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8846         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8847         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8848         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8849         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8850         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8851         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8852         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8853         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8854         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8855
8856         * doc/extend.texi: Document new builtins.
8857
8858 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8859
8860         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8861         variants of i?86, powerpcle, and thumb.
8862         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8863         arm and hppa variants.
8864
8865 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8866
8867         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8868         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8869         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8870         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8871         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8872         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8873         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8874         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8875         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8876         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8877
8878         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8879         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8880         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8881         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8882         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8883         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8884         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8885         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8886         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8887         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8888         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8889         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8890         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8891         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8892         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8893         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8894         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8895         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8896         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8897         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8898         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8899         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8900         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8901         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8902         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8903         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8904         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8905         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8906         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8907         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8908         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8909
8910         * doc/extend.texi: Document new builtins.
8911
8912 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8913
8914         * config/s390/s390.c (legitmate_constant_p): Use LARL on
8915         zSeries machines even in 31-bit addressing mode.
8916         (legitimate_reload_constant_p): Likewise.
8917         (legitimize_pic_address): Likewise.
8918         (legitimize_tls_address): Likewise.
8919         (s390_split_branches): Likewise.
8920         (s390_dump_pool): Likewise.
8921         (s390_mainpool_finish): Likewise.
8922         (s390_chunkify_start): Likewise.
8923         (s390_select_rtx_section): Likewise.
8924         * config/s390/s390.md ("doloop_si"): Likewise.
8925         ("pool_start_31", "pool_end_31"): Likewise.
8926         ("pool_start_64", "pool_end_64"): Likewise.
8927         ("main_base_31_small", "main_base_31_large"): Likewise.
8928         ("main_base_64"): Likewise.
8929         ("reload_base_31", "reload_base_64"): Likewise.
8930         ("*movsi_larl"): New insn.
8931         ("cjump", "icjump"): Use long branches on zSeries machines.
8932         ("jump"): Likewise.
8933         ("call"): Use BRASL on zSeries machines.
8934         ("call_value", "call_value_tls"): Likewise.
8935         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8936         and replace by ...
8937         ("*bras", "*brasl", "*basr") ... these new insns.
8938         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8939         "bas_31_r"): Remove and replace by ...
8940         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8941         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8942         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8943         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8944         ("*return_si", "*return_di"): Remove and replace by ...
8945         ("*return"): ... this new insn.
8946         ("rotlsi3"): Allow on zSeries machines.
8947
8948         * config/s390/s390.c (legitimize_reload_constant_p): Use
8949         LL/LH type instructions in z/Architecture mode.
8950         * config/s390/s390.md ("*movsi_lli"): Likewise.
8951         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8952         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8953         ("*extendqisi2"): Use LB in z/Architecture mode.
8954         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8955         z/Architecture mode.
8956         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8957         Likewise.
8958
8959         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8960         and 31-bit mode.
8961         ("ptr_extend"): Allow only in 64-bit mode.
8962
8963 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
8964
8965         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8966         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8967         definitions.
8968         (main): Only use standard_startfile_prefix if native.
8969         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8970
8971 2003-08-27  Per Bothner  <pbothner@apple.com>
8972
8973         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
8974         test fails following my 08-21 change, and it seems unnecessary anyway.
8975         (cpp_error):  Likewise.
8976
8977 2003-08-27  Jason Merrill  <jason@redhat.com>
8978
8979         * real.c (do_multiply): Initialize with memset.
8980
8981 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8982
8983         * gcov.c (typedef struct arc_info): New field cs_count.
8984         (accumulate_line_counts): Find cycles correctly.
8985
8986 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
8987
8988         * config/s390/s390.c (struct machine_function): Remove member
8989         literal_pool_label.
8990         (s390_optimize_prolog): Replace TEMP_REG argument with
8991         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
8992         (general_s_operand): Accept all immediates before reload if
8993         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
8994         references.
8995         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8996         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8997         (s390_alloc_pool): New function.
8998         (s390_new_pool): Call it.
8999         (s390_dump_pool): Add REMOTE_LABEL argument.
9000         (s390_chunkify_start): Add BASE_REG argument.  Do not check
9001         get_pool_size ().
9002         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
9003         s390_dump_pool call.
9004         (s390_pool_count, s390_nr_constants): Remove.
9005         (s390_output_constant_pool): Remove.
9006         (s390_mainpool_start): New function.
9007         (s390_mainpool_finish): New function.
9008         (s390_mainpool_cancel): New function.
9009         (s390_reorg): Implement main literal pool handling.
9010         (s390_emit_prologue): Emit main_pool placeholder instead of
9011         literal_pool_31 / literal_pool_64 insns.
9012         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
9013         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
9014         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
9015         ("main_base_31_small", "main_base_31_large"): New insns.
9016         ("main_base_64",  "main_pool"): New insns.
9017         ("literal_pool_31", "literal_pool_64"): Remove.
9018
9019 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
9020
9021         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
9022         fixinc.ptx.
9023         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
9024         Prettify a little.
9025         * fixinc/fixincl.x: Regenerate.
9026
9027 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
9028
9029         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
9030         (L_ieee754_dp): New.  Include ieee754-df.S.
9031         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
9032         and compilation in apcs-26 mode.
9033         * arm/ieee754-df.S: Likewise.
9034         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
9035         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
9036
9037 2003-08-27  Nicolas Pitre  <nico@cam.org>
9038
9039         * arm/ieee754-sf.S: New.
9040         * arm/ieee754-df.S: New.
9041
9042 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
9043
9044         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
9045         and restore it if returning NULL.
9046
9047 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
9048
9049         * calls.c (initialize_argument_information): If an argument has no
9050         stack space associated with it, and BLOCK_REG_PADDING is defined,
9051         use it to decide at which end the argument should be padded.
9052         * function.c (assign_parms): Allocate BLKmode stack slots.
9053         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
9054         (mips_pad_reg_upward): Declare.
9055         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
9056         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
9057         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
9058         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
9059         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
9060         (mips_expand_call): Remove code for generating structure shifts.
9061         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
9062         types unless using the EABI.
9063         (function_arg_advance): Don't generate shift instructions.
9064         (function_arg): Don't return them.  Don't short-circuit the
9065         check for double structure chunks for DFmode arguments.
9066         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
9067         (mips_expand_prologue): Remove code to emit structure shifts.
9068         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
9069         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
9070         comments to say that only structure returns are a problem.
9071
9072 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
9073
9074         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
9075         Fix to match produced versions.
9076         * fixinc/inclhack.def (longlong_t): New disabled test, ported
9077         from fixinc.svr4.
9078         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
9079         from fixinc.ptx.
9080         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
9081         ported from fixinc.ptx.
9082
9083 2003-08-26  Per Bothner  <pbothner@apple.com>
9084
9085         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
9086         (cpp_error_with_line):  Use fileline for appropriate parameter.
9087         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
9088         (struct cpp_reader):  Likewise for fields line and directive_line.
9089         (_cpp_begin_message):  Use fileline for appropriate parameter.
9090         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
9091         cpp_error):  Use fileline for appropriate parameters and variables.
9092         (print_location):  New local lin, since it is not a fileline.
9093
9094 2003-08-26  Roger Sayle  <roger@eyesopen.com>
9095
9096         PR middle-end/12002
9097         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
9098         (FLOAT_TYPE_P): Define in terms of these two new macros.
9099         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
9100         for complex floating point types.
9101
9102 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
9103
9104         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
9105         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
9106         s390_output_pool_entry.
9107
9108 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
9109
9110         * fixinc/inclhack.def (svr4_preproc_lint_on,
9111         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
9112         fixes, ported from fixinc.svr4.
9113
9114 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
9115
9116         * doc/install.texi (Prerequisites): Mention GNU make requirement.
9117
9118         * Makefile.in (AR_FOR_TARGET): Export it.
9119         (AR_CREATE_FOR_TARGET): Likewise.
9120         (AR_FLAGS_FOR_TARGET): Likewise.
9121         (AR_EXTRACT_FOR_TARGET): Likewise.
9122         (AWK): Likewise.
9123         (BUILD_PREFIX): Likewise.
9124         (BUILD_PREFIX_1): Likewise.
9125         (DESTDIR): Likewise.
9126         (GCC_FOR_TARGET): Likewise.
9127         (INCLUDES): Likewise.
9128         (INSTALL_DATA): Likewise.
9129         (LIB1ASMSRC): Likewise.
9130         (LIBGCC2_CFLAGS): Likewise.
9131         (MACHMODE_H): Likewise.
9132         (NM_FOR_TARGET): Likewise.
9133         (RANLIB_FOR_TARGET): Likewise.
9134         (libsubdir): Likewise.
9135         (slibdir): Likewise.
9136         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
9137         exporting.
9138         (libgcc.a): Don't pass them here.
9139         (stmp-multilib): Or here.
9140         (install-libgcc): Or here.
9141         (install-multilib): Or here.
9142         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
9143         (stage1_build): Or here.
9144
9145 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
9146
9147         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
9148         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
9149
9150 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
9151
9152         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
9153         "*fmaddsf", "*fmsubsf"): New insns.
9154
9155 2003-08-26  Roger Sayle  <roger@eyesopen.com>
9156
9157         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
9158         (C1*C2)/X when unsafe math optimizations are allowed.
9159         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
9160         math optimizations.  Minor code clean-ups.  Recursively call
9161         fold when constructing sub-expressions.
9162
9163 2003-08-26  Roger Sayle  <roger@eyesopen.com>
9164
9165         * builtins.c (fold_builtin_bitop): New function to perform constant
9166         folding of ffs, clz, ctz, popcount and parity builtin functions
9167         and their long and long long variants (such as ffsl and ffsll).
9168         (fold_builtin): fold_builtin_bitop when appropriate.
9169         * simplify-rtx.c (simplify_unary_operation): Honor both
9170         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
9171         evaluating clz and ctz at compile-time, for operands wider
9172         than HOST_WIDE_INT.
9173
9174 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
9175
9176         * builtins.c (build_function_call_expr): Don't set
9177         TREE_SIDE_EFFECTS here.
9178         * expr.c (emit_block_move_via_libcall): Likewise.
9179         (clear_storage_via_libcall): Likewise.
9180         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
9181         CALL_EXPRs.
9182
9183         * gcse.c (is_too_expensive): New function.
9184         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
9185
9186 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
9187
9188         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
9189         commented-out logic to use DCE threads (if present), add
9190         support for POSIX threads.
9191         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
9192         #defines for -pthread.  Add -lpthread to LIB_SPEC when
9193         -pthread.  In both cases take -mt as a synonym for -pthread
9194         for acc compatibility.
9195         Define GTHREAD_USE_WEAK to 0.
9196         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
9197         Remove old logic for DCE threads from LIB_SPEC.
9198         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
9199
9200 2003-08-25  Roger Sayle  <roger@eyesopen.com>
9201
9202         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
9203         return 0 for invalid argument types.  Instead drop through to a
9204         call of expand_call at the bottom of function.  If op is SQRT,
9205         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
9206
9207 2003-08-25  Richard Henderson  <rth@redhat.com>
9208
9209         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
9210         result when op0 is SImode.
9211
9212 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
9213
9214         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
9215         from fixinc.svr4.
9216         * fixinc/fixincl.x: Regenerate.
9217         * fixinc/tests/base/sys/signal.h: Regenerate.
9218
9219 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
9220
9221         * combine.c (simplify_comparison): Re-enable widening of comparisons
9222         with non-paradoxical subregs of non-REG expressions.
9223
9224 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
9225
9226         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
9227
9228 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
9229
9230         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
9231
9232 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9233
9234         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
9235         * c-pretty-print.h (c_pretty_printer): Now typedef to the
9236         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
9237         (struct c_pretty_print_info): Document.  Add new fields.
9238         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
9239         (pp_direct_abstract_declarator): New macro.
9240         (pp_ptr_operator): Likewise.
9241         (pp_simple_type_specifier): Likewise.
9242         (pp_expression): Likewise.
9243         (pp_parameter_list): Rename from pp_parameter_declaration.
9244         * c-pretty-print.c (pp_c_whitespace): Now a function.
9245         (pp_c_left_paren): Likewise.
9246         (pp_c_right_paren): Likewise.
9247         (pp_c_dot): Likewise.
9248         (pp_c_ampersand): Likewise.
9249         (pp_c_arrow): Likewise.
9250         (pp_c_semicolon): Likewise.
9251         (pp_c_type_cast): New function.
9252         (pp_c_space_for_pointer_operator): Likewise.
9253         (pp_c_call_argument_list): Likewise.
9254         (pp_c_cv_qualifier): Adjust prototype.
9255         (pp_c_type_qualifier_list): Likewise.
9256         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
9257         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9258         Adjust to follow standard grammar.
9259         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
9260         REFERENCE_TYPE.  Tidy.
9261         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
9262         (pp_c_parameter_declaration): Remove.
9263         (pp_c_abstract_declarator): Adjust prototype.
9264         (pp_c_direct_abstract_declarator): Likewise.
9265         (pp_c_type_id): Likewise.
9266         (pp_c_storage_class_specifier): Likewise.
9267         (pp_c_function_specifier): Likewise.
9268         (pp_c_declaration_specifiers): Likewise.
9269         (pp_c_direct_declarator): Likewise.
9270         (pp_c_declarator): Likewise.
9271         (pp_c_declarator): Likewise.
9272         (pp_c_declaration): Likewise.
9273         (pp_c_attributes): Likewise.  Tidy.
9274         (pp_c_function_definition): Adjust prototype.
9275         (pp_c_char): Likewise.
9276         (pp_c_string_literal): Likewise.
9277         (pp_c_integer_constant): Likewise.
9278         (pp_c_character_constant): Likewise.
9279         (pp_c_bool_constant): Likewise.
9280         (pp_c_enumeration_constant): Likewise.
9281         (pp_c_floating_constant): Likewise.
9282         (pp_c_constant): Likewise.
9283         (pp_c_identifier): Likewise.
9284         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
9285         (pp_c_initializer): Adjust prototype.
9286         (pp_c_init_declarator): Likewise.
9287         (pp_c_initializer_list): Likewise.
9288         (pp_c_id_expression): Likewise.
9289         (pp_c_postfix_expression): Likewise.
9290         (pp_c_expression_list): Likewise.
9291         (pp_c_unary_expression): Likewise.
9292         (pp_c_cast_expression): Likewise.
9293         (pp_c_multiplicative_expression): Likewise.
9294         (pp_c_additive_expression): Likewise.
9295         (pp_c_shift_expression): Likewise.
9296         (pp_c_relational_expression): Likewise.
9297         (pp_c_equality_expression): Likewise.
9298         (pp_c_and_expression): Likewise.
9299         (pp_c_exclusive_or_expression): Likewise.
9300         (pp_c_inclusive_or_expression): Likewise.
9301         (pp_c_logical_and_expression): Likewise.
9302         (pp_c_logical_or_expression): Likewise.
9303         (pp_c_conditional_expression): Likewise.
9304         (pp_c_assignment_expression): Likewise.
9305         (pp_c_expression): Likewise.  Tidy.
9306         (pp_c_statement): Likewise.  Document.
9307         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9308
9309         * c-lang.c (c_initialize_diagnostics): Update.
9310         * c-common.h (strip_pointer_operator): Declare.
9311         * c-common.c (strip_pointer_operator): Define.
9312
9313 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
9314
9315         PR c++/8795
9316         * tree.h (build_method_type_directly): Declare.
9317         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9318         (vector_size_helper): Likewise.
9319         * tree.c (build_method_type_directly): New function.
9320         (build_method_type): Use it.
9321
9322 2003-08-24  Richard Henderson  <rth@redhat.com>
9323
9324         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
9325         for 16-byte vector modes if sse not enabled; warn for abi change.
9326         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9327
9328 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
9329
9330         * rtlanal.c (may_trap_p): Simplify an integer comparison.
9331
9332 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9333
9334         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
9335         comment.  Enable for DYNIX/ptx systems (when they switch to
9336         regular fixincludes).
9337         * fixinc/fixincl.x: Regenerate.
9338
9339 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9340
9341         * config/i860/t-i860: New.
9342         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9343
9344 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
9345
9346         * c-decl.c (pushdecl): Only put decls which finish_struct will do
9347         something about onto incomplete chain.
9348         (finish_struct): If not removing type from incomplete
9349         list, update prev.
9350
9351 2003-08-20  Jan Hubicka  <jh@suse.cz>
9352
9353         PR target/11369
9354         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9355
9356         PR target/11031
9357         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9358         const_0_to_15_operand, const_0_to_255_operand): New predicates.
9359         * i386.h (PREDICATE_CODES): Add these.
9360         * i386.c (pinsrw and pextrw patterns): Use them.
9361
9362         PR target/10984
9363         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9364
9365         PR target/8869
9366         * expr.c (convert_modes): Deal properly with integer to vector
9367         constant conversion.
9368
9369         PR target/8871
9370         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9371
9372 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9373
9374         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9375         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9376         ("*movhi"): ... this.
9377         ("movqi", "*movqi"): Likewise.
9378         ("movqi_64"): Remove.
9379         ("*zero_extendhisi2_31"): Change predicate to s_operand.
9380
9381 2003-08-23  Dale Johannesen  <dalej@apple.com>
9382         * calls.c (emit_library_call_value_1): Fix obvious errors in
9383         arguments to emit_group_store.
9384
9385 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9386
9387         * calls.c (emit_library_call_value_1): Remove code related
9388         to LIBGCC_NEEDS_DOUBLE.
9389         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9390         * doc/tm.texi: Likewise.
9391         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9392
9393 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
9394
9395         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9396
9397 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
9398
9399         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9400         as well.  Put memory references in the varargs alias set.
9401         (mips_expand_prologue): Remove varargs handling from here.
9402
9403 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9404
9405         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9406         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9407         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9408         for function pointer calls.
9409         * config/s390/s390.md ("*negdi2_31"): Likewise.
9410
9411 2003-08-23  Roger Sayle  <roger@eyesopen.com>
9412
9413         * combine.c (apply_distributive_law): Correct comment.
9414
9415 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9416
9417         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9418
9419 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9420
9421         * config/i860/i860.c (i860_build_va_list): Create the va_decl
9422         declaration.  Document the va_list structure.
9423         (i860_va_start): Initialize the va_list structure.
9424         (i860_va_arg): Rewrite completely.
9425         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9426         * config/i860/varargs.asm: Do not allocate or initialize
9427         a va_list.  Return the address of the register save area.
9428
9429 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9430
9431         * config/iq2000/iq2000.c: Fix comment typos.
9432         * config/iq2000/iq2000.md: Likewise.
9433
9434 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9435
9436         * config/iq2000/iq2000.c: Follow spelling conventions.
9437         * config/iq2000/iq2000.h: Likewise.
9438         * config/mn10300/mn10300.c: Likewise.
9439
9440 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9441
9442         * config/i860/i860.c (output_move_double): Don't set latehalf
9443         to zero for CONST_INT (since it could be, e.g., -1).
9444
9445         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9446         (MODSI3_LIBCALL): ...with this one.
9447         (UREMSI3_LIBCALL): Replace this macro...
9448         (UMODSI3_LIBCALL): ...with this one.
9449
9450 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9451
9452         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9453         (output_delayed_branch): Remove prototype.
9454         (single_insn_src_p): Remove prototype.
9455         * config/i860/i860.c (single_insn_src_p): Remove function.
9456         (output_delayed_branch): Remove function.
9457         (output_delay_insn): Remove function.
9458         (va_start): Remove unconditional test and dead code, re-format.
9459         Fix coding style and spelling problems in various comments.
9460         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9461         (blockage pattern): ...and use it here.
9462         (all define_peephole patterns related to delayed branches): Remove.
9463         Fix coding style and spelling problems in various comments.
9464
9465 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9466
9467         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9468         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
9469         Convert all function definitions from traditional to ISO C90 syntax.
9470         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9471         with 'GCC'.  Remove all uses of the PARAMS macro.
9472         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9473         * config/i860/i860.md: Likewise.
9474         * config/i860/sysv4.h: Likewise.
9475         * config/i860/varargs.asm: Likewise.
9476
9477 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9478
9479         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9480         argument.
9481         (tdesc_section): Add prototype.
9482         Update copyright dates.
9483         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9484         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9485         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9486         (targetm): Likewise.
9487         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9488         for '%d' where necessary.
9489         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
9490         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
9491         by UNITS_PER_WORD when referencing (likewise for .floats).
9492         (I860_SVR4_VARARGS): Rename...
9493         (I860_SVR4_VA_LIST): ...to this.
9494         Call build() with 't' rather than 'field'.
9495         (i860_rtx_costs): New function.
9496         (TARGET_RTX_COSTS): Define.
9497         (i860_internal_label): New function.
9498         (TARGET_ASM_INTERNAL_LABEL): Define.
9499         (i860_file_start): New function.
9500         Update copyright dates.
9501         * config/i860/i860.h (CPP_PREDEFINES): Remove.
9502         (TARGET_CPU_CPP_BUILTINS): Define.
9503         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9504         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9505         (ASM_FILE_START): Remove.
9506         (ASM_FILE_START_1): Remove.
9507         (ASM_GLOBALIZE_LABEL): Remove.
9508         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9509         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9510         with targetm.asm_out.internal_label.
9511         Update copyright dates.
9512         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9513         (CPP_PREDEFINES): Remove.
9514         (TARGET_OS_CPP_BUILTINS): Define.
9515         (GLOBAL_ASM_OP): Define.
9516         (ASM_FILE_START): Remove.
9517         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9518         (TARGET_ASM_FILE_START): Define.
9519         Update copyright dates.
9520
9521 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9522
9523         * gcc/config.gcc (i860-*-sysv4*): Add target.
9524         * config/i860/i860-protos.h: New.
9525         * config/i860/i860.c: New.
9526         * config/i860/i860.h: New.
9527         * config/i860/i860.md: New.
9528         * config/i860/sysv4.h: New.
9529         * config/i860/varargs.asm: New.
9530         * config/i860/x-sysv4: New.
9531
9532 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9533
9534         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9535         Remove all uses of PARAMS macro.
9536         Convert all function definitions to ISO C90 syntax.
9537         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9538         * config/pa/fptr.c: Likewise.
9539         * config/pa/lib2funcs.asm: Likewise.
9540         * config/pa/long_double.h: Likewise.
9541         * config/pa/milli64.S: Likewise.
9542         * config/pa/pa-64.h: Likewise.
9543         * config/pa/pa-hpux.h: Likewise.
9544         * config/pa/pa-hpux10.h: Likewise.
9545         * config/pa/pa-hpux11.h: Likewise.
9546         * config/pa/pa-linux.h: Likewise.
9547         * config/pa/pa-modes.def: Likewise.
9548         * config/pa/pa-osf.h: Likewise.
9549         * config/pa/pa-pro-end.h: Likewise.
9550         * config/pa/pa.md: Likewise.
9551         * config/pa/pa32-linux.h: Likewise.
9552         * config/pa/pa64-linux.h: Likewise.
9553         * config/pa/pa64-hpux.h: Likewise.
9554         * config/pa/pa64-regs.h: Likewise.
9555         * config/pa/quadlib.c: Likewise.
9556         * config/pa/rtems.h: Likewise.
9557         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9558         all uses of the PARAMS macro.
9559         * config/pa/pa.h: Likewise.
9560         * config/pa/som.h: Likewise.
9561
9562         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9563         Remove all uses of PARAMS macro.
9564         Convert all function definitions to ISO C90 syntax.
9565         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9566         Remove all uses of PARAMS macro.
9567         * config/iq2000.h: Remove all uses of PARAMS macro.
9568         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9569
9570 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9571
9572         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9573         * config/s390/s390.c (gen_consttable): Remove.
9574         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9575         (s390_output_pool_entry): New function.
9576         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9577         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9578         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9579         (UNSPECV_POOL_ENTRY): ... this new constant.
9580         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9581         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9582         ("*pool_entry"): ... and replace by this new insn.
9583         ("literal_pool_31"): Do not emit anchor label if pool empty.
9584
9585         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9586         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9587         (s390_fixup_clobbered_return_reg): Remove.
9588         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9589         (s390_return_addr_rtx): Always retrieve return address from save area
9590         slot.  Use save_return_addr_p to force slot to be filled.
9591         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9592
9593 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
9594
9595         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9596         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9597         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9598         around SB-1 errata if TARGET_FIX_SB1 is set.
9599         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9600         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9601
9602 2003-08-22  Roger Sayle  <roger@eyesopen.com>
9603
9604         * hashtable.c (ht_expand): Avoid calculating rehash for the common
9605         case that the first probe hits an empty hash table slot.
9606
9607 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9608
9609         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9610
9611 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9612
9613         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9614         (ptr_extend_plus_imm): ... this.
9615         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9616         optimization in C++.
9617         (ia64_output_mi_thunk): Support ILP32 mode.
9618
9619 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9620
9621         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9622         function.
9623         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9624
9625 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9626
9627         * config/i386/i386.c (const_int_1_operand): Simplify an
9628         integer comparison.
9629
9630 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
9631
9632         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9633         * config/rs6000/ppc64-fp.c: Likewise.
9634
9635 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9636
9637         * cfgcleanup.c: Fix comment typos.
9638         * emit-rtl.c: Likewise.
9639         * optabs.c: Likewise.
9640         * ra-build.c: Likewise.
9641         * rtlanal.c: Likewise.
9642         * tree.h: Likewise.
9643
9644 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9645
9646         * c-decl.c: Fix comment formatting.
9647         * cfgrtl.c: Likewise.
9648         * combine.c: Likewise.
9649         * convert.c: Likewise.
9650         * dominance.c: Likewise.
9651         * dwarf2out.c: Likewise.
9652         * dwarfout.c: Likewise.
9653         * expmed.c: Likewise.
9654         * fold-const.c: Likewise.
9655         * gcov.c: Likewise.
9656         * genattrtab.c: Likewise.
9657         * ggc-common.c: Likewise.
9658         * mips-tfile.c: Likewise.
9659         * regmove.c: Likewise.
9660
9661 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9662
9663         * builtin-attrs.def: Fix comment formatting.
9664         * c-pretty-print.c: Likewise.
9665         * diagnostic.h: Likewise.
9666         * langhooks.h: Likewise.
9667         * recog.c: Likewise.
9668         * simplify-rtx.c: Likewise.
9669         * tree.def: Likewise.
9670
9671 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9672
9673         * config/m68k/m68k-protos.h: Convert to ISO C90.
9674         * config/m68k/m68k.c: Likewise.
9675
9676 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
9677             Paul Dale  <pauli@snapgear.com>
9678             Peter Barada <peter@baradas.org>
9679
9680         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9681         ColdFire cores.
9682
9683 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
9684
9685         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9686         * config.gcc (*-*-openbsd): Don't set tm_file.
9687         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9688         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9689         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9690         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9691         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9692         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9693         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9694         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9695         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9696         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9697         xscale-*-coff): Use explicit and complete lists of target headers
9698         to include.  Move definitions to tm_defines where appropriate.
9699         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9700         not-yet-contributed configuration.
9701
9702         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9703         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9704         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9705         * config/i386/nto.h, config/iq2000/iq2000.h,
9706         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9707         * config/m68k/linux.h, config/m68k/m68k-aout.h
9708         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9709         * config/m68k/netbsd.h, config/m68k/openbsd.h
9710         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9711         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9712         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9713         Remove includes of other target config headers, and
9714         definitions of macros moved to tm_defines lists.  Add #undefs
9715         where now necessary to prevent redefinition warnings.
9716
9717         * config/h8300/coff.h: New file split out of...
9718         * config/h8300/elf.h: ...here.
9719         * config/m68k/hp320base.h: New file split out of...
9720         * config/m68k/hp320.h: ...here.
9721         * config/rs6000/lynxbase.h: New file split out of...
9722         * config/rs6000/lynx.h: ...here.
9723
9724         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9725         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9726
9727         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9728         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9729         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9730         Remove unnecessary #ifndef.
9731         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9732         [under IN_LIBGCC2] with config/.
9733
9734 2003-08-21  Per Bothner  <pbothner@apple.com>
9735
9736         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
9737         to cpp_push_buffer.
9738         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
9739         by return_at_eof check.  Always call _cpp_pop_buffer at end.
9740
9741 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
9742
9743         PR target/11805
9744         * config/h8300/h8300.md (two anonymous patterns): Remove.
9745
9746 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
9747
9748         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9749         * config/mips/mips.c (function_arg_pass_by_reference): Never return
9750         true for n32 & n64.
9751
9752 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
9753
9754         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9755         and similarly in (A | C) == D where C & ~D != 0.
9756
9757 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
9758
9759         PR 8180
9760         * configure.in: When testing with_libs and with_headers, treat
9761         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
9762         * configure: Regenerate.
9763
9764 2003-08-20  Peter Barada <peter@baradas.org>
9765
9766         * longlong.h (umul_ppmm): Add ColdFire support.
9767
9768 2003-08-20  Peter Barada <peter@baradas.org>
9769             Bernardo Innocenti  <bernie@develer.com>
9770
9771         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9772         * config/m68k/m68k.h: Likewise.
9773         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9774         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9775         * config/m68k/linux.h: Likewise.
9776         * config/m68k/m68k.c: Likewise.
9777         * config/m68k/m68k.md: Likewise.
9778         * config/m68k/m68kelf.h: Likewise.
9779         * config/m68k/netbsd-elf.h: Likewise.
9780         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9781
9782 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
9783
9784         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9785         * config/m68k/m68k.md: Likewise.
9786
9787 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
9788
9789         PR java/11996
9790         Revert this change:
9791         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9792         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9793         types with precisions other than those given by native machine
9794         modes.
9795
9796 2003-08-20  Gunther Nikl  <gni@gecko.de>
9797
9798         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9799         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9800         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9801         * config/m68k/m68k.md (anonymous define_insn): Likewise
9802         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9803         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9804         code selected by NO_ASM_FMOVECR
9805
9806 2003-08-20  Gunther Nikl  <gni@gecko.de>
9807
9808         * config/m68k/m68k.c (output_move_const_into_data_reg,
9809         output_move_himode): unify MOTOROLA/MIT handling of moveq
9810         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9811         Likewise
9812
9813 2003-08-20  Gunther Nikl  <gni@gecko.de>
9814
9815         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9816         label name
9817         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9818         HOST_WIDE_INT_PRINT_DEC with %wd
9819
9820 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
9821
9822         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9823         redefine warning.
9824
9825 2003-08-20  Roger Sayle  <roger@eyesopen.com>
9826
9827         PR middle-end/11984
9828         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9829         operands before calling tree_int_cst_lt when performing associative
9830         transformations.
9831
9832 2003-08-20  Jason Merrill  <jason@redhat.com>
9833
9834         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9835         (EXPR_CHECK): Don't check for 'r' or 's' if we're
9836         checking IS_EXPR_CODE_CLASS.
9837         * calls.c (calls_function_1): Likewise.
9838         * fold-const.c (fold): Likewise.
9839         * tree.c (iterative_hash_expr): Likewise.
9840         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9841
9842 2003-08-20  Gunther Nikl  <gni@gecko.de>
9843
9844         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9845         depending on MOTOROLA_BSR
9846         * config/m68k/m68k.md (anonymous define_insn): Likewise
9847
9848 2003-08-20  Jason Merrill  <jason@redhat.com>
9849
9850         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9851         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9852         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9853         * dojump.c (do_jump): Likewise.
9854         * fold-const.c (operand_equal_p, fold): Likewise.
9855         (tree_expr_nonnegative_p): Likewise.
9856
9857         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9858         TYPE_USER_ALIGN for FIELD_DECLs.
9859
9860         * attribs.c (decl_attributes): Rebuild the function pointer type after
9861         changing the target type.
9862         * tree.c (get_qualified_type): Also check that the attributes match.
9863
9864 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
9865
9866         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9867         * objc/config-lang.in (stagestuff): ... to here.
9868
9869 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9870
9871         PR c++/11946
9872         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9873         NOP_EXPR) when necessary.
9874         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9875         types with precisions other than those given by native machine
9876         modes.
9877
9878 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
9879
9880         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9881         because some macro is defined.
9882
9883         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9884         options.
9885         * config/i386/darwin.h (ASM_SPEC): New.
9886         (SUBTARGET_EXTRA_SPECS): New.
9887         * config/rs6000/darwin.h (ASM_SPEC): New.
9888         (SUBTARGET_EXTRA_SPECS): New.
9889         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9890         a cross-compiler between two different processors on Darwin.
9891         * configure: Regenerate.
9892
9893 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9894
9895         * builtins.c: Fix comment typos.
9896         * c-common.c: Likewise.
9897         * c-decl.c: Likewise.
9898         * c-pretty-print.c: Likewise.
9899         * cfgbuild.c: Likewise.
9900         * cfglayout.c: Likewise.
9901         * cfgloopanal.c: Likewise.
9902         * cgraphunit.c: Likewise.
9903         * cppfiles.c: Likewise.
9904         * dwarfout.c: Likewise.
9905         * expr.c: Likewise.
9906         * fold-const.c: Likewise.
9907         * gcse.c: Likewise.
9908         * ggc-page.c: Likewise.
9909         * haifa-sched.c: Likewise.
9910         * pretty-print.c: Likewise.
9911         * tree.c: Likewise.
9912         * tree.h: Likewise.
9913         * value-prof.c: Likewise.
9914
9915 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9916
9917         * c-decl.c: Follow spelling conventions.
9918         * cppfiles.c: Likewise.
9919
9920 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9921
9922         * c-common.c: Fix comment formatting.
9923         * c-common.h: Likewise.
9924         * c-decl.c: Likewise.
9925         * cppinit.c: Likewise.
9926         * cpplib.h: Likewise.
9927         * emit-rtl.c: Likewise.
9928         * input.h: Likewise.
9929         * line-map.h: Likewise.
9930         * opts.c: Likewise.
9931         * opts.h: Likewise.
9932         * simplify-rtx.c: Likewise.
9933
9934 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
9935
9936         * unwind-c.c: Add libgcc-style exception.
9937         * unwind-dw2.c: Likewise.
9938         * unwind-pe.h: Likewise.
9939         * unwind-sjlj.c: Likewise.
9940         * unwind.inc: Likewise.
9941
9942 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9943
9944         PR c/5582 PR c++/10538
9945         * langhooks-def.h (lhd_decl_uninit): Declare.
9946         (LANG_HOOKS_DECL_UNINIT): New macro.
9947         (LANG_HOOKS_INITIALIZER): Adjust.
9948         * langhooks.h (struct lang_hooks): Add new field
9949         decl_uninit.
9950         * langhooks.c (lhd_decl_uninit): Define.
9951         * c-common.c (c_decl_uninit_1): New function.
9952         (c_decl_uninit): New function.
9953         (warn_init_self): Define.
9954         * c-common.h (c_decl_uninit): Declare.
9955         (warn_init_self): Declare.
9956         * c.opt: Introduce -Winit-self.
9957         * c-opts.c (c_common_handle_options): Set warn_init_self.
9958         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9959         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
9960         * function.c (uninitialized_vars_warning): Call the language hook.
9961         * doc/invoke.texi: Document -Winit-self.
9962
9963 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
9964
9965         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9966         to use better predicates and constraints.  Define new
9967         instruction to handle "trap_if" with DI-mode arguments.
9968         (conditional_trap): FAIL if trap code is not 0.
9969
9970 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9971
9972         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9973         strstr with $pb to a strcompare with "<pic base>"
9974         (ix86_output_addr_diff_elt): Output the real pic base.
9975
9976 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9977
9978         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9979         (LANG_HOOKS_INITIALIZER): Correct.
9980         * c-lang.c: Likewise.
9981
9982 2003-08-19  Jan Hubicka  <jh@suse.cz>
9983
9984         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9985         (cgraph_varpool_mark_needed_node): Likewise.
9986         * cgraph.h (notice_global_symbol): Declare
9987         * varasm.c (notice_global_symbol): Break out from ...
9988         (assemble_start_function): ... here; update for variables.
9989         (assemble_variable): Use notice_global_symbol.
9990
9991 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9992
9993         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9994         expect SFmode and DFmode arguments to be passed in FPRs,
9995         regardless of the underlying type.
9996
9997 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9998
9999         PR target/11924
10000         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
10001         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
10002
10003 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
10004
10005         PR c/11207
10006         * c-typeck.c (set_init_index): Check for negative index.
10007
10008 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
10009
10010         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
10011         call0 ABI.
10012         * config/xtensa/crtn.asm (_init, _fini): Likewise.
10013         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
10014         __umodsi3, __modsi3): Likewise.
10015         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
10016         $(INCLUDES).
10017
10018 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
10019
10020         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
10021
10022 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
10023
10024         * config/mips/mips.md: Quote C code in braces.  Remove use of
10025         fake const0_rtx operands.  Remove double backslashes.  Use \;.
10026         Remove workarounds for bogus warnings.
10027
10028 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
10029
10030         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
10031         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
10032         rather than TARGET_MIPS4300.
10033         (mulsf3_internal, mulsf3_r4300): Likewise.
10034
10035 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
10036
10037         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
10038
10039 2003-08-17  Roger Sayle  <roger@eyesopen.com>
10040
10041         * simplify-rtx.c (associative_constant_p): New function to test
10042         whether an RTX expression is an immediate constant.
10043         (simplify_associative_operation): New function to perform some
10044         reassociation optimizations of associative binary expressions.
10045         (simplify_binary_operation): Use simplify_associative_operation
10046         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
10047         Floating point expressions are only reassociated when unsafe
10048         math optimizations are permitted.
10049
10050 2003-08-17  Andreas Jaeger  <aj@suse.de>
10051
10052         * config/alpha/alpha.md: Remove usage of PARAMS.
10053
10054         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
10055         * config/i386/i386-interix.h: Likewise.
10056         * config/i386/winnt.c: Likewise.
10057         * config/i386/cygming.h: Likewise.
10058         * config/i386/cygwin2.c: Likewise.
10059         * config/darwin.c: Likewise.
10060         * config/darwin-c.c: Likewise.
10061         * config/darwin-protos.h: Likewise.
10062         * config/darwin.h: Likewise.
10063         * config/s390/s390-protos.h: Likewise.
10064         * config/s390/s390.c: Likewise.
10065         * config/ia64/ia64.c: Likewse
10066         * config/ia64/ia64-protos.h: Likewise.
10067         * config/ia64/ia64-c.c: Likewise.
10068
10069 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10070
10071         * config/sparc/sparc.c: Convert to ISO C.
10072
10073         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
10074         * config/sparc/sparc.c: Likewise.
10075
10076 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
10077
10078         PR c++/11512
10079         * stmt.c (expand_expr_stmt_value): Don't warn about any void
10080         typed expression.
10081
10082 2003-08-16  Jan Hubicka  <jh@suse.cz>
10083
10084         * i386.c (ix86_fntype_regparm): Rename from ...
10085         (ix86_function_regparm): ... this one; add fastcall and local
10086         functions.
10087         (ix86_function_ok_for_sibcall): Update.
10088         (ix86_return_pops_args): Likewise.
10089         (init_cumulative_args): Likewise.
10090         (x86_can_output_mi_thunk): Likewise.
10091         (function_arg): Fix formating.
10092         (x86_this_parameter): Fix fastcall.
10093         (x86_output_mi_thunk): Likewise.
10094
10095         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
10096         body as reachable; mark nested functions as needed too.
10097         (dump_cgraph): Do not output global.calls.
10098         * cgraph.h (cgraph_global_info): Kill.
10099         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
10100         (record_call_1): Speedup.
10101         (cgraph_analyze_function): Break out from ...; compute inlining
10102         parameters.
10103         (cgraph_finalize_compilation_unit): ... here.
10104         (cgraph_mark_inline): Kill computation of calls.
10105         (cgraph_decide_inlining): Do not compute most of initial values.
10106
10107 2003-08-14  Roger Sayle  <roger@eyesopen.com>
10108
10109         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
10110         to negate if either operand is easy to negate, if we don't care
10111         about sign-dependent rounding.
10112         (negate_expr): Make the logic to negate a REAL_CST explicit.
10113         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
10114         that's easy to negate, if we don't honor sign-dependent rounding.
10115         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
10116         negate, and the symmetric A * -B as -A * B if A is easy to negate.
10117         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
10118         -C/D if B and C are cheap to negate.  Add an explicit rule to
10119         optimize X/-1.0 as -X when we don't care about signaling NaNs.
10120
10121 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
10122
10123         * Makefile.in (tm_file): Rename tm_include_list.
10124         (tm_p_file): Rename tm_p_include_list.
10125         (build_xm_file): Rename build_xm_include_list.
10126         (host_xm_file): Rename host_xm_include_list.
10127         (xm_file): Rename xm_include_list.
10128         (xm_file_list): Add to be substituted.
10129         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
10130         Update to match.
10131         (bt-load.o): Add missing dependency on $(TM_H).
10132         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
10133         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
10134         build_xm_file, generate both *_file_list and *_include_list
10135         values from it.  (xm_file_list was formerly not being generated.)
10136         In *_include_list, prefix the names of all headers found in
10137         $(srcdir)/config with config/.  In each loop, consider only
10138         the special case files that can actually appear in that list.
10139         AC_SUBST all *_file_list and all *_include_list variables; do
10140         not AC_SUBST the plain *_file variables.
10141         * configure: Regenerate.
10142
10143 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10144
10145         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
10146
10147 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10148
10149         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
10150         direct calls.
10151         (attr_length_call): Include it here.  Improve length estimate for
10152         local calls.
10153         (output_call): Use targetm.binds_local_p.
10154
10155 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10156
10157         * builtins.c (CASE_MATHFN): New helper macro.
10158         (mathfn_built_in): Simplify and sort.
10159
10160         * protoize.c (substr): Delete, callers changed to `strstr'.
10161
10162 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
10163
10164         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
10165         * config/iq2000/xm-iq2000.h: Delete file.
10166
10167 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
10168
10169         * gengtype.c (walk_type): Process a subobject before processing
10170         the pointer that points to the subobject.
10171
10172 2003-08-13  Per Bothner  <pbothner@apple.com>
10173
10174         * regclass.c (init_reg_modes):  Make non-static.
10175         Rename to init_reg_modes_once per new naming convention.
10176         (init_regs):  Don't call init_reg_modes here.
10177         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
10178         * rtl.h (init_reg_modes_once):  New declaration.
10179         * toplev.c (backend_init):  Call init_regs after init_emit_once.
10180
10181 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
10182
10183         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
10184         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
10185
10186 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
10187
10188         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
10189         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
10190
10191 2003-08-13  Dale Johannesen  <dalej@apple.com>
10192
10193         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
10194         handling of decrement-and-branch farther than 32 bits.
10195
10196 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
10197
10198         * configure.in (make_compare_target): Move test to ...
10199         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
10200         * configure: Regenerate.
10201
10202 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
10203
10204         * config/mips/iris6.h: Convert to C90 prototypes.
10205         * config/mips/irix6-libc-compat.c: Likewise.
10206         * config/mips/mips-protos.h: Likewise.
10207         * config/mips/mips.c: Likewise.
10208
10209 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
10210
10211         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
10212         for selected machines.  Comment heavily.
10213         fixinc/fixincl.x: Rebuild.
10214         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
10215
10216 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
10217
10218         * config/mips/mips.h: Tweak various comments.
10219         * config/mips/mips.c: Likewise.
10220
10221 2003-08-11  James E Wilson  <wilson@tuliptree.org>
10222
10223         PR optimization/11319
10224         PR target/10021
10225         * alias.c (find_base_value, case REG): Return 0 not src if no base
10226         found.
10227
10228 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10229
10230         * gcse.c (gmalloc): Fix last change.
10231
10232 2003-08-11  Roger Sayle  <roger@eyesopen.com>
10233
10234         * simplify-rtx.c (simplify_binary_operation): Replace calls to
10235         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
10236         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
10237         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
10238
10239 2003-08-11  Roger Sayle  <roger@eyesopen.com>
10240
10241         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
10242         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
10243         typecode for an ABS_EXPR.
10244
10245         * doc/c-tree.texi: Document ABS_EXPR.
10246
10247 2003-08-11  Roger Sayle  <roger@eyesopen.com>
10248
10249         * fold-const.c (fold): Optimize any associative floating point
10250         operator with -funsafe-math-optimizations, not just MULT_EXPR.
10251
10252 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10253
10254         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10255         information in SHmedia case too.
10256         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10257         Likewise.
10258         (__set_fpscr): Use an access via GOT for PIC case.
10259
10260 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
10261
10262         * configure.in (intermodule): Make switch test more portable.
10263         * configure: Regenerate.
10264
10265 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
10266
10267         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10268         (restrap): Likewise.
10269
10270 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10271
10272         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
10273         (grealloc): Size argument is a size_t.
10274         (gcalloc): New function.  Use throughout in lieu of
10275         gmalloc/memset.
10276
10277         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10278         xmalloc/memset.
10279         * config/ia64/ia64.c (ia64_reorg): Likewise.
10280         * conflict.c (conflict_graph_new): Likewise.
10281         * fixinc/fixincl.c (run_compiles): Likewise.
10282         * genattrtab.c (optimize_attrs): Likewise.
10283         * genrecog.c (new_decision): Likewise.
10284         * haifa-sched.c (schedule_block): Likewise.
10285         * hashtable.c (ht_create): Likewise.
10286
10287 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
10288
10289         * config/xtensa/lib2funcs.S: Fix whitespace.
10290         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10291         syntax where appropriate.  Remove unnecessary backslash escapes.
10292         Reformat comments and fix some code formatting.
10293         (extendqisi2): Rearrange conditional.
10294         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10295         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10296         of fatal_insn.
10297
10298 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
10299
10300         * config/mips/mips.c: Various formatting fixes.
10301         (override_options): Resync -mtune handling with gas.
10302         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10303         * config/mips/mips.h: More formatting fixes.
10304         (mips_abi): Move declaration.
10305         * config/mips/mips.md (exception_receiver): Add mode to
10306         unspec_volatile.
10307
10308 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
10309
10310         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10311         evsplatfi here.
10312         (bdesc_1arg): Remove evsplati and evsplatfi.
10313
10314 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
10315
10316         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10317         into account.
10318
10319 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10320
10321         * builtins.c (expand_builtin_strcat): Optimize constant strings.
10322
10323 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10324
10325         * pretty-print.c (pp_base_indent): Rename from pp_indent.
10326         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10327         (struct c_pretty_print_info): Add more fields.
10328         (pp_c_left_paren): Move to c-pretty-print.c.
10329         (pp_c_right_paren): Likewise.
10330         (pp_c_left_brace): Likewise.
10331         (pp_c_right_brace): Likewise.
10332         (pp_c_left_bracket): Likewise.
10333         (pp_c_right_bracket): Likewise.
10334         (pp_c_declarator): Declare.
10335         (pp_c_direct_declarator): Likewise.
10336         (pp_c_specifier_qualifier_list): Likewise.
10337         (pp_c_type_id): Likewise.
10338         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10339         (pp_c_type_qualifier_list): New.
10340         (pp_c_pointer): Likewise.
10341         (pp_c_parameter_type_list): Likewise.
10342         (pp_c_function_definition): Likewise.
10343         (pp_c_id_expression): Likewise.
10344         (pp_c_simple_type_specifier): Tidy.
10345         (pp_c_unary_expression): Likewise.
10346         (pp_c_expression): Likewise.
10347         (pp_c_pretty_printer_init): Likewise.
10348         (pp_c_specifier_qualifier_list): Rework..
10349         (pp_c_abstract_declarator): Likewise.
10350         (pp_c_postfix_expression): Likewise.
10351         (pp_c_primary_expression): Likewise.
10352         (pp_c_cast_expression): Likewise.
10353         (pp_c_direct_abstract_declarator): Likewise.
10354         (pp_c_storage_class_specifier): Likewise.
10355         (pp_c_function_specifier): Likewise.
10356         (pp_c_declaration_specifiers): Likewise.
10357         (pp_c_direct_declarator): Likewise.
10358         (pp_c_declarator): Likewise.
10359         (pp_c_declaration): Likewise.
10360         (pp_c_statement): Likewise.
10361         (pp_c_integer_constant): Rename from pp_c_integer_literal.
10362         (pp_c_character_constant): Rename from pp_c_character_literal.
10363         (pp_c_bool_constant): Rename from pp_c_bool_literal.
10364         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10365         (pp_c_floating_constant): Rename from pp_c_real_literal.
10366         (pp_c_constant): Rename from pp_c_literal.
10367         * c-lang.c: Include diagnostic.h and c-pretty-print.h
10368         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10369         (c_initialize_diagnostics): New.
10370         * Makefile.in (c-lang.o): Update dependency.
10371
10372 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
10373
10374         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10375
10376 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
10377
10378         * config/mips/mips.c (mips_no_mips16_string): Remove.
10379         (override_options): Don't handle -mips16 as part of -mipsN.
10380         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10381         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10382         (TARGET_OPTIONS): Remove -mno-mips16.
10383
10384 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
10385
10386         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10387         (coprocessor2_operand): Likewise.
10388         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10389         (lookup_name): Remove declaration.
10390         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
10391         (mips16, mips_abicalls): Remove.
10392         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10393         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10394         (coprocessor_operand, coprocessor2_operand): Remove.
10395         (override_options): Don't set mips16 or mips_abicalls.
10396         (print_operand): Don't expect SIGN_EXTEND operands.
10397         (mips_secondary_reload_class): Likewise.
10398         (mips_output_conditional_branch): Remove disabled long-branch code.
10399         * config/mips/mips.h (call_used_regs): Remove declaration.
10400         (may_call_alloca): Likewise.
10401         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10402         (mips_abicalls, mips16): Remove declarations.
10403         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10404         (CC1_SPEC): Remove outdated comment.
10405         (MIPS_VERSION, MACHINE_TYPE): Remove.
10406         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10407         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10408         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10409         (PUSH_ROUNDING): Likewise.
10410         (ASSEMBLER_SCRATCH_REGNUM): Remove.
10411         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10412         and mips16 with TARGET_MIPS16.
10413
10414 2003-08-09  Per Bothner  <pbothner@apple.com>
10415
10416         * cppinit.c (cpp_read_main_file):  Split out source-independent
10417         initialization to separate function ...
10418         (cpp_post_options):  New function.
10419         * cppfiles.c (cpp_stack_file):  Rename public name to ...
10420         (_cpp_stack_file):  New internal function name.
10421         * cpplib.h:  Update accordingly.
10422         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
10423         (cpp_read_main_file):  Don't initialize line here.
10424         * c-opts.c (c_common_post_options):  Call cpp_post_options.
10425         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
10426         * fix-header.c (read_scan_file):  Call cpp_post_options.
10427
10428 2003-08-09  Per Bothner  <per@bothner.com>
10429
10430         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
10431
10432 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10433
10434         * pa.c (pa_asm_output_mi_thunk): Fix typo.
10435
10436 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
10437
10438         PR preprocessor/11839
10439         * cppfiles.c (open_file): Handle ENOTDIR.
10440
10441 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
10442
10443         PR target/11699
10444         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10445
10446 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10447
10448         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
10449         source/destination is not a register operand.
10450
10451 2003-08-08  Richard Henderson  <rth@redhat.com>
10452
10453         PR target/11535
10454         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10455         RETURN_ADDRESS_POINTER_REGNUM.
10456         (ia64_expand_prologue): Don't frob it.
10457         (ia64_output_function_epilogue): Likewise.
10458         (ia64_return_addr_rtx): New.
10459         (ia64_split_return_addr_rtx): New.
10460         * config/ia64/ia64-protos.h: Update.
10461         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10462         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10463         (GENERAL_REGNO_P): Don't check it.
10464         (AR_*_REGNUM): Renumber.
10465         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10466         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10467         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10468         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10469         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10470         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10471         (movdi_ret_addr): New.
10472
10473 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
10474
10475         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10476
10477 2003-08-08  Roger Sayle  <roger@eyesopen.com>
10478
10479         * tree.h (get_identifier) Define a macro form of get_identifier
10480         that calls get_identifier_with_length when the string is constant.
10481         (get_identifier_with_length): Change type of second argument to
10482         size_t in prototype.
10483         * stringpool.c (get_identifier): Undefine the macro before giving
10484         the function definition.
10485         (get_identifier_with_length): Change  type of second argument to
10486         size_t in function definition.
10487         * hashtable.c (calc_hash): Change type of second argument to size_t.
10488         (ht_lookup): Change type of third argument to size_t.  Reorganize
10489         to speed-up the cases where the hash table slot is empty, or the
10490         first probe matches (i.e. there isn't a collision).
10491         * hashtable.h (ht_lookup): Adjust function prototype.
10492
10493 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
10494
10495         PR target/9697
10496         PR target/11777
10497         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10498
10499 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
10500
10501         * common.opt: Add debug switches.
10502         * flags.h (use_gnu_debug_info_extensions): Boolify.
10503         * opts.c (write_symbols, debug_info_level,
10504         use_gnu_debug_info_extensions): Move from toplev.c.
10505         (set_debug_level): New.
10506         (common_handle_options): Handle debug switches.
10507         (print_help): Display target options directly.
10508         * toplev.c (debug_hooks): Don't initialize.
10509         (write_symbols, debug_info_level,
10510         use_gnu_debug_info_extensions): Move to opts.c.
10511         (debug_args, display_help, decode_g_option): Remove.
10512         (process_options): Set no debug if level zero here,
10513         and no-debug-hooks.  Error here if impossible debug format selected.
10514         * toplev.h (display_help, decode_g_option): Remove.
10515
10516 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
10517
10518         * tree.c (get_file_function_name_long): Fix size of alloca() area.
10519
10520 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
10521
10522         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10523         and gcc_cv_prog_cmp_skip.
10524         * configure: Regenerate.
10525
10526 2003-08-08  Stan Cox  <scox@redhat.com>
10527
10528         * config/iq2000: New port.
10529         * config.gcc (iq2000-*-elf): Added.
10530         * doc/install.texi (Specific):  Add iq2000 description.
10531
10532 2003-08-08  Andreas Schwab  <schwab@suse.de>
10533
10534         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10535         and insert missing empty argument.
10536         * configure: Regenerate.
10537
10538 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10539
10540         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10541         (attr_length_millicode_call): Likewise.
10542         (attr_length_call): Likewise.  Revise some maximum insn lengths.
10543         (attr_length_indirect_call): Likewise.
10544         (output_call): Fix thinko that added extra nop.
10545         * pa.h (IN_NAMED_SECTION_P): Define.
10546
10547         PR c++/11712
10548         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10549         __STDC_EXT__ when using C++ dialect.
10550
10551 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
10552
10553         * sh.c (calc_live_regs): If the return address pointer is live,
10554         force pr live.
10555         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10556         for saves / restores.
10557         (sh_expand_epilogue): If sh_media_register_for_return returns a
10558         register number, flag the instructions that restores PR_MEDIA_REG
10559         as possibly dead.
10560         Remove dead update of offset.
10561         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10562         we can use the result of get_hard_reg_initial_val.
10563         * sh.md (UNSPEC_RA): New constant.
10564         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10565         (load_ra).  Handle UNSPEC_RA.
10566         (sibcall_media): Use PR_MEDIA_REG.
10567
10568         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10569         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10570         needs saving on SHmedia.
10571
10572 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
10573
10574         * config/s390/s390.md: Replace all occurrences of \\t with \t.
10575
10576 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
10577
10578         * local-alloc.c (combine_regs): Fix comment typo.
10579
10580 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
10581
10582         * c-decl.c (builtin_decls): Replace with first_builtin_decl
10583         and last_builtin_decl.
10584         (c_init_decl_processing): Initialize both.
10585         (c_reset_state): Iterate from first_builtin_decl to
10586         last_builtin_decl inclusive to reintroduce builtins.
10587
10588 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
10589
10590         * doc/extend.texi (Function Attributes): Document the IA-64 version
10591         of the "model" attribute.
10592
10593         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10594         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10595         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10596
10597         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10598         (ia64_encode_section_info): Likewise.
10599         (ia64_attribute_table): Add "model" attribute.
10600         (TARGET_ENCODE_SECTION_INFO): Define.
10601         (small_addr_symbolic_operand): New function.
10602         (got_symbolic_operand): Return 0 for a symbolref to an object
10603         in the small address area.
10604         (enum ia64_addr_area): New type.
10605         (small_ident1): New variable.
10606         (small_ident2): Likewise.
10607         (init_idents): New function.
10608         (ia64_get_addr_area): Likewise.
10609         (ia64_encode_addr_area): Likewise.
10610         (ia64_encode_section_info): Likewise.
10611         (ia64_expand_load_address): For symbolic references to objects in
10612         the small-address-area, load the address via gen_rtx_SET() (which,
10613         eventually, will expand into "addl").
10614
10615 2003-08-06  Per Bothner  <pbothner@apple.com>
10616
10617         * line-map.h (fileline):  New typedef.
10618         (struct line_map, linemap_add, linemap_lookup):  Use it.
10619         * input.h (struct location_s):  Comment notes that long-term we want
10620         to replace it by fileline.
10621
10622 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
10623
10624         Fix SHcompact exception handling:
10625         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10626         by the prologue, return a MEM with return_address_pointer_rtx
10627         as address.
10628         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10629         (RETURN_ADDR_OFFSET): Don't define.
10630         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10631         registers that are visible in compact mode.  Show that SHmedia
10632         registers still exist in compact mode, even if there are not
10633         readily accessible.
10634         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10635         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
10636         and DW_EH_PE_pcrel for pic data.
10637         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10638         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10639         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10640         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10641         * sh.md (movsi_media-1): New splitter.
10642
10643 2003-08-06  Graeme Peterson <gp@qnx.com>
10644
10645         * config/i386/nto.h: New.
10646         * config/i386/t-nto: New.
10647         * config.gcc (i[34567]86-*-nto-qnx*): New.
10648
10649 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
10650
10651         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
10652
10653 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
10654
10655         * calls.c (load_register_parameters): Arrange for call_fusage to
10656         report the whole register as used when shifting to the msb.
10657
10658 2003-08-05  Roger Sayle  <roger@eyesopen.com>
10659
10660         * builtins.c (expand_builtin): When not optimizing, call the library
10661         function for all builtins that have library functions (except alloca).
10662
10663 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
10664
10665         * c.opt: Introduce -fworking-directory.
10666         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10667         * c-common.h (flag_working_directory): Declare.
10668         * c-common.c (flag_working_directory): Define.
10669         * c-opts.c (c_common_handle_options): Set it.
10670         (sanitize_cpp_opts): Set...
10671         * cpplib.h (struct cpp_options): ... working_directory option.
10672         (struct cpp_callbacks): Add dir_change.
10673         * cppinit.c (read_original_filename): Call...
10674         (read_original_directory): New.  Look for # 1 "directory//"
10675         and process it.
10676         (cpp_read_main_file): Call dir_change callback if working_directory
10677         option is set.
10678         * gcc.c (cpp_unique_options): Pass -g*.
10679         * c-lex.c (cb_dir_change): New.
10680         (init_c_lex): Set dir_change callback.
10681         * toplev.c (src_pwd): New static variable.
10682         (set_src_pwd, get_src_pwd): New functions.
10683         * toplev.h (get_src_pwd, set_src_pwd): Declare.
10684         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10685         * dwarf2out.c (gen_compile_unit_die): Likewise.
10686         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10687
10688 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10689
10690         * pretty-print.h (pp_set_line_maximum_length): Make macro.
10691         (pp_set_prefix): Likewise.
10692         (pp_destroy_prefix): Likewise.
10693         (pp_remaining_character_count_for_line): Likewise.
10694         (pp_clear_output_area): Likewise.
10695         (pp_formatted_text): Likewise.
10696         (pp_last_position_in_text): Likewise.
10697         (pp_emit_prefix): Likewise.
10698         (pp_append_text): Likewise.
10699         (pp_flush): Likewise.
10700         (pp_format_text): Likewise.
10701         (pp_format_verbatim): Likewise.
10702         (pp_tree_identifier): Tidy.
10703         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10704         (pp_base_format_verbatim): Rename from pp_format_verbatim.
10705         (pp_base_flush): Rename from pp_flush.
10706         (pp_base_set_line_maximum_length): Rename from
10707         pp_set_line_maximum_length.
10708         (pp_base_clear_output_area): Rename from pp_clear_output_area.
10709         (pp_base_set_prefix): Rename from pp_set_prefix.
10710         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10711         (pp_base_emit_prefix): Rename from pp_emit_prefix.
10712         (pp_base_append_text): Rename from pp_append_text.
10713         (pp_base_formatted_text): Rename from pp_formatted_text.
10714         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10715         (pp_base_remaining_character_count_for_line): Rename from
10716         pp_remaining_character_count_for_line.
10717         * diagnostic.h (diagnostic_format_decoder): Tidy.
10718         (diagnostic_flush_buffer): Likewise.
10719         * c-pretty-print.h: (pp_c_string_literal): Declare.
10720         (pp_c_real_literal): Likewise.
10721         (pp_c_integer_literal): Likewise.
10722         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10723         pp_identifier.
10724         (pp_c_character_literal): Tidy.
10725         (pp_c_string_literal): Make public.
10726         (pp_c_bool_literal): Likewise.
10727         (pp_c_integer_literal): Likewise.
10728         (pp_c_real_literal): Likewise.
10729
10730         * Makefile.in (C_PRETTY_PRINT_H): New variable.
10731         (c-pretty-print.o): Update dependence.
10732
10733 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
10734
10735         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10736         ".set nomacro" state.
10737         (fix_truncsfsi2_macro): Likewise.
10738
10739 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
10740
10741         * tree.h (DID_INLINE_FUNC): Remove macro.
10742         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10743         add tree check for FUNCTION_DECL.
10744         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10745         (struct tree_decl): Rename inlined_function_flag to
10746         declared_inline_flag.
10747         * c-common.h (c_lang_decl): Remove.
10748         (DECL_ESTIMATED_INSNS): Remove.
10749         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10750         (DECL_DECLARED_INLINE_P): Remove.
10751         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
10752         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
10753         (finish_function): Make uninlinable a bool.  Fixup call to
10754         tree_inlinable_function_p() and fix some code style issues.
10755         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10756         * cgraph.c (dump_cgraph): Likewise.
10757         * cgraphunit.c (cgraph_decide_inlining): Likewise
10758         (cgraph_finalize_compilation_unit): Likewise.
10759         Also update call to tree_inlinable_function_p().
10760         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
10761         look at DECL_DECLARED_INLINE and reverse logic.
10762         * print-tree.c (print_node): Likewise.
10763         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10764         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
10765         prototype.
10766         * tree-inline.c (inlinable_function_p): Split up in this function to
10767         check for basic inlining inhibiting conditions, and new
10768         limits_allow_inlining() function.  Warn if inlining is impossible
10769         because the inline candidate calls alloca or uses sjlj exceptions.
10770         (limits_allow_inlining): this new function to check if the inlining
10771         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
10772         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
10773         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10774         Update prototypes.
10775         (tree_inlinable_function_p): Make a bool.  Update call to
10776         inlinable_function_p
10777         (expand_call_inline): Use limits_allow_inlining() when not in
10778         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
10779         instead see if the function was declared `inline'.
10780
10781 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
10782
10783         * gcse.c (try_replace_reg): Fix updating of note.
10784
10785 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10786
10787         PR middle-end/11771
10788         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10789         logic in negate_expr, i.e. we don't invert (A-B) for floating
10790         point types unless flag_unsafe_math_optimizations.
10791
10792 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10793
10794         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10795         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10796         for floating point expressions with -ffast-math.
10797         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10798         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
10799
10800 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10801
10802         * c-common.c (flag_noniso_default_format_attributes): Delete.
10803         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10804         (c_attrs_initialized): Delete.
10805         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10806         always call c_init_attributes.
10807         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
10808         set c_attrs_initialized when done.
10809         (c_common_insert_default_attributes): Delete.
10810         * c-common.h (flag_noniso_default_format_attributes): Delete.
10811         (c_coomon_insert_default_attributes): Delete prototype.
10812         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10813         flag_noniso_default_format_attributes.
10814
10815         * c-decl.c (c_insert_default_attributes): Delete.
10816         * c-tree.h (c_insert_default_attributes): Delete prototype.
10817
10818         * attribs.c (decl_attributes): Don't call insert_default_attributes
10819         langhook.  Update function description comment.
10820         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10821         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10822         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10823         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10824
10825         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10826         define.
10827
10828 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
10829
10830         * config/mips/mips.c (override_options): Disable -G on targets that
10831         have no .section support.
10832         (mips_select_section): Use default_select_section for such targets.
10833
10834 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10835
10836         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10837         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10838         * fixinc/fixincl.x: Rebuild.
10839         * fixinc/tests/base/regexp.h: New test.
10840
10841 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
10842
10843         * c-ppoutput.c (cb_line_change): Don't skip line changing while
10844         parsing macro arguments in the top-level context.
10845
10846 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
10847
10848         * config.in: Remove HAVE_LSTAT.
10849         * configure, configure.in: Don't test for lstat.
10850
10851 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10852
10853         * opts.c (decode_options): Do language-specific initialization for
10854         the global diagnostic context.
10855         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10856         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10857         (LANG_HOOKS_INITIALIZER): Adjust.
10858         * langhooks.h (struct lang_hooks): Add new field
10859         initialize_diagnostics.
10860         * langhooks.c (lhd_initialize_diagnostics): Define.
10861
10862 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10863
10864         * pretty-print.h:   Adjust macro definitions.
10865         * pretty-print.c (pp_newline): Rename to pp_base_newline.
10866         (pp_character): Rename to pp_base_character.
10867         (pp_string): Rename to pp_base_string.
10868         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10869         (pp_newline):  Likewise.  Adjust.
10870         (pp_c_char): Adjust.
10871
10872 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10873
10874         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10875         BUILT_IN_LLABS): Move to miscellaneous section.
10876
10877 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10878
10879         PR preprocessor/11534
10880         * cppexp.c (parse_defined): Warn only if -pedantic.
10881
10882 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10883
10884         * cppfiles.c (stack_file): Use file path.
10885
10886 2003-08-02  Roger Sayle  <roger@eyesopen.com>
10887
10888         * builtin-types.def (BT_SSIZE): New primitive type.
10889         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10890         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10891         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10892         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10893         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10894         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10895         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10896         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10897         few functions that define default attributes using it.
10898         * c-common.c (c_common_insert_default_attributes): Do nothing.
10899
10900         * doc/extend.texi: Document these "new" builtins.
10901
10902 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10903
10904         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10905         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
10906         when -mieee-fp set and -shared not set.
10907         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10908
10909 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10910
10911         * cppfiles.c (struct _cpp_file): Rename once_only_next to
10912         next_file.  Remove import and pragma_once, add once_only.
10913         (find_file): Add new file structures to the all_files list.
10914         (should_stack_file): Mark #import-ed files once-only, and
10915         don't stack them if the file has already been stacked.
10916         (_cp_mark_file_once_only): Simplify.
10917         * cpphash.h (struct cpp_reader): Rename once_only_files
10918         to all_files.  Rename saw_pragma_once to seen_once_only.
10919         (_cpp_mark_file_once_only): Update prototype.
10920         * cpplib.c (do_pragma_once): Update.
10921
10922 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10923
10924         * cppfiles.c (ENOTDIR): Remove.
10925         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
10926         other than ENOENT here.
10927         (once_only_file_p): Rename should_stack_file.
10928         (find_file, open_file_failed, read_file_guts): Report errors
10929         with full path name.
10930         (read_file): Move pch handling to should_stack_file.
10931         (should_stack_file): Handle PCH and once-only issues, and
10932         reading the file.
10933         (stack_file): Don't do file reads.
10934
10935 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10936
10937         * libgcov.c (gcov_exit): Cleanup and fix.
10938         * profile.c (compute_value_histograms): Don't try to read profiles
10939         that are not present.
10940
10941 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10942
10943         * builtins.def: Categorize.
10944
10945         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10946         Mind fp rounding.
10947         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10948
10949 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
10950
10951         * config.gcc: Enable posix threads by default on darwin.
10952
10953 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
10954
10955         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10956         even if nehedges1 is 0.
10957
10958 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
10959
10960         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10961         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10962         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10963         and defintions.
10964
10965         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10966         * fixinc/fixincl.x: Regenerate.
10967         * fixinc/tests/base/math.h: Regenerate to match test_text change.
10968
10969 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10970
10971         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10972
10973 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10974
10975         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10976         for accesses to exc_ptr.
10977
10978 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
10979
10980         * doc/sourcebuild.texi (Front End Directory): Don't make references
10981         to libsubdir, it's not part of the interface to frontends.
10982         * doc/install.texi (Configuration): Help users read faster by saying
10983         that GCC's configure options are the standard autoconf ones.
10984         Mention --libdir.  Update the default rules for finding the
10985         assembler.  Don't use libsubdir since we haven't said what it means.
10986         (Specific): In the Solaris 7 notes, update the place to put the
10987         assembler.
10988         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10989         * doc/cpp.texi (Search Path): Actually, the search path
10990         depends on libdir, which can relocate with cpp.
10991         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10992         now a private interface between the Makefile and the driver.
10993
10994 2003-08-01  Richard Henderson  <rth@redhat.com>
10995
10996         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10997
10998         * varasm.c (lookup_constant_def): New function.
10999         * rtl.h (lookup_constant_def): Declare it.
11000         * dwarf2out.c (loc_descriptor_from_tree): Use it.
11001         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
11002
11003 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
11004
11005         * c-decl.c (gettags, pushdecl_function_level): Delete.
11006         (last_function_parm_vars): Rename last_function_parm_others.
11007         (current_function_parm_vars): Rename current_function_parm_others.
11008         (struct c_scope): Rewrite comment explaining this data structure.
11009         Add names_last, blocks_last, parms_last fields.  Rename
11010         incomplete_list to incomplete.
11011         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
11012         (poplevel): Ignore second argument.  No need to nreverse
11013         anything.  Restructure such that each list is processed
11014         exactly once.  Use 'const location_t *locus' syntactic sugar
11015         variable where useful.  Issue unused variable warnings
11016         ourselves, do not rely on function.c.
11017         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
11018         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
11019         (implicitly_declare): decl cannot be error_mark_node.
11020         (undeclared_variable): Manipulate scope structure directly.
11021         (c_make_fname_decl): Likewise.
11022         (getdecls, c_init_decl_processing): Fix comment.
11023         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
11024         for 'last' variable.
11025         (grokparms): No need to nreverse parms list.
11026         (store_parm_decls_newstyle): Set up the parms_last and
11027         names_last fields of the new scope too.
11028         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
11029         on parms to begin with; check this under ENABLE_CHECKING.  Set
11030         up parms_last.
11031         (check_for_loop_decls): Refer directly to current_scope->tags.
11032         Use consistent quote style in diagnostics.
11033         (c_write_global_declarations): The names list is not backward.
11034
11035         * c-common.h: Don't prototype gettags.
11036         * c-parse.in: Call poplevel with second argument 0 always.
11037
11038 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11039
11040         * builtins.def: Resort builtins.
11041
11042 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11043
11044         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
11045         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
11046         Prepend "__builtin_" onto NAME with string concatenation.  Remove
11047         explicit "__builtin_" from each macro call.
11048
11049         Reformat entire file.
11050
11051 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11052
11053         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
11054         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
11055
11056 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
11057
11058         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
11059         CCL1, or CCL2 modes with floating point operations.
11060
11061         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
11062         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
11063         "*subdf3_cconly"): New insns.
11064         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
11065
11066 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
11067
11068         * Makefile.in: Refine dependencies.
11069         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
11070         * c.opt: Update help for -Wimport.
11071         * cppfiles.c: Include hashtab.h.  Update comments.
11072         (stack_file): Read the file before updating dependencies.
11073         (once_only_file_p): Be smarter about marking once-only files.
11074         (_cpp_mark_file_once_only): Correct the check for existence on
11075         the list.
11076         (open_file_failed): Use name not path, which is NULL.
11077         * cpphash.h: Don't include hashtab.h.
11078         (struct _cpp_file): Remove.
11079         (struct cpp_reader): Update.
11080         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
11081         * cpplib.h (struct cpp_options): Remove warn_import.
11082         (cpp_simplify_path): Remove.
11083
11084 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
11085
11086         PR c++/11295
11087         * doc/extend.texi (Statement Expressions): Document C++ semantics.
11088
11089 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
11090
11091         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
11092
11093 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11094
11095         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
11096         throughout.
11097         * builtins.def: Likewise.
11098
11099 2003-07-31  Jason Merrill  <jason@redhat.com>
11100
11101         * Makefile.in (bubblestrap): Don't require a previous full
11102         bootstrap.
11103
11104         * expr.c (mostly_zeros_p): No longer static.
11105         * tree.h: Declare it.
11106         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
11107         unless we need to do substitutions.
11108
11109 2003-07-31  Roger Sayle  <roger@eyesopen.com>
11110
11111         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
11112         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
11113         as pow(x,2.0) when the latter will be expanded back into x*x.
11114         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
11115         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
11116         pow can never set errno when used with an integer exponent.
11117         Always use expand_powi when exponent is -1, 0, 1 or 2.
11118         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
11119         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
11120         the pow forms of these expressions.
11121
11122 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
11123
11124         * Makefile.in (libexecdir): New.
11125         (libsubdir): Use gcc instead of gcc-lib.
11126         (libexecsubdir): New.
11127         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
11128         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
11129         gcc-lib.
11130         (installdirs): Make libexecsubdir.
11131         (install-common): Put executables in libexecsubdir.
11132         (itoolsdir): Use libexecsubdir.
11133         (itoolsdatadir): New.
11134         (install-mkheaders): Separate data files and executables.
11135         (install-collect2): Put executables in libexecsubdir.
11136         (uninstall): Remove libexecsubdir.
11137         * mkheaders.in: Update for new arrangement of files.
11138         (libexecdir): New.
11139         (libexecsubdir): New.
11140         (itoolsdir): Use libexecsubdir.
11141         (itoolsdatadir): New.
11142         * gcc.c (gcc_libexec_prefix): New.
11143         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
11144         (standard_exec_prefix_1): Use libexec.
11145         (standard_exec_prefix_2): New.
11146         (standard_libexec_prefix): New.
11147         (process_command): Update for new arrangement of files.  Compute
11148         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
11149
11150 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
11151
11152         * inclhack.def (stdio_va_list): Avoid bogus replacement which
11153         triggers on Interix.
11154         * fixincl.x: Regenerate.
11155
11156 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
11157
11158         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
11159         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
11160
11161 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11162
11163         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
11164
11165 2003-07-31  Per Bothner  <pbothner@apple.com>
11166
11167         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
11168         (add_input_filename):  New function.
11169         (handle_options):  Call add_input_filename directly instead of
11170         with a lang hook.
11171         * opts.h (in_fnames, num_in_fnames):  Moved here.
11172         (add_input_filename):  Declare.
11173         * c-decl.c:  Need to #include opts.h.
11174         * Makefile.in (c-decl.o):  Also depends on opts.h.
11175         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
11176         (c_common_handle_filename):  Replaced by add_input_filename.
11177         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
11178         Remove.
11179         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
11180         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
11181         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
11182         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
11183
11184 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11185
11186         * combine.c (try_combine): Set JUMP_LABEL for newly created
11187         unconditional jump.
11188
11189 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11190
11191         * fold-const.c (fold): Fold some comparisons of bit operations.
11192
11193 2003-07-31  Jan Hubicka  <jh@suse.cz>
11194
11195         * cgraph.c (create_edge): Fix typo.
11196         * i386.c (pic_symbolic_operand): Reorder tests.
11197
11198 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
11199
11200         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
11201         more fully.
11202         (Gcov Data Files): Update.
11203
11204 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11205
11206         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
11207         default.
11208
11209         * gthr-posix.c: New file.
11210         * gthr-posix.h: Define _REENTRANT if missing.
11211         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
11212
11213         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
11214         by gthr-posix.o.
11215         * config/alpha/t-osf-pthread: New file.
11216
11217         * fixinc/inclhack.def (alpha_pthread): New fix.
11218         * fixinc/fixincl.x: Regenerate.
11219         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
11220
11221         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
11222         warning.
11223         Fixes PR bootstrap/9330.
11224
11225 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11226
11227         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
11228         without GNU ld.
11229         Update comment.
11230         * configure: Regenerate.
11231
11232 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
11233
11234         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
11235         setter.
11236
11237 2003-07-30  Roger Sayle  <roger@eyesopen.com>
11238
11239         * builtins.def: Alphabetize.
11240
11241 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
11242
11243         * doc/c-tree.texi: Normalize spellings of "lowercase" and
11244         "uppercase".
11245         * doc/cpp.texi: Likewise.
11246         * doc/md.texi: Likewise.
11247         * doc/rtl.texi: Likewise.
11248         * doc/tm.texi: Likewise.
11249
11250 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
11251
11252         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11253         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11254         of cc1obj.
11255
11256 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
11257
11258         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11259         macros before defining them.
11260
11261 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
11262
11263         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11264         UNSPECV_BLOCKAGE): New constants.
11265         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11266         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11267         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11268         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11269
11270         (all insns and expanders): Write output control string as brace block
11271         where appropriate.  Remove \-escapes for doublequote characters.
11272
11273 2003-07-31  Jan Hubicka  <jh@suse.cz>
11274
11275         * gcse.c (insert_store): Fix typo in previous patch.
11276
11277 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
11278
11279         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11280
11281 2003-07-30  Andi Kleen  <ak@muc.de>
11282
11283         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11284
11285 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11286
11287         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11288         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11289         GCOV_N_VALUE_COUNTERS): New.
11290         * profile.c (compute_value_histograms): New static function.
11291         (branch_prob): Read back the value histograms.
11292         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11293         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11294         * value-prof.c: Add comment on reading the profile.
11295         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11296         * doc/invoke.texi (-fprofile-values): Document behavior with
11297         -fbranch-probabilities.
11298
11299 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
11300
11301         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11302
11303 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
11304
11305         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11306         symbolically.
11307
11308 2003-07-30  Jan Hubicka  <jh@suse.cz>
11309
11310         * gcse.c (insert_store): Ignore fake edges.
11311
11312         * c-common.c (flag_vtable_gc): Kill.
11313         * c-common.g (flag_vtable_gc): Kill.
11314         * c-opts (c_common_handle_option): Kill.
11315         * c.opt (fvtable-gc): Kill.
11316         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11317         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11318         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11319
11320         * invoke.texi (-ftable-gc): Kill documentation.
11321
11322         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11323         just because function body is missing.
11324
11325         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11326
11327 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
11328
11329         * unwind-sjlj.c: Fix typo in file description.
11330
11331 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
11332
11333         * calls.c (load_register_parameters): When shifting reg sized values
11334         to the msb, move the value to a reg first.
11335
11336 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
11337
11338         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11339         * line-map.h (linemap_add): Update comments.
11340         * line-map.c (linemap_add): Update comments, interpret zero-length
11341         filename as "<stdin>".
11342
11343 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
11344
11345         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11346
11347 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
11348
11349         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11350         New static variables.
11351         (struct c_scope): Add parms and warned_forward_parm_decls
11352         fields; remove parm_order.
11353         (storedecls, storetags): Delete.
11354         (poplevel): Also clear bindings on the parms chain.
11355         (pushdecl): Handle forward declarations of parameters, and
11356         chain PARM_DECLs on the parms list, not the names list.
11357         (lookup_name_current_level): Check for PARM_DECLs on the parms
11358         list too.
11359         (push_parm_decl): Don't update parm_order.
11360         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
11361         warning, only once per parameter list, and set TREE_ASM_WRITTEN
11362         on the decls here.  Then move the forward decls to the names list.
11363         (grokparms): Set last_function_parm_vars.
11364         (get_parm_info): Don't use gettags or getdecls.  No need to
11365         extract non-parms from the parms list, or reorganize the parms
11366         list.  Feed nonparms back in the TREE_TYPE of the list node
11367         returned.  Issue only one error per parameter list for "void"
11368         appearing more than once in said parameter list.  Collapse
11369         parmlist_tags_warning into this function to avoid double scan
11370         of tags list.
11371         (start_function): Set current_function_parm_vars.
11372         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11373         directly.  Get non-parms from current_function_parm_vars; no
11374         need to extract them from the parms chain.  Properly bind tags
11375         in the new scope.
11376         (store_parm_decls_oldstyle): No need to extract non-parameters
11377         from the parms chain, nor to store them back afterward.  Move
11378         declaration to top of function, restructure code reordering
11379         DECL_ARGUMENTS.
11380         (store_parm_decls): No need to save and restore warn_shadow.
11381         * c-parse.in: Don't call parmlist_tags_warning nor
11382         clear_parm_order.  Call mark_forward_parm_decls when forward
11383         parm decls are encountered.
11384         * c-tree.h: Prototype mark_forward_parm_decls; not
11385         clear_parm_order or parmlist_tags_warning.
11386
11387 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
11388
11389         * c-common.c (allow_pch): Remove.
11390         * c-common.h (allow_pch): Remove.
11391         (c_common_no_more_pch): Declare.
11392         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11393         * c-pch.c: Include hosthooks.h.
11394         (c_common_valid_pch): Don't check allow_pch.
11395         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11396         (c_common_no_more_pch): New.
11397         * ggc-common.c: Include hosthooks.h.
11398         (gt_pch_save): Call gt_pch_get_address.
11399         (gt_pch_restore): Call gt_pch_use_address.
11400         * hooks.c (hook_voidp_size_t_null): New.
11401         (hook_bool_voidp_size_t_false): New.
11402         * hooks.h (hook_voidp_size_t_null): New.
11403         (hook_bool_voidp_size_t_false): New.
11404         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11405         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11406         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11407         HOST_HOOKS_GT_PCH_USE_ADDRESS.
11408         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11409         gt_pch_use_address.
11410         * doc/hostconfig.texi (Host Common): Document
11411         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11412         * Makefile.in (c-pch.o): Depend on hosthooks.h.
11413         (ggc-common.o): Likewise.
11414
11415         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11416         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11417         (pch_address_space): New.
11418         (darwin_rs6000_gt_pch_get_address): New.
11419         (darwin_rs6000_gt_pch_use_address): New.
11420
11421 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
11422
11423         PR preprocessor/11569
11424         PR preprocessor/11649
11425         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11426         * cppfiles.c: Completely rewritten.
11427         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11428         struct cpp_path is now struct cpp_dir.
11429         (remove_duplicates): Don't simplify path names.
11430         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11431         cpp_stack_file.
11432         * cpphash.h: Include hashtab.h.
11433         (_cpp_file): Declare.
11434         (struct cpp_buffer): struct include_file is now struct _cpp_file,
11435         and struct cpp_path is now struct cpp_dir.  Rename members.
11436         (struct cpp_reader): Similarly.  New members once_only_files,
11437         file_hash, file_hash_entries, quote_ignores_source_dir,
11438         no_search_path, saw_pragma_once.  Remove all_include_files and
11439         max_include_len.  Make some members bool.
11440         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11441         (_cpp_stack_file): Renamed from _cpp_read_file.
11442         (_cpp_stack_include): Renamed from _cpp_execute_include.
11443         (_cpp_init_files): Renamed from _cpp_init_includes.
11444         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11445         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
11446         (cpp_read_next_file): Rename and move to cppfiles.c.
11447         (cpp_read_main_file): Update.
11448         * cpplib.c (run_directive): Update for renamed members.
11449         (do_include_common, _cpp_pop_buffer): Update.
11450         (do_import): Undeprecate #import.
11451         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
11452         * cpplib.h: Remove file_name_map_list.
11453         (cpp_options): Remove map_list.
11454         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
11455         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11456
11457 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
11458
11459         * Makefile.in:  Make stamp-objdir safe for parallel builds.
11460
11461 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
11462
11463         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
11464         (info):  Depend on stmp-docobjdir.
11465
11466 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11467
11468         * configure: Regenerate.
11469
11470 2003-07-29  Jan Hubicka  <jh@suse.cz>
11471
11472         PR C++/11131
11473         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11474         in !unit-at-a-time mode.
11475
11476 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
11477
11478         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11479         main function.
11480
11481 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
11482
11483         PR c++/11667
11484         * c-common.c (shorten_compare): Take into account differences
11485         between C and C++ representation for enumeration types.
11486         * tree.h (set_min_and_max_values_for_integral_type): Declare.
11487         * stor-layout.c (set_min_and_max_values_for_integral_type): New
11488         function, broken out from ...
11489         (fixup_signed_type): ... here and ...
11490         (fixup_unsigned_type): ... here.
11491
11492 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
11493
11494         * c-decl.c: Update commentary, adjust blank lines throughout.
11495         (struct c_scope): Fix indentation.  Reorder members so
11496         outer-context pointers come first, booleans last.
11497         (duplicate_decls, define_label): Use a 'locus' variable for
11498         diagnostic locations in a few more places.
11499         (warn_if_shadowing): Un-split a conditional that fits on one line.
11500         (c_init_decl_processing): No need to clear current_scope and
11501         current_function_scope.
11502         (start_decl): Merge if/else if statements with same action.
11503         (push_parm_decl): Rename old_immediate_size_expand to use
11504         save_foo convention; save/restore around entire function.
11505         (grokdeclarator): Remove unnecessary braces.
11506
11507 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
11508             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
11509
11510         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11511         when warn_declaration_after_statement.  Call pedwarn_c90, not
11512         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
11513         * c-common.c (warn_declaration_after_statement): Define.
11514         * c-common.h (warn_declaration_after_statement): Declare.
11515         * c.opt (Wdeclaration-after-statement): New.
11516         * c-errors.c (pedwarn_c90): New function.
11517         * c-opts.c (c_common_handle_option) <case
11518         OPT_Wdeclaration_after_statement>: New.
11519         * c-tree.h (pedwarn_c90): Declare.
11520         * doc/invoke.texi (Option Summary): Document
11521         -Wdeclaration-after-statement.
11522         (Warning Options): Ditto.
11523
11524 2003-07-28  Jan Hubicka  <jh@suse.cz>
11525
11526         * i386.md (memory attribute) Avoid accessing uninitialized memory
11527         for ishift1 type instructions.
11528
11529 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
11530
11531         * configure.in (--enable-checking): Add fold category.
11532         (ENABLE_FOLD_CHECKING): Define if requested.
11533         * configure: Rebuilt.
11534         * config.in: Rebuilt.
11535         * doc/install.texi: Document it.
11536         * fold-const.c: Include md5.h.
11537         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11538         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11539         print_fold_checksum): New functions.
11540
11541         * fold-const.c (fold): Never modify argument passed to fold, instead
11542         change a copy and return it.
11543         * convert.c (convert_to_integer): Likewise.
11544
11545 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
11546
11547         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
11548         cleanup of junk after #else and #endif directives.  Collapse repeated
11549         clauses into for statment.
11550
11551         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
11552
11553 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
11554
11555         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11556         (keep_next_if_subblocks): Rename next_is_function_body.
11557         (pushlevel): Adjust commentary.  Always set ->keep on the
11558         outermost level of a function.  Don't set ->keep_if_subblocks.
11559         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
11560         (store_parm_decls): Adjust to match.
11561         (finish_function): Adjust to match.
11562         Call poplevel with all three arguments zero.
11563
11564         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11565         New functions split out of store_parm_decls.
11566         Avoid unnecessary work. Use local variables consistently.
11567         (store_parm_decls): Likewise.
11568
11569         (finish_function): No need to set functionbody flag on call to
11570         poplevel.
11571         (struct language_function): Remove scope field.
11572         (c_push_function_context, c_pop_function_context): No need to
11573         save and restore current_scope.
11574
11575 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
11576
11577         * doc/extend.texi (Deprecated Features): Implicit typename is
11578         gone. Default args on types is going.
11579
11580 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
11581
11582         * Makefile.in (ifcvt.o): Depend on target.h
11583         * ifcvt.c (target.h): Include.
11584         (if_convert): Don't call mark_loop_exit_edges if we can't
11585         modify jumps.
11586
11587 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11588
11589         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11590
11591 2003-07-26  Richard Henderson  <rth@redhat.com>
11592
11593         PR inline-asm/11676
11594         * cse.c (count_reg_usage): Handle asm_operands properly.
11595
11596 2003-07-26  Roger Sayle  <roger@eyesopen.com>
11597
11598         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11599         (DEF_EXT_FALLBACK_BUILTIN): Delete.
11600         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11601         the regular DEF_EXT_LIB_BUILTIN macro.
11602         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11603         the regular DEF_LIB_BUILTIN macro.
11604         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11605         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11606         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11607         DEF_EXT_LIB_BUILTIN macro.
11608
11609         * c-decl.c (duplicate_decls): Remove code to handle builtin
11610         functions prototyped without an argument list.
11611
11612 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
11613
11614         * config/i386/winnt.c: Revert 2003-07-08 change.
11615         (i386_pe_section_type_flags): Remove error_with_decl here too.
11616
11617 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11618
11619         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11620         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11621         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11622         (v850_handle_data_area_attribute): Likewise.
11623
11624 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
11625
11626         * varasm.c (output_constant_def_contents): Use
11627         ASM_DECLARE_CONSTANT_NAME if defined.
11628         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11629         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11630         objects get at least one byte to prevent assembler problems.
11631         (ASM_DECLARE_CONSTANT_NAME): New.
11632
11633         * Makefile.in (libbackend.o): Remove options_.h.
11634         (mostlyclean): Likewise.
11635
11636         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11637         insert a label at the end of an function under Mach-O.
11638
11639         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11640
11641 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
11642
11643         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11644         equality.
11645         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11646
11647         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11648
11649 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11650
11651         * doc/passes.texi (Passes): Mention pretty-printing and
11652         diagnostic files.
11653
11654 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
11655
11656         * doc/extend.texi (Function Attributes): GNU C++ does now allow
11657         unused parameter decls.
11658         (Attribute Syntax): GNU C++ does not allow label attributes to be
11659         after the ':'.
11660
11661 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11662
11663         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11664         (objc_declare_class): Likewise.
11665         (error_with_ivar): Likewise.
11666         (start_class): Likewise.
11667         (warn_with_method): Likewise.
11668
11669 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11670
11671         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11672         from GCC.
11673         * calls.c (try_to_integrate): Don't use xxx_with_decl.
11674         (expand_call): Likewise.
11675         * dwarfout.c (output_reg_number): Likewise.
11676         * expr.c (expand_expr): Likewise.
11677         * function.c (assign_temp): Likewise.
11678         (uninitialized_vars_warning): Likewise.
11679         (setjmp_args_warning): Likewise.
11680         (expand_function_end): Likewise.
11681         * stmt.c (fixup_gotos): Likewise.
11682         (warn_about_unused_variables): Likewise.
11683         (expand_end_bindings): Likewise.
11684         * stor-layout.c (layout_decl): Likewise.
11685         (place_field): Likewise.
11686         * toplev.c (check_global_declarations): Likewise.
11687         (rest_of_handle_inlining): Likewise.
11688         (default_tree_printer): New function.
11689         (general_init): Initialize diagnostic machinery before routing
11690         signals to the ICE machinery.  Set default tree printer.
11691         * toplev.h (pedwarn_with_decl): Remove declaration.
11692         (warning_with_decl): Likewise.
11693         (error_with_decl): Likewise.
11694         (pedwarn): Remove attribute for the time being.
11695         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11696         * varasm.c (named_section): Likewise.
11697         (make_decl_rtl): Likewise.
11698         (assemble_variable): Likewise.
11699         (merge_weak): Likewise.
11700         (declare_weak): Likewise.
11701
11702         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11703         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11704         (format_with_decl): Remove.
11705         (diagnostic_for_decl): Likewise.
11706         (pedwarn_with_decl): Likewise.
11707         (warning_with_decl): Likewise.
11708         (error_with_decl): Likewise.
11709         (diagnostic_initialize): Adjust.
11710         (diagnostic_count_diagnostic): Likewise.
11711         (announce_function): Likewise.
11712         (lhd_print_error_function): Likewise.
11713         (diagnostic_report_current_module): Likewise.
11714         (default_diagnostic_starter): Likewise.
11715         (diagnostic_report_diagnostic): Likewise.
11716         (default_diagnostic_finalizer): Likewise.
11717         (verbatim): Likewise.
11718         (error): Likewise.
11719         (warning): Likewise.
11720         * opts.c (common_handle_option): Likewise.
11721         * pretty-print.c: New file.
11722         * c-pretty-print.h (pp_base): Override.
11723         * c-pretty-print.c: Adjust use of macros throughout.
11724         (pp_buffer): New macro.
11725         (pp_newline): Likewise.
11726         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11727         * Makefile.in (DIAGNOSTIC_H): New variable.
11728         (c-errors.o): Use it.
11729         (c-objc-common.o): Likewise.
11730         (c-common.o): Likewise.
11731         (c-opts.o): Likewise.
11732         (c-format.o): Likewise.
11733         (diagnostic.o): Likewise.
11734         (opts.o): Likewise.
11735         (toplev.o): Likewise.
11736         (rtl-error.o): Likewise.
11737         (dwarf2out.o): Likewise.
11738         (jump.o): Likewise.
11739         (pretty-print.o): New rule.
11740
11741 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11742
11743         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11744         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11745         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11746         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11747         (DEF_FRONT_END_LIB_BUILTIN): Delete.
11748         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11749         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11750
11751         * builtins.c (build_string_literal): New function to construct
11752         a char* pointer to a string literal.
11753         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11754         "rtx target" to be consistent with other expand_builtin_* functions.
11755         Change 3rd argument from "int unlocked" to "bool unlocked".
11756         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11757         c-common.c to avoid front-end dependencies.  Optimize printf("")
11758         as a no-op when the result isn't required.  Handle embedded NULs
11759         in format string.
11760         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11761         from c-common.c to avoid front-end dependencies.  Likewise, optimize
11762         fprintf(fp,"") as a no-op when the result isn't required, evaluating
11763         fp for side-effects.  Handle embedded NULs in format string.
11764         (expand_builtin_sprintf): Fix typo.
11765         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11766         optimizing.  Adjust calls of expand_builtin_fputs to match the API
11767         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11768         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11769         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11770
11771         * c-common.c (is_valid_printf_arglist): Delete.
11772         (c_expand_builtin): Delete.
11773         (c_expand_builtin_printf): Moved to builtins.c. Delete.
11774         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
11775         (c_expand_expr): No longer treat CALL_EXPRs specially.
11776         (CALLED_AS_BUILT_IN): Delete.
11777
11778 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11779
11780         PR optimization/11631
11781         * gcse.c (store_motion): Connect infinite loops to exit.
11782
11783 2003-07-24  Jason Merrill  <jason@redhat.com>
11784
11785         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11786         (boolean_true_node, boolean_false_node): Likewise.
11787         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11788         * tree.c (build_common_tree_nodes): Init boolean_type_node.
11789         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11790         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11791         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11792         (truthvalue_true_node): Renamed from boolean_true_node.
11793         (truthvalue_false_node): Renamed from boolean_false_node.
11794         * c-decl.c: Just set truthvalue_* to integer_*.
11795         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
11796
11797 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11798
11799         * c-decl.c (match_builtin_function_types): New subroutine of
11800         duplicate_decls to test whether a redeclaration of a builtin
11801         function is suitably close, i.e. the return type and all of
11802         the argument types have the same modes as the builtin expects.
11803         (duplicate_decls): Fuzzy type matching for builtin functions
11804         moved to match_builtin_function_types.
11805
11806 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11807
11808         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11809         flag correctly.
11810
11811 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
11812
11813         * c-decl.c: Search-and-replace change 'binding level' to
11814         'scope' in commentary.
11815         (struct binding_level): Now struct c_scope.
11816         (current_binding_level): Now current_scope.
11817         (free_binding_level): Now scope_freelist.
11818         (current_function_level): Now current_function_scope.
11819         (global_binding_level): Now global_scope.
11820         (make_binding_level): Now make_scope.
11821         (pop_binding_level): Now pop_scope.
11822
11823 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11824
11825         * configure.in (libgcc_visibility): Add missing whitespace.
11826
11827 2003-07-24  Richard Henderson  <rth@redhat.com>
11828
11829         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11830         __gcc_personality_v0.
11831
11832 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11833
11834         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11835
11836 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11837
11838         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11839         documentation missed from my 2003-07-09 patch.
11840
11841 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
11842
11843         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11844         it's not provided.
11845         * configure: Rebuild.
11846
11847 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11848
11849         PR c/10602
11850         * c-typeck.c (type_lists_compatible_p): Do not compare
11851         arguments if one of them is an error_mark_node
11852
11853 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
11854
11855         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11856         if current_function_calls_eh_return.
11857
11858 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11859
11860         * doc/c-tree.texi (OFFSET_TYPE): Update description.
11861
11862 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
11863
11864         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11865         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11866         __umodsi3, __modsi3): Increase frame size to 32.
11867
11868 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
11869
11870         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11871         prototype.
11872
11873 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11874
11875         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11876
11877         PR optimization/10679
11878         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11879
11880 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11881
11882         PR target/11607 and PR target/11516
11883         * pa.md (extzv, extv, insv): Revert latter half of last patch.
11884
11885 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
11886
11887         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11888         * varasam.c (output_constant): Likewise.
11889
11890 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11891
11892         * alias.c: Fix comment formatting.
11893         * c-common.c: Likewise.
11894         * c-decl.c: Likewise.
11895         * c-opts.c: Likewise.
11896         * combine.c: Likewise.
11897         * cpplib.c: Likewise.
11898         * diagnostic.c: Likewise.
11899         * dojump.c: Likewise.
11900         * final.c: Likewise.
11901         * fold-const.c: Likewise.
11902         * gcc.c: Likewise.
11903         * gcse.c: Likewise.
11904         * ggc-page.c: Likewise.
11905         * jump.c: Likewise.
11906         * loop.c: Likewise.
11907         * mips-tfile.c: Likewise.
11908         * recog.c: Likewise.
11909         * regclass.c: Likewise.
11910         * regmove.c: Likewise.
11911         * tree.c: Likewise.
11912         * tree.h: Likewise.
11913
11914 2003-07-22  Per Bothner  <pbothner@apple.com>
11915
11916         * line-map.c (add_line_map):  Handle invalid LEAVE request.
11917         Fixes PR preprocessor/11361.
11918
11919 2003-07-22  Per Bothner  <pbothner@apple.com>
11920
11921         * diagnostic.c.(diagnostic_report_current_module):  Update to match
11922         2003-06-05 changes to push_srcloc and pop_srcloc.
11923
11924 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
11925
11926         * doc/trouble.texi: Better document two-stage name lookup.
11927
11928 2003-07-22  Eric Christopher <echristo@redhat.com>
11929
11930         * config/s390.c (s390_valid_pointer_mode): New.
11931         (TARGET_VALID_POINTER_MODE): Use.
11932         (s390_emit_prologue): Add tpf profiling hooks.
11933         (s390_emit_epilogue): Ditto.
11934         * config/s390.h (MASK_TPF): New.
11935         (TARGET_TPF): Use.
11936         (POINTERS_EXTEND_UNSIGNED): Define.
11937         * config/s390.md (ptr_extend): New pattern.
11938
11939 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
11940
11941         * hashtable.c (approx_sqrt): Make static.
11942         * hashtable.h: Don't prototype approx_sqrt.
11943         * line-map.c (init_line_maps): Rename linemap_init.
11944         (free_line_maps): Rename linemap_free.
11945         (add_line_map): Rename linemap_add.
11946         (lookup_line): Rename linemap_lookup.
11947         (print_containing_files): Rename linemap_print_containing_files.
11948         * linemap.h: Update to match.
11949
11950         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11951         linemap routines to use new names.
11952
11953 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11954
11955         * c-common.c (handle_packed_attribute): Don't pack a struct via a
11956         typedef. Propagate packedness from a main variant.
11957
11958 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11959
11960         * Makefile.in (install-common): Add dependency on installdirs.
11961
11962 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
11963
11964         * c-common.c (c_common_type_for_mode): Return integer types for
11965         pointer modes.
11966
11967 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
11968
11969         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11970         (finish_decl): Call maybe_apply_pragma_weak here.
11971         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11972         TREE_PUBLIC and TREE_STATIC are decided.
11973         (start_function): Move call to maybe_apply_pragma_weak.  Check that
11974         DECL_ASSEMBLER_NAME isn't set too early.
11975
11976         * cpplex.c (_cpp_process_line_notes): Mention option name in
11977         trigraphs warning.
11978
11979 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11980
11981         * combine.c (if_then_else_cond): Simplify the comparison of
11982         rtx against -1, 0, and 1.
11983         * loop.c (check_dbra_loop): Likewise.
11984         * optabs.c (emit_conditional_move): Likewise.
11985         (emit_conditional_add): Likewise.
11986         * config/i386/i386.md (*movsi_or): Likewise.
11987         (*movdi_or_rex6): Likewise.
11988
11989 2003-07-22  Jan Hubicka  <jh@suse.cz>
11990
11991         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11992
11993 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
11994
11995         * cppfiles.c (open_file_pch): Don't put unused entries in the
11996         splay tree.  Remove dead code.
11997
11998 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
11999
12000         * c-common.h (num_in_fnames): Declare.
12001         (c_static_assembler_name): Move from here...
12002         * c-tree.h (c_static_assembler_name): ... to here.
12003         * c-opts.c: Don't include langhooks-def.h.
12004         (c_static_assembler_name): Move to c-decl.c.
12005         (num_in_fnames): Make externally visible.
12006         * c-decl.c: Include langhooks-def.h.
12007         (c_static_assembler_name): Move from c-opts.c.
12008         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
12009         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
12010
12011         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
12012         when it's not needed.
12013
12014 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
12015
12016         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
12017         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
12018         (rs6000_emit_prologue): Save FPRs inline if set.
12019
12020 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
12021
12022         * config/ia64/ia64.md (prefetch): Support predicate.
12023
12024 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
12025
12026         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
12027         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
12028         table.
12029
12030 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12031
12032         PR optimization/11536
12033         * unroll.c (loop_iterations): Do not replace a register holding
12034         the final value by its equivalent before the loop if it is not
12035         invariant.
12036
12037 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
12038
12039         * doc/extend.texi: Fixes to spelling, grammar, and diction.
12040
12041 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
12042
12043         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
12044         (V850 Options): Spelling fixes.
12045
12046 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
12047
12048         * doc/invoke.texi: Fixes to style, grammar and diction.
12049
12050 2003-07-20  Roger Sayle  <roger@eyesopen.com>
12051
12052         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
12053         * system.h (SMALL_STACK): Poison obsolete target macro.
12054         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
12055
12056 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
12057
12058         * configure.in:  Cache the results of testing for cmp's capabilities.
12059         * configure:  Regenerate.
12060
12061 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
12062
12063         PR debug/11279
12064         * dwarf2out.c (gen_enumeration_type_die): Remember that
12065         enumerators can be unsigned.
12066
12067 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
12068
12069         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
12070         (push_label_level, pop_label_level): Kill.
12071         (struct binding_level): Rename level_chain to outer.
12072         Add outer_function field.  Change parm_flag, function_body,
12073         keep, keep_if_subblocks to 1-bit bitfields of type bool.
12074         (current_function_level): New variable.
12075         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
12076         (keep_next_level, declare_parm_level, warn_if_shadowing):
12077         Update to match.
12078         (struct language_function): Kill named_labels, shadowed_labels fields.
12079         (c_init_decl_processing, start_function, c_push__function_context)
12080         (c_pop_function_context): No need to muck with named_labels nor
12081         shadowed_labels.
12082
12083         (make_binding_level): No need to clear the structure here.
12084         (pop_binding_level): Always operate on current_binding_level.
12085         Update current_function_level if necessary.
12086         (pushlevel): Don't clear named_labels.  Update current_function_level
12087         if necessary.  Use "true" and "false" where appropriate.
12088         (poplevel): Diagnose labels defined but not used, or vice
12089         versa, and clear out label-meanings leaving scope, while
12090         walking down the decls list, for all binding levels.
12091         Handle LABEL_DECLs appearing in the shadowed list.
12092         pop_binding_level takes no arguments.
12093         (pushdecl_function_level): Use current_function_level.
12094
12095         (make_label, bind_label): New static functions.
12096         (declare_label): New exported function.
12097         (lookup_label, define_label): Rewritten for new data structure.
12098         (shadow_label): Kill.
12099
12100         * c-tree.h: Prototype declare_label; don't prototype
12101         push_label_level, pop_label_level, nor shadow_label.
12102         * c-parse.in: Remove all calls to push_label_level and
12103         pop_label_level.  Use declare_label for __label__ decls.
12104
12105         * doc/extend.texi: Clarify that __label__ can be used to
12106         declare labels with local scope in any nested block, not
12107         just statement expressions.  Cross-reference nested functions
12108         section from local labels section.
12109
12110 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12111
12112         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
12113
12114 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
12115
12116         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
12117
12118 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12119
12120         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
12121         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
12122
12123 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
12124
12125         * config/s390/s390.c (legitimize_pic_address): Access local symbols
12126         relative to the GOT instead of relative to the literal pool base.
12127         (s390_output_symbolic_const): Handle new GOT-relative accesses.
12128         * config/s390/s390.md ("call"): Access local functions and PLT stubs
12129         relative to the GOT instead of relative to the literal pool base.
12130         ("call_value"): Likewise.
12131         ("call_value_tls"): Likewise.
12132
12133         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
12134         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
12135         (s390_chunkify_finish): Likewise.
12136         (s390_chunkify_cancel): Likewise.
12137         (s390_reorg): Adapt caller.
12138         (find_base_register_in_addr,
12139         find_base_register_ref, replace_base_register_ref): Delete.
12140         (find_ltrel_base, replace_ltrel_base): New functions.
12141         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
12142         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
12143         base vs. index register usage.
12144         (struct constant_pool): Remove 'anchor'.
12145         (s390_add_anchor): Delete.
12146         (s390_dump_pool): Remove anchor handling.
12147         * config/s390/s390.md ("reload_anchor"): Remove.
12148
12149         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
12150         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
12151         (s390_emit_prologue): Use it.
12152         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
12153         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
12154         hard-code register 14.
12155         * config/s390/s390-protos.h (s390_load_got): Declare.
12156
12157         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
12158         Support TImode constants.
12159         * config/s390/s390.md ("consttable_ti"): New.
12160         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
12161
12162         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
12163         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
12164         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
12165         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
12166         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
12167         New symbolic constants.
12168         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
12169         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
12170         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
12171         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
12172         symbolic UNSPEC values.
12173         * config/s390/s390.c (larl_operand, s390_short_displacement,
12174         bras_sym_operand, s390_cannot_force_const_mem,
12175         s390_delegitimize_address, s390_decompose_address,
12176         legitimize_pic_address, s390_output_symbolic_const,
12177         s390_function_profiler): Use symbolic UNSPEC values.
12178
12179 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12180
12181         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
12182         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
12183         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
12184         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
12185         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
12186         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
12187         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
12188         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
12189         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
12190         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
12191         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
12192         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
12193         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
12194         postreload.c prefix.c print-tree.c protoize.c ra-build.c
12195         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
12196         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
12197         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
12198         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
12199         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
12200         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
12201         casts.
12202
12203 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12204
12205         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
12206         * toplev.h (warning): Remove attribute.
12207
12208 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12209
12210         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
12211         (pop_label_level): Likewise.
12212         (duplicate_decls): Likewise.
12213         (implicitly_declare): Likewise.
12214         (shadow_label): Likewise.
12215         (start_decl): Likewise.
12216         (finish_decl): Likewise.
12217         (grokdeclarator): Likewise.
12218         (get_parm_info): Likewise.
12219         (detect_field_duplicates): Likewise.
12220         (finish_struct): Likewise.
12221         (start_function): Likewise.
12222         (store_parm_decls): Likewise.
12223         (finish_function): Likewise.
12224         (c_expand_body_1): Likewise.
12225         (check_for_loop_decls): Likewise.
12226         (merge_translation_unit_decls): Likewise.
12227
12228 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
12229
12230         * common.opt:  Document --param.
12231         * opts.c (columns, undocumented_msg): New.
12232         (print_help): Get number of columns from environment.  Print
12233         --param help.  Tweak newline handling.
12234         (print_param_help): New.
12235         (print_filtered_help): Better handling of duplicates.  Complain
12236         about undocumented switches.
12237         (print_switch): New.
12238         (wrap_help): Improve wrapping, use COLUMNS.
12239         * opts.sh: Ignore comments in records.
12240         * params.def: Fix typos and remove trailing periods.
12241         * toplev.c (display_help): Don't dump --param help.
12242         * doc/sourcebuild.texi: Update.
12243
12244 2003-07-18  Richard Henderson  <rth@redhat.com>
12245
12246         PR target/11556
12247         * optabs.c (prepare_operand): Fail gracefully instead of abort
12248         if the predicate doesn't satisfy.
12249         (gen_cond_trap): Allow prepare_operand to fail.
12250
12251 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12252
12253         * c-common.c: Don't undefine GCC_DIAG_STYLE.
12254         (fname_decl): Don't use xxx_with_decl.
12255         (c_add_case_label): Likewise.
12256         (handle_section_attribute): Likewise.
12257         (handle_alias_attribute): Likewise.
12258         (handle_no_instrument_function_attribute): Likewise.
12259         (handle_no_limit_stack_attribute): Likewise.
12260         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12261         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12262
12263 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12264
12265         * Makefile.in (ifcvt.o): Add cfgloop.h.
12266         * basic-block.h (EDGE_LOOP_EXIT): New flag.
12267         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12268         * ifcvt.c: Include cfgloop.h.
12269         (mark_loop_exit_edges): New static function.
12270         (if_convert): Call it.
12271         (find_if_header): Ignore branches out of loops.
12272
12273 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
12274
12275         * combine.c (simplify_comparison): Don't share rtx when converting
12276         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12277
12278 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
12279
12280         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12281         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12282         (MUST_PASS_IN_STACK): Define.
12283         (BLOCK_REG_PADDING): Define.
12284
12285 2003-07-18  Richard Henderson  <rth@redhat.com>
12286
12287         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12288         to skip the addr_vec.
12289
12290 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
12291
12292         * combine.c (combinable_i3pat): Don't forbid occurrences of
12293         i2dest or i1dest in inner_dest if inner_dest is a mem.
12294
12295 2003-07-18  Jan Hubicka  <jh@suse.cz>
12296
12297         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12298
12299 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
12300
12301         PR target/11087
12302         * loop.c (basic_induction_var): Check if convert_modes emitted any
12303         instructions. Remove them and return 0 if so.
12304
12305 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12306
12307         PR optimization/11083
12308         * toplev.c (rest_of_handle_addresof): Rename into
12309         rest_of_handle_addressof.  Delete unreachable blocks
12310         if dead edges were purged after the addressof pass.
12311
12312 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
12313
12314         * Makefile.in, configure, configure.in: Remove handling of
12315         lang-options.h and options_.h.
12316         * toplev.c (struct lang_opt, documented_lang_options): Remove.
12317         (display_help): Don't use documented_lang_options.
12318
12319 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
12320
12321         * c-decl.c (pushdecl_function_level): Make static, return nothing.
12322         (kept_level_p): Fold into poplevel.
12323         (undeclared_variable): Moved here from c-typeck.c.  Export.
12324         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12325         (undeclared_variable): Prototype here.  Don't prototype
12326         kept_level_p nor pushdecl_function_level.
12327         * c-parse.in: Change first argument to poplevel from
12328         "kept_level_p()" to "KEEP_MAYBE".
12329         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12330
12331 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12332
12333         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12334         commutative operands instead of modifying the RTL in-place.
12335
12336 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
12337
12338         PR optimization/11557
12339         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12340         unless we know which function is being called.
12341
12342 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12343
12344         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12345         whether to reorder the operands of a commutative binary operator.
12346
12347 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12348
12349         * fold-const.c (const_binop): Avoid performing the FP operation at
12350         compile-time, if either operand is NaN and we honor signaling NaNs,
12351         or if we're dividing by zero and either flag_trapping_math is set
12352         or the desired mode doesn't support infinities.
12353         (fold_initializer): New function to fold an expression ignoring any
12354         potential run-time exceptions or traps.
12355         * tree.h (fold_initializer): Prototype here.
12356         * c-typeck.c (build_binary_op): Move to the end of the file so
12357         that intializer_stack is in scope.  If constructing an initializer,
12358         i.e. when initializer_stack is not NULL, use fold_initializer to
12359         fold expressions.
12360         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12361         performing FP operations at compile-time, if they would raise an
12362         exception at run-time.
12363
12364 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
12365
12366         PR 11498
12367         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12368         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12369         (GTFILES): Add langhooks.c.
12370         (gt-langhooks.h): New.
12371         * c-common.h (c_static_assembler_name): Prototype.
12372         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12373         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12374         * c-opts.c: Include langhooks-def.h.
12375         (c_static_assembler_name): New.
12376         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
12377         (var_labelno): New.
12378         (lhd_set_decl_assembler_name): Give static objects with context
12379         unique names.
12380         * varasm.c (var_labelno): Delete.
12381         (make_decl_rtl): Don't change the assembler name once it's set.
12382
12383         * c-opts.c (this_input_filename): New.
12384         (finish_options): Take new parameter, name of file being compiled.
12385         Update callers.  Set this_input_filename.
12386         (push_command_line_include): Use this_input_filename not
12387         main_input_filename.
12388
12389 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
12390
12391         * Makefile.in: Depend .pot generation on options.c.
12392         * po/exgettext: Add an extra_files variable containing additional
12393         files to scan.
12394
12395 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
12396
12397         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12398         c_write_global_declarations.
12399
12400         * c-decl.c: Fix typos in several comments.  Remove all
12401         #if 0 blocks; reindent as needed.  Remove unused argument
12402         to declare_parm_level; all callers changed.
12403         * c-parse.in: Update calls to declare_parm_level.  Avoid
12404         issuing a double warning in some circumstances.
12405         * c-typeck.c: Update calls to declare_parm_level.
12406         * c-tree.h: Update prototype of declare_parm_level.
12407
12408         * c-pragma.c (apply_pragma_weak): Don't complain about a
12409         redundant #pragma weak.
12410
12411         * objc/objc-act.c (forward_declare_categories,
12412         build_selector_reference_decl, build_class_reference_decl,
12413         build_objc_string_decl, synth_forward_declarations,
12414         build_protocol_reference): Set TREE_PUBLIC on synthetic
12415         forward decl to 0, consistent with eventual definition.
12416         Correct comments to match.
12417
12418         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12419         in regexp that don't form a range expression.
12420         * fixinc/fixincl.def: Regenerate.
12421
12422 2003-07-17  Richard Henderson  <rth@redhat.com>
12423
12424         PR target/10907
12425         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12426         even with !TARGET_CONST_GP.
12427         (ia64_function_ok_for_sibcall): Reject non-local functions.
12428
12429 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
12430
12431         * c-common.c (c_estimate_num_insns_1): Don't handle
12432         METHOD_CALL_EXPR.
12433         * expr.c (safe_from_p): Likewise.
12434         * gengtype.c (adjust_field_tree_exp): Likewise.
12435         * stmt.c (warn_if_unused_value): Likewise
12436         * tree.c (first_rtl_op): Likewise.
12437         * tree.def: Don't define METHOD_CALL_EXPR.
12438         * java/lang.c (java_estimate_num_insns_1): Don't handle
12439         METHOD_CALL_EXPR.
12440
12441 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12442
12443         PR other/11466
12444         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12445         and its restrictions for the SPARC64 port.
12446         Move the entry of "-mimpure-text" before that of "-mv8".
12447
12448 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
12449             Phil Edwards <phil@jaj.com>
12450
12451         * doc/install.texi (*-*-solaris2*): Document the step-by-step
12452         procedure to bootstrap and install.
12453         Document the preference for the legacy Sun tools in /usr/bin
12454         over the POSIX tools in /usr/xpg4/bin for the build process.
12455
12456 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
12457
12458         * c.opt: Document Uncodumented; use it.  Document ObjC options.
12459         * opts.c (print_filtered_help): Skip undocumented switches.
12460         * opts.h (CL_UNDOCUMENTED): New.
12461         * opts.sh: Handle Undocumented.
12462         * toplev.c (documented_lang_options): Prevent its becoming empty.
12463 objc:
12464         * lang-options.h: Remove.
12465
12466 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
12467
12468         * loop.c (check_ext_dependent_givs): Pass const struct loop *
12469         instead of struct loop_info * as argument.  Accept BIVs with
12470         increment +/- 1 provided there is a friendly exit test against
12471         a loop-invariant value.
12472         (strength_reduce): Adapt call to check_ext_dependent_givs.
12473
12474 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
12475             Con Bradley <con.bradley@superh.com>
12476
12477         * sh-protos.h (sh_get_pr_initial_val): Declare.
12478         * sh.c (regno_reg_class): Make its elements type enum reg_class.
12479         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
12480         and live_regs_mask arguments.  Changed all callers.
12481         (save_schedule_s): New structure.
12482         (save_schedule): New typedef.
12483         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12484         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12485         In interrupts handlers, also save registers that are usually
12486         partially saved, and make sure there is at least one general purpose
12487         register saved if a target register needs saving.
12488         Add casts in comparisons to avoid warnings.
12489         (sh_media_register_for_return): return -1 for interrupt handlers.
12490         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12491         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
12492         registers used are available.
12493         Set RTX_FRAME_RELATED_P where appropriate.
12494         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12495         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12496         (initial_elimination_offset): Likewise.
12497         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12498         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12499         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12500         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12501         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12502         and for target registers.
12503         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12504         (regno_reg_class): Make its elements type enum reg_class.
12505         (CONSTRAINT_LEN): Don't use isdigit.
12506         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12507         (FUNCTION_ARG): Add parentheses to avoid warnings.
12508         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12509         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12510         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12511         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12512         * sh.md (xordi3+1): Remove unused variable regno.
12513         (return_media): Check that tr0 is available before using it.
12514
12515 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
12516
12517         * c.opt: Document more options.
12518
12519 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12520
12521         * combine.c (subst): Also handle (subreg (const_double ...)) case
12522         if created by a substitution, by using the original inner mode.
12523
12524 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12525
12526         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12527         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12528         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
12529
12530 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
12531
12532         * doc/install.texi (--without-headers): New.
12533
12534         Partial Fix PR/10129
12535         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12536         (machopic_output_function_base_name): New; print the true pic label.
12537         (machopic_classify_ident): Pic Base is always a defined data.
12538         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12539         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12540
12541         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12542         if they are not floating point registers.
12543
12544         PR c/10962
12545         * ggc.h: Add header guards.
12546         * c-decl.c (finish_struct): Sort fields if
12547         number greater than 15 and there are no
12548         anonymous structs/unions.
12549         * c-common.h: Include ggc.h.
12550         (sorted_fields_type): New struct.
12551         (field_decl_cmp): New prototype.
12552         (resort_sorted_fields): New prototype.
12553         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12554         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12555         as s, removing other fields.
12556         * c-typeck.c (lookup_field): Use s in lang_type.
12557         These were mostly moved from cp/class.c:
12558         * c-common.c (field_decl_cmp): New static function.
12559         (field_decl_cmp): New function.
12560         (resort_sorted_fields): New function.
12561
12562 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
12563
12564         * config/darwin.c (machopic_select_section): Use decl_readonly_section
12565         to do most of the work.
12566
12567 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
12568
12569         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12570         * config/mmix/mmix.c: Convert functions to ISO C90.
12571         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12572         formatting.
12573         (mmix_get_hard_reg_initial_val): Tweak section head comment.
12574
12575 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
12576
12577         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12578
12579 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
12580
12581         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12582         (uw_update_context_1): Use it.
12583         * config/rs6000/rs6000.c (insn_after_throw): Remove.
12584         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12585         in parent frame if _Unwind_* called directly instead of through
12586         .plt.
12587         (rs6000_emit_eh_toc_restore): Remove.
12588         (rs6000_emit_prologue): Update stack pointer before doing any saving
12589         if current_function_calls_eh_return.  Generate unwind info for $r2.
12590         (rs6000_emit_epilogue): Restore stack pointer after doing all
12591         restoring if current_function_calls_eh_return.  Restore $r2.
12592         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12593         * config/rs6000/rs6000.md (eh_return): Remove call to
12594         rs6000_emit_eh_toc_restore.
12595         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12596         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12597
12598 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
12599
12600         * expr.c (emit_block_move): Don't move anything if size is const 0.
12601         (clear_storage): Test against const0_rtx instead of comparing INTVAL
12602         against 0.
12603
12604 2003-07-15  David S. Miller  <davem@redhat.com>
12605
12606         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12607         emit nop if the last real insn is CALL_INSN.
12608
12609 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12610
12611         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12612         as "nul".
12613         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12614
12615 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12616
12617         * config/i386/winnt.c (associated_type): Artificial methods are not
12618         affected by the import/export status of their class unless they are
12619         COMDAT.
12620         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12621
12622         * config/i386/winnt.c: Fix GCC copyright comment.
12623
12624 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
12625
12626         PR c++/11531
12627         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12628         not recursing on hard error.
12629         (diagnostic_for_decl): Likewise.
12630         * diagnostic.def: Rearrange.
12631
12632 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12633
12634         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12635         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12636
12637 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12638             Richard Henderson  <rth@redhat.com>
12639
12640         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12641         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12642         (_Unwind_SetGR): Likewise.
12643         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12644         (Unwind_SpTmp): New typedef.
12645         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12646         (uw_update_context): Use _Unwind_GetPtr.
12647         (init_dwarf_reg_size_table): Move above uw_init_context_1.
12648         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12649         Use _Unwind_SetSpColumn.
12650         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12651         Use _Unwind_GetPtr.
12652
12653 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12654
12655         * c.opt: Document more options.
12656         * toplev.c (documented_lang_options): Remove all local help strings.
12657
12658 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
12659
12660         PR debug/11473
12661         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12662         base classes.
12663
12664 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12665
12666         PR target/10795
12667         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12668         swap comparison operands if doing so would generate an
12669         unrecognizable insn.
12670
12671 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
12672
12673         PR optimization/11320
12674         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12675         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12676         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12677         current_sched_info->compute_jump_reg_dependencies. Record which
12678         registers are used and which registers are set by the jump.
12679         Clear deps->reg_conditional_sets after a barrier.
12680         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12681         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12682         (init_deps): Initialize reg_conditional_sets.
12683         (free_deps): Clear reg_conditional_sets.
12684         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12685         Mark registers live on entry of the fallthrough block and conditionally
12686         set as set by the jump. Mark registers live on entry of non-fallthrough
12687         blocks as used by the jump.
12688         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12689         Mark new parameters as unused.
12690
12691 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12692
12693         * doc/invoke.texi: Resync MIPS -march documentation.
12694
12695 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12696
12697         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12698         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12699         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12700         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12701         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12702         (mips_issue_rate): Handle PROCESSOR_R9000.
12703         (mips_use_dfa_pipeline_interface): Likewise.
12704         * config/mips/9000.md: New file.
12705         * config/mips/mips.md: Include it.
12706         (define_attr cpu): Add r9000.
12707         (mulsi3_mult3): Use "mul" for rm9000 code.
12708
12709 2003-07-15  Stan Cox  <scox@redhat.com>
12710
12711         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12712         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12713         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12714         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12715         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12716         (mips_issue_rate): Handle PROCESSOR_R7000.
12717         (mips_use_dfa_pipeline_interface): Likewise.
12718         * config/mips/7000.md: New file.
12719         * config/mips/mips.md: Include it.
12720         (define_attr cpu): Add r7000.
12721         (mulsi3_mult3): Use "mul" for rm7000 code.
12722
12723 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12724
12725         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
12726         the conditional move patterns.
12727         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12728         Check for condmove type.
12729         (ir_vr54_arith): Add move type.
12730         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12731         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12732
12733 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12734
12735         * c-opts.c (print_help): Remove.
12736         (c_common_handle_option): Don't handle --help.
12737         * c.opt: Document some options.
12738         (--help): Remove.
12739         * opts.c (print_filtered_help): New.
12740         (print_help): Use it.
12741
12742 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12743
12744         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12745         * tree.c: (build_common_tree_nodes_2): Likewise.
12746         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12747         (V4DF_type_node): New.
12748
12749         * c-opts.c (push_command_line_include): Don't free deferred_opts,
12750         we'll need it.
12751         (finish_options): Reset init_cursor.
12752
12753 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12754
12755         * expr.c (expand_assignment): Remove an unused argument
12756         SUGGEST_REG.
12757         * expr.h: Update the prototype.
12758         * function.c: Update the callers.
12759         * stmt.c: Likewise.
12760
12761 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
12762
12763         PR debug/11098
12764         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12765         as DECL_ABSTRACT.
12766
12767 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12768
12769         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12770         with __cplusplus, not "we must use the C++ compiler's type"
12771         * fixinc/inclhack.def (void_null): Note that Interix needs this.
12772         * fixinc/fixincl.x: Regenerate.
12773
12774 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12775
12776         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12777         and unseen_objects from the global data before calling
12778         __deregister_frame_info_bases.
12779         (examine_objects): Insert objects into the seen_objects list,
12780         not unseen_objects.
12781         (_Unwind_Find_FDE): Always unlock the global object lists, even if
12782         we couldn't allocate a data structure to put in it.
12783
12784         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12785         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12786         (SET_TYPE_PROTOCOL_LIST): New.
12787         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12788         (get_object_reference): Likewise.
12789
12790 2003-07-14  Jan Hubicka  <jh@suse.cz>
12791
12792         * cfglayout.c (locator_file): Break out from ....
12793         (insn_file): ... here.
12794         (locator_line): Break out from ....
12795         (insn_line): ... here.
12796         * rtl.h (locator_file, locator_line): Declare.
12797         (final_start_function): Set proper line/file info.
12798
12799 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12800
12801         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12802         handled by pp_c_cast_expression.
12803
12804 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12805
12806         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12807         allocate 32768 bytes of stack.  Use addition rather than subtraction
12808         when a single insn is enough.
12809         * config/mips/mips.md: Remove insns and splitters for subtracting
12810         constants.
12811         (subsi3): Only accept register operands.
12812         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
12813         (subdi3_internal_3, subsi3_internal_2): Likewise.
12814         (casesi): Use expand_binop to subtract the lower bound.
12815
12816 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12817
12818         * config/mips/mips.c (mips_in_small_data_p): Don't handle
12819         TARGET_MIPS16 specially.
12820
12821 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12822
12823         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12824         mips_output_aligned_bss.
12825         * config/mips/linux.h: Likewise.
12826         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12827         * config/mips/mips.c (mips_output_aligned_bss): New function.
12828
12829         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12830         * config/mips/elf64.h: Likewise.
12831
12832         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12833         mips_declare_object_name.
12834         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12835         * config/mips/elf64.h: As for elf.h.
12836         * config/mips/iris6.h: Likewise.
12837         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12838         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12839         do...while (0) block.
12840         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12841         (mips_finish_declare_object): Declare.
12842         * config/mips/mips.c (mips_declare_object_name): New function.
12843         (mips_finish_declare_object): New function.
12844
12845         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12846         * config/mips/linux.h: Likewise.
12847
12848         * config/mips/mips.c (inside_function): Delete.
12849         (file_in_function_warning, ignore_line_number): Delete.
12850         (mips_output_filename): Don't warn about changing filenames within
12851         a function.
12852         (mips_output_lineno): Update accordingly.
12853         (mips_output_function_prologue): Don't reset the deleted variables.
12854         * config/mips/mips.h (inside_function): Delete.
12855         (file_in_function_warning, ignore_line_number): Delete.
12856
12857         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12858         * config/mips/elf64.h: Likewise.
12859         * config/mips/openbsd.h: Likewise.
12860         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12861         * config/mips/linux.h: Likewise.
12862         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12863         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12864
12865         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12866         to the list of include files when using gas.
12867         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12868         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12869         * config/mips/elf64.h: Likewise.
12870         * config/mips/iris5.h: Likewise.
12871         * config/mips/linux.h: Likewise.
12872         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12873         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12874         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12875         * config/mips/sdb.h: ...this new file.
12876
12877 2003-07-14  Douglas Rupp  <rupp@gnat.com>
12878
12879         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12880         argument to getcwd; use fixed buffer instead.
12881
12882 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12883
12884         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12885         * fixinc/fixinc.wrap: Delete.
12886
12887 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12888
12889         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12890         don't have 2.
12891
12892 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12893
12894         * ggc-page.c (struct globals): Add new fields to keep track of the
12895         total allocated memory and overhead.
12896         (ggc_print_statistics): Print them.
12897         (ggc_alloc): Keep track of the total allocated memory and the
12898         overhead.
12899
12900         * tree.c (dump_tree_statistics): Increase spacing.
12901         (enum tree_node_kind): Move to ...
12902         * tree.h (enum tree_node_kind): ... here.
12903         (tree_node_counts, tree_node_sizes): Declare.
12904
12905 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
12906
12907         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12908
12909 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12910
12911         PR optimization/11440
12912         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12913         SIGN_EXTRACT SETs.
12914
12915 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
12916
12917         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12918         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12919         (emit_group_load, emit_group_store): Adjust declarations.
12920         Remove most occurrences of #ifdef TREE_CODE.
12921         * expr.c (emit_group_load): Add "type" param, and use
12922         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
12923         aligned accesses if !SLOW_UNALIGNED_ACCESS.
12924         (emit_group_store): Likewise.
12925         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12926         emit_group_load and emit_group_store calls.
12927         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
12928         BLOCK_REG_PADDING to determine whether we need endian_correction.
12929         (load_register_parameters): Localize vars.  Handle shifting of
12930         small values to the correct end of regs.  Adjust emit_group_load
12931         call.
12932         (expand_call, emit_library_call_value_1): Adjust emit_group_load
12933         and emit_group_store calls.
12934         * function.c (assign_parms): Set mem alignment for stack slots.
12935         Adjust emit_group_store call.  Store values at the "wrong" end
12936         of regs to the stack.  Use BLOCK_REG_PADDING.
12937         (locate_and_pad_parm): Save where_pad.
12938         (expand_function_end): Adjust emit_group_load call.
12939         * stmt.c (expand_value_return): Adjust emit_group_load call.
12940         * Makefile.in (calls.o): Depend on $(OPTABS_H).
12941         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12942         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12943         (MUST_PASS_IN_STACK): Define.
12944         (BLOCK_REG_PADDING): Define.
12945         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12946         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12947         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12948         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12949         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12950
12951 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
12952
12953         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12954
12955 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12956
12957         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12958         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12959
12960 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12961
12962         PR other/11123
12963         * toplev.c: Don't cut off option names.
12964
12965 2003-07-13  Andreas Jaeger  <aj@suse.de>
12966
12967         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12968         to integer of different size.
12969
12970 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
12971
12972         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12973         to (eq (and X 1) 0).
12974
12975 2003-07-13  Andreas Jaeger  <aj@suse.de>
12976
12977         * config.gcc: Add pmmintrin.h for x86_64-*-*.
12978
12979 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12980
12981         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12982         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12983         list.  Move these all together down by cpplib.
12984
12985         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12986         definition of CPPCHAR_SIGNED_T.
12987
12988         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12989         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12990         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12991
12992         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12993         * cppinit.c (cpp_create_reader): Likewise.
12994
12995         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12996         * cpptrad.c: Likewise.  All callers changed.
12997         * cpplib.c: All callers changed.
12998         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12999         * hashtable.h: Define GTY(x) to nothing here too.
13000
13001 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13002
13003         * stor-layout.c (compute_record_mode): Remove very obsolete test
13004         that forces BLKmode for records with fields crossing word boundary.
13005
13006 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
13007
13008         * Makefile.in: Remove orphan reference to acconfig.h.
13009
13010 2003-07-13  Andreas Jaeger  <aj@suse.de>
13011
13012         * cgraphunit.c: Convert prototypes to ISO C90.
13013
13014 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
13015
13016         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
13017         (for OpenBSD).
13018         * fixinc/fixincl.x: Rebuild.
13019
13020 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
13021
13022         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
13023         i?86-*-*.  Use correct name of cache variable.
13024         * configure: Regenerate.
13025
13026 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
13027
13028         * config/alpha/alpha.c: Fix comment typos.
13029         * config/alpha/alpha.md: Likewise.
13030         * config/arm/arm.c: Likewise.
13031         * config/arm/arm.md: Likewise.
13032         * config/arm/lib1funcs.asm: Likewise.
13033         * config/avr/avr.md: Likewise.
13034         * config/arm/README-interworking: Fix typos.
13035
13036 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
13037
13038         * c-format.c: Fix comment formatting.
13039         * c-typeck.c: Likewise.
13040         * coverage.c: Likewise.
13041         * cppcharset.c: Likewise.
13042         * cpplib.c: Likewise.
13043         * dbxout.c: Likewise.
13044         * gcov-io.h: Likewise.
13045         * toplev.c: Likewise.
13046
13047 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13048
13049         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
13050         fix.
13051
13052 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
13053
13054         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
13055         uses three-argument AC_DEFINE so no acconfig.h entries are
13056         needed.
13057         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
13058         which contains the GAS version number as a scaled integer.
13059         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
13060         ability to check for ELF assembler.
13061         (gcc_GAS_CHECK_FEATURE): New macro.
13062         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
13063         assembler feature checks using gcc_GAS_CHECK_FEATURE.
13064         Use three-argument AC_DEFINE everywhere.
13065         * acconfig.h: Deleted.
13066         * config.in, configure: Regenerate.
13067
13068 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
13069
13070         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
13071         (on OpenBSD).
13072         * fixinc/fixincl.x: Regenerate.
13073
13074         * fixinc/inclhack.def (gnu_types): Improve comment.
13075
13076 2003-07-12  Andreas Jaeger  <aj@suse.de>
13077
13078         * fp-test.c (main): Use ISO C90 prototype.
13079
13080         * version.c: Remove unneded include of ansidecl.h.
13081
13082         * cgraph.h: Convert prototypes to ISO C90.
13083         * cgraph.c: Likewise.
13084         * fix-header.c: Likewise.
13085         * ra.h: Likewise.
13086         * protoize.c: Likewise.
13087
13088 2003-07-12  Jan Hubicka  <jh@suse.cz>
13089
13090         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
13091         warning.
13092
13093 2003-07-12  Jan Hubicka  <jh@suse.cz>
13094                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13095
13096         * cgraph.c (cgraph_max_uid): New global variable.
13097         (cgraph_node): Set uid field.
13098         (create_edge): Keep inline flags consistent.
13099         (dump_cgraph): Dump more info.
13100         * cgraph.h (struct cgraph_local_info): Remove inline_many and
13101         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
13102         (struct cgraph_global_info): Add insns, calls, cloned_times,
13103         will_be_output.
13104         (struct cgraph_node): Add uid.
13105         (struct cgraph_edge): Add inline_call.
13106         (cgraph_max_uid, cgraph_inline_p): Declare.
13107         * cgraph.c: Include params.h and fibheap.h
13108         (cgraph_mark_functions_to_inline_once): Kill.
13109         (INSNS_PER_CALL): New constant.
13110         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
13111         static variables.
13112         (cgraph_finalize_function): Do not analyze inlining.
13113         (cgraph_finalize_compilation_unit): Set inlining attributes.
13114         (cgraph_mark_functions_to_output): More consistency checks.
13115         (cgraph_optimize_function): Set current_function_decl to NULL.
13116         (cgraph_expand_function): Use new inline flags.
13117         (cgraph_postorder): Expand from cgraph_expand_functions.
13118         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
13119         (cgraph_inlined_into, cgraph_inlined_callees,
13120         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
13121         cgraph_mark_inline, cgraph_check_inline_limits,
13122         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
13123         cgraph_decide_inlining, cgraph_inline_p): New functions.
13124         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
13125         PARAM_INLINE_UNIT_GROWTH): New parameters.
13126         * tree-inline.c (struct inline_data): New field current_decl.
13127         (expand_call_inline): Avoid forward declarations; use
13128         inlinable_function_p.
13129         (optimize_inline_calls): Set id.current_decl.
13130
13131 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
13132
13133         * configure.in: Remove wrongly added definition of
13134         local_prefix.
13135         * configure: Regenerate.
13136
13137 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
13138
13139         * rtl.def (NOTE): Do not use padding.
13140
13141 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
13142
13143         * doc/install.tex: Update required binutils for i?86-*-linux*
13144
13145 2003-07-11  Richard Henderson  <rth@redhat.com>
13146
13147         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
13148
13149 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
13150
13151         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
13152         TRANSLATION_UNIT_DECL as top_level.
13153
13154 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
13155
13156         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
13157         then fall back to cmpstrM.
13158         * builtins.c (expand_builtin_memcmp): Likewise.
13159         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
13160         (s390_expand_cmpmem): ... this.
13161         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
13162         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
13163         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
13164         to s390_expand_cmpmem.
13165         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
13166         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
13167         to cmpmem*.
13168         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
13169         cmpstr* patterns.
13170         * doc/md.texi (cmpstrM): Describe as String compare insn, not
13171         Block compare insn.
13172         (cmpmemM): Add.
13173
13174 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
13175
13176         * config/i386/freebsd.h (SET_ASM_OP): Remove.
13177         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
13178         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
13179          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
13180
13181 2003-07-11  Richard Henderson  <rth@redhat.com>
13182
13183         * function.c (assign_parms): Don't recombine complex args if
13184         fnargs is unchanged from orig_fnargs.
13185         (split_complex_args): Return args without complex before copying.
13186         Re-layout the modified parameters.
13187
13188 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
13189
13190         * regclass.c (choose_hard_reg_mode): Add third argument.
13191         Changed all callers.
13192         * rtl.h (choose_hard_reg_mode): Update declaration.
13193         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
13194         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
13195
13196 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
13197
13198         * c-decl.c (finish_decl): Handle 'used' here...
13199         * cgraphunit.c (cgraph_finalize_function): ... and here ...
13200         * c-common.c: (handle_used_attribute): ... not here.
13201
13202         * configure.in (onstep): Support --enable-intermodule.
13203         * Makefile.in (OBJS-common): New.
13204         (OBJS-md): New.
13205         (OBJS-archive): New.
13206         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
13207         (OBJS-onestep): New.
13208         (libbackend.a): Support @onestep@.
13209         (libbackend.o): New.
13210         * configure: Regenerate.
13211
13212         * c-common.h (c_reset_state): New prototype.
13213         (c_parse_file): New prototype.
13214         (finish_file): Move prototype from c-tree.h.
13215         * c-decl.c: Include <hashtab.h>.
13216         (builtin_decls): New.
13217         (current_file_decl): New.
13218         (duplicate_decls): Add extra parameter. Change all callers.  Don't
13219         output duplicate common symbols.
13220         (link_hash_hash): New.
13221         (link_hash_eq): New.
13222         (poplevel): Handle popping of the top level.
13223         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
13224         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
13225         (pushdecl_top_level): Likewise.
13226         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
13227         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
13228         (finish_decl): Handle TRANSLATION_UNIT_DECL.
13229         (merge_translation_unit_decls): New.
13230         (c_write_global_declarations): New.
13231         (c_reset_state): New.
13232         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
13233         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
13234         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
13235         TRANSLATION_UNIT_DECL.
13236         (c_objc_common_finish_file): Call merge_translation_unit_decls.
13237         * c-opts.c (in_fnames): Rename from in_fname.
13238         (c_common_decode_option): Handle multiple input filenames.
13239         (c_common_post_options): Likewise.
13240         (c_common_parse_file): Likewise; also, call c_parse_file rather than
13241         yyparse.
13242         * c-parse.in: Move cleanup code to c_parse_file.
13243         (free_parser_stacks): Move contents to c_parse_file.
13244         (c_parse_file): New.
13245         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
13246         for integer types.
13247         (C_DECL_FILE_SCOPE): New.
13248         (finish_file): Move prototype to c-common.h.
13249         (merge_translation_unit_decls): New prototype.
13250         (comptypes): Add extra parameter to prototype.
13251         (c_write_global_declarations): New prototype.
13252         * c-typeck.c (tagged_types_tu_compatible_p): New.
13253         (function_types_compatible_p): Add extra parameter, change all callers.
13254         (type_lists_compatible_p): Likewise.
13255         (comptypes): Likewise.
13256         (struct tagged_tu_seen): New.
13257         (tagged_tu_seen_base): New.
13258         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13259         (c_mark_addressable): Remove #if 0 code.
13260         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13261         comment explaining why it shouldn't have to.
13262         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13263         options.
13264         * cppinit.c (cpp_read_next_file): New.
13265         (cpp_read_main_file): Use it.
13266         * cpplib.c (undefine_macros): New.
13267         (cpp_undef_all): New.
13268         * cpplib.h (cpp_read_next_file): Prototype.
13269         (cpp_undef_all): Prototype.
13270         * langhooks-def.h (write_global_declarations): Remove prototype.
13271         * toplev.h (write_global_declarations): Add prototype.
13272         * tree.c (decl_type_context): Use switch statement, handle
13273         TRANSLATION_UNIT_DECL.
13274         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13275         (TRANSLATION_UNIT_DECL): New kind of tree.
13276         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13277         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13278         * doc/invoke.texi: Make attempt to document new functionality.
13279
13280         2003-05-19  Per Bothner <bothner@apple.com>
13281
13282         * gcc.c (combine_inputs): New.
13283         (process_command): Set combine_inputs.
13284         (do_spec_1): Handle combine_inputs.
13285         (main): Likewise.
13286
13287 2003-07-10  James E Wilson  <wilson@tuliptree.org>
13288
13289         PR optimization/9745
13290         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13291         loop_insn_emit_before.
13292         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13293
13294 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
13295
13296         * cppcharset.c: Fix comment.
13297         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13298         (EILSEQ): #define to EINVAL if not already defined.
13299         (convert_using_iconv): #if out when !HAVE_ICONV.
13300         (init_iconv_desc): Handle !HAVE_ICONV here...
13301         (cpp_init_iconv): ...not here.
13302
13303 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
13304
13305         * common.opt: More --help messages.
13306         * opts.c (print_help): Use puts().
13307         * toplev.c (f_options): Remove help text.
13308         (display_help): Don't dump f_options.
13309
13310 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
13311
13312         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13313         Move i?86-*-interix* to the don't-fix list.
13314         * fixinc/fixinc.interix: Delete with extreme prejudice.
13315
13316 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
13317
13318         PR bootstrap/10758
13319         * doc/install.texi: Document requirements for ia64-*-hpux* target.
13320
13321 2003-07-10  Roger Sayle  <roger@eyesopen.com>
13322
13323         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13324
13325 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
13326
13327         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13328         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13329         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13330         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13331         convert_no_conversion, convert_using_iconv): New functions.
13332         (APPLY_CONVERSION): New macro.
13333         (struct conversion, conversion_tab): New data structure.
13334         (init_iconv_desc): Check conversion_tab for a custom conversion
13335         primitive before trying to use iconv.
13336         (convert_cset): Deleted.
13337         (cpp_init_iconv): Use UTF- terminology, not UCS-.
13338         (_cpp_destroy_iconv): Update to match.
13339         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13340         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13341         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13342         (_cpp_interpret_string_notranslate): New function, moved here
13343         from cpplib.c.
13344
13345         * cpphash.h (convert_f, struct cset_converter): New types.
13346         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13347         are now struct cset_converter, not bare iconv_t.
13348         Update prototypes.
13349         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13350         all callers changed.
13351
13352 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
13353
13354         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
13355         to opts.sh command line.
13356         * opts.sh: Write to temporary files with a move-if-change at the end.
13357
13358 2003-07-10  Denis Chertykov  <denisc@overta.ru>
13359             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13360
13361         * combine.c (gen_binary): Handle the CLOBBER rtx and
13362         don't build a binary operation with it.
13363
13364 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13365
13366         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13367         store_killed_after, store_killed_before): Keep track of the correct
13368         dependency function to use.
13369
13370 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
13371         * toplev.c (do_compile): Don't try to open dump files before
13372         lang_dependent_init initializes dump_base_name.
13373
13374 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13375
13376         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13377         Use ARRAY_SIZE.
13378         * config/frv/frv.c (frv_expand_builtin): Likewise.
13379         * config/sh/sh.c (sh_media_init_builtins): Likewise.
13380
13381 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
13382
13383         PR c++/10032
13384         * doc/invoke.texi (C++ Dialect Options): Change documentation of
13385         -fpermissive.
13386
13387 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
13388
13389         * tm.texi (RETURN_ADDR_OFFSET): Document.
13390
13391 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
13392
13393         * gcov-io.h: Update documentation.
13394         (GCOV_UNSIGNED2STRING): New.
13395         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13396         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13397         GCOV_TAG_SUMMARY_LENGTH): Adjust.
13398         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13399         GCOV_TAG_COUNTER_NUM): New.
13400         (GCOV_BLOCK_SIZE): Number of words.
13401         (gcov_var): Adjust buffer type.
13402         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13403         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13404         count, not byte count.
13405         (gcov_open): Adjust overread init.
13406         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13407         gcov_write_string, gcov_write_tag, gcov_write_length,
13408         gcov_write_tag_length): Adjust.
13409         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13410         (gcov_sync, gcov_seek): Adjust.
13411         * gcov-dump.c (print_usage): Show gcc version only.
13412         (dump_file): Use GCOV_UNSIGNED2STRING.
13413         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13414         * gcov.c (print_version): Show gcc version only.
13415         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13416         GCOV_TAG_*_NUM macros.
13417         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13418         GCOV_TAG_COUNTER_LENGTH.
13419         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13420         Use GCOV_TAG_COUNTER_NUM.
13421         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13422         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13423
13424 2003-07-10  Andreas Schwab  <schwab@suse.de>
13425
13426         * gcov-dump.c (dump_file): Fix missing address operator.
13427
13428 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
13429
13430         PR c/11449
13431         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13432         of HOST_WIDE_INT.
13433         (fold_single_bit_test): If sign_bit_p() fails, assume that the
13434         bit being tested is not a sign bit.
13435
13436 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
13437
13438         * config/h8300/h8300.md (a peephole2): New.
13439
13440 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
13441
13442         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
13443         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13444         from ld-linux.so.2 to ld.so.1.
13445         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
13446         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13447         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13448         nor -Wl,-rpath-link.
13449         (LIB_SPEC): Add -rpath-link if !static.
13450         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
13451         * config/mn10300/mn10300.c (mn10300_protect_label): New
13452         variable.
13453         * config/mn10300/linux.h (PRINT_OPERAND,
13454         PRINT_OPERAND_ADDRESS): Set it during their execution.
13455         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13456         mn10300_protect_label is set.
13457         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13458         -Wl,-rpath-link.
13459         (LIB_SPEC, STARTFILE_SPEC): Define.
13460         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
13461         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13462         FLOAT_BIT_ORDER_MISMATCH.
13463         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
13464         * config.gcc (am33_2.0-*-linux*): Added.
13465         * config/mn10300/linux.h: New.
13466         * config/mn10300/t-linux: New.
13467
13468 2003-07-10  Andreas Jaeger  <aj@suse.de>
13469
13470         * fold-const.c: Properly wrap prototypes.
13471
13472 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
13473
13474         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
13475         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13476         Moved from...
13477         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13478         * config/mn10300/mn10300.h: GTY-declare it.
13479         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
13480         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13481         prototype.  Use incoming RTL argument.
13482         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
13483         * config/mn10300/mn10300.md (int_label): Move C statements...
13484         (GOTaddr2picreg): ... here.
13485         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
13486         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13487         * config/mn10300/mn10300.c (mn10300_encode_section_info):
13488         ... here.  New function.
13489         (TARGET_ENCODE_SECTION_INFO): Define to it.
13490         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
13491         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13492         pattern name.
13493         (mn10300_loadPC): Define as insn splittable after reload.
13494         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
13495         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13496         be defined in .rodata even in PIC, now that the assembler
13497         supports that.
13498         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
13499         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13500         symbol take an underscore prefix.
13501         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13502         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13503         legitimize_pic_address): Declare.
13504         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13505         the PIC register as fixed.
13506         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13507         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13508         PIC.
13509         (LEGITIMATE_PIC_OPERAND_P): Define.
13510         (PIC_OFFSET_TABLE_REGNUM): Define.
13511         (GOT_SYMBOL_NAME): Define.
13512         (SYMBOLIC_CONST_P): Define.
13513         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13514         symbols.
13515         (MN10300_GLOBAL_P): Test it.
13516         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13517         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13518         * config/mn10300/mn10300.c (print_operand): Handle unspec.
13519         (expand_prologue): Set PIC register.
13520         (call_address_operand): Don't match SYMBOL_REFs in PIC.
13521         (legitimize_address): Call legitimize_pic_address.
13522         (legitimize_pic_address): New fn.
13523         (legitimate_pic_operand_p): New fn.
13524         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13525         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13526         UNSPEC_PLT): New constants.
13527         (pop_pic_reg): New insn.
13528         (movsi): Adjust non-PIC addresses.
13529         (builtin_setjmp_receiver): Restore the PIC register.
13530         (casesi): New insn.
13531         (call): Adjust non-PIC addresses.
13532         (int_label, GOTaddr2picreg): New expands.
13533         (am33_loadPC): New insn.
13534         (mn10300_loadPC): New expand.
13535         (call_next_insn): New insn.
13536         (add_GOT_to_pic_reg): New expand.
13537         (symGOT2reg, symGOT2reg_i): New expands.
13538         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13539         (sym2PIC, sym2PLT): New expands.
13540
13541 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
13542
13543         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13544         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
13545         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13546         to flag_unsafe_math_optimizations.
13547         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13548         * config/mn10300/mn10300.c (expand_prologue): Mark
13549         FP-register-saving insns as frame-related.
13550         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
13551         * config/mn10300/mn10300.c
13552         (mn10300_get_live_callee_saved_regs): Don't search past
13553         LAST_EXTENDED_REGNUM.
13554         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13555         * config/mn10300/mn10300.md: Remove excessive line breaks from
13556         `@' output patterns that were accounted as additional
13557         alternatives.
13558         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13559         Re-introduce changes accidentally removed in Richard Sandiford's
13560         2000-12-05's patch.
13561         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13562         Re-instate am33-2 lost in merge from net GCC.
13563         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
13564         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13565         floating-point registers.
13566         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
13567         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13568         pessimizations that had gone in on 2000-05-08.
13569         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
13570         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13571         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
13572         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13573         operand 0.
13574         * (movhi): Likewise.
13575         * (movsi): Likewise.
13576         * (movsf): Likewise.
13577         * (movdi): Likewise.
13578         * (movdf): Likewise.
13579         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
13580         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13581         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13582         (expand_prologue, expand_epilogue): Save and restore FP regs.
13583         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
13584         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13585         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
13586         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13587         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13588         Do not clobber cc0.
13589         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
13590         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13591         Discourage the two-argument, longer opcodes.
13592         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13593         ones.
13594         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13595         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13596         * config/mn10300/mn10300.md (cmpsf): New pattern.
13597         (branch): Test mdep.fpCC and output fbCC.
13598         * config/mn10300/mn10300.c (print_operand): Output conditions.
13599         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13600         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
13601         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13602         mulsf3, divsf3): Use the `F' constraint for FP values.
13603         * config/mn10300/mn10300.c (const_1f_operand): New function.
13604         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13605         * config/mn10300/mn10300.md (sqrtsf2): New expand.
13606         (rsqrtsf2): New insn.
13607         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
13608         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13609         previous check-in.
13610         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
13611         * config/mn10300/mn10300.md (abssf2, negdf2): On
13612         TARGET_AM33_2, expand to...
13613         (abssf2_am33_2, negdf2_am33_2): New insns.
13614         (addsf3, subsf3, mulsf3, divsf3): Likewise.
13615         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13616         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13617         movdi, movdf): Added FP regs.
13618         * invoke.texi (-mam33-2, -mno-am33-2): Document.
13619         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
13620         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13621         New macros.
13622         (REGNO_AM33_2_FP_P): Renamed to...
13623         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13624         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13625         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13626         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13627         regs from GENERAL_REGS.
13628         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13629         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13630         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13631         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13632         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
13633         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13634         as FP_REGS.
13635         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
13636         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13637         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13638         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13639         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13640         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13641         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13642         AM33/2.0 floating-point registers.
13643         (CONDITIONAL_REGISTER_USAGE): Adjust.
13644         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13645         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13646         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13647         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13648         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13649         (MULTILIB_DIRNAMES): Likewise.
13650         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13651         `__AM33_2__' when `-mam33-2' is given.
13652         (TARGET_AM33_2): Define.
13653         (TARGET_SWITCHES): Adjust.
13654         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13655         when appropriate.
13656
13657 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
13658
13659         * doc/install.texi: Add missing @.
13660
13661 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
13662
13663         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13664
13665 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
13666
13667         PR/11144
13668         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13669
13670 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
13671
13672         PR bootstrap/11043
13673         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13674         "x-crtfini.o" with "crtinit.o", "crtfini.o".
13675
13676         * fixinc/inclhack.def (limits_ifndefs): Add select test.
13677         * fixinc/fixincl.x: Rebuild.
13678
13679         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
13680         * fixinc/fixincl.x: Rebuild.
13681
13682 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
13683
13684         * doc/install.texi (Configuration): Document the valgrind option
13685         to --enable-checking.
13686
13687 2003-07-09  Jan Hubicka  <jh@suse.cz>
13688
13689         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13690
13691 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13692
13693         * c-lex.c (cb_ident): Cast cstr.text to const char *.
13694
13695 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13696
13697         * gcov-io.h: Update documentation.
13698         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13699         GCOV_NOTE_MAGIC.
13700         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13701         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13702         (struct gcov_var): Change buffer's type. Add endian flag.
13703         (gcov_open): Remove mode in libgcov.
13704         (gcov_magic): Prototype.
13705         * gcov-io.c (from_file): New.
13706         (gcov_open): Clear endian flag.
13707         (gcov_magic): New.
13708         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13709         pointers.
13710         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13711         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13712         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13713         * gcov-iov.c (main): Correct cast.
13714         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13715         conversion.
13716         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13717         (coverage_init): Use GCOV_NOTE_SUFFIX.
13718         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13719         Rename to gcov_version, and return flag.
13720         (gcov_exit): Use gcov_version.
13721         (__gcov_init): Use gcov_version.
13722         * Makefile.in (coverageexts): Update.
13723         * gcov.c (print_version): Remove endianness conversion.
13724         (create_file_names): Use GCOV_NOTE_SUFFIX.
13725         (read_graph_file): Use gcov_magic.
13726         (read_count_file): Likewise.
13727         * gcov-dump.c (dump_file): Remove endianness conversion, use
13728         gcov_magic.
13729
13730 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13731
13732         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13733         coverage is on.
13734         * configure: Regenerated.
13735         * Makefile.in (ALL_CFLAGS): Correct its comment.
13736
13737 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
13738
13739         * fold-const.c (make_range): Do not access operand 1 for a
13740         zero-operand operator.
13741
13742 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
13743
13744         * toplev.c (warn_dummy, W_options): Die.
13745         (display_help): Don't print W_options.
13746         * common.opt: Add W_options help from toplev.c.
13747
13748 2003-07-09  Andreas Jaeger  <aj@suse.de>
13749
13750         * opts.c (wrap_help): Only pass int arguments as arguments to
13751         printf's '*' modifier.  Change argument of function.
13752
13753 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13754
13755         * doc/invoke.texi: Fix misspelling of "@item".
13756
13757 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13758
13759         * config/i386/i386.md: Remove an old comment about
13760         NOTICE_UPDATE_CC.
13761
13762 2003-07-09  Jan Hubicka  <jh@suse.cz>
13763
13764         * cgraph.c (cgraph_node_name): New function.
13765         (dump_cgraph): Use it.
13766         * cgraph.h (cgraph_dump_file): Declare.
13767         (cgraph_node_name): Declare.
13768         * cgraphunit.c: Include timevar.h
13769         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13770         (cgraph_optimize_function): Use TV_INTEGRATION.
13771         (cgraph_mark_local_functions): reorganize dumps.
13772         (cgraph_mark_functions_to_inline_once): Likewise.
13773         (cgraph_optimize): Likewise; use timevar.
13774         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13775         * toplev.c (dump_file_index): Add DFI_cgraph.
13776         (dump_file_info): Likewise.
13777         (cgraph_dump_file): New global variable.
13778         (do_compile): Open and close cgraph dump.
13779         * invoke.texi (-d): Document new flag; renumber.
13780
13781 2003-07-08  Roger Sayle  <roger@eyesopen.com>
13782
13783         PR c/11370
13784         * calls.c (emit_call_1): Don't bother popping the arguments off of
13785         the stack after a noreturn function call;  The adjustment is dead.
13786         (expand_call): Likewise.
13787
13788 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
13789
13790         * expr.c (MOVE_MAX_PIECES): Move from here...
13791         * defaults.h (MOVE_MAX_PIECES): ... to here.
13792
13793 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13794
13795         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13796
13797 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13798
13799         * genattr.c (internal_dfa_insn_code): Don't prototype.
13800         * genattrtab.c (attr_desc): Add `static_p' field.
13801         (expand_units): Make blockage range and ready cost functions
13802         static.
13803         (write_attr_get): Don't add extern prototypes in C file.  Mark
13804         static functions as appropriate.
13805         (find_attr, make_internal_attr): Initialize static_p.
13806         * genattrtab.h (ATTR_STATIC): New macro.
13807         * genautomata.c (output_internal_reset_func): Mark output function
13808         as inline.
13809         (make_internal_dfa_insn_code_attr): Mark output function as static.
13810
13811 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13812
13813         * genattrtab.h: Add new macros for attr `special' flags.
13814         * genattrtab.c (attr_desc): Reorder/resize fields better.
13815         Use attr `special' macros in all calls to make_internal_attr.
13816         * genautomata.c: Likewise.
13817
13818 2003-07-09  Jan Hubicka  <jh@suse.cz>
13819
13820         * c-common.c (c_estimate_num_insns_1): New static function.
13821         (c_estimate_num_insns): New global function.
13822         * c-common.h (DECL_NUM_STMTS): Rename to...
13823         (DECL_ESTIMATED_INSNS): ... this.
13824         (c_estimate_num_insns): Declare.
13825         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13826         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13827         * c-semantics.c (add_stmt): Do not account statements.
13828         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13829         New.
13830         * langhooks.h (lang_hooks_for_tree_inlining): Add
13831         estimate_num_insns
13832         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13833         to 100.
13834         (max-inline-insns): set to 300.
13835         (min-inline-insns): set to 10.
13836         * tree-inline.c (struct inline_data): Rename inlined_stmts to
13837         inlined-insns.
13838         (INSNS_PER_STMT): Kill.
13839         (inlinable_function_p): Compute and store body size.
13840         (expand_call_inline): Likewise.
13841         (optimize_inline_calls): Likewise.
13842
13843 2003-07-08  James E Wilson  <wilson@tuliptree.org>
13844
13845         PR target/10021
13846         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13847         loop over new variable t2 instead of t.
13848
13849 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13850
13851         PR bootstrap/11455
13852         * config/i386/winnt.c: Replace use of error(), warning() with
13853         error_with_decl(), warning_with_decl(),  throughout.
13854
13855 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13856
13857         * opts.c (wrap_help): Use unsigned int, not size_t.
13858
13859 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
13860
13861         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13862         as .file/.loc directives are incompatible with linker relaxation.
13863
13864 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13865
13866         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13867         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13868         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13869         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13870         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13871         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13872         Escape { and } characters which are not part of range expressions.
13873         * fixinc/fixincl.x: Regenerate.
13874         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13875
13876 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
13877
13878         PR c/1687
13879         * tree-inline.c (find_alloca_call): Use
13880         walk_tree_without_duplicates, instead of walk_tree.
13881         (find_builtin_longjmp_call): Likewise.
13882         * c-objc-common.c (c_cannot_inline_fn): Likewise.
13883         * c-semantics.c (find_reachable_label): Likewise.
13884
13885 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13886
13887         PR c/11420
13888         * config/i386/i386.c (ix86_check_movabs): New function.
13889         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13890         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13891         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13892
13893 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
13894
13895         * Makefile.in (install-po): Cope with empty CATALOGS.
13896
13897 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
13898
13899         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13900         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13901         (SECTION_FUNCTION_TEMPLATE): Delete.
13902         * config/mips/elf.h: As for elf64.h.
13903         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13904         * config/mips/linux.h: As for elf.h
13905         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13906         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13907         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
13908         of in_sdata from current_section_name and current_section_flags.
13909         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13910         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13911         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13912         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13913         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13914         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13915         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13916         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13917         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13918         (override_options): Remove setting of MASK_GPOPT.
13919         (mips_output_external): Use mips_in_small_data_p to check whether a
13920         symbol needs an .extern directive.  Don't emit such directives for
13921         TARGET_EXPLICIT_RELOCS.
13922         (mips_declare_object): Update accordingly.
13923         (mips_select_rtx_section): Call named_section rather than
13924         SMALL_DATA_SECTION.
13925         (mips_select_section): Use default_elf_section_section for everything
13926         except .text string constants.
13927         (mips_in_small_data_p): New function.
13928         (mips_encode_section_info): Remove small data handling.
13929         (mips_unique_section): Delete.
13930         (iris6_section_type_flags): New function.
13931         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13932
13933 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13934
13935         PR Target/11453
13936         * pa.md: Disparage all mtsar constraints.
13937         (extzv, extv, insv): Don't fail on length of {32|64}.
13938
13939 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13940
13941         * system.h: Poison MAP_CHARACTER.
13942         * config/i370/i370-protos.h (mvs_map_char): Delete.
13943         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13944         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13945         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13946
13947 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13948
13949         * toplev.c (randomize): Correct call to time().
13950
13951 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13952
13953         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13954         REG_EQUIV notes as well.
13955
13956 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13957
13958         * doc/md.texi: Fix the description of addmodecc.
13959
13960 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
13961
13962         * Makefile.in (top_builddir): Set to "..", not ".".
13963         (INTLLIBS, INTLDEPS): Delete.
13964         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13965         (LIBDEPS): Add $(LIBICONV_DEP).
13966         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13967         (INCLUDES): Replace -I../intl with @INCINTL@.
13968         ($(top_builddir)/intl/libintl.a): Delete rule.
13969         (stage2-start, stage3-start, stage4-start, stageprofile-start,
13970         stagefeedback-start): Use $$ for variable to be evaluated by
13971         shell, not make.
13972         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13973         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13974         * aclocal.m4: sinclude ../config/progtest.m4.  Add
13975         contents of lcmessage.m4 from gettext distro.
13976         * configure.in: Check for wchar.h and setlocale.  Set
13977         LIBICONV_DEP to the empty string and substitute it.
13978         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
13979         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
13980         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
13981         in $LIBINTL, to avoid linking it twice.
13982         * configure, config.in: Regenerate.
13983
13984 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
13985
13986         * fixinc/mkfixinc.sh: Remove winnt support.
13987         * fixinc/fixinc.winnt: Delete with extreme prejudice.
13988
13989 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13990
13991         * Makefile.in: Update.
13992         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13993         * c.opt: Update documentation.
13994         * common.opt: Add some help text.
13995         * opts.c: Include intl.h.
13996         (wrap_help, print_help): New.
13997         (find_opt, handle_option, common_handle_option): opt_text now
13998         contains the '-'.  Use print_help to output help.
13999         * opts.h (struct cl_option): New member "help".
14000         * opts.sh: Update to handle help text output and to prepend
14001         options with '-'.
14002         * toplev.c (display_help): Remove some help text.
14003
14004 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
14005             Fariborz Jahanian  <fjahanian@apple.com>
14006
14007         * configure.in: Test for PowerPC mfcr field support in assembler.
14008         * config.in, configure: Regenderated.
14009
14010         * config/rs6000/power4.md: Add mfcrf reservation.
14011         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
14012         * config/rs6000/rs6000.c (mfcr_operation): Define.
14013         (print_operand): Add 'Q' case for mfcrf.
14014         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
14015         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
14016         (movcc_internal1): Emit optional field operand for mfcr and set
14017         "type" attribute appropriately.
14018         (mfcr SCC): Likewise.
14019         (movesi_from_cr_one): New.
14020
14021 2003-07-07  Roger Sayle  <roger@eyesopen.com>
14022
14023         * config/i386/i386.md: Correct check-in of incorrect version.
14024
14025 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14026
14027         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
14028         adjacent stdio calls.
14029         * c-decl.c (c_print_identifier): Likewise.
14030         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
14031         * print-rtl.c (print_rtx): Likewise.
14032         * print-tree.c (print_node_brief, print_node): Likewise.
14033         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
14034
14035         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
14036         * config.in, configure: Regenerated.
14037
14038 2003-07-07  Roger Sayle  <roger@eyesopen.com>
14039
14040         PR target/10979
14041         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
14042         Changed to define_expand patterns that copy operand[1] to prevent
14043         it from being clobbered before emitting an atan2?f3_1 insn.
14044         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
14045         patterns that actually specify the behaviour of x87's FPATAN.
14046
14047 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
14048
14049         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
14050         clearing of SYMBOL_FLAG_LOCAL bit.
14051         If vcall_offset fits into signed 16-bit immediate, use
14052         one instruction for both addition and load.
14053
14054 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
14055
14056         * opts.c (common_handle_option): Correct handling of the
14057         -falign- switches that do and don't take an argument.
14058
14059 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
14060
14061         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
14062         today.
14063         (pushhi1_h8300hs): Likewise.
14064
14065 2003-07-07  Andreas Jaeger  <aj@suse.de>
14066
14067         * genextract.c: Convert remaining prototypes to ISO C90.
14068
14069         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
14070         * fold-const.c (fold_single_bit_test): Likewise.
14071         * diagnostic.c (default_diagnostic_finalizer): Likewise.
14072         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
14073
14074         * gengtype.c (write_array): Generate ISO C90 prototypes.
14075
14076         * genflags.c (gen_proto): Generate ISO C90 prototypes.
14077
14078 2003-07-07  Roger Sayle  <roger@eyesopen.com>
14079
14080         PR optimization/11059
14081         * expr.c (can_store_by_pieces): Return true if length is zero.
14082         (store_by_pieces): If length is zero and endp is two, abort,
14083         othwerise, if length is zero and endp is not two, return "to".
14084         (clear_by_pieces): Do nothing if length is zero.
14085         (clear_storage): Do nothing if length is zero.
14086         (store_constructor): Simplify code when size is zero, or the
14087         target has already been cleared.  This avoids emitting a
14088         blockage instruction when initializing empty structures.
14089
14090 2003-07-07  Andreas Jaeger  <aj@suse.de>
14091
14092         * mips-tfile.c: Convert prototypes to ISO C90.
14093         * mips-tdump.c: Convert prototypes to ISO C90.
14094
14095 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14096
14097         * rtl.h (emit_line_note): Take a location_t.
14098         (emit_line_note_force): Remove.
14099         (set_file_and_line_for_statement): Take a location_t.
14100         * tree.g (emit_line_note): Take a location_t.
14101         * emit-rtl.c (emit_line_note): Take a location_t.
14102         (emit_line_note_force): Remove.
14103         * function.c (init_function_start): Adjust emit_line_note call.
14104         (expand_function_end): Use force_next_line_note, not
14105         emit_line_note_force.
14106         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
14107         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
14108         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
14109         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
14110         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
14111         genrtl_continue_stmt, genrtl_switch_stmt,
14112         genrtl_asm_stmt): Likewise.
14113         * expr.c (expand_expr): Likewise.
14114         * integrate.c (expand_inline_function): Likewise.
14115         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
14116         (expand_decl_init): Adjust emit_line_note call.
14117
14118 2003-07-07  Dale Johannesen  <dalej@apple.com>
14119
14120         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
14121
14122 2003-07-07  Andreas Jaeger  <aj@suse.de>
14123
14124         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
14125         * config/i386/i386.c: Likewise.
14126
14127 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
14128
14129         * config/h8300/h8300.md: Use gen_int_mode instead of
14130         GEN_INT (trunc_int_for_mode (...)).
14131
14132 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
14133
14134         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
14135         2 bytes and then subtract 2 from the stack pointer.
14136         (pushhi1_h8300hs): Likewise.
14137
14138 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
14139
14140         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
14141         -frandom-seed.
14142         * configure: Regenerated.
14143         * Makefile.in: Remove extraneous comment.
14144         * toplev.c (randomize): Protect against potential multiple calls.
14145         * doc/invoke.texi (-frandom-seed): Document use for in coverage
14146         files.
14147
14148 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14149             Eric Botcazou  <ebotcazou@libertysurf.fr>
14150
14151         PR optimization/11198
14152         * alias.c (objects_must_conflict_p): Return 1 if the types have
14153         the same alias set, not if the alias sets only conflict.
14154
14155 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
14156
14157         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
14158         (convert_cset): Change inbuf to type ICONV_CONST char.
14159         * Makefile.in (LIBS): Add LIBICONV.
14160
14161         * doc/invoke.texi (-falign-functions): Document that
14162         when n is zero then a machine-dependent default is used.
14163         (-falign-labels): Document that when n is zero then a
14164         machine-dependent default is used and that -falign-labels =1
14165         is equivalent to -fno-align-labels.
14166         (-falign-loops): Likewise.
14167         (-falign-jumps): Likewise.
14168
14169 2003-07-06  Art Haas  <ahaas@airmail.net>
14170
14171         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
14172         initializer syntax.
14173
14174 2003-07-06  James E Wilson  <wilson@tuliptree.org>
14175
14176         PR optimization/9812
14177         * rtl.h (mem_for_const_double): Delete prototype.
14178         * varasm.c (mem_for_const_double): Delete function.
14179         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
14180         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
14181         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
14182         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
14183         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
14184         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
14185         comment about confused support for XFmode constants.
14186
14187 2003-07-07  Jan Hubicka  <jh@suse.cz>
14188
14189         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
14190
14191 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
14192
14193         * config/h8300/h8300.c: Fix comment typos.
14194         * config/h8300/h8300.md: Likewise.
14195         * config/i386/athlon.md: Likewise.
14196         * config/i386/i386.c: Likewise.
14197         * config/i386/pentium.md: Likewise.
14198         * config/ia64/ia64.c: Likewise.
14199         * config/ia64/itanium1.md: Likewise.
14200         * config/ia64/itanium2.md: Likewise.
14201         * config/m32r/m32r.md: Likewise.
14202         * config/m68hc11/m68hc11.c: Likewise.
14203         * config/mcore/mcore.c: Likewise.
14204         * config/mips/sr71k.md: Likewise.
14205         * config/mips/t-iris5-as: Likewise.
14206         * config/mmix/mmix.h: Likewise.
14207         * config/ns32k/ns32k.h: Likewise.
14208         * config/ns32k/NOTES: Fix a typo.
14209
14210 2003-07-06  Andreas Jaeger  <aj@suse.de>
14211
14212         * stmt.c: Convert remaining prototypes to ISO C90.
14213         * cfglayout.c: Likewise.
14214         * dbxout.c: Likewise.
14215         * gcc.c: Likewise.
14216         * genemit.c: Likewise.
14217
14218         * basic-block.h: Convert prototypes to ISO C90.
14219         * c-parse.in: Likewise.
14220         * c-pragma.h: Likewise.
14221         * c-typeck.c: Likewise.
14222         * cfghooks.h: Likewise.
14223         * cfgloopanal.c: Likewise.
14224         * dbxout.h: Likewise.
14225         * debug.h: Likewise.
14226         * dwarf2asm.h: Likewise.
14227         * gcov.c: Likewise.
14228         * gengtype-lex.l: Likewise.
14229         * sched-int.h: Likewise.
14230         * timevar.c: Likewise.
14231
14232 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
14233
14234         * c-common.h (c_comon_handle_filename,
14235         c_common_missing_arguement): New.
14236         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14237         LANG_HOOKS_MISSING_ARGUMENT): New.
14238         * c-opts.c (missing_arg): Rename c_common_missing_argument,
14239         update to be an appropriate langhook.
14240         (c_common_handle_option): Don't handle filenames.
14241         (c_common_handle_filename): New.
14242         * hooks.c (hook_void_constcharptr,
14243         hook_bool_constcharptr_size_t_false): New.
14244         * hooks.h (hook_void_constcharptr,
14245         hook_bool_constcharptr_size_t_false): New.
14246         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
14247         LANG_HOOKS_MISSING_ARGUMENT): New.
14248         (LANG_HOOKS_INITIALIZER): Update.
14249         * langhooks.h (struct lang_hooks): Add handle_filename and
14250         missing_argument.
14251         * opts.c (handle_option): Don't handle filenames here, but ...
14252         (handle_options): ... here.
14253         (common_handle_option): Don't handle missing arguments here.
14254         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14255         LANG_HOOKS_MISSING_ARGUMENT): New.
14256
14257 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
14258
14259         * Makfile.in: Remove traces of mbchar.
14260         * c-parse.in (MULTIBYTE_CHARS): Remove.
14261         * config.in (MULTIBYTE_CHARS): Remove.
14262         * configure: Remove --enable-mbchar.
14263         * configure.in: Remove --enable-mbchar.
14264         * mbchar.c, mbchar.h: Remove.
14265         * system.h: Poison MULTIBYTE_CHARS.
14266         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14267         * config/linux.h (MULTIBYTE_CHARS): Remove.
14268         * config/svr4.h (MULTIBYTE_CHARS): Remove.
14269         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14270
14271 2003-07-06  Andreas Jaeger  <aj@suse.de>
14272
14273         * varray.c (varray_check_failed): Fix typo.
14274
14275         * unroll.c: Convert prototypes to ISO C90.
14276         * varasm.c: Likewise.
14277         * varray.c: Likewise.
14278         * varray.h: Likewise.
14279         * vmsdbgout.c: Likewise.
14280         * xcoffout.c: Likewise.
14281         * xcoffout.h: Likewise.
14282
14283 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14284
14285         * gcov-io.h: Add a local time stamp.
14286         (struct gcov_info): Add stamp field.
14287         (gcov_truncate): New.
14288         * coverage.c (read_counts_file): Skip the stamp.
14289         (coverage_begin_output): Write the stamp.
14290         (build_gcov_info): Declare and init the stamp.
14291         (coverage_finish): Only unlink data file, if stamp is zero.
14292         * gcov-dump.c (dump_file): Dump the stamp.
14293         * gcov.c (bbg_stamp): New.
14294         (release_structures): Clear bbg_stamp.
14295         (read_graph_file): Read stamp.
14296         (read_count_file): Check stamp.
14297         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14298
14299 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14300
14301         * tree.h (default_flag_random_seed): Remove.
14302         * toplev.h (local_tick): Declare.
14303         * tree.c (flag_random_seed, default_flag_random_seed): Move to
14304         toplev.c.
14305         (append_random_chars): Don't call default_flag_random_seed.
14306         * toplev.c (flag_random_seed): Define here. Set local_tick.
14307         (local_tick): Define.
14308         (randomize): New, moved from tree.c.
14309         (print_switch_values): Adjust.
14310         (toplev_main): Call randomize.
14311
14312 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14313
14314         * tree.h (crc32_string): Declare.
14315         * tree.c (append_random_chars): Remove.
14316         (crc32_string): New.
14317         (get_file_function_name_long): Use crc32_string here.
14318
14319 2003-07-06  Andreas Jaeger  <aj@suse.de>
14320
14321         * gcc.c: Convert prototypes to ISO C90.
14322         * gcc.h: Likewise.
14323         * gcov-dump.c: Likewise.
14324         * gcov-iov.c: Likewise.
14325         * gcse.c: Likewise.
14326         * genattrtab.h: Likewise.
14327         * ggc.h: Likewise.
14328         * global.c: Likewise.
14329         * graph.c: Likewise.
14330         * graph.h: Likewise.
14331         * hosthooks.h: Likewise.
14332         * hooks.h: Likewise.
14333         * hooks.c: Likewise.
14334         * hashtable.h: Likewise.
14335         * hashtable.c: Likewise.
14336         * haifa-sched.c: Likewise.
14337         * integrate.h: Likewise.
14338         * integrate.c: Likewise.
14339         * input.h: Likewise.
14340         * ifcvt.c: Likewise.
14341         * jump.c: Likewise.
14342         * langhooks-def.h: Likewise.  Add extern to prototypes.
14343         * langhooks.c: Likewise.
14344         * langhooks.h: Likewise.
14345         * lcm.c: Likewise.
14346         * local-alloc.c: Likewise.
14347         * loop-init.c: Likewise.
14348         * loop-unroll.c: Likewise.
14349         * loop-unswitch.c: Likewise.
14350         * loop.c: Likewise.
14351         * loop.h: Likewise. Add extern to prototypes.
14352         * machmode.h: Likewise.
14353         * main.c: Likewise.
14354         * mbchar.c: Likewise.
14355         * mbchar.h: Likewise.
14356         * mkdeps.c: Likewise.
14357         * mkdeps.h: Likewise.
14358         * optabs.c: Likewise.
14359         * optabs.h: Likewise.
14360         * output.h: Likewise.
14361         * gccspec.c: Likwise.
14362         * postreload.c: Likewise.
14363         * prefix.c: Likewise.
14364         * prefix.h: Likewise.
14365         * print-rtl.c: Likewise.
14366         * print-tree.c: Likewise.
14367         * profile.c: Likewise.
14368         * read-rtl.c: Likewise.
14369         * real.c: Likewise.
14370         * real.h: Likewise.
14371         * recog.c: Likewise.
14372         * recog.h: Likewise.
14373         * reg-stack.c: Likewise.
14374         * regclass.c: Likewise.
14375         * regmove.c: Likewise.
14376         * regrename.c: Likewise.
14377         * regs.h: Likewise.
14378         * reload.c: Likewise.
14379         * reload.h: Likewise.
14380         * reload1.c: Likewise.
14381         * reorg.c: Likewise.
14382         * resource.c: Likewise.
14383         * resource.h: Likewise.
14384         * rtl-error.c: Likewise.
14385         * rtl.c: Likewise.
14386         * rtl.h: Likewise.
14387         * rtlanal.c: Likewise.
14388         * sbitmap.c: Likewise.
14389         * sbitmap.h: Likewise.
14390         * scan-decls.c: Likewise.
14391         * scan.c: Likewise.
14392         * sched-deps.c: Likewise.
14393         * sched-ebb.c: Likewise.
14394         * sched-int.h: Likewise.
14395         * sched-rgn.c: Likewise.
14396         * sched-vis.c: Likewise.
14397         * sibcall.c: Likewise.
14398         * simplify-rtx.c: Likewise.
14399         * sreal.c: Likewise.
14400         * sreal.h: Likewise.
14401         * ssa-ccp.c: Likewise.
14402         * ssa-dce.c: Likewise.
14403         * ssa.c: Likewise.
14404         * ssa.h: Likewise.
14405         * stack.h: Likewise.
14406         * stmt.c: Likewise.
14407         * stor-layout.c: Likewise.
14408         * stringpool.c: Likewise.
14409         * target.h: Likewise.
14410         * timevar.c: Likewise.
14411         * timevar.h: Likewise.
14412         * tlink.c: Likewise.
14413         * tracer.c: Likewise.
14414         * tree-inline.c: Likewise.
14415         * tree-inline.h: Likewise.
14416         * tree.c: Likewise.
14417         * tree.h: Likewise.
14418
14419 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14420
14421         * combine.c (nonzero_bits1): Fix a warning.
14422
14423 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14424
14425         * config/h8300/h8300.c (compute_mov_length): Correct the
14426         length of loading CONST0_RTX (SFmode).
14427
14428 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14429
14430         * toplev.c (output_clean_symbol_name): Remove.
14431         * toplev.h (output_clean_symbol_name): Remove.
14432         * config/alpha/alpha.c (unicosmk_output_module_name): Use
14433         lbasename & clean_symbol_name.
14434
14435 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14436
14437         * ggc.h: Follow spelling conventions.
14438         * config/i386/i386.c: Likewise.
14439         * config/i386/winnt.c: Likewise.
14440         * config/rs6000/rs6000.c: Likewise.
14441
14442 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14443
14444         * bt-load.c: Fix comment typos.
14445         * c-incpath.c: Likewise.
14446         * cfg.c: Likewise.
14447         * cfgcleanup.c: Likewise.
14448         * cfgloop.h: Likewise.
14449         * cfgloopmanip.c: Likewise.
14450         * cfgrtl.c: Likewise.
14451         * diagnostic.h: Likewise.
14452         * dwarfout.c: Likewise.
14453         * emit-rtl.c: Likewise.
14454         * et-forest.c: Likewise.
14455         * et-forest.h: Likewise.
14456         * expr.c: Likewise.
14457         * gcse.c: Likewise.
14458         * genattr.c: Likewise.
14459         * jump.c: Likewise.
14460         * langhooks.h: Likewise.
14461         * local-alloc.c: Likewise.
14462         * loop-unroll.c: Likewise.
14463         * loop-unswitch.c: Likewise.
14464         * ra-build.c: Likewise.
14465         * regclass.c: Likewise.
14466         * regmove.c: Likewise.
14467         * rtl.def: Likewise.
14468         * rtlanal.c: Likewise.
14469         * sched-ebb.c: Likewise.
14470         * sched-rgn.c: Likewise.
14471         * simplify-rtx.c: Likewise.
14472         * ssa.c: Likewise.
14473         * tracer.c: Likewise.
14474         * tree.c: Likewise.
14475
14476 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
14477
14478         * cppcharset.c: Use the correct return type for the fallback iconv
14479         macro.
14480
14481 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14482
14483         Blame to Jan Hubicka  <jh@suse.cz>
14484         * cfglayout.c (record_effective_endpoints): Split insns before
14485         first basic block correctly.
14486
14487 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14488
14489         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14490         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14491         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14492
14493 2003-07-05  Andreas Jaeger  <aj@suse.de>
14494
14495         * genattrtab.c (write_attr_get): Revert part of last patch to
14496         always write out a prototype.
14497
14498         * genemit.c (gen_split): Readd lost unused attributes in last
14499         patch.
14500
14501 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14502
14503         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14504         different from header.
14505
14506 2003-07-05  Andreas Schwab  <schwab@suse.de>
14507
14508         * config/m68k/m68k.c: Remove code protected by CRDS.
14509         * config/m68k/m68k.md: Likewise.
14510
14511 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
14512
14513         PR driver/11417
14514         * c-opts.c (permit_fortran_options): New.
14515         (c_common_init_options): Accept fortran front end options if
14516         it looks like we might be preprocessing Fortran.
14517         (c_common_handle_option): Don't reject switch if permit_fotran_options.
14518
14519 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14520
14521         * genattr.c (internal_dfa_insn_code): Output prototype.
14522         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14523         * genautomata.c: Likewise.
14524         * genconditions.c: Likewise.
14525         * genemit.c: Likewise.
14526         * genextract.c: Likewise.
14527         * gengenrtl.c: Likewise.
14528         * gengtype.c: Likewise.
14529         * genopinit.c: Likewise.
14530         * genoutput.c: Likewise.
14531         * genpeep.c: Likewise.
14532         * genrecog.c: Likewise.
14533
14534 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14535
14536         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14537         (struct cpp_options): Add narrow_charset, wide_charset,
14538         bytes_big_endian fields.  Remove EBCDIC field.
14539         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14540
14541         * cpphash.h: Include <iconv.h> if we have it, otherwise
14542         provide a dummy definition of iconv_t.
14543         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14544         (_cpp_valid_ucn): Update prototype.
14545         (_cpp_destroy_iconv): New prototype.
14546
14547         * doc/cpp.texi: Document character set handling.
14548         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14549         * doc/extend.texi: Delete entire section on multiline strings.
14550         Rewrite section on __FUNCTION__ etc now that these are
14551         variables in C.
14552
14553         * cppucnid.tab, cppucnid.pl: New files.
14554         * cppucnid.h: New generated file.
14555         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
14556         (iconv_open, iconv, iconv_close): Provide dummy definitions
14557         if !HAVE_ICONV.
14558         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14559         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14560         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14561         cpp_interpret_string, narrow_str_to_charconst,
14562         wide_str_to_charconst): New.
14563         (ucn_valid_in_identifier): Use a binary search through the
14564         ucnranges table defined in cppucnid.h, not a long chain of if
14565         statements.
14566         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
14567         character names are only valid in C++ and C99" to a warning.
14568         Issue the "meaning of \[uU] is different in traditional C"
14569         warning here.  Take care not to let iconv see an invalid UCS
14570         value if we get a malformed UCN.  Issue an error if we don't
14571         have iconv.
14572         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
14573         cpp_interpret_string to do the heavy lifting.
14574
14575         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14576         narrow_charset, wide_charset fields of options structure.
14577         (cpp_destroy): Call _cpp_destroy_iconv.
14578         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14579         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14580         (cpp_interpret_charconst): Moved to cppcharset.c.
14581         * cpplib.c (dequote_string): Delete.
14582         (interpret_string_notranslate): New.
14583         (do_line, do_linemarker): Use interpret_string_notranslate.
14584
14585         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14586
14587         * c-common.c (fname_string, combine_strings): Delete.
14588         * c-common.h (fname_string, combine_strings): Delete prototypes.
14589         * c-lex.c (ignore_escape_flag): Delete.
14590         (cb_ident): Use cpp_interpret_string, not lex_string.
14591         (get_nonpadding_token): New function.
14592         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14593         Adjust calls to lex_string.  Don't write *value twice.
14594         (lex_string): Now handles string constant concatenation.
14595         Most of the work handed off to cpp_interpret_string.
14596         Call fix_string_type here.
14597         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14598         FUNC_NAME, throughout.
14599         (OBJC_STRING): New token type.
14600         (primary:STRING): No need to call fix_string_type here.
14601         (primary:objc_string): Make that OBJC_STRING.
14602         (objc_string nonterminal): Delete.
14603         (yylexname): Delete code to handle fake string constants.
14604         (yylexstring): Delete entirely.
14605         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
14606         to handle CPP_ATSIGN.
14607
14608         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14609         * c-opts.c (missing_arg, c_common_handle_option): Handle
14610         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14611         (c_common_init): Set cpp_opts->bytes_big_endian, not
14612         cpp_opts->EBCDIC.  Call cpp_init_iconv.
14613         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14614         (TARGET_EBCDIC): Delete default definition.
14615
14616         * objc/objc-act.c (build_objc_string_object): No need to
14617         handle string constant concatenation.
14618
14619 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14620
14621         * doc/install.texi: Fix typos.
14622         * doc/invoke.texi: Likewise.
14623         * doc/tm.texi: Likewise.
14624
14625 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14626
14627         * config/pa/fptr.c: Fix comment typos.
14628         * config/pa/pa-64.h: Likewise.
14629         * config/pa/pa.c: Likewise.
14630         * config/pa/pa.h: Likewise.
14631         * config/rs6000/603.md: Likewise.
14632         * config/rs6000/7xx.md: Likewise.
14633         * config/rs6000/darwin.h: Likewise.
14634         * config/rs6000/freebsd.h: Likewise.
14635         * config/rs6000/rs6000.c: Likewise.
14636         * config/rs6000/rs6000.md: Likewise.
14637         * config/rs6000/spe.h: Likewise.
14638
14639 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
14640
14641         * config/s390/2064.md: Change GNU CC to GCC.
14642         * config/s390/2084.md: Likewise.
14643         * config/s390/fixdfdi.h: Likewise.
14644         * config/s390/linux.h: Likewise.
14645         * config/s390/s390-modes.def: Likewise.
14646         * config/s390/s390-protos.h: Likewise.
14647         * config/s390/s390.c: Likewise.
14648         * config/s390/s390.h: Likewise.
14649         * config/s390/s390.md: Likewise.
14650         * config/s390/s390x.h: Likewise.
14651
14652 2003-07-04  Jeff Law  <law@redhat.com>
14653
14654         PR c/11428
14655         * expr.c (do_store_flag): Pass in the correct result type
14656         when calling fold_single_bit_test.
14657         * fold-const.c (fold_single_bit_test): Use result_type for the
14658         result when folding a sign bit test.
14659
14660 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
14661
14662         * opts.c (common_handle_options): Negate sense of -falign- switches.
14663
14664 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
14665
14666         * Makefile.in: Replace PWD with PWD_COMMAND.
14667
14668 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14669
14670         * cfgloopanal.c (count_strange_loop_iterations): New static function.
14671         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14672         Handle strange loops.
14673
14674 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
14675
14676         * install.texi: Even the g77 manpage is derived from
14677         the full g77 manual.
14678
14679 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14680
14681         * ABOUT-NLS: Delete.
14682         * intl: Delete entire directory.
14683         * aclocal.m4: Include ../config/gettext.m4.  Delete
14684         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14685         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14686         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14687         Remove intl/Makefile from all_outputs.
14688         * configure, config.in: Regenerate.
14689         * Makefile.in: Expunge all references to intl subdirectory.
14690         Add -I../intl to INCLUDES.
14691         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14692
14693 2003-07-04  Roger Sayle  <roger@eyesopen.com>
14694
14695         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14696         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14697
14698 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
14699
14700         PR c++/5287, PR c++/7910, PR c++/11021
14701         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14702         dllimport attribute if function is defined at declaration, but
14703         report error instead. Likewise for dllimport'd variable
14704         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
14705         declared within functions, Report error if dllimport or dllexport
14706         symbol is not global.
14707         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14708         if defined after declaration or if inlined. Don't allow definition
14709         of static data members of C++ classes. Don't dllimport virtual
14710         methods.
14711         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14712         (i386_pe_mark_dllimport): Remove unnecessary checks.
14713         (i386_pe_encode_section_info): Warn if the dllimport attribute
14714         and symbol prefix have been instantiated and then overridden.
14715
14716         * doc/extend.texi: Document dllimport and dllexport attributes.
14717
14718         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14719
14720 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14721
14722         * config/kaos.h (CPP_PREDEFINES): Delete.
14723         (TARGET_OS_CPP_BUILTINS): New.
14724
14725 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14726
14727         * c-aux-info.c: Include toplev.h after c-tree.h.
14728         * c-common.c: Likewise.
14729         (GCC_DIAG_STYLE): Undef.
14730         * c-semantics.c (GCC_DIAG_STYLE): Define.
14731         * c-tree.h (GCC_DIAG_STYLE): Likewise.
14732         * diagnostic.h (inform): Move prototype to toplev.h.
14733         * jump.c: Include diagnostic.h before toplev.h.
14734         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14735         (warning, error, fatal_error, pedwarn, sorry, inform,
14736         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14737
14738 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14739
14740         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14741         at all if edge is not specified.
14742         (can_copy_bbs_p, copy_bbs): New.
14743         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14744         * cfgloop.c (get_loop_body): Comment more precisely.
14745         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14746         (scale_bbs_frequencies): Fix comment typo.
14747         (can_duplicate_loop_p): Use can_copy_bbs_p.
14748         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14749
14750 2003-07-03  Devang Patel <dpatel@apple.com>
14751
14752         * c-opts.c (c_common_parse_file): Remove extra
14753         debug_hooks->start_source_file call.
14754
14755 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14756
14757         * real.c (real_trunc, real_floor, real_ceil): New functions
14758         to implement trunc, floor and ceil respectively.
14759         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14760         * builtins.c (integer_valued_real_p): New function to test if
14761         a floating point expression has an integer valued result.
14762         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14763         foo(x) where foo is an integer rounding function.  Similarly,
14764         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14765         (double)(int)x when both foo and bar are integer rounding
14766         functions and we don't need to honor errno.
14767         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14768         New functions to fold trunc, floor and ceil.
14769         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14770         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14771         to fold BUILT_IN_CEIL*.
14772         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14773         the remaining integer rounding functions.
14774
14775 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14776
14777         * config/sparc/sparc.c (function_arg_partial_nregs): Use
14778         SPARC_INT_ARG_MAX to determine where to split unnamed
14779         complex FP arguments.
14780
14781 2003-07-03  Jan Hubicka  <jh@suse.cz>
14782
14783         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14784         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14785         (merge_blocks_move_predecessor_nojumps,
14786          merge_blocks_move_successor_nojumps): Use merge_blocks.
14787         (try_optimize_cfg): Use merge_blocks_move.
14788         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14789         (merge_blocks_nomove): Rename to rtl_merge_blocks.
14790         (cfg_layout_create_basic_block): New.
14791         (rtl_can_merge_blocks): New.
14792         (cfg_layout_split_block): Do not alloc aux by hand.
14793         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14794         merge_blocks.
14795         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14796         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14797         * cfgloopmanip.c (loop_split_edge_with): Likewise.
14798         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14799
14800         * basic-block.h (basic_block_def): Add field 'rbi'.
14801         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14802         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14803         * cfg.c (entry_exit_blocks): Add new field.
14804         * cfglayout.c: Include alloc-pool.h;
14805         (cfg_layout_pool): New.
14806         (record_effective_endpoints, fixup_reorder_chain,
14807         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14808         of rbi.
14809         (cfg_layout_initialize_rbi): New function.
14810         (cfg_layout_initialize): Use it.
14811         (cfg_layout_finalize): Clear rbi fields.
14812         * cfglayout.h (RBI): Kill.
14813         (cfg_layout_initialize_rbi): Declare.
14814         * cfgloopmanip.c (copy_bbs): Use rbi.
14815         (record_exit_edges): Likewise.
14816         (duplicate_loop_to_header_edge): Likewise.
14817         * cfgrtl.c (cfg_layout_create_basic_block): Use
14818         cfg_layout_initialize_rbi.
14819         (cfg_layout_split_block): Use rbi.
14820         (cfg_layout_delete_block): Likewise.
14821         * loop-init.c (loop_optimizer_finalize): Likewise.
14822         * loop-unswitch.c (unswitch_loop): Likewise.
14823         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14824
14825         * cfgrtl.c: Update comments.
14826         (try_redirect_by_replacing_jump): New argument.
14827         (redirect_branch_edge): Break out from ...
14828         (rtl_redirect_edge_and_branch): ... this one.
14829         (update_cfg_after_block_merging): Break out from ...
14830         (rtl_merge_blocks): ... this one.
14831         (cfg_layout_split_edge): New.
14832         (cfg_layout_merge_blocks): New.
14833         (cfg_layout_can_merge_blocks_p): New.
14834         (cfg_layout_redirect_edge_and_branch): Reorganize.
14835         (cfg_layout_rtl_cfg_hooks): Fill in.
14836         (cfg_layout_delete_block): Kill barriers.
14837         * cfganal.c (can_fallthru): Deal with exit blocks
14838         * cfglayout.c (cfg_layout_function_header): New function
14839         (record_effective_endpoints): Record function header.
14840         (fixup_reorder_chain): Fixup dead jumptables; place header
14841
14842         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14843         * bb-reorder.c (cfg_layout_initialize): Update call.
14844         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14845         edges in cfglayout mode.
14846         * cfglayout.c (cleanup_unconditional_jumps): Kill.
14847         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14848         * cfglayout.h (cfg_layout_initialize): Update prototype.
14849         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14850         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14851         * flow.c (propagate_block): Do not crash when basic block ends
14852         by first insn in the chain.
14853         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
14854         do loop discovery.
14855         * tracer.c (tracer): Update call of cfg_layout_initialize.
14856
14857 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14858
14859         * Makefile.in: Use dependency variables in lieu of explicit
14860         files throughout.
14861
14862 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
14863
14864         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14865         * tree.h: ...to here.
14866
14867 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14868
14869         * config/s390/2064.md: Fix comment typos.
14870         * config/s390/2084.md: Likewise.
14871         * config/s390/s390.c: Likewise.
14872         * config/s390/s390.md: Likewise.
14873         * config/sh/sh.c: Likewise.
14874         * config/sh/sh.h: Likewise.
14875         * config/sh/sh.md: Likewise.
14876         * config/sparc/sparc.c: Likewise.
14877         * config/sparc/sparc.h: Likewise.
14878         * config/sparc/sparc.md: Likewise.
14879         * config/stormy16/stormy16.c: Likewise.
14880         * config/stormy16/stormy16.h: Likewise.
14881         * config/stormy16/stormy-abi: Fix a typo.
14882
14883 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
14884
14885         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14886
14887 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14888
14889         * config/mips/mips.h (save_argv): Delete.
14890
14891 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14892
14893         PR target/10700
14894         * fold-const.c (extract_muldiv_1): There's nothing that can be done
14895         if the expression is a SAVE_EXPR.
14896
14897 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14898
14899         * config/m32r/m32r.c: Fix comment typos.
14900         * config/m68hc11/m68hc11.c: Likewise.
14901         * config/m68hc11/m68hc11.h: Likewise.
14902         * config/m68k/m68k.c: Likewise.
14903         * config/mcore/mcore.c: Likewise.
14904         * config/mcore/mcore.h: Likewise.
14905         * config/mcore/mcore.md: Likewise.
14906         * config/mips/mips.c: Likewise.
14907         * config/mips/mips.h: Likewise.
14908         * config/mips/mips.md: Likewise.
14909         * config/mips/netbsd.h: Likewise.
14910         * config/mn10300/mn10300.c: Likewise.
14911
14912 2003-07-03  Andreas Schwab  <schwab@suse.de>
14913
14914         * dbxout.c (pending_bincls): Move decl down inside
14915         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14916
14917 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14918
14919         * rtl.h (NOTE_DATA): Refer to whole union.
14920         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14921
14922 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14923
14924         PR optimization/11381
14925         * simplify-rtx.c (simplify_relational_operation): Check that
14926         two equal operands have no side-effects before simplifying
14927         the comparison.
14928
14929 2003-07-02  Jeff Law  <law@redhat.com>
14930
14931         * expr.c (do_store_flag): Remove special case folding for
14932         single bit tests.  Instead call back into the commonized folder
14933         routine.
14934         * fold-const.c (fold_single_bit_test): New function, mostly
14935         extracted from do_store_flag, with an additional case extracted
14936         from fold.
14937         (fold): Call fold_single_bit_test appropriately.
14938         * tree.h (fold_single_bit_test): Prototype.
14939
14940 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
14941
14942         * system.h: Include filenames.h.
14943         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14944         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14945         define based on HAVE_DOS_BASED_FILE_SYSTEM.
14946         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14947         * config/i386/xm-mingw32.h: Don't define
14948         HAVE_DOS_BASED_FILE_SYSTEM,
14949         DIR_SEPARATOR, or DIR_SEPARATOR_2.
14950         * doc/hostconfig.texi: Update to match.
14951
14952         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14953         config/i386/cygwin.h:
14954         Use IS_ABSOLUTE_PATH throughout.
14955         * gcc.c (DIR_UP): Delete, unused.
14956         * protoize.c (IS_SAME_PATH): Define in terms of
14957         FILENAME_CMP.
14958         (is_abspath): Delete.
14959
14960 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14961
14962         * config/i386/emmintrin.h: Fix comment typos.
14963         * config/i386/i386.c: Likewise.
14964         * config/i386/i386.h: Likewise.
14965         * config/i386/sco5.h: Likewise.
14966         * config/ia64/ia64.c: Likewise.
14967         * config/ia64/itanium2.md: Likewise.
14968
14969 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14970
14971         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14972         DBX_USE_BINCL.
14973         (emit_bincl_stab): Same.
14974         (emit_pending_bincls): Same.
14975
14976 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14977
14978         * config/h8300/h8300.c (compute_mov_length): Fix the length of
14979         loading CONST0_RTX (SFmode).
14980         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14981         'G' to CONST0_RTX (SFmode).
14982         * config/h8300/h8300.md (movsf_h8300): Change the first
14983         constraint to 'G'.
14984         (movsf_h8300h): Likewise.
14985
14986 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14987
14988         * c-common.h (c_common_init_options): New prototype.
14989         * c-opts.c (deferred_size): Remove.
14990         (defer_opt): Array is now pre-allocated.
14991         (c_common_init_options): Pre-allocate deferred_opts.  Make
14992         lang_flags unsigned.
14993         (push_command_line_options): Free deferred_opts.
14994         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14995         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14996         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14997         * langhooks.h (struct lang_hooks): New prototype for init_options.
14998         * main.c (main): Cast argv.
14999         * opts.c (handle_option, handle_options): Update prototypes.
15000         (decode_options): save_argc, save_argv are not global.  Constify.
15001         * opts.h (decode_options): New prototype.
15002         * toplev.c (general_init): New protoype.
15003         (save_argv): Make static.
15004         (save_argc): Remove.
15005         (print_switch_values, general_init): Constify.
15006         (toplev_main): Save argv.
15007         * toplev.h (toplev_main): Update prototype.
15008         (save_argc, save_argv): Remove.
15009
15010 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
15011
15012         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
15013         (emit_bincl_stab): Same.
15014         (emit_pending_bincls): Same.
15015
15016 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
15017
15018         PR c++/11072
15019         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
15020
15021 2003-07-02  Andreas Schwab  <schwab@suse.de>
15022
15023         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
15024
15025 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
15026
15027         PR optimization/11210
15028         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
15029         about the behaviour with regard to bitfields.
15030         * fold-const (decode_field_reference): Record outermost type in
15031         case the expression is a NOP. Strip all NOPs. Set the signedness
15032         to that of the outermost type (if any) when the bitsize is equal
15033         to the size of the type.
15034
15035 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
15036
15037         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
15038         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
15039         (adddi3_internal_3, addsi3_internal_2): Likewise.
15040
15041 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
15042
15043         * config/mips/mips.c (machine_function): Add new fields:
15044         ignore_hazard_length_p and all_noreorder_p.
15045         (mips_flag_delayed_branch): New variable.
15046         (override_options): Treat '/' as an operand punctuation character.
15047         Set up mips_flag_delayed_branch.
15048         (print_operand): Handle '/'.
15049         (mips_output_function_prologue): Put the whole function in
15050         .set noreorder and .set nomacro if all_noreorder_p is true.
15051         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
15052         (mips16_optimize_gp): Remove "first insn" parameter.
15053         (mips16_lay_out_constants): New function, split out from mips_reorg.
15054         (mips_avoid_hazard, mips_avoid_hazards): New functions.
15055         (mips_reorg): For mips16 code, call mips16_lay_out_constant
15056         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
15057         do delayed-branch scheduling followed by hazard detection.
15058         (mips_adjust_insn_length): Only account for hazards if
15059         !ignore_hazard_length_p.
15060         (mips_output_load_label): Add a nop to the o32 sequence if
15061         the target suffers from load delays.
15062         (mips_output_conditional_branch): Add %/ to the end of branches.
15063         (mips_output_division): Fill the branch delay slot with %#.
15064         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
15065         instructions.  End all other %* branches with %/.
15066         (ffssi2, ffsdi2): Fix lengths.
15067         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
15068         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
15069         (fix_truncsfsi2_macro): Likewise.
15070         (mov_lwl): Set hazard to "none".
15071         (ashldi3_internal): Fill the branch delay slot with %#.
15072         (ashrdi3_internal, lshrdi3_internal): Likewise.
15073         (exception_receiver): Explicitly set $28.
15074         (hazard_nop): New pattern.
15075
15076 2003-07-02  Jan Hubicka  <jh@suse.cz>
15077
15078         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
15079         before calling tree_inlinable_function_p.
15080
15081 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15082
15083         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
15084         <internal/stdio_core.h> too.
15085         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
15086         <internal/wchar_core.h> too.
15087         Substitute va_list uses in inline definition.
15088         * fixinc/fixincl.x: Regenerate.
15089
15090 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15091
15092         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
15093         Undef before redefinition.
15094         (LABEL_AFTER_LOC): Likewise.
15095         (DEFAULT_SIGNED_CHAR): Likewise.
15096         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
15097         Fix IRIX spelling.
15098
15099         * config/mips/iris3.h: Remove, unused.
15100         * config/mips/iris4.h: Likewise.
15101
15102         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
15103
15104         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
15105         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
15106         target_cpu_default.
15107
15108         * config/mips/iris5.h: Move explicit includes ...
15109         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
15110
15111         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
15112         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15113         tm_defines.
15114
15115         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
15116         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
15117         target_cpu_default.
15118
15119         * config/mips/iris6.h: Fix IRIX spelling.
15120         (MULTILIB_DEFAULTS): Undef before redefinition.
15121
15122         * config/mips/iris6.h: Move explicit includes ...
15123         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
15124
15125 2003-07-02  Jan Hubicka  <jh@suse.cz>
15126
15127         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
15128         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
15129         Use next_needed field instead of aux to maintain the queue.
15130         * cgraph.h (cgraph_node): Add next_needed.
15131         (cgraph_varpool_node): Add next_needed; remove aux.
15132         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
15133
15134 2003-07-02  Jan Hubicka  <jh@suse.cz>
15135
15136         * cgraphunit.c (cgraph_finalize_function): Set finalized.
15137         (cgraph_finalize_function): Do not examine inlinablility.
15138         (cgraph_finalize_compilation_unit): Do it here.
15139         * cgraph.h (cgraph_local_info): Add finalized field.
15140
15141 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15142
15143         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
15144         (gt_pch_restore): Likewise.
15145
15146 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
15147
15148         * config/alpha/alpha.c: Fix comment typos.
15149         * config/alpha/elf.h: Likewise.
15150         * config/arm/arm.c: Likewise.
15151         * config/arm/arm.h: Likewise.
15152         * config/arm/arm.md: Likewise.
15153         * config/arm/t-arm-coff: Likewise.
15154         * config/arm/t-strongarm-pe: Likewise.
15155         * config/arm/xscale-elf.h: Likewise.
15156         * config/avr/avr.h: Likewise.
15157
15158 2003-07-01  Jeff Law  <law@redhat.com>
15159
15160         * stmt.c (any_pending_cleanups): Remove another redundant test.
15161
15162 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
15163             J"orn Rennecke <joern.rennecke@superh.com>
15164
15165         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
15166         for MEM case.
15167
15168 2003-07-01  Devang Patel  <dpatel@apple.com>
15169
15170         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
15171         (binclstatus): New.
15172         (struct dbx_file): New members - bincl_status, pending_bincl_name and
15173         prev.
15174         (pending_bincls): New.
15175         (dbxout_init): Initialize new dbx_file members.
15176         (dbxout_start_source_file): Same.
15177         (emit_bincl_stab): New function.
15178         (emit_pending_bincls): Same.
15179         (emit_pending_bincls_if_required): Same.
15180         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
15181         processed.
15182         (dbxout_begin_block): Emit pending BINCL stabs.
15183         (dbxout_end_block): Same.
15184         (dbxout_function_decl): Same.
15185         (dbxout_continue): Same.
15186         (dbxout_type): Same.
15187         (dbxout_class_name_qualifiers): Same.
15188         (dbxout_symbol): Same.
15189         (dbxout_symbol_location): Same.
15190         (dbxout_parms): Same.
15191
15192 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15193
15194         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
15195         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
15196
15197 2003-07-01  Andreas Jaeger  <aj@suse.de>
15198
15199         * fold-const.c: Convert prototypes to ISO C90.
15200         * function.c: Likewise.
15201         * function.h: Likewise.
15202
15203 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
15204
15205         * doc/contrib.texi: Fix typos.
15206         * doc/invoke.texi: Likewise.
15207         * doc/passes.texi: Likewise.
15208         * doc/sourcebuild.texi: Likewise.
15209         * doc/tm.texi: Likewise.
15210
15211 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
15212
15213         * basic-block.h: Fix comment typos.
15214         * bb-reorder.c: Likewise.
15215         * c-format.c: Likewise.
15216         * cfgcleanup.c: Likewise.
15217         * cfghooks.h: Likewise.
15218         * cfgloop.c: Likewise.
15219         * cfgloopmanip.c: Likewise.
15220         * cfgrtl.c: Likewise.
15221         * cgraph.h: Likewise.
15222         * cgraphunit.c: Likewise.
15223         * combine.c: Likewise.
15224         * convert.c: Likewise.
15225         * dbxout.c: Likewise.
15226         * df.c: Likewise.
15227         * df.h: Likewise.
15228         * diagnostic.c: Likewise.
15229         * dwarf2out.c: Likewise.
15230         * et-forest.h: Likewise.
15231         * flow.c: Likewise.
15232         * fold-const.c: Likewise.
15233         * function.h: Likewise.
15234         * gcov-io.h: Likewise.
15235         * gcov.c: Likewise.
15236         * gcse.c: Likewise.
15237         * genautomata.c: Likewise.
15238         * ggc-common.c: Likewise.
15239         * ggc-page.c: Likewise.
15240         * loop-unroll.c: Likewise.
15241         * loop-unswitch.c: Likewise.
15242         * loop.c: Likewise.
15243         * mips-tfile.c: Likewise.
15244         * optabs.c: Likewise.
15245         * ra-build.c: Likewise.
15246         * ra-colorize.c: Likewise.
15247         * ra-rewrite.c: Likewise.
15248         * ra.h: Likewise.
15249         * regmove.c: Likewise.
15250         * reload.c: Likewise.
15251         * rtlanal.c: Likewise.
15252         * sched-ebb.c: Likewise.
15253         * sched-int.h: Likewise.
15254         * sched-vis.c: Likewise.
15255         * sreal.c: Likewise.
15256         * ssa-ccp.c: Likewise.
15257         * ssa.c: Likewise.
15258         * toplev.c: Likewise.
15259         * tree-inline.c: Likewise.
15260         * value-prof.c: Likewise.
15261         * value-prof.h: Likewise.
15262
15263 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15264
15265         * rtl.h (emit_line_note_after): Remove.
15266         (emit_note_copy_after, emit_note_copy): New.
15267         * emit-rtl.c (reorder_insns_with_line_notes): Replace
15268         emit_line_note_after with emit_note_copy_after.
15269         (emit_insn_after_with_line_notes): Likewise.
15270         (emit_line_note_after): Kill.
15271         (emit_note_copy_after): New.
15272         (emit_note_copy): New.
15273         * function.c (emit_return_into_block): Use emit_note_copy_after.
15274         (thread_prologue_and_epilogue_insns): Likewise.
15275         * integrate.c (expand_inline_function): Use emit_note_copy.
15276         (copy_insn_list): Likewise.
15277         * unroll.c (copy_loop_body): Likewise.
15278         * cfglayout.c (duplicate_insn_chain): Likewise.
15279
15280 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15281
15282         * c-tree.h (define_label): Replace filename and lineno arguments
15283         with a location_t.
15284         * c-decl.c (poplevel): Adjust define_label call.
15285         (pop_label_level): Likewise.
15286         (define_label): Replace filename and lineno arguments with a
15287         location_t.
15288         (store_parm_decls): Use DECL_SOURCE_LOCATION.
15289         * c-parse.in (label): Adjust define_label call.
15290
15291 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
15292
15293         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15294         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15295         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15296         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15297         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15298
15299 2003-07-01  Andreas Jaeger  <aj@suse.de>
15300
15301         * final.c: Convert prototypes to ISO C90.
15302         * flow.c: Likewise.
15303         * flags.h: Likewise.
15304         * gcov-io.c: Likewise.
15305         * gcov-io.h: Likewise.
15306
15307 See ChangeLog.9 for earlier changes.