OSDN Git Service

d8f70555452679bd4a4b1beb5ece93bb8819f3e5
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2003-12-09  James E Wilson  <wilson@specifixinc.com>
2
3         * rtl.def (CODE_LABEL, NOTE): Correct operand numbers in comments.
4
5 2003-12-09  Matt Austern  <austern@apple.com>
6
7         PR c/13134
8         * c-decl.c (duplicate_decls): Copy visibility flag when appropriate.
9         
10 2003-12-09  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
11
12         * config/m32r/m32r.h: Add support for m32r2 processor.  Including
13         a new command line option -m32r2 to select it.
14         * config/m32r/m32r.c: Add support for the new processor variant.
15         * config/m32r/m32r.md: Likewise.
16         * config/m32r/t-m32r: Add m32r2 multilibs.
17         * doc/invoke.texi: Document the new command line switch.
18
19 2003-12-08  Kazu Hirata  <kazu@cs.umass.edu>
20
21         * defaults.h (LOCAL_REGNO): Give the default definition.
22         * flow.c (LOCAL_REGNO): Remove.
23         * reload1.c (LOCAL_REGNO): Likewise.
24
25 2003-12-08  Geoffrey Keating  <geoffk@apple.com>
26
27         PR target/11848
28         * rs6000.h (CANNOT_CHANGE_MODE_CLASS): Allow change of mode
29         in floating-point registers between TFmode and DImode.
30         * rs6000.c (rs6000_emit_move): Split moves early.
31         (secondary_reload_class): Random Whitespace Change.
32         (rs6000_split_multireg_move): Support moves involving FP registers.
33         Emit instructions directly.
34         * rs6000-protos.h (rs6000_split_multireg_move): Update prototype.
35         * altivec.md: Update for changes to rs6000_split_multireg_move.
36         * rs6000.md: Update for changes to rs6000_split_multireg_move.
37         (movtf_internal): Support moves to/from GPRs.
38
39 2003-12-08  Stuart Hastings  <stuart@apple.com>
40
41         * config/i386/i386.md: Typo in split of fp-valued if_then_else.
42         
43 2003-12-08  James E Wilson  <wilson@specifixinc.com>
44
45         PR target/13132
46         * expmed.c (extract_bit_field): Only call mode_for_size for scalar
47         integer modes.
48
49 2003-12-08  Nathanael Nerode  <neroden@gcc.gnu.org>
50
51         * doc/install.texi: Revert change of Dec 7; gcc is still a 2.13
52         directory.
53
54 2003-12-08  Alexandre Oliva  <aoliva@redhat.com>
55
56         * config/frv/frv.md (subdi2): Merge with _internal insn_and_split,
57         by using match_scratch.
58         (negdi2): New.
59
60 2003-12-08  Jason Merrill <jason@redhat.com>
61             Daniel Berlin  <dberlin@dberlin.org>
62
63         PR debug/11114
64         Support namespaces in DWARF 2 output.
65         * dwarf2out.c (gen_namespace_die): New function.
66         (force_namespace_die, setup_namespace_context): New fns.
67         (declare_in_namespace): New fn.
68         (gen_decl_die): Call declare_in_namespace.  Handle namespaces.
69         (dwarf2out_decl): Handle namespaces.
70         (scope_die_for): Pass through a namespace scope.
71         (class_scope_p): Rename to class_or_namespace_scope_p.
72         (gen_subprogram_die, gen_variable_die): Adjust.
73         (gen_struct_or_union_die): Always emit a declaration
74         if context_die is a namespace.
75
76 2003-12-08  Jan Hubicka  <jh@suse.cz>
77
78         * unwind-pe.h (read_uleb128): Fix handling of large values
79         (read_sleb128): Fix handling of large values
80
81 2003-12-08  Andrew Pinski  <pinskia@physics.uc.edu>
82
83         PR middle-end/10060
84         * emit-rtl.c (copy_rtx_if_shared): Split out into ...
85         (copy_rtx_if_shared_1): here and optimize the last one
86         in the sequence into tail-recursion.
87         (reset_used_flags): Optimize the last one
88         in the sequence into tail-recursion.
89
90 2003-12-08  Richard Earnshaw  <rearnsha@arm.com>
91
92         * arm.md: New split to transform ((X << y) - 1) into ~(~(X-1) << y)
93         for constant X.
94
95 2003-12-08  Richard Sandiford  <rsandifo@redhat.com>
96
97         * calls.c (expand_call): Don't try using tail or recursive calls
98         after the function body has been expanded.
99
100 2003-12-08  Jan Hubicka  <jh@suse.cz>
101
102         * i386.md (cmpstr expander): Obey TARGET_INLINE_ALL_STRINGOPS
103
104 2003-12-08  Arnaud Charlet  <charlet@act-europe.fr>
105
106         PR ada/13324, PR ada/12614
107         * doc/install.texi: Update requirements for building Ada.
108
109 2003-12-07  David Edelsohn  <edelsohn@gnu.org>
110             Graham Reed <greed@pobox.com>
111
112         * collect2.c (GCC_OK_SYMBOL): Add support for AIX C_WEAKEXT.
113         (GCC_UNDEF_SYMBOL): Same.
114
115 2003-12-07  Kazu Hirata  <kazu@cs.umass.edu>
116
117         * final.c (final_scan_insn): Don't use FINAL_PRESCAN_LABEL.
118         * system.h (FINAL_PRESCAN_LABEL): Poison.
119         * doc/tm.texi (FINAL_PRESCAN_LABEL): Remove.
120
121 2003-12-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
122
123         * Makefile.in (compare): Combine toplevel and $(SUBDIRS) cases.
124
125 2003-12-07  Nathanael Nerode  <neroden@gcc.gnu.org>
126
127         * configure.in, aclocal.m4: Revert to pre-2.5x conversion status.
128         * configure: Regenerate with autoconf 2.13.
129
130         * configure.in: Replace AC_INIT, AC_OUTPUT, AC_CANONICAL_SYSTEM
131         with modern equivalents.
132         * configure: Regenerate.
133
134         * configure.in: Replace gcc_AC_CHECK_TYPE with AC_CHECK_TYPE.
135         * aclocal.m4 (gcc_AC_CHECK_TYPE): Remove.
136         * configure: Regenerate.
137
138         * configure: Regenerate with (preferred) autoconf 2.57.
139         * doc/install.texi: Note that 'gcc' is now a 2.57 directory.
140
141 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
142
143         PR optimization/12965
144         * caller-save.c (save_call_clobbered_regs): Do not save/restore
145         registers around no-return calls.
146
147 2003-12-07  Nathanael Nerode  <neroden@gcc.gnu.org>
148
149         * configure.in: Make minimum necessary changes for autoconf 2.5x.
150         * aclocal.m4: Make minimum necessary changes for autoconf 2.5x.
151         * configure: Regenerate with autoconf 2.58.
152
153 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
154
155         PR optimization/13318
156         * loop.c (express_from): Protect integer division from overflow.
157
158 2003-12-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
159
160         PR optimization/13060
161         * function.c (fixup_var_refs_1) [SUBREG]: Recognize even if a
162         replacement already exists.  Fix again the whole insn if that fails.
163
164 2003-12-06  Andrew Pinski  <pinskia@physics.uc.edu>
165
166         * config/rs6000/rs6000.c (macho_branch_islands): Use 
167         HOST_WIDE_INT_PRINT_UNSIGNED.
168
169 2003-12-06  Richard Sandiford  <rsandifo@redhat.com>
170
171         * varasm.c (incorporeal_function_p): New.
172         (assemble_external): Use it as a filter.
173         * config/mips/mips.c (mips_output_external): Don't check for builtin
174         functions here.
175
176 2003-12-06  Richard Earnshaw  <reanrsha@arm.com>
177
178         * arm.md (IOR (COMPARISON) (AND)): New define_splits.
179
180 2003-12-06  Kelley Cook  <kcook@gcc.gnu.org>
181
182         * Makefile.in (program_transform_cross_name): Delete.
183         (GCC_CROSS_NAME, CPP_CROSS_NAME): Delete.
184         (PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Delete.
185         (AR_FOR_TARGET, RANLIB_FOR_TARGET, NM_FOR_TARGET): Adjust for above.
186         (install_cpp, install_driver, install-man, uninstall): Likewise.
187
188 2003-12-06  Alan Modra  <amodra@bigpond.net.au>
189
190         PR 13169
191         * basic-block.h (PROP_ASM_SCAN): Define.
192         * final.c (regs_asm_clobbered): New array.
193         * regs.h (regs_asm_clobbered): Declare.
194         * flow.c (life_analysis): Init it.
195         (mark_set_regs): Set PROP_ASM_SCAN for asms.
196         (mark_set_1): Set regs_asm_clobbered.
197         * global.c (global_alloc): Don't set eliminable_regset when
198         regs_asm_clobbered.
199
200 2003-12-05  Mark Mitchell  <mark@codesourcery.com>
201
202         * config/ia64/ia64.h (MUST_PASS_IN_STACK): Define.
203
204         PR c++/13314
205         * emit-rtl.c (set_mem_attributes_minus_bitpos): Robustify.
206
207 2003-12-05  Andrew Pinski <pinskia@physics.uc.edu>
208
209         PR driver/13211
210         * gcc.c (execute) Increment execution_count when returning
211         early because verbose_only_flag is true.
212
213 2003-12-05  Per Bothner  <pbothner@apple.com>
214
215         * cppfiles.c (file_hash_hash):  New static function.
216         (hash_string_eq):  Renamed static function to file_hash_eq.
217         (_cpp_init_files):  Create file_hash table with above callbacks.
218         (cpp_included):  Must use htab_find_with_hash insead of htab_find.
219         (_cpp_find_find, make_cpp_dir):  Must use htab_find_slot_with_hash.
220
221 2003-12-05  Per Bothner  <pbothner@apple.com>
222
223         * line-map.h (source_location):  New typedef.
224         (fileline):  Redefined as source_location.
225         (struct line_map, linemap_add, linemap_lookup):  Replace filefile
226         by source_location.
227         * line-map.c (linemap_add, linemap_lookup):  Use source_location.
228
229 2003-12-05  Richard Henderson  <rth@redhat.com>
230
231         * config/alpha/alpha.c (alpha_build_builtin_va_list): Add dummy
232         field to suppress -Wpadded warnings.
233
234 2003-12-05  Stuart Hastings  <stuart@apple.com>
235
236         * config/rs6000/rs6000.md: Correct macro test of TARGET_MACHO.
237
238 2003-12-05  Stuart Menefy <stuart.menefy@st.com>
239             J"orn Rennecke <joern.rennecke@superh.com>
240
241         PR target/13302
242         * sh.c (sh_build_builtin_va_list): Use (*lang_hooks.types.make_type).
243
244 2003-12-05  Roger Sayle  <roger@eyesopen.com>
245
246         * dojump.c (do_jump): If the expression being compared against
247         zero, is the subreg of a promoted variable, perform the comparison
248         in the promoted mode.
249         * simplify-rtx.c (simplify_unary_operation): Optimize sign and
250         zero-extensions of subregs of promoted variables where the
251         extension is identical to that used to promote the variable.
252
253 2003-12-05  Hans-Peter Nilsson  <hp@axis.com>
254
255         PR target/13256
256         * resource.h (enum mark_resource_type): Remove member MARK_DEST.
257         The only user changed as follows:
258         * resource.c (mark_set_resources) <case SET>: Always recurse for
259         SET_SRC (x).
260         <case SIGN_EXTRACT, case ZERO_EXTRACT>: Always recurse on
261         operands.
262         <case STRICT_LOW_PART>: Delete, deferring to default code.
263
264 2003-12-05  Waldek Hebisch <hebisch@math.uni.wroc.pl>
265
266         * stmt.c (expand_nl_goto_receiver): Copy hard register clobbers
267         and ASM_INPUT barrier from expand_builtin_setjmp_receiver.
268
269 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
270
271         * config/mips/mips.c (mips_expand_call): Don't allow laziy binding
272         for n32 & n64 abicalls.
273
274 2003-12-05  Richard Sandiford  <rsandifo@redhat.com>
275
276         PR bootstrap/13145
277         * config/mips/mips.h (FIRST_PSEUDO_REGISTER): Adjust comment.
278         * config/mips/mips.c (mips_reg_names, mips_sw_reg_names): Add $fcall.
279         (mips_load_got): Always create a constant MEM.
280         (mips_expand_call): Use load_callsi and load_calldi.
281         * config/mips/mips.md (UNSPEC_LOAD_CALL, FAKE_CALL_REGNO): New consts.
282         (load_callsi, load_calldi): New patterns.
283
284 2003-12-05  Peter Gerwinski <peter@gerwinski.de>
285
286         * tree.def (PLACEHOLDER_EXPR): Clarify commentary.
287
288 2003-12-05  Steven Bosscher  <stevenb@suse.de>
289
290         * config/d30v/d30v-protos.h , config/d30v/d30v.c,
291         config/dsp16xx/dsp16xx-protos.h, config/dsp16xx/dsp16xx.c,
292         config/fr30/fr30-protos.h, config/fr30/fr30.c,
293         config/i370/i370-protos.h, config/i370/i370.c,
294         config/i960/i960-protos.h, config/i960/i960.c,
295         config/ip2k/ip2k-protos.h, config/ip2k/ip2k.c,
296         config/m32r/m32r-protos.h, config/m32r/m32r.c,
297         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
298         config/ns32k/ns32k-protos.h, config/ns32k/ns32k.c:
299         Convert to ISO C90 function declarations and definitions.
300
301 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
302
303         * doc/extend.texi (Constructing Calls): Add warning about
304         the limitations of the functions.
305
306 2003-12-05  Eric Botcazou  <ebotcazou@libertysurf.fr>
307
308         PR middle-end/11151
309         * function.h (struct function): New field 'x_naked_return_label'.
310         * function.c (free_after_compilation): Set it to NULL.
311         (expand_function_end): Emit 'naked_return_label' if it exists.
312         * rtl.h (expand_naked_return): Declare.
313         * stmt.c (expand_naked_return): New function to generate a
314         jump to 'naked_return_label'.
315         * builtins.c (expand_builtin_return): Call expand_naked_return
316         instead of expand_null_return.
317         * config/sparc/sparc.md (untyped_return): Likewise.
318
319 2003-12-04  Andrew Pinski  <pinskia@physics.uc.edu>
320
321         PR target/11322
322         * config/sh/netbsd-elf.h (NO_PROFILE_COUNTERS): Define.
323
324         PR target/12467
325         * config/rs6000/altivec.md (altivec_vmsummbm): Fix typo.
326
327 2003-12-04  Stuart Hastings  <stuart@apple.com>
328
329         * rs6000.c (output_call, macho_branch_islands,
330         add_compiler_branch_island, no_previous_def, get_previous_label)
331         Revisions of xx_stub functions for branch islands,
332         add -fPIC support for Darwin.
333         * rs6000-protos.h (output_call) Prototype.
334         * rs6000.md Use output_call.
335         * invoke.texi Explain Darwin semantics of -longcall.
336         * testsuite/gcc.dg/darwin-abi-1.c Revise testcase for -longcall/jbsr.
337
338 2003-12-04  Richard Henderson  <rth@redhat.com>
339
340         * config/i386/i386.md (addqi3_carry): Use q not r constraints.
341         (subqi3_carry): Likewise.
342
343 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
344
345         PR optimization/13260
346         * sh-protos.h (sh_expand_t_scc): Declare.
347         * sh.h (PREDICATE_CODES): Add cmpsi_operand.
348         * sh.c (cmpsi_operand, sh_expand_t_scc): New functions.
349         * sh.md (cmpsi): Use cmpsi_operand.  If T_REG is compared to
350         something that is not a CONST_INT, copy it into a pseudo register.
351         (subc): Fix description of new T value.
352         (slt, sgt, sge, sgtu): Don't clobber T after rtl generation is over.
353         (sltu, sleu, sgeu): Likewise.
354         (seq, sne): Likewise. Use sh_expand_t_scc.
355
356 2003-12-04  Nathanael Nerode  <neroden@gcc.gnu.org>
357
358         * configure.in: Generalize the CONFIG_HEADERS pattern under which
359         we stamp cstamp-h.
360         * configure: Regenerate.
361
362         * configure.in: Pull AC_CHECK_HEADER call out of shell if statement
363         to avoid trouble when updating to autoconf 2.5x.
364         * configure: Regenerate (with autoconf 2.13 still).
365
366 2003-12-04  J"orn Rennecke <joern.rennecke@superh.com>
367
368         * sh.md (truncdiqi2): Use andi opcode for immediate.
369         (reload_outdf+1,reload_outdf+2): Remove constraints.
370         (movv16sf_i): Fxi multiplier for SUBREG_BYTE.
371         (movv8qi_i+2): Zero-extend low byte before adding it to high byte.
372         (fipr, ftrv): Add .s suffix to opcode.
373
374 2003-12-04  Richard Sandiford  <rsandifo@redhat.com>
375
376         PR target/13186
377
378         Revert all of the following patch, except the addition of
379         hook_bool_machine_mode_true:
380
381         2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
382
383         * Makefile.in (targhooks.o, reload.o): Update dependencies.
384         (GTFILES): Add targhooks.c.
385         (gt-targhooks.h): New rule; depend on s-gtype.
386         * target.h (direct_pool_load_p): New hook.
387         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
388         (TARGET_INITIALIZER): Include it.
389         * targhooks.h (default_direct_pool_load_p): Declare.
390         (hook_bool_machine_mode_true): Declare.
391         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
392         gt-targhooks.h.
393         (pool_symbol): New variable.
394         (default_direct_pool_load_p): New function.
395         (hook_bool_machine_mode_true): New function.
396         * reload.c: Include target.h.
397         (find_reloads): If an alternative will force a constant into memory,
398         count an extra reload if constant pool symbols are not valid
399         addresses.  If an alternative uses memory to move values between
400         registers, count the move as two reloads rather than one.
401         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
402         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
403
404 2003-12-03  Mark Mitchell  <mark@codesourcery.com>
405
406         * config/ia64/hpux.h (TARGET_HAVE_TLS): Define it to false.
407         * config/ia64/ia64.h (TARGET_HAVE_TLS): Define it to true if
408         HAVE_AS_TLS is true.
409         * config/ia64/ia64.c (TARGET_HAVE_TLS): Do not define it.
410
411 2003-12-03  James E Wilson  <wilson@specifixinc.com>
412
413         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name.
414
415         * gcc-page.c (extra_order_size_tab): Correct comment.
416
417 2003-12-03  Kazu Hirata  <kazu@cs.umass.edu>
418
419         * config/h8300/h8300.c (push): Call gen_push_h8300hs_advanced
420         instead of gen_push_h8300hs.
421         (pop): Call gen_pop_h8300hs_advanced instead of
422         gen_pop_h8300hs.
423         * config/h8300/h8300.h (TRAMPOLINE_SIZE): Use Pmode.
424         * config/h8300/h8300.md (*tablejump_h8300hs_advanced):
425         Tighten the predicate.
426         (*tablejump_h8300hs_normal): Tighten the predicate.
427         (push_h8300hs): Change to
428         push_h8300hs_advanced.
429         (pop_h8300hs): Change to pop_h8300hs_advanced.
430
431 2003-12-03  Eric Christopher  <echristo@redhat.com>
432
433         * rtl.c: Fix typo.
434         * config/mips/mips.h: Ditto. Fix formatting.
435
436 2003-12-04  Ben Elliston  <bje@wasabisystems.com>
437
438         * future.options: Remove. Move to gnu.org web pages.
439
440 2003-12-03  Eric Christopher  <echristo@redhat.com>
441
442         * c-parse.in (c_in_iteration_stmt, c_in_case_stmt): Move
443         from here...
444         * c-tree.h: to here.
445
446 2003-12-03  Jan Hubicka  <jh@suse.cz>
447
448         PR optimization/12324
449         * toplev.c  (rest_of_decl_compilation): Do not deffer when compiling
450         in unit-at-a-time mode.
451
452 2003-12-03  Jakub Jelinek  <jakub@redhat.com>
453
454         * expr.c (store_constructor): Only set RTX_UNCHANGING_P for
455         read-only field if cleared is 0.
456
457 2003-12-03  Nathanael Nerode  <neroden@gcc.gnu.org>
458
459         * config.gcc: Mark obsolete targets for GCC 3.4.
460
461 2003-12-03  Zack Weinberg  <zack@codesourcery.com>
462
463         * aclocal.m4 (AM_ICONV): Add explicit check for iconv.h.
464         * config.in, configure.in: Regenerate.
465         * cpphash.h: Check both HAVE_ICONV and HAVE_ICONV_H before
466         including iconv.h.
467
468 2003-12-03  Alan Modra  <amodra@bigpond.net.au>
469
470         PR target/11229
471         * cse.c (cse_insn): Set classp using src_const_elt if
472         src_eqv_elt is NULL.
473
474 2003-12-03  Richard Earnshaw  <rearnsha@arm.com>
475
476         * gcse.c (reg_clear_last_set): New function.
477         (reg_set_info): If data is non-null, treat it as an sbitmap of
478         registers, set the bit for the register being set.
479         (compute_store_table): Allocate last_set_in with xcalloc.  Do not
480         memset this array on each iteration.  Pass reg_set_in_block[bb->index]
481         to note_stores while computing last_set_in instead of scanning
482         last_set_in after the first pass through the insns.
483         Clear last_set_in using reg_clear_last_set instead of explicitly
484         rescanning after each insn.  If checking is enabled, assert that
485         last_set_in is completely zeroed after each bb has been processed.
486
487 2003-12-02  Geoffrey Keating  <geoffk@geoffk.org>
488
489         * df.c (df_uses_record) <MEM>: The argument of a MEM is read-only,
490         never read-write.
491         <REG>: Delete incorrect comment.
492         <SET>: Remove 'use_flags' variable.
493
494 2003-12-03  David Edelsohn  <edelsohn@gnu.org>
495
496         * function.c (assign_parms): Make sure parm PARALLEL combined
497         in reg is composed of more than one object and the mode really
498         produces a reg.
499
500 2003-12-03  Jan Hubicka  <jh@suse.cz>
501
502         * i386.c (classify_argument): Make it 64bit clean.
503
504 2003-12-02  Richard Sandiford  <rsandifo@redhat.com>
505
506         * config/mips/mips.c (mips_output_external): Replace checks for
507         specific builtin-in functions with a check for DECL_BUILTIN_IN.
508
509 2003-12-02  Richard Henderson  <rth@redhat.com>
510
511         * rtl.h (PUT_CODE, PUT_MODE): Remove ENUM_BITFIELD cast.
512         * tree.h (TREE_SET_CODE): Likewise.
513         * recog.h (struct insn_operand_data): Move const after ENUM_BITFIELD.
514
515 2003-12-02  Ben Elliston  <bje@wasabisystems.com>
516
517         * dbxstclass.h: Rename from this ..
518         * xcoff.h: .. to this.
519         * xcoffout.c: Include xcoff.h.
520
521 2003-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
522
523         * Makefile.in (GCC_CFLAGS): Add -Wold-style-definition.
524
525 2003-12-01  James Lemke <jim@wasabisystems.com>
526
527         * config/arm/arm.c (arm_rtx_costs): Improve for xscale multiply.
528
529 2003-12-01  Roger Sayle  <roger@eyesopen.com>
530
531         PR optimization/11634
532         * recog.c (split_insn): Factor test of INSN_P and handling of
533         set_noop_p out of here into the two callers.
534         (split_all_insns): Add INSN_P test and set_noop_p handling here.
535         If deleting a no-op set after reload that has a REG_UNUSED note,
536         mark the basic block as changed and recalculate life information.
537         (split_all_insns_noflow): Add INSN_P test and set_noop_p handling
538         here.
539
540 2003-12-01  Roger Sayle  <roger@eyesopen.com>
541
542         PR optimization/12322
543         * gcse.c (struct ls_expr): Change type of hash_index from int to
544         unsigned int.
545         (hash_expr): Document hash_table_size parameter and wrap long line.
546         (ldst_entry): Calculate expression's hash_index and record in ptr.
547         (trim_ld_motion_mems): Use hash_index to search a single bucket
548         instead of scanning the entire hash_table.  Remove the "del" local
549         variable and use the equivalent "expr == 0" instead.  Change last
550         to be a pointer to the pointer to the current element, to simplify
551         and speed-up deleting from a linked list.
552
553 2003-12-01  James E Wilson  <wilson@specifixinc.com>
554
555         * doc/contrib.texi: Update David Mosberger.
556
557         * doc/c-tree.texi (CONSTRUCTOR): Clarify element order and handling
558         of missing fields.
559
560         PR target/8407
561         * config/ia64/ia64.c (ia64_function_arg): For single-reg HFA, call
562         gen_rtx_REG to create new reg with argument mode.
563
564 2003-12-01  Steven Bosscher  <stevenb@suse.de>
565
566         * ggc.h (struct alloc_zone): Move forward declaration up.
567         (new_ggc_zone): New function prototype.
568         (destroy_ggc_zone): Ditto.
569         * ggc-simple.c (new_ggc_zone): New function, does nothing.
570         (destroy_ggc_zone): Ditto.
571         * ggc-page.c (new_ggc_zone): New function, does nothing.
572         (destroy_ggc_zone): Ditto.
573         * ggc-zone.c (struct page_entry): Fix comment.
574         (ggc_alloc_typed): Use a switch statement instead of ifs.
575         (new_ggc_zone): New function to set up a new GC zone.
576         (destroy_ggc_zone): New function to remove a GC zone.
577         init_ggc): Use new_ggc_zone to set up the default zones.
578         (ggc_collect): Walk a list of zones, instead of just the
579         default zones.  Report statistics using the zone name.
580
581 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
582
583         * unroll.c (find_splittable_givs): Add missing extend_value_for_giv.
584
585 2003-12-01  Roger Sayle  <roger@eyesopen.com>
586
587         PR optimization/12628
588         * toplev.c (rest_of_handle_jump_bypass): Call reg_scan.
589         * regclass.c (reg_scan): Include allocate_reg_info time in
590         TV_REG_SCAN.  Minor clean-ups.
591         (reg_scan_update): Minor clean-ups.
592
593 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
594
595         * config.gcc (s390x-ibm-tpf*): Add extra_parts.
596
597 2003-12-01  James E Wilson  <wilson@specifixinc.com>
598
599         * config/ia64/ia64.h (FUNCTION_ARG_REGNO_P): Use AR_REG_FIRST not
600         GR_ARG_FIRST.
601
602 2003-12-01  Zack Weinberg  <zack@codesourcery.com>
603
604         * common.opt: Remove -fgnu-linker.
605         * flags.h: Remove flag_gnu_linker.
606         * opts.c: Don't handle OPT_fgnu_linker.
607         * toplev.c: Don't initialize flag_gnu_linker.
608         Remove gnu-linker entry from f_options.
609         * config/dsp16xx/dsp16xx.h (OPTIMIZATION_OPTIONS):
610         Don't reset flag_gnu_linker.
611         * config/mips/mips.c (override_options): Likewise.
612         * doc/invoke.texi: Remove all mention of -fgnu-linker.
613
614 2003-12-01  Daniel Berlin  <dberlin@dberlin.org>
615
616         * ggc-zone.c (ggc_pch_write_object): Calculate object size using
617         ggc_get_size (which accounts for large objects properly).
618
619 2003-12-01  Jeff Sturm  <jsturm@one-point.com>
620
621         PR optimization/13024
622         * toplev.c (rest_of_handle_new_regalloc): Remove rebuild_notes
623         parameter.
624         (rest_of_handle_old_regalloc): Likewise.  Add rebuild_notes
625         declaration.  Rebuild jump labels following local_alloc if necessary.
626         (rest_of_compilation): Remove rebuild_label_notes_after_reload
627         declaration.  Don't pass rebuild_notes parameter to
628         rest_of_handle_new_regalloc and rest_of_handle_old_regalloc.
629         Don't rebuild jump labels.
630
631 2003-12-01  Jeff Law  <law@redhat.com>
632
633         * flow.c (count_or_remove_death_notes_bb): New.  Extracted from
634         count_or_remove_death_notes.
635         (count_or_remove_death_notes): Use EXECUTE_IF_SET_IN_SBITMAP.
636
637 2003-12-01  Andreas Krebbel  <krebbel1@de.ibm.com>
638
639         * builtins.c (expand_builtin_longjmp): Added two memory clobbers.
640
641 2003-12-01  Ulrich Weigand  <uweigand@de.ibm.com>
642
643         * reload.c (find_reloads_address): Split addresses of type
644         (plus (plus (reg) (reg)) (const_int)) only if one register
645         is either a valid base register or else one of the stack
646         frame related registers (sp/fp/ap).
647
648 2003-12-01  Steven Bosscher  <stevenb@suse.de>
649
650         * function.c (update_epilogue_consts): Don't use PARAMS.
651         * rtl.h (web_main): Ditto.
652         * target.h (is_costly_dependence): Ditto
653
654 2003-12-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
655
656         PR middle-end/7847
657         * expr.c (expand_expr) [normal_inner_ref]: When 'offset' is non-zero,
658         do not recheck that 'op0' is a MEM.  Move comment.  When testing for
659         unaligned objects, take also into account the alignment of 'op0' and
660         'mode1' if 'op0' is a MEM.
661
662 2003-12-01 Gabriel Dos Reis <gdr@integrable-solutions.net>
663
664         * doc/c-tree.texi (Function Bodies): Update HANDLER documentation.
665
666 2003-12-01  Kelley Cook  <kcook@gcc.gnu.org>
667
668         * doc/install.texi: Note that fastjar is built with automake 1.7.x
669         and autoconf 2.57.
670
671 2003-12-01  Alan Modra  <amodra@bigpond.net.au>
672
673         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
674         target_flags directly rather than using TARGET_* defines.
675
676 2003-11-30  Ben Elliston  <bje@wasabisystems.com>
677
678         * doschk.c: Remove.
679
680 2003-11-30  Richard Sandiford  <rsandifo@redhat.com>
681
682         PR target/12727
683         * config/mips/mips.c (mips_save_reg): Fix frame information for sdc1
684         on 32-bit big-endian targets.
685
686 2003-11-30  Kazu Hirata  <kazu@cs.umass.edu>
687
688         * genemit.c (register_constraints): Remove.
689
690 2003-11-30  Andreas Krebbel  <krebbel1@de.ibm.com>
691
692         * config/s390/s390.md ("tmdi_reg", "tmsi_reg", "*movdi_64", "*movdi_31",
693         "iordi3"): Insns now use multiple letter constraints.
694         ("*movdi_lhi", "*movdi_lli", "*movdi_lay"): Insns deleted. They are now
695         covered by "*movdi_64".
696         ("*movsi_lhi", "*movsi_lli", "*movsi_lay"): Insns deleted. They are now
697         covered by "*movsi_zarch" and "*movsi_esa".
698         ("*movsi_zarch", "*movsi_!zarch"): New insns.
699         ("*llgt_sisi_split", "*llgt_didi_split"): Insns deleted. Now covered
700         by "*andsi3_zarch" and "anddi3".
701         ("*anddi3_ni"): Insn merged with "anddi3".
702         ("*andsi3_ni"): Insn merged with "*andsi3_zarch".
703         ("*andsi3_zarch", "*andsi3_esa"): New insns.
704         ("*iordi3_oi"): Insn merged with "iordi3".
705         ("*iorsi3_oi"): Insn merged with "*iorsi3_zarch".
706         ("*iorsi3_zarch", "*iorsi3_esa"): New insns.
707
708         * config/s390/s390.c (s390_single_qi, s390_single_hi): Functions
709         merged to s390_single_part.
710         (s390_single_part): New function.
711         NOTE: Semantics have changed a bit. Now the value of the part must
712         be different from the others to get a non-negative return value.
713         (s390_extract_qi, s390_extract_hi): Functions merged to
714         s390_extract_part.
715         (s390_extract_part, s390_extra_constraint_str,
716         s390_const_ok_for_constraint_p): New functions. The L constraint got a
717         new meaning and the N constraint was added as a multiple letter
718         constraint.
719         (s390_extra_constraint): Function deleted.
720         (print_operand): New output modifier 'i' and 'j' added.
721         All uses of CONST_OK_FOR_LETTER_P were replaced by
722         CONST_OK_FOR_CONSTRAINT_P.
723
724         * config/s390/s390-protos.h: Function prototypes adapted.
725         * doc/md.texi: Documentation for new constraint letters added.
726
727 2003-11-30  Andreas Schwab  <schwab@suse.de>
728
729         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Fix missing semicolon.
730
731 2003-11-29  James E Wilson  <wilson@specifixinc.com>
732
733         * gcc.c (init_spec): Pass -lunwind to init_gcc_specs in eh_name
734         instead of in shared_name.
735
736         * final.c (final_start_function): Delete code for NON_SAVING_SETJMP.
737         * reload1.c (reload): Re-add it here.
738
739 2003-11-30  Alan Modra  <amodra@bigpond.net.au>
740
741         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Don't
742         set SECTION_WRITE on TARGET_RELOCATABLE.
743
744 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
745
746         * config/h8300/h8300.h (LIBCALL_VALUE): Use R0_REG.
747
748 2003-11-28  Gunther Nikl  <gni@gecko.de>
749
750         * config/m68k/m68k.c (MOTOROLA): Move from here...
751         * config/m68k/m68k.h (MOTOROLA): ... to here.
752         (OUTPUT_JUMP): Use do {...} while (0).
753         * config/m68k/m68k.md: Replace #ifdef MOTOROLA with C statements.
754
755 2003-11-28  Gunther Nikl  <gni@gecko.de>
756
757         * config.gcc (m68020-*-elf*, m68k-*-elf*, m68010-*-netbsdelf*,
758         m68k*-*-netbsdelf*, m68k-*-rtems*): Add tm_defines containing
759         MOTOROLA and USE_GAS.
760         * config/m68k/rtemself.h (MOTOROLA): Delete.
761         * config/m68k/netbsd-elf.h (MOTOROLA, USE_GAS): Delete.
762         * config/m68k/m68kelf.h (MOTOROLA, USE_GAS, SGS_CMP_ORDER): Delete.
763
764 2003-11-29  Kazu Hirata  <kazu@cs.umass.edu>
765
766         * config/h8300/h8300.h (WORDS_BIG_ENDIAN): Update the comment.
767
768 2003-11-29  Kelley Cook  <kcook@gcc.gnu.org>
769
770         * Makefile.in (install-info): Install gccinstall.info too.
771
772 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
773
774         * config/s390/s390.md ("cmpint_di"): Fix incorrect instruction lengths.
775
776 2003-11-29  Ulrich Weigand  <uweigand@de.ibm.com>
777
778         * config/s390/s390.md ("movhi"): Do not emit extender pattern
779         when loading from a (MEM (ADDRESSOF ...)).
780         ("movqi"): Likewise.
781
782 2003-11-29  Joseph S. Myers  <jsm@polyomino.org.uk>
783
784         PR c/10333
785         * c-parse.in (typespec_reserved_nonattr): Reject typeof on
786         bit-fields.
787
788 2003-11-29  Richard Sandiford  <rsandifo@redhat.com>
789
790         * stmt.c (expand_asm_operands): Check whether force_const_mem
791         succeeded.
792
793 2003-11-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
794
795         * config/gnu.h (HURD_TARGET_OS_CPP_BUILTINS): New.
796         * config/linux.h (LINUX_TARGET_OS_CPP_BUILTINS): New.
797
798         * config/alpha/gnu.h, config/alpha/linux.h,
799         config/arm/linux-elf.h, config/cris/cris.h, config/cris/linux.h,
800         config/i370/linux.h, config/i386/gnu.h, config/i386/i386.h,
801         config/i386/linux-aout.h, config/i386/linux.h,
802         config/i386/linux64.h, config/ia64/linux.h, config/m68k/linux.h,
803         config/m68k/uclinux.h, config/mips/linux.h,
804         config/mn10300/linux.h, config/pa/pa-linux.h,
805         config/rs6000/sysv4.h, config/s390/linux.h, config/sh/linux.h,
806         config/sparc/linux.h, config/sparc/linux64.h,
807         config/xtensa/linux.h (TARGET_OS_CPP_BUILTINS): Use
808         HURD_TARGET_OS_CPP_BUILTINS/LINUX_TARGET_OS_CPP_BUILTINS or ensure
809         all necessary assertions are included.
810
811 2003-11-28  Jan Hubicka  <jh@suse.cz>
812
813         * emit-rtl.c (set_used_flags): New.
814         (verify_rtx_sharing, verify_rtl_sharing): New.
815         (unshare_all_rtl_1): Rename to....
816         (unshare_all_rtl_in_chain): ... this one; make static.
817         (copy_rtx_if_shared): LABEL_REF chan be shared.
818         * ifcvt.c (unshare_ifcvt_sequence): New.
819         (noce_try_move, noce_try_store_flag, noce_try_store_flag_constants,
820         noce_try_addcc, noce_try_addcc, noce_try_store_flag_mask,
821         noce_try_cmove, noce_try_store_flag_mask, noce_try_minmax,
822         noce_try_abs, noce_process_if_block, find_cond_trap
823         * rtl.h (verify_rtl_sharing, set_used_flags, unshare_all_rtl_in_chain):
824         Declare.
825
826 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
827
828         * config/h8300/h8300.md: Fix a comment typo.
829
830 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
831
832         * config/h8300/h8300.md (*movsf_h8300h): Change to
833         *movsf_h8300hs.
834         (addsi_h8300): Change to *addsi_h8300.
835         (addsi_h8300h): Change to *addsi_h8300hs.
836         (subsi3_h8300): Change to *subsi3_h8300.
837         (subsi3_h8300h): Change to *subsi3_h8300hs.
838         (neghi2_h8300h): Change to *neghi2_h8300hs.
839         (negsi2_h8300h): Change to *negsi2_h8300hs.
840
841 2003-11-28  Kazu Hirata  <kazu@cs.umass.edu>
842
843         * config/h8300/h8300.md (*subhi3_h8300): Remove '&' from the
844         constraint.
845         (*subhi3_h8300hs): Likewise.
846
847 2003-11-28  David Edelsohn  <edelsohn@gnu.org>
848
849         * config/rs6000/rs6000.h (MASK_MFCRF): New.
850         (TARGET_MFCRF): Test target_flags, not processor type.
851         (TARGET_SWITCHES): Add mfcrf and no-mfcrf.
852         Change Don't to Do not.
853         * config/rs6000/rs6000.c (processors_target_table): Add MASK_MFCRF
854         to power4, 970, G5.
855
856 2003-11-27  J"orn Rennecke <joern.rennecke@superh.com>
857
858         * cse.c (cse_set_around_loop): When changing a constant load
859         to a register -register copy, add a REG_EQUAL note.
860
861 2003-11-27  Randolph Chung  <tausq@debian.org>
862             John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
863
864         * pa.c (hppa_profile_hook): Split gen_call_profiler into separate
865         insns.  Use the regular call expander for the call to the profiler.
866         * pa.md (call_profiler): Delete.
867         (load_offset_label_address): New insn to load the address of the
868         current function for the profiler.
869         (lcla1, lcla2): New insns to output a code label and load its address.
870
871 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
872
873         * final.c (final_scan_insn): Remove commented-out code.
874
875 2003-11-27  Nathanael Nerode  <neroden@gcc.gnu.org>
876
877         * doc/install.texi: Remove ADAC reference and make accurate.
878
879 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * config/h8300/h8300.h (FUNCTION_VALUE): Use R0_REG.
882         (FUNCTION_VALUE_REGNO_P): Likewise.
883         * config/h8300/h8300.md: Define R0_REG.
884
885 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
886
887         * config/h8300/h8300.c: Fix formatting.
888         * config/h8300/h8300.md: Likewise.
889
890 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
891
892         * config/h8300/h8300.h (ELIMINABLE_REGS): Update a comment.
893
894 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
895
896         * config/h8300/h8300.md: Give names to anonymous insns.
897
898 2003-11-27  Kazu Hirata  <kazu@cs.umass.edu>
899
900         * config/h8300/h8300.md (extendqisi2): Remove constraints.
901
902 2003-11-27  Gunther Nikl  <gni@gecko.de>
903
904         * doc/tm.texi (SYSROOT_HEADERS_SUFFIX_SPEC): Fix typo.
905
906 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
907
908         PR optimization/13041
909         * final.c (frame_pointer_needed): Fix comment.
910         * reload1.c (reload): Decrease alignment of the frame
911         pointer if it was used for register allocation.
912
913 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
914
915         PR target/12900
916         * reg-stack (move_for_stack_reg): New prototype.  Return
917         whether a control flow insn was deleted.
918         (subst_stack_regs_pat): Likewise, using the information provided
919         by move_for_stack_reg.
920         (subst_stack_regs): Likewise, using the information provided
921         by subst_stack_regs_pat.
922         (convert_regs_1): Record whether a control flow insn was deleted,
923         using the information provided by subst_stack_regs.  Purge dead
924         edges only if a control flow insn was deleted.
925
926 2003-11-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
927
928         PR middle-end/8028
929         PR middle-end/9890
930         PR middle-end/11151
931         PR middle-end/12210
932         PR middle-end/12503
933         PR middle-end/12692
934         * builtins.c (expand_builtin_apply): Use virtual_outgoing_args_rtx
935         as the base address to copy the memory arguments to.
936
937 2003-11-26  Danny Smith  <dannysmith@users.sourceforge.net>
938
939         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Declare
940         function aliases as functions.
941
942 2003-11-26  Nathanael Nerode  <neroden@gcc.gnu.org>
943
944         * aclocal.m4 (gcc_AC_PROG_GNAT): Rewrite to account for removal
945         of ADAC.
946         * configure: Regenerate.
947
948         * Makefile.in: Remove references to ADAC.
949
950         * configure.in: Remove check for whether ${ADAC} accepts -Wno-long-long.
951         * configure: Regenerate.
952
953 2003-11-26  Eric Botcazou  <ebotcazou@libertysurf.fr>
954             Olivier Hainque  <hainque@act-europe.fr>
955
956         PR target/6466
957         * config/sparc/sparc-protos.h (compute_frame_size): New prototype.
958         (sparc_flat_compute_frame_size): Likewise.
959         (sparc_flat_save_restore): Move prototype...
960         * config/sparc/sparc.c (sparc_flat_save_restore): ...here.
961         (save_regs): New prototype.
962         (build_big_number): Likewise.
963         (apparent_fsize): Change type to HOST_WIDE_INT.
964         (actual_fsize): Likewise.
965         (frame_base_offset): Likewise.
966         (build_big_number): Add support for HOST_BITS_PER_WIDE_INT == 64.
967         Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
968         [TARGET_ARCH64]: Use the sequence of sparc_emit_set_const64_longway
969         to load a 64-bit constant.
970         (sparc_nonflat_function_prologue): Change string descriptor to
971         HOST_WIDE_INT_PRINT_DEC.  Change offset type to HOST_WIDE_INT.
972         (output_restore_regs): Change offset type to HOST_WIDE_INT.
973         (sparc_nonflat_function_epilogue): Change string descriptor to
974         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.
975         (output_sibcall): Change size type to HOST_WIDE_INT.  Use
976         build_big_number.  Change string descriptor to HOST_WIDE_INT_PRINT_DEC.
977         (sparc_frame_info): Change types for several components.
978         (sparc_flat_compute_frame_size): Update types according to previous
979         change.
980         (sparc_flat_function_prologue): Change string descriptor to
981         HOST_WIDE_INT_PRINT_DEC.  Change offset type to int.  Use
982         build_big_number.
983         (sparc_flat_function_epilogue): Change offset type to int.
984         Rename 'size1' into 'reg_offset1'.  Change string descriptor to
985         HOST_WIDE_INT_PRINT_DEC.  Use build_big_number.  Change big number
986         limit to 4096 instead of 4095.
987
988         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Change offset type to
989         HOST_WIDE_INT.
990
991 2003-11-24  Waldek Hebisch <hebisch@math.uni.wroc.pl>
992
993         * function.c: Make outer_function-chain external.
994         * function.h: Likewise.
995
996 2003-11-24  Richard Sandiford  <rsandifo@redhat.com>
997
998         * config.gcc (mips-sgi-irix6*): Add t-iris6gld to tmake_file when
999         using GNU ld.
1000         * config/mips/iris6.h (IRIX6_STARTFILE_SPEC): New, taking the
1001         whole of the previous STARTFILE_SPEC except crtbegin.o%s.
1002         (IRIX6_ENDFILE_SPEC): Likewise ENDFILE_SPEC and crtend.o%s.
1003         (STARTFILE_SPEC, ENDFILE_SPEC): Define in terms of the above.
1004         (SUBTARGET_EXTRA_SPECS): Define.
1005         * config/mips/iris6gld.h (LINK_SPEC): Change -init function
1006         to __gcc_init and -fini function to __gcc_fini.
1007         (STARTFILE_SPEC): Redefine, including irix6-crti.o before crtbegin.o.
1008         (ENDFILE_SPEC): Likewise, including irix6-crtn.o after crtend.o.
1009         (INIT_SECTION_ASM_OP, FINI_SECTION_ASM_OP): Define.
1010         * config/mips/t-iris6gld,
1011         * config/mips/irix6-crti.asm,
1012         * config/mips/irix6-crtn.asm: New files.
1013
1014 2003-11-24  Eric Christopher  <echristo@redhat.com>
1015
1016         PR C/13014
1017         * c-decl.c (c_in_iteration_stmt, c_in_case_stmt): New.
1018         (start_function): Use.
1019         (c_push_function_context): Ditto.
1020         (c-pop_function_context): Ditto.
1021         (language_function): Move...
1022         * c-tree.h: ... here. Add x_in_iteration_stmt, and
1023         x_in_case_stmt.
1024         * c-parse.in (do_stmt_start, select_or_iter_stmt, stmt): Use
1025         c_in_iteration_stmt, c_in_case_stmt for parser state. Move
1026         check for valid break or continue statment here...
1027         * c-semantics.c (genrtl_break_stmt, genrtl_continue_stmt): From
1028         here. Change original errors to abort.
1029
1030 2003-11-24  Jan Hubicka  <jh@suse.cz>
1031
1032         * fold-const.c (fold):  Do not return early when optimizing
1033         COMPONENT_REF and constant.
1034
1035 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1036
1037         * config/h8300/h8300.md (tablejump_h8300): Change to
1038         *tablejump_h8300.
1039         (tablejump_h8300h): Change to *tablejump_h8300hs_advanced.
1040         (tablejump_normal_mode): Change to *tablejump_h8300hs_normal.
1041         (indirect_jump_h8300): Change to *indirect_jump_h8300.
1042         (indirect_jump_h8300h): Change to
1043         *indirect_jump_h8300hs_advanced.
1044         (indirect_jump_normal_mode): Change to
1045         *indirect_jump_h8300hs_normal.
1046
1047 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1048
1049         * config/h8300/h8300.md: Remove constraints from expanders.
1050
1051 2003-11-24  Kazu Hirata  <kazu@cs.umass.edu>
1052
1053         * config/h8300/h8300.md: (stm_h8300s_2): Change the name to
1054         stm_h8300s_2_advanced.
1055         (stm_h8300s_2_normal): New.
1056         (stm_h8300s_2): Likewise.
1057         (stm_h8300s_3): Change the name to stm_h8300s_3_advanced.
1058         (stm_h8300s_3_normal): New.
1059         (stm_h8300s_3): Likewise.
1060         (stm_h8300s_4): Change the name to stm_h8300s_4_advanced.
1061         (stm_h8300s_4_normal): New.
1062         (stm_h8300s_4): Likewise.
1063         (ldm_h8300s_2): Change the name to ldm_h8300s_2_advanced.
1064         (ldm_h8300s_2_normal): New.
1065         (ldm_h8300s_2): Likewise.
1066         (ldm_h8300s_3): Change the name to ldm_h8300s_3_advanced.
1067         (ldm_h8300s_3_normal): New.
1068         (ldm_h8300s_3): Likewise.
1069         (ldm_h8300s_4): Change the name to ldm_h8300s_4_advanced.
1070         (ldm_h8300s_4_normal): New.
1071         (ldm_h8300s_4): Likewise.
1072         (two peephole2's): Enable only with !TARGET_NORMAL_MODE.
1073         (two peephole2's): New.
1074
1075 2003-11-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1076
1077         * genattrtab.c (simplify_cond): Update indices correctly.
1078         (attr_alt_subset_p, attr_alt_subset_of_compl_p, attr_alt_intersection,
1079         attr_alt_union, attr_alt_complement, attr_alt_bit_p, mk_attr_alt): New.
1080         (check_attr_test, encode_units_mask, compute_alternative_mask,
1081         make_alternative_compare, simplify_and_tree,
1082         attr_rtx_cost, simplify_test_exp, gen_attr,
1083         write_test_expr, walk_attr_value): Handle EQ_ATTR_ALT.
1084         * rtl.def (EQ_ATTR_ALT): New.
1085
1086 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1087
1088         * genattrtab.c (strcmp_check, DEF_ATTR_STRING): New macros.
1089         (length_str, delay_type_str, delay_1_0_str, num_delay_slots_str):
1090         New variables.
1091         (main): Initialize them.
1092         (find_attr): Canonicalize the attribute name string.
1093         (attr_rtx_1, copy_boolean, expand_delays, gen_unit): Always canonicalize
1094         string arguments.
1095         (attr_printf, attr_eq): Use DEF_ATTR_STRING.
1096         (check_attr_test, check_attr_value, make_length_attrs,
1097         write_length_unit_log, simplify_by_exploding, gen_attr,
1098         write_test_expr, write_attr_value, write_eligible_delay,
1099         write_complex_function, make_internal_attr,
1100         write_const_num_delay_slots): Changed due to change of type of
1101         find_attr.
1102         (fill_attr, evaluate_eq_attr, simplify_and_tree,
1103         attr_rtx_cost, simplify_by_exploding, walk_attr_value): Use
1104         strcmp_check.
1105
1106 2003-11-23  Kazu Hirata  <kazu@cs.umass.edu>
1107
1108         PR target/13122
1109         * config/h8300/h8300.c (push): Call push_h8300hs_normal in
1110         normal mode.
1111         (pop): Call pop_h8300hs_normal in normal mode.
1112         * config/h8300/h8300.md: Likewise.
1113         (pushqi1_h8300hs_normal): New.
1114         (pushqi1): Call pushqi1_h8300hs_normal in normal mode.
1115         (pushhi1_h8300hs_normal): New.
1116         (pushhi1): Call pushhi1_h8300hs_normal in normal mode.
1117         (push_h8300hs_normal): New.
1118         (pop_h8300hs_normal): Likewise.
1119
1120 2003-11-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1121
1122         * genattrtab.c (count_sub_rtxs): Removed.
1123
1124 2003-11-23  Richard Earnshaw  <rearnsha@arm.com>
1125
1126         * recog.c (preprocess_constraints): Only zero those elements of
1127         recog_op_alt that are needed for this insn.
1128         * arm.c (note_invalid_constants): A function can't contain invalid
1129         constants if it has no constraints.
1130
1131 2003-11-22  Jan Hubicka  <jh@suse.cz>
1132
1133         * i386.c (classify_argument): Pass __float128 in memory.
1134         (ix86_return_in_memory): Likewise.
1135         (ix86_libcall_value): Likewsie.
1136
1137 2003-11-22  Kazu Hirata  <kazu@cs.umass.edu>
1138
1139         * config/h8300/h8300.c (dosize): Convert to ISO-C.
1140
1141 2003-11-22  J"orn Rennecke <joern.rennecke@superh.com>
1142
1143         * flow.c (update_life_info): Amend comment about when a register
1144         can become dead.
1145
1146 2003-11-21  Kelley Cook  <kcook@gcc.gnu.org>
1147
1148         * doc/.cvsignore: Delete.
1149
1150 2003-11-21  Daniel Berlin  <dberlin@dberlin.org>
1151             David Edelsohn  <edelsohn@gnu.org>
1152
1153         * dwarf2out.c (add_location_or_const_value_attribute): Add support
1154         for PARALLEL.
1155
1156 2003-11-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1157
1158         * config/mips/t-iris6 (CRTSTUFF_T_CFLAGS): Add -Wno-error.
1159         (TARGET_LIBGCC2_CFLAGS): Define.
1160
1161         * crtstuff.c [HAS_INIT_SECTION] (__do_global_dtors): Declare.
1162         (__do_global_ctors): Likewise.
1163
1164 2003-11-21  Mark Wielaard  <mark@klomp.org>
1165
1166         * doc/invoke.texi (-O2): Doesn't enable -fweb.
1167
1168 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
1169
1170         * doc/invoke.texi: Mention dV and dZ.
1171
1172 2003-11-21  Kazu Hirata  <kazu@cs.umass.edu>
1173
1174         * doc/invoke.texi: Update dump file names.
1175         Remove de, dW, and dX.
1176
1177 2003-11-20  James E Wilson  <wilson@specifixinc.com>
1178
1179         PR c/13133
1180         * reload1.c (reload): Delete special handling for setjmp.
1181
1182 2003-11-21  Andreas Tobler  <a.tobler@schweiz.ch>
1183
1184         * mklibgcc.in: Evaluate shlib_slibdir_qual during link
1185         step too.
1186         * config/t-slibgcc-darwin: Adjust install path.
1187         * config/rs6000/t-darwin: Revert multilib matches since
1188         it is not used on darwin.
1189
1190 2003-11-20  Richard Henderson  <rth@redhat.com>
1191
1192         * ssa.c, ssa-dce.c, ssa-ccp.c: Remove files.
1193         * Makefile.in (OBJS-common, GTFILES): Don't reference them.
1194         (gtype-desc.o, toplev.o, flow.o): Remove ssa.h.
1195         (ssa.o, ssa-dce.o, ssa-ccp.o): Remove.
1196         * flow.c: Don't include ssa.h.
1197         (set_phi_alternative_reg): Remove.
1198         (calculate_global_regs_live): Don't call it.
1199         (mark_used_regs): Don't handle PHI.
1200         * gengtype.c (open_base_files): Don't reference ssa.h.
1201         * rtl.def (PHI): Remove.
1202         * timevar.def (TV_TO_SSA, TV_SSA_CCP, TV_SSA_DCE, TV_FROM_SSA): Kill.
1203         * common.opt: Remove -fssa, -fssa-ccp, -fssa-dce.
1204         * opts.c (common_handle_option): Likewise.
1205         * toplev.c (f_options): Likewise.
1206         (DFI_ssa, DFI_ssa_ccp, DFI_ssa_dce, DFI_ussa): Remove.
1207         (dump_file): Update to match.
1208         (flag_ssa, flag_ssa_ccp, flag_ssa_dce): Remove.
1209         (rest_of_handle_ssa): Remove.
1210         (rest_of_compilation): Don't call it.
1211         * toplev.h (flag_ssa, flag_ssa_dce, flag_ssa_ccp): Remove.
1212         * doc/invoke.texi: Remove -fssa, -fssa-ccp, -fssa-dce.
1213         * doc/passes.texi (SSA optimizations): Remove.
1214
1215 2003-11-20  Bob Wilson  <bob.wilson@acm.org>
1216
1217         * configure.in: Add xtensa-*-* targets to test for dwarf2 debug_line.
1218         * configure: Regenerate.
1219
1220 2003-11-20  Kelley Cook  <kcook@gcc.gnu.org>
1221
1222         * Makefile.in (Makefile): Pass along CONFIG_SHELL.
1223
1224 2003-11-20 David Mosberger  <davidm@hpl.hp.com>
1225
1226         * config/t-libunwind (LIB2ADDEH): Add unwind-c.c.
1227         (SHLIB_LC): Define.
1228         * unwind-libunwind.c (_Unwind_GetCFA): Implement.
1229         (_Unwind_GetBSP) [UNW_TARGET_IA64]: New function.
1230
1231 2003-11-20  Fariborz Jahanian  <fjahanian@apple.com>
1232             David Edelsohn  <edelsohn@gnu.org>
1233
1234         * calls.c (expand_call): Allocate new temp in pass1.
1235         (store_one_arg): If PARALLEL, calculate excess using mode size of
1236         rtvec elt.
1237         * expr.c (emit_push_insn): If PARALLEL, calculate offset using
1238         mode size of rtvec elt.
1239         * function.c (assign_parms): Use parm in register, if available.
1240
1241 2003-11-20  Kazu Hirata  <kazu@cs.umass.edu>
1242
1243         * config/h8300/lib1funcs.asm (MOVP): Remove.
1244         (ADDP): Likewise.
1245         (CMPP): Likewise.
1246
1247 2003-11-20  Richard Earnshaw  <rearnsha@arm.com>
1248
1249         * arm.c (use_return_insn): New argument, SIBLING.  Support returning
1250         with a single instruction if the stack has been decremented by 4
1251         and we have a frame pointer.  Update all callers.
1252         (output_return_instruction): Likewise.
1253         (arm_output_epilogue): Change argument to SIBLING.  Calculate
1254         really_return from the new argument.  Update all callers.
1255         * arm.h (USE_RETURN_INSN): Pass NULL for the sibling.
1256         * arm.md (sibcall_epilogue): Call use_return_insn directly, and
1257         pass the sibling call.
1258         * arm-protos.h (use_return_insn, arm_output_epilogue): Update
1259         prototypes.
1260
1261 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1262
1263         * Makefile.in (extraclean): Delete.
1264         * configure.in (target_list): Remove extraclean.
1265         * configure: Regenerate.
1266         * doc/makefile.texi, doc/sourcebuild.texi: Update.
1267         * objc/Make-lang.in (objc.extraclean): Delete.
1268
1269 2003-11-20  Joseph S. Myers  <jsm@polyomino.org.uk>
1270
1271         * Makefile.in (lang_checks): Add.
1272         (check-c++, check-f77, check-java, check-g++, check-g77,
1273         check-objc): Remove hardcoded targets.
1274         * doc/sourcebuild.texi: Document testsuite hooks.
1275         * objc/Make-lang.in (check-objc, lang_checks): Add.
1276
1277 2003-11-19  Scott Snyder  <snyder@fnal.gov>
1278
1279         PR target/13131
1280         * dwarf2out.c (gen_array_type_die): DW_AT_declaration should be a
1281         flag, not a constant.
1282
1283 2003-11-19  Kelley Cook  <kcook@gcc.gnu.org>
1284
1285         * config/arc/arc-protos.h: Update to C90 prototypes.
1286         * config/arc/arc.c: Likewise.
1287         * config/arc/initfini.c: Likewise.
1288
1289 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1290
1291         * stmt.c (expand_goto): Memory clobbers added.
1292
1293 2003-11-19  Andreas Krebbel  <krebbel1@de.ibm.com>
1294
1295         * reload.c (find_reloads): Added missing type casts.
1296
1297 2003-11-19  James E Wilson  <wilson@specifixinc.com>
1298
1299         * combine.c (sets_function_arg_p): Delete unused function.
1300
1301 2003-11-19  Eric Christopher  <echristo@redhat.com>
1302
1303         * reload1.c (reload): Revert 2 previous checkins.
1304
1305 2003-11-19  Nathanael Nerode  <neroden@gcc.gnu.org>
1306
1307         * cpptrad.c (_cpp_scan_out_logical_line): Improve test for
1308         whether directive begins at the beginning of a line.
1309
1310 2003-11-19  Richard Sandiford  <rsandifo@redhat.com>
1311
1312         * config/frv/frv.c (frv_init_libfuncs): Correct ufix_optab entries.
1313
1314 2003-11-19  Gerald Pfeifer  <gp@suse.de>
1315
1316         * doc/install.texi (Specific): Remove information on old versions
1317         of glibc versus old versions of GCC.
1318
1319 2003-11-19  Richard SAndiford  <rsandifo@redhat.com>
1320
1321         * emit-rtl.c (gen_lowpart): Don't force MEMs into a register unless
1322         the register lowpart is a TRULY_NOOP_TRUNCATION.
1323
1324 2003-11-19  Richard Henderson  <rth@redhat.com>
1325
1326         * config/i386/i386.c (print_reg): Handle QI and HI modes for
1327         non Q regs.
1328
1329 2003-11-19  Andreas Tobler  <a.tobler@schweiz.ch>
1330
1331         * config/config.gcc (powerpc-*-darwin*): Add libgcc build
1332         specification file.
1333         * config/t-slibgcc-darwin: New file, libgcc build specification.
1334         * config/t-darwin: Add libgcc2 flag -fPIC.
1335         * config/rs6000/t-darwin: Multilib matches float.
1336         * libgcc-darwin.ver: New file, contains libgcc symbols.
1337
1338 2003-11-18  Nathanael Nerode  <neroden@gcc.gnu.org>
1339
1340         * config/ns32k/ns32k.h: Remove obsolete comment.
1341
1342 2003-11-18  Roger Sayle  <roger@eyesopen.com>
1343
1344         PR middle-end/11821
1345         * config/arm/arm.c (arm_rtx_costs_1): Improve estimate of the code
1346         size for calls to libgcc's div & mod subroutines when using -Os.
1347
1348 2003-11-18  Jan Hubicka  <jh@suse.cz>
1349
1350         * cgraph.c (change_decl_assembler_name): Avoid bogus warnings.
1351
1352 2003-11-18  Marc Espie  <espie@openbsd.org>
1353
1354         * config/rs6000/sysv4.h: OpenBSD hooks.
1355
1356 2003-11-18  Richard Henderson  <rth@redhat.com>
1357
1358         * expr.c (expand_expr): Don't look through constant arrays if
1359         they don't bind locally.
1360
1361 2003-11-17  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1362
1363         * expr.c (convert_move): Use GET_MODE_PRECISION instead of bitsize
1364         when seeing if truncation or extension.
1365
1366 2003-11-17  Eric Christopher  <echristo@redhat.com>
1367
1368         * reload1.c (reload): Fix previous change.
1369
1370 2003-11-17  Scott Snyder  <snyder@fnal.gov>
1371
1372         PR debug/11325
1373         * dwarf2out.c (struct die_struct): Add die_definition field.
1374         (add_AT_specification): New.
1375         (gen_subprogram_die, gen_variable_die,
1376         gen_struct_or_union_type_die): Use it.
1377         (prune_unused_types_mark): If we're marking a forward declaration,
1378         also mark the full definition, if it exists.
1379
1380 2003-11-16  Nick Clifton  <nickc@redhat.com>
1381
1382         * config/stormy16/stormy16.h (BUILD_VA_LIST_TYPE): Delete.
1383         * config/stormy16/stormy16-protos.h (xstormy16_build_va_list):
1384         Remove prototype.
1385         * config/stormy16/stormy16.c (xstormy16_build_va_list): Rename
1386         to xstormy16_build_builtin_va_list and make static.
1387         (TARGET_BUILD_BUILTIN_VA_LIST): Define.
1388
1389 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1390
1391         * config/h8300/h8300-protos.h: Add the prototype for
1392         same_cmp_following_p.
1393         * config/h8300/h8300.c (same_cmp_following_p): New.
1394         * config/h8300/h8300.md (peephole2): Use it.
1395
1396 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1397
1398         * config/h8300/h8300.md: Don't use REGNO when its operand is
1399         not guaranteed to be a REG.
1400
1401 2003-11-16  Richard Sandiford  <rsandifo@redhat.com>
1402
1403         * Makefile.in (expr.o): Depend on $(TARGET_H).
1404         * target.h (return_in_msb): New target hook.
1405         * target-def.h (TARGET_RETURN_IN_MSB): New macro.
1406         (TARGET_CALLS): Include it.
1407         * calls.c (shift_returned_value): New function.
1408         (expand_call): Use it.
1409         * expr.c: Include target.h.
1410         (copy_blkmode_from_reg): Check targetm.calls.return_in_msb when
1411         deciding what padding is needed.  Change the name of the local
1412         padding variable from big_endian_correction to padding_correction.
1413         * stmt.c (shift_return_value): New function.
1414         (expand_return): Use it.  Adjust memory->register copy in the same
1415         way as copy_blkmode_from_reg.  Only change the return register's
1416         mode if it was originally BLKmode.
1417         * doc/tm.texi (TARGET_RETURN_IN_MSB): Document.
1418         * config/mips/mips.c (TARGET_RETURN_IN_MSB): Define.
1419         (mips_fpr_return_fields): New, split out from mips_function_value.
1420         (mips_return_in_msb, mips_return_fpr_pair): New functions.
1421         (mips_function_value): Rework to use the functions above.
1422         * config/mips/irix6-libc-compat.c: Delete.
1423         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Undefine.
1424
1425 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1426
1427         * doc/install.texi (--enable-checking): Update valgrind's URL.
1428
1429 2003-11-16  Kazu Hirata  <kazu@cs.umass.edu>
1430
1431         * config/h8300/h8300.md: Fix warnings by replacing -2147483648
1432         with -2147483647 - 1.
1433
1434 2003-11-16  Gerald Pfeifer  <gerald@pfeifer.com>
1435
1436         Fix links in online manuals.
1437         * doc/invoke.texi (H8/300 Options): @xref to ld, not ld.info.
1438         (Precompiled Headers): @pxref to cpp, not cpp.info.
1439
1440 2003-11-16  Jason Merrill  <jason@redhat.com>
1441
1442         * Makefile.in, objc/Make-lang.in (objc.tags): Create TAGS.sub
1443         files in each directory and TAGS files that include them for each
1444         front end.
1445
1446 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1447
1448         * config/h8300/lib1funcs.asm (divnorm): Store the sign in bit
1449         3 of S2L.
1450         (modnorm): Likewise.
1451         (exitdiv): Look at bit 3 of S2L only.
1452
1453 2003-11-15  Kazu Hirata  <kazu@cs.umass.edu>
1454
1455         * config/h8300/h8300.h (DO_GLOBAL_CTORS_BODY): Fix warnings.
1456         (DO_GLOBAL_DTORS_BODY): Likewise.
1457
1458 2003-11-15  Joseph S. Myers  <jsm@polyomino.org.uk>
1459
1460         * doc/install.texi (Prerequisites): Refine documentation of
1461         autoconf, automake and perl requirements.  Document required
1462         gettext version.
1463
1464 <2003-11-14  Jason Merrill  <jason@redhat.com>
1465
1466         * function.c (assign_parms): Use TREE_TYPE to determine the real
1467         type of the argument object.
1468
1469 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1470
1471         * config/h8300/lib1funcs.asm (___udivsi3): Peel off the first
1472         iteration.
1473
1474 2003-11-14  Fariborz Jahanian <fjahanian@apple.com>
1475
1476         * config/rs6000/rs6000.c (rs6000_move_block_from_reg):
1477           New routine to save vararg registers on stack. Support for
1478           -mpowerpc64 in mixed mode.
1479
1480 2003-11-14  Bernardo Innocenti  <bernie@develer.com>
1481
1482         * config/m68k/m68k.c: Use C statements instead of #ifdef's when testing
1483         for MOTOROLA versus MIT syntax.  Improves readability and provides
1484         better compile-time error checking for both code paths.
1485
1486 2003-11-14  Kelley Cook  <kcook@gcc.gnu.org>
1487
1488         * config/frv/frv-protos.h: Update for C90.
1489         * config/frv/frv.h: Likewise.
1490         * config/frv/frvbegin.c: Likewise.
1491         * config/frv/frv.c: Likewise.
1492         (frv_adjust_field_align): Delete unused variable.
1493
1494 2003-11-14  Geoffrey Keating  <geoffk@apple.com>
1495
1496         * config/rs6000/rs6000.md: Add 'DEFAULT_ABI == ABI_DARWIN'
1497         to each place where TARGET_LONG_DOUBLE_128 is used with
1498         DEFAULT_ABI == ABI_AIX.
1499
1500         * cppfiles.c (_cpp_find_file): Make 'one or more PCH files were found'
1501         message comply with GNU standards.
1502
1503 2003-11-14  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1504
1505         PR/6552
1506         * function.c (struct epi_info): New field const_equiv.
1507         (update_epilogue_consts): New function.
1508         (keep_stack_depressed): Clear new field and verify scratch register
1509         doesn't have it set.
1510         Call new function via note_stores.
1511         (handle_epilogue_set): Allow setting SP equiv reg in different mode.
1512         Allow PLUS where second operand is register known set to constant.
1513         (emit_equiv_load): Write load using proper mode if source different.
1514         * config/mips/mips.md (return_internal): Put (return) first.
1515
1516 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1517
1518         * config/h8300/lib1funcs.asm (___udivsi3): Add a comment.
1519
1520 2003-11-14  Kazu Hirata  <kazu@cs.umass.edu>
1521
1522         * config/h8300/lib1funcs.asm (modsi3): Don't save unused
1523         registers.
1524         (divsi3): Likewise.
1525         (reti): Don't restore unused registers.
1526
1527 2003-11-14  Nick Clifton  <nickc@redhat.com>
1528
1529         * config/fr30/fr30.c: Include toplev.h
1530
1531 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1532
1533         * except.c (sjlj_emit_function_enter): Mark internal label as LOCAL.
1534
1535 2003-11-14  Richard Earnshaw  <rearnsha@arm.com>
1536
1537         * arm.c (arm_emit_vector_const, arm_output_load_gr): Use ISO C
1538         function definition syntax.
1539
1540 2003-11-14  Eric Christopher  <echristo@redhat.com>
1541
1542         * reload1.c (reload): Revert previous patch. Make
1543         check for assignment into reg_equiv_address stricter.
1544
1545 2003-11-14  Arnaud Charlet  <charlet@act-europe.fr>
1546
1547         * Makefile.in (POSTSTAGE1_FLAGS_TO_PASS): Pass ADAFLAGS.
1548
1549 2003-11-14  Richard Sandiford  <rsandifo@redhat.com>
1550
1551         * config/frv/frv.c (frv_in_small_data_p): Return false for unknown
1552         section names.
1553
1554 2003-11-14  Jason Merrill  <jason@redhat.com>
1555
1556         PR middle-end/12526
1557         * tree.c (build): A CALL_EXPR has side-effects if its arguments do.
1558         * calls.c (call_expr_flags): New fn.
1559         * tree.h: Declare it.
1560
1561 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1562
1563         * config/h8300/lib1funcs.asm (__udivsi3): Remove.
1564         (divmodsi3): Change the name to ___udivsi3.
1565         Update all callers.
1566
1567 2003-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1568
1569         * libgcc2.c (__negdi2, __addvsi3, __addvdi3, __subvsi3, __subvdi3,
1570         __mulvsi3, __negvsi2, __negvdi2, __mulvdi3, __lshrdi3, __ashldi3,
1571         __ashrdi3, __ffsDI2, __muldi3, __clzDI2, __ctzDI2, __parityDI2,
1572         __udivmoddi4, __divdi3, __moddi3, __cmpdi2, __ucmpdi2,
1573         __fixunstfDI, __fixunsxfDI, __fixunsdfDI, __fixunssfDI,
1574         __floatdixf, __floatditf, __floatdidf, __floatdisf, __gcc_bcmp):
1575         Const-ify and/or initialize automatic variables at declaration.
1576
1577 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1578
1579         * config/h8300/lib1funcs.asm (divmodsi4): Replace all the uses
1580         of er4 with er3.  Adjust all callers.
1581
1582 2003-11-13  Andrew Pinski <apinski@apple.com>
1583
1584         * config/darwin.c (machopic_output_possible_stub_label):
1585         Allow stub symbol be not defined when outputting possible
1586         stub label.
1587
1588 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1589
1590         * config/h8300/lib1funcs.asm (___udivsi3): Jump to reti
1591         instead of exitdiv.
1592         (___umodsi3): Likewise.
1593         (exitdiv): Do not restore any register.
1594         (reti): Restore registers.
1595
1596 2003-11-13  Steven Bosscher  <stevenb@suse.de>
1597
1598         * tree-inline.c (walk_tree): Handle PLACEHOLDER_EXPR.
1599
1600 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1601
1602         * config/h8300/lib1funcs.asm: Fix comment typos.
1603
1604 2003-11-13  Kazu Hirata  <kazu@cs.umass.edu>
1605
1606         * config/h8300/lib1funcs.asm (udivsi3): Don't save/restore
1607         unused registers.  Don't jump to exitdiv.
1608         (umodsi3): Likewise.
1609
1610 2003-11-13  Mark Mitchell  <mark@codesourcery.com>
1611             Kean Johnston <jkj@sco.com>
1612
1613         PR c/13029
1614         * toplev.c (check_global_declarations): Do not warn about unused
1615         static consts.
1616
1617 2003-11-13  Pavel Pisa  <pisa@cmp.felk.cvut.cz>
1618             Kazu Hirata  <kazu@cs.umass.edu>
1619
1620         * config/h8300/lib1funcs.asm (DenHighNonZero): Optimize using
1621         the approximate quotient method.
1622
1623 2003-11-13  Richard Earnshaw  <rearnsha@arm.com>
1624
1625         * combine.c (distribute_notes): When re-distributing the notes from
1626         an insn we are about to delete, ensure we can't end up with a cyclic
1627         list of notes.
1628
1629 2003-11-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
1630
1631         PR optimization/12926
1632         * expr.c (expand_assignment) [COMPONENT_REF]: Don't put
1633         the UNCHANGING_RTX_P flag on memory references to read-only
1634         components that are not addressable.
1635
1636 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1637
1638         * config/h8300/lib1funcs.asm (divmodsi4): Clear S0P in
1639         DenHighNonZero.
1640
1641 2003-11-13  Jan Hubicka  <jh@suse.cz>
1642
1643         PR opt/12275
1644         * c-decl.c (finish_decl): Use change_decl_assembler_name.
1645         * c-pragma.c (handle_pragma_redefine_extname): Likewise.
1646         * varasm.c (make_decl_rtl): Likewise.
1647         * cgraph.c (change_decl_assembler_name): New function.
1648         * tree.h (set_decl_assembler_name): Kill dead declaration.
1649         (change_decl_assembler_name): Declare.
1650
1651         * decl.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1652         * decl2.c (make_rtl_for_nonlocal_decl): Use change_decl_assembler_name.
1653
1654 2003-11-12  Kazu Hirata  <kazu@cs.umass.edu>
1655
1656         * config/h8300/lib1funcs.asm (___mulsi3): Don't save/restore
1657         an unused register.
1658
1659 2003-11-12  Richard Sandiford  <rsandifo@redhat.com>
1660
1661         PR bootstrap/12752
1662         * config/mips/t-iris6 (MULTILIB_OPTIONS): Put -mabi=n32 first.
1663         (MULTILIB_OSDIRNAMES): Reorder accordingly.
1664
1665 2003-11-12  Janis Johnson  <janis187@us.ibm.com>
1666
1667         * rs6000-protos.h (rs6000_initial_elimination_offset): Add.
1668         (rs6000_stack_info): Remove.  (debug_stack_info): Remove.
1669         (rs6000_emit_eh_reg_restore): Add
1670         * rs6000.c (rs6000_stack_t): Move from rs6000.h, change data type
1671         of vars_size and total_size to HOST_WIDE_INT.
1672         (emit_frame_save): Change parameter size to HOST_WIDE_INT.
1673         (rs6000_stack_info): Make static; change data size to HOST_WIDE_INT.
1674         (debug_stack_info): Make static; change output format of HOST_WIDE_INT
1675         values.
1676         (rs6000_emit_eh_reg_restore): New, with code formerly in rs6000.md.
1677         (rs6000_initial_elimination_offset): New, with code formerly in
1678         INITIAL_ELIMINATION_OFFSET.
1679         * rs6000.h (rs6000_stack_t): Remove.
1680         (INITIAL_ELIMINATION_OFFSET): Replace code with call to function
1681         rs6000_initial_elimination_offset.
1682         * rs6000.md (UNSPECV_EH_RR split): Replace code with call to
1683         rs6000_emit_eh_reg_restore.
1684
1685 2003-11-12  Mike Stump  <mrs@apple.com>
1686
1687         * c-typeck.c (c_convert_parm_for_inlining): Add argnum, which
1688         is the argumnt we are processing so that warnings and errors
1689         will have that information.
1690         * c-tree.h (c_convert_parm_for_inlining): Add argnum.
1691         * lang-hooks-def.h
1692         (lhd_tree_inlining_convert_parm_for_inlining): Likewse.
1693         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): Likewise.
1694         * langhooks.h (convert_parm_for_inlining): Likewise.
1695         * tree-inline.c (initialize_inlined_parameters): Compute and
1696         pass argnum down.
1697
1698 2003-11-12  Alexey Starovoytov  <alexey.starovoytov@sun.com>
1699             Roger Sayle  <roger@eyesopen.com>
1700
1701         PR optimization/12953
1702         * tree-inline.c (inline_forbidden_p_1): Added check for BUILT_IN
1703         before switch by FUNCTION_CODE.
1704
1705 2003-11-12  Richard Earnshaw  <rearnsha@arm.com>
1706
1707         * arm.md (storehi): Avoid use of explicit subreg.
1708         (storehi_bigend, storeinthi, movhi_bigend): Likewise.
1709
1710 2003-11-12  J"orn Rennecke <joern.rennecke@superh.com>
1711
1712         * config/sh/sh.md (prefetch): New pattern.
1713
1714 2003-11-11  Eric Christopher  <echristo@redhat.com>
1715
1716         * reload1.c (reload): Verify that addresses for
1717         reg_equiv_* are valid for the architecture.
1718
1719 2003-11-11  Eric Christopher  <echristo@redhat.com>
1720
1721         * function.c (purge_addressof_1): Add libcall check.
1722         Remove test for cached replacements on fallback case.
1723         Simplify mode comparisons. Add libcall test for
1724         paradoxical subregs.
1725
1726 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1727
1728         * config/h8300/t-h8300: Fix an obsolete comment.
1729
1730 2003-11-11  James E Wilson  <wilson@specifixinc.com>
1731
1732         * expmed.c (store_bit_field, extract_bit_field): Revert last two
1733         changes.
1734
1735 2003-11-11  Kazu Hirata  <kazu@cs.umass.edu>
1736
1737         * config/h8300/lib1funcs.asm: Replace DenHighZero with
1738         DenHighNonZero.
1739
1740 2003-11-11  Jan Hubicka  <jh@suse.cz>
1741
1742         * cgraphunit.c (cgraph_function_possibly_inlined_p): Use
1743         really_no_inline.
1744
1745 2003-11-11  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1746
1747         * pa.h (TRAMPOLINE_TEMPLATE): Fix flushing of cache lines when
1748         generating 64-bit code.
1749
1750 2003-11-10  David Edelsohn  <edelsohn@gnu.org>
1751
1752         * config/rs6000/rs6000.c (legitimate_lo_sum_address_p): Remove
1753         accidental commit in previous change.
1754
1755 2003-11-10  Fariborz Jahanian <fjahanian@apple.com>
1756
1757         * config/rs6000/rs6000.h (STACK_SIZE_MODE): Add definition.
1758         * config/rs6000/rs6000.c (reg_or_mem_operand): Add macho-style
1759         address recognition.
1760         (macho_lo_sum_memory_operand): Routine to recognize macho-style
1761         address recognition.
1762
1763 2003-11-10  Richard Henderson  <rth@redhat.com>
1764
1765         * dwarf2out.c (gen_label_die): Cope with DECL_RTL not set.
1766
1767 2003-11-10  Matt Austern  <austern@apple.com>
1768
1769         * config/darwin-protos.h (darwin_assemble_visibility): Declare.
1770         * config/darwin.c (darwin_assemble_visibility): Define.  Warn for
1771         anything other than VISIBILITY_DEFAULT and VISIBILITY_HIDDEN.
1772         * config/darwin.h (TARGET_ASM_ASSEMBLE_VISIBILITY): Use
1773         darwin_assemble_visibility instead of default.
1774
1775 2003-11-10  Waldek Hebisch  <hebisch@math.uni.wroc.pl>
1776
1777         PR target/12865
1778         * config/sparc/sparc.c (sparc_initialize_trampoline): Call
1779         __enable_execute_stack only after writing onto the stack.
1780         (sparc64_initialize_trampoline): Likewise.
1781
1782 2003-11-09  Roger Sayle  <roger@eyesopen.com>
1783
1784         * loop.c (check_dbra_loop): Try swapping the comparison operands
1785         of the loop condition to identify a suitable induction variable.
1786         * unroll.c (loop_iterations): Likewise.
1787
1788 2003-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1789
1790         * config/sparc/sparc.h (TARGET_CPU_CPP_BUILTINS): Fix sparc vs
1791         sparc64 #cpu and #machine assertions.
1792
1793 2003-11-09  Richard Henderson  <rth@redhat.com>
1794
1795         * Makefile.in (rtlanal.o): Depend on BASIC_BLOCK_H.
1796
1797 2003-11-09  Jan Hubicka  <jh@suse.cz>
1798
1799         * tree-optimize.c (tree_rest_of_compilation): Fix warning.
1800
1801         * cgraphunit.c (cgraph_expand_function): Use
1802         cgraph_possibly_inlined_p.
1803         * tree-optimize.c (tree_rest_of_compilation): Do not kill saved tree.
1804
1805         * opts.c (common_handle_option): Do not set max-inline-insns.
1806         * params.def: Update comments.
1807         (PARAM_MAX_INLINE_INSNS): Kill.
1808         * invoke.texi (max-inline-insns): Kill.
1809
1810 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1811
1812         PR c/3190
1813         PR c/8714
1814         * c-format.c (set_Wformat): Do not enable -Wformat-y2k by default.
1815         * invoke.texi: Update.
1816
1817 2003-11-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1818
1819         PR optimization/12630
1820         * pa.c (compute_movstrsi_length): Rename to compute_movstr_length.
1821         Handle length computation 64-bit moves.
1822         (compute_clrstr_length, output_block_clear): Implement block clear.
1823         (output_block_move): Handle 64-bit moves.
1824         (pa_adjust_insn_length): Use compute_movstr_length and
1825         compute_clrstr_length.
1826         * pa.md (movstrsi): Revise operand order and comments.  Don't use
1827         match_scratch.
1828         (movstrsi_internal): Delete.
1829         (movstrsi_prereload, movstrsi_postreload): New insns.  Define splitter
1830         and peephole2 patterns to transform prereload to postreload form.
1831         (movstrdi, movstrdi_prereload, movstrdi_postreload, clrstrsi,
1832         clrstrsi_prereload, clrstrsi_postreload, clrstrdi, clrstrdi_prereload,
1833         clrstrdi_postreload): New patterns for 64-bit block move, and block
1834         clear.
1835         * pa-protos.h (output_block_clear): New prototype.
1836
1837 2003-11-08  Andreas Schwab  <schwab@suse.de>
1838
1839         * dbxout.c (current_file): Also wrap inside DBX_DEBUGGING_INFO ||
1840         XCOFF_DEBUGGING_INFO.
1841
1842 2003-11-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1843
1844         * dbxout.c (current_file): Wrap declaration in DBX_USE_BINCL.
1845
1846 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1847
1848         * config/rs6000/rs6000.c (rs6000_legitimize_address): Remove
1849         redundant parens.
1850
1851         * cppfiles.c (pch_open_file): New parameter 'invalid_pch', set it.
1852         (find_file_in_dir): Likewise.
1853         (_cpp_find_file): Print message if no header file is found
1854         but an invalid PCH file was.
1855
1856 2003-11-08  Joseph S. Myers  <jsm@polyomino.org.uk>
1857
1858         * c-typeck.c (pedantic_lvalue_warning): Deprecate compound
1859         expressions as lvalues.
1860         (internal_build_compound_expr): Remove special handling for
1861         non-pedantic case.
1862         * doc/extend.texi: Document that all extended lvalues are now
1863         deprecated.
1864
1865 2003-11-07  Geoffrey Keating  <geoffk@apple.com>
1866
1867         PR 11654
1868         * dbxout.c (struct dbx_file): Do not save for PCH.
1869         (current_file): Likewise.
1870         (dbxout_init): Don't allocate struct dbx_file using GC.
1871         (dbxout_start_source_file): Likewise.
1872
1873 2003-11-07  Falk Hueffner  <falk@debian.org>
1874
1875         * config/alpha/elf.h, config/alpha/unicosmk.h,
1876         config/alpha/vms.h: Convert to ISO C90.
1877
1878 2003-11-07  Nathanael Nerode  <neroden@gcc.gnu.org>
1879
1880         * config/arm/pe.h: Convert to ISO C90.
1881
1882 2003-11-07  J"orn Rennecke <joern.rennecke@superh.com>
1883
1884         * sh-protos.h (sh_pch_valid_p): Declare.
1885         * sh.c ("intl.h"): Include.
1886         (TARGET_PCH_VALID_P): Override.
1887         (sh_target_switches): New variable.
1888         (target_switches): Define.
1889         (sh_pch_valid_p): New function.
1890
1891         * sh.h (MODE_AFTER): Don't change mode unless TARGET_HITACHI.
1892
1893 2003-11-07  Jan Hubicka  <jh@suse.cz>
1894
1895         * i386.c (x86_64_sign_extended_value):  Return false from tls variables.
1896         (x86_64_zero_extended_value):  likewise.
1897
1898 2003-11-07  Richard Sandiford  <rsandifo@redhat.com>
1899
1900         * config/mips/mips.md (loadgp): Take $25 as a second operand.
1901         * config/mips/mips.c (mips_expand_prologue): Modify accordingly.
1902
1903 2003-11-06  Matt Austern <austern@apple.com>
1904
1905         * c-common.c (handle_visibility_attribute): Set DECL_VISIBILITY
1906         field instead of hanging an attribute object off the decl.
1907         * tree.h (DECL_VISIBLITY): New accessor macro for
1908         symbol_visibility field in struct tree_decl.
1909         (enum symbol_visibility): Move definition to before tree_decl.
1910         (struct tree_decl): Define new two-bit field, symbol_visibility.
1911         (decl_visibility): Remove declaration.
1912         * varasm.c (maybe_assemble_visibility): Use DECL_VISIBILITY
1913         instead of decl_visibility.
1914         (default_binds_local_p_1):  Use DECL_VISIBILITY instead of
1915         decl_visibility.
1916         (decl_visibility): Remove.
1917
1918 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1919
1920         * config/s390/s390.c (s390_emit_epilogue): Recognize more cases
1921         where register 14 will be saved.
1922
1923 2003-11-06  Geoffrey Keating  <geoffk@apple.com>
1924
1925         * config/rs6000/rs6000.h (USE_FP_FOR_ARG_P): Move to rs6000.c.
1926         (USE_ALTIVEC_FOR_ARG_P): Likewise.
1927         * config/rs6000/rs6000.c (USE_FP_FOR_ARG_P): Move from rs6000.h.
1928         Take a pointer as the CUM parameter.  Update callers.
1929         (USE_ALTIVEC_FOR_ARG_P): Likewise.  Also correct for Darwin/AIX
1930         32-bit ABIs.
1931         (function_arg_advance): Use USE_ALTIVEC_FOR_ARG_P.  Correct case
1932         of vector parameters as named arguments of stdarg function.
1933         (function_arg): Likewise.
1934
1935         * config/rs6000/darwin.h (ASM_SPEC): Use -force_cpusubtype_ALL when
1936         -maltivec is specified, not the non-existent -faltivec.
1937
1938 2003-11-06  Ulrich Weigand  <uweigand@de.ibm.com>
1939
1940         * config/s390/s390-protos.h (s390_function_value): Declare.
1941         * config/s390/s390.c (TARGET_RETURN_IN_MEMORY): Define.
1942         (s390_return_in_memory): New function.
1943         (s390_function_value): New function.
1944         (s390_function_arg_float): Return false for all arguments larger
1945         than 8 bytes.
1946         (s390_function_arg_pass_by_reference): Likewise.  Return true for
1947         all vector arguments.
1948         (s390_function_arg_integer): New function.
1949         (s390_function_arg_advance): Call it.  Add sanity checks.
1950         (s390_function_arg): Likewise.
1951         * config/s390/s390.h (FUNCTION_VALUE): Call s390_function_value.
1952         (LIBCALL_VALUE): Likewise.
1953         (RET_REG): Remove.
1954         (RETURN_IN_MEMORY): Remove.
1955
1956 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1957
1958         * config/mips/mips-protos.h (mips_initial_elimination_offset): Change
1959         return type to HOST_WIDE_INT.
1960         * config/mips/mips.c (mips_frame_info): Give sizes type HOST_WIDE_INT.
1961         Make initialized a bool.  Make register masks unsigned ints.
1962         (compute_frame_size): Make same mask change here.  Use HOST_WIDE_INT
1963         where appropriate.
1964         (mips_initial_elimination_offset): Return a HOST_WIDE_INT.
1965         (mips_output_function_prologue): Print sizes as HOST_WIDE_INTs.
1966
1967 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1968
1969         * config/frv/frv.c (frv_initial_elimination_offset): Remove bogus
1970         negation.
1971
1972 2003-11-06  Richard Sandiford  <rsandifo@redhat.com>
1973
1974         * config/frv/frv.h (ASM_OUTPUT_ALIGN_WITH_NOP): Define.
1975
1976 2003-11-06  Momchil Velikov  <velco@fadata.bg>
1977
1978         * config/mips/mips.c (override_options): Set MASK_SOFT_FLOAT
1979         for VR4111 too.
1980
1981 2003-11-06  Jan Hubicka  <jh@suse.cz>
1982
1983         * builtins.c (simplify_builtin_strrchr, simplify_builtin_strpbrk): Add
1984         missing casts.
1985
1986 2003-11-06  Zack Weinberg  <zack@codesourcery.com>
1987
1988         * genmodes.c: Change the word "bitsize" to "precision" throughout.
1989         * machmode.def: Likewise.
1990         * machmode.h (GET_MODE_SIZE): Cast value to unsigned short.
1991         (GET_MODE_BITSIZE): Define as GET_MODE_SIZE * BITS_PER_UNIT.
1992         (GET_MODE_PRECISION): New macro.
1993         (mode_bitsize): Renamed mode_precision.
1994         * stor-layout.c (mode_for_size, smallest_mode_for_size):
1995         Use GET_MODE_PRECISION; clarify comments.
1996
1997 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
1998
1999         * doc/install-old.texi: Remove old documentation of building
2000         cross-compilers.
2001         * doc/install.texi: Move some of it to here.
2002
2003 2003-11-05  Per Bothner  <pbothner@apple.com>
2004
2005         PR preprocessor/12891
2006         * c-opts.c (finish_options):  Set include_cursor to disable premature
2007         calls to push_command_line_include from cpp_scan_nooutput.
2008         Fixes bug reported by DJ Delorie.
2009
2010 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
2011
2012         * config/rs6000/rs6000.c (setup_incoming_varargs): Remove
2013         code supporting old-style varargs.
2014
2015         * config/rs6000/rs6000.c (rs6000_machopic_legitimize_pic_address): Use
2016         an intermediate register for better optimisation.
2017
2018 2003-11-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2019
2020         PR optimization/10080
2021         * cfgloopanal.c (variable_initial_value, variable_initial_values,
2022         simple_loop_exit_p): Record the fact that initial value is extended
2023         from inner mode.
2024         (count_strange_loop_iterations, count_loop_iterations): Handle
2025         ivs that iterate in a narrower mode. Fix handling of overflows.
2026         Improve handling of NE conditions.
2027         (inverse, fits_in_mode_p): New static functions.
2028         (simple_increment): Detect variables that iterate in a narrower mode.
2029         * cfgloop.h (struct loop_desc): Fields inner_mode and extend added.
2030
2031 2003-11-05  Geoffrey Keating  <geoffk@apple.com>
2032
2033         * config/rs6000/rs6000.c (compute_vrsave_mask): Correct off-by-one
2034         error.
2035
2036         * config/rs6000/darwin.h (SUBTARGET_OVERRIDE_OPTIONS): Darwin
2037         needs VRSAVE.
2038
2039 2003-11-05  Joseph S. Myers  <jsm@polyomino.org.uk>
2040
2041         * c-typeck.c (pedantic_lvalue_warning): Deprecate use of
2042         conditional expressions as lvalues.
2043
2044 2003-11-05  Kazu Hirata  <kazu@cs.umass.edu>
2045
2046         * tsystem.h: Add the prototype of strlen.
2047         * unwind-pe.h (read_encoded_value_with_base): Add an
2048         appropriate cast to handle a case where the pointer size is
2049         smaller than sizeof (int).
2050
2051 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
2052
2053         * config/mips/mips-protos.h (mips_global_pic_constant_p): Delete.
2054         (mips_delegitimize_address): Delete.
2055         (mips_gotoff_global, mips_load_got_page): Declare.
2056         (mips_load_got_global, mips_rewrite_small_data): Declare.
2057
2058         * config/mips/mips.h (FIND_BASE_TERM): Remove definition.
2059         (DANGEROUS_FOR_LA25_P): Use global_got_operand.
2060         (PREDICATE_CODES): Add global_got_operand, local_got_operand and
2061         small_data_pattern.  Remove CONST from const_arith_operand's entry.
2062
2063         * config/mips/mips.c (UNSPEC_ADDRESS_P, CONST_GP_P): New macros.
2064         (UNSPEC_ADDRESS, UNSPEC_ADDRESS_TYPE): Likewise.
2065         (mips_constant_type): Delete.
2066         (mips_symbol_type): Add SYMBOL_GOTOFF_PAGE, SYMBOL_GOTOFF_GLOBAL,
2067         SYMBOL_GOTOFF_CALL and SYMBOL_GOTOFF_LOADGP.
2068         (NUM_SYMBOL_TYPES): New macro.
2069         (mips_address_type): Remove ADDRESS_INVALID.
2070         (machine_function): Add has_gp_insn_p.
2071         (mips_constant_info): Delete.
2072         (mips_address_info): Add the address type as an extra field.  Replace
2073         the c field with symbol_type.
2074         (mips_split_p, mips_lo_relocs, mips_hi_relocs): New arrays.
2075         (TARGET_DELEGITIMIZE_ADDRESS): Remove definition.
2076         (mips_reloc_offset_ok_p, mips_classify_constant): Delete.
2077         (mips_split_const, mips_symbolic_constant_p): New functions.
2078         (mips_symbolic_address_p): Take the symbol type and mode as arguments.
2079         (mips_classify_address): Return true if the address is valid, storing
2080         its type in INFO.  Use mips_symbolic_constant_p.  Use mips_lo_relocs[]
2081         to test whether a LO_SUM address is allowed.
2082         (mips_symbol_insns): Return 0 for general mips16 symbols.
2083         Reorder SYMBOL_GOT_GLOBAL case to match mips_symbol_type definition.
2084         Handle the new SYMBOL_GOTOFF_*s.
2085         (mips_address_insns): Update call to mips_classify_address.
2086         (mips_const_insns): Be more fussy about HIGH constants.  Remove use
2087         of mips_classify_constant.  Be more accurate about CONSTs.
2088         (mips_global_pic_constant_p): Delete.
2089         (const_arith_operand): Only accept CONST_INTs.
2090         (call_insn_operand): Remove call to mips_classify_constant.
2091         Let mips_symbolic_constant_p check for invalid offsets.
2092         (move_operand): Check for general_operands first.  Only accept symbolic
2093         constants if they satisfy mips_symbolic_constant_p and cannot be split.
2094         (symbolic_constant): Use mips_symbolic_constant_p.
2095         (global_got_operand, local_got_operand): New predicates.
2096         (stack_operand): Update call to mips_classify_address.
2097         (mips_legitimate_address_p): Likewise.
2098         (mips_reloc, mips_lui_reloc): Delete.
2099         (mips_force_temporary): Only use the given temporary if no_new_pseudos.
2100         Use emit_move_insn.
2101         (mips_split_symbol, mips_unspec_address): New functions.
2102         (mips_unspec_offset_high): New function.
2103         (mips_load_got): Replace reloc argument with a symbol_type.
2104         Use mips_unspec_address to create the address and put it in a
2105         LO_SUM with the base register.
2106         (mips_load_got16, mips_load_got32): Delete.
2107         (mips_emit_high, mips_legitimize_symbol): Delete.
2108         (mips_gotoff_global): New function.
2109         (mips_load_got_page, mips_load_got_global): New functions.
2110         (mips_legitimize_symbol): Inline handling of LO_SUM splits.
2111         (mips_legitimize_const_move): Likewise.  Remove HIGH handling.
2112         Inline code to handle constants plus invalid offsets.  Use
2113         mips_split_symbol to legitimize constant pool addresses.
2114         (mips_delegitimize_address): Delete.
2115         (mips_rtx_costs): Give legitimate symbolic constants and CONST_DOUBLEs
2116         a cost of 1 insn.  Give the rest a cost of CONSTANT_POOL_ADDRESS.
2117         (mips_subword): Pass memrefs through mips_rewrite_small_data.
2118         (mips_output_move): Remove use of mips_classify_constant.
2119         (mips_expand_call): Use mips_unspec_offset_high to calculate the
2120         high part of the GOT address for calls to global functions.
2121         (override_options): Initialize mips_split_p[], mips_lo_relocs[]
2122         and mips_hi_relocs[].
2123         (print_operand): Use print_operand_reloc to handle '%h' and '%R'.
2124         Remove use of mips_classify_constant.
2125         (mips_reloc_string): Delete.
2126         (print_operand_reloc): New function.
2127         (print_operand_address): Update call to mips_classify_address.
2128         (mips_rewrite_small_data_p, small_data_pattern_1): New functions.
2129         (small_data_pattern): New predicate.
2130         (mips_rewrite_small_data_1, mips_rewrite_small_data): New functions.
2131         (mips_function_has_gp_insn): New function.
2132         (mips_global_pointer): Use it.
2133         (mips_gp_insn): Delete.
2134         (mips_expand_prologue): When compiling for n32/n64 abicalls, use a
2135         single loadgp pattern to initialize $gp.  Pass it the offset of _gp
2136         from the start of the current function.
2137         (mips16_gp_pseudo_reg): Revert last patch.
2138
2139         * config/mips/mips.md (RELOC_*): Delete.
2140         (UNSPEC_LOADGP, UNSPEC_FIRST_ADDRESS): New constants.
2141         (got): New insn attribute.
2142         (type): Set to "load" if got == load.
2143         (length): Set to 4 if got == load, 8 if got == xgot_high.
2144         (lui[sd]i): Delete.
2145         (*xgot_hi[sd]i, *xgot_lo[sd]i): New patterns.
2146         (*got_disp[sd]i, *got_page[sd]i): Likewise.
2147         (*low[sd]i): Change constraints to "d".  Add a new define_split to
2148         rewrite small data constants into LO_SUMs.
2149         (loadgp): New insns.
2150
2151 2003-11-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2152
2153         * config/mips/_tilib.c: Use _ABI* in _MIPS_SIM tests.
2154
2155 2003-11-04  DJ Delorie  <dj@redhat.com>
2156
2157         * config/v850/v850.md (mulhisi3): Expand the const_int case
2158         separately to avoid trying to sign extend the const.
2159
2160 2003-11-04  Richard Sandiford  <rsandifo@redhat.com>
2161
2162         * emit-rtl.c (copy_rtx_if_shared): Don't allow MEMs with constant
2163         addresses to be shared.
2164         (force_const_mem): Return a copy of the pool entry.
2165
2166 2003-11-03  Andreas Jaeger  <aj@suse.de>
2167
2168         * Makefile.in (GCC_CFLAGS): Remove @WERROR@ again.
2169
2170 2003-11-03  Kelley Cook  <kcook@gcc.gnu.org>
2171
2172         * Makefile.in (cpp.dvi): New target split from cpp.info.
2173         (gcc.dvi):  New target split from gcc.info.
2174         (gccint.dvi): New target split from gccint.info.
2175         (cppinternals.dvi): New target split from cppinternals.info
2176         (gccinstall.info): New specific rule.
2177         (gccinstall.dvi): Likewise.
2178         (dvi): Move targets to $(docobjdir).
2179         ($(docobjdir)/%.dvi): New implicit rule.
2180
2181 2003-11-03  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2182
2183         * doc/gty.texi (tag, desc): Say more about role of desc values in
2184         selecting between tags.
2185
2186 2003-11-03  Alexander Kabaev  <ak03@gte.com>
2187
2188         * real.c (encode_ieee_single): Ensure proper promotion.
2189
2190 2003-11-03  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
2191
2192         * doc/contrib.texi: Add Giovanni Bajo, Dara Hazeghi, Falk Hueffner,
2193         and Andrew Pinski.
2194
2195 2003-11-03  Syd Polk  <spolk@apple.com>
2196
2197         * config/rs6000/rs6000.c (rs6000_override_options): Add G3, G4, and G5
2198         marketing names to the list of supported processors.
2199         * config/rs6000/rs6000.h: Ditto.
2200         * doc/invoke.texi: Ditto.
2201         * config.gcc: Ditto.
2202
2203 2003-11-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2204
2205         * fixinc/inclhack.def (stdio_va_list): Allow tab before va_list.
2206         Merge two substitutions.
2207         * fixinc/fixincl.x: Regenerate.
2208         Fixes PR bootstrap/12666.
2209
2210 2003-11-03  Joseph S. Myers  <jsm@polyomino.org.uk>
2211
2212         * doc/install-old.texi: Remove VMS documentation.
2213
2214 2003-11-03  Jan Hubicka  <jh@suse.cz>
2215
2216         * i386.c (override_options):  Remove hack enabling 128bit long double
2217         commited by accident.
2218
2219 2003-11-02  Per Bothner  <per@bothner.com>
2220
2221         * c-opts.c (needValue):  Do cpp_find_main_file before processing
2222         any imacros flags, so pfile->main_file is set for the latter.
2223
2224 2003-11-03  Andreas Jaeger  <aj@suse.de>
2225             Zack Weinberg  <zack@codesourcery.com>
2226
2227         * Makefile.in (GCC_CFLAGS): Allow blacklisting of warnings.
2228         (SYSCALLS.c.X-warn): Suppress warnings.
2229
2230 2003-11-02  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2231
2232         PR optimization/12845
2233         * pa.c (output_cbranch): Use cmpb for DImode comparisons with 0.
2234
2235 2003-11-02  Zack Weinberg  <zack@codesourcery.com>
2236
2237         * print-rtl.c (print_rtx): Call PRINT_REG with second argument -1.
2238         * config/i386/i386.c (print_reg): Abort on a virtual register
2239         if code != -1; not if file == asm_out_file.
2240         * config/i386/i386.h (PRINT_REG): Document meaning of CODE == -1.
2241         (DEBUG_PRINT_REG): Delete, unused.
2242
2243 2003-11-02  Andreas Schwab  <schwab@suse.de>
2244
2245         * config/ia64/fde-glibc.c (_GNU_SOURCE): Define to 1 instead of
2246         empty to avoid conflict with the definition from configure.
2247
2248 2003-11-02  Roger Sayle  <roger@eyesopen.com>
2249
2250         PR optimization/10817
2251         * ifcvt.c (noce_emit_move_insn): Improve documentation comment.
2252         (noce_try_move): New function to optimize an if-the-else into an
2253         unconditional move, i.e. "if (a!=b) x=a; else x=b" into "x=a".
2254         (noce_process_if_block): Attempt simplification with noce_try_move.
2255
2256         * simplify-rtx.c (simplify_ternary_operation): Some minor fixes
2257         and improvements to the optimizations of IF_THEN_ELSE expressions.
2258         (simplify_subreg): Silence signed/unsigned comparison warning.
2259
2260 2003-11-02  Richard Sandiford  <rsandifo@redhat.com>
2261
2262         * Makefile.in (targhooks.o, reload.o): Update dependencies.
2263         (GTFILES): Add targhooks.c.
2264         (gt-targhooks.h): New rule; depend on s-gtype.
2265         * target.h (direct_pool_load_p): New hook.
2266         * target-def.h (TARGET_DIRECT_POOL_LOAD_P): New macro.
2267         (TARGET_INITIALIZER): Include it.
2268         * targhooks.h (default_direct_pool_load_p): Declare.
2269         (hook_bool_machine_mode_true): Declare.
2270         * targhooks.c: Include insn-config.h, recog.h, ggc.h and
2271         gt-targhooks.h.
2272         (pool_symbol): New variable.
2273         (default_direct_pool_load_p): New function.
2274         (hook_bool_machine_mode_true): New function.
2275         * reload.c: Include target.h.
2276         (find_reloads): If an alternative will force a constant into memory,
2277         count an extra reload if constant pool symbols are not valid
2278         addresses.  If an alternative uses memory to move values between
2279         registers, count the move as two reloads rather than one.
2280         * config/s390/s390.c (TARGET_DIRECT_POOL_LOAD_P): Define.
2281         * doc/tm.texi (TARGET_DIRECT_POOL_LOAD_P): Document.
2282
2283 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2284
2285         PR optimization/12799
2286         * postreload.c (reload_cse_move2add): Generate the add2
2287         patterns manually.
2288
2289 2003-11-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
2290
2291         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2292         Return 0 for all complex modes whose size is lesser or equal to
2293         a word.  Add a ??? comment for the condition used with 16-byte
2294         aligned modes.
2295
2296 2003-11-01  Kelley Cook  <kcook@gcc.gnu.org>
2297
2298         * .cvsignore: Remove c-parse* and tradcif.c.
2299         * objc/.cvsignore: Delete.
2300
2301 2003-11-01  Roger Sayle  <roger@eyesopen.com>
2302
2303         * unwind-sjlj.c (_Unwind_GetCFA): Return (_Unwind_Word)0 instead
2304         of NULL.
2305
2306 2003-11-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2307
2308         * som.h (DO_GLOBAL_DTORS_BODY): Change to C90 declaration.
2309
2310         * libgcc2.c (SYMBOL__MAIN): Provide C90 declaration.
2311
2312         * collect2.c (scan_libraries): Fix typos.
2313
2314         PR preprocessor/12847
2315         * cppfiles.c, cppexp.c, cpperror.c, cpplib.h, cpplib.c, cpplex.c,
2316         cppinit.c, cpptrad.c, cppmacro.c, fix-header.c, cpppch.c, c-pch.c,
2317         c-incpath.c, cppcharset.c (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN,
2318         DL_ERROR, DL_ICE, DL_EXTRACT, DL_WARNING_P): Prefix macro names with
2319         "CPP_".
2320
2321 2003-11-01  Fariborz Jahanian  <fjahanian@apple.com>
2322
2323         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): Correct
2324         no_units calculation.
2325
2326 2003-11-01  Andreas Jaeger  <aj@suse.de>
2327
2328         * unwind-dw2.c (_Unwind_FrameState): Remove commas at end of
2329         enumeration list.
2330
2331 2003-11-01  Andreas Schwab  <schwab@suse.de>
2332
2333         * config/ia64/sysv4.h (SDATA_SECTION_FUNCTION): Update to C90
2334         prototypes.
2335         (SBSS_SECTION_FUNCTION): Likewise.
2336
2337 2003-11-01  Andreas Jaeger  <aj@suse.de>
2338
2339         * Makefile.in (GCC_CFLAGS): Add @WERROR@ for target files.
2340
2341 2003-11-01  Andreas Tobler  <a.tobler@schweiz.ch>
2342
2343         * config/rs6000/sysv4.h (EXTRA_SECTION_FUNCTIONS): Update to C90
2344         prototypes.
2345
2346 2003-11-01  Andreas Jaeger  <aj@suse.de>
2347
2348         * unwind-dw2.c (_Unwind_FindEnclosingFunction): Constify variable.
2349         (uw_frame_state_for): Constify variables.
2350         (extract_cie_info): Constify first argument.
2351
2352         * unwind-dw2-fde-darwin.c: Adjust prototype of
2353         _Unwind_Find_registered_FDE for recent changes.
2354         (examine_objects): Constify return value and local variable result.
2355         (_Unwind_Find_FDE): Constify return value and local variable ret.
2356
2357 2003-10-31  Per Bothner  <pbothner@apple.com>
2358
2359         * c-opts.c (finish_options):  Change to returns boolean - false iff
2360         the call to cpp_find_main_file fails.
2361         (c_common_init):  Skip preprocess_file if finish_options failed.
2362         (c_common_parse_file):  Break if finish_options failed.
2363         Fixes PR preprocessor/12545.
2364
2365 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2366
2367         * aclocal.m4: Blacklist ultrix* for mmap file.
2368         * configure: Rebuilt.
2369
2370         * function.c (assign_parms): Add ATTRIBUTE_UNUSED to variable
2371         reg_parm_stack_space.
2372         * toplev.c (default_get_pch_validity): Fix warning.
2373
2374         * vax.c: Include toplev.h.
2375         (vax_init_libfuncs): Fix typo (umod).
2376         * vax.h (ASM_COMMENT_START): Define.
2377         (PRINT_OPERAND): Fix warning when HOST_WIDE_INT is a long long.
2378
2379 2003-10-31  Roger Sayle  <roger@eyesopen.com>
2380
2381         PR middle-end/11968
2382         * expr.c (expand_expr <MULT_EXPR>): Remove inappropriate and
2383         confusing comment; distributivity isn't handled in expand_expr.
2384         * fold-const.c (extract_muldiv_1 <PLUS_EXPR>):  Allow overflow
2385         in distributivity, if wrap-around semantics are specified with
2386         -fwrapv.
2387
2388 2003-11-01  Alan Modra  <amodra@bigpond.net.au>
2389
2390         PR 12315
2391         * final.c (profile_function): Allow for NULL svrtx.
2392
2393 2003-10-31  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2394
2395         * pa.c (pa_select_section): Use new style declaration.
2396         * som.h (readonly_data): Likewise.
2397
2398 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2399
2400         * config/rs6000/rs6000.c: Update to C90 prototypes.
2401
2402 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2403
2404         PR target/7513
2405         * arm.h (CONDITIONAL_REGISTER_USAGE): Disable use of LR in Thumb
2406         code.
2407
2408 2003-10-31  Andreas Jaeger  <aj@suse.de>,
2409             Zack Weinberg  <zack@codesourcery.com>
2410
2411
2412         * crtstuff.c (__register_frame_info, __register_frame_info_bases)
2413         (__deregister_frame_info, __deregister_frame_info_bases):
2414         Constify void * argument.
2415         * unwind-dw2-fde.h (struct fde_vector):
2416         Constify 'orig_data' and 'array' fields.
2417         (__register_frame_info, __register_frame_info_bases)
2418         (__deregister_frame_info, __deregister_frame_info_bases):
2419         Constify void * argument.
2420         (get_cie, next_fde, _Unwind_Find_FDE): Constify arguments,
2421         return values, and casts of type fde *, struct dwarf_fde *,
2422         and struct dwarf_cie *.
2423         * unwind-dw2-fde.c (__register_frame_info, __register_frame_info_bases)
2424         (__deregister_frame_info, __deregister_frame_info_bases):
2425         Constify void * argument.
2426         (get_cie_encoding, ): Constify struct dwarf_cie * argument.
2427         (get_fde_encoding, fde_unencoded_compare, fde_single_encoding_compare)
2428         (fde_mixed_encoding_compare, fde_compare_t, start_fde_sort, fde_insert)
2429         fde_split, SWAP, frame_downheap, frame_heapsort)
2430         (classify_object_over_fdes, add_fdes, linear_search_fdes,
2431         binary_search_unencoded_fdes, binary_search_single_encoding_fdes,
2432         binary_search_mixed_encoding_fdes, search_object, _Unwind_Find_FDE):
2433         Constify arguments, local variables, return values, and casts
2434         of type fde *, fde **, struct dwarf_fde *, and struct dwarf_cie *.
2435         Use const pointer types in sizeof expressions, for clarity.
2436         * unwind-dw2-fde-glibc.c
2437         (_Unwind_find_registered_FDE, _Unwind_find_FDE): Constify return value.
2438         (struct unw_eh_callback_data): Constify 'ret' field.
2439
2440 2003-10-31  Fariborz Jahanian  <fjahanian@apple.com>
2441             David Edelsohn  <edelsohn@gnu.org>
2442
2443         * config/rs6000/rs6000.c (rs6000_mixed_function_arg): New.
2444         (function_arg): Call it.
2445         (rs6000_function_value): Widen integral return value to mode based
2446         on TARGET_32BIT, not word_mode.
2447         * config/rs6000/rs6000.h (PROMOTE_MODE): Likewise.
2448         (UNITS_PER_ARG): New.
2449         (RS6000_ARG_SIZE): Use it.
2450
2451 2003-10-31  Gerald Pfeifer  <gerald@pfeifer.com>
2452
2453         * .cvsignore: No longer ignore gengtype-lex.c, gengtype-yacc.c,
2454         and gengtype-yacc.h.
2455
2456 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2457
2458         PR optimization/8896
2459         * postreload.c (reload_combine): Check that REGY doesn't die in an
2460         insn of the form (set (regx) (plus (regx) (regy))), ie REGX != REGY.
2461
2462 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2463
2464         PR/10239
2465         * cfgrtl.c (delete_insn): Decrease LABEL_NUSES for all REG_LABEL notes.
2466
2467 2003-10-31  Josef Zlomek  <zlomekj@suse.cz>
2468
2469         PR/11640
2470         * cfgrtl.c (try_redirect_by_replacing_jump): Move jump
2471         immediatelly before BARRIER.
2472
2473 2003-10-31  Kelley Cook  <kcook@gcc.gnu.org>
2474
2475         * Makefile.in (STRICT2_WARN): Add -Wold-style-definition.
2476
2477 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2478
2479         PR target/11271
2480         * reload.c (find_reloads_address): Handle any register in
2481         (PLUS (PLUS (REG) (REG)) (CONST_INT).
2482
2483 2003-10-31  Richard Earnshaw  <rearnsha@arm.com>
2484
2485         * ggc-page.c (ggc_pch_read): Wrap call to poison_pages in
2486         ENABLE_GC_CHECKING not in GGC_POISON.
2487
2488 2003-10-31  Nathanael Nerode  <neroden@gcc.gnu.org>
2489
2490         PR bootstrap/9863
2491         * configure.in: Bail out if awk is missing.
2492         * configure: Regenerate.
2493
2494         PR ada/12761
2495         * Makefile.in: Move default definitions of X_ADA_CFLAGS,
2496         T_ADA_CFLAGS, X_ADAFLAGS, T_ADAFLAGS from ada/Make-lang.in to here.
2497
2498 2003-10-30  Richard Henderson  <rth@redhat.com>
2499
2500         * c-objc-common.c (c_tree_printer): Handle types correctly.
2501         Factor code a bit.
2502
2503 2003-10-30 Kelley Cook <kcook@gcc.gnu.org>
2504
2505         * value-prof.c, web.c: Update to C90.
2506
2507 2003-10-30  Eric Christopher  <echristo@redhat.com>
2508
2509         * function.c (purge_addressof_1): Add case for REG_RETVAL
2510         notes when modes are unequal.
2511
2512 2003-10-31  Jan Hubicka  <jh@suse.cz>
2513
2514         * i386-modes.def: Add XFmode format adjustment.
2515
2516 2003-10-30  Jan Hubicka  <jh@suse.cz>
2517
2518         * real.c (encode_ieee_extended): Back out previous patch.
2519
2520 2003-10-30  Jan Hubicka  <jh@suse.cz>
2521
2522         * real.c (encode_ieee_extended): Initialize whole array.
2523         * reg-stack.c (move_for_stack_reg0: Use always XFmode.
2524         * i386-modes.def: Change definitions of TFmode and XFmode.
2525         * i386.c (classify_argument): Rename TFmodes to XFmodes; add new TFmode
2526         code.
2527         (construct_container): Allow constructing of TFmode integer containers.
2528         (ix86_return_in_memory):  XFmode is not returned in memory.
2529         (init_ext_80387_constants): Always use XFmode.
2530         (print_operand): Likewise.
2531         (ix86_prepare_fp_compare_regs): Likewise.
2532         (split_to_parts): Deal with TFmode.
2533         (split_long_move): Simplify.
2534         (ix86_init_mmx_sse_builtins): Add __float80, __float128.
2535         (ix86_memory_move_cost): Do not confuse TFmode.
2536         * i386.h (LONG_DOUBLE_TYPE_SIZE): Set to 96.
2537         (IS_STACK_MODE): TFmode is not stack mode.
2538         (HARD_REGNO_NREGS, CLASS_MAX_NREGS): Deal nicely with XFmode.
2539         (VALID_SSE_REG_MODE): Allow TFmode.
2540         (VALID_FP_MODE_P): Disallow TFmode.
2541         (VALID_INT_MODE_P): Allow TFmode in 64bit mode.
2542         * i386.md (TFmode patterns): Kill.
2543         (movtf, motf_rex64): New patterns.
2544
2545 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2546
2547         * config/mips/mips.md (adddi3): Fix typo in mips16 stack pointer code.
2548
2549 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2550
2551         * config/mips/mips.md (mov_lwl): Use memory_operand where appropriate.
2552         (mov_lwr, mov_swl, mov_swr): Likewise.
2553         (mov_ldl, mov_ldr, mov_sdl, mov_sdr): Likewise.
2554
2555 2003-10-30  Richard Sandiford  <rsandifo@redhat.com>
2556
2557         * config/mips/mips.c (mips_global_pointer): Don't try to use $25.
2558
2559 2003-10-30  Richard Henderson  <rth@redhat.com>
2560
2561         * config/mips/mips.c (mips_build_builtin_va_list): Use runtime
2562         test for irix6 rather than preprocessor test.
2563
2564 2003-10-30  Richard Henderson  <rth@redhat.com>
2565
2566         * cppcharset.c (one_utf8_to_utf16): Initialize 's' to silence warning.
2567
2568 2003-10-30  Ulrich Weigand  <uweigand@de.ibm.com>
2569
2570         * config/s390/s390.c (struct machine_function): Use save_return_addr_p
2571         as a general flag that the return address register needs to be saved,
2572         not necessarily because of __builtin_return_addr (0).
2573         (s390_split_branches): Remove TEMP_REG and TEMP_USED arguments,
2574         remove special handling of zSeries machines.
2575         (s390_optimize_prolog): Remove TEMP_USED argument, treat the return
2576         register as a regular register on zSeries machines.
2577         (s390_reorg): Adjust calls to s390_split_branches and
2578         s390_optimize_prolog.
2579         (s390_frame_info): On zSeries machines, do not assume the return
2580         register is always used.  Update regs_ever_live with current data
2581         for the special registers.
2582         (s390_emit_epilogue): Use save_return_addr_p to determine whether
2583         the return register was saved.
2584         * config/s390/s390.h (CONDITIONAL_REGISTER_USAGE): Do not mark
2585         RETURN_REGNUM fixed on zSeries machines.
2586         (REG_ALLOC_ORDER): Use RETURN_REGNUM last.
2587         * config/s390/s390.md ("*doloop_si"): Handle branch overflow
2588         via ahi-jgne pair on zSeries machines.
2589         ("*doloop_di"): Likewise.
2590         ("*doloop_di_long"): Remove.
2591
2592 2003-10-30  Richard Earnshaw  <rearnsha@arm.com>
2593
2594         * arm.c (arm_override_options): Revert change of arm_constant_limit
2595         when optimizing for size.
2596
2597 2003-10-29  Richard Henderson  <rth@redhat.com>
2598
2599         * fold-const.c (fold_single_bit_test): Convert the input to the
2600         operational intermediate type.
2601
2602 2003-10-29  Richard Henderson  <rth@redhat.com>
2603
2604         * builtins.c (std_build_builtin_va_list): New.
2605         * expr.h (std_build_builtin_va_list): Declare.
2606         * defaults.h (BUILD_VA_LIST_TYPE): New.
2607         * system.h (BUILD_VA_LIST_TYPE): Poison.
2608         * target-def.h (TARGET_BUILD_BUILTIN_VA_LIST): New.
2609         * target.h (struct gcc_target): Add build_builtin_va_list.
2610         * tree.c (build_common_tree_nodes_2): Use it.
2611
2612         * config/alpha/alpha-protos.h, config/alpha/alpha.c,
2613         config/alpha/alpha.h, config/alpha/unicosmk.h,
2614         config/d30v/d30v-protos.h, config/d30v/d30v.c, config/d30v/d30v.h,
2615         config/i386/i386-protos.h, config/i386/i386.c, config/i386/i386.h,
2616         config/i860/i860-protos.h, config/i860/i860.c, config/i860/i860.h,
2617         config/i960/i960-protos.h, config/i960/i960.c, config/i960/i960.h,
2618         config/mips/iris6.h, config/mips/mips-protos.h, config/mips/mips.c,
2619         config/mips/mips.h, config/rs6000/rs6000-protos.h,
2620         config/rs6000/rs6000.c, config/rs6000/rs6000.h,
2621         config/s390/s390-protos.h, config/s390/s390.c, config/s390/s390.h,
2622         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2623         config/xtensa/xtensa-protos.h, config/xtensa/xtensa.c,
2624         config/xtensa/xtensa.h: Rename foo_build_va_list to
2625         foo_build_builtin_va_list; make it static.  Define
2626         TARGET_BUILD_BUILTIN_VA_LIST.  Remove BUILD_VA_LIST_TYPE.
2627         Update protos.
2628
2629         * config/i386/i386.c (ix86_expand_carry_flag_compare): Make static.
2630         * config/iq2000/iq2000.h (BUILD_VA_LIST_TYPE): Remove.
2631
2632 2003-10-29  James E Wilson  <wilson@specifixinc.com>
2633
2634         * recog.c (asm_operand_ok): Add missing break after case 'X'.
2635         Change if statements to else if statements in default case.
2636         (extract_constrain_insn_cached): Fix misspelling of constrain_operands
2637         in comment.
2638         (constrain_operands_cached): Likewise.
2639         (constrain_operands): Change if statements to else if statements in
2640         default case.
2641         * reload.c (find_reloads): Likewise.
2642
2643 2003-10-29  Richard Henderson  <rth@redhat.com>
2644
2645         * config/m68k/m68k.c (notice_update_cc): Clear cc status for
2646         shifts and rotates.
2647
2648 2003-10-30  Alan Modra  <amodra@bigpond.net.au>
2649
2650         * config/rs6000/rs6000.md: Remove duplicate pattern.
2651
2652 2003-10-29  Hans-Peter Nilsson  <hp@axis.com>
2653
2654         * real.c (do_divide): Initialize result with a 0.
2655
2656         * configure.in <enable-checking for valgrind>: Look for
2657         <valgrind/memcheck.h> first.  AC_DEFINE HAVE_VALGRIND_MEMCHECK_H
2658         if it exists.
2659         * configure, config.in: Regenerate.
2660         * ggc-common.c [ENABLE_VALGRIND_CHECKING &&
2661         HAVE_VALGRIND_MEMCHECK_H]: Include <valgrind/memcheck.h>.  Use
2662         #elif for other alternatives.
2663         * ggc-page.c: Ditto.
2664         * ggc-zone.c: Don't assume <valgrind/memcheck.h>; instead copy
2665         include structure from ggc-common.c.
2666
2667 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2668
2669         * pa-linux.h (ASM_OUTPUT_ADDR_VEC_ELT): Use label in big switch ELTs.
2670         (ASM_OUTPUT_ADDR_DIFF_ELT): Use label difference in big switch ELTs.
2671         * pa.c (pa_adjust_insn_length): Check for btable branches using
2672         attribute TYPE_BTABLE_BRANCH.
2673         (pa_reorg): Simplify.
2674         * pa.h (CASE_VECTOR_MODE): Change big switch mode to SImode.
2675         (ASM_OUTPUT_ADDR_VEC_ELT): As above.
2676         (ASM_OUTPUT_ADDR_DIFF_ELT): As above.
2677         * pa.md (btable_branch): New instruction type.
2678         (in_branch_delay, in_nullified_branch_delay, in_call_delay): Disallow
2679         btable branches.
2680         (define_delay): Add btable branches to insn types that may have an
2681         insn in the delay position.
2682         (Z2, Z3): Add btable branch to list.
2683         Simplify unamed pattern set copy pic_label_operand to register.  Add
2684         PA 2.0 variant.
2685         (short_jump): New jump for use in branch tables.
2686         (casesi, casesi0): Revise for new branch table formats.
2687         (casesi32, casesi32p, casesi64p): New casesi patterns.
2688         (indirect_jump): Move.
2689
2690 2003-10-29  David Edelsohn  <edelsohn@gnu.org>
2691
2692         * config/rs6000/rs6000.h (UNITS_PER_WORD): Revert to
2693         !TARGET_POWERPC64.
2694         (UNITS_PER_GPR_WORD): Delete.
2695         (HARD_REGNO_NREGS): Revert to UNITS_PER_WORD.
2696         (HARD_REGNO_MODE_OK): Same.
2697         (CLASS_MAX_NREGS): Same.
2698
2699 2003-10-29  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2700
2701         * pa.h (ASM_COMMENT_START): Define.
2702
2703 2003-10-29  Zack Weinberg  <zack@codesourcery.com>
2704
2705         * genmodes.c (complete_mode): Record MODE_CC, MODE_INT,
2706         MODE_FLOAT, and MODE_PARTIAL_INT modes as having one
2707         component, not zero.
2708
2709 2003-10-29  Andreas Schwab  <schwab@suse.de>
2710
2711         * config/ia64/t-ia64 (LIB2ADDEH): Add $(srcdir)/gthr-gnat.c.
2712
2713 2003-10-29  Eric Botcazou  <ebotcazou@libertysurf.fr>
2714
2715         * config/sparc/sparc.c (function_arg_partial_nregs) [TARGET_ARCH64]:
2716         Never return 1 for complex integral modes whose size is lesser or
2717         equal to a word.
2718         (function_arg_pass_by_reference) [TARGET_ARCH64]: Mention CTImode
2719         in the comment.
2720         (function_arg_advance) [TARGET_ARCH64]: Don't special-case complex
2721         modes.
2722         (sparc_va_arg) [TARGET_ARCH64]: Handle any types whose size is
2723         greater than 16 bytes by reference.
2724
2725 2003-10-29  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2726
2727         * config/ia64/ia64.c (ia64_assemble_integer): Test POINTER_SIZE,
2728         not TARGET_ILP32.
2729         (ia64_initialize_trampoline): Use globalize_label target call.
2730
2731 2003-10-29  Andreas Schwab  <schwab@suse.de>
2732
2733         * doc/install.texi (Building): Add a sentence about building Ada
2734         for a canadian cross.
2735
2736 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2737
2738         * config/ia64/ia64.c (cmptf_libfunc): New static.
2739         (ia64_expand_compare): Add logic to open-code calls to
2740         _U_Qfcmp for TFmode comparisons.
2741         (ia64_hpux_init_libfuncs): Initialize cmptf_libfunc.
2742         Set libfuncs for TFmode eq/ne/gt/ge/lt/gt to 0; these should
2743         never be generated anymore.
2744         * config/ia64/ia64.md (cmptf): New expander.
2745
2746 2003-10-28  Zack Weinberg  <zack@codesourcery.com>
2747
2748         * ia64.md (UNSPEC_SETF_EXP,UNSPEC_FR_SQRT_RECIP_APPROX): New constants.
2749         (*sqrt_approx): New instruction pattern for approximate square roots.
2750         (*setf_exp_xf): New instruction pattern for exponentiation.
2751         (*maddxf4_alts_truncsf): New instruction pattern for truncation.
2752         (sqrtsf2_internal_thr): New define_and_split implementing
2753         throughput-optimized inline calculation of SFmode square root.
2754         (sqrtdf2_internal_thr): Likewise for DFmode.
2755         (sqrtxf2_internal_thr): Likewise for XFmode.
2756         (sqrtsf2, sqrtdf2, sqrtxf2): New expanders to choose between
2757         latency- and throughput-optimized square root algorithms.
2758         * ia64.h (MASK_INLINE_SQRT_LAT, MASK_INLINE_SQRT_THR,
2759         TARGET_INLINE_SQRT_LAT, TARGET_INLINE_SQRT_THR, TARGET_INLINE_SQRT):
2760         New macros.
2761         (TARGET_SWITCHES): Add -minline-sqrt-min-latency and
2762         -minline-sqrt-max-throughput.
2763         * ia64.c (ia64_override_options): If both -minline-sqrt-min-latency
2764         and -minline-sqrt-max-throughput are given, notify the user
2765         that both options cannot be used simultaneously.
2766         If -minline-sqrt-min-latency is given, notify the user that
2767         this mode is not yet implemented.
2768         (rtx_needs_barrier): Reformat initial comment to obey
2769         72-character width limit.  Support UNSPEC_SETF_EXP and
2770         UNSPEC_FR_SQRT_RECIP_APPROX.
2771
2772 2003-10-29  Alan Modra  <amodra@bigpond.net.au>
2773
2774         * config/rs6000/rs6000.md (movdf_softfloat64): Allow dummy ctr,ctr
2775         moves.
2776
2777 2003-10-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2778
2779         PR target/11598
2780         PR libgcj/10610
2781         * config/rs6000/sysv4.h (PREFERRED_STACK_BOUNDARY): New macro.
2782
2783 2003-10-28  Richard Earnshaw  <rearnsha@arm.com>
2784
2785         * arm.c (arm_output_epilogue): When using a frame pointer, don't emit
2786         an extra stack adjustment insn if the stack pointer is already
2787         pointing at the right place.
2788         (use_return_insn): Allow a return insn to be used when we have a
2789         frame pointer if the stack pointer is in the right place.
2790         (output_return_instruction): Handle it.
2791
2792 2003-10-28  Andreas Jaeger  <aj@suse.de>
2793
2794         * ggc-zone.c (check_cookies): Add missing variable.
2795         Add void to prototypes.
2796
2797 2003-10-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2798
2799         * config/mips/irix6-libc-compat.c (inet_makeaddr): Prototype.
2800         * crtstuff.c (__do_global_ctors_1): Move prototype.
2801         * unwind-dw2.c (NO_SIZE_OF_ENCODED_VALUE): Define when
2802         appropriate.
2803         * unwind-sjlj.c (_Unwind_GetCFA, _Unwind_FindEnclosingFunction):
2804         Mark parameter with __attribute__((unused)).
2805
2806 2003-10-27  Zack Weinberg  <zack@codesourcery.com>
2807
2808         * c-decl.c (pushdecl): Clarify comment.
2809
2810 2003-10-27  Arnaud Charlet  <charlet@act-europe.fr>
2811
2812         * doc/install.texi: Update instructions for Ada cross builds
2813
2814         PR ada/5909:
2815         * doc/sourcebuild.texi: Document Ada test suite.
2816
2817 2003-10-27  Stephane Carrez  <stcarrez@nerim.fr>
2818
2819         * config/m68hc11/m68hc11.c: Convert to ISO C90.
2820         * config/m68hc11/m68hc11-protos.h: Likewise.
2821
2822 2003-10-27  Jan Hubicka  <jh@suse.cz>
2823             Eric Botcazou  <ebotcazou@libertysurf.fr>
2824
2825         * toplev.c (enum dump_file_index, dump_file): Fix ordering of
2826         webizer pass dump.
2827
2828 2003-10-27  Jakub Jelinek  <jakub@redhat.com>
2829             Jan Hubicka  <jh@suse.cz>
2830
2831         * reload1.c (struct elim_table): Change offset, initial_offset and
2832         previous_offset fields to HOST_WIDE_INT.
2833         (offsets_at): Change from int to HOST_WIDE_INT.
2834         (reload): Adjust offsets_at initialization.
2835         (eliminate_regs_in_insn): Change type of offset to HOST_WIDE_INT.
2836         (verify_initial_elim_offsets): Change type of t to HOST_WIDE_INT.
2837         * config/i386/i386.c (ix86_compute_frame_layout): Change offset type
2838         to HOST_WIDE_INT.  Don't save regs using mov for huge frame sizes
2839         if TARGET_64BIT.
2840         (pro_epilogue_adjust_stack): New function.
2841         (ix86_expand_prologue, ix86_expand_epilogue): Use it.
2842         * config/i386/i386.md (pro_epilogue_adjust_stack): Remove.
2843         (pro_epilogue_adjust_stack_1): Remove * in front of name.
2844         (pro_epilogue_adjust_stack_rex64): Handle -2147483648 properly.
2845         (pro_epilogue_adjust_stack_rex64_2): New insn.
2846
2847         * config/i386/i386.c (ix86_expand_epilogue): Fix comment typo.
2848
2849         * config/i386/i386.c (ix86_expand_call): Replace 40 with
2850         FIRST_REX_INT_REG + 3 /* R11 */.
2851
2852 2003-10-26  Richard Henderson  <rth@redhat.com>
2853
2854         * config/alpha/alpha.md (attr cannot_copy): New.
2855         (call_osf_2_er, call_value_osf_2_er, ldgp_er_1, ldgp_er_2,
2856         prologue_ldgp_er_2, prologue_ldgp_1): Set it.
2857         * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Test it.
2858
2859 2003-10-26  Daniel Berlin  <dberlin@dberlin.org>
2860
2861         * ggc-zone.c:  New file, zone allocating collector.
2862         * configure: Accept zone option for --with-gc
2863         * configure.in: Ditto.
2864         * ggc.h (ggc_pch_count_object): Pass bool indicating
2865         stringiness. Update all callers.
2866         (ggc_pch_alloc_object): Ditto.
2867         (ggc_pch_write_object): Ditto.
2868         (ggc_alloc_rtx): Use typed allocation, since all RTX's are of a single
2869         type.
2870         (ggc_alloc_rtvec): Ditto.
2871         (ggc_alloc_tree): Use zone allocation, since some things using this macro
2872         aren't a single typecode.
2873         * ggc-none.c (ggc_alloc_typed): New function.
2874         (ggc_alloc_zone): Ditto.
2875         * ggc-page.c: Ditto on both functions.
2876
2877 2003-10-26  Gunther Nikl  <gni@gecko.de>
2878
2879         * config/m68k/m68k.c (m68k_compute_frame_layout): Ensure FPU related
2880         frame information is always valid.
2881         (m68k_output_function_prologue): Remove superfluous TARGET_68881
2882         test; fix formatting.
2883
2884 2003-10-26  Gunther Nikl  <gni@gecko.de>
2885
2886         * config/m68k/m68k.c (m68k_compute_frame_layout): Swap reg_mask and
2887         reg_rev_mask computation.
2888         (m68k_output_function_prologue): Fix usage of current_frame (one typo
2889         and one missing); use reg_rev_mask not reg_mask.
2890         (m68k_output_function_epilogue): Fix usage of current_frame;
2891         use fpu_rev_mask not fpu_mask.
2892
2893 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2894
2895         * config/m68k/m68k.c (m68k_output_function_prologue): Eliminate
2896         num_saved_regs, use current_frame.reg_no instead.
2897
2898 2003-10-26  Bernardo Innocenti  <bernie@develer.com>
2899             Paul Dale  <pauli@snapgear.com>
2900
2901         * doc/extend.texi (interrupt_handler): Add m68k to the
2902         list of processors implementing it.
2903         * doc/invoke.texi (-msep-data): Document new m68k option.
2904         (-mno-sep-data): Likewise.
2905         (-mid-shared-library): Likewise.
2906         (-mno-id-shared-library): Likewise.
2907         (-mshared-library-id): Likewise.
2908
2909 2003-10-26  Andreas Jaeger  <aj@suse.de>
2910
2911         * unwind-dw2.c (_Unwind_GetGR): Avoid warning about unsigned
2912         comparison.
2913         (_Unwind_SetGR): Likewise.
2914
2915 2003-10-26  Ottavio Campana <ottavio@campana.vi.it>
2916
2917         PR target/12690
2918         * config/i386/mmintrin.h (_mm_set1_pi8): Fix comment.
2919
2920 2003-10-26  Gunther Nikl  <gni@gecko.de>
2921
2922         * config/m68k/m68k.c (m68k_output_function_prologue): Move front
2923         comment from here to...
2924         (m68k_save_reg): ...here. Fix comment formatting.
2925         (m68k_output_function_prologue): Fix comment formatting.
2926         (m68k_output_function_epilogue): Likewise.
2927         (const_method): Likewise.
2928
2929 2003-10-26  Kazu Hirata  <kazu@cs.umass.edu>
2930
2931         * toplev.c (default_get_pch_validity): Guard the use of
2932         target_options with #ifdef TARGET_OPTIONS.
2933         (default_pch_valid_p): Likewise.
2934
2935 2003-10-26  Andreas Jaeger  <aj@suse.de>
2936             Zack Weinberg  <zack@codesourcery.com>
2937             Andreas Tobler <toa@pop.agri.ch>
2938
2939         * dwarf2out.c (output_cfi): Use HOST_WIDE_INT_PRINT.
2940         (output_die): Likewise.
2941         (print_die): Likewise.
2942
2943 2003-10-26  Andreas Jaeger  <aj@suse.de>
2944
2945         * tree.h (dwarf2out_def_cfa, dwarf2out_args_size,
2946         dwarf2out_reg_save, new_loc_descr): Update prototypes for recent
2947         dwarf2out.c change.
2948
2949         * toplev.c (default_pch_valid_p): Fix warning.
2950
2951 2003-10-25  Roger Sayle  <roger@eyesopen.com>
2952
2953         * simplify-rtx.c (simplify_replace_rtx): Avoid allocating duplicate
2954         RTL nodes.  If an operator's operands are unchanged, return the
2955         original argument unchanged.
2956
2957 2003-10-26  Graham Stott  <graham.stott@btinternet.com>
2958
2959         Fix bootstrap failure.
2960         * expmed.c (store_bit_field): Don't compare bitsize against
2961         modes with zero bit-size.
2962
2963         (extract_bit_field): Likewise
2964
2965 2003-10-25  Jan Hubicka  <jh@suse.cz>
2966
2967         * dwarf2out.c (dw_cfi_oprnd_struct): Offset is HOST_WIDE_INT.
2968         (cfa_loc): Likewise.
2969         (reg_save, stack_adjust_offset, queue_reg_save): Replace long by
2970         HOST_WIDE_INT.
2971         (args_size, old_args_size): change type to HOST_WIDE_INT.
2972         (dwarf2out_def_cfa, dwarf2out_args_size,
2973         dwarf2out_reg_save, new_loc_descr): offset is HOST_WIDE_INT.
2974         (dw_val_struct): integers, unsigneds and offsets are HOST_WIDE_INT.
2975         (add_AT_int, add_AT_unsigned, att_AT_offset, AT_int, AT_unsigned,
2976         AT_offset): Use HOST_WIDE_INT.
2977         (based_loc_descr): offset is HOST_WIDE_INT.
2978         (add_data_member): Likewise.
2979         (add_const_value_attribute): Simplify.
2980
2981 2003-10-25  Richard Henderson  <rth@redhat.com>
2982
2983         * config/i386/i386.c (ix86_eax_live_at_start_p): New.
2984         (ix86_expand_prologue): Save and restore eax around stack probe
2985         if it's live.
2986
2987 2003-10-25  Jan Hubicka  <jh@suse.cz>
2988
2989         * cppcharset.c (one_utf8_to_utf32): Initialize 's' to silence warning.
2990
2991 2003-10-25  Eric Botcazou  <ebotcazou@libertysurf.fr>
2992
2993         PR target/12712
2994         * reg-stack.c (convert_regs_1): Create an arbitrary input stack
2995         if the block has no predecessors.
2996         (convert_regs_2): Document the problem with successors whose
2997         only predecessor is the block to be processed.
2998         (convert_regs): Don't create the arbitrary input stack here.
2999
3000 2003-10-24  Zack Weinberg  <zack@codesourcery.com>
3001
3002         * genmodes.c (struct mode_data): Add contained and next_cont
3003         fields.
3004         (complete_mode): Maintain linked list of modes that have a
3005         given component.
3006         (emit_mode_unit_size): Delete.
3007         (emit_mode_nunits): New.
3008         (emit_insn_modes_c): Update to match.
3009         (emit_mode_adjustments): Propagate size and alignment
3010         adjustments from component modes to their containers.
3011         * machmode.h (mode_unit_size): Delete.
3012         (mode_nunits): New.
3013         (GET_MODE_NUNITS): Just return the value in the table.
3014         (GET_MODE_UNIT_SIZE): Compute using GET_MODE_INNER and
3015         GET_MODE_SIZE.
3016         * expmed.c (store_bit_field, extract_bit_field): Can use a
3017         plain move instruction if bitsize >= GET_MODE_BITSIZE of
3018         destination/source mode, respectively.
3019         * varasm.c (assemble_real): Write out the full size of the
3020         constant, not just its bitsize.
3021         (output_constant): Honor TYPE_MODE of TREE_REAL_CSTs.
3022
3023         * config/ia64/ia64-modes.def: Define XFmode as well as TFmode.
3024         Use ADJUST_BYTESIZE and ADJUST_ALIGNMENT to set size and
3025         alignment of XF and TF modes in compliance with ia64 ABIs.
3026         Can now hardwire the format of both modes.
3027         * config/ia64/ia64.c: Change TFmode to XFmode wherever appropriate.
3028         (general_tfmode_operand, destination_tfmode_operand)
3029         (tfreg_or_fp01_operand, spill_tfmode_operand): Rename to
3030         general_xfmode_operand, destination_xfmode_operand,
3031         xfreg_or_fp01_operand, spill_xfmode_operand respectively.
3032         (ia64_init_builtins): Make TYPE_PRECISION of fpreg_type
3033         and float80_type be 96 so they get XFmode.  Use !TARGET_HPUX,
3034         not INTEL_EXTENDED_IEEE_FORMAT, to decide how to define
3035         __float128.
3036         * config/ia64/ia64.h: Default TARGET_HPUX to 0.
3037         Change TFmode to XFmode wherever appropriate.  Remove all
3038         references to INTEL_EXTENDED_IEEE_FORMAT.
3039         (LONG_DOUBLE_TYPE_SIZE): Varies with TARGET_HPUX.
3040         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Define (always 96).
3041         (PREDICATE_CODES): Update to match function renames.
3042         * config/ia64/ia64.md: Change TF to XF throughout; rename all
3043         patterns to match.  Remove all references to
3044         INTEL_EXTENDED_IEEE_FORMAT.  Update predicate calls to match
3045         function renames.
3046         * config/ia64/ia64-protos.c: Update all prototypes to match
3047         renamed functions.
3048         * config/ia64/hpux.h: Redefine TARGET_HPUX to 1.
3049         Remove all references to INTEL_EXTENDED_IEEE_FORMAT.
3050         * config/ia64/lib1funcs.asm: Add __divxf3 as new name for
3051         __divtf3; keep old name for backward compatibility.
3052         (L__compat): New section providing forwarding stubs for
3053         __fixtfti, __fixunstfti, __floattitf.
3054         * config/ia64/t-ia64: Add __compat to LIB1ASMFUNCS.
3055
3056 2003-10-24  Geoffrey Keating  <geoffk@apple.com>
3057
3058         PR 10757
3059         * c-pch.c: Include target.h.  Improve comments.
3060         (struct c_pch_validity): Add target_data_length.
3061         (pch_init): Add target's validity data.
3062         (c_common_valid_pch): Check target's validity data.
3063         * target-def.h (TARGET_GET_PCH_VALIDITY): New.
3064         (TARGET_PCH_VALID_P): New.
3065         (TARGET_INITIALIZER): Add new fields.
3066         * target.h: Include tm.h.
3067         (struct gcc_target): Add get_pch_validity, pch_valid_p.
3068         * toplev.h (default_get_pch_validity): New prototype.
3069         (default_pch_valid_p): New prototype.
3070         * toplev.c (default_get_pch_validity): New routine.
3071         (default_pch_valid_p): New routine.
3072         * Makefile.in (TARGET_H): Add TM_H.  Replace all users of
3073         target.h with $(TARGET_H).
3074         (c-pch.o): Add TARGET_H.
3075         * doc/tm.texi (PCH Target): New node.
3076         (TARGET_GET_PCH_VALIDITY): Document.
3077         (TARGET_PCH_VALID_P): Document.
3078
3079 2003-10-24  Kelley Cook  <kcook@gcc.gnu.org>
3080
3081         * Makefile.in: Define a vpath for %.texi.  Remove explicit $(docdir)
3082         and $(docdir)/include from any *.texi dependencies.
3083         ($(docobjdir)/%.dvi): Depend on stmp-docobjdir.
3084         ($(docobjdir)/%.1): Depend on .pod instead of .texi.
3085         ($(docobjdir)/%.7): Likewise.
3086         (%.pod): New implicit rule.
3087         (cpp.pod): New dependency only rule.
3088         (gcc.pod): New intermediate rule with dependencies and commands.
3089         (gfdl.pod): Likewise.
3090         (fsf-funding.pod): Likewise.
3091
3092 2003-10-24  Nathanael Nerode  <neroden@gcc.gnu.org>
3093
3094         * fixinc/mkfixinc.sh: Remove special cases for svr4 and ptx, and
3095         related code.
3096         * fixinc/fixinc.ptx: Remove.
3097         * fixinc/fixinc.svr4: Remove.
3098
3099 2003-10-24  Ulrich Weigand  <uweigand@de.ibm.com>
3100
3101         * config/s390/s390.c (load_multiple_operation): Allow both SImode
3102         and DImode if word_mode is DImode.
3103         (store_multiple_operation): Likewise.
3104         * config/s390/s390.md ("load_multiple", "store_multiple"): Likewise.
3105         ("*load_multiple_di"): Allow only if word_mode == DImode.
3106         ("movqi"): Use LLGC whenever TARGET_ZARCH.
3107         ("fix_truncdfsi2"): Fix incorrect temporary size.
3108         ("fix_truncsfsi2"): Likewise.
3109         ("*bras_r", "*brasl_r", "*basr_r"): Remove predicate and constraint
3110         string for function return value operand.
3111         ("*bras_tls", "*brasl_tls", "*basr_tls"): Likewise.
3112
3113 2003-10-24  Joseph S. Myers  <jsm@polyomino.org.uk>
3114
3115         * c-parse.in (array_declarator): Use expr_no_commas.
3116         Fixes PR c/11943.
3117
3118 2003-10-24  Richard Sandiford  <rsandifo@redhat.com>
3119
3120         * config/mips/linux.h: Wrap MD_FALLBACK_FRAME_STATE_FOR and
3121         associated includes in #ifndef inhibit_libc.
3122
3123 2003-10-24  Roger Sayle  <roger@eyesopen.com>
3124
3125         * doc/libgcc.texi: Document some more of the libgcc API.
3126
3127 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
3128
3129         * arm.c (arm_rtx_costs_1, case TARGET_THUMB): Adjust costs for
3130         comparing a constant with small negative numbers and add costing
3131         for constants in conjunction with AND.
3132         (note_invalid_constants): Tidy previous change.
3133         (thumb_cmp_operand): Tidy.
3134         (thumb_cmpneg_operand): New function.
3135         * arm.h (CONDITIONAL_REGISTER_USAGE): Don't use HI regs if optimizing
3136         for size.
3137         (FIRST_LO_REGNUM, FIRST_HI_REGNUM, LAST_HI_REGNUM): Define.
3138         (PREDICATE_CODES): Add thumb_cmpneg_operand.
3139         * arm.md (cbranchsi4): Convert to define_expand.  Handle comparison
3140         with a negative constant.
3141         (cbranchsi4_insn): Matcher for cbranchsi4.
3142         (cbranchsi4_scratch): Similar, but a scratch is available for
3143         handling negative constants.
3144         (movsi_cbranchsi4): New pattern.
3145         (tstsi3_cbranch): Renamed from andsi3_cbranch_scratch, remove scratch
3146         and use the TST instruction.
3147         (andsi3_cbranch, orrsi3_cbranch, xorsi3_cbranch, cbranchne_decr1)
3148         (addsi3_cbranch, subsi3_cbranch): Ensure that register preferencing
3149         cannot see high regs or memory alternatives.
3150         (bicsi3_cbranch_scratch, bicsi3_cbranch): New patterns.
3151
3152 2003-10-24  Richard Earnshaw  <rearnsha@arm.com>
3153
3154         * arm.c (note_invalid_constants): Try to extract the constant
3155         pool value using avoid_constant_pool_reference; only use
3156         get_pool_constant if that returns the original reference.
3157
3158 2003-10-24  Jan Hubicka  <jh@suse.cz>
3159
3160         PR c++/12624
3161         * varasm.c (notice_global_symbol): Disqualify global registers.
3162
3163 2003-10-23  Roger Sayle  <roger@eyesopen.com>
3164
3165         PR middle-end/11414
3166         * loop.c (load_mems): Use redirect_jump to forward jumps from
3167         the original loop end label to the new "loop sink" block's label.
3168
3169 2003-10-23  Roger Sayle  <roger@eyesopen.com>
3170
3171         PR middle-end/12705
3172         * optabs.c (expand_binop): When expanding complex operations
3173         inline, always calculate result into a new temporary register.
3174         Minor code clean-ups.
3175
3176 2003-10-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3177
3178         * objc/lang-specs.h: Handle -print-objc-runtime-info.
3179         * doc/invoke.texi (Objective-C Dialect Options): Document it.
3180
3181 2003-10-24  Danny Smith  <dannysmith@users.sourceforge.net>
3182
3183         * config/i386/cygwin.asm: Add copyright notice. Add comment
3184         on why this code is needed.
3185
3186 2003-10-23  Kazu Hirata  <kazu@cs.umass.edu>
3187
3188         * config/h8300/clzhi2.c: Fix warnings.
3189         * config/h8300/ctzhi2.c: Likewise.
3190         * config/h8300/fixunssfsi.c: Likewise.
3191         * config/h8300/parityhi2.c: Likewise.
3192         * config/h8300/popcounthi2.c: Likewise.
3193
3194 2003-10-23  James E Wilson  <wilson@specifixinc.com>
3195
3196         * gcc.c (option_map): Delete --target and --use-version.
3197
3198 2003-10-23  Fariborz Jahanian  <fjahanian@apple.com>
3199             David Edelsohn  <edelsohn@gnu.org>
3200
3201         * config/rs6000/rs6000.h (UNITS_PER_WORD): Use TARGET_32BIT, not
3202         TARGET_POWREPC64.
3203         (UNITS_PER_GPR_WORD): Define.
3204         (HARD_REGNO_NREGS): Use UNITS_PER_GPR_WORD.
3205         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
3206         (HARD_REGNO_MODE_OK): Use UNITS_PER_GPR_WORD.
3207         (CLASS_MAX_NREGS): Use UNITS_PER_GPR_WORD.
3208         * config/rs6000/rs6000.c (function_arg): Generate PARALLEL for
3209         DFmode and DImode in 32-bit ABI / 64-bit computation mode.
3210         (rs6000_emit_prologue): Select reg_mode and reg_size using
3211         TARGET_32BIT, not TARGET_POWERPC64.
3212         (rs6000_function_value): Generate PARALLEL for DImode in 32-bit
3213         ABI / 64-bit computation mode
3214
3215 2003-10-22  Andrew Haley  <aph@redhat.com>
3216
3217         * toplev.c (output_file_directive): Allow for null input_name.
3218
3219 2003-10-22  Waldek Hebisch <hebisch@math.uni.wroc.pl>
3220
3221         * config/i386/i386.c (classify_argument): Handle SET_TYPE.
3222
3223 2003-10-22  Chris Demetriou  <cgd@broadcom.com>
3224
3225         * configure.in: In --enable-generated-files-in-srcdir option
3226         handling, fix default case handling.
3227         * configure: Regenerate.
3228
3229 2003-10-22  Phil Edwards  <phil@codesourcery.com>
3230
3231         * config.gcc:  Update *-*-vxworks* generic hook and comments.
3232         (arm-wrs-vxworks, i[4567]86-wrs-vxworks, mips-wrs-vxworks,
3233         mips-wrs-windiss, sh-wrs-vxworks):  New stanzas.
3234         * genmultilib:  Allow the MULTILIB_OSDIRNAMES to be mapped directly.
3235         * config/svr4.h (SWITCH_TAKES_ARG):  Undefine it before redefining it.
3236         * config/windiss.h:  New file.
3237         * config/arm/t-vxworks:  New file.
3238         * config/arm/vxworks.h:  New file.
3239         * config/i386/t-vxworks:  New file.
3240         * config/i386/vxworks.h:  New file.
3241         * config/mips/t-vxworks:  New file.
3242         * config/mips/vxworks.h:  New file.
3243         * config/mips/windiss.h:  New file.
3244         * config/sh/t-vxworks:  New file.
3245         * config/sh/vxworks.h:  New file.
3246
3247 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3248
3249         * config/h8300/h8300.c (h8300_output_function_epilogue): Remove.
3250         (h8300_saveall_function_p): New.
3251         (h8300_insert_attributes): Insert the saveall attribute if
3252         #pragma saveall is specified.
3253         (h8300_attribute_table): Add saveall.
3254         (TARGET_ASM_FUNCTION_EPILOGUE): Remove.
3255         * doc/extend.texi: Mention the saveall attribute.
3256
3257 2003-10-22  Joseph S. Myers  <jsm@polyomino.org.uk>
3258
3259         * c-typeck.c (pedantic_lvalue_warning): Unconditionally warn of
3260         deprecation of casts as lvalues.
3261         * fixinc/inclhack.def (obstack_lvalue_cast): New fix.
3262         * fixinc/fixincl.x: Regenerate.
3263         * fixinc/tests/base/obstack.h: New test.
3264
3265 2003-10-22  Andreas Schwab  <schwab@suse.de>
3266
3267         PR target/12676
3268         * config/m68k/m68k.c (output_addsi3): Fix range check to work on
3269         LP64 platforms.
3270
3271 2003-10-22  Jan Hubicka  <jh@suse.cz>
3272
3273         * dwarf2out.c (dwarf2out_abstract_function): Use DW_AT to check
3274         presence of DW_AT_inline.
3275         (gen_subprogram_die): Likewise; do not abort instead of emitting
3276         DW_AT_not_inline.
3277
3278 2003-10-22  Jan Hubicka  <jh@suse.cz>
3279
3280         * cgraph.c (cgraph_function_possibly_inlined_p): Be conservative when
3281         global info is not ready.
3282
3283 2003-10-22  Kazu Hirata  <kazu@cs.umass.edu>
3284
3285         * doc/extend.texi: Mention H8S wherever H8/300H is mentioned.
3286
3287 2003-10-22  Ulrich Weigand  <uweigand@de.ibm.com>
3288
3289         * config/s390/s390.md ("movstr_short_64", "movstr_short_31"): Merge ...
3290         ("*movstr_short"): ... into this insn pattern.
3291         ("movstr_short"): New expander.
3292         ("*movstr_long_64"): Rename from "movstr_long_64", simplify.
3293         ("*movstr_long_31"): Rename from "movstr_long_31", simplify.
3294         ("movstr_long"): New expander.
3295         ("clrstr_short_64", "clrstr_short_31"): Merge ...
3296         ("*clrstr_short"): ... into this insn pattern.
3297         ("clrstr_short"): New expander.
3298         ("*clrstr_long_64"): Rename from "clrstr_long_64", simplify.
3299         ("*clrstr_long_31"): Rename from "clrstr_long_31", simplify.
3300         ("clrstr_long"): New expander.
3301         ("cmpmem_short_64", "cmpmem_short_31"): Merge ...
3302         ("*cmpmem_short"): ... into this insn pattern.
3303         ("cmpmem_short"): New expander.
3304         ("*cmpmem_long_64"): Rename from "cmpmem_long_64".
3305         ("*cmpmem_long_31"): Rename from "cmpmem_long_31".
3306         ("cmpmem_long"): New expander.
3307         * config/s390/s390.c (s390_expand_movstr): Use new expanders.
3308         (s390_expand_clrstr): Likewise.
3309         (s390_expand_cmpmem): Likewise.
3310
3311 2003-10-22  Mark Mitchell  <mark@codesourcery.com>
3312
3313         * c-pch.c (struct c_pch_validity): Add pch_init field.
3314         (pch_init): Set it.
3315         (c_common_valid_pch): Check it.
3316
3317 2003-10-22  David Taylor <dtaylor@emc.com>
3318
3319         PR debug/12500
3320         * dbxout.c (dbxout_typedefs): Use COMPLETE_OR_VOID_TYPE_P.
3321
3322 2003-10-22  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3323
3324         * config/alpha/alpha.c (function_value [ENABLE_CHECKING]): Don't call
3325         alpha_return_in_memory if no VALTYPE specified.
3326
3327 2003-10-22  Jan Hubicka  <jh@suse.cz>
3328
3329         PR debug/12389
3330         * Makefile.in (dwarf2out.o): Depend on cgraph.h.
3331         * cgraph.c (cgraph_function_possibly_inlined_p): New function.
3332         * cgraph.h (cgraph_function_possibly_inlined_p): Declare.
3333         (cgraph_global_info): Add flag inlined
3334         * dwarf2out.c (gen_subprogram_die, gen_decl_die): Use
3335         cgraph_function_possibly_inded_p
3336         * cgraphunit.c (mark_inline): Set inlined flag.
3337         * toplev.c (rest_of_decl_compilation): Call outlining_inline_function
3338         only for possibly inlined functions.
3339         * c-decl.c (duplicate_decls): Never output abstract DIE representing old
3340         body of function.
3341
3342 2003-10-22  Andrew Haley  <aph@redhat.com>
3343
3344         * varasm.c (output_constructor): Make constructor annotation
3345         conditional on ASM_COMMENT_START.
3346
3347 2003-10-21  Jason Merrill  <jason@redhat.com>
3348
3349         * tree.c (get_unwidened): Check TREE_UNSIGNED on the field's type.
3350         (get_narrower): Likewise.
3351
3352         * stor-layout.c (layout_decl): Do packed field alignment for
3353         bit-fields, too.
3354
3355 2003-10-21  Eric Christopher  <echristo@redhat.com>
3356
3357         * expr.c (convert_move): Use FLOAT_EXTEND for extensions.
3358
3359 2003-10-21  Geoffrey Keating  <geoffk@apple.com>
3360
3361         * c-pch.c: Add comments in various places.
3362         (struct c_pch_validity): Add the lengths of various strings.
3363         (host_machine): New static.
3364         (target_machine): New static.
3365         (get_ident): Bump version number.
3366         (pch_init): Write out version, host, target validity data.
3367         (c_common_valid_pch): Check version, host, target.
3368         * Makefile.in (c-pch.o): Add version.h; define HOST_MACHINE and
3369         TARGET_MACHINE.
3370
3371 2003-10-21  Jason Merrill  <jason@redhat.com>
3372
3373         * tree.h (IS_EXPR_CODE_CLASS): Use strchr.
3374         (EXPR_P): New macro.
3375
3376 2003-10-21  Zack Weinberg  <zack@codesourcery.com>
3377
3378         * config/ia64/ia64.md (cmpxchg_acq_si): Mark operand 3 as DImode.
3379         * config/ia64/ia64.c (ia64_expand_fetch_and_op,
3380         ia64_expand_op_and_fetch): Make sure the REG for ar.ccv is
3381         DImode.   Use convert_move to load ar.ccv.
3382         (ia64_expand_compare_and_swap): Likewise.
3383         If expand_expr doesn't put 'old' and 'new' in the proper
3384         modes, run them through convert_to_mode.
3385
3386 2003-10-21  Eric Christopher  <echristo@redhat.com>
3387
3388         * config/frv/frv.c (frv_adjust_field_align): Check DECL_ARTIFICIAL
3389         for too large bitfields.
3390
3391 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3392
3393         * Makefile.in ($(docobjdir)/%.info): Honor BUILD_INFO.
3394
3395 2003-10-21  Andrew Haley  <aph@redhat.com>
3396
3397         * varasm.c (output_constructor): Annotate constructor.
3398
3399 2003-10-21  Mark Mitchell  <mark@codesourcery.com>
3400
3401         * Makefile.in ($(DESTDIR)$(infodir)/%.info): Conditionalize chmod
3402         on existence of destination file.
3403
3404 2003-10-21  Jan Hubicka  <jh@suse.cz>
3405
3406         * haifa-sched.c (choose_ready): Initialize index.
3407
3408 2003-10-21  Jason Merrill  <jason@redhat.com>
3409
3410         * tree.c (build1): Fix off-by-one error.
3411
3412 2003-10-21  Robert Millan  <robertmh@gnu.org>
3413
3414         * config/i386/kfreebsdgnu.h: New. i386-*-kfreebsd-gnu definitions.
3415         * config/kfreebsdgnu.h: New. *-*-kfreebsd-gnu definitions.
3416         * config/t-kfreebsd-gnu: New. *-*-kfreebsd-gnu tmake_file.
3417         * config.gcc: Add *-*-kfreebsd*-gnu and i[34567]86-*-kfreebsd*-gnu.
3418
3419 2003-10-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
3420
3421         * web.c: Fix various comments.
3422
3423 2003-10-20  Nicolas Pitre <nico@cam.org>
3424
3425         * config/arm/arm.c (arm_override_options): Set arm_constant_limit
3426         to 2 instead of 1 when optimize_size is true.  Gather code based on
3427         optimize_size together.  Add comment about XScale load latency.
3428
3429 2003-10-21  Gunther Nikl  <gni@gecko.de>
3430
3431         * config/m68k/m68k.c (m68k_output_function_prologue): Remove
3432         obsolete comments.
3433
3434 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3435
3436         * Makefile.in: Get parsedir and docobjdir from configure.
3437         * configure.in: Recogonize --enable-generated-files-in-srcdir.
3438         Pass along parsedir and docobjdir.
3439         * configure: Regenerate.
3440         * doc/install.texi: Document --enable-generated-files-in-srcdir.
3441
3442 2003-10-20  Kelley Cook  <kcook@gcc.gnu.org>
3443
3444         * Makefile.in: Define $(docdir) before the Make-lang.in fragments are
3445         included.
3446
3447 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3448
3449         * c-common.c (expand_tree_builtin): Ensure creal and cimag
3450         functions do not return lvalues.
3451
3452 2003-10-20  Jason Merrill  <jason@redhat.com>
3453
3454         PR c/12553
3455         * tree.c (build1) <ADDR_EXPR>: Set TREE_SIDE_EFFECTS
3456         appropriately.
3457
3458         PR c/11446
3459         * stor-layout.c (layout_decl): Fix alignment handling.
3460
3461 2003-10-20  Joseph S. Myers  <jsm@polyomino.org.uk>
3462
3463         * doc/extend.texi: Deprecate casts as lvalues.
3464
3465 2003-10-20  Jan Hubicka  <jh@suse.cz>
3466
3467         * toplev.c (rest_of_compilation): Fix webizer pass ordering.
3468
3469         * cgraphunit.c (decide_is_function_needed):  Fix test dealing
3470         with functions implicitly made inline.
3471
3472         * cgraphunit.c (cgraph_decide_inlining_incrementally):  New function.
3473         (cgraph_finalize_function): Use it.
3474         (cgraph_mark_inline): Allow incrmental decisions
3475         * invoke.texi (max-inline-slope, min-inline-insns): Kill.
3476         * params.def (PARAM_MAX_INLINE_SLOPE, PARAM_MIN_INLINE_INSNS): Kill.
3477         * tree-inline.c (limits_allow_inlining): Kill.
3478         (expand_call_inline): Always use unit-at-a-time path.
3479
3480 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3481
3482         * fixinc/inclhack.def (hpux11_snprintf): New edit.
3483         * fixinc/fixincl.x: Regenerate.
3484         * fixinc/tests/base/stdio.h: Add test for hpux11_snprintf.
3485
3486 2003-10-20  Mark Mitchell  <mark@codesourcery.com>
3487
3488         * Makefile.in (install-info): Simplify.
3489         ($(DESTDIR)$(infodir)/%.info): New rule.
3490         * configure.in (target_list): Remove install-info.
3491         * doc/.cvsignore (gcc.info*): Remove.
3492         (gccint.info*): Likewise.
3493         (gccinstall.info*): Likewise.
3494         (cpp.info*): Likewise.
3495         (cppinternals.info*): Likewise.
3496         (*.info*): Add it.
3497         * doc/sourcebuild.texi: Update description of install-info.
3498         * objc/Make-lang.in (objc.install-info): Remove.
3499
3500 2003-10-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3501
3502         * config/mips/linux.h (TARGET_OS_CPP_BUILTINS): Define _ABIO32.
3503         Use it in _MIPS_SIM definition.
3504         * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Likewise.
3505
3506 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3507
3508         * config/i386/i386.c (print_reg): Abort if REGNO (x) is a
3509         virtual register, but only if file == asm_out_file.
3510         * config/i386/i386.h (HI_REGISTER_NAMES): Use "argp", not "",
3511         for ARG_POINTER_REGNUM.
3512
3513 2003-10-20  Zack Weinberg  <zack@codesourcery.com>
3514
3515         * c-common.c (registered_builtin_types): New static.
3516         (c_common_type_for_mode): Consult registered_builtin_types.
3517         (c_register_builtin_type): Add type to registered_builtin_types.
3518         * optabs.c (init_floating_libfuncs): Initialize libfuncs for
3519         all MODE_FLOAT modes, not just the ones corresponding to
3520         float_type_node, double_type_node, and long_double_type_node.
3521
3522 2003-10-20  Richard Henderson  <rth@redhat.com>
3523
3524         * config/alpha/alpha.h (PREDICATE_CODES): Add normal_memory_operand.
3525         * config/alpha/alpha-protos.h: Remove PREDICATE_CODES prototypes.
3526
3527 2003-10-20  Dorit Naishlos  <dorit@il.ibm.com>
3528
3529         * config/rs6000/rs6000.h: (rs6000_sched_insert_nops):
3530         support new flag -minsert-sched-nops.
3531         (DEFAULT_SCHED_FINISH_NOP_INSERTION_SCHEME): Define.
3532         * config/rs6000/rs6000.c: (rs6000_sched_insert_nops):
3533         support new flag -minsert-sched-nops.
3534         (is_cracked_insn, is_microcoded_insn): New functions.
3535         (rs6000_sched_finish): New function.
3536         (rs6000_issue_rate): Return 5 for power4.
3537         (get_next_active_insn, insn_terminates_group_p): New
3538         functions.
3539         (is_costly_group, force_new_group): New functions.
3540         (redefine_groups, pad_groups): New functions.
3541         (rs6000_variable_issue): Use new functions.
3542         * doc/invoke.texi (-minsert-sched-nops): Document new
3543         option.
3544
3545 2003-10-20  David S. Miller  <davem@redhat.com>
3546
3547         * config/sparc/sparc.md (type attribute): Add new insn types
3548         fpa, fpm_pack, fgm_mul, fgm_pdist, and fgm_cmp for VIS.
3549         (patterns emitting VIS insns): Use them.
3550         * config/sparc/ultra1_2.md: Add VIS scheduling rules.
3551         * config/sparc/ultra3.md: Likewise.
3552
3553 2003-10-20  Falk Hueffner  <falk@debian.org>
3554
3555         PR target/12654
3556         * config/alpha/alpha.c (alpha_emit_conditional_branch): Don't do
3557         comparison against constant by adjusting the argument except for
3558         EQ and NE.
3559
3560 2003-10-19  Mark Mitchell  <mark@codesourcery.com>
3561
3562         * config.gcc: Add support for arm926ejs, arm1026ejs, arm1136js,
3563         arm1136jfs, and armv6j.
3564         * config/arm/arm.c (FL_ARCH6J): New macro.
3565         (FL_VFPV2): Likewise.
3566         (all_cores): Add entries for arm926ejs, arm1026ejs, arm1136js,
3567         and arm1136jfs.
3568         (all_architectures): Add entry for armv6j.
3569         (arm_override_options): Add entries for arm926ejs, arm1026ejs,
3570         arm1136js, and arm1136jfs.
3571         * config/arm/arm.h (TARGET_CPU_arm926ej_s): New macro.
3572         (TARGET_CPU_arm1026ej_s): Likewise.
3573         (TARGET_CPU_arm1136j_s): Likewise.
3574         (TARGET_CPU_arm1136jf_s): Likewise.
3575         * doc/invoke.texi: Document new ARM cores and architecture
3576         variants.
3577
3578 2003-10-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3579
3580         * Makefile.in (toplev.o): Add value-prof.h dependency.
3581         (value-prof.o): Add REGS_H dependency.
3582         * common.opt (fprofile-values, fvpt): New.
3583         * flags.h (flag_value_profile_transformations): Declare.
3584         * opts.c (common_handle_option): Handle -fprofile_values and
3585         -fvpt.
3586         * profile.c (branch_prob): Don't remove death notes here.
3587         * timevar.def (TV_VPT): New.
3588         * value-prof.c: Include regs.h.
3589         (insn_divmod_values_to_profile, gen_divmod_fixed_value, gen_mod_pow2,
3590         gen_mod_subtract, divmod_fixed_value_transform,mod_pow2_value_transform,
3591         mod_subtract_transform, value_profile_transformations): New.
3592         (insn_values_to_profile): Call insn_divmod_values_to_profile.
3593         (find_values_to_profile): Add dumps.
3594         * value-prof.h (value_profile_transformations): Declare.
3595         * toplev.c: Include value-prof.h.
3596         (rest_of_handle_value_profile_transformations): New.
3597         (enum dump_file_index): Add DFI_vpt.
3598         (dump_file): Add vpt dump.
3599         (flag_value_profile_transformations): New.
3600         (lang_independent_options): Add flag_profile_values and
3601         flag_value_profile_transformations.
3602         (rest_of_compilation): Call
3603         rest_of_handle_value_profile_transformations.
3604         (process_options): Let -fvpt imply -fprofile-values.
3605         * doc/invoke.texi (-fvpt): Document.
3606
3607 2003-10-19  Jan Hubicka  <jh@suse.cz>
3608
3609         * i386.c (print_reg): Do not abort on certain registers.
3610
3611         PR optimization/12612
3612         * reg-stack.c (subst_stack_regs_pat):  Use st(1) for clobbers.
3613         * i386.md (fpatan, fyl2x, fscale patterns and expanders): Use
3614         match_scratch; avoid bogus paralles.
3615
3616         PR target/12674
3617         * i386.c (ix86_function_regparm): Disable implicit register passing
3618         conventions when profiling.
3619
3620 2003-10-19  Eric Botcazou  <ebotcazou@libertysurf.fr>
3621             Richard Henderson  <rth@redhat.com>
3622
3623         PR optimization/8178
3624         * config/i386/i386.md (*movsi_zero): Delete.
3625         (*ffs_no_cmove): Use ix86_expand_clear to zero the third operand.
3626
3627 2003-10-19  Richard Henderson  <rth@redhat.com>
3628
3629         * config/alpha/alpha.c (fix_operator): New.
3630         (divmod_operator): Tidy.
3631         (alpha_emit_xfloating_cvt): Handle UNSIGNED_FIX.
3632         * config/alpha/alpha.h (FIXUNS_TRUNC_LIKE_FIX_TRUNC): Remove.
3633         (PREDICATE_CODES): Update.
3634         * config/alpha/alpha.md (fix_truncdfsi_ieee): Use match_operator.
3635         (fix_truncdfsi_internal, fix_truncdfdi_ieee): Likewise.
3636         (fix_truncsfsi_ieee, fix_truncsfsi_internal): Likewise.
3637         (fix_truncsfdi_ieee): Likewise.
3638         (fix_truncdfdi2, fix_truncsfdi2): Turn into define_expand.
3639         (fixuns_truncdfdi2, fixuns_truncsfdi2, fixuns_trunctfdi2): New.
3640         * config/alpha/alpha-protos.h: Update.
3641
3642 2003-10-19  Richard Sandiford  <rsandifo@redhat.com>
3643
3644         * config/mips/mips.h (INITIALIZE_TRAMPOLINE): Simplify.
3645         * config/mips/mips.c (mips_load_got): Assume Pmode == ptr_mode.
3646         * config/mips/mips.md (extendsidi2, *extendsidi2): Merge. Don't accept
3647         constant operands.
3648
3649 2003-10-18  Kazu Hirata  <kazu@cs.umass.edu>
3650
3651         * doc/extend.texi: Fix typos.
3652         * doc/invoke.texi: Likewise.
3653
3654 2003-10-18  Nicolas Pitre <nico@cam.org>
3655
3656         * config/arm/arm.c (arm_override_options): Use arm_tune_xscale for
3657         XScale optimizations not arm_arch_xscale.
3658         * config/arm/arm.h (CONSTANT_ALIGNMENT_FACTOR, MOVE_RATIO): Likewise.
3659
3660 2003-10-18  Ulrich Weigand  <uweigand@de.ibm.com>
3661
3662         * config/s390/s390-protos.h (shift_count_operand): Add prototype.
3663         * config/s390/s390.c (shift_count_operand): New function.
3664         (s390_extra_constraint): Use it to implement 'Y' constraint.
3665         (print_shift_count_operand): New function.
3666         (print_operand): Use it to implement '%Y'.
3667         * config/s390/s390.h (EXTRA_ADDRESS_CONSTRAINT): Add 'Y' constraint.
3668         (PREDICATE_CODES): Add shift_count_operand.
3669         * config/s390/s390.md ("rotldi3"): Merge alternatives,
3670         using "shift_count_operand" predicate and "Y" constraint,
3671         and "%Y" to output the combined shift count.
3672         ("rotlsi3"): Likewise.
3673         ("ashldi3", "*ashldi3_31", "*ashldi3_64"): Likewise.
3674         ("ashrdi3", "*ashrdi3_31", "*ashrdi3_64", "*ashrdi3_cc_31",
3675         "*ashrdi3_cc_64", "*ashrdi3_cconly_31", "*ashrdi3_cconly_64"): Likewise.
3676         ("ashlsi3", "ashrsi3", "*ashrsi3_cc", "*ashrsi3_cconly"): Likewise.
3677         ("lshrdi3", "*lshrdi3_31", "*lshrdi3_64"): Likewise.
3678         ("lshrsi3"): Likewise.
3679
3680 2003-10-18  Gunther Nikl  <gni@gecko.de>
3681
3682         * config/m68k/m68k.c (m68k_output_function_epilogue): Add missing
3683         argument to asm_fprintf statement.
3684
3685 2003-10-18  Fariborz Jahanian  <fjahanian@apple.com>
3686
3687         * rs6000.md: Separate TARGET_POWERPC64 patterns for TARGET_64BIT or TARGET_32BIT.
3688         (ashrdisi3_noppc64) Generate more efficient code for 32-bit right-shift of
3689         a "long long" argument.
3690
3691 2003-10-18  Alexandre Oliva  <aoliva@redhat.com>
3692
3693         * final.c (final_scan_insn): Run FINAL_PRESCAN_INSNS on asm insns
3694         as well.
3695
3696 2003-10-18  Richard Sandiford  <rsandifo@redhat.com>
3697
3698         * rtl.h (rtl_size): Declare.
3699         (rtunion): Remove rtwint.
3700         (rtx_def): Replace 'fld' with a union of an rtunion or a HOST_WIDE_INT.
3701         (RTX_HDR_SIZE, RTX_SIZE): New macros.
3702         (RTL_CHECK1): Adjust for new rtx_def layout.
3703         (RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2): Likewise.
3704         (XWINT, XCWINT): Likewise.  Access the rtx structure directly.
3705         (X0WINT): Remove.
3706         (X0ANY): New macro.
3707         * rtl.def: Adjust comments for new rtx_def layout.
3708         * ggc.h (ggc_alloc_rtx): Take the rtx code as argument, not the
3709         number of slots.
3710         * rtl.c (rtx_size): New array.
3711         (rtx_alloc): Adjust call to ggc_alloc_rtx.  Use RTX_HDR_SIZE.
3712         (copy_rtx): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3713         (shallow_copy_rtx): Adjust call to ggc_alloc_rtx.  Use RTX_SIZE.
3714         * integrate.c (copy_rtx_and_substitute): Use X0ANY to copy '0' fields.
3715         * emit-rtl.c (copy_most_rtx): Likewise.
3716         (copy_rtx_if_shared): Use RTX_SIZE.
3717         (copy_insn_1): Use RTX_HDR_SIZE.  Adjust for new rtx_def layout.
3718         * gengenrtl.c (gendef): Adjust ggc_alloc_rtx call.  Use RTX_HDR_SIZE.
3719         * gengtype.c (write_rtx_next): Use RTX_HDR_SIZE.
3720         (adjust_field_rtx_def): Expect "rtx_def" to be a union rather than
3721         an array.  Adjust output for new rtx_def layout.
3722         * ggc-page.c (RTL_SIZE): Use RTX_HDR_SIZE.
3723         * reload1.c (eliminate_regs): Use RTX_SIZE.
3724         * rtlanal.c (loc_mentioned_in_p): Adjust for new rtx_def layout.
3725         * gdbinit.in (pi): Likewise.
3726
3727 2003-10-18  Jan Hubicka  <jh@suse.cz>
3728
3729         * integrate.c (copy_decl_for_inlining): Revert previous patch.
3730
3731 2003-10-18  Jan Hubicka  <jh@suse.cz>
3732
3733         * integrate.c (copy_decl_for_inlining): Fix copying of copies.
3734
3735 2003-10-18  Roger Sayle  <roger@eyesopen.com>
3736
3737         * libgcc.texi: Group multi-word types, such as "long double" and
3738         "unsigned int", using braces in @deftypefn and @deftypefnx nodes.
3739         Document __unord?f2 as returning a non-zero value, not just one.
3740
3741 2003-10-18  Hans-Peter Nilsson  <hp@bitrange.com>
3742
3743         * config/mmix/t-mmix (CRTSTUFF_T_CFLAGS): Define.
3744         ($(T)crti.o, $(T)crtn.o): Pass CRTSTUFF_T_CFLAGS here too.
3745
3746 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3747
3748         * config/i386/k6.md (k6_alux): Use the 'mode' attribute instead of
3749         match_operand.
3750
3751 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3752
3753         * config/sparc/sparc.c (function_arg_record_value_1): New fourth
3754         parameter packed_p.  Search for a DECL_PACKED field only if
3755         packed_p is false.  Pass packed_p recursively.
3756         (function_arg_record_value_2): Likewise.
3757         (function_arg_record_value): Update calls to
3758         function_arg_record_value_1 and function_arg_record_value_2.
3759
3760 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3761
3762         * cse.c (cse_insn) [src_folded]: Check that the tentative replacement
3763         was successfully forced to memory before using the result.
3764
3765 2003-10-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
3766
3767         PR optimization/8178
3768         * config/i386/i386.md (*movsi_zero): New insn to set
3769         a register to zero on TARGET_USE_MOV0 targets.
3770
3771 2003-10-18  Kelley Cook  <kcook@gcc.gnu.org>
3772
3773         * Makefile.in (Makefile): Depend on the all Make-lang.in fragments.
3774         (POSTSTAGE1_FLAGS_TO_PASS): Pass down MAKEINFO and MAKEINFOFLAGS.
3775
3776 2003-10-17  David Edelsohn  <edelsohn@gnu.org>
3777
3778         * doc/invoke.texi (gcse-las): Fix typo.
3779
3780 2003-10-17  Andrew Pinski  <pinskia@physics.uc.edu>
3781
3782         * doc/install.texi: Remove first part of the sentence for
3783         zsh not working.  Change gcc to GCC.
3784
3785         PR bootstrap/12546
3786         * doc/install.texi: Document that zsh does not work when
3787         configuring gcc.
3788
3789 2003-10-17  Nathanael Nerode  <neroden@gcc.gnu.org>
3790
3791         * config/ptx4.h: Switch to DWARF 2; update comments.
3792
3793 2003-10-17  Segher Boessenkool  <boessen@de.ibm.com>
3794             Hartmut Penner  <hpenner@de.ibm.com>
3795
3796         PR 10404, partial 11591, partial 11601
3797         * config/rs6000/altivec.md ("altivec_dst", "altivec_dstt",
3798         "altivec_dstst", "altivec_dststt", "altivec_lvsl", "altivec_lvsr",
3799         "altivec_lvebx", "altivec_lvehx", "altivec_lvewx", "altivec_lvxl",
3800         "altivec_lvx", "altivec_stvx", "altivec_stvxl", "altivec_stvebx",
3801         "altivec_stvehx", "altivec_stvewx"): Use a memory_operand.
3802         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): New function.
3803         (altivec_expand_stv_builtin): Adjust for the memory_operand.
3804         (altivec_expand_builtin): Call altivec_expand_lv_builtin.
3805         (altivec_init_builtins): Use `long int' for memory offsets.
3806
3807 2003-10-17  Jan Hubicka  <jh@suse.cz>
3808
3809         * opts.c  (common_handle_option): Handle OPT_fweb
3810         * invoke.texi (-fweb): Add missing parts of documentation.
3811
3812 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3813
3814         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Undef
3815         before redefinition.
3816
3817 2003-10-17  Mostafa Hagog  <mustafa@il.ibm.com>
3818
3819         * common.opt: Add description of the new -fgcse-las flag.
3820         * flags.h (flag_gcse_las): Declaration of global flag_gcse_las.
3821         * gcse.c (hash_scan_set): Handle the case of store expression and
3822         insert the memory expression to the hash table, this way we make it
3823         possible to discover redundant loads after stores and remove them.
3824         (pre_insert_copy_insn): moved the call to update_ld_motion_stores,
3825         to pre_insert_copies, it is not the correct place to call it after
3826         adding stores to be in the available expression hash table.
3827         (pre_insert_copies): Added the call to update_ld_motion_stores when
3828         one or more copies were inserted.
3829         * opts.c (common_handle_option): Handle the -fgcse-las flag.
3830         * toplev.c (flag_gcse_las): Initialization of flag_gcse_las.
3831
3832         * doc/invoke.tex: Document new -fgcse-las flag.
3833
3834 2003-10-18  Alan Modra  <amodra@bigpond.net.au>
3835
3836         * config/rs6000/crtsavres.asm: Correct alignment of powerpc64 code
3837         for posterity, then remove it.
3838
3839 2003-10-17  Richard Earnshaw <rearnsha@arm.com>
3840             Nathan Sidwell  <nathan@codesourcery.com>
3841
3842         * config/arm/arm.c (use_return_insn): Not a single instruction, if
3843         there's a frame pointer.
3844         (arm_output_epilogue): Protect stack pointer from being corrupted
3845         on interrupt.
3846
3847 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3848
3849         * ifcvt.c (noce_try_addcc): Handle ifs with 'else' case.
3850
3851 2003-10-17  Ulrich Weigand  <uweigand@de.ibm.com>
3852
3853         * combine.c (simplify_set): Do not clear out undobuf.other_insn
3854         already set elsewhere.
3855
3856 2003-10-17  Kelley Cook  <kcook@gcc.gnu.org>
3857
3858         * config/i386/i386.c (ix86_expand_prologue):  Use
3859         gen_allocate_stack_worker.
3860
3861 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3862
3863         * config.gcc (mips-sgi-irix6*o32): Only enable use_collect2
3864         without gas.
3865         (mips-sgi-irix6*): Likewise.
3866
3867         * config/mips/iris6gas.h: New file.
3868         * gcc/config.gcc (mips-sgi-irix6*): Use it.
3869
3870         * config/mips/mips.h (TARGET_IRIX): Provide default.
3871         (TARGET_IRIX5): Likewise.
3872         (TARGET_SGI_O32_AS): Likewise.
3873         * config/mips/iris5.h (TARGET_IRIX): Redefine as 1.
3874         (TARGET_IRIX5): Likewise.
3875         * config/mips/iris6.h (TARGET_IRIX6): Remove.
3876         (TARGET_IRIX5): Redefine as 0.
3877
3878         * config/mips/mips.c (mips_output_external): Test for IRIX 6 O32
3879         linker workaround with TARGET_IRIX and mips_abi instead of
3880         ASM_OUTPUT_UNDEF_FUNCTION.
3881         (mips_file_end): Inline old ASM_OUTPUT_UNDEF_FUNCTION definition,
3882         testing TARGET_IRIX and mips_abi explicitly.
3883         * config/mips/iris5.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove.
3884         * config/mips/iris6.h (ASM_OUTPUT_UNDEF_FUNCTION): Remove undef.
3885
3886         * config/mips/mips.c (irix_output_external_libcall): Renamed from
3887         mips_output_external_libcall.
3888         Use new TARGET_IRIX in guard.
3889         * config/mips/mips-protos.h (irix_output_external_libcall): Match
3890         this.
3891         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Likewise.
3892
3893         * config/mips/iris5gas.h (HAVE_GAS_SHF_MERGE): Update comment.
3894         Define as 0.
3895
3896         * config/mips/iris6.h (FUNCTION_NAME_ALREADY_DECLARED): Define
3897         depending on mips_abi.
3898         * config/mips/linux.h (FUNCTION_NAME_ALREADY_DECLARED): Define as 1.
3899         * config/mips/mips.c (mips_output_function_prologue): Test
3900         FUNCTION_NAME_ALREADY_DECLARED at runtime.
3901         (mips_output_function_epilogue): Likewise.
3902         (build_mips16_function_stub): Likewise.
3903         (build_mips16_call_stub): Likewise.
3904         * config/mips/mips.h (FUNCTION_NAME_ALREADY_DECLARED): Provide
3905         default.
3906
3907         * config/mips/iris6.h (DWARF2_UNWIND_INFO): Don't define for native
3908         IRIX 6 O32 assembler.
3909         (SUBTARGET_CC1_SPEC): Enforce mips2 ISA with O32 ABI.
3910         (TARGET_OS_CPP_BUILTINS): Define _ABIO32, use it to define
3911         _MIPS_SIM for O32 ABI.
3912         (DWARF2_FRAME_INFO): Don't define for native IRIX 6 O32 assembler.
3913         (ASM_DECLARE_FUNCTION_NAME): Integrate mips.h version.
3914         (ASM_DECLARE_FUNCTION_SIZE): Move undef before redefinition.
3915         Integrate O32 version.
3916         (SUBTARGET_ASM_SPEC): Handle -mabi=32.
3917         (SUBTARGET_ASM_DEBUGGING_SPEC): Add mdebug_asm_spec for gas with
3918         O32 ABI.
3919         (BSS_SECTION_ASM_OP_32): Define.
3920         (BSS_SECTION_ASM_OP_64): Likewise.
3921         (BSS_SECTION_ASM_OP): Define differently for O32 and N32/N64 ABIs
3922         using them.
3923         (TARGET_ASM_NAMED_SECTION): Reflect renaming.
3924         Move up to allow override for O32 ABI without GNU as.
3925         (EH_FRAME_SECTION_NAME): Define explicitly.
3926         (MUST_USE_SJLJ_EXCEPTIONS): Define.
3927         [_MIPS_SIM == _ABIO32 && !GAS] (CTORS_SECTION_ASM_OP,
3928         DTORS_SECTION_ASM_OP): Dummy definitions.
3929         (TARGET_ASM_NAMED_SECTION): Undef statically.
3930         (EH_FRAME_SECTION_NAME): Likewise.
3931         (ASM_OUTPUT_FILENAME): Integrate mips.h version.
3932         (LINK_SPEC): Only use default options -call_shared -no_unresolved
3933         without -r.
3934         Don't pass -init, -fini with -mabi=32.
3935         (COLLECT_PARSE_FLAG): Define.
3936
3937         * config/mips/mips.c (iris6_asm_named_section_1): Changed guard to
3938         TARGET_IRIX.
3939         Renamed to use irix_ prefix.
3940         (iris6_asm_named_section): Likewise.
3941         (iris_section_align_entry_eq): Likewise.
3942         (iris_section_align_entry_hash): Likewise.
3943         (iris6_file_start): Likewise.
3944         (iris6_section_align_1): Likewise.
3945         (iris6_file_end): Likewise.
3946         (iris6_section_type_flags): Likewise.
3947         (iris_section_align_htab): Likewise.
3948         (iris_orig_asm_out_file): Likewise.
3949         [TARGET_IRIX] (TARGET_ASM_FILE_START): Reflect rename.
3950         (TARGET_ASM_FILE_END): Likewise.
3951         (TARGET_SECTION_TYPE_FLAGS): Likewise.
3952
3953         * config/mips/mips.c [TARGET_IRIX5 && !TARGET_IRIX6]
3954         (TARGET_ASM_UNALIGNED_HI_OP): Use runtime initialization in
3955         override_options instead.
3956         (TARGET_ASM_UNALIGNED_SI_OP): Likewise.
3957         (TARGET_ASM_UNALIGNED_DI_OP): Likewise.
3958         * config/mips/mips.c (override_options) [USE_COLLECT2]: Restore
3959         flag_gnu_linker to defaults without USE_COLLECT2 for non-IRIX O32
3960         assemblers.
3961         Likewise for constructor/destructor handling.
3962         (override_options): Handle IRIX O32 assembler quirks.
3963         [TARGET_IRIX] (irix_asm_named_section): Handle O32 ABI with and
3964         without gas.
3965         (mips_file_start): Use new TARGET_IRIX.
3966         (mips_declare_object_name): No special processing for IRIX O32
3967         assembler.
3968         (mips_finish_declare_object): Likewise.
3969         (irix_asm_output_align): Renamed from iris6_asm_output_align.
3970         Don't record alignment for O32 ABI.
3971         (irix_file_start): Renamed from iris6_file_start.
3972         Return early for O32 ABI.
3973         (irix_file_end): Renamed from iris6_file_end.
3974         Don't emit .section directives for O32 ABI.
3975         * config/mips/iris6.h (ASM_OUTPUT_ALIGN): Reflect renaming.
3976         * config/mips/mips-protos.h (irix_asm_output_align): Likewise.
3977
3978         * config/mips/t-iris6 (MULTILIB_OPTIONS): Add mabi=32.
3979         (MULTILIB_OSDIRNAMES): Likewise.
3980
3981 2003-10-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3982
3983         * collect2.c (COLLECT_PARSE_FLAG): Provide default.
3984         (main): Use it.
3985         * doc/tm.texi (COLLECT_PARSE_FLAG): Document it.
3986
3987 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
3988
3989         * arm-modes.def (CC_Nmode): New condition code mode.
3990         * arm.c (thumb_condition_code): Delete.
3991         (arm_select_cc_mode): Handle single-bit test for Thumb.
3992         (arm_print_operand, cases 'd' and 'D'): Don't special case the
3993         condition code logic for Thumb.
3994         (get_arm_condition_code): Handle CC_Nmode.
3995         (thumb_cbrch_target_operand): New function.
3996         * arm.h (PREDICATE_CODES): Add thumb_cbrch_target_operand.
3997         * arm-protos.h (thumb_cbrch_target_operand): Add prototype.
3998         * arm.md: Add Thumb split patterns for zero_extract and
3999         sign_extract.
4000         (tbit_cbranch, andsi3_cbranch_scratch, andsi3_cbranch)
4001         (orrsi3_cbranch_scratch, orrsi3_cbranch, xorsi3_cbranch_scratch)
4002         (xorsi3_cbranch, addsi3_cbranch, addsi3_cbranch_scratch)
4003         (subsi3_cbranch, subsi3_cbranch_scratch): New Thumb patterns.
4004         (cbranchne_decr1): Re-work to use CC_Nmode.
4005
4006         * arm.c (thumb_expand_epilogue): Add clobbers of registers restored
4007         by the return instruction.  Add a use of the link register if it
4008         wasn't stored.
4009
4010 2003-10-17  Richard Earnshaw  <rearnsha@arm.com>
4011
4012         * flow.c (init_propagate_block_info): Don't abort if a conditional
4013         jump is not a comparison of a register.  Instead, just don't record
4014         conditional life information.
4015
4016 2003-10-16  Jan Hubicka  <jh@suse.cz>
4017
4018         PR optimization/12630
4019         * pa.md (movstrsi, movstrsi_internal): Use match_scratch in clobbers
4020         for operands 7 and 8.
4021
4022 2003-10-16  Kelley Cook  <kcook@gcc.gnu.org>
4023
4024         * objc/Make-lang.in (objc-parse.o): Honor $(parsedir) for objc-parse.c.
4025
4026 2003-10-16  Danny Smith  <dannysmith@users.sourceforge.net>
4027
4028         * config/i386/cygming.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
4029
4030         * config/i386/winnt.c (gen_stdcall_suffix): Make static
4031         (gen_fastcall_suffix): Likewise.
4032         (i386_pe_dllexport_p): Likewise.
4033         (i386_pe_dllimport_p): Likewise.
4034         (i386_pe_mark_dllexport): Likewise.
4035         (i386_pe_mark_dllimport): Likewise.
4036         (i386_pe_asm_named_section): Fix formatting.
4037
4038 2003-10-16  Zack Weinberg  <zack@codesourcery.com>
4039
4040         * configure.in: Add snprintf to gcc_AC_CHECK_DECLS list.
4041         * system.h: Declare snprintf if necessary.
4042         * configure, config.in: Regenerate.
4043
4044 2003-10-15  David Edelsohn  <edelsohn@gnu.org>
4045
4046         * config/rs6000/rs6000.c (rs6000_va_arg): Only align vector
4047         arguments if TARGET_ALTIVEC_ABI.
4048
4049 2003-10-15  Roger Sayle  <roger@eyesopen.com>
4050
4051         * builtins.c (fold_builtin_memcpy, fold_builtin_mempcpy,
4052         fold_builtin_memmove, fold_builtin_strcpy, fold_builtin_strncpy,
4053         fold_builtin_memcmp, fold_builtin_strcmp, fold_builtin_strncmp):
4054         New functions.
4055         (expand_builtin_memcpy): Use integer_zerop instead of testing
4056         host_integerp and tree_low_cst directly.  Move misapplied hunk
4057         for optimization wher SRC and DEST point to the same location.
4058         (expand_builtin_mempcpy): From here.
4059         (expand_builtin_memmove): Use integer_zerop instead of testing
4060         host_integerp and tree_low_cst_directly.
4061         (expand_builtin_memset): Likewise.
4062         (expand_builtin_memcmp): Likewise (and for integer_onep).
4063         (expand_builtin_strncmp): Likewise.
4064         (fold_builtin): Call the appropriate fold_builtin_foo functions
4065         to optimize memcpy, mempcpy, memmove, strcpy, strncpy, memcmp,
4066         strcmp and strncmp.
4067
4068 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
4069
4070         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4071         prototype.  Clean up some whitespace.
4072         * config/darwin.c: Use gen_rtx_FOO (...) rather than
4073         gen_rtx (FOO, ...).
4074         (machopic_non_lazy_ptr_name): Make static.
4075         (name_needs_quotes): Allow '.' and '$' unquoted.
4076         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
4077         case.
4078
4079 2003-10-15  Gábor Lóki  <alga@rgai.hu>
4080
4081         * fold-const.c (tree_swap_operands_p): Disable some features
4082         when optimizing for size.
4083
4084 2003-10-15  David Daney  <ddaney@avtrex.com>
4085
4086         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
4087         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
4088         from leaf functions.
4089         (DWARF_FRAME_RETURN_COLUMN): Ditto.
4090         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
4091         by MD_FALLBACK_FRAME_STATE_FOR.
4092         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
4093
4094 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
4095
4096         * genmodes.c: Include hashtab.h.
4097         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
4098         (adj_bytesize, adj_alignment, adj_format, new_adjust)
4099         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
4100         (print_maybe_const_decl, emit_mode_adjustments): New.
4101         (known_modes): Rename to modes.
4102         (find_mode): Kill class argument; look up in hash table.
4103         (new_mode): Insert into hash table also.
4104         (new_adjust): New.
4105         (reset_float_format, make_partial_integer_mode)
4106         (make_vector_mode): Tweak error reporting.
4107         (reset_float_format): Correct type of fourth argument.
4108         (emit_insn_modes_h): Add #defines to help make mode_size,
4109         mode_base_align, and real_format_for_mode conditionally const.
4110         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
4111         (emit_real_format_for_mode): Likewise, but temporarily disabled.
4112         (emit_insn_modes_c): Call emit_mode_adjustments.
4113         (main): Initialize modes_by_name.
4114         * Makefile.in: Update dependencies.
4115         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
4116         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
4117         declarations of mode_size and mode_base_align.  Declare
4118         init_adjust_machine_modes.
4119         * toplev.c (backend_init): Call init_adjust_machine_modes.
4120
4121 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
4122
4123         * genmodes.c (calc_wider_mode): Allocate enough room for all the
4124         entries we'll possibly assign in the sort buffer.
4125
4126 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
4127
4128         * config.gcc (s390x-ibm-tpf*): New target.
4129         * doc/install.texi: Document it.
4130         * config/s390/t-tpf: New file.
4131         * config/s390/tpf.h: New file.
4132
4133 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
4134
4135         PR target/12598
4136         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
4137         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
4138         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
4139         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
4140         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
4141         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
4142         replace_equiv_address, not gen_rtx_MEM.
4143         * config/cris/cris.c (cris_mem_op): New match_operator function.
4144         (cris_notice_update_cc): Use replace_equiv_address, not
4145         gen_rtx_MEM.
4146         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
4147
4148 2003-10-15  Bernardo Innocenti <bernie@develer.com>
4149
4150         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
4151         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
4152         definitions after the other flags.
4153
4154 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
4155
4156         * c-parse.in (methoddef, methodproto): Call objc_add_method()
4157         instead of add_method().
4158         * objc/objc-act.c (objc_check_decl): Do not check for
4159         constant_string_type.
4160         (add_method): Rename to objc_add_method().
4161         (really_start_method): Call objc_add_method() instead of
4162         add_method().
4163         * objc/objc-act.h (add_method): Rename to objc_add_method().
4164
4165 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
4166
4167         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
4168         (s390_slb_comparison): Likewise.
4169         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
4170         New functions.
4171         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
4172         and s390_slb_comparison.
4173         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
4174         zSeries machines.
4175         ("*adddi3_31z", "*subdi3_31z"): New insns.
4176         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
4177         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
4178         New insns.
4179
4180 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4181
4182         * configure.in: Clean up some feedback echoes.
4183         * configure: Regenerate.
4184
4185         * aclocal.m4: Properly quote names of macros being defined.
4186
4187         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
4188
4189 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
4190
4191         * config/ia64/ia64.c (ia64_expand_call): Force function address
4192         to DImode.
4193         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
4194
4195 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
4196
4197         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
4198         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
4199         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
4200         "*divsf3_ibm"): Likewise.
4201
4202 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
4203
4204         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
4205         target_alias with target_noncanonical.
4206
4207 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
4208
4209         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
4210         and add case for machines where outgoing register parameters
4211         get stack space.
4212
4213         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
4214         register when generating indirect address.
4215
4216 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
4217
4218         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
4219         * arm.md (cbranchne_decr1): Fix bootstrap warning.
4220
4221 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4222
4223         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
4224         * fixinc/fixincl.x: Regenerate.
4225         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
4226         testcase.
4227         Fixes PR bootstrap/9330.
4228
4229 2003-10-13  Eric Christopher  <echristo@redhat.com>
4230
4231         * config/frv/frv.c (frv_adjust_field_align): Redo check for
4232         too wide bitfields.
4233         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
4234         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
4235         (SBSS_SECTION_ASM_OP): Remove.
4236         (EXTRA_SECTIONS): Remove in_sbss.
4237         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
4238         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
4239         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
4240         named_section.
4241
4242 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4243
4244         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
4245         uses of ${target_alias} for directory names (and other places which
4246         won't like the empty string) with ${target_noncanonical}.  Introduce
4247         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
4248         available.
4249         * configure: Regenerate.
4250
4251 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
4252
4253         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
4254         * config/arm/arm.md: For splits which rely on conditional moves,
4255         remove ! TARGET_IWMMXT condition.
4256
4257 2003-10-13  David S. Miller  <davem@redhat.com>
4258
4259         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
4260         (find_cond_trap): Always increment if we emit a conditional
4261         trap insn.
4262
4263 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4264
4265         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
4266         with min-insn-modes.o.
4267         (STAGESTUFF): Add min-insn-modes.c.
4268         (genobjs): Add genmodes.o.
4269         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
4270         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
4271         (min-insn-modes.c, min-insn-modes.o): New rules.
4272         (s-modes): Also generate min-insn-modes.c.
4273         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
4274         * genmodes.c (struct mode_data): Add format field.
4275         (blank_mode, validate_mode, complete_mode): Update to match.
4276         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
4277         (_SCALAR_MODE): Kill.
4278         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
4279         (emit_insn_modes_c_header): Adjust.
4280         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
4281         (emit_min_insn_modes_c): New functions.
4282         (emit_insn_modes_c): Call emit_real_format_for_mode.
4283         (main): Add -m option to generate min-insn-modes.c.
4284         * machmode.h: Update documentation.  Add format argument to
4285         all uses of FLOAT_MODE.
4286         * real.c: Don't define real_format_for_mode here.
4287
4288         * dwarfout.c: Move default definition of PRINT_REG...
4289         * defaults.h: ...here.
4290         * print-rtl.c: Include tm_p.h.
4291         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
4292         Kill.
4293         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
4294         this entire block with #ifndef GENERATOR_FILE.
4295         * regclass.c: Unconditionally define reg_names.
4296         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
4297         Don't define DEBUG_REGISTER_NAMES.
4298         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
4299         redefinition of REGISTER_NAMES.
4300         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
4301
4302         * combine.c: Change all preprocessor conditionals on
4303         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
4304         for clarity.
4305         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
4306         * configure.in: Don't define EXTRA_CC_MODES.
4307         * configure, config.in: Regenerate.
4308         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
4309
4310         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
4311         May assume that GET_MODE_CLASS is accurate for extra CC modes
4312         at all times.
4313
4314         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
4315         number of arguments to aggregate_value_p.
4316
4317         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
4318         * machmode.def: Explain ARCH-modes.def.  Document
4319         RESET_FLOAT_FORMAT.  Improve commentary on various mode
4320         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
4321         XF, or TF modes here.  Remove backward-compatibility
4322         definition of CC.
4323
4324         * config/alpha/alpha-modes.def: New file; define TF mode.
4325         * config/arc/arm-modes.def: Define XF mode.
4326         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
4327         float format for SF and DF modes.
4328         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
4329         * config/i386/i386-modes.def: Define XF and TF modes.
4330         * config/i960/i960-modes.def: Define TF mode.
4331         * config/ia64/ia64-modes.def: Define TF and OI modes.
4332         * config/m68k/m68k-modes.def: New file; define XF mode.
4333         * config/mips/mips-modes.def: New file; define TF mode, reset
4334         formats for SF and DF modes.
4335         * config/pa/pa-modes.def: Define TF mode.
4336         * config/rs6000/rs6000.c: Define TF and PSI modes.
4337         * config/s390/s390-modes.def: Define OI mode.
4338         * config/sh/sh-modes.def: New file; define PSI mode.
4339         * config/sparc/sparc-modes.def: Define TF mode.
4340         * config/vax/vax-modes.def: New file; reset formats for SF and
4341         DF modes.
4342
4343         * config/c4x/c4x.c (c4x_override_options): No need to mess
4344         with real_format_for_mode or set REAL_MODE_FORMATs.
4345         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
4346         variable.
4347         * config/i386/i386.c (override_options): No need to set
4348         REAL_MODE_FORMATs here.
4349         * config/i960/i960.c (i960_initialize): Likewise.
4350         * config/m68k/m68k.c (m68k_override_options): Likewise.
4351         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
4352         for TFmode only if not the default.
4353         * config/mips/mips.c (override_options): Likewise.
4354         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
4355         DFmode only if not the default.
4356
4357         * config/i370/i370.h (RET_REG): Don't consider TFmode.
4358         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
4359         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
4360         of modes that don't appear anywhere in the machine description.
4361
4362         * config/arc/arc-modes.def, config/arm/arm-modes.def
4363         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
4364         * config/i386/i386-modes.def, config/i960/i960-modes.def
4365         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
4366         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
4367         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
4368         * config/sparc/sparc-modes.def: Convert to new style for
4369         declaring extra CC modes.
4370
4371 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
4372
4373         * cpplex.c (_cpp_clean_line): In the common case of a line
4374         with no trigraphs and no \-newline, avoid writing to memory.
4375         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
4376         of the buffer member.  Make c an uchar to avoid unnecessary
4377         sign extensions.
4378
4379 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
4380
4381         * configure.in: Remove unnecessary test.
4382         * configure: Regenerate.
4383
4384         * configure.in: Fix grammatical error.  Move UWIN host error to...
4385         * config.host: Here.
4386         * configure: Regenerate.
4387
4388 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
4389
4390         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
4391         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
4392         of flag_unsafe_math_optimizations.
4393         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
4394         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
4395         fused-madd and no-fused-madd.
4396         * doc/invoke.texi: Documented the new options fused-madd and
4397         no-fused-madd for S/390.
4398
4399 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
4400
4401         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
4402         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
4403         assign DEFAULT_ABI.
4404         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
4405         * config/rs6000/rs6000.c: Formatting.
4406         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
4407         when rs6000_alignment_string given.
4408
4409 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
4410
4411         PR target/12538
4412         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
4413         (sparc_flat_must_save_register_p): New function to decide whether
4414         a register must be saved/restored in the function prologue/epilogue.
4415         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
4416
4417 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4418
4419         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
4420         ISO C90 function declarations and definitions.
4421         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
4422
4423 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
4424
4425         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
4426         config files which do the same thing.
4427         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
4428         config/freebsd6.h: Remove now unnecessary files.
4429
4430 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
4431
4432         * c-common.c (c_common_truthvalue_conversion): Warn if the
4433         address of a non-weak function is used as a truth value.
4434
4435 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
4436
4437         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
4438         a literal.
4439         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
4440         instead of a literal.
4441
4442 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
4443
4444         * doc/extend.texi (Function Attributes): Mention the exceptional
4445         path for noreturn-marked functions.
4446
4447 2003-10-12  Jan Hubicka  <jh@suse.cz>
4448
4449         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
4450         warning.
4451
4452 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
4453
4454         * config/i386/i386.c (x86_this_parameter): Fix typo.
4455
4456 203-10-11  Jan Hubicka  <jh@suse.cz>
4457
4458         * Makefile.in (web.o): New.
4459         * web.c: New file.
4460         * rtl.h (web_main): Declare.
4461         * timervar.def (TV_WEB): New.
4462         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
4463         (rest_of_hanle_web): New.
4464         (flag_web): New static variable.
4465         (lang_independent_options): Add "web".
4466         (rest_of_compilation): Call rest_of_handle_web.
4467         * invoke.texi (-fweb): Document.
4468         * common.opt (fweb): New.
4469         * flags.h (flag_web): New.
4470         * opts.c (decode_options): Set flag_web at -O3.
4471
4472         * passes.texi (web construction):  Document.
4473         * invoke.texi (-O3): Document that -fweb is enabled.
4474
4475         * regrename.c (regrename_optimize): Deal better with situation when
4476         replacement failed.
4477
4478         * sched-ebb.c: Include params.h and profile.h
4479         (schedule_ebbs):  Use tracer parameters to discover superblocks
4480         * Makefile.in (sched-ebb.o):  Add dependencies.
4481
4482 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4483
4484         * fold-const.c (negate_mathfn_p): New function to determine whether
4485         a built-in mathematical function is sign preserving, f(-x) == -f(x).
4486         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
4487         (tree_swap_operands_p): Change API to take an additional argument
4488         indicating that the swapped operands evaluate in reverse order.
4489         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
4490         operand side-effects or we don't care about flag_evaluation_order.
4491         (reorder_operands_p): New function to check whether its safe to
4492         evaluate the given operands in reverse order.
4493         (negate_expr_p):  We can always negate integer constants unless
4494         we honor -ftrapv and the signed type would overflow.  Only allow
4495         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
4496         negation of COMPLEX_CST if both real and imaginary parts can be
4497         negated.  Allow negation through floating point extensions and
4498         sign-preserving built-in functions.
4499         (negate_expr):  Move the code to negate integers from "fold" to
4500         here.  Always negate integer constants unless we honor -ftrapv
4501         and the signed type would overflow.  Always negate real constants
4502         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
4503         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
4504         Optimize negation through floating point extensions and
4505         sign-preserving built-in functions (as defined by negate_mathfn_p).
4506         (fold): Adjust calls to tree_swap_operands_p.
4507         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
4508         to negate_expr_p/negate_expr.
4509         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
4510         allowed to convert (-A) - B into (-B) - A.
4511
4512 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4513
4514         * builtins.c (expand_builtin_strcmp): Defend against the possibility
4515         that gen_cmpstrsi may fail: Stabilize the argument list against
4516         re-evaluation and expand the library call directly using this saved
4517         argument list if a cmpstrsi sequence can't be generated.
4518         (expand_builtin_strncmp): Likewise.
4519
4520         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
4521
4522 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4523
4524         PR optimization/12260
4525         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
4526         operations through CONST nodes.  Optimize (neg (plus X C)) as
4527         (minus -C X) for constant values C.
4528         (simplify_binary_operation): Optimize (minus (neg X) C) as
4529         (minus -C X) for constant values C.
4530         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
4531         instead create (minus -C X).
4532
4533 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4534
4535         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
4536         safe_from_p for us, once it chooses an evaluation order.
4537         (expand_expr <MULT_EXPR>): Likewise.
4538         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
4539         places the second operand in "target", swap the operands.
4540         (do_store_flag): Let expand_operands call safe_from_p for us.
4541
4542 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
4543
4544         PR optimization/12544
4545         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
4546         for DECL_NONLOCAL decls.
4547
4548 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4549
4550         * expr.c: Follow spelling conventions.
4551         * final.c: Likewise.
4552         * optabs.c: Likewise.
4553         * sched-deps.c: Likewise.
4554         * sdbout.c: Likewise.
4555
4556 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
4557
4558         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
4559         re-computing of variable.
4560
4561 2003-10-11  Richard Henderson  <rth@redhat.com>
4562
4563         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
4564         return_in_memory, make static, change signature to match target hook.
4565         (alpha_setup_incoming_varargs): Make static, change signature to
4566         match target hook, add code for vms and unicos.
4567         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
4568         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
4569         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
4570         TARGET_STRICT_ARGUMENT_NAMING,
4571         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
4572         * config/alpha/alpha-protos.h: Update.
4573         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
4574         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
4575         SETUP_INCOMING_VARARGS): Remove.
4576         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
4577         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
4578
4579 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
4580
4581         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
4582
4583 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4584
4585         * config/m68k/lb1sf68.asm: Follow spelling conventions.
4586         * config/m68k/m68k.c: Likewise.
4587         * config/m68k/m68k.h: Likewise.
4588         * config/m68k/m68k.md: Likewise.
4589
4590 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4591
4592         * builtins.c (expand_builtin_memcpy): Optimize case when the two
4593         pointer arguments are the equal, non-volatile and side-effect free.
4594         (expand_builtin_mempcpy): Likewise.
4595         (expand_builtin_memmove): Likewise.
4596         (expand_builtin_strcpy): Likewise.
4597         (expand_builtin_memcmp): Likewise.
4598         (expand_builtin_strcmp): Likewise.
4599         (expand_builtin_strncmp): Likewise.
4600
4601 2003-10-11  Roger Sayle  <roger@eyesopen.com>
4602
4603         * combine.c (apply_distributive_law): Enable "distributive" floating
4604         point optimizations with -funsafe-math-optimizations.
4605
4606 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
4607
4608         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
4609
4610 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4611
4612         * config/m68k/m68k-protos.h: Remove the prototype for
4613         finalize_pic.
4614
4615 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
4616
4617         * config/m68k/m68k.c: Fix comment typos.
4618
4619 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4620
4621         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
4622         int to bool.
4623         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
4624         (current_frame): New global var.
4625         (m68k_compute_frame_layout): Cache computations in current_frame.
4626         (m68k_initial_elimination_offset): Use values from current_frame
4627         instead of recomputing them.
4628         (use_return_insn): Likewise.
4629         (m68k_output_function_prologue): Likewise.
4630         (m68k_output_function_epilogue): Likewise.
4631         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
4632         inside the block for __pic__.
4633
4634 2003-10-11  Peter Barada <peter@baradas.org>
4635             Bernardo Innocenti  <bernie@develer.com>
4636
4637         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
4638         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
4639         (m68k_interrupt_function_p): New function.
4640         (m68k_handle_fndecl_attribute): Ditto.
4641         (m68k_compute_frame_layout): Ditto.
4642         (m68k_attribute_table): Define back-end specific attributes.
4643         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
4644         functions.
4645
4646 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4647
4648         * config/m68k/t-uclinux: New target Makefile fragment.
4649         * config/m68k/uclinux.h: New target macro file.
4650         * config.gcc (m68k-*-uclinux): New target definition.
4651
4652 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4653
4654         * builtins.c (builtin_mathfn_code): Generalize to check whether
4655         the call is to any built-in function by comparing the call's
4656         argument list against the builtin decl's function type.
4657
4658 2003-10-10  Roger Sayle  <roger@eyesopen.com>
4659
4660         * cse.c (constant_pool_entries_regcost): New global variable to
4661         hold the register cost component of constant_pool_entries_cost.
4662         (fold_rtx): Calculate constant_pool_entries_regcost at the same
4663         time as constant_pool_entries_cost.
4664         (cse_insn): Set both src_folded_cost and src_folded_regcost from
4665         constant_pool_entries_cost and constant_pool_entries_regcost.
4666         (cse_main): Initialize constant_pool_entries_regcost to zero.
4667
4668         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
4669         the semantics of the sequence of bit operations used to negate
4670         a floating-point value.
4671         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
4672         the semantics of the bit operations used to abs a floating point
4673         value.
4674
4675 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
4676             Paul Dale  <pauli@snapgear.com>
4677
4678         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
4679         support.
4680         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
4681         -fpic, -fPIC, -msep-data and -mid-shared-library.
4682         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
4683         (override_options): Add -msep-data and -mshared-library-id support.
4684         (m68k_output_function_prologue): Generate code to load A5 for
4685         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
4686         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
4687         (m68k_output_pic_call): New function.
4688         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
4689         (TARGET_ID_SHARED_LIBRARY): Ditto.
4690         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
4691         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
4692         (call_value): Likewise.
4693
4694 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4695
4696         * gengenrtl.c (find_formats, genheader): Make i an unsigned
4697         int, remove cast of NUM_RTX_CODE.
4698         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
4699         entire file.  Remove the #ifs on GET_MODE_MASK etc and
4700         GET_MODE_WIDER_MODE etc.
4701
4702 2003-10-10  Eric Christopher  <echristo@redhat.com>
4703
4704         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
4705         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
4706         that set mode.
4707         * config/sh/sh.h (MODE_ENTRY): New macro.
4708         (MODE_EXIT): Ditto.
4709         (MODE_AFTER): Ditto.
4710         * config/sh/sh.md: Change for MODE_AFTER. Add
4711         fp_set attribute.
4712         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
4713
4714 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
4715
4716         * genmodes.c, mode-classes.def: New files.
4717         * machmode.def: Rewritten to genmodes.c interface.
4718         * Makefile.in (extra_modes_file): New substitution variable.
4719         (MACHMODE_H): No longer includes machmode.def or
4720         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
4721         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
4722         (OBJS-common): Add insn-modes.o.
4723         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
4724         genmodes$(build_exeext).
4725         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
4726         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
4727         (s-genrtl): Don't depend on $(RTL_BASE_H).
4728         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
4729         or $(RTL_BASE_H); just rtl.def.
4730         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
4731         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
4732         substitute definition of NUM_RTX_CODE.  Add casts to avoid
4733         warnings.
4734         * machmode.h: Include insn-modes.h, not machmode.def.  Include
4735         mode-classes.def to define enum mode_class.  Tweak definitions
4736         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
4737         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
4738         (inner_mode_array): Renamed mode_inner.
4739         (mode_base_align): New.
4740         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
4741         mode_unit_size, mode_wider_mode, mode_mask_array,
4742         inner_mode_array, class_narrowest_mode): Delete definitions.
4743         * stor-layout.c (get_mode_alignment): Use mode_base_align.
4744         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
4745         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
4746
4747         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
4748         No need to define BITS_PER_UNIT.
4749
4750 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4751
4752         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
4753         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
4754         (ia64_initialize_trampoline): If not using GAS, declare trampoline
4755         as global.
4756         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
4757         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
4758
4759         * stor-layout.c (compute_record_mode): Don't force BLKmode if
4760         field is zero-length BLKmode.
4761         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
4762         zero-size references.
4763
4764         * combine.c (distribute_links): Properly test for REG being set.
4765
4766         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
4767         gen_lowpart and company except for REG.
4768
4769 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4770
4771         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
4772
4773 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
4774
4775         * config.gcc (mips*-*-netbsd*): Remove content-free line.
4776
4777 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
4778
4779         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
4780         gcov_position_t and gcov_type.
4781
4782 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
4783
4784         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
4785         * configure: Regenerate.
4786
4787 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4788
4789         * config/h8300/h8300.md (define_asm_attributes): Specify
4790         the length of an asm insn more precisely.
4791
4792 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4793
4794         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
4795
4796 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
4797
4798         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
4799         FP register number to 48 and MAC16 accumulator to 0x210.
4800
4801 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
4802
4803         * config.gcc: Remove redundant thread_file setting clauses for
4804         various *-*-linux* targets.
4805
4806 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
4807
4808         * config/h8300/h8300.md (define_asm_attributes): New.
4809
4810 2003-10-09  Roger Sayle  <roger@eyesopen.com>
4811
4812         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
4813         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
4814
4815 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
4816
4817         * haifa-sched.c (ok_for_early_schedule): New function.
4818         (early_queue_to_ready): New function.
4819         (schedule_block): Allow early removal of insns from Q.
4820         (schedule_insn): Update INSN_TICK in case of premature
4821         issue.
4822         * common.opt (sched_stalled_insns): New flag.
4823         (sched_stalled_insns_dep): New flag.
4824         * flags.h: Same above flags.
4825         * opts.c: Same as above.
4826         * toplev.c: Same as above.
4827         * target.h (targetm.sched.is_costly_dependence): New
4828         hook.
4829         * target-def.h: Same as above.
4830         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
4831         Support new flag -msched-costly-dep.
4832         (DEFAULT_SCHED_COSTLY_DEP): Define.
4833         * config/rs6000/rs6000.c:
4834         (rs6000_is_costly_dependence): New function.
4835         (is_load_insn, is_store_insn): New functions.
4836         (is_load_insn1, is_store_insn1, is_mem_ref): New
4837         functions.
4838         * doc/invoke.texi (-fsched-stalled-insns-dep)
4839         (-fsched-stalled-insns, -msched-costly-dep): Document
4840         options.
4841         * doc/tm.texi (is_costly_dependence): Define new
4842         scheduler target hook.
4843
4844 2003-10-09  Jason Merrill  <jason@redhat.com>
4845
4846         PR c++/6392
4847         * c-common.c (c_build_qualified_type): Look through arrays first.
4848         (c_apply_type_quals_to_decl): Look through arrays.
4849
4850         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
4851         types with constructors.
4852
4853         * coverage.c (build_ctr_info_value): Use build_decl to make a
4854         VAR_DECL.
4855         (create_coverage): Likewise.
4856
4857         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
4858         here.
4859         (expand_asm_operands): Not here.
4860         (parse_input_constraint): No longer static.
4861         * tree.h: Declare it.
4862
4863 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
4864
4865         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
4866         libgcc_s.so.
4867         (SHLIB_INSTALL): Likewise.
4868
4869 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4870
4871         * doc/install.texi: Remove reference to removed 'pthreads' thread
4872         option.
4873
4874 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
4875
4876         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
4877         operand 2.
4878
4879 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
4880
4881         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
4882         up related case statements.
4883         * configure.in: Don't accept --enable-threads=pthreads,
4884         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
4885         supported thread files in case clause.
4886         * configure: Regenerate.
4887
4888 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
4889
4890         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
4891         definition to above SPARC_STACK_BOUNDARY_HACK.
4892
4893 2003-10-08  Jason Merrill  <jason@redhat.com>
4894
4895         * c-pretty-print.c (pp_c_postfix_expression)
4896         <COMPOUND_LITERAL_EXPR>: Fix thinko.
4897
4898 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4899
4900         * mklibgcc.in: Don't hide undefined or typeless symbols.
4901
4902 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4903
4904         PR optimization/12142
4905         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
4906         uses of the register in the SET_SRC.  Remove unnecessary argument.
4907         * pa.c (legitimize_pic_address): Before reload, use a scratch register
4908         for the intermediate result in loading the address of a SYMBOL_REF.
4909         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
4910         which loads the SYMBOL_REF address.
4911
4912 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
4913             Eric Botcazou  <ebotcazou@libertysurf.fr>
4914
4915         PR bootstrap/12490
4916         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
4917         to define the size of the extern_C_braces array.  Set it to 200.
4918         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
4919
4920 2003-10-08  Carlo Wood  <carlo@alinoe.com>
4921
4922         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
4923         a space after the -o option.  flex 2.5.31 understands both, with
4924         and without the space. Removed that space.
4925
4926 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4927
4928         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
4929         (compute_frame_size): Initialize it.  Remove the .cprestore slot
4930         from args_size.
4931         (mips_output_function_prologue): Simplify accordingly.
4932         (mips_debugger_offset): Change the mips16 frame pointer offset from
4933         current_function_outgoing_args to cfun->machine->frame.args_size.
4934         (mips_initial_elimination_offset): Likewise.
4935         (mips_expand_prologue): Likewise.
4936         (mips_expand_epilogue): Likewise.
4937
4938 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
4939
4940         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
4941         (EXTRA_MEMORY_CONSTRAINT): Define.
4942         (CAN_ELIMINATE): Remove lwu workaround.
4943         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
4944         Use a 'W' constraint for the source operand.
4945
4946 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
4947
4948         * genopinit.c (main): Output code to declare undefined
4949         variables.
4950
4951 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
4952
4953         * gengtype-lex.l: Remove -Wtraditional cruft.
4954         * Makefile.in (gengtype-lex.c): Likewise.
4955
4956 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4957
4958         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
4959
4960 2003-10-07  Jason Merrill  <jason@redhat.com>
4961
4962         PR c++/12519
4963         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
4964         it isn't a decl.
4965
4966 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
4967
4968         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
4969         not overridden.
4970         Fixes PR bootstrap/12173.
4971
4972 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
4973
4974         * errors.c: Don't include coretypes.h or tm.h.
4975         (trim_filename): Use IS_DIR_SEPARATOR.
4976         * Makefile.in: Update dependencies of errors.o and
4977         $(BUILD_PREFIX_1)errors.o.
4978
4979 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
4980
4981         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
4982         account when aligning arguments.
4983         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
4984         * defaults.h (STACK_POINTER_OFFSET): ... to here.
4985         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
4986         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
4987         (SPARC_STACK_BOUNDARY_HACK): Define.
4988         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
4989         arrange for vector parameters to varargs functions to be passed
4990         in both memory and GPRs when appropriate.
4991         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
4992         aligned.
4993
4994         * hooks.c (hook_bool_tree_true): New.
4995         (hook_rtx_tree_int_null): New.
4996         (hook_rtx_rtx_null): Use NULL, not 0.
4997         * hooks.h: Add 'extern' to everything.
4998         (hook_bool_tree_true): New.
4999         (hook_rtx_tree_int_null): New.
5000         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
5001         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
5002         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
5003         prototype.
5004         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
5005         (setup_incoming_varargs): Prototype.
5006         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
5007         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
5008         (TARGET_STRUCT_VALUE_RTX): Define.
5009         (TARGET_RETURN_IN_MEMORY): Define.
5010         (TARGET_SETUP_INCOMING_VARARGS): Define.
5011         (TARGET_STRICT_ARGUMENT_NAMING): Define.
5012         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
5013         (init_cumulative_args): Use rs6000_return_in_memory.
5014         (setup_incoming_varargs): Make 'static'.
5015         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
5016         (PROMOTE_FUNCTION_RETURN): Delete.
5017         (STRUCT_VALUE): Delete.
5018         (RETURN_IN_MEMORY): Delete.
5019         (SETUP_INCOMING_VARARGS): Delete.
5020
5021 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
5022
5023         * doc/invoke.texi (Warning Options): Simplify and clarify the
5024         descriptions of -Wnonnull and -Winit-self.
5025
5026 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
5027
5028         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
5029         indicees for floating-point conversersion libcalls.
5030
5031 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
5032
5033         * Makefile.in: Add more comments separating large conceptually
5034         separate sections.
5035
5036         * configure.in: Clean up thread file logic.
5037         * configure: Regenerate.
5038
5039 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
5040
5041         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
5042         (switch_to_section): Handle in_readonly_data.
5043         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
5044         readonly data.
5045
5046 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
5047
5048         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
5049         it.
5050         (cbranchne_decr1): New Thumb pattern.
5051         * arm.c (arm_addimm_operand): New insn predicate.
5052         * arm-protos.h: Add a prototype for it.
5053         * arm.h (PREDICATE_CODES): Add it.
5054
5055 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
5056
5057         * sched-int.h (sched_info): New field
5058         sched_max_insns_priority.
5059         * sched-rgn.c (init_ready_list): Add invocations to
5060         targetm.sched.adjust_priority.
5061         (sched_max_insns_priority): Init new field.
5062         * sched-ebb.c (sched_max_insns_priority): Init new field.
5063         * haifa-sched.c (set_priorities): Set
5064         sched_info->sched_max_insns_priority.
5065         * config/rs6000/rs6000.h:
5066         (rs6000_sched_restricted_insns_priority_str): Support new
5067         flag -mprioritize-restricted-insns.
5068         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
5069         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
5070         function.
5071         (rs6000_adjust_priority): Change priority of restricted
5072         insns, using above new function and new flag.
5073         * doc/invoke.texi (-mprioritize-restricted-insns): Document
5074         new option.
5075
5076 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
5077
5078         * expr.c (cmpstr_optab, cmpmem_optab): New.
5079         * genopinit.c: Initialize them.
5080         * optabs.h: Declare them.
5081         * optabs.c (init_optabs): Clear them.
5082         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
5083         block memory compare insns, not conditional chains.  Restructure
5084         the fallback generation of a call to memcmp/bcmp for better
5085         readability.
5086
5087 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5088
5089         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
5090         (mips_save_restore_fn): New typedef.
5091         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
5092         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
5093         (save_restore_insns): Remove, replacing with...
5094         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
5095         (mips_save_reg, mips_restore_reg): New function.
5096         (mips_expand_prologue, mips_expand_epilogue): Rework.
5097         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
5098         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
5099         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
5100
5101 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5102
5103         * config/mips/mips.c (mips_expand_prologue): Remove unused
5104         traversal of function arguments.
5105
5106 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
5107
5108         * doc/invoke.texi: Remove documentation of -mentry.
5109         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
5110         (override_options, mips_save_reg_p): Remove handling.
5111         (compute_frame_size, mips_output_function_prologue): Likewise.
5112         (mips_expand_prologue, mips_expand_epilogue): Likewise.
5113         * config/mips/mips.h (mips_entry_string): Remove declaration.
5114         (TARGET_OPTIONS): Remove -mentry.
5115         * config/mips/mips16.S: Remove mention of -mentry.
5116
5117 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
5118
5119         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
5120         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
5121         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
5122         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
5123         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
5124         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
5125         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
5126         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
5127         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
5128         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
5129         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
5130         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
5131         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
5132         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
5133         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
5134         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
5135         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
5136         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
5137         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
5138         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
5139         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
5140         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
5141         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
5142         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
5143         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
5144         (fixunstfti_libfunc): Delete.
5145         * optabs.h (struct optab_handlers): Break out of struct optab.
5146         (struct convert_optab, convert_optab, enum convert_optab_index,
5147         convert_optab_table, sext_optab, zext_optab, trunc_optab,
5148         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
5149         sfloat_optab, ufloat_optab): New.
5150         (set_conv_libfunc): Prototype.
5151         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
5152         (trunc_optab): Renamed btrunc_optab.
5153         * builtins.c (expand_builtin_mathfn): Update to match.
5154         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
5155         (convert_optab_table, new_convert_optab, init_convert_optab)
5156         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
5157         (set_conv_libfunc): New.
5158         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
5159         (expand_float, expand_fix): Use new conversion optabs,
5160         not old insn code tables or long chains of ifs.
5161         (init_optabs): No need to clear old insn code tables.
5162         Initialize the new optabs, not the old libfunc array entries.
5163         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5164         * genopinit.c: Initialize conversion optabs, not the
5165         former insn code tables.  Remove unnecessary casts.
5166         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
5167         * expr.c (convert_move): Remove redundant check that
5168         to_real==from_real.  Use the conversion optabs instead
5169         of long chains of tests of modes.  Move partial-integer-mode
5170         interconversion above all integer conversion.  Do not recurse
5171         on a value forced into a register in the original mode.
5172
5173         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
5174         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5175         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
5176         in new conversion optabs; do not reference the old libfunc
5177         array entries.  No need to include libfuncs.h.
5178
5179 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5180
5181         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
5182         point comparison sequence with a REG_EQUAL note that describes
5183         the comparison's semantics.
5184
5185 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5186
5187         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
5188         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
5189
5190 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5191             Zack Weinberg  <zack@codesourcery.com>
5192
5193         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
5194         instruction by using LCT_CONST and then calling emit_libcall_block
5195         ourselves.
5196
5197 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
5198
5199         PR optimization/11974
5200         * optabs.c (expand_unop): Promote libcall outmode according to
5201         hard_libcall_value.
5202
5203 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
5204
5205         * real.h (REAL_MODE_FORMAT): New macro.
5206         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
5207         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
5208         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
5209         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
5210         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
5211         directly to real_format_for_mode array, wherever possible.
5212
5213 2003-10-06  Devang Patel  <dpatel@apple.com>
5214
5215         * dwarf2out.c (is_main_source): Remove variable.
5216         (dwarf2out_start_source_file): Do not check is_main_source.
5217         Do not reset is_main_source.
5218         (dwarf2out_init): Do not initialize is_main_source.
5219
5220 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5221
5222         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
5223         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
5224         introduced some multi-line prototypes.
5225         * fixinc/fixincl.x: Regenerate.
5226
5227 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5228
5229         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
5230         * config/mips/mips.c (stack_operand): New predicate.
5231         * config/mips/mips.md: Use it for the destination of mips16 insns
5232         that store $31.
5233
5234 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5235
5236         * config/mips/mips.md (*lowsi): Renamed from lowsi.
5237         (*lowdi): Likewise lowdi.
5238         (*lowsi_mips16, *lowdi_mips16): New patterns.
5239         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
5240         mips16 CONSTANT_RELOC handling.
5241         (mips_delegitimize_address): Adjust for new sdata representation.
5242
5243 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5244
5245         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
5246         skip any remaining register arguments.
5247
5248 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
5249
5250         * reload.c (find_reloads_subreg_address): Use correct offset for
5251         paradoxical MEM subregs on big-endian targets.
5252
5253 2003-10-06  Andrew Haley  <aph@redhat.com>
5254
5255         * tree.c (get_callee_fndecl): Call
5256         lang_hooks.lang_get_callee_fndecl.
5257         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
5258         (lhd_get_callee_fndecl): New.
5259
5260 2003-10-06  Andrew Pinski  <apinski@apple.com>
5261
5262         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5263         error in calculating the length of the string.
5264         (machopic_stub_name): Likewise.
5265
5266 2003-10-06  Roger Sayle  <roger@eyesopen.com>
5267
5268         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
5269         describing the return value of the comparison libcall to the
5270         REG_RETVAL instruction of the emitted sequence.
5271
5272 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5273
5274         PR optimization/12215
5275         * cse.c (cse_set_around_loop): Emit the move at the beginning
5276         of the next basic block for trapping sets.
5277
5278 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
5279
5280         PR optimization/11637
5281         * combine.c (adjust_for_new_dest): New function to adjust the
5282         notes and LOG_LINKS when the dest of an insn has changed.
5283         (try_combine): Use it when deleting the first insn of a two-insn
5284         parallel or splitting a two-load parallel.
5285
5286 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5287
5288         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
5289         if TARGET_EXPLICIT_RELOCS.
5290
5291 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
5292
5293         PR bootstrap/12512
5294         * Makefile.in (info): Use double-colon rules.
5295         (dvi): Likewise.
5296         (generated-manpages): Likewise.
5297         * configure.in: Do not create lang.info, lang.dvi, or
5298         lang.generated-manpages hooks.
5299         * configure: Regenerated.
5300         * objc/Make-lang.in (objc.info): Remove.
5301         (objc.dvi): Remove.
5302         (objc.generated-manpages): Remove.
5303         * doc/sourcebuild.texi: Update description of info, dvi, and
5304         generated-manpages hooks.
5305
5306 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
5307
5308         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
5309
5310 2003-10-05  Andrew Pinski  <apinski@apple.com>
5311
5312         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
5313         errors in memcpy destinations.
5314         (machopic_stub_name): Likewise.
5315
5316 2003-10-05  Andrew Pinski <apinski@apple.com>
5317
5318         * config/darwin.c (machopic_non_lazy_ptr_name):
5319         Change strcat to memcpy and add length together.
5320         (machopic_stub_name): Likewise.
5321
5322 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
5323
5324         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
5325         signal trampoline codes.
5326
5327 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
5328
5329         * config/mips/mips.md (*divsf3): Move description of
5330         SB-1 F2 erratum from here to...
5331         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
5332         flag_unsafe_math_optimizations is not.
5333
5334 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
5335
5336         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
5337         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
5338
5339 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5340
5341         * c-pretty-print.c: Fix comment typos.
5342         * c-pretty-print.h: Likewise.
5343         * calls.c: Likewise.
5344         * cfgloopmanip.c: Likewise.
5345         * cgraphunit.c: Likewise.
5346         * cppfiles.c: Likewise.
5347         * final.c: Likewise.
5348         * function.c: Likewise.
5349         * gcov-io.h: Likewise.
5350         * gcse.c: Likewise.
5351         * genoutput.c: Likewise.
5352         * loop.c: Likewise.
5353         * postreload.c: Likewise.
5354         * reg-stack.c: Likewise.
5355         * regmove.c: Likewise.
5356         * sched-int.h: Likewise.
5357         * sched-rgn.c: Likewise.
5358         * simplify-rtx.c: Likewise.
5359         * tree-inline.c: Likewise.
5360         * config/m68hc11/m68hc11.h: Likewise.
5361         * config/mmix/mmix.c: Likewise.
5362         * config/mn10300/mn10300.md: Likewise.
5363         * config/sh/sh.h: Likewise.
5364
5365 2003-10-05  Richard Henderson  <rth@redhat.com>
5366
5367         * tree-inline.c (remap_type): New.
5368         (remap_decl): Use it.  Remap DECL_SIZE*.
5369         (copy_body_r): Use it.
5370         (walk_tree): Walk TREE_TYPE too.
5371         (copy_tree_r): Don't walk subtrees of types.
5372         * tree.c (variably_modified_type_p): Restructure.  Consider integer
5373         types with non-const bounds variably modified.
5374
5375 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5376
5377         * doc/invoke.texi: Fix typos.
5378
5379 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5380
5381         * fold-const.c: Follow spelling conventions.
5382         * function.c: Likewise.
5383         * config/c4x/c4x.h: Likewise.
5384         * config/c4x/c4x.md: Likewise.
5385         * config/frv/frv.md: Likewise.
5386         * config/rs6000/aix.h: Likewise.
5387         * config/rs6000/linux64.h: Likewise.
5388         * config/xtensa/xtensa.c: Likewise.
5389
5390 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
5391
5392         * c-pretty-print.c: Fix comment formatting.
5393         * cfglayout.c: Likewise.
5394         * cfgloopanal.c: Likewise.
5395         * cppcharset.c: Likewise.
5396         * dbxout.c: Likewise.
5397         * ggc-page.c: Likewise.
5398         * ggc.h: Likewise.
5399         * target.h: Likewise.
5400
5401 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
5402
5403         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
5404
5405 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
5406
5407         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
5408         Convert to ISO C90 function declarations and definitions.
5409
5410 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
5411
5412         * libfuncs.h
5413         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
5414         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
5415         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
5416         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
5417         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
5418         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
5419         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
5420         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
5421         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
5422         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
5423         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
5424         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
5425         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
5426         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
5427         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
5428         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
5429         Delete.
5430         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
5431         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
5432         (le_optab, unord_optab): New.
5433
5434         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
5435         from the code_to_optab table, not a giant switch; use
5436         swap_condition; do widening only if a comparison function that
5437         we can call exists in a wider mode, not if a cmp_optab insn or
5438         libfunc exists in a wider mode; call protect_from_queue
5439         exactly once on each operand.
5440         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
5441
5442         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
5443         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
5444         Set floating point comparison libfuncs using set_optab_libfunc
5445         on the appropriate optab.
5446
5447         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
5448         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
5449         selector conditionals.
5450
5451 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
5452
5453         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
5454         identical to m68hc12 as far as libraries are concerned.
5455
5456 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
5457
5458         PR c/12446
5459         * c-typeck.c (convert_for_assignment): Issue an error for
5460         array to pointer assignment after default conversion.
5461         (digest_init): Likewise.
5462
5463 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
5464
5465         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
5466
5467 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
5468
5469         * doc/extend.texi (Function Attributes): Fix title of GNU C
5470         Preprocessor manual.
5471         (C++ Extensions): Fix reference to "Predefined Macros" in the
5472         GNU C Preprocessor manual.
5473
5474 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
5475
5476         * doc/extend.texi: Document how GCC estimates and relies on the size
5477         of an asm.
5478
5479 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
5480
5481         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
5482         arguments downward for big-endian o64.
5483
5484 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
5485
5486         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
5487         PCH generation, avoiding too-frequent flushes when writing to NFS
5488         file system.
5489
5490 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
5491
5492         * objc/objc-act.c (lookup_category): Mark as 'inline'.
5493
5494 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
5495             Ziemowit Laski  <zlaski@apple.com>
5496
5497         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
5498         New functions.
5499         (lookup_method_in_hash_lists): New parameter indicating whether
5500         we are messaging 'Class' or 'id'.
5501         (check_duplicates): Likewise; do not assume all methods will
5502         be either class or instance methods.
5503         (generate_category, finish_class): Use lookup_category().
5504         (add_method): Use add_method_to_hash_list(); insert instance
5505         methods of root classes into the global class method hash table.
5506         (add_category): Use lookup_category(); avoid constructing
5507         duplicate categories.
5508         (really_start_method): Add method to corresponding @interface,
5509         if not already there (and if the @interface exists).
5510         (finish_message_expr, finish_objc): Adjust calls to
5511         check_duplicates().
5512
5513 2003-10-03  Roger Sayle  <roger@eyesopen.com>
5514
5515         PR optimization/9325, PR java/6391
5516         * fold-const.c (fold_convert): For floating point to integer
5517         conversions, return the maximum/minimum representable integer
5518         value if the real constant overflows the destination type.
5519         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
5520         meaning don't truncate the result to a floating point mode.
5521         Simplify the logic by calling real_from_integer directly.
5522         * simplify-rtx.c (simplify_unary_operation):  Implement the
5523         same semantics for folding floating point to integer conversions
5524         in RTL.
5525
5526 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
5527
5528         * config/mips/mips.c (mips_emit_prefetch): Restructure
5529         to avoid use of arrays, handle indexed prefetch.
5530         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
5531         (ISA_HAS_PREFETCHX): New deffine.
5532         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
5533         update comments.
5534         (prefetch_indexed_di, prefetch_indexed_si): New insns.
5535
5536 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
5537             Roger Sayle  <roger@eyesopen.com>
5538
5539         PR optimization/12289
5540         * calls.c (emit_call_1): Pretend to have popped the arguments
5541         to noreturn and longjmp functions instead of ignoring them.
5542         (expand_call): Don't adjust stack_pointer_dela while
5543         inhibit_defer_pop is set.
5544
5545 2003-10-03  Andreas Schwab  <schwab@suse.de>
5546
5547         PR bootstrap/12276
5548         * configure.in: Check for libunwind on the host only if building
5549         a native compiler.
5550         * configure: Regenerated.
5551
5552 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
5553
5554         * unwind-pe.h (read_encoded_value_with_base): Constify u and
5555         its inizialization cast.
5556
5557 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
5558
5559         PR target/12485
5560         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
5561
5562 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
5563
5564         PR optimization/12180
5565         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
5566         functions containing calls to __builtin_next_arg.
5567
5568 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
5569
5570         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
5571         in instructions being output.
5572         * config/mips/mips.md (prefetch_si_address): Change third
5573         operand's constraint letter to 'I'.
5574         (prefetch_di_address): Likewise.
5575         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
5576
5577 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
5578
5579         * system.h: Poison macros obsoleted by earlier patch.
5580         * config/cris/cris.c: C90-ify a function definition.
5581
5582 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5583
5584         PR/12292
5585         * combine.c (make_field_assignment): Check whether rtx's code
5586         is CONST_INT before using INTVAL.
5587
5588 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5589
5590         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
5591         htab_find_slot_with_hash.
5592         (cgraph_node_for_identifier): Use NO_INSERT.
5593         (cgraph_remove_node): Use NO_INSERT.
5594         (cgraph_varpool_node): Use INSERT.
5595         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
5596
5597 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
5598
5599         Waldek Hebisch <hebisch@math.uni.wroc.pl>
5600         PR/12072
5601         * varasm.c (compare_constant): Fix thinko.
5602
5603 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5604
5605         * config/frv/frv.c (frv_issue_rate): New function.
5606         (frv_pack_insns): Use it.
5607         (TARGET_SCHED_ISSUE_RATE): Define.
5608
5609 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
5610
5611         * config/mcore/mcore.c: Convert to ISO C90 function declarations
5612         and definitions.
5613         * config/mcore/mcore.h: Likewise.
5614         * config/mcore/mcore-protos.h: Likewise.
5615
5616 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
5617
5618         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
5619         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5620
5621 2003-10-01  Per Bothner  <pbothner@apple.com>
5622
5623         * c-lex.c (src_line):   Remove unneeded static variable.
5624         (cb_line_change):  Set input_line directly, instead of src_line.
5625         (get_non_padding_token):  We no longer need to compensate for the
5626         "horrible things" the C++ front-end does with the current line number,
5627
5628         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
5629         callback even when popping the main file.
5630         * c-lex.c (fe_file_change):  Handle a NULL new_map.
5631         * fix-header.c (cb_file_change):  Likewise.
5632         * c-ppoutput.c (pp_file_change):  Likewise.
5633
5634         * cppinit.c (cpp_read_main_file):  Split into two functions:
5635         Distribute _cpp_stack_file call over the two functions.
5636         (cpp_find_main_file):  New function.
5637         Don't call _cpp_do_file_change even if working_directory flag set.
5638         (cpp_push_main_file):  New function.
5639         * cppfiles.c (_cpp_find_failed):  New helper function.
5640         (find_file):  Made non-static and renamed to _cpp_find_file.
5641         (_cpp_stack_file):  No longer needed.  But note the following.
5642         (stack_file):  Made non-static and renamed to _cpp_stack_file.
5643         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
5644         call with calls to cpp_find_main_file and cpp_push_main_file.
5645         (search_path_head):  If there is no current buffer, use main_file.
5646         * cpphash.h:  Update function declarations.
5647         * cpplib.h:  Update function declarations.
5648
5649         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
5650         (c_common_parse_file):  No longer need to call cpp_read_main_file
5651         when file_index > 0 (as in multi-file or server compiation).
5652         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
5653         as this now happens before cpp_push_main_file.
5654         (push_command_line_include):  When done with options, pass LC_LEAVE
5655         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
5656         (fe_file_change):  Handle NULL new_map, and simplify.
5657         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
5658         08-28 change, since we're never called with a NULL buffer.
5659         (_cpp_lex_direct):  Likewise.
5660         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
5661         Return false if buffer is NULL at end.
5662
5663         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
5664         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
5665         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
5666         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
5667         remove the unused return_at_eof parameter.
5668         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
5669         Update callers of cpp_push_buffer.
5670
5671 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5672
5673         * target.h (init_libfuncs): New hook.
5674         * target-def.h: Default TARGET_INIT_BUILTINS and
5675         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
5676         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
5677         * builtins.c (default_init_builtins): Delete.
5678         * expr.h (default_init_builtins): Delete prototype.
5679         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
5680         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
5681         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
5682         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
5683         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
5684         and UMODDI3_LIBCALL,
5685
5686         * Makefile.in (optabs.o): Depends on target.h.
5687         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
5688         * optabs.c: Include target.h.
5689         (prepare_float_lib_cmp): No need for #ifdef around use of
5690         FLOAT_LIB_COMPARE_RETURNS_BOOL.
5691         (set_optab_libfunc): New function.
5692         (init_optabs): Delete use of all *_LIBCALL defines.
5693         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
5694         * optabs.h: Prototype set_optab_libfunc.
5695
5696         * config.gcc: Remove all references to pa/long_double.h,
5697         ia64/hpux_longdouble.h, and gofast.h.
5698         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
5699         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
5700
5701         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
5702         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
5703         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
5704         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
5705         * config/sparc/sparc.c, config/vax/vax.c:
5706         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
5707         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
5708
5709         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
5710         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
5711         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
5712         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
5713         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
5714         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
5715         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
5716         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
5717         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
5718
5719         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
5720         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5721         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
5722         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
5723         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
5724
5725         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
5726         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
5727         SUN_INTEGER_MULTIPLY_64 to 0.
5728         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
5729         SUN_INTEGER_MULTIPLY_64 to 1.
5730         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
5731         SUN_INTEGER_MULTIPLY_64 to 0.
5732         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
5733         Define US_SOFTWARE_GOFAST.
5734         * config/vax/vax.h: Default TARGET_ELF to 0.
5735         * config/vax/elf.h: Redefine TARGET_ELF to 1.
5736
5737         * config/gofast.h: Don't define any macros here.  Provide one
5738         static function, gofast_maybe_init_libfuncs, which does what
5739         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
5740         is already defined.  Do not clear negation libfuncs.  Do
5741         not mess with HFmode, XFmode, or TFmode libfuncs.
5742
5743         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
5744
5745 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
5746
5747         PR C/12466
5748         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
5749
5750 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5751
5752         * config/mips/xm-iris5.h: Remove, unnecessary.
5753         * config.build (mips-sgi-irix5*): Remove.
5754         (mips-sgi-irix6*o32): Likewise.
5755         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
5756         (mips-sgi-irix5cross64): Likewise.
5757         (mips-sgi-irix5*): Likewise.
5758         * config.host (mips-sgi-irix5*): Remove.
5759         (mips-sgi-irix6*o32): Likewise.
5760
5761 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
5762
5763         * dbxout.c (dbxout_fptype_value): Delete.
5764         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
5765
5766 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
5767
5768         * output.h (compute_reloc_for_constant): Declare.
5769         * varasm.c (compute_reloc_for_constant): Extract from...
5770         (output_addressed_constants): ... here.  Adjust all callers.
5771
5772 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5773
5774         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
5775         * configure: Rebuilt.
5776
5777 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5778
5779         * fold-const.c (make_range): When handling unsigned, don't reverse
5780         range if high bound is zero.
5781
5782 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
5783
5784         * config/frv/frv.h (PREDICATE_CODES): Added
5785         condexec_si_media_operator, condexec_sf_add_operator and
5786         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
5787         and condexec_sf_unary_operator.
5788
5789 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5790
5791         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
5792         * configure: Rebuilt.
5793
5794 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5795
5796         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
5797         Allow override.
5798         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
5799
5800 2003-09-23  David S. Miller  <davem@redhat.com>
5801
5802         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
5803         before redefining.
5804         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
5805
5806 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
5807
5808         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
5809         C90 function declarations and definitions.
5810
5811 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
5812
5813         * config.gcc (cris-*-linux*): Revert mistaken commit.
5814
5815 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
5816
5817         PR optimization/11753
5818         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
5819         the length in the non-V9 case.
5820
5821 2003-09-30  Richard Henderson  <rth@redhat.com>
5822
5823         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
5824         DWARF_ALT_FRAME_RETURN_COLUMN.
5825         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
5826         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
5827         (uw_frame_state_for): Return end-of-stack for null return address.
5828         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
5829
5830         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
5831         (alpha_expand_prologue): Store a zero for it.
5832         (alpha_expand_epilogue): Don't reload it.
5833         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
5834         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
5835         for the sigframe return address.
5836
5837 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5838
5839         * sdbout.c: Convert to ISO C90 prototypes.
5840         * objc/objc-act.c: Likewise.
5841
5842 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
5843
5844         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
5845         * config/i386/winnt.c: Likewise.
5846         * config/i386/cygming.h: Likewise.
5847
5848 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
5849
5850         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5851         (A ^ B) - B for any B.
5852
5853 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5854
5855         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
5856         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
5857
5858 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
5859
5860         * arm/ieee754-sf.S: Tidy formatting.
5861
5862 2003-09-30  Nicolas Pitre  <nico@cam.org>
5863
5864         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
5865         and ARM_MOD_BODY.
5866         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
5867         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
5868         added better divisor alignment in the other case.
5869         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
5870         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
5871         macros above, add fast exits for divisor >= dividend, etc.
5872
5873 2003-09-30  Nicolas Pitre  <nico@cam.org>
5874
5875         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
5876         L_fixdfsi target.
5877         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
5878
5879 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
5880
5881         * config.gcc: Default use_fixproto to 'no'.
5882
5883 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
5884
5885         PR optimization/12345
5886         * config/mips/mips-protos.h (mips_restore_gp): Remove.
5887         (mips_gp_save_slot): Declare.
5888         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
5889         (mips_gp_save_slot): ...this new function.
5890         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
5891         and mips_output_move to generate the output template.
5892         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
5893         a gp load after a noreturn call.  Load the gp using a move rather
5894         than an exception_receiver pattern.
5895         (call_value_internal, call_value_multiple_internal): Likewise.
5896         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
5897
5898 2003-09-30  Carlo Wood  <carlo@alinoe.com>
5899
5900         PR debug/12319
5901         * cfglayout.c (insn_scope):  Use prologue_locator and
5902         epilogue_locator; return the outer function scope for
5903         pro- and epilogue insns.
5904
5905 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5906
5907         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
5908         REAL_TYPEs based on the bitsize of the type's mode, not the
5909         mode directly.
5910
5911 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5912
5913         * dwarf2out.c (default_eh_frame_section): Split into ...
5914         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
5915         functions.
5916         * output.h (named_section_eh_frame_section): Declare.
5917         (collect2_eh_frame_section): Likewise.
5918
5919 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
5920
5921         * real.c (real_sqrt): Use get_canonical_qnan directly.
5922
5923         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
5924
5925         * varasm.c (assemble_real): Use real_to_target directly,
5926         calculate the number of significant elements of the result
5927         array and write them out in a loop, instead of using a giant
5928         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
5929         macro.
5930
5931 2003-09-29  Jan Hubicka  <jh@suse.cz>
5932
5933         PR c++/12175
5934         * varasm.c (notice_global_symbol): Discard external symbols.
5935
5936         PR optimization/12286
5937         * gcov-io.c (gcov_read_words): Fix memmove call.
5938         * profile.c (compute_branch_probabilities): Add extra sanity checks.
5939
5940 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5941
5942         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
5943         Solaris 7-9.
5944
5945         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
5946         wildcards which explicitly match micro versions.
5947         * fixinc/fixincl.x: Regenerate.
5948
5949 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5950
5951         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
5952         (A ^ B) - B, where B is any power of 2 minus 1.
5953
5954 2003-09-29  Jan Hubicka  <jh@suse.cz>
5955
5956         * libgcov.c (gcov_exit): Fix two pastos.
5957
5958 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5959
5960         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
5961         define_split immediately below to form define_insn_and_split.
5962
5963 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
5964
5965         * config/h8300/h8300.md (*tstsi_variable_bit): New.
5966         (*tstsi_variable_bit_qi): Likewise.
5967
5968 2003-09-28  Phil Edwards  <phil@codesourcery.com>
5969
5970         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
5971         reference name.
5972
5973 2003-09-28  Richard Henderson  <rth@redhat.com>
5974
5975         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
5976         file and line separately.
5977
5978 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
5979
5980         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
5981         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
5982         "*subdi3_borrow_cconly"): New insns.
5983         ("*addsi3_sub", "*subsi3_sub"): Remove.
5984         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
5985         ("*subsi3_cc"): Fix op_type attribute.
5986
5987 2003-09-28  Richard Henderson  <rth@redhat.com>
5988
5989         * stmt.c (expand_asm_operands): Take a location_t, instead of
5990         individual file and line.
5991         * c-typeck.c (c_expand_asm_operands): Likewise.
5992         * tree.h (expand_asm_operands): Update decl.
5993         * c-common.h (c_expand_asm_operands): Likewise.
5994         * c-semantics (genrtl_asm_stmt): Update call.
5995
5996 2003-09-28  Philip Blundell  <philb@gnu.org>
5997
5998         * config/arm/arm.c (legitimize_pic_address): Check
5999         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
6000         (arm_assemble_integer): Likewise.
6001
6002 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
6003
6004         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6005         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
6006         config/c4x/c4x.h:
6007         Convert to ISO C90 function declarations and definitions.
6008
6009 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
6010
6011         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
6012         Convert to ISO C90 function declarations and definitions.
6013
6014 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
6015
6016         * config/mips/mips.c (mips_constant_info): Add reloc field.
6017         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
6018         underlying symbol, not to an unspec.
6019         (mips_delegitimize_address, print_operand): Clean up accordingly.
6020
6021 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
6022
6023         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
6024         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
6025         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
6026         (mips_classify_constant): Use it.
6027         (mips_splittable_symbol_p): Add an offset argument.
6028         (mips_classify_address): Adjust call accordingly.
6029         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
6030         than a relocation unspec.  Update call to mips_splittable_symbol_p.
6031         Generalize the code that copes with symbols + invalid offsets.
6032         (print_operand): Allow '%R' to be applied to small data addresses.
6033         (mips_reloc_string): Remove RELOC_GPREL16.
6034         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
6035         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
6036         relocation operators.
6037         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
6038         constants accordingly.
6039
6040 2003-09-27  Roger Sayle  <roger@eyesopen.com>
6041
6042         * toplev.c (flag_evaluation_order): New global variable.
6043         * flags.h (flag_evaluation_order): Prototype here.
6044         * expr.c (expand_operands): If we need to preserve observable
6045         evaluation order, protect exp1 from clobbering exp0's result.
6046
6047 2003-09-28  Andreas Jaeger  <aj@suse.de>
6048
6049         * c-decl.c (finish_function): Convert definition to ISO C90.
6050         * ifcvt.c (mark_loop_exit_edges): Likewise.
6051         * ra-rewrite.c (emit_colors): Likewise.
6052
6053 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
6054
6055         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
6056         * config.gcc (arm*-*-uclinux*): Disable fixproto.
6057         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
6058         powerpc-*-eabialtivec*): Disable fixproto.
6059
6060 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
6061
6062         PR optimization/12340
6063         * loop.h (struct induction): Document the new semantics
6064         of the 'same' field for bivs.
6065         * unroll.c (biv_total_increment): Don't count the same
6066         biv increment several times.
6067         (loop_iterations) [GENERAL_INDUCT]: Likewise.
6068
6069 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
6070
6071         * unroll.c (loop_interations)[GT]: Add missing break.
6072
6073 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
6074
6075         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
6076         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
6077         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
6078         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
6079         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
6080         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
6081         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
6082         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
6083         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
6084         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
6085         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
6086         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
6087         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
6088         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
6089         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
6090         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
6091         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
6092         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
6093         config/alpha/xm-vms.h, config/arc/arc-modes.def,
6094         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
6095         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
6096         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
6097         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
6098         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
6099         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
6100         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
6101         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
6102         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
6103         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
6104         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
6105         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
6106         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
6107         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
6108         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
6109         config/i960/i960-c.c, config/i960/i960-coff.h,
6110         config/i960/i960-modes.def, config/i960/i960-protos.h,
6111         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
6112         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
6113         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
6114         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
6115         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
6116         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
6117         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
6118         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
6119         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
6120         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
6121         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
6122         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
6123         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
6124         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
6125         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
6126         config/mcore/mcore-protos.h, config/mcore/mcore.c,
6127         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
6128         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
6129         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
6130         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
6131         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
6132         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
6133         config/mips/vr.h, config/mn10300/linux.h,
6134         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
6135         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
6136         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
6137         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
6138         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
6139         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
6140         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
6141         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
6142         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
6143         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
6144         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
6145         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
6146         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
6147         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
6148         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
6149         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
6150         fixinc/fixinc.svr4: GNU CC -> GCC.
6151
6152 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
6153
6154         * objc/objc-act.c (tm_p.h): Tweak order.
6155         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
6156
6157 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
6158
6159         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
6160         Include t-slibgcc-elf-ver and t-linux in tmake_file.
6161         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
6162         Disable fixproto.
6163         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
6164         Disable fixproto.
6165         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
6166         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
6167
6168         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
6169
6170 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
6171
6172         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
6173         * objc/objc-act.c (tm_p.h): Include.
6174
6175 2003-09-26  Per Bothner  <pbothner@apple.com>
6176
6177         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
6178         No longer any need to reverse by recursion.
6179
6180 2003-09-26  Roger Sayle  <roger@eyesopen.com>
6181             Richard Henderson  <rth@redhat.com>
6182
6183         PR optimization/11741
6184         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
6185         appropriate set to match that in hash_scan_insn.  Fall back to
6186         the original copy method, if we can't validate changing insn.
6187         (pre_delete): Only delete instructions that have a single_set,
6188         instead of aborting when we encounter an PARALLEL insn with more
6189         then one SET.
6190
6191 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
6192
6193         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
6194         ("builtin_longjmp"): Insn deleted.
6195         ("save_stack_nonlocal"): Save literal pool base pointer behind
6196         backchain and stack pointer.
6197         ("restore_stack_nonlocal"): Restore literal pool base pointer.
6198         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
6199         the stack save area for the nonlocal goto case.
6200
6201 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6202
6203         PR bootstrap/12358
6204         * pa.c (output_bvb): Fix typo.
6205
6206 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6207
6208         * expmed.c (store_bit_field): Don't search for an integer mode
6209         unless we need the result.
6210
6211 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6212
6213         * expr.c (emit_move_insn_1): If there is no move pattern for the
6214         original mode, try using a pattern for the corresponding integer mode.
6215
6216 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
6217
6218         PR middle-end/9200
6219         * combine.c (if_then_else_cond): Tighten mode check.
6220
6221 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6222
6223         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
6224         'struct _cpp_strbuf'.
6225
6226         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
6227         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
6228         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
6229         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
6230         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
6231         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
6232         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
6233         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
6234         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
6235         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
6236         * config/i386/i386-aout.h, config/i386/i386-coff.h,
6237         config/i386/i386-interix.h, config/i386/i386-interix3.h,
6238         config/i386/i386-modes.def, config/i386/i386-protos.h,
6239         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
6240         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
6241         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
6242         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
6243         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
6244         "GNU compiler" -> GCC.
6245         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
6246         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
6247         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
6248         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
6249         config/i386/freebsd-aout.h, config/i386/freebsd.h,
6250         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
6251
6252 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
6253
6254         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
6255         "local" to the callgraph dump.  Output "after inlining" earlier.
6256         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
6257         callgraph dumps.  Correct misspellings.
6258         (cgraph_decide_inlining):  Output number of insns before inlining.
6259         Output the calling function into which a function is inlined.
6260         (cgraph_decide_small_functions): Format dump file like always_inline.
6261
6262 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
6263
6264         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
6265
6266 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6267
6268         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
6269         FPR slots in the save area.
6270         (s390_emit_epilogue): Likewise.
6271
6272 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6273
6274         * cgraph.h (cgraph_remove_edge): Declare.
6275         * cgraph.c (cgraph_remove_edge): Make extern.
6276         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
6277         instead of cgraph_remove_call.
6278
6279 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
6280
6281         * objc/objc-act.c (gen_declaration_1): Fix printf format.
6282
6283 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
6284
6285         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
6286         arm7tdmi core.
6287
6288 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6289
6290         * config/darwin-protos.h (objc_image_info_section):
6291         New prototype.
6292
6293 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6294
6295         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
6296
6297 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6298
6299         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
6300         tsc701 as a --with-cpu, --with-tune setting for sparc.
6301
6302 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
6303
6304         * c-parse.in (objc_try_stmt): Do not specify a %type.
6305
6306 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6307
6308         * config.gcc: New 'widely ported system' clause for rtems.
6309         Set thread file there, not in individual clauses.
6310
6311 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
6312
6313         PR target/6222
6314         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
6315         passed on the stack.
6316
6317 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
6318
6319         * config.gcc (widely ported systems section): Mostly alphabetize
6320         by system.  Comment the case where we can't.
6321         * config.gcc (widely ported systems section): Reindent and clean up.
6322
6323         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
6324         Actually allow ep9312 as an arm --with-arch setting.
6325
6326         * config.gcc (*-hpux11): Disable fixproto.
6327
6328 2003-09-24  Phil Edwards  <phil@codesourcery.com>
6329
6330         PR pch/12112
6331         * gcc/cppfiles.c (pch_open_file): Return based on combined
6332         result of all files.
6333         (validate_pch): Return validate flag for current file.
6334
6335 2003-09-24  Roger Sayle  <roger@eyesopen.com>
6336
6337         PR bootstrap/12358
6338         * fold-const.c (tree_swap_operands_p): Only reorder operands when
6339         one of the operands is constant.
6340
6341 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
6342
6343         MERGE OF objc-improvements-branch into MAINLINE:
6344         * Makefile.in (C_OBJS): Add in stub-objc.o.
6345         (c-parse.y): Change sed demarcations to begin with '@@'.
6346         (stub-objc.o): New rule.
6347         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6348         flag_replace_objc_classes): New flags.
6349         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
6350         RID_AT_SYNCHRONIZED): New keywords.
6351         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
6352         flag_replace_objc_classes): New flags.
6353         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
6354         objc_comptypes, objc_message_selector, lookup_objc_ivar,
6355         get_current_scope, objc_mark_locals_volatile): New prototypes,
6356         some moved from c-tree.h.
6357         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
6358         (finish_decl): Adjust where objc_check_decl() gets called.
6359         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
6360         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
6361         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
6362         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
6363         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
6364         '@@end_ifc', respectively.
6365         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
6366         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
6367         objc_finally_block): New rules.
6368         (component_decl_list2): Clean up semantic action for @defs construct.
6369         (component_decl, c99_block_start): Remove call to add_objc_decls().
6370         (poplevel): Add call to objc_clear_super_receiver().
6371         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
6372         constructs.
6373         (classdef, methodprotolist): Clean up/simplify.
6374         (methodprotolist2): Eliminate.
6375         (methodproto): Call add_method() instead of add_class_method() and
6376         add_instance_method().
6377         (receiver): Add TYPENAME production.
6378         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
6379         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
6380         AT_SYNCHRONIZED.
6381         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
6382         objc_comptypes, objc_message_selector)
6383         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
6384         struct and pointer types.
6385         (build_c_cast): Do not discard ObjC protocol qualifiers.
6386         (convert_for_assignment): Cache result of comp_target_types() instead
6387         of calling it more than once.
6388         * c.opt (fnext-runtime): Update description string.
6389         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
6390         New ObjC/ObjC++-specific flags.
6391         * function.h (GCC_FUNCTION_H): Header guard.
6392         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
6393         * stub-objc.c: New file, to be used to satisfy references to ObjC
6394         functions by the C and C++ front-ends.
6395         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
6396         * config/darwin.h (FUNCTION): Add in_objc_image_info.
6397         (SECTION_FUNCTION): Add objc_image_info_section.
6398         * doc/invoke.texi: Link to GCC web site for Objective-C information.
6399         (-fconstant-string-class): Update documentation.
6400         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
6401         -fzero-link): New documentation.
6402         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
6403         with '@@'.
6404         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
6405         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
6406         throughout; provide casts for return values from memory allocation
6407         functions (xmalloc, alloca, ggc_alloc, etc.).
6408         (OBJC_VOID_AT_END): New macro.
6409         (rtl.h): Do not #include any more.
6410         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
6411         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
6412         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
6413         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
6414         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
6415         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
6416         val_stack_pop): New.
6417         (objc_check_decl): Fix precondition for error message, along with
6418         the message itself.
6419         (lookup_and_install_protocols): Remove nonexistent protocols from
6420         protocol list instead of returning error_mark_node.
6421         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
6422         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
6423         (synth_module_prologue): General clean-up; construct NeXT-specific
6424         runtime API prototypes if needed.
6425         (build_string_class_template): Remove.
6426         (check_string_class_template, string_layout_checked): New.
6427         (build_objc_string_object): Generalize to work with
6428         -fconstant-string-class.
6429         (build_objc_symtab_template): Fix layout for the NeXT runtime.
6430         (build_metadata_decl): New.
6431         (forward_declare_categories): Call build_metadata_decl() instead of
6432         create_builtin_decl() et al.
6433         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
6434         void_list_node_1.
6435         (build_selector_reference_decl, build_class_reference_decl,
6436         build_objc_string_decl): Do not set TREE_READONLY.
6437         (get_proto_encoding): Do not call hack_method_prototype().
6438         (get_class_reference): Add failure mode for invalid class names;
6439         support -fzero-link; defer if in an ObjC++ template declaration.
6440         (objc_declare_alias, objc_declare_class): Fix up duplicate name
6441         lookup; check for global scope if in ObjC++.
6442         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
6443         RECORD_TYPE, IDENTIFIER_NODE, etc.)
6444         (objc_is_id): Removed.
6445         (objc_is_object_ptr): New function.
6446         (get_class_ivars_from_name): New function, used for @defs construct.
6447         (get_class_ivars): Add option to return raw ivars; create a
6448         ClASS_OWN_IVARS list for each class as needed.
6449         (objc_enter_block, objc_exit_block, objc_declare_variable,
6450         objc_build_throw_stmt, val_stack_push, val_stack_pop,
6451         objc_build_try_enter_fragment, objc_build_extract_expr,
6452         objc_build_try_exit_fragment, objc_build_extract_fragment,
6453         objc_build_try_prologue, objc_build_try_epilogue,
6454         objc_build_catch_stmt, objc_build_catch_epilogue,
6455         objc_build_finally_prologue, objc_build_finally_epilogue,
6456         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
6457         objc_build_synchronized_epilogue, build_objc_exception_stuff):
6458         New functions.
6459         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
6460         the future).
6461         (build_private_template): Fix up calls to get_class_ivars().
6462         (offset_is_register, forwarding_offset): Remove.
6463         (objc_method_parm_type, objc_encoded_type_size): New functions.
6464         (encode_method_prototype): Simplify to no longer depend on
6465         back-end information.
6466         (build_tmp_function_decl_xxx, build_tmp_function_decl,
6467         hack_method_prototype): Removed.
6468         (generate_protocol_references): Remove calls to
6469         build_tmp_function_decl().
6470         (generate_protocols): Adjust calls to encode_method_prototype().
6471         (build_class_template): Generate sel_id' and 'gc_object_type' fields
6472         for the NeXT runtime.
6473         (synth_forward_declarations): Call build_metadata_decl().
6474         (check_ivars): Check that the number of ivars matches also.
6475         (build_super_template): Modify super_type directly; disable debugging
6476         output while generating decl.
6477         (build_ivar_list_initializer): Skip list elements that are not
6478         FIELD_DECLs.
6479         (ivar_list_length): New function.
6480         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
6481         and encode_method_prototype() instead of encode_method_def().
6482         (build_shared_structure_initializer): Generate 'sel_id' field for
6483         the NeXT runtime.
6484         (generate_category): Do not set TREE_USED.
6485         (build_keyword_selector): Ditto; transform into a function argument
6486         chain.
6487         (get_arg_type_list): If there are no user-specified arguments, use
6488         '...'; use OBJC_VOID_AT_END.
6489         (check_duplicates): Add a parameter indicating whether methods or
6490         selectors are being checked.
6491         (receiver_is_class_object): Add parameters indicating whether
6492         receiver is 'self' or 'super'; robustify.
6493         (build_message_expr): Defer call to finish_message_expr() if
6494         inside an ObjC++ template.
6495         (lookup_method_in_hash_lists): New function.
6496         (finish_message_expr): Complete rewrite/fix.
6497         (build_objc_method_call): Ditto; factor out commonalities between
6498         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
6499         messenger variants on the NeXT.
6500         (lookup_instance_method_static, lookup_class_method_static):
6501         Fold into a single lookup_method_static() function with an
6502         additional parameter.
6503         (add_class_method, add_instance_method): Fold into a single
6504         add_method() function with an additional parameter.
6505         (add_category): Make duplicate categories a hard error in ObjC++.
6506         (add_instance_variable): Properly handle unnamed ivars, arrays of
6507         zero or no size and bitfields.  In ObjC++, check for nontrivial
6508         C++ class instances.
6509         (is_public): Allow C functions to access non-@public ivars, with
6510         a warning.
6511         (start_class): Move common initializations to
6512         synth_module_prologue(); check for global scope if in ObjC++.
6513         (continue_class): Fix calls to finish_struct().
6514         (objc_declare_protocols, start_protocol): Check for global scope
6515         if in ObjC++.
6516         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
6517         (encode_aggregate_within): Rewrite to properly distinguish
6518         struct tags from typedefs in both ObjC and ObjC++.
6519         (encode_bitfield, encode_complete_bitfield): Remove.
6520         (encode_next_bitfield, encode_gnu_bitfield): New functions.
6521         (encode_field_decl): Call encode_next_bitfield() or
6522         encode_gnu_bitfield() as needed.
6523         (synth_self_and_ucmd_args): New function.
6524         (start_method_def): Use it.
6525         (objc_types_are_equivalent): New function.
6526         (comp_proto_with_proto): Use it instead of comptypes(), since
6527         we need symmetry.
6528         (really_start_method): Use lookup_method_static() instead of
6529         lookup_class_method_static() and lookup_instance_method_static();
6530         Emit 'extern "C"' if in ObjC++ mode.
6531         (add_objc_decls): Removed.
6532         (UOBJC_SUPER_scope): New variable.
6533         (get_super_receiver): Move construction of 'super' from
6534         add_objc_decls(); remove dependency on struct objc_class.
6535         (encode_method_def): Removed; encode_method_prototype() is
6536         used instead.
6537         (objc_clear_super_receiver): New function.
6538         (objc_expand_function_end): Do not do anything for ordinary
6539         C functions.
6540         (finish_method_def): Mark ObjC methods as un-inlinable.
6541         (gen_declaration_1): Emit widths of bitfields.
6542         (finish_objc): Call generate_objc_image_info() if needed;
6543         use check_duplicates() when checking for selector duplicates.
6544         (generate_objc_image_info): New function.
6545         * objc/objc-act.h (add_instance_method, add_class_method,
6546         get_class_ivars): Remove prototypes.
6547         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
6548         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
6549         objc_build_catch_stmt, objc_build_catch_epilogue,
6550         objc_build_finally_prologue, objc_build_finally_epilogue,
6551         add_method, get_class_ivars_from_name): New prototypes.
6552         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
6553         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
6554         TRANSLATION_UNIT_DECLs.
6555         (OBJC_TYPE_NAME): New.
6556         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
6557         got included.
6558         (IS_SUPER): Robustify.
6559         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
6560         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
6561         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
6562         objc_exception_match_decl, objc_exception_throw_decl,
6563         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
6564         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
6565         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
6566         objc_catch_type): New ObjC/ObjC++ roots.
6567         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
6568         ObjC/ObjC++ tree node codes.
6569
6570 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
6571
6572         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
6573         code path that calls a handler.
6574
6575 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
6576
6577         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
6578         Disable fixproto.
6579
6580         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
6581         the section giving $with_cpu defaults by target.
6582
6583         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
6584         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
6585         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
6586         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
6587         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
6588         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
6589
6590 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
6591
6592         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
6593         together.  Protect load string instruction with TARGET_STRING.
6594         (movti_string): Collapse case 1 and 2 together.
6595
6596 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
6597
6598         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
6599
6600 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
6601
6602         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
6603         do...while(0)
6604
6605 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6606
6607         * config.gcc: Move use_fixproto=no from generic vxworks clause to
6608         specific one.
6609
6610         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
6611         (accidentally missed in last pass).
6612
6613 2003-09-23  Andrew Pinski  <apinski@apple.com>
6614
6615         PR bootstrap/12383
6616         * configure: Regenerate.
6617
6618 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6619
6620         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
6621         missed in last pass).
6622
6623 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
6624
6625         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
6626         constant.
6627
6628 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6629
6630         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
6631
6632         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
6633         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
6634         powerpcle-*-eabi*): Disable fixproto.
6635
6636         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
6637         specific FreeBSD clauses.
6638         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
6639         specific NetBSD clauses.
6640         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
6641         to specific OpenBSD clauses.
6642
6643 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6644
6645         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
6646         without adding a frame note.
6647         * pa.md (allocate_stack): Save pic register in new frame marker when
6648         generating pic code.
6649
6650 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
6651
6652         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
6653         cgraph_expand_functions.
6654
6655 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6656
6657         * Makefile.in (gnucompare*): Merge into ...
6658         (slowcompare*): ... here.
6659         (fastcompare*): New targets.
6660         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
6661         other "fast" cmp programs.
6662         * configure: Regenerate.
6663
6664 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6665
6666         * targhooks.c: Include output.h.
6667         * Makefile.in (targhooks.o): Add output.h to dependency list.
6668
6669 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6670
6671         * config.host: Removed superfluous newline.
6672
6673 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6674
6675         * config.gcc: Use ${target}, not $machine.
6676         * configure.in: Don't set $machine.
6677         * configure: Regenerate.
6678
6679 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
6680
6681         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
6682
6683         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
6684         pass zero-size arrays by reference.
6685         (rs6000_va_arg): Likewise.
6686
6687 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
6688
6689         * config.gcc: Set use_fixproto=no in each specific *-gnu*
6690         configuration, rather than the generic one.
6691
6692 2003-09-23  Richard Henderson  <rth@redhat.com>
6693
6694         * tree-inline.c (remap_save_expr): Map new save_expr to identity
6695         rather than to error_mark_node.
6696
6697 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6698
6699         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
6700         Update description.
6701         * configure: Regenerate.
6702         * config.in: Likewise.
6703         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
6704         HAVE_GAS_SHF_MERGE value.
6705         * varasm.c (mergeable_string_section): Likewise.
6706         (mergeable_constant_section): Likewise.
6707
6708 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6709
6710         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
6711         value.
6712
6713 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6714
6715         * target.h (struct gcc_target): New member external_libcall.
6716         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
6717         (TARGET_ASM_OUT): Use it.
6718         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
6719         * targhooks.c: Convert to ISO C 90.
6720         (default_external_libcall): New function.
6721         * targhooks.h (default_external_libcall): Declare.
6722         * varasm.c (assemble_external_libcall): Use
6723         targetm.asm_out.external_libcall instead of
6724         ASM_OUTPUT_EXTERNAL_LIBCALL.
6725         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
6726         (mips_output_external_libcall): Declare.
6727         * config/mips/mips.c (mips_output_external_libcall): Change
6728         definition guard.
6729         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
6730         Only operate for O32 ABI.
6731         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
6732         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
6733         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
6734         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
6735
6736 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
6737
6738         * config.gcc: Do per-target disabling of fixproto here in clauses,
6739         not in t- fragments.
6740         * configure.in: Adjust to set STMP_FIXPROTO correctly.
6741         * configure: Regenerate.
6742         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
6743         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
6744         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
6745         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
6746         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
6747         t-interix, t-linux-aout:  Delete files consisting only of
6748         setting of STMP_FIXPROTO.
6749
6750         * config.host: Allow unknown hosts (not targets).  Allow
6751         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
6752         empty clauses.  Remove useless obsolete-configuration clause.
6753         Prune unsupported configuration list.  Collapse identical
6754         clauses for closely related systems.  Rewrite comment for
6755         unsupported hosts list.  Reorganize a little.
6756
6757 2003-09-22  Richard Henderson  <rth@redhat.com>
6758
6759         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
6760         not precision.
6761
6762 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
6763             Hartmut Penner  <hpenner@de.ibm.com>
6764             Segher Boessenkool  <boessen@de.ibm.com>
6765
6766         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
6767         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
6768         (rs6000_split_altivec_in_gprs): Rename to ...
6769         (rs6000_split_multireg_move): Add support for update addressing.
6770         * config/rs6000/rs6000-protos.h: Same.
6771         * config/rs6000/altivec.md: Same.
6772         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
6773         multiple GPRs.
6774         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
6775         (movti_power): Use new splitter for multiple GPRs.
6776         (movti_string): Same.
6777         (movti_ppc64): Same.
6778
6779 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
6780
6781         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
6782         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
6783
6784 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
6785
6786         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
6787         (andsi3): Set attr cc to set_zn when using shifts or adds.
6788
6789 2003-09-22  Bernardo Innocenti <bernie@develer.com>
6790
6791         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
6792
6793 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
6794
6795         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
6796         Resurrect -mrtd option.
6797
6798 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
6799
6800         PR target/12281
6801         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
6802         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
6803
6804 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
6805
6806         PR target/9786
6807         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
6808         after potential deletion of trapping insn. Avoids later ICE
6809         from call to fixup_abnormal_edges.
6810         (convert_regs_2): Stack the current block successors before
6811         processing this block, that is, before the potential deletion of
6812         dead edges by convert_regs_1, because these edges have been used
6813         to initialize the predecessors count.
6814
6815 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
6816
6817         * real.c: Fix several nits in the head comment.
6818
6819 2003-09-21  Richard Henderson  <rth@redhat.com>
6820
6821         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6822         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6823         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6824         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6825         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
6826
6827 2003-09-21  Richard Henderson  <rth@redhat.com>
6828
6829         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
6830         (TREE_FILENAME, TREE_LINENO): Likewise.
6831         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
6832         (TREE_LOCUS_SET_P): New.
6833         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
6834         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
6835         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
6836         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
6837         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
6838
6839 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
6840
6841         * config/vax/vax-protos.h: Convert to ISO C90.
6842         * config/vax/vax.c: Convert to ISO C90.
6843
6844 2003-09-21  Graham Stott  <grahams@btinternet.com>
6845
6846        PR target/12353
6847        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
6848
6849 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
6850
6851         PR target/12301
6852         * reorg.c (stop_search_p): Return 1 for insns that can
6853         throw internally.
6854
6855 2003-09-20  Richard Henderson  <rth@redhat.com>
6856
6857         * c-format.c (gcc_diag_char_table): Add %J.
6858         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
6859         (check_format_types): Fix wanted_type name lookup.
6860         (init_dynamic_diag_info): Setup %J.
6861         * diagnostic.c (text_specifies_location): Implement %J.
6862         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
6863         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
6864         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
6865         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
6866         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
6867
6868         * tree-inline.c: Include intl.h
6869         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
6870         * Makefile.in (tree-inline.o): Update.
6871
6872 2003-09-20  Roger Sayle  <roger@eyesopen.com>
6873
6874         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
6875         transformation of a>=0 into (unsigned)a<0x80000000.
6876
6877 2003-09-20  Andrew Pinski <apinski@apple.com>
6878
6879         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
6880
6881 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
6882
6883         * Makefile.in: Don't set (unused) DLLTOOL.
6884
6885         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
6886         Remove obsolete references to ENQUIRE.
6887
6888 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
6889
6890         * configure.in: Remove --with-elf, which doesn't work.
6891         * configure: Regenerate.
6892         * config.gcc: Remove references to $elf, which does nothing.
6893
6894         * config/i386/xm-vsta.h: Remove xm-file believed useless.
6895         * config.build (i386-vsta): Remove reference to it.
6896         * config.host (i386-vsta): Remove reference to it.
6897
6898 2003-09-19  Phil Edwards  <phil@codesourcery.com>
6899
6900         * doc/install.texi:  Document the multiple testsuite options.
6901
6902 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
6903
6904         * doc/install.texi (Specific): Add the specific versions of GCC
6905         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
6906         version 3 and older was discontinued.
6907
6908 2003-09-19      Joel Sherrill <joel@oarcorp.com>
6909
6910         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
6911         68881.
6912
6913 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
6914
6915         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
6916         for -m68030, -m68020-60 and -m68020-40.
6917         * config/m68k/m68k.h (TARGET_68030): New target flag.
6918         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
6919         TARGET_REGPARM): Remove.
6920         * config/m68k/m68k.h: Regroup and renumber target flags.
6921         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
6922         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
6923         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
6924         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
6925         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
6926
6927 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6928
6929         * config/m68k/t-rtems (m68k-*-rtems*): New.
6930         * config.gcc: Use config/m68k/t-rtems.
6931
6932 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
6933
6934         * config/mips/t-rtems: New.
6935         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
6936
6937 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
6938
6939         * cgraph.c: Fix typo in debugging output.
6940
6941 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
6942             Eric Botcazou <ebotcazou@libertysurf.fr>
6943
6944         PR target/12166
6945         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
6946
6947 2003-09-18  Mike Stump  <mrs@apple.com>
6948
6949         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
6950         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
6951         cb_ident, cb_def_pragma):  Use fileline typedef.
6952         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
6953
6954 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
6955
6956         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
6957         total parm size if a parm has incomplete type.
6958         (gen_fastcall_suffix): Likewise.
6959
6960 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6961
6962         * except.c (output_function_exception_table): Adjust last change
6963         to handle TYPE of INTEGER_CST.
6964
6965 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
6966
6967         PR target/11184
6968         * builtins.c (expand_builtin_apply): Use convert_memory_address
6969         before returning the value.
6970
6971         * alias.c (find_base_value): Simplify use of
6972         convert_memory_address.
6973         (find_base_term): Likewise.
6974         * builtins.c (expand_builtin_stejmp_setup): Likewise.
6975         (expand_builtin_longjmp): Likewise.
6976         (expand_builtin_prefetch): Likewise.
6977         (get_memory_rtx): Likewise.
6978         (expand_builtin_return): Likewise.
6979         (expand_builtin_memcpy): Likewise.
6980         (expand_builtin_strncpy): Likewise.
6981         (expand_builtin_memset): Likewise.
6982         (expand_builtin_va_arg): Likewise.
6983         (expand_builtin_va_copy): Likewise.
6984         (expand_builtin_alloca): Likewise.
6985         * calls.c (expand_call): Likewise.
6986         * except.c (expand_builtin_extract_return_addr): Likewise.
6987         (expand_builtin_eh_return): Likewise.
6988         * explow.c (convert_memory_address): Define even when
6989         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
6990         is already in the right mode.
6991         * explow.c (memory_address): Simplify use of convert_memory_address.
6992         (probe_stack_range): Likewise.
6993         * expmed.c (make_tree): Likewise.
6994         * expr.c (emit_block_move_in_libcall): Likewise.
6995         (expand_assignment): Likewise.
6996         (expand_expr): Likewise.
6997         * function.c (assign_parms): Likewise.
6998         (expand_function_end): Likewise.
6999         * integrate.c (copy_rtx_and_substitute): Likewise.
7000         * stmt.c (expand_computed_goto): Likewise.
7001
7002 2003-09-18  Roger Sayle  <roger@eyesopen.com>
7003
7004         * simplify-rtx.c (simplify_unary_operation): Only transform
7005         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
7006         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
7007
7008 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7009
7010         PR target/11674
7011         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
7012
7013 2003-09-18  Roger Sayle  <roger@eyesopen.com>
7014
7015         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
7016         PARITY_EXPR): Delete unused tree codes.
7017         * c-common.c (c_common_truthvalue_conversion): Delete references
7018         to FFS_EXPR and POPCOUNT_EXPR.
7019         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
7020         (pp_c_expression): Likewise.
7021         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
7022         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
7023         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
7024         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
7025         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
7026         and long long variants.
7027
7028 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7029
7030         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
7031         * c-pretty-print.c: Fix formatting.
7032         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
7033         (pp_c_type_specifier): Tidy.
7034         (pp_c_compound_literal): New function.
7035         (pp_c_initializer): Simplify..
7036         (pp_c_initializer_list): Likewise.
7037         (pp_c_brace_enclosed_initializer_list): New function.
7038         (pp_c_postfix_expression): Simplify.
7039
7040 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
7041
7042         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
7043         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
7044
7045 2003-09-17  Richard Henderson  <rth@redhat.com>
7046
7047         * tree-optimize.c (tree_rest_of_compilation): Save and restore
7048         input_location.
7049
7050 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7051
7052         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
7053
7054 2003-09-17  Richard Henderson  <rth@redhat.com>
7055
7056         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
7057
7058 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7059
7060         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
7061         * configure: Regenerate.
7062
7063 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
7064
7065         PR debug/12066
7066         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
7067         * langhooks-def.h (lhd_return_null_tree_v): New function.
7068         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
7069         (LANG_HOOKS_DECLS): Add it to the intializer.
7070         * langhooks.c (lhd_return_null_tree_v): New function.
7071         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
7072
7073 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7074
7075         * configure.in: Quote gcc_config_arguments for configargs.h.
7076         * configure: Regenerated.
7077         * gccbug.in: Don't shell-expand gcc_config_arguments.
7078
7079 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7080
7081         PR c++/11357
7082         * c-pretty-print.c (pp_c_floating_constant): Append
7083         type-annotation to floating constants.
7084
7085 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7086
7087         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
7088         Define _ABIO32.
7089         Use it for _MIPS_SIM.
7090         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
7091
7092         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
7093         Moved ...
7094         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
7095         updating comment.
7096         Fixes PR target/10190.
7097
7098 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
7099
7100         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
7101         to shared libraries.
7102
7103 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7104
7105         PR optimization/11646
7106         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
7107         EDGE_ABNORMAL flag for EH edges.
7108         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
7109         if dead edges were purged.
7110
7111 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
7112
7113         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
7114         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
7115         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
7116         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
7117
7118 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
7119
7120         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
7121         returned by tablejump_p.
7122
7123 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
7124
7125         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
7126
7127 2003-09-16  Roger Sayle  <roger@eyesopen.com>
7128
7129         PR bootstrap/12269
7130         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
7131         argument to be VOIDmode, taking the mode of the comparison from
7132         the operands.  Only call simplify_relational_operation if we
7133         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
7134         if comparison has a floating point result.  Ensure that the
7135         result is always of the specified mode.
7136         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
7137         (simplify_unary_operation): Ensure the correct mode and cmp_mode
7138         are always passed to simplify_gen_relational.  Simplify NOT of
7139         comparison operator in any mode, not just BImode.
7140         (simplify_ternary_operation): Correct tests on the return value
7141         of simplify_relational_operation to use const_true_rtx, not
7142         const1_rtx.  Abort if it ever returns a non-constant result.
7143
7144         * cfgloopanal.c (count_strange_loop_iterations): Use the function
7145         simplify_relational_operation, not simplify_gen_relational, if
7146         we're only interested in constant comparisons and will ignore
7147         non-constant results.
7148
7149 2003-09-16  Roger Sayle  <roger@eyesopen.com>
7150
7151         * fold-const.c (tree_swap_operands_p): New function to determine
7152         the prefered ordering of operands.
7153         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
7154         operands to commutative, comparison or ternary operators.  Replace
7155         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
7156         transformation of A ? B : C into !A ? C : B.
7157
7158 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
7159
7160         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7161         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7162         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7163         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7164         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7165         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7166         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7167         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7168
7169 2003-09-16  Jason Merrill  <jason@redhat.com>
7170             Jakub Jelinek  <jakub@redhat.com>
7171
7172         * c-common.c (handle_warn_unused_result_attribute): New function.
7173         (c_common_attribute_table): Add warn_unused_result.
7174         (c_expand_expr): Issue warning when result of inlined function
7175         with warn_unused_result attribute is ignored.
7176         * calls.c (expand_call): Issue warning when result of function
7177         with warn_unused_result attribute is ignored.
7178         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
7179         * expr.c (expr_wfl_stack): Define.
7180         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
7181         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
7182         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
7183         bit if inlined function has warn_unused_result attribute.
7184         * input.h (expr_wfl_stack): Declare.
7185         * doc/extend.texi: Document warn_unused_result attribute.
7186
7187 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
7188
7189         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
7190
7191 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
7192
7193         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
7194         ATTRIBUTE_UNUSED.
7195         (call_insn_operand): For PIC, don't allow a direct call to a
7196         function in a different section than the current one.
7197
7198 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
7199
7200         * doc/invoke.texi (Warning Options): Add missing hyphen before
7201         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
7202         Move "-Wold-style-definition" to the C-only section.
7203         Fix the ordering of the warning options.
7204
7205 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7206             Jeff Law  <law@redhat.com>
7207
7208         * gcse.c (remove_reachable_equiv_notes): New.
7209         replace_store_insn): Call it.  Update antic list.
7210         (store_killed_in_insn): Take REG_EQUAL notes into account.
7211         (build_store_vectors, delete_store): Add parameter to
7212         replace_store_insn call.
7213
7214 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
7215
7216         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
7217         SYMBOL_REF_LOCAL_P.
7218
7219 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
7220
7221         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
7222         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
7223         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
7224         Likewise.
7225         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
7226         Likewise.
7227         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
7228         * config/sparc/sparc.c (function_arg_padding): Likewise.
7229
7230 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
7231
7232         * haifa-sched.c (schedule_block): Use ready_remove_first instead
7233         of choose_ready for non-dfa insn scheduling.
7234
7235 2003-09-15  Andreas Jaeger  <aj@suse.de>
7236             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
7237
7238         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
7239         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
7240         * c-parse.in: Warn about old-style parameter definition.
7241         * c-common.c: Define warn_old_style_defintion.
7242         * c-common.h: Declare it.
7243         * c.opt: Add Wold-style-defintion.
7244
7245 2003-09-15  Andreas Jaeger  <aj@suse.de>
7246
7247         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
7248         * config/rs6000/rs6000.c: Likewise.
7249
7250 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7251
7252         PR optimization/10914
7253         * expr.h (get_condition, canonicalize_condition): Declaration changed.
7254         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
7255         and canonicalize_condition calls.
7256         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
7257         delete_null_pointer_checks): Ditto.
7258         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
7259         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
7260         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
7261         (canonicalize_condition, get_condition): Allow to return comparisons
7262         of cc mode registers.
7263         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
7264         cc mode registers comparison in condition.
7265
7266 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
7267
7268         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
7269         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
7270         function.
7271         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
7272
7273 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7274
7275         * combine.c (simplify_comparison): Convert
7276         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
7277         (eq (and (lshiftrt X Y) 1) 0).
7278
7279 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
7280
7281         * alias.c: Follow spelling conventions.
7282         * cpphash.h: Likewise.
7283         * fold-const.c: Likewise.
7284
7285 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
7286
7287         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
7288         * c-lex.c (cb_line_change): Skip line changing whenever
7289         c-ppoutput.c would.
7290
7291 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
7292
7293         * ra.c: Convert to ISO C90 prototypes.
7294         * ra-build.c: Likewise.
7295         * ra-colorize.c: Likewise.
7296         * ra-debug.c: Likewise.
7297         * ra-rewrite.c: Likewise.
7298
7299 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7300
7301         * Makefile.in (%.dvi): Remove excess $(docdir).
7302
7303 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
7304
7305         * function.c (STACK_BYTES): Move definition to head of file.
7306         (assign_parms): Don't pass current_function_pretend_args_size
7307         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
7308         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
7309         excess before laying out the argument.
7310
7311 2003-09-14  Andreas Jaeger  <aj@suse.de>
7312
7313         * objc/objc-act.c: Convert to ISO C90 prototypes.
7314         * objc/objc-act.h: Likewise.
7315
7316 2003-09-14  Olaf Hering  <olh@suse.de>
7317
7318         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
7319
7320 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
7321
7322         PR target/12021
7323         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
7324         as they already are done in config/m68k/m68k.h.
7325         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
7326
7327         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
7328         (machopic_output_stub): Only generate pic base symbols when using pic
7329         and generate them in the form L00000000$spb.
7330
7331 2003-09-13  Richard Henderson  <rth@redhat.com>
7332
7333         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
7334         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
7335         * cgraph.h: Update.
7336
7337 2003-09-12  Dale Johannesen  <dalej@apple.com>
7338
7339         * config/rs6000/rs6000.c: Fix typos in previous.
7340
7341 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
7342
7343         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
7344         when allocating pp->buffer.
7345
7346 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
7347
7348         * config/darwin.c (machopic_select_rtx_section): Use
7349         const_data_section for things that might require relocation.
7350
7351 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
7352
7353         PR bootstrap/12264
7354         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
7355
7356 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
7357
7358         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
7359         * config/xtensa/linux.h (ASM_SPEC): Likewise.
7360         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
7361         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
7362         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
7363         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
7364         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
7365         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
7366         and redefine corresponding TARGET_* macros with constants from the
7367         xtensa-config.h header.
7368         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
7369         for the options listed above.
7370
7371 2003-09-12  Dale Johannesen  <dalej@apple.com>
7372
7373         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
7374         * config/rs6000/rs6000-c.c:  Ditto.
7375         * config/rs6000/rs6000.c:  Ditto.
7376         * config/rs6000/ sysv4.h:  Ditto.
7377
7378 2003-09-12  Chris Lattner <sabre@nondot.org>
7379
7380         * loop.c: Move comments describing BIV's and GIV's to top of file
7381
7382 2003-09-12  Roger Sayle  <roger@eyesopen.com>
7383
7384         PR optimization/8967
7385         * alias.c (write_dependence_p): Modify to take an additional constp
7386         argument that controls whether the UNCHANGING_RTX_P flags are used.
7387         (anti_dependence, output_dependence): Adjust write_dependence_p
7388         callers to pass this additional argument, to return the same result.
7389         (unchanging_anti_dependence): New variant of anti_dependence that
7390         ignores the UNCHANGING_RTX_P property on memory references.
7391         * rtl.h (unchaning_anti_dependence): Prototype here.
7392         * flow.c (init_propagate_block): Place fake constant mem writes on
7393         the mem_set_list so that dead writes to const variables are deleted.
7394         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
7395         (mark_used_regs): Likewise.
7396
7397 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
7398
7399         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
7400         (mcore_secondary_reload_class): Declare.
7401         (mcore_output_inline_const_forced): Remove.
7402         * config/mcore/mcore.md (movsi): Remove the code that forced
7403         non-inlineable constants into a register if the target was r15
7404         or the stack pointer.  Remove constant restrictions from the main
7405         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
7406         of an r <- P alternative.  Remove fallback define_insn for reload.
7407         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
7408         define_insn.  Use mcore_output_move in the remaining define_insn.
7409         Adjust condition and constraints in the way as for movsi.
7410         (movdi): Always split unacceptable constants into two.  Use
7411         simplify_gen_subreg instead of operand_subword{,_force}.
7412         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
7413         (mcore_output_move): Support HImode and QImode moves as well.
7414         (mcore_m15_operand_p): New function.
7415         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
7416         (mcore_secondary_reload_class): New function.
7417         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
7418         terms of mcore_secondary_reload_class.
7419
7420 2003-09-11  Mike Stump  <mrs@apple.com>
7421
7422         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
7423
7424 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7425
7426         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
7427         MODE exactly, then only convert logN(N) -> 1.0 if
7428         flag_unsafe_math_optimizations is set.
7429
7430         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
7431         init_builtin_dconsts): Delete.
7432         * emit-rtl.c (dconstpi, dconste): Define.
7433         (init_emit_once): Initialize dconstpi & dconste.
7434         * real.h (dconstpi, dconste): Declare.
7435
7436 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
7437
7438         PR fortran/11522
7439         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
7440         for ultimate origin even if block is abstract.
7441
7442 2003-09-11  Roger Sayle  <roger@eyesopen.com>
7443
7444         * combine.c (combine_simplify_rtx): Move several NOT and NEG
7445         optimizations from here...
7446         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
7447         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
7448
7449 2003-09-11  Richard Henderson  <rth@redhat.com>
7450
7451         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
7452         Tweek tests for function already generated.
7453         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
7454         * cgraph.h (cgraph_finalize_function): Update for extra arg.
7455         * c-decl.c (finish_function): Likewise.
7456
7457 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
7458
7459         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
7460
7461 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
7462
7463         * real.c: Update URL to VAX floating point docs.
7464         (decode_vax_d): Extract 8 exponent bits instead of 7.
7465
7466 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
7467
7468         * combine.c (force_to_mode): Set fuller_mask based only on mask,
7469         not op_mode.
7470
7471 2003-09-11  Jan Hubicka  <jh@suse.cz>
7472
7473         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
7474         on why function is not inlinable; do not check
7475         the body.
7476         (inline_forbidden_p): Move to...
7477         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
7478         deal with alloca, longjmp.
7479         (inline_forbidden_p): New static function.
7480         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
7481         find_builtin_longjmp_call): Kill.
7482
7483 2003-09-10  Richard Henderson  <rth@redhat.com>
7484
7485         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
7486         * cgraphunit.c: Update to match.
7487         (record_call_1): Rearrange.  Call lang hook for language nodes.
7488         (cgraph_analyze_function): Don't call lower_function.
7489         * langhooks.h (struct lang_hooks_for_callgraph): Replace
7490         lower_function with analyze_expr.
7491         * langhooks-def.h: Update to match.
7492         * langhooks.c (lhd_callgraph_analyze_expr): New.
7493
7494 2003-09-10  Martin Husemann  <martin@duskware.de>
7495
7496         PR target/11965
7497         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
7498         constants greater than 63.
7499         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
7500         against constants greater than 31.
7501         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
7502         constants greater than 63.
7503
7504 2003-09-09  Richard Henderson  <rth@redhat.com>
7505
7506         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
7507         * cgraph.h (cgraph_finalize_function): Update.
7508         * c-decl.c (finish_function): Update.
7509
7510 2003-09-09  Devang Patel  <dpatel@apple.com>
7511
7512         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
7513         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
7514
7515 2003-09-09  Eric Christopher  <echristo@redhat.com>
7516
7517         * configure.in: Change usage of 'head' to 'sed 1q'.
7518         * configure: Regenerate.
7519
7520 2003-09-09  Richard Henderson  <rth@redhat.com>
7521
7522         * except.c: Include cgraph.h.
7523         (output_function_exception_table): Invoke
7524         cgraph_varpool_mark_needed_node.
7525         * Makefile.in (except.o): Update.
7526
7527 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7528
7529         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
7530         and use it throughout.
7531
7532 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7533
7534         * builtins.c (real_dconstp, fold_builtin_logarithm,
7535         fold_builtin_exponent): New, split out from fold_builtin.  Also
7536         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
7537         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
7538         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
7539         of hardcoded array size.
7540         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
7541         (tree_expr_nonnegative_p): Likewise.
7542         * real.h (dconst3, dconst10, dconstthird): New.
7543
7544 2003-09-09  Jan Hubicka  <jh@suse.cz>
7545
7546         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
7547         inline functions.
7548         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
7549         DECL_SAVED_TREE.
7550
7551 2003-09-09  Roger Sayle  <roger@eyesopen.com>
7552
7553         * builtins.c (fold_builtin_cabs): Protect the complex argument
7554         against multiple evaluation when optimizing cabs* into sqrt*.
7555
7556 2003-09-09  Jan Hubicka  <jh@suse.cz>
7557
7558         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
7559
7560 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
7561
7562         * Makefile.in: Revert yesterday's change.
7563
7564 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7565             Peter Barada <peter@baradas.org>
7566
7567         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
7568         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
7569         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
7570         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
7571         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
7572         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
7573         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
7574         (m68k_compute_frame_layout): New function.
7575         (m68k_initial_elimination_offset): New function.
7576         (m68k_output_function_prologue): ColdFire-specific movem handling.
7577         (m68k_output_function_epilogue): Likewise.
7578         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
7579         (ARG_POINTER_REGNUM): Add new definition.
7580         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
7581         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
7582         (CAN_ELIMINATE): Likewise.
7583         (INITIAL_ELIMINATION_OFFSET): Likewise.
7584
7585 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
7586
7587         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
7588         by removing redundant variable cfa_store_offset.
7589
7590 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7591
7592         * langhooks-def.h (lhd_register_builtin_type): New function.
7593         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
7594         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
7595         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
7596         * langhooks.c (lhd_register_builtin_type): New function.
7597         * c-common.h (c_register_builtin_type): Declare.
7598         * c-common.c (c_register_builtin_type): New function.
7599         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
7600         c_register_builtin_type.
7601         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
7602         __float80, and __float128 macros.
7603         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
7604         __float80, and __float128 types.
7605
7606 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7607
7608         * builtin-types.def
7609         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
7610         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
7611         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
7612         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
7613         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
7614         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
7615         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
7616         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
7617         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
7618         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
7619         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
7620         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
7621         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
7622         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
7623         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
7624         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
7625         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
7626         New.
7627         * doc/extend.texi: Document new builtins.
7628
7629 2003-09-09  Jan Hubicka  <jh@suse.cz>
7630
7631         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
7632         finalization.
7633         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
7634         functions, check for COMDAT.
7635         (cgraph_assemble_pending_functions): Break out from...
7636         (cgraph_finalize_function): ... here; allow redefinig of extern inline
7637         functions.
7638         (record_call_1): Record function references only in non-unit-at-a-time
7639         mode.
7640         (cgraph_analyze_function): Reset current_function_decl.
7641         (cgraph_finalize_compilation_unit):  Assemble pending functions.
7642
7643 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
7644
7645         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
7646         (libgov.a): Likewise.
7647         (libgcc_eh.a): Likewise.
7648
7649 2003-09-08  Roger Sayle  <roger@eyesopen.com>
7650
7651         * fold-const.c (operand_equal_p): Clarify documentation.
7652
7653 2003-09-08  Richard Henderson  <rth@redhat.com>
7654
7655         * c-decl.c (c_expand_body_1): Push and pop function context here.
7656         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
7657         nested argument instead of computing nesting ourselves.
7658
7659 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7660
7661         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
7662         regstack if optimizing but not scheduling after reload.
7663
7664 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
7665
7666         * config/sparc/sparc.c (struct machine_function): New type.
7667         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
7668         (sparc_override_options): Initialize init_machine_status.
7669         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
7670         tie_symbolic_operand, tle_symbolic_operand): New functions.
7671         (symbolic_operand): Disallow tls_symbolic_operand.
7672         (symbolic_memory_operand): Likewise.
7673         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
7674         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
7675         New functions.
7676         (sparc_tls_symbol): New variable.
7677         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
7678         legitimize_address): New functions.
7679         (print_operand): Handle %&.
7680         (sparc_init_machine_status, get_some_local_dynamic_name,
7681         get_some_local_dynamic_name_1): New functions.
7682         (sparc_output_dwarf_dtprel): New function.
7683         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
7684         constant_address_p.
7685         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
7686         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
7687         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
7688         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
7689         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
7690         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
7691         (ASM_OUTPUT_DWARF_DTPREL): Define.
7692         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
7693         tie_symbolic_operand, tle_symbolic_operand.
7694         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
7695         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
7696         (tls_call_delay): New attribute.
7697         (in_call_delay): Use it.
7698         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
7699         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
7700         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
7701         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
7702         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
7703         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
7704         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
7705         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
7706         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
7707         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
7708         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
7709         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
7710         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
7711         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
7712         insns.
7713         * config/sparc/sparc-protos.h (legitimate_constant_p,
7714         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
7715         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
7716         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
7717         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
7718         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
7719         * configure.in (sparc*-*-*): Add TLS check.
7720         * configure: Rebuilt.
7721
7722 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
7723
7724         PR target/11689
7725         * config/i386/i386.c (memory_address_length): Fix computation when
7726         the base is esp or ebp.
7727
7728 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
7729
7730         PR c++/11852
7731         * varasm.c (initializer_constant_valid_p): Correct logic for
7732         CONSTRUCTORs.
7733
7734 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7735
7736         * expr.c (expand_operands): New function to expand an operand pair.
7737         (expand_expr): Call expand_operands whenever we need to expand both
7738         operands of a binary operator.
7739         (do_store_flag): Likewise for operands of comparison operations.
7740
7741 2003-09-07  Roger Sayle  <roger@eyesopen.com>
7742
7743         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
7744         (-A)*B if we care about sign-dependent rounding.
7745
7746 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
7747
7748         * c-pretty-print.h (pp_c_left_brace): Declare.
7749         (pp_c_right_brace): Likewise.
7750         * c-pretty-print.c (pp_c_left_brace): Now a function
7751         (pp_c_right_brace): Likewise.
7752
7753 2003-09-07  Jan Hubicka  <jh@suse.cz>
7754
7755         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
7756
7757 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7758
7759         * diagnostic.c (warn_deprecated_use): Move to toplev.c
7760
7761 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7762
7763         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
7764         * Makefile.in (langhooks.o): Depend on diagnostic.h
7765
7766 2003-09-06  James E Wilson  <wilson@tuliptree.org>
7767
7768         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
7769         simplify.
7770
7771 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
7772
7773         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
7774         and use it throughout.
7775
7776 2003-09-07  Jan Hubicka  <jh@suse.cz>
7777
7778         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
7779
7780         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
7781         virables.
7782
7783         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
7784         functions.
7785         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
7786
7787 2003-09-06  Jan Hubicka  <jh@suse.cz>
7788
7789         PR target/12070
7790         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
7791
7792         PR opt/12082
7793         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
7794
7795 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7796
7797         * diagnostic.c (announce_function): Move to toplev.c.
7798
7799 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7800
7801         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
7802         volatile mem.
7803
7804 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7805
7806         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
7807         when gc checking is enabled.
7808
7809 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
7810
7811         PR c/9862
7812         * c-decl.c (c_expand_body_1): Move return warning from here...
7813         (finish_function): ...to here.
7814
7815 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
7816
7817         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
7818         a subset of the input class.
7819
7820 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
7821
7822         * config/i860/i860.c: Follow spelling conventions.
7823         * config/i860/i860.h: Likewise.
7824         * config/sh/sh.h: Likewise.
7825
7826 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
7827
7828         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
7829         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
7830         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
7831
7832 2003-09-05  Roger Sayle  <roger@eyesopen.com>
7833             Richard Henderson  <rth@redhat.com>
7834
7835         PR optimization/1823
7836         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
7837         multiplication to implement division by constant integer.
7838
7839 2003-09-05  Jan Hubicka  <jh@suse.cz>
7840
7841         * opts.c (decode_options): Enable unit-at-a-time at -O2.
7842         * params.def (max-inline-insns-single): Set to 500
7843         (max-inline-insns-auto): Set to 150
7844         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
7845
7846 2003-09-04  Richard Henderson  <rth@redhat.com>
7847
7848         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
7849         (cgraph_mark_needed_node): Remove needed argument.
7850         * cgraph.h: Update to match.
7851         * cgraphunit.c (decide_is_function_needed): Split out from ...
7852         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
7853         if we generated the function.
7854         (record_call_1): Update for cgraph_mark_reachable_node.
7855         * varasm.c (mark_referenced): Likewise.
7856         * objc/objc-act.c (mark_referenced_methods): Likewise.
7857
7858 2003-09-04  DJ Delorie  <dj@redhat.com>
7859
7860         * targhooks.c: Add comment explaining the migration process.
7861
7862 2003-09-04  Eric Christopher  <echristo@redhat.com>
7863
7864         * config/frv/t-frv: Fix path for frv-abi.h.
7865         * config/frv/frv-asm.h: Fix string concatenation.
7866
7867 2003-09-04  DJ Delorie  <dj@redhat.com>
7868
7869         * builtins.c (apply_args_size): Guard against a NULL cfun.
7870         (expand_builtin_apply_args_1): Likewise.
7871         (expand_builtin_apply): Likewise.
7872         Fixes PR bootstrap/12172.
7873
7874 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7875
7876         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
7877         assembler supports Sun syntax for cmov.
7878         * configure: Regenerate.
7879         * config.in: Likewise.
7880         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
7881         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
7882         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
7883         Fixes PR target/12101.
7884
7885 2003-09-04  Matt Austern  <austern@apple.com>
7886
7887         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
7888         with verbosity 0, instead of DECL_NAME, for human-readable string.
7889
7890 2003-09-04  Eric Christopher  <echristo@redhat.com>
7891
7892         * targhooks.c (default_return_in_memory): Allow
7893         unconverted ports.
7894
7895 2003-09-04  Eric Christopher  <echristo@redhat.com>
7896
7897         * targhooks.c (default_return_in_memory): Fix typo
7898         in last checkin.
7899
7900 2003-09-04  Eric Christopher  <echristo@redhat.com>
7901
7902         * targhooks.c (default_return_in_memory): Fix default
7903         definition.
7904
7905 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
7906
7907         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
7908         deleted function.
7909         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
7910         enable coff-only code in m68k.c.
7911
7912 2003-09-04  Nick Clifton  <nickc@redhat.com>
7913
7914         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
7915         v850e1.
7916         * config/v850/v850.h: Accept v850e1 as a default CPU.
7917         Accept -mv850e1 as a command line option.
7918         * doc/invoke.texi: Document new -mv850e1 command line switch.
7919         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
7920         -mv850e.
7921
7922 2003-09-04  Nick Clifton  <nickc@redhat.com>
7923
7924         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
7925         * config/v850/t-v850: Only produce one extra multilib - for
7926         the v850e.
7927         * config/v850/t-v850e: New file: Only produce one extra
7928         multilib - for the v850.
7929
7930 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
7931
7932         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
7933         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
7934         * unwind.h (_Unwind_GetBSP): New prototype.
7935         * libgcc-std.ver: Add empty GCC_3.3.2 version.
7936         * mkmap-symver.awk: For symbol versions with no exported symbols,
7937         don't put anything into version script, just change all symbol
7938         versions which inherit from it to inherit from its ancestor.
7939
7940 2003-09-04  Eric Christopher  <echristo@redhat.com>
7941
7942         * config/mips/mips.c (mips_expand_prologue): Convert to
7943         calls.struct_value_rtx hook.
7944         (reg_or_const_float_1_operand): New.
7945         * config/mips/mips.h: Update Comments.
7946         (mips_arg): Add reg_or_const_float_1_operand.
7947         * config/mips/mips.md (divdf3); Convert to expander.
7948         (divsf3): Ditto.
7949         (*divdf3): New pattern.
7950         (*divsf3): Ditto.
7951
7952 2003-09-04  Jan Hubicka  <jh@suse.cz>
7953
7954         * toplev.c (wrapup_global_declarations): Fix final pass in
7955         unit-at-atime mode.
7956
7957 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
7958
7959         * doc/extend.texi: Document removal of cast-as-lvalue extension in
7960         C++.
7961
7962 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
7963
7964         * gcc.c (process_command): Fix typo.
7965
7966 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
7967
7968         optimization/11980
7969         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
7970         (PTRDIFF_TYPE): Likewise.
7971         (WCHAR_TYPE_SIZE): Likewise.
7972
7973 2003-09-03  DJ Delorie  <dj@redhat.com>
7974
7975         * targhooks.c: New file.
7976         * targhooks.h: New file.
7977         * Makefile.in: Add targhooks.o support.
7978         (function.o): Depend on$(TARGET_H).
7979         (stmt.o): Likewise.
7980         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
7981         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
7982         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
7983         (expand_builtin_saveregs): Convert to
7984         calls.expand_builtin_saveregs hook.
7985         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
7986         here, instead of ...
7987         (get_parm_info) ... here.
7988         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
7989         hook.
7990         (finish_function): Handle calls.promote_prototypes hook here too.
7991         * c-typeck.c (convert_arguments): Convert to
7992         calls.promote_prototypes hook.
7993         (c_convert_parm_for_inlining): Likewise.
7994         * calls.c (initialize_argument_information): Convert to
7995         calls.promote_function_args hook.
7996         (expand_call): Convert to calls.struct_value_rtx,
7997         calls.strict_argument_naming,
7998         calls.pretend_outgoing_varargs_named, and
7999         calls.promote_function_return hooks.  Pass fndecl to
8000         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
8001         hooks, so they can use that.
8002         (emit_library_call_value_1): Likewise.
8003         * combine.c (setup_incoming_promotions): Convert to
8004         calls.promote_function_args hook.
8005         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
8006         * expr.c (expand_assignment): Pass call to aggregate_value_p.
8007         (expand_expr): Likewise.
8008         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
8009         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8010         RETURN_IN_MEMORY macro defaults.
8011         * final.c (profile_function): Convert to calls.struct_value_rtx
8012         hook.
8013         * function.c (aggregate_value_p): Accept function type tree as
8014         second parameter; try to deduce fntype from it.  Convert to
8015         calls.return_in_memory hook.
8016         (assign_parms): Convert to calls.setup_incoming_varargs,
8017         calls.strict_argument_naming, calls.promote_function_args,
8018         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
8019         aggregate_value_p.
8020         (expand_function_start): Likewise.  Convert to
8021         calls.struct_value_rtx hook.
8022         (expand_function_end): Convert to calls.promote_function_return hook.
8023         (allocate_struct_function): Pass fndecl to aggregate_value_p.
8024         * hard-reg-set.h: Update comments to new hook names.
8025         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
8026         * reg-stack.c (stack_result): Likewise.
8027         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
8028         * stmt.c (expand_value_return): Convert to
8029         calls.promote_function_return hook.
8030         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
8031         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
8032         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
8033         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
8034         TARGET_STRICT_ARGUMENT_NAMING,
8035         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
8036         * target.h: Likewise.
8037         * tree.h (aggregate_value_p): Also takes a tree to deduce function
8038         attributes from (for target hooks).
8039         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
8040         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
8041         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
8042         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
8043         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
8044         to hooks.
8045
8046         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
8047         to aggregate_value_p.
8048         * config/arm/arm.c (arm_init_cumulative_args,
8049         arm_output_mi_thunk): Likewise.
8050         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
8051         Likewise.
8052         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
8053         mips_can_use_return_insn): Likewise.
8054         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
8055         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
8056         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
8057         aggregate_value_p.
8058         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
8059         function to aggregate_value_p.
8060         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
8061         aggregate_value_p.
8062
8063         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
8064         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
8065         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
8066         (sh_handle_renesas_attribute, sh_promote_prototypes,
8067         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
8068         sh_setup_incoming_varargs, sh_strict_argument_naming,
8069         sh_pretend_outgoing_varargs_named): New decls.
8070         (targetm): Add new hooks.
8071         (calc_live_regs): Save MACL and MACH if the function has the
8072         renesas attribute.
8073         (sh_expand_prologue): Support renesas attribute.
8074         (sh_builtin_saveregs): Make static.
8075         (sh_build_va_list): Support renesas attribute.
8076         (sh_va_start): Likewise.
8077         (sh_va_arg): Likewise.
8078         (sh_promote_prototypes): New.
8079         (sh_function_arg): New, moved from sh.h.  Support renesas
8080         attribute.
8081         (sh_function_arg_advance): Likewise.
8082         (sh_return_in_memory): Likewise.
8083         (sh_strict_argument_naming): Likewise.
8084         (sh_pretend_outgoing_varargs_named): Likewise.
8085         (sh_struct_value_rtx): New.
8086         (sh_attribute): Add renesas attribute.
8087         (sh_handle_renesas_attribute): New.
8088         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
8089         (sh_ms_bitfield_layout_p): Support renesas attribute also.
8090         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
8091         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
8092         -mhitachi.
8093         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
8094         target hooks.
8095         (sh_args): Add renesas_abi flag.
8096         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
8097         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
8098         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
8099         stack for the renesas abi.
8100         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
8101         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
8102         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
8103         call cookie to indicate renesas calls.
8104
8105 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
8106
8107         * gcse.c (replace_one_set): New function.
8108         (pre_insert_copy_insn): Change the order of copying
8109         to make copy propagation discover additional PRE opportunities.
8110
8111 2003-09-03  Roger Sayle  <roger@eyesopen.com>
8112
8113         PR optimization/11700.
8114         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
8115         of a hard register is representable before trying to simplify it
8116         using subreg_hard_regno.
8117
8118 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8119
8120         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
8121         * configure: Regenerate.
8122
8123 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8124
8125         * intl.h (N_): Remove parentheses.
8126
8127 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
8128
8129         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
8130         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
8131         definition and code blocks compiled when not defined.
8132         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
8133         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
8134         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
8135         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
8136
8137 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
8138
8139         * cgraphunit.c (visited_nodes): New static variable.
8140         (record_call_1): Use walk_tree with visited_nodes.
8141         (cgraph_create_edges): Use walk_tree with visited_nodes.
8142         Setup/teardown visited_nodes hashtable.
8143
8144 2003-09-03  Roger Sayle  <roger@eyesopen.com>
8145
8146         * toplev.c (flag_rounding_math): New global variable.
8147         (f_options): Add to the list of language independent options.
8148         * flags.h (flag_rounding_math): Prototype here.
8149         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
8150         * common.opt (frounding-math): New common command line option.
8151         * opts.c (common_handle_option): Handle OPT_frounding_math.
8152         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
8153
8154         * doc/invoke.texi: Document this new command line option.
8155
8156 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8157
8158         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
8159
8160 2003-09-03  Jan Hubicka  <jh@suse.cz>
8161
8162         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
8163         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
8164         * c-objc-common.c: Kill include of gt-c-objc-common.h
8165         (expand_deferred_fns, deffer_fn): Kill function.
8166         (deferred_fns): Kill variable.
8167         (finish_cdtor): Update finish_function call.
8168         (c_objc_common_finish_file): Always call cgraph code.
8169         * c-parse.c: Regenerate.
8170         * c-parse.y: Regenerate.
8171         * c-tree.h (finish_function): Update prototype.
8172         * objc-acct.c (build_module_descriptor, finish_method_def):
8173         Update call of finish_function.
8174         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
8175         forward prototype.
8176         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
8177         function and assemble it if needed.
8178         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
8179         mode.
8180         (cgraph_optimize): Likewise.
8181         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
8182         even when it has no inline callees.
8183         * c-parse.in: Update calls to finish_function.
8184
8185 2003-09-03  Nick Clifton  <nickc@redhat.com>
8186
8187         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
8188         Use #error to generate the message if TARGET_DEFAULT is not
8189         recognised.
8190
8191 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
8192
8193         * config/mips/mips.h (MASK_UNUSED1): Remove.
8194         (MASK_XGOT, TARGET_XGOT): Define.
8195         (TARGET_SWITCHES): Add an entry for -mxgot.
8196         (ASM_SPEC): Map -mxgot to -xgot.
8197         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
8198         whether we're using a big-GOT sequences.
8199         (mips_legitimize_const_move, mips_expand_call): Likewise.
8200         (override_options): Revert 2003-01-09 change.
8201         * doc/invoke.texi: Document -mxgot.
8202
8203 2003-09-02  Jason Merrill  <jason@redhat.com>
8204
8205         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
8206         * config/sparc/sol2.h: Not here.
8207
8208 2003-09-02  Roger Sayle  <roger@eyesopen.com>
8209
8210         * expr.c (expand_expr): The code following both_summands performs
8211         the same task as simplify_gen_binary.  Replace all gotos to
8212         both_summands with a call to simplify_gen_binary and delete the
8213         now unused label.
8214
8215 2003-09-02  Jason Merrill  <jason@redhat.com>
8216
8217         PR c++/7327
8218         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
8219
8220 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
8221
8222         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
8223         (cgraph_optimize_function): Set current_function_decl to the
8224         fndecl we're integrating from.
8225
8226 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8227
8228         * builtins.def: Break out _Complex math functions into their
8229         own category.
8230
8231 2003-09-02  Andreas Jaeger  <aj@suse.de>
8232
8233         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
8234
8235 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
8236
8237         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
8238         finding the note again.
8239
8240 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
8241
8242         * config.gcc: Remove host-specific rewrites of target_alias.
8243
8244 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
8245
8246         * Makefile.in (genprogs): Fix typo.
8247
8248         * Makefile.in (gencheck.o): Remove build commands.
8249         (dummy-conditions.o): Likewise.
8250         (read-rtl.o): Likewise.
8251         (gensupport.o): Likewise.
8252         (genconfig$(build_exeext)): Remove rule.
8253         (genconfig.o): Remove build commands.
8254         (genflags$(build_exeext)): Remove rule.
8255         (genflags.o): Remove build commands.
8256         (gencodes$(build_exeext)): Remove rule.
8257         (gencodes.o): Remove build commands.
8258         (genconstants.o): Remove build commands.
8259         (genemit$(build_exeext)): Remove rule.
8260         (genemit.o): Remove build commands.
8261         (genrecog$(build_exeext)): Remove rule.
8262         (genrecog.o): Remove build commands.
8263         (genextract$(build_exeext)): Remove rule.
8264         (genextract.o): Remove build commands.
8265         (genpeep$(build_exeext)): Remove rule.
8266         (genpeep.o): Remove build commands.
8267         (genattr$(build_exeext)): Remove rule.
8268         (genattr.o): Remove build commands.
8269         (genprognames): New variable.
8270         (genprogs): Likewise.
8271         (genobjs): Likewise.
8272         (genprogs): New rule.
8273         (genobjs): Likewise.
8274         (genattrtab.o): Remove build commands.
8275         (genautomata.o): Likewise.
8276         (genoutput$(build_exeext)): Remove rule.
8277         (genoutput.o): Remove build commands.
8278         (gengenrtl.o): Likewise.
8279         (genpreds.o): Likewise.
8280         (gengtype.o): Likewise.
8281         (genconditions.o): Likewise.
8282         (gen-protos.o): Likewise.
8283         (scan.o): Likewise.
8284         (fix-header.o): Likewise.
8285         (scan-decls.o): Likewise.
8286         (check-g++): Combine with other check targets.
8287         (check-gcc): Likewise.
8288         (check-g77): Likewise.
8289         (check-objc): Likewise.
8290
8291 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8292
8293         * config.gcc: Remove host-specific stuff which is unused here
8294         since the introduction of config.host.
8295
8296         * doc/fragments.texi: Mention config.host.
8297         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
8298         of config.build, config.host, and config.gcc.
8299
8300 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
8301
8302         * c-decl.c (pushdecl): Don't put variables on
8303         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
8304         incomplete.
8305
8306 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
8307
8308         * config.host: New file.
8309         * config.gcc: Remove some host-specific stuff and some
8310         logic needed only for repeated invocation.
8311         * configure.in: Use config.host.
8312         * configure: Regenerate.
8313
8314 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
8315
8316         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
8317         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
8318         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
8319         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
8320         * tree.def (BIT_ANDTC_EXPR): Kill.
8321
8322 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
8323
8324         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
8325         * configure: Regenerate.
8326
8327         * config.gcc:  Remove references to install_headers_dir, now unused
8328         since introduction of config.build.
8329         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
8330
8331         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
8332         config.build.
8333
8334         * config.build: New file.
8335         * config.gcc: Remove some build-specific stuff.
8336         * configure.in: Use config.build.
8337         * configure: Regnerate.
8338
8339 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
8340             Roger Sayle  <roger@eyesopen.com>
8341
8342         PR middle-end/11823
8343         * stmt.c (expand_end_case_type): Only use jump tables for dense
8344         switch statements when optimizing for size.
8345
8346 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
8347
8348         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
8349         the != 0 case, which ensures pending stack adjustments are flushed.
8350
8351 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8352
8353         * configure.frag: Delete file.
8354         * configure.in: Rename the substitution variables
8355         dep_host_xmake_file and dep_tmake_file to xmake_file and
8356         tmake_file respectively.  Do not expand $srcdir in the
8357         value of these; leave that for Make.  Introduce a new
8358         substitution varaible, all_lang_makefrags, which lists
8359         subdirectory Make-lang.in files; exclude these from
8360         all_lang_makefiles, which is now only for subdirectory
8361         outputs.  Do not invoke configure.frag.  Do not set nor
8362         AC_SUBST_FILE target_overrides, host_overrides, or
8363         language_fragments. Create build subdirectories in
8364         config.status extra commands.
8365         * configure: Regenerate.
8366         * Makefile.in: Update substitutions to match changes to
8367         configure.  Use include directives instead of @-insertions
8368         to read in host, target, and language fragments.
8369         (Makefile rule): Do not invoke configure.frag.  Do not copy
8370         config.status to config.run before executing it.  Set
8371         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
8372         regenerated.
8373         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
8374
8375 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8376
8377         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
8378         * c-typeck.c (same_translation_unit_p): New function.
8379         (comptypes): Use it instead of flags parameter to identify
8380         structure types from different translation units.
8381         * c-decl.c (duplicate_decls): Always call comptypes with
8382         COMPTYPE_STRICT flags argument.
8383         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
8384         to file_scope_decl.
8385
8386 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
8387
8388         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
8389         * c-decl.c (struct c_scope): Remove "incomplete" field.
8390         (pushdecl): Attach variables with incomplete types to
8391         the TYPE_MAIN_VARIANT of the incomplete type in question.
8392         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
8393         to complete, not at current_scope->incomplete.  All such
8394         variables do need completion.
8395
8396 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
8397         Nicolas Pitre <nico@cam.org>
8398
8399         * arm/lib1funcs.asm (RETCOND): Delete.
8400         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
8401         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
8402         (__ARM_ARCH__): Move here from ieee754-?f.S.
8403         (RET, RETc): Clean up definitions.
8404         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
8405         (FUNC_END): New macro that marks the end of any function.
8406         (ARM_FUNC_START): New macro that allows an assembler routine to be
8407         implemented in ARM code even if a Thumb-only build.
8408         Unconditionally include ieee754-?f.S.
8409         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
8410         Mark ends of functions.
8411         Split into separate conditionally-compiled units.
8412         Use RETLDM to return from routines.
8413         * arm/ieee754-sf.S: Similarly.
8414         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
8415         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
8416         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
8417         _fixsfsi and _fixunssfsi.
8418
8419         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
8420         multiplication underflows to zero.
8421         (__adddf3): Fix bug when using VFP ordering on little-endian
8422         processors.
8423         (__fixdfsi): Use rrx to extract the carry into a register instead of
8424         MRS instruction.  Optimize later use of result.
8425         * arm/ieee754-sf.S (__fixsfsi): Likewise.
8426         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
8427
8428 2003-08-29  Richard Henderson  <rth@redhat.com>
8429
8430         * tree-optimize.c: New file.
8431         * Makefile.in (OBJS-archive): Add tree-optimize.o.
8432         (tree-optimize.o): New.
8433         * c-decl.c (store_parm_decls): Use allocate_struct_function.
8434         (finish_function): Don't free_after_parsing or free_after_compilation.
8435         (set_save_expr_context): Move to tree-optimize.c.
8436         (c_expand_body_1): Use tree_rest_of_compilation.
8437         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8438         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
8439         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
8440         iterate until closure.
8441         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
8442         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
8443         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
8444         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
8445         * toplev.h (tree_rest_of_compilation): Declare it.
8446
8447 2003-08-29  Richard Henderson  <rth@redhat.com>
8448
8449         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
8450         * integrate.c (save_for_inline): Set saved_for_inline.
8451         * c-semantics.c (genrtl_scope_stmt): Check it.
8452         * toplev.c (wrapup_global_declarations): Check it.
8453         (rest_of_handle_inlining): Set and check rtl_inline_init.
8454         (rest_of_compilation): Remove out of date comment.
8455
8456 2003-08-29  Richard Henderson  <rth@redhat.com>
8457
8458         * function.c (allocate_struct_function): New, split out of ...
8459         (prepare_function_start, init_function_start): ... here.
8460         * expr.c (init_expr): Use ggc_alloc_cleared.
8461         * stmt.c (init_stmt_for_function): Likewise.
8462         * tree.h (allocate_struct_function): Declare.
8463
8464 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8465
8466         * config.gcc: Don't use negated character class in shell case
8467         clause.
8468
8469 2003-08-29  Richard Henderson  <rth@redhat.com>
8470
8471         * function.h (struct function): Move function_frequency and
8472         max_jumptable_ents before start of bit field members.
8473
8474 2003-08-29  Richard Henderson  <rth@redhat.com>
8475
8476         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
8477         (fold_builtin_constant_p) ... not here.
8478
8479 2003-08-29  Richard Henderson  <rth@redhat.com>
8480
8481         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
8482         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
8483         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
8484
8485 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8486
8487         * builtins.def: Fix typos.
8488         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
8489         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
8490         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
8491         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
8492         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
8493
8494         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
8495         Use ATTR_MATHFN_FPROUNDING_ERRNO.
8496
8497 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8498
8499         * config.gcc (i386-*-vsta): Fix obvious bogosity.
8500
8501         * fixinc/inclhack.def:  Remove special cases for unsupported
8502         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
8503         * fixinc/fixincl.x: Regenerate.
8504
8505 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
8506
8507         * Makefile.in (cpp.info): Just state dependencies.
8508         (gcc.info): Likewise.
8509         (gccint.info): Likewise.
8510         (gccinstall.info): Likewise.
8511         (cppinternals.info): Likewise.
8512         (cpp.dvi): Likewise.
8513         (gcc.dvi): Likewise.
8514         (gccint.dvi): Likewise.
8515         (gccinstall.dvi): Likewise.
8516         (cppinternals.dvi): Likewise.
8517         (gcov.1): Likewise.
8518         (cpp.1): Likewise.
8519         (gcc.1): Likewise.
8520         (gfdl.7): Likewise.
8521         (gpl.7): Likewise.
8522         (fsf-funding.7): Likewise.
8523         ($(objdir)/%.info): New pattern rule.
8524         (%.dvi): Likewise.
8525
8526 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
8527
8528         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
8529         (restage2): Likewise.
8530         (restage3): Likewise.
8531         (restage4): Likewise.
8532         (restageprofile): Likewise.
8533         (restagefeedback): Likewise.
8534         (bubblestrap): Likewise.
8535
8536 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
8537
8538         * config.gcc: Narrow unsupported target match to avoid clobbering
8539         i?86-sequent-sysv4*.
8540
8541 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8542
8543         * builtins.c (mathfn_built_in): Handle new math builtins.
8544
8545 2003-08-28  Per Bothner  <per@bothner.com>
8546
8547         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
8548         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
8549         (_cpp_lex_buffer):  Likewise.
8550         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
8551
8552 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8553
8554         * config/s390/s390.md ("*mulsi3_sign"): New insn.
8555         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
8556         ("mulsidi3"): ... this new insn.
8557         ("umulsidi3"): New insn.
8558         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
8559         mixed-mode matching constraints.
8560         ("udivmodsi4", "udivmoddisi3"): New insns.
8561         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
8562
8563 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8564
8565         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
8566         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
8567         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
8568         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
8569         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
8570         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
8571         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
8572         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
8573         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
8574         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
8575         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
8576         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
8577         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
8578         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
8579         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
8580         * tree.c: Assign new type_nodes.
8581         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
8582         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
8583         (float_ptr_type_node, double_ptr_type_node,
8584         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
8585
8586         * doc/extend.texi: Document new builtins.
8587
8588 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8589
8590         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
8591         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
8592
8593         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
8594         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
8595         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
8596         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
8597         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
8598         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
8599         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
8600         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
8601         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
8602         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
8603
8604         * doc/extend.texi: Document new builtins.
8605
8606 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
8607
8608         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8609         variants of i?86, powerpcle, and thumb.
8610         * fixinc/mkfixinc.sh: Remove special case code for unsupported
8611         arm and hppa variants.
8612
8613 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8614
8615         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
8616         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
8617         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
8618         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
8619         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
8620         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
8621         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
8622         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
8623         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
8624         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
8625
8626         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
8627         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
8628         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
8629         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
8630         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
8631         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
8632         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
8633         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
8634         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
8635         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
8636         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
8637         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
8638         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
8639         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
8640         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
8641         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
8642         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
8643         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
8644         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
8645         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
8646         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
8647         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
8648         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
8649         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
8650         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
8651         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
8652         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
8653         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
8654         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
8655         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
8656         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
8657
8658         * doc/extend.texi: Document new builtins.
8659
8660 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
8661
8662         * config/s390/s390.c (legitmate_constant_p): Use LARL on
8663         zSeries machines even in 31-bit addressing mode.
8664         (legitimate_reload_constant_p): Likewise.
8665         (legitimize_pic_address): Likewise.
8666         (legitimize_tls_address): Likewise.
8667         (s390_split_branches): Likewise.
8668         (s390_dump_pool): Likewise.
8669         (s390_mainpool_finish): Likewise.
8670         (s390_chunkify_start): Likewise.
8671         (s390_select_rtx_section): Likewise.
8672         * config/s390/s390.md ("doloop_si"): Likewise.
8673         ("pool_start_31", "pool_end_31"): Likewise.
8674         ("pool_start_64", "pool_end_64"): Likewise.
8675         ("main_base_31_small", "main_base_31_large"): Likewise.
8676         ("main_base_64"): Likewise.
8677         ("reload_base_31", "reload_base_64"): Likewise.
8678         ("*movsi_larl"): New insn.
8679         ("cjump", "icjump"): Use long branches on zSeries machines.
8680         ("jump"): Likewise.
8681         ("call"): Use BRASL on zSeries machines.
8682         ("call_value", "call_value_tls"): Likewise.
8683         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
8684         and replace by ...
8685         ("*bras", "*brasl", "*basr") ... these new insns.
8686         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
8687         "bas_31_r"): Remove and replace by ...
8688         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
8689         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
8690         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
8691         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
8692         ("*return_si", "*return_di"): Remove and replace by ...
8693         ("*return"): ... this new insn.
8694         ("rotlsi3"): Allow on zSeries machines.
8695
8696         * config/s390/s390.c (legitimize_reload_constant_p): Use
8697         LL/LH type instructions in z/Architecture mode.
8698         * config/s390/s390.md ("*movsi_lli"): Likewise.
8699         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
8700         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
8701         ("*extendqisi2"): Use LB in z/Architecture mode.
8702         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
8703         z/Architecture mode.
8704         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
8705         Likewise.
8706
8707         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
8708         and 31-bit mode.
8709         ("ptr_extend"): Allow only in 64-bit mode.
8710
8711 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
8712
8713         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
8714         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
8715         definitions.
8716         (main): Only use standard_startfile_prefix if native.
8717         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
8718
8719 2003-08-27  Per Bothner  <pbothner@apple.com>
8720
8721         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
8722         test fails following my 08-21 change, and it seems unnecessary anyway.
8723         (cpp_error):  Likewise.
8724
8725 2003-08-27  Jason Merrill  <jason@redhat.com>
8726
8727         * real.c (do_multiply): Initialize with memset.
8728
8729 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
8730
8731         * gcov.c (typedef struct arc_info): New field cs_count.
8732         (accumulate_line_counts): Find cycles correctly.
8733
8734 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
8735
8736         * config/s390/s390.c (struct machine_function): Remove member
8737         literal_pool_label.
8738         (s390_optimize_prolog): Replace TEMP_REG argument with
8739         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
8740         (general_s_operand): Accept all immediates before reload if
8741         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
8742         references.
8743         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
8744         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
8745         (s390_alloc_pool): New function.
8746         (s390_new_pool): Call it.
8747         (s390_dump_pool): Add REMOTE_LABEL argument.
8748         (s390_chunkify_start): Add BASE_REG argument.  Do not check
8749         get_pool_size ().
8750         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
8751         s390_dump_pool call.
8752         (s390_pool_count, s390_nr_constants): Remove.
8753         (s390_output_constant_pool): Remove.
8754         (s390_mainpool_start): New function.
8755         (s390_mainpool_finish): New function.
8756         (s390_mainpool_cancel): New function.
8757         (s390_reorg): Implement main literal pool handling.
8758         (s390_emit_prologue): Emit main_pool placeholder instead of
8759         literal_pool_31 / literal_pool_64 insns.
8760         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
8761         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
8762         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
8763         ("main_base_31_small", "main_base_31_large"): New insns.
8764         ("main_base_64",  "main_pool"): New insns.
8765         ("literal_pool_31", "literal_pool_64"): Remove.
8766
8767 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
8768
8769         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
8770         fixinc.ptx.
8771         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
8772         Prettify a little.
8773         * fixinc/fixincl.x: Regenerate.
8774
8775 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
8776
8777         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
8778         (L_ieee754_dp): New.  Include ieee754-df.S.
8779         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
8780         and compilation in apcs-26 mode.
8781         * arm/ieee754-df.S: Likewise.
8782         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
8783         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
8784
8785 2003-08-27  Nicolas Pitre  <nico@cam.org>
8786
8787         * arm/ieee754-sf.S: New.
8788         * arm/ieee754-df.S: New.
8789
8790 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
8791
8792         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
8793         and restore it if returning NULL.
8794
8795 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
8796
8797         * calls.c (initialize_argument_information): If an argument has no
8798         stack space associated with it, and BLOCK_REG_PADDING is defined,
8799         use it to decide at which end the argument should be padded.
8800         * function.c (assign_parms): Allocate BLKmode stack slots.
8801         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
8802         (mips_pad_reg_upward): Declare.
8803         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
8804         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
8805         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
8806         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
8807         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
8808         (mips_expand_call): Remove code for generating structure shifts.
8809         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
8810         types unless using the EABI.
8811         (function_arg_advance): Don't generate shift instructions.
8812         (function_arg): Don't return them.  Don't short-circuit the
8813         check for double structure chunks for DFmode arguments.
8814         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
8815         (mips_expand_prologue): Remove code to emit structure shifts.
8816         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
8817         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
8818         comments to say that only structure returns are a problem.
8819
8820 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8821
8822         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
8823         Fix to match produced versions.
8824         * fixinc/inclhack.def (longlong_t): New disabled test, ported
8825         from fixinc.svr4.
8826         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
8827         from fixinc.ptx.
8828         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
8829         ported from fixinc.ptx.
8830
8831 2003-08-26  Per Bothner  <pbothner@apple.com>
8832
8833         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
8834         (cpp_error_with_line):  Use fileline for appropriate parameter.
8835         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
8836         (struct cpp_reader):  Likewise for fields line and directive_line.
8837         (_cpp_begin_message):  Use fileline for appropriate parameter.
8838         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
8839         cpp_error):  Use fileline for appropriate parameters and variables.
8840         (print_location):  New local lin, since it is not a fileline.
8841
8842 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8843
8844         PR middle-end/12002
8845         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
8846         (FLOAT_TYPE_P): Define in terms of these two new macros.
8847         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
8848         for complex floating point types.
8849
8850 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
8851
8852         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
8853         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
8854         s390_output_pool_entry.
8855
8856 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
8857
8858         * fixinc/inclhack.def (svr4_preproc_lint_on,
8859         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
8860         fixes, ported from fixinc.svr4.
8861
8862 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
8863
8864         * doc/install.texi (Prerequisites): Mention GNU make requirement.
8865
8866         * Makefile.in (AR_FOR_TARGET): Export it.
8867         (AR_CREATE_FOR_TARGET): Likewise.
8868         (AR_FLAGS_FOR_TARGET): Likewise.
8869         (AR_EXTRACT_FOR_TARGET): Likewise.
8870         (AWK): Likewise.
8871         (BUILD_PREFIX): Likewise.
8872         (BUILD_PREFIX_1): Likewise.
8873         (DESTDIR): Likewise.
8874         (GCC_FOR_TARGET): Likewise.
8875         (INCLUDES): Likewise.
8876         (INSTALL_DATA): Likewise.
8877         (LIB1ASMSRC): Likewise.
8878         (LIBGCC2_CFLAGS): Likewise.
8879         (MACHMODE_H): Likewise.
8880         (NM_FOR_TARGET): Likewise.
8881         (RANLIB_FOR_TARGET): Likewise.
8882         (libsubdir): Likewise.
8883         (slibdir): Likewise.
8884         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
8885         exporting.
8886         (libgcc.a): Don't pass them here.
8887         (stmp-multilib): Or here.
8888         (install-libgcc): Or here.
8889         (install-multilib): Or here.
8890         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
8891         (stage1_build): Or here.
8892
8893 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8894
8895         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
8896         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
8897
8898 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
8899
8900         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
8901         "*fmaddsf", "*fmsubsf"): New insns.
8902
8903 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8904
8905         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
8906         (C1*C2)/X when unsafe math optimizations are allowed.
8907         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
8908         math optimizations.  Minor code clean-ups.  Recursively call
8909         fold when constructing sub-expressions.
8910
8911 2003-08-26  Roger Sayle  <roger@eyesopen.com>
8912
8913         * builtins.c (fold_builtin_bitop): New function to perform constant
8914         folding of ffs, clz, ctz, popcount and parity builtin functions
8915         and their long and long long variants (such as ffsl and ffsll).
8916         (fold_builtin): fold_builtin_bitop when appropriate.
8917         * simplify-rtx.c (simplify_unary_operation): Honor both
8918         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
8919         evaluating clz and ctz at compile-time, for operands wider
8920         than HOST_WIDE_INT.
8921
8922 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
8923
8924         * builtins.c (build_function_call_expr): Don't set
8925         TREE_SIDE_EFFECTS here.
8926         * expr.c (emit_block_move_via_libcall): Likewise.
8927         (clear_storage_via_libcall): Likewise.
8928         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
8929         CALL_EXPRs.
8930
8931         * gcse.c (is_too_expensive): New function.
8932         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
8933
8934 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
8935
8936         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
8937         commented-out logic to use DCE threads (if present), add
8938         support for POSIX threads.
8939         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
8940         #defines for -pthread.  Add -lpthread to LIB_SPEC when
8941         -pthread.  In both cases take -mt as a synonym for -pthread
8942         for acc compatibility.
8943         Define GTHREAD_USE_WEAK to 0.
8944         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
8945         Remove old logic for DCE threads from LIB_SPEC.
8946         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
8947
8948 2003-08-25  Roger Sayle  <roger@eyesopen.com>
8949
8950         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
8951         return 0 for invalid argument types.  Instead drop through to a
8952         call of expand_call at the bottom of function.  If op is SQRT,
8953         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
8954
8955 2003-08-25  Richard Henderson  <rth@redhat.com>
8956
8957         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
8958         result when op0 is SImode.
8959
8960 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
8961
8962         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
8963         from fixinc.svr4.
8964         * fixinc/fixincl.x: Regenerate.
8965         * fixinc/tests/base/sys/signal.h: Regenerate.
8966
8967 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8968
8969         * combine.c (simplify_comparison): Re-enable widening of comparisons
8970         with non-paradoxical subregs of non-REG expressions.
8971
8972 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8973
8974         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
8975
8976 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
8977
8978         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
8979
8980 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8981
8982         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
8983         * c-pretty-print.h (c_pretty_printer): Now typedef to the
8984         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
8985         (struct c_pretty_print_info): Document.  Add new fields.
8986         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
8987         (pp_direct_abstract_declarator): New macro.
8988         (pp_ptr_operator): Likewise.
8989         (pp_simple_type_specifier): Likewise.
8990         (pp_expression): Likewise.
8991         (pp_parameter_list): Rename from pp_parameter_declaration.
8992         * c-pretty-print.c (pp_c_whitespace): Now a function.
8993         (pp_c_left_paren): Likewise.
8994         (pp_c_right_paren): Likewise.
8995         (pp_c_dot): Likewise.
8996         (pp_c_ampersand): Likewise.
8997         (pp_c_arrow): Likewise.
8998         (pp_c_semicolon): Likewise.
8999         (pp_c_type_cast): New function.
9000         (pp_c_space_for_pointer_operator): Likewise.
9001         (pp_c_call_argument_list): Likewise.
9002         (pp_c_cv_qualifier): Adjust prototype.
9003         (pp_c_type_qualifier_list): Likewise.
9004         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
9005         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
9006         Adjust to follow standard grammar.
9007         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
9008         REFERENCE_TYPE.  Tidy.
9009         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
9010         (pp_c_parameter_declaration): Remove.
9011         (pp_c_abstract_declarator): Adjust prototype.
9012         (pp_c_direct_abstract_declarator): Likewise.
9013         (pp_c_type_id): Likewise.
9014         (pp_c_storage_class_specifier): Likewise.
9015         (pp_c_function_specifier): Likewise.
9016         (pp_c_declaration_specifiers): Likewise.
9017         (pp_c_direct_declarator): Likewise.
9018         (pp_c_declarator): Likewise.
9019         (pp_c_declarator): Likewise.
9020         (pp_c_declaration): Likewise.
9021         (pp_c_attributes): Likewise.  Tidy.
9022         (pp_c_function_definition): Adjust prototype.
9023         (pp_c_char): Likewise.
9024         (pp_c_string_literal): Likewise.
9025         (pp_c_integer_constant): Likewise.
9026         (pp_c_character_constant): Likewise.
9027         (pp_c_bool_constant): Likewise.
9028         (pp_c_enumeration_constant): Likewise.
9029         (pp_c_floating_constant): Likewise.
9030         (pp_c_constant): Likewise.
9031         (pp_c_identifier): Likewise.
9032         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
9033         (pp_c_initializer): Adjust prototype.
9034         (pp_c_init_declarator): Likewise.
9035         (pp_c_initializer_list): Likewise.
9036         (pp_c_id_expression): Likewise.
9037         (pp_c_postfix_expression): Likewise.
9038         (pp_c_expression_list): Likewise.
9039         (pp_c_unary_expression): Likewise.
9040         (pp_c_cast_expression): Likewise.
9041         (pp_c_multiplicative_expression): Likewise.
9042         (pp_c_additive_expression): Likewise.
9043         (pp_c_shift_expression): Likewise.
9044         (pp_c_relational_expression): Likewise.
9045         (pp_c_equality_expression): Likewise.
9046         (pp_c_and_expression): Likewise.
9047         (pp_c_exclusive_or_expression): Likewise.
9048         (pp_c_inclusive_or_expression): Likewise.
9049         (pp_c_logical_and_expression): Likewise.
9050         (pp_c_logical_or_expression): Likewise.
9051         (pp_c_conditional_expression): Likewise.
9052         (pp_c_assignment_expression): Likewise.
9053         (pp_c_expression): Likewise.  Tidy.
9054         (pp_c_statement): Likewise.  Document.
9055         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
9056
9057         * c-lang.c (c_initialize_diagnostics): Update.
9058         * c-common.h (strip_pointer_operator): Declare.
9059         * c-common.c (strip_pointer_operator): Define.
9060
9061 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
9062
9063         PR c++/8795
9064         * tree.h (build_method_type_directly): Declare.
9065         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
9066         (vector_size_helper): Likewise.
9067         * tree.c (build_method_type_directly): New function.
9068         (build_method_type): Use it.
9069
9070 2003-08-24  Richard Henderson  <rth@redhat.com>
9071
9072         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
9073         for 16-byte vector modes if sse not enabled; warn for abi change.
9074         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
9075
9076 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
9077
9078         * rtlanal.c (may_trap_p): Simplify an integer comparison.
9079
9080 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
9081
9082         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
9083         comment.  Enable for DYNIX/ptx systems (when they switch to
9084         regular fixincludes).
9085         * fixinc/fixincl.x: Regenerate.
9086
9087 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9088
9089         * config/i860/t-i860: New.
9090         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
9091
9092 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
9093
9094         * c-decl.c (pushdecl): Only put decls which finish_struct will do
9095         something about onto incomplete chain.
9096         (finish_struct): If not removing type from incomplete
9097         list, update prev.
9098
9099 2003-08-20  Jan Hubicka  <jh@suse.cz>
9100
9101         PR target/11369
9102         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
9103
9104         PR target/11031
9105         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
9106         const_0_to_15_operand, const_0_to_255_operand): New predicates.
9107         * i386.h (PREDICATE_CODES): Add these.
9108         * i386.c (pinsrw and pextrw patterns): Use them.
9109
9110         PR target/10984
9111         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
9112
9113         PR target/8869
9114         * expr.c (convert_modes): Deal properly with integer to vector
9115         constant conversion.
9116
9117         PR target/8871
9118         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
9119
9120 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9121
9122         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
9123         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
9124         ("*movhi"): ... this.
9125         ("movqi", "*movqi"): Likewise.
9126         ("movqi_64"): Remove.
9127         ("*zero_extendhisi2_31"): Change predicate to s_operand.
9128
9129 2003-08-23  Dale Johannesen  <dalej@apple.com>
9130         * calls.c (emit_library_call_value_1): Fix obvious errors in
9131         arguments to emit_group_store.
9132
9133 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9134
9135         * calls.c (emit_library_call_value_1): Remove code related
9136         to LIBGCC_NEEDS_DOUBLE.
9137         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
9138         * doc/tm.texi: Likewise.
9139         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
9140
9141 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
9142
9143         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
9144
9145 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
9146
9147         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
9148         as well.  Put memory references in the varargs alias set.
9149         (mips_expand_prologue): Remove varargs handling from here.
9150
9151 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9152
9153         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
9154         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
9155         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
9156         for function pointer calls.
9157         * config/s390/s390.md ("*negdi2_31"): Likewise.
9158
9159 2003-08-23  Roger Sayle  <roger@eyesopen.com>
9160
9161         * combine.c (apply_distributive_law): Correct comment.
9162
9163 2003-08-23  Jason Eckhardt  <jle@rice.edu>
9164
9165         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
9166
9167 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9168
9169         * config/i860/i860.c (i860_build_va_list): Create the va_decl
9170         declaration.  Document the va_list structure.
9171         (i860_va_start): Initialize the va_list structure.
9172         (i860_va_arg): Rewrite completely.
9173         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
9174         * config/i860/varargs.asm: Do not allocate or initialize
9175         a va_list.  Return the address of the register save area.
9176
9177 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9178
9179         * config/iq2000/iq2000.c: Fix comment typos.
9180         * config/iq2000/iq2000.md: Likewise.
9181
9182 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9183
9184         * config/iq2000/iq2000.c: Follow spelling conventions.
9185         * config/iq2000/iq2000.h: Likewise.
9186         * config/mn10300/mn10300.c: Likewise.
9187
9188 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9189
9190         * config/i860/i860.c (output_move_double): Don't set latehalf
9191         to zero for CONST_INT (since it could be, e.g., -1).
9192
9193         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
9194         (MODSI3_LIBCALL): ...with this one.
9195         (UREMSI3_LIBCALL): Replace this macro...
9196         (UMODSI3_LIBCALL): ...with this one.
9197
9198 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9199
9200         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
9201         (output_delayed_branch): Remove prototype.
9202         (single_insn_src_p): Remove prototype.
9203         * config/i860/i860.c (single_insn_src_p): Remove function.
9204         (output_delayed_branch): Remove function.
9205         (output_delay_insn): Remove function.
9206         (va_start): Remove unconditional test and dead code, re-format.
9207         Fix coding style and spelling problems in various comments.
9208         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
9209         (blockage pattern): ...and use it here.
9210         (all define_peephole patterns related to delayed branches): Remove.
9211         Fix coding style and spelling problems in various comments.
9212
9213 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9214
9215         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
9216         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
9217         Convert all function definitions from traditional to ISO C90 syntax.
9218         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
9219         with 'GCC'.  Remove all uses of the PARAMS macro.
9220         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
9221         * config/i860/i860.md: Likewise.
9222         * config/i860/sysv4.h: Likewise.
9223         * config/i860/varargs.asm: Likewise.
9224
9225 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9226
9227         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
9228         argument.
9229         (tdesc_section): Add prototype.
9230         Update copyright dates.
9231         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
9232         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
9233         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
9234         (targetm): Likewise.
9235         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
9236         for '%d' where necessary.
9237         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
9238         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
9239         by UNITS_PER_WORD when referencing (likewise for .floats).
9240         (I860_SVR4_VARARGS): Rename...
9241         (I860_SVR4_VA_LIST): ...to this.
9242         Call build() with 't' rather than 'field'.
9243         (i860_rtx_costs): New function.
9244         (TARGET_RTX_COSTS): Define.
9245         (i860_internal_label): New function.
9246         (TARGET_ASM_INTERNAL_LABEL): Define.
9247         (i860_file_start): New function.
9248         Update copyright dates.
9249         * config/i860/i860.h (CPP_PREDEFINES): Remove.
9250         (TARGET_CPU_CPP_BUILTINS): Define.
9251         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
9252         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
9253         (ASM_FILE_START): Remove.
9254         (ASM_FILE_START_1): Remove.
9255         (ASM_GLOBALIZE_LABEL): Remove.
9256         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
9257         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
9258         with targetm.asm_out.internal_label.
9259         Update copyright dates.
9260         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
9261         (CPP_PREDEFINES): Remove.
9262         (TARGET_OS_CPP_BUILTINS): Define.
9263         (GLOBAL_ASM_OP): Define.
9264         (ASM_FILE_START): Remove.
9265         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
9266         (TARGET_ASM_FILE_START): Define.
9267         Update copyright dates.
9268
9269 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9270
9271         * gcc/config.gcc (i860-*-sysv4*): Add target.
9272         * config/i860/i860-protos.h: New.
9273         * config/i860/i860.c: New.
9274         * config/i860/i860.h: New.
9275         * config/i860/i860.md: New.
9276         * config/i860/sysv4.h: New.
9277         * config/i860/varargs.asm: New.
9278         * config/i860/x-sysv4: New.
9279
9280 2003-08-22  Jason Eckhardt  <jle@rice.edu>
9281
9282         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
9283         Remove all uses of PARAMS macro.
9284         Convert all function definitions to ISO C90 syntax.
9285         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
9286         * config/pa/fptr.c: Likewise.
9287         * config/pa/lib2funcs.asm: Likewise.
9288         * config/pa/long_double.h: Likewise.
9289         * config/pa/milli64.S: Likewise.
9290         * config/pa/pa-64.h: Likewise.
9291         * config/pa/pa-hpux.h: Likewise.
9292         * config/pa/pa-hpux10.h: Likewise.
9293         * config/pa/pa-hpux11.h: Likewise.
9294         * config/pa/pa-linux.h: Likewise.
9295         * config/pa/pa-modes.def: Likewise.
9296         * config/pa/pa-osf.h: Likewise.
9297         * config/pa/pa-pro-end.h: Likewise.
9298         * config/pa/pa.md: Likewise.
9299         * config/pa/pa32-linux.h: Likewise.
9300         * config/pa/pa64-linux.h: Likewise.
9301         * config/pa/pa64-hpux.h: Likewise.
9302         * config/pa/pa64-regs.h: Likewise.
9303         * config/pa/quadlib.c: Likewise.
9304         * config/pa/rtems.h: Likewise.
9305         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
9306         all uses of the PARAMS macro.
9307         * config/pa/pa.h: Likewise.
9308         * config/pa/som.h: Likewise.
9309
9310         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
9311         Remove all uses of PARAMS macro.
9312         Convert all function definitions to ISO C90 syntax.
9313         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
9314         Remove all uses of PARAMS macro.
9315         * config/iq2000.h: Remove all uses of PARAMS macro.
9316         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
9317
9318 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
9319
9320         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
9321         * config/s390/s390.c (gen_consttable): Remove.
9322         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
9323         (s390_output_pool_entry): New function.
9324         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
9325         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
9326         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
9327         (UNSPECV_POOL_ENTRY): ... this new constant.
9328         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
9329         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
9330         ("*pool_entry"): ... and replace by this new insn.
9331         ("literal_pool_31"): Do not emit anchor label if pool empty.
9332
9333         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
9334         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
9335         (s390_fixup_clobbered_return_reg): Remove.
9336         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
9337         (s390_return_addr_rtx): Always retrieve return address from save area
9338         slot.  Use save_return_addr_p to force slot to be filled.
9339         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
9340
9341 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
9342
9343         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
9344         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
9345         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
9346         around SB-1 errata if TARGET_FIX_SB1 is set.
9347         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
9348         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
9349
9350 2003-08-22  Roger Sayle  <roger@eyesopen.com>
9351
9352         * hashtable.c (ht_expand): Avoid calculating rehash for the common
9353         case that the first probe hits an empty hash table slot.
9354
9355 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9356
9357         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
9358
9359 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
9360
9361         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
9362         (ptr_extend_plus_imm): ... this.
9363         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
9364         optimization in C++.
9365         (ia64_output_mi_thunk): Support ILP32 mode.
9366
9367 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9368
9369         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
9370         function.
9371         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
9372
9373 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9374
9375         * config/i386/i386.c (const_int_1_operand): Simplify an
9376         integer comparison.
9377
9378 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
9379
9380         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
9381         * config/rs6000/ppc64-fp.c: Likewise.
9382
9383 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9384
9385         * cfgcleanup.c: Fix comment typos.
9386         * emit-rtl.c: Likewise.
9387         * optabs.c: Likewise.
9388         * ra-build.c: Likewise.
9389         * rtlanal.c: Likewise.
9390         * tree.h: Likewise.
9391
9392 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9393
9394         * c-decl.c: Fix comment formatting.
9395         * cfgrtl.c: Likewise.
9396         * combine.c: Likewise.
9397         * convert.c: Likewise.
9398         * dominance.c: Likewise.
9399         * dwarf2out.c: Likewise.
9400         * dwarfout.c: Likewise.
9401         * expmed.c: Likewise.
9402         * fold-const.c: Likewise.
9403         * gcov.c: Likewise.
9404         * genattrtab.c: Likewise.
9405         * ggc-common.c: Likewise.
9406         * mips-tfile.c: Likewise.
9407         * regmove.c: Likewise.
9408
9409 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
9410
9411         * builtin-attrs.def: Fix comment formatting.
9412         * c-pretty-print.c: Likewise.
9413         * diagnostic.h: Likewise.
9414         * langhooks.h: Likewise.
9415         * recog.c: Likewise.
9416         * simplify-rtx.c: Likewise.
9417         * tree.def: Likewise.
9418
9419 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
9420
9421         * config/m68k/m68k-protos.h: Convert to ISO C90.
9422         * config/m68k/m68k.c: Likewise.
9423
9424 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
9425             Paul Dale  <pauli@snapgear.com>
9426             Peter Barada <peter@baradas.org>
9427
9428         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
9429         ColdFire cores.
9430
9431 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
9432
9433         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
9434         * config.gcc (*-*-openbsd): Don't set tm_file.
9435         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
9436         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
9437         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
9438         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
9439         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
9440         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
9441         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
9442         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
9443         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
9444         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
9445         xscale-*-coff): Use explicit and complete lists of target headers
9446         to include.  Move definitions to tm_defines where appropriate.
9447         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
9448         not-yet-contributed configuration.
9449
9450         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
9451         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
9452         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
9453         * config/i386/nto.h, config/iq2000/iq2000.h,
9454         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
9455         * config/m68k/linux.h, config/m68k/m68k-aout.h
9456         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
9457         * config/m68k/netbsd.h, config/m68k/openbsd.h
9458         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
9459         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
9460         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
9461         Remove includes of other target config headers, and
9462         definitions of macros moved to tm_defines lists.  Add #undefs
9463         where now necessary to prevent redefinition warnings.
9464
9465         * config/h8300/coff.h: New file split out of...
9466         * config/h8300/elf.h: ...here.
9467         * config/m68k/hp320base.h: New file split out of...
9468         * config/m68k/hp320.h: ...here.
9469         * config/rs6000/lynxbase.h: New file split out of...
9470         * config/rs6000/lynx.h: ...here.
9471
9472         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
9473         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
9474
9475         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
9476         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
9477         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
9478         Remove unnecessary #ifndef.
9479         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
9480         [under IN_LIBGCC2] with config/.
9481
9482 2003-08-21  Per Bothner  <pbothner@apple.com>
9483
9484         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
9485         to cpp_push_buffer.
9486         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
9487         by return_at_eof check.  Always call _cpp_pop_buffer at end.
9488
9489 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
9490
9491         PR target/11805
9492         * config/h8300/h8300.md (two anonymous patterns): Remove.
9493
9494 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
9495
9496         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
9497         * config/mips/mips.c (function_arg_pass_by_reference): Never return
9498         true for n32 & n64.
9499
9500 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
9501
9502         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
9503         and similarly in (A | C) == D where C & ~D != 0.
9504
9505 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
9506
9507         PR 8180
9508         * configure.in: When testing with_libs and with_headers, treat
9509         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
9510         * configure: Regenerate.
9511
9512 2003-08-20  Peter Barada <peter@baradas.org>
9513
9514         * longlong.h (umul_ppmm): Add ColdFire support.
9515
9516 2003-08-20  Peter Barada <peter@baradas.org>
9517             Bernardo Innocenti  <bernie@develer.com>
9518
9519         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
9520         * config/m68k/m68k.h: Likewise.
9521         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
9522         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
9523         * config/m68k/linux.h: Likewise.
9524         * config/m68k/m68k.c: Likewise.
9525         * config/m68k/m68k.md: Likewise.
9526         * config/m68k/m68kelf.h: Likewise.
9527         * config/m68k/netbsd-elf.h: Likewise.
9528         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
9529
9530 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
9531
9532         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
9533         * config/m68k/m68k.md: Likewise.
9534
9535 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
9536
9537         PR java/11996
9538         Revert this change:
9539         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9540         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9541         types with precisions other than those given by native machine
9542         modes.
9543
9544 2003-08-20  Gunther Nikl  <gni@gecko.de>
9545
9546         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
9547         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
9548         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
9549         * config/m68k/m68k.md (anonymous define_insn): Likewise
9550         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
9551         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
9552         code selected by NO_ASM_FMOVECR
9553
9554 2003-08-20  Gunther Nikl  <gni@gecko.de>
9555
9556         * config/m68k/m68k.c (output_move_const_into_data_reg,
9557         output_move_himode): unify MOTOROLA/MIT handling of moveq
9558         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
9559         Likewise
9560
9561 2003-08-20  Gunther Nikl  <gni@gecko.de>
9562
9563         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
9564         label name
9565         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
9566         HOST_WIDE_INT_PRINT_DEC with %wd
9567
9568 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
9569
9570         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
9571         redefine warning.
9572
9573 2003-08-20  Roger Sayle  <roger@eyesopen.com>
9574
9575         PR middle-end/11984
9576         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
9577         operands before calling tree_int_cst_lt when performing associative
9578         transformations.
9579
9580 2003-08-20  Jason Merrill  <jason@redhat.com>
9581
9582         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
9583         (EXPR_CHECK): Don't check for 'r' or 's' if we're
9584         checking IS_EXPR_CODE_CLASS.
9585         * calls.c (calls_function_1): Likewise.
9586         * fold-const.c (fold): Likewise.
9587         * tree.c (iterative_hash_expr): Likewise.
9588         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
9589
9590 2003-08-20  Gunther Nikl  <gni@gecko.de>
9591
9592         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
9593         depending on MOTOROLA_BSR
9594         * config/m68k/m68k.md (anonymous define_insn): Likewise
9595
9596 2003-08-20  Jason Merrill  <jason@redhat.com>
9597
9598         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
9599         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
9600         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
9601         * dojump.c (do_jump): Likewise.
9602         * fold-const.c (operand_equal_p, fold): Likewise.
9603         (tree_expr_nonnegative_p): Likewise.
9604
9605         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
9606         TYPE_USER_ALIGN for FIELD_DECLs.
9607
9608         * attribs.c (decl_attributes): Rebuild the function pointer type after
9609         changing the target type.
9610         * tree.c (get_qualified_type): Also check that the attributes match.
9611
9612 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
9613
9614         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
9615         * objc/config-lang.in (stagestuff): ... to here.
9616
9617 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
9618
9619         PR c++/11946
9620         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
9621         NOP_EXPR) when necessary.
9622         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
9623         types with precisions other than those given by native machine
9624         modes.
9625
9626 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
9627
9628         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
9629         because some macro is defined.
9630
9631         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
9632         options.
9633         * config/i386/darwin.h (ASM_SPEC): New.
9634         (SUBTARGET_EXTRA_SPECS): New.
9635         * config/rs6000/darwin.h (ASM_SPEC): New.
9636         (SUBTARGET_EXTRA_SPECS): New.
9637         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
9638         a cross-compiler between two different processors on Darwin.
9639         * configure: Regenerate.
9640
9641 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9642
9643         * builtins.c: Fix comment typos.
9644         * c-common.c: Likewise.
9645         * c-decl.c: Likewise.
9646         * c-pretty-print.c: Likewise.
9647         * cfgbuild.c: Likewise.
9648         * cfglayout.c: Likewise.
9649         * cfgloopanal.c: Likewise.
9650         * cgraphunit.c: Likewise.
9651         * cppfiles.c: Likewise.
9652         * dwarfout.c: Likewise.
9653         * expr.c: Likewise.
9654         * fold-const.c: Likewise.
9655         * gcse.c: Likewise.
9656         * ggc-page.c: Likewise.
9657         * haifa-sched.c: Likewise.
9658         * pretty-print.c: Likewise.
9659         * tree.c: Likewise.
9660         * tree.h: Likewise.
9661         * value-prof.c: Likewise.
9662
9663 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9664
9665         * c-decl.c: Follow spelling conventions.
9666         * cppfiles.c: Likewise.
9667
9668 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
9669
9670         * c-common.c: Fix comment formatting.
9671         * c-common.h: Likewise.
9672         * c-decl.c: Likewise.
9673         * cppinit.c: Likewise.
9674         * cpplib.h: Likewise.
9675         * emit-rtl.c: Likewise.
9676         * input.h: Likewise.
9677         * line-map.h: Likewise.
9678         * opts.c: Likewise.
9679         * opts.h: Likewise.
9680         * simplify-rtx.c: Likewise.
9681
9682 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
9683
9684         * unwind-c.c: Add libgcc-style exception.
9685         * unwind-dw2.c: Likewise.
9686         * unwind-pe.h: Likewise.
9687         * unwind-sjlj.c: Likewise.
9688         * unwind.inc: Likewise.
9689
9690 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9691
9692         PR c/5582 PR c++/10538
9693         * langhooks-def.h (lhd_decl_uninit): Declare.
9694         (LANG_HOOKS_DECL_UNINIT): New macro.
9695         (LANG_HOOKS_INITIALIZER): Adjust.
9696         * langhooks.h (struct lang_hooks): Add new field
9697         decl_uninit.
9698         * langhooks.c (lhd_decl_uninit): Define.
9699         * c-common.c (c_decl_uninit_1): New function.
9700         (c_decl_uninit): New function.
9701         (warn_init_self): Define.
9702         * c-common.h (c_decl_uninit): Declare.
9703         (warn_init_self): Declare.
9704         * c.opt: Introduce -Winit-self.
9705         * c-opts.c (c_common_handle_options): Set warn_init_self.
9706         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
9707         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
9708         * function.c (uninitialized_vars_warning): Call the language hook.
9709         * doc/invoke.texi: Document -Winit-self.
9710
9711 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
9712
9713         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
9714         to use better predicates and constraints.  Define new
9715         instruction to handle "trap_if" with DI-mode arguments.
9716         (conditional_trap): FAIL if trap code is not 0.
9717
9718 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
9719
9720         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
9721         strstr with $pb to a strcompare with "<pic base>"
9722         (ix86_output_addr_diff_elt): Output the real pic base.
9723
9724 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
9725
9726         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
9727         (LANG_HOOKS_INITIALIZER): Correct.
9728         * c-lang.c: Likewise.
9729
9730 2003-08-19  Jan Hubicka  <jh@suse.cz>
9731
9732         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
9733         (cgraph_varpool_mark_needed_node): Likewise.
9734         * cgraph.h (notice_global_symbol): Declare
9735         * varasm.c (notice_global_symbol): Break out from ...
9736         (assemble_start_function): ... here; update for variables.
9737         (assemble_variable): Use notice_global_symbol.
9738
9739 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9740
9741         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
9742         expect SFmode and DFmode arguments to be passed in FPRs,
9743         regardless of the underlying type.
9744
9745 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
9746
9747         PR target/11924
9748         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
9749         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
9750
9751 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
9752
9753         PR c/11207
9754         * c-typeck.c (set_init_index): Check for negative index.
9755
9756 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
9757
9758         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
9759         call0 ABI.
9760         * config/xtensa/crtn.asm (_init, _fini): Likewise.
9761         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
9762         __umodsi3, __modsi3): Likewise.
9763         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
9764         $(INCLUDES).
9765
9766 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
9767
9768         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
9769
9770 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9771
9772         * config/mips/mips.md: Quote C code in braces.  Remove use of
9773         fake const0_rtx operands.  Remove double backslashes.  Use \;.
9774         Remove workarounds for bogus warnings.
9775
9776 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9777
9778         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
9779         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
9780         rather than TARGET_MIPS4300.
9781         (mulsf3_internal, mulsf3_r4300): Likewise.
9782
9783 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
9784
9785         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
9786
9787 2003-08-17  Roger Sayle  <roger@eyesopen.com>
9788
9789         * simplify-rtx.c (associative_constant_p): New function to test
9790         whether an RTX expression is an immediate constant.
9791         (simplify_associative_operation): New function to perform some
9792         reassociation optimizations of associative binary expressions.
9793         (simplify_binary_operation): Use simplify_associative_operation
9794         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
9795         Floating point expressions are only reassociated when unsafe
9796         math optimizations are permitted.
9797
9798 2003-08-17  Andreas Jaeger  <aj@suse.de>
9799
9800         * config/alpha/alpha.md: Remove usage of PARAMS.
9801
9802         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
9803         * config/i386/i386-interix.h: Likewise.
9804         * config/i386/winnt.c: Likewise.
9805         * config/i386/cygming.h: Likewise.
9806         * config/i386/cygwin2.c: Likewise.
9807         * config/darwin.c: Likewise.
9808         * config/darwin-c.c: Likewise.
9809         * config/darwin-protos.h: Likewise.
9810         * config/darwin.h: Likewise.
9811         * config/s390/s390-protos.h: Likewise.
9812         * config/s390/s390.c: Likewise.
9813         * config/ia64/ia64.c: Likewse
9814         * config/ia64/ia64-protos.h: Likewise.
9815         * config/ia64/ia64-c.c: Likewise.
9816
9817 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9818
9819         * config/sparc/sparc.c: Convert to ISO C.
9820
9821         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
9822         * config/sparc/sparc.c: Likewise.
9823
9824 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
9825
9826         PR c++/11512
9827         * stmt.c (expand_expr_stmt_value): Don't warn about any void
9828         typed expression.
9829
9830 2003-08-16  Jan Hubicka  <jh@suse.cz>
9831
9832         * i386.c (ix86_fntype_regparm): Rename from ...
9833         (ix86_function_regparm): ... this one; add fastcall and local
9834         functions.
9835         (ix86_function_ok_for_sibcall): Update.
9836         (ix86_return_pops_args): Likewise.
9837         (init_cumulative_args): Likewise.
9838         (x86_can_output_mi_thunk): Likewise.
9839         (function_arg): Fix formating.
9840         (x86_this_parameter): Fix fastcall.
9841         (x86_output_mi_thunk): Likewise.
9842
9843         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
9844         body as reachable; mark nested functions as needed too.
9845         (dump_cgraph): Do not output global.calls.
9846         * cgraph.h (cgraph_global_info): Kill.
9847         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
9848         (record_call_1): Speedup.
9849         (cgraph_analyze_function): Break out from ...; compute inlining
9850         parameters.
9851         (cgraph_finalize_compilation_unit): ... here.
9852         (cgraph_mark_inline): Kill computation of calls.
9853         (cgraph_decide_inlining): Do not compute most of initial values.
9854
9855 2003-08-14  Roger Sayle  <roger@eyesopen.com>
9856
9857         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
9858         to negate if either operand is easy to negate, if we don't care
9859         about sign-dependent rounding.
9860         (negate_expr): Make the logic to negate a REAL_CST explicit.
9861         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
9862         that's easy to negate, if we don't honor sign-dependent rounding.
9863         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
9864         negate, and the symmetric A * -B as -A * B if A is easy to negate.
9865         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
9866         -C/D if B and C are cheap to negate.  Add an explicit rule to
9867         optimize X/-1.0 as -X when we don't care about signaling NaNs.
9868
9869 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
9870
9871         * Makefile.in (tm_file): Rename tm_include_list.
9872         (tm_p_file): Rename tm_p_include_list.
9873         (build_xm_file): Rename build_xm_include_list.
9874         (host_xm_file): Rename host_xm_include_list.
9875         (xm_file): Rename xm_include_list.
9876         (xm_file_list): Add to be substituted.
9877         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
9878         Update to match.
9879         (bt-load.o): Add missing dependency on $(TM_H).
9880         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
9881         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
9882         build_xm_file, generate both *_file_list and *_include_list
9883         values from it.  (xm_file_list was formerly not being generated.)
9884         In *_include_list, prefix the names of all headers found in
9885         $(srcdir)/config with config/.  In each loop, consider only
9886         the special case files that can actually appear in that list.
9887         AC_SUBST all *_file_list and all *_include_list variables; do
9888         not AC_SUBST the plain *_file variables.
9889         * configure: Regenerate.
9890
9891 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9892
9893         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
9894
9895 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9896
9897         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
9898         direct calls.
9899         (attr_length_call): Include it here.  Improve length estimate for
9900         local calls.
9901         (output_call): Use targetm.binds_local_p.
9902
9903 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9904
9905         * builtins.c (CASE_MATHFN): New helper macro.
9906         (mathfn_built_in): Simplify and sort.
9907
9908         * protoize.c (substr): Delete, callers changed to `strstr'.
9909
9910 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
9911
9912         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
9913         * config/iq2000/xm-iq2000.h: Delete file.
9914
9915 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
9916
9917         * gengtype.c (walk_type): Process a subobject before processing
9918         the pointer that points to the subobject.
9919
9920 2003-08-13  Per Bothner  <pbothner@apple.com>
9921
9922         * regclass.c (init_reg_modes):  Make non-static.
9923         Rename to init_reg_modes_once per new naming convention.
9924         (init_regs):  Don't call init_reg_modes here.
9925         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
9926         * rtl.h (init_reg_modes_once):  New declaration.
9927         * toplev.c (backend_init):  Call init_regs after init_emit_once.
9928
9929 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
9930
9931         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
9932         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
9933
9934 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
9935
9936         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
9937         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
9938
9939 2003-08-13  Dale Johannesen  <dalej@apple.com>
9940
9941         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
9942         handling of decrement-and-branch farther than 32 bits.
9943
9944 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
9945
9946         * configure.in (make_compare_target): Move test to ...
9947         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
9948         * configure: Regenerate.
9949
9950 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9951
9952         * config/mips/iris6.h: Convert to C90 prototypes.
9953         * config/mips/irix6-libc-compat.c: Likewise.
9954         * config/mips/mips-protos.h: Likewise.
9955         * config/mips/mips.c: Likewise.
9956
9957 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
9958
9959         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
9960         for selected machines.  Comment heavily.
9961         fixinc/fixincl.x: Rebuild.
9962         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
9963
9964 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
9965
9966         * config/mips/mips.h: Tweak various comments.
9967         * config/mips/mips.c: Likewise.
9968
9969 2003-08-11  James E Wilson  <wilson@tuliptree.org>
9970
9971         PR optimization/11319
9972         PR target/10021
9973         * alias.c (find_base_value, case REG): Return 0 not src if no base
9974         found.
9975
9976 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9977
9978         * gcse.c (gmalloc): Fix last change.
9979
9980 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9981
9982         * simplify-rtx.c (simplify_binary_operation): Replace calls to
9983         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
9984         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
9985         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
9986
9987 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9988
9989         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
9990         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
9991         typecode for an ABS_EXPR.
9992
9993         * doc/c-tree.texi: Document ABS_EXPR.
9994
9995 2003-08-11  Roger Sayle  <roger@eyesopen.com>
9996
9997         * fold-const.c (fold): Optimize any associative floating point
9998         operator with -funsafe-math-optimizations, not just MULT_EXPR.
9999
10000 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
10001
10002         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
10003         information in SHmedia case too.
10004         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
10005         Likewise.
10006         (__set_fpscr): Use an access via GOT for PIC case.
10007
10008 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
10009
10010         * configure.in (intermodule): Make switch test more portable.
10011         * configure: Regenerate.
10012
10013 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
10014
10015         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
10016         (restrap): Likewise.
10017
10018 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10019
10020         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
10021         (grealloc): Size argument is a size_t.
10022         (gcalloc): New function.  Use throughout in lieu of
10023         gmalloc/memset.
10024
10025         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
10026         xmalloc/memset.
10027         * config/ia64/ia64.c (ia64_reorg): Likewise.
10028         * conflict.c (conflict_graph_new): Likewise.
10029         * fixinc/fixincl.c (run_compiles): Likewise.
10030         * genattrtab.c (optimize_attrs): Likewise.
10031         * genrecog.c (new_decision): Likewise.
10032         * haifa-sched.c (schedule_block): Likewise.
10033         * hashtable.c (ht_create): Likewise.
10034
10035 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
10036
10037         * config/xtensa/lib2funcs.S: Fix whitespace.
10038         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
10039         syntax where appropriate.  Remove unnecessary backslash escapes.
10040         Reformat comments and fix some code formatting.
10041         (extendqisi2): Rearrange conditional.
10042         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
10043         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
10044         of fatal_insn.
10045
10046 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
10047
10048         * config/mips/mips.c: Various formatting fixes.
10049         (override_options): Resync -mtune handling with gas.
10050         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
10051         * config/mips/mips.h: More formatting fixes.
10052         (mips_abi): Move declaration.
10053         * config/mips/mips.md (exception_receiver): Add mode to
10054         unspec_volatile.
10055
10056 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
10057
10058         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
10059         evsplatfi here.
10060         (bdesc_1arg): Remove evsplati and evsplatfi.
10061
10062 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
10063
10064         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
10065         into account.
10066
10067 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10068
10069         * builtins.c (expand_builtin_strcat): Optimize constant strings.
10070
10071 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10072
10073         * pretty-print.c (pp_base_indent): Rename from pp_indent.
10074         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
10075         (struct c_pretty_print_info): Add more fields.
10076         (pp_c_left_paren): Move to c-pretty-print.c.
10077         (pp_c_right_paren): Likewise.
10078         (pp_c_left_brace): Likewise.
10079         (pp_c_right_brace): Likewise.
10080         (pp_c_left_bracket): Likewise.
10081         (pp_c_right_bracket): Likewise.
10082         (pp_c_declarator): Declare.
10083         (pp_c_direct_declarator): Likewise.
10084         (pp_c_specifier_qualifier_list): Likewise.
10085         (pp_c_type_id): Likewise.
10086         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
10087         (pp_c_type_qualifier_list): New.
10088         (pp_c_pointer): Likewise.
10089         (pp_c_parameter_type_list): Likewise.
10090         (pp_c_function_definition): Likewise.
10091         (pp_c_id_expression): Likewise.
10092         (pp_c_simple_type_specifier): Tidy.
10093         (pp_c_unary_expression): Likewise.
10094         (pp_c_expression): Likewise.
10095         (pp_c_pretty_printer_init): Likewise.
10096         (pp_c_specifier_qualifier_list): Rework..
10097         (pp_c_abstract_declarator): Likewise.
10098         (pp_c_postfix_expression): Likewise.
10099         (pp_c_primary_expression): Likewise.
10100         (pp_c_cast_expression): Likewise.
10101         (pp_c_direct_abstract_declarator): Likewise.
10102         (pp_c_storage_class_specifier): Likewise.
10103         (pp_c_function_specifier): Likewise.
10104         (pp_c_declaration_specifiers): Likewise.
10105         (pp_c_direct_declarator): Likewise.
10106         (pp_c_declarator): Likewise.
10107         (pp_c_declaration): Likewise.
10108         (pp_c_statement): Likewise.
10109         (pp_c_integer_constant): Rename from pp_c_integer_literal.
10110         (pp_c_character_constant): Rename from pp_c_character_literal.
10111         (pp_c_bool_constant): Rename from pp_c_bool_literal.
10112         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
10113         (pp_c_floating_constant): Rename from pp_c_real_literal.
10114         (pp_c_constant): Rename from pp_c_literal.
10115         * c-lang.c: Include diagnostic.h and c-pretty-print.h
10116         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
10117         (c_initialize_diagnostics): New.
10118         * Makefile.in (c-lang.o): Update dependency.
10119
10120 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
10121
10122         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
10123
10124 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
10125
10126         * config/mips/mips.c (mips_no_mips16_string): Remove.
10127         (override_options): Don't handle -mips16 as part of -mipsN.
10128         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
10129         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
10130         (TARGET_OPTIONS): Remove -mno-mips16.
10131
10132 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
10133
10134         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
10135         (coprocessor2_operand): Likewise.
10136         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
10137         (lookup_name): Remove declaration.
10138         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
10139         (mips16, mips_abicalls): Remove.
10140         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
10141         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
10142         (coprocessor_operand, coprocessor2_operand): Remove.
10143         (override_options): Don't set mips16 or mips_abicalls.
10144         (print_operand): Don't expect SIGN_EXTEND operands.
10145         (mips_secondary_reload_class): Likewise.
10146         (mips_output_conditional_branch): Remove disabled long-branch code.
10147         * config/mips/mips.h (call_used_regs): Remove declaration.
10148         (may_call_alloca): Likewise.
10149         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
10150         (mips_abicalls, mips16): Remove declarations.
10151         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
10152         (CC1_SPEC): Remove outdated comment.
10153         (MIPS_VERSION, MACHINE_TYPE): Remove.
10154         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
10155         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
10156         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
10157         (PUSH_ROUNDING): Likewise.
10158         (ASSEMBLER_SCRATCH_REGNUM): Remove.
10159         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
10160         and mips16 with TARGET_MIPS16.
10161
10162 2003-08-09  Per Bothner  <pbothner@apple.com>
10163
10164         * cppinit.c (cpp_read_main_file):  Split out source-independent
10165         initialization to separate function ...
10166         (cpp_post_options):  New function.
10167         * cppfiles.c (cpp_stack_file):  Rename public name to ...
10168         (_cpp_stack_file):  New internal function name.
10169         * cpplib.h:  Update accordingly.
10170         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
10171         (cpp_read_main_file):  Don't initialize line here.
10172         * c-opts.c (c_common_post_options):  Call cpp_post_options.
10173         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
10174         * fix-header.c (read_scan_file):  Call cpp_post_options.
10175
10176 2003-08-09  Per Bothner  <per@bothner.com>
10177
10178         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
10179
10180 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10181
10182         * pa.c (pa_asm_output_mi_thunk): Fix typo.
10183
10184 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
10185
10186         PR preprocessor/11839
10187         * cppfiles.c (open_file): Handle ENOTDIR.
10188
10189 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
10190
10191         PR target/11699
10192         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
10193
10194 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10195
10196         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
10197         source/destination is not a register operand.
10198
10199 2003-08-08  Richard Henderson  <rth@redhat.com>
10200
10201         PR target/11535
10202         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
10203         RETURN_ADDRESS_POINTER_REGNUM.
10204         (ia64_expand_prologue): Don't frob it.
10205         (ia64_output_function_epilogue): Likewise.
10206         (ia64_return_addr_rtx): New.
10207         (ia64_split_return_addr_rtx): New.
10208         * config/ia64/ia64-protos.h: Update.
10209         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
10210         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
10211         (GENERAL_REGNO_P): Don't check it.
10212         (AR_*_REGNUM): Renumber.
10213         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
10214         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
10215         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
10216         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
10217         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
10218         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
10219         (movdi_ret_addr): New.
10220
10221 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
10222
10223         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
10224
10225 2003-08-08  Roger Sayle  <roger@eyesopen.com>
10226
10227         * tree.h (get_identifier) Define a macro form of get_identifier
10228         that calls get_identifier_with_length when the string is constant.
10229         (get_identifier_with_length): Change type of second argument to
10230         size_t in prototype.
10231         * stringpool.c (get_identifier): Undefine the macro before giving
10232         the function definition.
10233         (get_identifier_with_length): Change  type of second argument to
10234         size_t in function definition.
10235         * hashtable.c (calc_hash): Change type of second argument to size_t.
10236         (ht_lookup): Change type of third argument to size_t.  Reorganize
10237         to speed-up the cases where the hash table slot is empty, or the
10238         first probe matches (i.e. there isn't a collision).
10239         * hashtable.h (ht_lookup): Adjust function prototype.
10240
10241 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
10242
10243         PR target/9697
10244         PR target/11777
10245         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
10246
10247 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
10248
10249         * common.opt: Add debug switches.
10250         * flags.h (use_gnu_debug_info_extensions): Boolify.
10251         * opts.c (write_symbols, debug_info_level,
10252         use_gnu_debug_info_extensions): Move from toplev.c.
10253         (set_debug_level): New.
10254         (common_handle_options): Handle debug switches.
10255         (print_help): Display target options directly.
10256         * toplev.c (debug_hooks): Don't initialize.
10257         (write_symbols, debug_info_level,
10258         use_gnu_debug_info_extensions): Move to opts.c.
10259         (debug_args, display_help, decode_g_option): Remove.
10260         (process_options): Set no debug if level zero here,
10261         and no-debug-hooks.  Error here if impossible debug format selected.
10262         * toplev.h (display_help, decode_g_option): Remove.
10263
10264 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
10265
10266         * tree.c (get_file_function_name_long): Fix size of alloca() area.
10267
10268 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
10269
10270         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
10271         and gcc_cv_prog_cmp_skip.
10272         * configure: Regenerate.
10273
10274 2003-08-08  Stan Cox  <scox@redhat.com>
10275
10276         * config/iq2000: New port.
10277         * config.gcc (iq2000-*-elf): Added.
10278         * doc/install.texi (Specific):  Add iq2000 description.
10279
10280 2003-08-08  Andreas Schwab  <schwab@suse.de>
10281
10282         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
10283         and insert missing empty argument.
10284         * configure: Regenerate.
10285
10286 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
10287
10288         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
10289         (attr_length_millicode_call): Likewise.
10290         (attr_length_call): Likewise.  Revise some maximum insn lengths.
10291         (attr_length_indirect_call): Likewise.
10292         (output_call): Fix thinko that added extra nop.
10293         * pa.h (IN_NAMED_SECTION_P): Define.
10294
10295         PR c++/11712
10296         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
10297         __STDC_EXT__ when using C++ dialect.
10298
10299 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
10300
10301         * sh.c (calc_live_regs): If the return address pointer is live,
10302         force pr live.
10303         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
10304         for saves / restores.
10305         (sh_expand_epilogue): If sh_media_register_for_return returns a
10306         register number, flag the instructions that restores PR_MEDIA_REG
10307         as possibly dead.
10308         Remove dead update of offset.
10309         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
10310         we can use the result of get_hard_reg_initial_val.
10311         * sh.md (UNSPEC_RA): New constant.
10312         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
10313         (load_ra).  Handle UNSPEC_RA.
10314         (sibcall_media): Use PR_MEDIA_REG.
10315
10316         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
10317         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
10318         needs saving on SHmedia.
10319
10320 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
10321
10322         * config/s390/s390.md: Replace all occurrences of \\t with \t.
10323
10324 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
10325
10326         * local-alloc.c (combine_regs): Fix comment typo.
10327
10328 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
10329
10330         * c-decl.c (builtin_decls): Replace with first_builtin_decl
10331         and last_builtin_decl.
10332         (c_init_decl_processing): Initialize both.
10333         (c_reset_state): Iterate from first_builtin_decl to
10334         last_builtin_decl inclusive to reintroduce builtins.
10335
10336 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
10337
10338         * doc/extend.texi (Function Attributes): Document the IA-64 version
10339         of the "model" attribute.
10340
10341         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
10342         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
10343         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
10344
10345         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
10346         (ia64_encode_section_info): Likewise.
10347         (ia64_attribute_table): Add "model" attribute.
10348         (TARGET_ENCODE_SECTION_INFO): Define.
10349         (small_addr_symbolic_operand): New function.
10350         (got_symbolic_operand): Return 0 for a symbolref to an object
10351         in the small address area.
10352         (enum ia64_addr_area): New type.
10353         (small_ident1): New variable.
10354         (small_ident2): Likewise.
10355         (init_idents): New function.
10356         (ia64_get_addr_area): Likewise.
10357         (ia64_encode_addr_area): Likewise.
10358         (ia64_encode_section_info): Likewise.
10359         (ia64_expand_load_address): For symbolic references to objects in
10360         the small-address-area, load the address via gen_rtx_SET() (which,
10361         eventually, will expand into "addl").
10362
10363 2003-08-06  Per Bothner  <pbothner@apple.com>
10364
10365         * line-map.h (fileline):  New typedef.
10366         (struct line_map, linemap_add, linemap_lookup):  Use it.
10367         * input.h (struct location_s):  Comment notes that long-term we want
10368         to replace it by fileline.
10369
10370 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
10371
10372         Fix SHcompact exception handling:
10373         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
10374         by the prologue, return a MEM with return_address_pointer_rtx
10375         as address.
10376         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
10377         (RETURN_ADDR_OFFSET): Don't define.
10378         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
10379         registers that are visible in compact mode.  Show that SHmedia
10380         registers still exist in compact mode, even if there are not
10381         readily accessible.
10382         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
10383         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
10384         and DW_EH_PE_pcrel for pic data.
10385         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
10386         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
10387         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
10388         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
10389         * sh.md (movsi_media-1): New splitter.
10390
10391 2003-08-06  Graeme Peterson <gp@qnx.com>
10392
10393         * config/i386/nto.h: New.
10394         * config/i386/t-nto: New.
10395         * config.gcc (i[34567]86-*-nto-qnx*): New.
10396
10397 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
10398
10399         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
10400
10401 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
10402
10403         * calls.c (load_register_parameters): Arrange for call_fusage to
10404         report the whole register as used when shifting to the msb.
10405
10406 2003-08-05  Roger Sayle  <roger@eyesopen.com>
10407
10408         * builtins.c (expand_builtin): When not optimizing, call the library
10409         function for all builtins that have library functions (except alloca).
10410
10411 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
10412
10413         * c.opt: Introduce -fworking-directory.
10414         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
10415         * c-common.h (flag_working_directory): Declare.
10416         * c-common.c (flag_working_directory): Define.
10417         * c-opts.c (c_common_handle_options): Set it.
10418         (sanitize_cpp_opts): Set...
10419         * cpplib.h (struct cpp_options): ... working_directory option.
10420         (struct cpp_callbacks): Add dir_change.
10421         * cppinit.c (read_original_filename): Call...
10422         (read_original_directory): New.  Look for # 1 "directory//"
10423         and process it.
10424         (cpp_read_main_file): Call dir_change callback if working_directory
10425         option is set.
10426         * gcc.c (cpp_unique_options): Pass -g*.
10427         * c-lex.c (cb_dir_change): New.
10428         (init_c_lex): Set dir_change callback.
10429         * toplev.c (src_pwd): New static variable.
10430         (set_src_pwd, get_src_pwd): New functions.
10431         * toplev.h (get_src_pwd, set_src_pwd): Declare.
10432         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
10433         * dwarf2out.c (gen_compile_unit_die): Likewise.
10434         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
10435
10436 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10437
10438         * pretty-print.h (pp_set_line_maximum_length): Make macro.
10439         (pp_set_prefix): Likewise.
10440         (pp_destroy_prefix): Likewise.
10441         (pp_remaining_character_count_for_line): Likewise.
10442         (pp_clear_output_area): Likewise.
10443         (pp_formatted_text): Likewise.
10444         (pp_last_position_in_text): Likewise.
10445         (pp_emit_prefix): Likewise.
10446         (pp_append_text): Likewise.
10447         (pp_flush): Likewise.
10448         (pp_format_text): Likewise.
10449         (pp_format_verbatim): Likewise.
10450         (pp_tree_identifier): Tidy.
10451         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
10452         (pp_base_format_verbatim): Rename from pp_format_verbatim.
10453         (pp_base_flush): Rename from pp_flush.
10454         (pp_base_set_line_maximum_length): Rename from
10455         pp_set_line_maximum_length.
10456         (pp_base_clear_output_area): Rename from pp_clear_output_area.
10457         (pp_base_set_prefix): Rename from pp_set_prefix.
10458         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
10459         (pp_base_emit_prefix): Rename from pp_emit_prefix.
10460         (pp_base_append_text): Rename from pp_append_text.
10461         (pp_base_formatted_text): Rename from pp_formatted_text.
10462         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
10463         (pp_base_remaining_character_count_for_line): Rename from
10464         pp_remaining_character_count_for_line.
10465         * diagnostic.h (diagnostic_format_decoder): Tidy.
10466         (diagnostic_flush_buffer): Likewise.
10467         * c-pretty-print.h: (pp_c_string_literal): Declare.
10468         (pp_c_real_literal): Likewise.
10469         (pp_c_integer_literal): Likewise.
10470         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
10471         pp_identifier.
10472         (pp_c_character_literal): Tidy.
10473         (pp_c_string_literal): Make public.
10474         (pp_c_bool_literal): Likewise.
10475         (pp_c_integer_literal): Likewise.
10476         (pp_c_real_literal): Likewise.
10477
10478         * Makefile.in (C_PRETTY_PRINT_H): New variable.
10479         (c-pretty-print.o): Update dependence.
10480
10481 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
10482
10483         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
10484         ".set nomacro" state.
10485         (fix_truncsfsi2_macro): Likewise.
10486
10487 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
10488
10489         * tree.h (DID_INLINE_FUNC): Remove macro.
10490         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
10491         add tree check for FUNCTION_DECL.
10492         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
10493         (struct tree_decl): Rename inlined_function_flag to
10494         declared_inline_flag.
10495         * c-common.h (c_lang_decl): Remove.
10496         (DECL_ESTIMATED_INSNS): Remove.
10497         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
10498         (DECL_DECLARED_INLINE_P): Remove.
10499         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
10500         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
10501         (finish_function): Make uninlinable a bool.  Fixup call to
10502         tree_inlinable_function_p() and fix some code style issues.
10503         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
10504         * cgraph.c (dump_cgraph): Likewise.
10505         * cgraphunit.c (cgraph_decide_inlining): Likewise
10506         (cgraph_finalize_compilation_unit): Likewise.
10507         Also update call to tree_inlinable_function_p().
10508         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
10509         look at DECL_DECLARED_INLINE and reverse logic.
10510         * print-tree.c (print_node): Likewise.
10511         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
10512         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
10513         prototype.
10514         * tree-inline.c (inlinable_function_p): Split up in this function to
10515         check for basic inlining inhibiting conditions, and new
10516         limits_allow_inlining() function.  Warn if inlining is impossible
10517         because the inline candidate calls alloca or uses sjlj exceptions.
10518         (limits_allow_inlining): this new function to check if the inlining
10519         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
10520         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
10521         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
10522         Update prototypes.
10523         (tree_inlinable_function_p): Make a bool.  Update call to
10524         inlinable_function_p
10525         (expand_call_inline): Use limits_allow_inlining() when not in
10526         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
10527         instead see if the function was declared `inline'.
10528
10529 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
10530
10531         * gcse.c (try_replace_reg): Fix updating of note.
10532
10533 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10534
10535         PR middle-end/11771
10536         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
10537         logic in negate_expr, i.e. we don't invert (A-B) for floating
10538         point types unless flag_unsafe_math_optimizations.
10539
10540 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10541
10542         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
10543         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
10544         for floating point expressions with -ffast-math.
10545         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
10546         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
10547
10548 2003-08-04  Roger Sayle  <roger@eyesopen.com>
10549
10550         * c-common.c (flag_noniso_default_format_attributes): Delete.
10551         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
10552         (c_attrs_initialized): Delete.
10553         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
10554         always call c_init_attributes.
10555         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
10556         set c_attrs_initialized when done.
10557         (c_common_insert_default_attributes): Delete.
10558         * c-common.h (flag_noniso_default_format_attributes): Delete.
10559         (c_coomon_insert_default_attributes): Delete prototype.
10560         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
10561         flag_noniso_default_format_attributes.
10562
10563         * c-decl.c (c_insert_default_attributes): Delete.
10564         * c-tree.h (c_insert_default_attributes): Delete prototype.
10565
10566         * attribs.c (decl_attributes): Don't call insert_default_attributes
10567         langhook.  Update function description comment.
10568         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
10569         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
10570         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
10571         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
10572
10573         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
10574         define.
10575
10576 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
10577
10578         * config/mips/mips.c (override_options): Disable -G on targets that
10579         have no .section support.
10580         (mips_select_section): Use default_select_section for such targets.
10581
10582 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
10583
10584         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
10585         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
10586         * fixinc/fixincl.x: Rebuild.
10587         * fixinc/tests/base/regexp.h: New test.
10588
10589 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
10590
10591         * c-ppoutput.c (cb_line_change): Don't skip line changing while
10592         parsing macro arguments in the top-level context.
10593
10594 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
10595
10596         * config.in: Remove HAVE_LSTAT.
10597         * configure, configure.in: Don't test for lstat.
10598
10599 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10600
10601         * opts.c (decode_options): Do language-specific initialization for
10602         the global diagnostic context.
10603         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
10604         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
10605         (LANG_HOOKS_INITIALIZER): Adjust.
10606         * langhooks.h (struct lang_hooks): Add new field
10607         initialize_diagnostics.
10608         * langhooks.c (lhd_initialize_diagnostics): Define.
10609
10610 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
10611
10612         * pretty-print.h:   Adjust macro definitions.
10613         * pretty-print.c (pp_newline): Rename to pp_base_newline.
10614         (pp_character): Rename to pp_base_character.
10615         (pp_string): Rename to pp_base_string.
10616         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
10617         (pp_newline):  Likewise.  Adjust.
10618         (pp_c_char): Adjust.
10619
10620 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10621
10622         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
10623         BUILT_IN_LLABS): Move to miscellaneous section.
10624
10625 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10626
10627         PR preprocessor/11534
10628         * cppexp.c (parse_defined): Warn only if -pedantic.
10629
10630 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
10631
10632         * cppfiles.c (stack_file): Use file path.
10633
10634 2003-08-02  Roger Sayle  <roger@eyesopen.com>
10635
10636         * builtin-types.def (BT_SSIZE): New primitive type.
10637         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
10638         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
10639         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
10640         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
10641         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
10642         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
10643         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
10644         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
10645         few functions that define default attributes using it.
10646         * c-common.c (c_common_insert_default_attributes): Do nothing.
10647
10648         * doc/extend.texi: Document these "new" builtins.
10649
10650 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
10651
10652         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
10653         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
10654         when -mieee-fp set and -shared not set.
10655         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
10656
10657 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10658
10659         * cppfiles.c (struct _cpp_file): Rename once_only_next to
10660         next_file.  Remove import and pragma_once, add once_only.
10661         (find_file): Add new file structures to the all_files list.
10662         (should_stack_file): Mark #import-ed files once-only, and
10663         don't stack them if the file has already been stacked.
10664         (_cp_mark_file_once_only): Simplify.
10665         * cpphash.h (struct cpp_reader): Rename once_only_files
10666         to all_files.  Rename saw_pragma_once to seen_once_only.
10667         (_cpp_mark_file_once_only): Update prototype.
10668         * cpplib.c (do_pragma_once): Update.
10669
10670 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
10671
10672         * cppfiles.c (ENOTDIR): Remove.
10673         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
10674         other than ENOENT here.
10675         (once_only_file_p): Rename should_stack_file.
10676         (find_file, open_file_failed, read_file_guts): Report errors
10677         with full path name.
10678         (read_file): Move pch handling to should_stack_file.
10679         (should_stack_file): Handle PCH and once-only issues, and
10680         reading the file.
10681         (stack_file): Don't do file reads.
10682
10683 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10684
10685         * libgcov.c (gcov_exit): Cleanup and fix.
10686         * profile.c (compute_value_histograms): Don't try to read profiles
10687         that are not present.
10688
10689 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10690
10691         * builtins.def: Categorize.
10692
10693         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
10694         Mind fp rounding.
10695         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
10696
10697 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
10698
10699         * config.gcc: Enable posix threads by default on darwin.
10700
10701 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
10702
10703         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
10704         even if nehedges1 is 0.
10705
10706 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
10707
10708         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
10709         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
10710         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
10711         and defintions.
10712
10713         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
10714         * fixinc/fixincl.x: Regenerate.
10715         * fixinc/tests/base/math.h: Regenerate to match test_text change.
10716
10717 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10718
10719         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
10720
10721 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10722
10723         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
10724         for accesses to exc_ptr.
10725
10726 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
10727
10728         * doc/sourcebuild.texi (Front End Directory): Don't make references
10729         to libsubdir, it's not part of the interface to frontends.
10730         * doc/install.texi (Configuration): Help users read faster by saying
10731         that GCC's configure options are the standard autoconf ones.
10732         Mention --libdir.  Update the default rules for finding the
10733         assembler.  Don't use libsubdir since we haven't said what it means.
10734         (Specific): In the Solaris 7 notes, update the place to put the
10735         assembler.
10736         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
10737         * doc/cpp.texi (Search Path): Actually, the search path
10738         depends on libdir, which can relocate with cpp.
10739         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
10740         now a private interface between the Makefile and the driver.
10741
10742 2003-08-01  Richard Henderson  <rth@redhat.com>
10743
10744         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
10745
10746         * varasm.c (lookup_constant_def): New function.
10747         * rtl.h (lookup_constant_def): Declare it.
10748         * dwarf2out.c (loc_descriptor_from_tree): Use it.
10749         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
10750
10751 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
10752
10753         * c-decl.c (gettags, pushdecl_function_level): Delete.
10754         (last_function_parm_vars): Rename last_function_parm_others.
10755         (current_function_parm_vars): Rename current_function_parm_others.
10756         (struct c_scope): Rewrite comment explaining this data structure.
10757         Add names_last, blocks_last, parms_last fields.  Rename
10758         incomplete_list to incomplete.
10759         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
10760         (poplevel): Ignore second argument.  No need to nreverse
10761         anything.  Restructure such that each list is processed
10762         exactly once.  Use 'const location_t *locus' syntactic sugar
10763         variable where useful.  Issue unused variable warnings
10764         ourselves, do not rely on function.c.
10765         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
10766         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
10767         (implicitly_declare): decl cannot be error_mark_node.
10768         (undeclared_variable): Manipulate scope structure directly.
10769         (c_make_fname_decl): Likewise.
10770         (getdecls, c_init_decl_processing): Fix comment.
10771         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
10772         for 'last' variable.
10773         (grokparms): No need to nreverse parms list.
10774         (store_parm_decls_newstyle): Set up the parms_last and
10775         names_last fields of the new scope too.
10776         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
10777         on parms to begin with; check this under ENABLE_CHECKING.  Set
10778         up parms_last.
10779         (check_for_loop_decls): Refer directly to current_scope->tags.
10780         Use consistent quote style in diagnostics.
10781         (c_write_global_declarations): The names list is not backward.
10782
10783         * c-common.h: Don't prototype gettags.
10784         * c-parse.in: Call poplevel with second argument 0 always.
10785
10786 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10787
10788         * builtins.def: Resort builtins.
10789
10790 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10791
10792         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
10793         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
10794         Prepend "__builtin_" onto NAME with string concatenation.  Remove
10795         explicit "__builtin_" from each macro call.
10796
10797         Reformat entire file.
10798
10799 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10800
10801         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
10802         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
10803
10804 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
10805
10806         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
10807         CCL1, or CCL2 modes with floating point operations.
10808
10809         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
10810         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
10811         "*subdf3_cconly"): New insns.
10812         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
10813
10814 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
10815
10816         * Makefile.in: Refine dependencies.
10817         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
10818         * c.opt: Update help for -Wimport.
10819         * cppfiles.c: Include hashtab.h.  Update comments.
10820         (stack_file): Read the file before updating dependencies.
10821         (once_only_file_p): Be smarter about marking once-only files.
10822         (_cpp_mark_file_once_only): Correct the check for existence on
10823         the list.
10824         (open_file_failed): Use name not path, which is NULL.
10825         * cpphash.h: Don't include hashtab.h.
10826         (struct _cpp_file): Remove.
10827         (struct cpp_reader): Update.
10828         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
10829         * cpplib.h (struct cpp_options): Remove warn_import.
10830         (cpp_simplify_path): Remove.
10831
10832 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
10833
10834         PR c++/11295
10835         * doc/extend.texi (Statement Expressions): Document C++ semantics.
10836
10837 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
10838
10839         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
10840
10841 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10842
10843         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
10844         throughout.
10845         * builtins.def: Likewise.
10846
10847 2003-07-31  Jason Merrill  <jason@redhat.com>
10848
10849         * Makefile.in (bubblestrap): Don't require a previous full
10850         bootstrap.
10851
10852         * expr.c (mostly_zeros_p): No longer static.
10853         * tree.h: Declare it.
10854         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
10855         unless we need to do substitutions.
10856
10857 2003-07-31  Roger Sayle  <roger@eyesopen.com>
10858
10859         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
10860         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
10861         as pow(x,2.0) when the latter will be expanded back into x*x.
10862         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
10863         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
10864         pow can never set errno when used with an integer exponent.
10865         Always use expand_powi when exponent is -1, 0, 1 or 2.
10866         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
10867         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
10868         the pow forms of these expressions.
10869
10870 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
10871
10872         * Makefile.in (libexecdir): New.
10873         (libsubdir): Use gcc instead of gcc-lib.
10874         (libexecsubdir): New.
10875         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
10876         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
10877         gcc-lib.
10878         (installdirs): Make libexecsubdir.
10879         (install-common): Put executables in libexecsubdir.
10880         (itoolsdir): Use libexecsubdir.
10881         (itoolsdatadir): New.
10882         (install-mkheaders): Separate data files and executables.
10883         (install-collect2): Put executables in libexecsubdir.
10884         (uninstall): Remove libexecsubdir.
10885         * mkheaders.in: Update for new arrangement of files.
10886         (libexecdir): New.
10887         (libexecsubdir): New.
10888         (itoolsdir): Use libexecsubdir.
10889         (itoolsdatadir): New.
10890         * gcc.c (gcc_libexec_prefix): New.
10891         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
10892         (standard_exec_prefix_1): Use libexec.
10893         (standard_exec_prefix_2): New.
10894         (standard_libexec_prefix): New.
10895         (process_command): Update for new arrangement of files.  Compute
10896         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
10897
10898 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
10899
10900         * inclhack.def (stdio_va_list): Avoid bogus replacement which
10901         triggers on Interix.
10902         * fixincl.x: Regenerate.
10903
10904 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
10905
10906         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
10907         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
10908
10909 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10910
10911         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
10912
10913 2003-07-31  Per Bothner  <pbothner@apple.com>
10914
10915         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
10916         (add_input_filename):  New function.
10917         (handle_options):  Call add_input_filename directly instead of
10918         with a lang hook.
10919         * opts.h (in_fnames, num_in_fnames):  Moved here.
10920         (add_input_filename):  Declare.
10921         * c-decl.c:  Need to #include opts.h.
10922         * Makefile.in (c-decl.o):  Also depends on opts.h.
10923         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
10924         (c_common_handle_filename):  Replaced by add_input_filename.
10925         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
10926         Remove.
10927         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
10928         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10929         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
10930         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
10931
10932 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10933
10934         * combine.c (try_combine): Set JUMP_LABEL for newly created
10935         unconditional jump.
10936
10937 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10938
10939         * fold-const.c (fold): Fold some comparisons of bit operations.
10940
10941 2003-07-31  Jan Hubicka  <jh@suse.cz>
10942
10943         * cgraph.c (create_edge): Fix typo.
10944         * i386.c (pic_symbolic_operand): Reorder tests.
10945
10946 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
10947
10948         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
10949         more fully.
10950         (Gcov Data Files): Update.
10951
10952 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10953
10954         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
10955         default.
10956
10957         * gthr-posix.c: New file.
10958         * gthr-posix.h: Define _REENTRANT if missing.
10959         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
10960
10961         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
10962         by gthr-posix.o.
10963         * config/alpha/t-osf-pthread: New file.
10964
10965         * fixinc/inclhack.def (alpha_pthread): New fix.
10966         * fixinc/fixincl.x: Regenerate.
10967         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
10968
10969         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
10970         warning.
10971         Fixes PR bootstrap/9330.
10972
10973 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10974
10975         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
10976         without GNU ld.
10977         Update comment.
10978         * configure: Regenerate.
10979
10980 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
10981
10982         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
10983         setter.
10984
10985 2003-07-30  Roger Sayle  <roger@eyesopen.com>
10986
10987         * builtins.def: Alphabetize.
10988
10989 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10990
10991         * doc/c-tree.texi: Normalize spellings of "lowercase" and
10992         "uppercase".
10993         * doc/cpp.texi: Likewise.
10994         * doc/md.texi: Likewise.
10995         * doc/rtl.texi: Likewise.
10996         * doc/tm.texi: Likewise.
10997
10998 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
10999
11000         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
11001         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
11002         of cc1obj.
11003
11004 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
11005
11006         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
11007         macros before defining them.
11008
11009 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
11010
11011         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
11012         UNSPECV_BLOCKAGE): New constants.
11013         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
11014         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
11015         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
11016         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
11017
11018         (all insns and expanders): Write output control string as brace block
11019         where appropriate.  Remove \-escapes for doublequote characters.
11020
11021 2003-07-31  Jan Hubicka  <jh@suse.cz>
11022
11023         * gcse.c (insert_store): Fix typo in previous patch.
11024
11025 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
11026
11027         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
11028
11029 2003-07-30  Andi Kleen  <ak@muc.de>
11030
11031         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
11032
11033 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11034
11035         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
11036         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
11037         GCOV_N_VALUE_COUNTERS): New.
11038         * profile.c (compute_value_histograms): New static function.
11039         (branch_prob): Read back the value histograms.
11040         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
11041         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
11042         * value-prof.c: Add comment on reading the profile.
11043         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
11044         * doc/invoke.texi (-fprofile-values): Document behavior with
11045         -fbranch-probabilities.
11046
11047 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
11048
11049         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
11050
11051 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
11052
11053         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
11054         symbolically.
11055
11056 2003-07-30  Jan Hubicka  <jh@suse.cz>
11057
11058         * gcse.c (insert_store): Ignore fake edges.
11059
11060         * c-common.c (flag_vtable_gc): Kill.
11061         * c-common.g (flag_vtable_gc): Kill.
11062         * c-opts (c_common_handle_option): Kill.
11063         * c.opt (fvtable-gc): Kill.
11064         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
11065         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11066         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
11067
11068         * invoke.texi (-ftable-gc): Kill documentation.
11069
11070         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
11071         just because function body is missing.
11072
11073         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
11074
11075 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
11076
11077         * unwind-sjlj.c: Fix typo in file description.
11078
11079 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
11080
11081         * calls.c (load_register_parameters): When shifting reg sized values
11082         to the msb, move the value to a reg first.
11083
11084 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
11085
11086         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
11087         * line-map.h (linemap_add): Update comments.
11088         * line-map.c (linemap_add): Update comments, interpret zero-length
11089         filename as "<stdin>".
11090
11091 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
11092
11093         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
11094
11095 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
11096
11097         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
11098         New static variables.
11099         (struct c_scope): Add parms and warned_forward_parm_decls
11100         fields; remove parm_order.
11101         (storedecls, storetags): Delete.
11102         (poplevel): Also clear bindings on the parms chain.
11103         (pushdecl): Handle forward declarations of parameters, and
11104         chain PARM_DECLs on the parms list, not the names list.
11105         (lookup_name_current_level): Check for PARM_DECLs on the parms
11106         list too.
11107         (push_parm_decl): Don't update parm_order.
11108         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
11109         warning, only once per parameter list, and set TREE_ASM_WRITTEN
11110         on the decls here.  Then move the forward decls to the names list.
11111         (grokparms): Set last_function_parm_vars.
11112         (get_parm_info): Don't use gettags or getdecls.  No need to
11113         extract non-parms from the parms list, or reorganize the parms
11114         list.  Feed nonparms back in the TREE_TYPE of the list node
11115         returned.  Issue only one error per parameter list for "void"
11116         appearing more than once in said parameter list.  Collapse
11117         parmlist_tags_warning into this function to avoid double scan
11118         of tags list.
11119         (start_function): Set current_function_parm_vars.
11120         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
11121         directly.  Get non-parms from current_function_parm_vars; no
11122         need to extract them from the parms chain.  Properly bind tags
11123         in the new scope.
11124         (store_parm_decls_oldstyle): No need to extract non-parameters
11125         from the parms chain, nor to store them back afterward.  Move
11126         declaration to top of function, restructure code reordering
11127         DECL_ARGUMENTS.
11128         (store_parm_decls): No need to save and restore warn_shadow.
11129         * c-parse.in: Don't call parmlist_tags_warning nor
11130         clear_parm_order.  Call mark_forward_parm_decls when forward
11131         parm decls are encountered.
11132         * c-tree.h: Prototype mark_forward_parm_decls; not
11133         clear_parm_order or parmlist_tags_warning.
11134
11135 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
11136
11137         * c-common.c (allow_pch): Remove.
11138         * c-common.h (allow_pch): Remove.
11139         (c_common_no_more_pch): Declare.
11140         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
11141         * c-pch.c: Include hosthooks.h.
11142         (c_common_valid_pch): Don't check allow_pch.
11143         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
11144         (c_common_no_more_pch): New.
11145         * ggc-common.c: Include hosthooks.h.
11146         (gt_pch_save): Call gt_pch_get_address.
11147         (gt_pch_restore): Call gt_pch_use_address.
11148         * hooks.c (hook_voidp_size_t_null): New.
11149         (hook_bool_voidp_size_t_false): New.
11150         * hooks.h (hook_voidp_size_t_null): New.
11151         (hook_bool_voidp_size_t_false): New.
11152         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
11153         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
11154         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
11155         HOST_HOOKS_GT_PCH_USE_ADDRESS.
11156         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
11157         gt_pch_use_address.
11158         * doc/hostconfig.texi (Host Common): Document
11159         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
11160         * Makefile.in (c-pch.o): Depend on hosthooks.h.
11161         (ggc-common.o): Likewise.
11162
11163         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
11164         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
11165         (pch_address_space): New.
11166         (darwin_rs6000_gt_pch_get_address): New.
11167         (darwin_rs6000_gt_pch_use_address): New.
11168
11169 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
11170
11171         PR preprocessor/11569
11172         PR preprocessor/11649
11173         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
11174         * cppfiles.c: Completely rewritten.
11175         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
11176         struct cpp_path is now struct cpp_dir.
11177         (remove_duplicates): Don't simplify path names.
11178         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
11179         cpp_stack_file.
11180         * cpphash.h: Include hashtab.h.
11181         (_cpp_file): Declare.
11182         (struct cpp_buffer): struct include_file is now struct _cpp_file,
11183         and struct cpp_path is now struct cpp_dir.  Rename members.
11184         (struct cpp_reader): Similarly.  New members once_only_files,
11185         file_hash, file_hash_entries, quote_ignores_source_dir,
11186         no_search_path, saw_pragma_once.  Remove all_include_files and
11187         max_include_len.  Make some members bool.
11188         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
11189         (_cpp_stack_file): Renamed from _cpp_read_file.
11190         (_cpp_stack_include): Renamed from _cpp_execute_include.
11191         (_cpp_init_files): Renamed from _cpp_init_includes.
11192         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
11193         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
11194         (cpp_read_next_file): Rename and move to cppfiles.c.
11195         (cpp_read_main_file): Update.
11196         * cpplib.c (run_directive): Update for renamed members.
11197         (do_include_common, _cpp_pop_buffer): Update.
11198         (do_import): Undeprecate #import.
11199         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
11200         * cpplib.h: Remove file_name_map_list.
11201         (cpp_options): Remove map_list.
11202         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
11203         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
11204
11205 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
11206
11207         * Makefile.in:  Make stamp-objdir safe for parallel builds.
11208
11209 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
11210
11211         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
11212         (info):  Depend on stmp-docobjdir.
11213
11214 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11215
11216         * configure: Regenerate.
11217
11218 2003-07-29  Jan Hubicka  <jh@suse.cz>
11219
11220         PR C++/11131
11221         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
11222         in !unit-at-a-time mode.
11223
11224 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
11225
11226         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
11227         main function.
11228
11229 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
11230
11231         PR c++/11667
11232         * c-common.c (shorten_compare): Take into account differences
11233         between C and C++ representation for enumeration types.
11234         * tree.h (set_min_and_max_values_for_integral_type): Declare.
11235         * stor-layout.c (set_min_and_max_values_for_integral_type): New
11236         function, broken out from ...
11237         (fixup_signed_type): ... here and ...
11238         (fixup_unsigned_type): ... here.
11239
11240 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
11241
11242         * c-decl.c: Update commentary, adjust blank lines throughout.
11243         (struct c_scope): Fix indentation.  Reorder members so
11244         outer-context pointers come first, booleans last.
11245         (duplicate_decls, define_label): Use a 'locus' variable for
11246         diagnostic locations in a few more places.
11247         (warn_if_shadowing): Un-split a conditional that fits on one line.
11248         (c_init_decl_processing): No need to clear current_scope and
11249         current_function_scope.
11250         (start_decl): Merge if/else if statements with same action.
11251         (push_parm_decl): Rename old_immediate_size_expand to use
11252         save_foo convention; save/restore around entire function.
11253         (grokdeclarator): Remove unnecessary braces.
11254
11255 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
11256             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
11257
11258         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
11259         when warn_declaration_after_statement.  Call pedwarn_c90, not
11260         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
11261         * c-common.c (warn_declaration_after_statement): Define.
11262         * c-common.h (warn_declaration_after_statement): Declare.
11263         * c.opt (Wdeclaration-after-statement): New.
11264         * c-errors.c (pedwarn_c90): New function.
11265         * c-opts.c (c_common_handle_option) <case
11266         OPT_Wdeclaration_after_statement>: New.
11267         * c-tree.h (pedwarn_c90): Declare.
11268         * doc/invoke.texi (Option Summary): Document
11269         -Wdeclaration-after-statement.
11270         (Warning Options): Ditto.
11271
11272 2003-07-28  Jan Hubicka  <jh@suse.cz>
11273
11274         * i386.md (memory attribute) Avoid accessing uninitialized memory
11275         for ishift1 type instructions.
11276
11277 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
11278
11279         * configure.in (--enable-checking): Add fold category.
11280         (ENABLE_FOLD_CHECKING): Define if requested.
11281         * configure: Rebuilt.
11282         * config.in: Rebuilt.
11283         * doc/install.texi: Document it.
11284         * fold-const.c: Include md5.h.
11285         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
11286         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
11287         print_fold_checksum): New functions.
11288
11289         * fold-const.c (fold): Never modify argument passed to fold, instead
11290         change a copy and return it.
11291         * convert.c (convert_to_integer): Likewise.
11292
11293 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
11294
11295         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
11296         cleanup of junk after #else and #endif directives.  Collapse repeated
11297         clauses into for statment.
11298
11299         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
11300
11301 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
11302
11303         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
11304         (keep_next_if_subblocks): Rename next_is_function_body.
11305         (pushlevel): Adjust commentary.  Always set ->keep on the
11306         outermost level of a function.  Don't set ->keep_if_subblocks.
11307         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
11308         (store_parm_decls): Adjust to match.
11309         (finish_function): Adjust to match.
11310         Call poplevel with all three arguments zero.
11311
11312         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
11313         New functions split out of store_parm_decls.
11314         Avoid unnecessary work. Use local variables consistently.
11315         (store_parm_decls): Likewise.
11316
11317         (finish_function): No need to set functionbody flag on call to
11318         poplevel.
11319         (struct language_function): Remove scope field.
11320         (c_push_function_context, c_pop_function_context): No need to
11321         save and restore current_scope.
11322
11323 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
11324
11325         * doc/extend.texi (Deprecated Features): Implicit typename is
11326         gone. Default args on types is going.
11327
11328 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
11329
11330         * Makefile.in (ifcvt.o): Depend on target.h
11331         * ifcvt.c (target.h): Include.
11332         (if_convert): Don't call mark_loop_exit_edges if we can't
11333         modify jumps.
11334
11335 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11336
11337         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
11338
11339 2003-07-26  Richard Henderson  <rth@redhat.com>
11340
11341         PR inline-asm/11676
11342         * cse.c (count_reg_usage): Handle asm_operands properly.
11343
11344 2003-07-26  Roger Sayle  <roger@eyesopen.com>
11345
11346         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
11347         (DEF_EXT_FALLBACK_BUILTIN): Delete.
11348         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
11349         the regular DEF_EXT_LIB_BUILTIN macro.
11350         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
11351         the regular DEF_LIB_BUILTIN macro.
11352         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
11353         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
11354         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
11355         DEF_EXT_LIB_BUILTIN macro.
11356
11357         * c-decl.c (duplicate_decls): Remove code to handle builtin
11358         functions prototyped without an argument list.
11359
11360 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
11361
11362         * config/i386/winnt.c: Revert 2003-07-08 change.
11363         (i386_pe_section_type_flags): Remove error_with_decl here too.
11364
11365 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11366
11367         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
11368         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
11369         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
11370         (v850_handle_data_area_attribute): Likewise.
11371
11372 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
11373
11374         * varasm.c (output_constant_def_contents): Use
11375         ASM_DECLARE_CONSTANT_NAME if defined.
11376         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
11377         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
11378         objects get at least one byte to prevent assembler problems.
11379         (ASM_DECLARE_CONSTANT_NAME): New.
11380
11381         * Makefile.in (libbackend.o): Remove options_.h.
11382         (mostlyclean): Likewise.
11383
11384         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
11385         insert a label at the end of an function under Mach-O.
11386
11387         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
11388
11389 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
11390
11391         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
11392         equality.
11393         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
11394
11395         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
11396
11397 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11398
11399         * doc/passes.texi (Passes): Mention pretty-printing and
11400         diagnostic files.
11401
11402 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
11403
11404         * doc/extend.texi (Function Attributes): GNU C++ does now allow
11405         unused parameter decls.
11406         (Attribute Syntax): GNU C++ does not allow label attributes to be
11407         after the ':'.
11408
11409 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11410
11411         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
11412         (objc_declare_class): Likewise.
11413         (error_with_ivar): Likewise.
11414         (start_class): Likewise.
11415         (warn_with_method): Likewise.
11416
11417 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11418
11419         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
11420         from GCC.
11421         * calls.c (try_to_integrate): Don't use xxx_with_decl.
11422         (expand_call): Likewise.
11423         * dwarfout.c (output_reg_number): Likewise.
11424         * expr.c (expand_expr): Likewise.
11425         * function.c (assign_temp): Likewise.
11426         (uninitialized_vars_warning): Likewise.
11427         (setjmp_args_warning): Likewise.
11428         (expand_function_end): Likewise.
11429         * stmt.c (fixup_gotos): Likewise.
11430         (warn_about_unused_variables): Likewise.
11431         (expand_end_bindings): Likewise.
11432         * stor-layout.c (layout_decl): Likewise.
11433         (place_field): Likewise.
11434         * toplev.c (check_global_declarations): Likewise.
11435         (rest_of_handle_inlining): Likewise.
11436         (default_tree_printer): New function.
11437         (general_init): Initialize diagnostic machinery before routing
11438         signals to the ICE machinery.  Set default tree printer.
11439         * toplev.h (pedwarn_with_decl): Remove declaration.
11440         (warning_with_decl): Likewise.
11441         (error_with_decl): Likewise.
11442         (pedwarn): Remove attribute for the time being.
11443         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
11444         * varasm.c (named_section): Likewise.
11445         (make_decl_rtl): Likewise.
11446         (assemble_variable): Likewise.
11447         (merge_weak): Likewise.
11448         (declare_weak): Likewise.
11449
11450         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
11451         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
11452         (format_with_decl): Remove.
11453         (diagnostic_for_decl): Likewise.
11454         (pedwarn_with_decl): Likewise.
11455         (warning_with_decl): Likewise.
11456         (error_with_decl): Likewise.
11457         (diagnostic_initialize): Adjust.
11458         (diagnostic_count_diagnostic): Likewise.
11459         (announce_function): Likewise.
11460         (lhd_print_error_function): Likewise.
11461         (diagnostic_report_current_module): Likewise.
11462         (default_diagnostic_starter): Likewise.
11463         (diagnostic_report_diagnostic): Likewise.
11464         (default_diagnostic_finalizer): Likewise.
11465         (verbatim): Likewise.
11466         (error): Likewise.
11467         (warning): Likewise.
11468         * opts.c (common_handle_option): Likewise.
11469         * pretty-print.c: New file.
11470         * c-pretty-print.h (pp_base): Override.
11471         * c-pretty-print.c: Adjust use of macros throughout.
11472         (pp_buffer): New macro.
11473         (pp_newline): Likewise.
11474         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
11475         * Makefile.in (DIAGNOSTIC_H): New variable.
11476         (c-errors.o): Use it.
11477         (c-objc-common.o): Likewise.
11478         (c-common.o): Likewise.
11479         (c-opts.o): Likewise.
11480         (c-format.o): Likewise.
11481         (diagnostic.o): Likewise.
11482         (opts.o): Likewise.
11483         (toplev.o): Likewise.
11484         (rtl-error.o): Likewise.
11485         (dwarf2out.o): Likewise.
11486         (jump.o): Likewise.
11487         (pretty-print.o): New rule.
11488
11489 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11490
11491         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
11492         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
11493         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
11494         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
11495         (DEF_FRONT_END_LIB_BUILTIN): Delete.
11496         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
11497         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
11498
11499         * builtins.c (build_string_literal): New function to construct
11500         a char* pointer to a string literal.
11501         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
11502         "rtx target" to be consistent with other expand_builtin_* functions.
11503         Change 3rd argument from "int unlocked" to "bool unlocked".
11504         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
11505         c-common.c to avoid front-end dependencies.  Optimize printf("")
11506         as a no-op when the result isn't required.  Handle embedded NULs
11507         in format string.
11508         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
11509         from c-common.c to avoid front-end dependencies.  Likewise, optimize
11510         fprintf(fp,"") as a no-op when the result isn't required, evaluating
11511         fp for side-effects.  Handle embedded NULs in format string.
11512         (expand_builtin_sprintf): Fix typo.
11513         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
11514         optimizing.  Adjust calls of expand_builtin_fputs to match the API
11515         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
11516         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
11517         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
11518
11519         * c-common.c (is_valid_printf_arglist): Delete.
11520         (c_expand_builtin): Delete.
11521         (c_expand_builtin_printf): Moved to builtins.c. Delete.
11522         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
11523         (c_expand_expr): No longer treat CALL_EXPRs specially.
11524         (CALLED_AS_BUILT_IN): Delete.
11525
11526 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11527
11528         PR optimization/11631
11529         * gcse.c (store_motion): Connect infinite loops to exit.
11530
11531 2003-07-24  Jason Merrill  <jason@redhat.com>
11532
11533         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
11534         (boolean_true_node, boolean_false_node): Likewise.
11535         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
11536         * tree.c (build_common_tree_nodes): Init boolean_type_node.
11537         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
11538         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
11539         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
11540         (truthvalue_true_node): Renamed from boolean_true_node.
11541         (truthvalue_false_node): Renamed from boolean_false_node.
11542         * c-decl.c: Just set truthvalue_* to integer_*.
11543         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
11544
11545 2003-07-24  Roger Sayle  <roger@eyesopen.com>
11546
11547         * c-decl.c (match_builtin_function_types): New subroutine of
11548         duplicate_decls to test whether a redeclaration of a builtin
11549         function is suitably close, i.e. the return type and all of
11550         the argument types have the same modes as the builtin expects.
11551         (duplicate_decls): Fuzzy type matching for builtin functions
11552         moved to match_builtin_function_types.
11553
11554 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11555
11556         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
11557         flag correctly.
11558
11559 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
11560
11561         * c-decl.c: Search-and-replace change 'binding level' to
11562         'scope' in commentary.
11563         (struct binding_level): Now struct c_scope.
11564         (current_binding_level): Now current_scope.
11565         (free_binding_level): Now scope_freelist.
11566         (current_function_level): Now current_function_scope.
11567         (global_binding_level): Now global_scope.
11568         (make_binding_level): Now make_scope.
11569         (pop_binding_level): Now pop_scope.
11570
11571 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11572
11573         * configure.in (libgcc_visibility): Add missing whitespace.
11574
11575 2003-07-24  Richard Henderson  <rth@redhat.com>
11576
11577         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
11578         __gcc_personality_v0.
11579
11580 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11581
11582         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
11583
11584 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
11585
11586         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
11587         documentation missed from my 2003-07-09 patch.
11588
11589 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
11590
11591         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
11592         it's not provided.
11593         * configure: Rebuild.
11594
11595 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
11596
11597         PR c/10602
11598         * c-typeck.c (type_lists_compatible_p): Do not compare
11599         arguments if one of them is an error_mark_node
11600
11601 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
11602
11603         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
11604         if current_function_calls_eh_return.
11605
11606 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11607
11608         * doc/c-tree.texi (OFFSET_TYPE): Update description.
11609
11610 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
11611
11612         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
11613         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
11614         __umodsi3, __modsi3): Increase frame size to 32.
11615
11616 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
11617
11618         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
11619         prototype.
11620
11621 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
11622
11623         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
11624
11625         PR optimization/10679
11626         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
11627
11628 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
11629
11630         PR target/11607 and PR target/11516
11631         * pa.md (extzv, extv, insv): Revert latter half of last patch.
11632
11633 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
11634
11635         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
11636         * varasam.c (output_constant): Likewise.
11637
11638 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11639
11640         * alias.c: Fix comment formatting.
11641         * c-common.c: Likewise.
11642         * c-decl.c: Likewise.
11643         * c-opts.c: Likewise.
11644         * combine.c: Likewise.
11645         * cpplib.c: Likewise.
11646         * diagnostic.c: Likewise.
11647         * dojump.c: Likewise.
11648         * final.c: Likewise.
11649         * fold-const.c: Likewise.
11650         * gcc.c: Likewise.
11651         * gcse.c: Likewise.
11652         * ggc-page.c: Likewise.
11653         * jump.c: Likewise.
11654         * loop.c: Likewise.
11655         * mips-tfile.c: Likewise.
11656         * recog.c: Likewise.
11657         * regclass.c: Likewise.
11658         * regmove.c: Likewise.
11659         * tree.c: Likewise.
11660         * tree.h: Likewise.
11661
11662 2003-07-22  Per Bothner  <pbothner@apple.com>
11663
11664         * line-map.c (add_line_map):  Handle invalid LEAVE request.
11665         Fixes PR preprocessor/11361.
11666
11667 2003-07-22  Per Bothner  <pbothner@apple.com>
11668
11669         * diagnostic.c.(diagnostic_report_current_module):  Update to match
11670         2003-06-05 changes to push_srcloc and pop_srcloc.
11671
11672 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
11673
11674         * doc/trouble.texi: Better document two-stage name lookup.
11675
11676 2003-07-22  Eric Christopher <echristo@redhat.com>
11677
11678         * config/s390.c (s390_valid_pointer_mode): New.
11679         (TARGET_VALID_POINTER_MODE): Use.
11680         (s390_emit_prologue): Add tpf profiling hooks.
11681         (s390_emit_epilogue): Ditto.
11682         * config/s390.h (MASK_TPF): New.
11683         (TARGET_TPF): Use.
11684         (POINTERS_EXTEND_UNSIGNED): Define.
11685         * config/s390.md (ptr_extend): New pattern.
11686
11687 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
11688
11689         * hashtable.c (approx_sqrt): Make static.
11690         * hashtable.h: Don't prototype approx_sqrt.
11691         * line-map.c (init_line_maps): Rename linemap_init.
11692         (free_line_maps): Rename linemap_free.
11693         (add_line_map): Rename linemap_add.
11694         (lookup_line): Rename linemap_lookup.
11695         (print_containing_files): Rename linemap_print_containing_files.
11696         * linemap.h: Update to match.
11697
11698         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
11699         linemap routines to use new names.
11700
11701 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
11702
11703         * c-common.c (handle_packed_attribute): Don't pack a struct via a
11704         typedef. Propagate packedness from a main variant.
11705
11706 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
11707
11708         * Makefile.in (install-common): Add dependency on installdirs.
11709
11710 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
11711
11712         * c-common.c (c_common_type_for_mode): Return integer types for
11713         pointer modes.
11714
11715 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
11716
11717         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
11718         (finish_decl): Call maybe_apply_pragma_weak here.
11719         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
11720         TREE_PUBLIC and TREE_STATIC are decided.
11721         (start_function): Move call to maybe_apply_pragma_weak.  Check that
11722         DECL_ASSEMBLER_NAME isn't set too early.
11723
11724         * cpplex.c (_cpp_process_line_notes): Mention option name in
11725         trigraphs warning.
11726
11727 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
11728
11729         * combine.c (if_then_else_cond): Simplify the comparison of
11730         rtx against -1, 0, and 1.
11731         * loop.c (check_dbra_loop): Likewise.
11732         * optabs.c (emit_conditional_move): Likewise.
11733         (emit_conditional_add): Likewise.
11734         * config/i386/i386.md (*movsi_or): Likewise.
11735         (*movdi_or_rex6): Likewise.
11736
11737 2003-07-22  Jan Hubicka  <jh@suse.cz>
11738
11739         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
11740
11741 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
11742
11743         * cppfiles.c (open_file_pch): Don't put unused entries in the
11744         splay tree.  Remove dead code.
11745
11746 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
11747
11748         * c-common.h (num_in_fnames): Declare.
11749         (c_static_assembler_name): Move from here...
11750         * c-tree.h (c_static_assembler_name): ... to here.
11751         * c-opts.c: Don't include langhooks-def.h.
11752         (c_static_assembler_name): Move to c-decl.c.
11753         (num_in_fnames): Make externally visible.
11754         * c-decl.c: Include langhooks-def.h.
11755         (c_static_assembler_name): Move from c-opts.c.
11756         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
11757         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
11758
11759         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
11760         when it's not needed.
11761
11762 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
11763
11764         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
11765         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
11766         (rs6000_emit_prologue): Save FPRs inline if set.
11767
11768 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
11769
11770         * config/ia64/ia64.md (prefetch): Support predicate.
11771
11772 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
11773
11774         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
11775         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
11776         table.
11777
11778 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
11779
11780         PR optimization/11536
11781         * unroll.c (loop_iterations): Do not replace a register holding
11782         the final value by its equivalent before the loop if it is not
11783         invariant.
11784
11785 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
11786
11787         * doc/extend.texi: Fixes to spelling, grammar, and diction.
11788
11789 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
11790
11791         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
11792         (V850 Options): Spelling fixes.
11793
11794 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
11795
11796         * doc/invoke.texi: Fixes to style, grammar and diction.
11797
11798 2003-07-20  Roger Sayle  <roger@eyesopen.com>
11799
11800         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
11801         * system.h (SMALL_STACK): Poison obsolete target macro.
11802         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
11803
11804 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
11805
11806         * configure.in:  Cache the results of testing for cmp's capabilities.
11807         * configure:  Regenerate.
11808
11809 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
11810
11811         PR debug/11279
11812         * dwarf2out.c (gen_enumeration_type_die): Remember that
11813         enumerators can be unsigned.
11814
11815 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
11816
11817         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
11818         (push_label_level, pop_label_level): Kill.
11819         (struct binding_level): Rename level_chain to outer.
11820         Add outer_function field.  Change parm_flag, function_body,
11821         keep, keep_if_subblocks to 1-bit bitfields of type bool.
11822         (current_function_level): New variable.
11823         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
11824         (keep_next_level, declare_parm_level, warn_if_shadowing):
11825         Update to match.
11826         (struct language_function): Kill named_labels, shadowed_labels fields.
11827         (c_init_decl_processing, start_function, c_push__function_context)
11828         (c_pop_function_context): No need to muck with named_labels nor
11829         shadowed_labels.
11830
11831         (make_binding_level): No need to clear the structure here.
11832         (pop_binding_level): Always operate on current_binding_level.
11833         Update current_function_level if necessary.
11834         (pushlevel): Don't clear named_labels.  Update current_function_level
11835         if necessary.  Use "true" and "false" where appropriate.
11836         (poplevel): Diagnose labels defined but not used, or vice
11837         versa, and clear out label-meanings leaving scope, while
11838         walking down the decls list, for all binding levels.
11839         Handle LABEL_DECLs appearing in the shadowed list.
11840         pop_binding_level takes no arguments.
11841         (pushdecl_function_level): Use current_function_level.
11842
11843         (make_label, bind_label): New static functions.
11844         (declare_label): New exported function.
11845         (lookup_label, define_label): Rewritten for new data structure.
11846         (shadow_label): Kill.
11847
11848         * c-tree.h: Prototype declare_label; don't prototype
11849         push_label_level, pop_label_level, nor shadow_label.
11850         * c-parse.in: Remove all calls to push_label_level and
11851         pop_label_level.  Use declare_label for __label__ decls.
11852
11853         * doc/extend.texi: Clarify that __label__ can be used to
11854         declare labels with local scope in any nested block, not
11855         just statement expressions.  Cross-reference nested functions
11856         section from local labels section.
11857
11858 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11859
11860         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
11861
11862 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
11863
11864         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
11865
11866 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11867
11868         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
11869         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
11870
11871 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
11872
11873         * config/s390/s390.c (legitimize_pic_address): Access local symbols
11874         relative to the GOT instead of relative to the literal pool base.
11875         (s390_output_symbolic_const): Handle new GOT-relative accesses.
11876         * config/s390/s390.md ("call"): Access local functions and PLT stubs
11877         relative to the GOT instead of relative to the literal pool base.
11878         ("call_value"): Likewise.
11879         ("call_value_tls"): Likewise.
11880
11881         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
11882         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
11883         (s390_chunkify_finish): Likewise.
11884         (s390_chunkify_cancel): Likewise.
11885         (s390_reorg): Adapt caller.
11886         (find_base_register_in_addr,
11887         find_base_register_ref, replace_base_register_ref): Delete.
11888         (find_ltrel_base, replace_ltrel_base): New functions.
11889         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
11890         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
11891         base vs. index register usage.
11892         (struct constant_pool): Remove 'anchor'.
11893         (s390_add_anchor): Delete.
11894         (s390_dump_pool): Remove anchor handling.
11895         * config/s390/s390.md ("reload_anchor"): Remove.
11896
11897         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
11898         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
11899         (s390_emit_prologue): Use it.
11900         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
11901         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
11902         hard-code register 14.
11903         * config/s390/s390-protos.h (s390_load_got): Declare.
11904
11905         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
11906         Support TImode constants.
11907         * config/s390/s390.md ("consttable_ti"): New.
11908         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
11909
11910         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
11911         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
11912         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
11913         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
11914         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
11915         New symbolic constants.
11916         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
11917         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
11918         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
11919         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
11920         symbolic UNSPEC values.
11921         * config/s390/s390.c (larl_operand, s390_short_displacement,
11922         bras_sym_operand, s390_cannot_force_const_mem,
11923         s390_delegitimize_address, s390_decompose_address,
11924         legitimize_pic_address, s390_output_symbolic_const,
11925         s390_function_profiler): Use symbolic UNSPEC values.
11926
11927 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11928
11929         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
11930         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
11931         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
11932         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
11933         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
11934         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
11935         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
11936         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
11937         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
11938         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
11939         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
11940         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
11941         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
11942         postreload.c prefix.c print-tree.c protoize.c ra-build.c
11943         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
11944         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
11945         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
11946         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
11947         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
11948         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
11949         casts.
11950
11951 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11952
11953         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
11954         * toplev.h (warning): Remove attribute.
11955
11956 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
11957
11958         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
11959         (pop_label_level): Likewise.
11960         (duplicate_decls): Likewise.
11961         (implicitly_declare): Likewise.
11962         (shadow_label): Likewise.
11963         (start_decl): Likewise.
11964         (finish_decl): Likewise.
11965         (grokdeclarator): Likewise.
11966         (get_parm_info): Likewise.
11967         (detect_field_duplicates): Likewise.
11968         (finish_struct): Likewise.
11969         (start_function): Likewise.
11970         (store_parm_decls): Likewise.
11971         (finish_function): Likewise.
11972         (c_expand_body_1): Likewise.
11973         (check_for_loop_decls): Likewise.
11974         (merge_translation_unit_decls): Likewise.
11975
11976 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
11977
11978         * common.opt:  Document --param.
11979         * opts.c (columns, undocumented_msg): New.
11980         (print_help): Get number of columns from environment.  Print
11981         --param help.  Tweak newline handling.
11982         (print_param_help): New.
11983         (print_filtered_help): Better handling of duplicates.  Complain
11984         about undocumented switches.
11985         (print_switch): New.
11986         (wrap_help): Improve wrapping, use COLUMNS.
11987         * opts.sh: Ignore comments in records.
11988         * params.def: Fix typos and remove trailing periods.
11989         * toplev.c (display_help): Don't dump --param help.
11990         * doc/sourcebuild.texi: Update.
11991
11992 2003-07-18  Richard Henderson  <rth@redhat.com>
11993
11994         PR target/11556
11995         * optabs.c (prepare_operand): Fail gracefully instead of abort
11996         if the predicate doesn't satisfy.
11997         (gen_cond_trap): Allow prepare_operand to fail.
11998
11999 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12000
12001         * c-common.c: Don't undefine GCC_DIAG_STYLE.
12002         (fname_decl): Don't use xxx_with_decl.
12003         (c_add_case_label): Likewise.
12004         (handle_section_attribute): Likewise.
12005         (handle_alias_attribute): Likewise.
12006         (handle_no_instrument_function_attribute): Likewise.
12007         (handle_no_limit_stack_attribute): Likewise.
12008         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
12009         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
12010
12011 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12012
12013         * Makefile.in (ifcvt.o): Add cfgloop.h.
12014         * basic-block.h (EDGE_LOOP_EXIT): New flag.
12015         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
12016         * ifcvt.c: Include cfgloop.h.
12017         (mark_loop_exit_edges): New static function.
12018         (if_convert): Call it.
12019         (find_if_header): Ignore branches out of loops.
12020
12021 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
12022
12023         * combine.c (simplify_comparison): Don't share rtx when converting
12024         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
12025
12026 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
12027
12028         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
12029         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12030         (MUST_PASS_IN_STACK): Define.
12031         (BLOCK_REG_PADDING): Define.
12032
12033 2003-07-18  Richard Henderson  <rth@redhat.com>
12034
12035         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
12036         to skip the addr_vec.
12037
12038 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
12039
12040         * combine.c (combinable_i3pat): Don't forbid occurrences of
12041         i2dest or i1dest in inner_dest if inner_dest is a mem.
12042
12043 2003-07-18  Jan Hubicka  <jh@suse.cz>
12044
12045         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
12046
12047 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
12048
12049         PR target/11087
12050         * loop.c (basic_induction_var): Check if convert_modes emitted any
12051         instructions. Remove them and return 0 if so.
12052
12053 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
12054
12055         PR optimization/11083
12056         * toplev.c (rest_of_handle_addresof): Rename into
12057         rest_of_handle_addressof.  Delete unreachable blocks
12058         if dead edges were purged after the addressof pass.
12059
12060 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
12061
12062         * Makefile.in, configure, configure.in: Remove handling of
12063         lang-options.h and options_.h.
12064         * toplev.c (struct lang_opt, documented_lang_options): Remove.
12065         (display_help): Don't use documented_lang_options.
12066
12067 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
12068
12069         * c-decl.c (pushdecl_function_level): Make static, return nothing.
12070         (kept_level_p): Fold into poplevel.
12071         (undeclared_variable): Moved here from c-typeck.c.  Export.
12072         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
12073         (undeclared_variable): Prototype here.  Don't prototype
12074         kept_level_p nor pushdecl_function_level.
12075         * c-parse.in: Change first argument to poplevel from
12076         "kept_level_p()" to "KEEP_MAYBE".
12077         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
12078
12079 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12080
12081         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
12082         commutative operands instead of modifying the RTL in-place.
12083
12084 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
12085
12086         PR optimization/11557
12087         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
12088         unless we know which function is being called.
12089
12090 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12091
12092         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
12093         whether to reorder the operands of a commutative binary operator.
12094
12095 2003-07-17  Roger Sayle  <roger@eyesopen.com>
12096
12097         * fold-const.c (const_binop): Avoid performing the FP operation at
12098         compile-time, if either operand is NaN and we honor signaling NaNs,
12099         or if we're dividing by zero and either flag_trapping_math is set
12100         or the desired mode doesn't support infinities.
12101         (fold_initializer): New function to fold an expression ignoring any
12102         potential run-time exceptions or traps.
12103         * tree.h (fold_initializer): Prototype here.
12104         * c-typeck.c (build_binary_op): Move to the end of the file so
12105         that intializer_stack is in scope.  If constructing an initializer,
12106         i.e. when initializer_stack is not NULL, use fold_initializer to
12107         fold expressions.
12108         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
12109         performing FP operations at compile-time, if they would raise an
12110         exception at run-time.
12111
12112 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
12113
12114         PR 11498
12115         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
12116         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
12117         (GTFILES): Add langhooks.c.
12118         (gt-langhooks.h): New.
12119         * c-common.h (c_static_assembler_name): Prototype.
12120         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12121         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
12122         * c-opts.c: Include langhooks-def.h.
12123         (c_static_assembler_name): New.
12124         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
12125         (var_labelno): New.
12126         (lhd_set_decl_assembler_name): Give static objects with context
12127         unique names.
12128         * varasm.c (var_labelno): Delete.
12129         (make_decl_rtl): Don't change the assembler name once it's set.
12130
12131         * c-opts.c (this_input_filename): New.
12132         (finish_options): Take new parameter, name of file being compiled.
12133         Update callers.  Set this_input_filename.
12134         (push_command_line_include): Use this_input_filename not
12135         main_input_filename.
12136
12137 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
12138
12139         * Makefile.in: Depend .pot generation on options.c.
12140         * po/exgettext: Add an extra_files variable containing additional
12141         files to scan.
12142
12143 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
12144
12145         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
12146         c_write_global_declarations.
12147
12148         * c-decl.c: Fix typos in several comments.  Remove all
12149         #if 0 blocks; reindent as needed.  Remove unused argument
12150         to declare_parm_level; all callers changed.
12151         * c-parse.in: Update calls to declare_parm_level.  Avoid
12152         issuing a double warning in some circumstances.
12153         * c-typeck.c: Update calls to declare_parm_level.
12154         * c-tree.h: Update prototype of declare_parm_level.
12155
12156         * c-pragma.c (apply_pragma_weak): Don't complain about a
12157         redundant #pragma weak.
12158
12159         * objc/objc-act.c (forward_declare_categories,
12160         build_selector_reference_decl, build_class_reference_decl,
12161         build_objc_string_decl, synth_forward_declarations,
12162         build_protocol_reference): Set TREE_PUBLIC on synthetic
12163         forward decl to 0, consistent with eventual definition.
12164         Correct comments to match.
12165
12166         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
12167         in regexp that don't form a range expression.
12168         * fixinc/fixincl.def: Regenerate.
12169
12170 2003-07-17  Richard Henderson  <rth@redhat.com>
12171
12172         PR target/10907
12173         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
12174         even with !TARGET_CONST_GP.
12175         (ia64_function_ok_for_sibcall): Reject non-local functions.
12176
12177 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
12178
12179         * c-common.c (c_estimate_num_insns_1): Don't handle
12180         METHOD_CALL_EXPR.
12181         * expr.c (safe_from_p): Likewise.
12182         * gengtype.c (adjust_field_tree_exp): Likewise.
12183         * stmt.c (warn_if_unused_value): Likewise
12184         * tree.c (first_rtl_op): Likewise.
12185         * tree.def: Don't define METHOD_CALL_EXPR.
12186         * java/lang.c (java_estimate_num_insns_1): Don't handle
12187         METHOD_CALL_EXPR.
12188
12189 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
12190
12191         PR other/11466
12192         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
12193         and its restrictions for the SPARC64 port.
12194         Move the entry of "-mimpure-text" before that of "-mv8".
12195
12196 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
12197             Phil Edwards <phil@jaj.com>
12198
12199         * doc/install.texi (*-*-solaris2*): Document the step-by-step
12200         procedure to bootstrap and install.
12201         Document the preference for the legacy Sun tools in /usr/bin
12202         over the POSIX tools in /usr/xpg4/bin for the build process.
12203
12204 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
12205
12206         * c.opt: Document Uncodumented; use it.  Document ObjC options.
12207         * opts.c (print_filtered_help): Skip undocumented switches.
12208         * opts.h (CL_UNDOCUMENTED): New.
12209         * opts.sh: Handle Undocumented.
12210         * toplev.c (documented_lang_options): Prevent its becoming empty.
12211 objc:
12212         * lang-options.h: Remove.
12213
12214 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
12215
12216         * loop.c (check_ext_dependent_givs): Pass const struct loop *
12217         instead of struct loop_info * as argument.  Accept BIVs with
12218         increment +/- 1 provided there is a friendly exit test against
12219         a loop-invariant value.
12220         (strength_reduce): Adapt call to check_ext_dependent_givs.
12221
12222 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
12223             Con Bradley <con.bradley@superh.com>
12224
12225         * sh-protos.h (sh_get_pr_initial_val): Declare.
12226         * sh.c (regno_reg_class): Make its elements type enum reg_class.
12227         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
12228         and live_regs_mask arguments.  Changed all callers.
12229         (save_schedule_s): New structure.
12230         (save_schedule): New typedef.
12231         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
12232         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
12233         In interrupts handlers, also save registers that are usually
12234         partially saved, and make sure there is at least one general purpose
12235         register saved if a target register needs saving.
12236         Add casts in comparisons to avoid warnings.
12237         (sh_media_register_for_return): return -1 for interrupt handlers.
12238         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
12239         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
12240         registers used are available.
12241         Set RTX_FRAME_RELATED_P where appropriate.
12242         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
12243         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
12244         (initial_elimination_offset): Likewise.
12245         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
12246         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
12247         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
12248         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
12249         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
12250         and for target registers.
12251         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
12252         (regno_reg_class): Make its elements type enum reg_class.
12253         (CONSTRAINT_LEN): Don't use isdigit.
12254         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
12255         (FUNCTION_ARG): Add parentheses to avoid warnings.
12256         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
12257         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
12258         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
12259         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
12260         * sh.md (xordi3+1): Remove unused variable regno.
12261         (return_media): Check that tr0 is available before using it.
12262
12263 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
12264
12265         * c.opt: Document more options.
12266
12267 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12268
12269         * combine.c (subst): Also handle (subreg (const_double ...)) case
12270         if created by a substitution, by using the original inner mode.
12271
12272 2003-07-16  Roger Sayle  <roger@eyesopen.com>
12273
12274         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
12275         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
12276         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
12277
12278 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
12279
12280         * doc/install.texi (--without-headers): New.
12281
12282         Partial Fix PR/10129
12283         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
12284         (machopic_output_function_base_name): New; print the true pic label.
12285         (machopic_classify_ident): Pic Base is always a defined data.
12286         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
12287         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
12288
12289         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
12290         if they are not floating point registers.
12291
12292         PR c/10962
12293         * ggc.h: Add header guards.
12294         * c-decl.c (finish_struct): Sort fields if
12295         number greater than 15 and there are no
12296         anonymous structs/unions.
12297         * c-common.h: Include ggc.h.
12298         (sorted_fields_type): New struct.
12299         (field_decl_cmp): New prototype.
12300         (resort_sorted_fields): New prototype.
12301         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
12302         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
12303         as s, removing other fields.
12304         * c-typeck.c (lookup_field): Use s in lang_type.
12305         These were mostly moved from cp/class.c:
12306         * c-common.c (field_decl_cmp): New static function.
12307         (field_decl_cmp): New function.
12308         (resort_sorted_fields): New function.
12309
12310 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
12311
12312         * config/darwin.c (machopic_select_section): Use decl_readonly_section
12313         to do most of the work.
12314
12315 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
12316
12317         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
12318         * config/mmix/mmix.c: Convert functions to ISO C90.
12319         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
12320         formatting.
12321         (mmix_get_hard_reg_initial_val): Tweak section head comment.
12322
12323 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
12324
12325         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
12326
12327 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
12328
12329         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
12330         (uw_update_context_1): Use it.
12331         * config/rs6000/rs6000.c (insn_after_throw): Remove.
12332         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
12333         in parent frame if _Unwind_* called directly instead of through
12334         .plt.
12335         (rs6000_emit_eh_toc_restore): Remove.
12336         (rs6000_emit_prologue): Update stack pointer before doing any saving
12337         if current_function_calls_eh_return.  Generate unwind info for $r2.
12338         (rs6000_emit_epilogue): Restore stack pointer after doing all
12339         restoring if current_function_calls_eh_return.  Restore $r2.
12340         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
12341         * config/rs6000/rs6000.md (eh_return): Remove call to
12342         rs6000_emit_eh_toc_restore.
12343         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
12344         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
12345
12346 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
12347
12348         * expr.c (emit_block_move): Don't move anything if size is const 0.
12349         (clear_storage): Test against const0_rtx instead of comparing INTVAL
12350         against 0.
12351
12352 2003-07-15  David S. Miller  <davem@redhat.com>
12353
12354         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
12355         emit nop if the last real insn is CALL_INSN.
12356
12357 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12358
12359         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
12360         as "nul".
12361         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
12362
12363 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
12364
12365         * config/i386/winnt.c (associated_type): Artificial methods are not
12366         affected by the import/export status of their class unless they are
12367         COMDAT.
12368         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
12369
12370         * config/i386/winnt.c: Fix GCC copyright comment.
12371
12372 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
12373
12374         PR c++/11531
12375         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
12376         not recursing on hard error.
12377         (diagnostic_for_decl): Likewise.
12378         * diagnostic.def: Rearrange.
12379
12380 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12381
12382         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12383         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
12384
12385 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
12386             Richard Henderson  <rth@redhat.com>
12387
12388         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
12389         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
12390         (_Unwind_SetGR): Likewise.
12391         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
12392         (Unwind_SpTmp): New typedef.
12393         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
12394         (uw_update_context): Use _Unwind_GetPtr.
12395         (init_dwarf_reg_size_table): Move above uw_init_context_1.
12396         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
12397         Use _Unwind_SetSpColumn.
12398         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
12399         Use _Unwind_GetPtr.
12400
12401 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12402
12403         * c.opt: Document more options.
12404         * toplev.c (documented_lang_options): Remove all local help strings.
12405
12406 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
12407
12408         PR debug/11473
12409         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
12410         base classes.
12411
12412 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12413
12414         PR target/10795
12415         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
12416         swap comparison operands if doing so would generate an
12417         unrecognizable insn.
12418
12419 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
12420
12421         PR optimization/11320
12422         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
12423         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
12424         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
12425         current_sched_info->compute_jump_reg_dependencies. Record which
12426         registers are used and which registers are set by the jump.
12427         Clear deps->reg_conditional_sets after a barrier.
12428         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
12429         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
12430         (init_deps): Initialize reg_conditional_sets.
12431         (free_deps): Clear reg_conditional_sets.
12432         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
12433         Mark registers live on entry of the fallthrough block and conditionally
12434         set as set by the jump. Mark registers live on entry of non-fallthrough
12435         blocks as used by the jump.
12436         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
12437         Mark new parameters as unused.
12438
12439 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12440
12441         * doc/invoke.texi: Resync MIPS -march documentation.
12442
12443 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12444
12445         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
12446         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
12447         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
12448         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
12449         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
12450         (mips_issue_rate): Handle PROCESSOR_R9000.
12451         (mips_use_dfa_pipeline_interface): Likewise.
12452         * config/mips/9000.md: New file.
12453         * config/mips/mips.md: Include it.
12454         (define_attr cpu): Add r9000.
12455         (mulsi3_mult3): Use "mul" for rm9000 code.
12456
12457 2003-07-15  Stan Cox  <scox@redhat.com>
12458
12459         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
12460         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
12461         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
12462         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
12463         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
12464         (mips_issue_rate): Handle PROCESSOR_R7000.
12465         (mips_use_dfa_pipeline_interface): Likewise.
12466         * config/mips/7000.md: New file.
12467         * config/mips/mips.md: Include it.
12468         (define_attr cpu): Add r7000.
12469         (mulsi3_mult3): Use "mul" for rm7000 code.
12470
12471 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
12472
12473         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
12474         the conditional move patterns.
12475         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
12476         Check for condmove type.
12477         (ir_vr54_arith): Add move type.
12478         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
12479         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
12480
12481 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
12482
12483         * c-opts.c (print_help): Remove.
12484         (c_common_handle_option): Don't handle --help.
12485         * c.opt: Document some options.
12486         (--help): Remove.
12487         * opts.c (print_filtered_help): New.
12488         (print_help): Use it.
12489
12490 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12491
12492         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
12493         * tree.c: (build_common_tree_nodes_2): Likewise.
12494         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
12495         (V4DF_type_node): New.
12496
12497         * c-opts.c (push_command_line_include): Don't free deferred_opts,
12498         we'll need it.
12499         (finish_options): Reset init_cursor.
12500
12501 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
12502
12503         * expr.c (expand_assignment): Remove an unused argument
12504         SUGGEST_REG.
12505         * expr.h: Update the prototype.
12506         * function.c: Update the callers.
12507         * stmt.c: Likewise.
12508
12509 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
12510
12511         PR debug/11098
12512         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
12513         as DECL_ABSTRACT.
12514
12515 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12516
12517         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
12518         with __cplusplus, not "we must use the C++ compiler's type"
12519         * fixinc/inclhack.def (void_null): Note that Interix needs this.
12520         * fixinc/fixincl.x: Regenerate.
12521
12522 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
12523
12524         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
12525         and unseen_objects from the global data before calling
12526         __deregister_frame_info_bases.
12527         (examine_objects): Insert objects into the seen_objects list,
12528         not unseen_objects.
12529         (_Unwind_Find_FDE): Always unlock the global object lists, even if
12530         we couldn't allocate a data structure to put in it.
12531
12532         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
12533         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
12534         (SET_TYPE_PROTOCOL_LIST): New.
12535         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
12536         (get_object_reference): Likewise.
12537
12538 2003-07-14  Jan Hubicka  <jh@suse.cz>
12539
12540         * cfglayout.c (locator_file): Break out from ....
12541         (insn_file): ... here.
12542         (locator_line): Break out from ....
12543         (insn_line): ... here.
12544         * rtl.h (locator_file, locator_line): Declare.
12545         (final_start_function): Set proper line/file info.
12546
12547 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
12548
12549         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
12550         handled by pp_c_cast_expression.
12551
12552 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12553
12554         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
12555         allocate 32768 bytes of stack.  Use addition rather than subtraction
12556         when a single insn is enough.
12557         * config/mips/mips.md: Remove insns and splitters for subtracting
12558         constants.
12559         (subsi3): Only accept register operands.
12560         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
12561         (subdi3_internal_3, subsi3_internal_2): Likewise.
12562         (casesi): Use expand_binop to subtract the lower bound.
12563
12564 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12565
12566         * config/mips/mips.c (mips_in_small_data_p): Don't handle
12567         TARGET_MIPS16 specially.
12568
12569 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
12570
12571         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
12572         mips_output_aligned_bss.
12573         * config/mips/linux.h: Likewise.
12574         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
12575         * config/mips/mips.c (mips_output_aligned_bss): New function.
12576
12577         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
12578         * config/mips/elf64.h: Likewise.
12579
12580         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
12581         mips_declare_object_name.
12582         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
12583         * config/mips/elf64.h: As for elf.h.
12584         * config/mips/iris6.h: Likewise.
12585         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
12586         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
12587         do...while (0) block.
12588         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
12589         (mips_finish_declare_object): Declare.
12590         * config/mips/mips.c (mips_declare_object_name): New function.
12591         (mips_finish_declare_object): New function.
12592
12593         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
12594         * config/mips/linux.h: Likewise.
12595
12596         * config/mips/mips.c (inside_function): Delete.
12597         (file_in_function_warning, ignore_line_number): Delete.
12598         (mips_output_filename): Don't warn about changing filenames within
12599         a function.
12600         (mips_output_lineno): Update accordingly.
12601         (mips_output_function_prologue): Don't reset the deleted variables.
12602         * config/mips/mips.h (inside_function): Delete.
12603         (file_in_function_warning, ignore_line_number): Delete.
12604
12605         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
12606         * config/mips/elf64.h: Likewise.
12607         * config/mips/openbsd.h: Likewise.
12608         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
12609         * config/mips/linux.h: Likewise.
12610         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
12611         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
12612
12613         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
12614         to the list of include files when using gas.
12615         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
12616         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
12617         * config/mips/elf64.h: Likewise.
12618         * config/mips/iris5.h: Likewise.
12619         * config/mips/linux.h: Likewise.
12620         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
12621         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
12622         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
12623         * config/mips/sdb.h: ...this new file.
12624
12625 2003-07-14  Douglas Rupp  <rupp@gnat.com>
12626
12627         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
12628         argument to getcwd; use fixed buffer instead.
12629
12630 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
12631
12632         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
12633         * fixinc/fixinc.wrap: Delete.
12634
12635 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12636
12637         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
12638         don't have 2.
12639
12640 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
12641
12642         * ggc-page.c (struct globals): Add new fields to keep track of the
12643         total allocated memory and overhead.
12644         (ggc_print_statistics): Print them.
12645         (ggc_alloc): Keep track of the total allocated memory and the
12646         overhead.
12647
12648         * tree.c (dump_tree_statistics): Increase spacing.
12649         (enum tree_node_kind): Move to ...
12650         * tree.h (enum tree_node_kind): ... here.
12651         (tree_node_counts, tree_node_sizes): Declare.
12652
12653 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
12654
12655         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
12656
12657 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12658
12659         PR optimization/11440
12660         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
12661         SIGN_EXTRACT SETs.
12662
12663 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
12664
12665         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
12666         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
12667         (emit_group_load, emit_group_store): Adjust declarations.
12668         Remove most occurrences of #ifdef TREE_CODE.
12669         * expr.c (emit_group_load): Add "type" param, and use
12670         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
12671         aligned accesses if !SLOW_UNALIGNED_ACCESS.
12672         (emit_group_store): Likewise.
12673         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
12674         emit_group_load and emit_group_store calls.
12675         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
12676         BLOCK_REG_PADDING to determine whether we need endian_correction.
12677         (load_register_parameters): Localize vars.  Handle shifting of
12678         small values to the correct end of regs.  Adjust emit_group_load
12679         call.
12680         (expand_call, emit_library_call_value_1): Adjust emit_group_load
12681         and emit_group_store calls.
12682         * function.c (assign_parms): Set mem alignment for stack slots.
12683         Adjust emit_group_store call.  Store values at the "wrong" end
12684         of regs to the stack.  Use BLOCK_REG_PADDING.
12685         (locate_and_pad_parm): Save where_pad.
12686         (expand_function_end): Adjust emit_group_load call.
12687         * stmt.c (expand_value_return): Adjust emit_group_load call.
12688         * Makefile.in (calls.o): Depend on $(OPTABS_H).
12689         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
12690         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
12691         (MUST_PASS_IN_STACK): Define.
12692         (BLOCK_REG_PADDING): Define.
12693         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
12694         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
12695         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
12696         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
12697         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
12698
12699 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
12700
12701         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
12702
12703 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12704
12705         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
12706         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
12707
12708 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12709
12710         PR other/11123
12711         * toplev.c: Don't cut off option names.
12712
12713 2003-07-13  Andreas Jaeger  <aj@suse.de>
12714
12715         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
12716         to integer of different size.
12717
12718 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
12719
12720         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
12721         to (eq (and X 1) 0).
12722
12723 2003-07-13  Andreas Jaeger  <aj@suse.de>
12724
12725         * config.gcc: Add pmmintrin.h for x86_64-*-*.
12726
12727 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12728
12729         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
12730         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
12731         list.  Move these all together down by cpplib.
12732
12733         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
12734         definition of CPPCHAR_SIGNED_T.
12735
12736         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
12737         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
12738         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
12739
12740         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
12741         * cppinit.c (cpp_create_reader): Likewise.
12742
12743         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
12744         * cpptrad.c: Likewise.  All callers changed.
12745         * cpplib.c: All callers changed.
12746         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
12747         * hashtable.h: Define GTY(x) to nothing here too.
12748
12749 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12750
12751         * stor-layout.c (compute_record_mode): Remove very obsolete test
12752         that forces BLKmode for records with fields crossing word boundary.
12753
12754 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
12755
12756         * Makefile.in: Remove orphan reference to acconfig.h.
12757
12758 2003-07-13  Andreas Jaeger  <aj@suse.de>
12759
12760         * cgraphunit.c: Convert prototypes to ISO C90.
12761
12762 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
12763
12764         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
12765         (for OpenBSD).
12766         * fixinc/fixincl.x: Rebuild.
12767
12768 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12769
12770         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
12771         i?86-*-*.  Use correct name of cache variable.
12772         * configure: Regenerate.
12773
12774 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12775
12776         * config/alpha/alpha.c: Fix comment typos.
12777         * config/alpha/alpha.md: Likewise.
12778         * config/arm/arm.c: Likewise.
12779         * config/arm/arm.md: Likewise.
12780         * config/arm/lib1funcs.asm: Likewise.
12781         * config/avr/avr.md: Likewise.
12782         * config/arm/README-interworking: Fix typos.
12783
12784 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
12785
12786         * c-format.c: Fix comment formatting.
12787         * c-typeck.c: Likewise.
12788         * coverage.c: Likewise.
12789         * cppcharset.c: Likewise.
12790         * cpplib.c: Likewise.
12791         * dbxout.c: Likewise.
12792         * gcov-io.h: Likewise.
12793         * toplev.c: Likewise.
12794
12795 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12796
12797         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
12798         fix.
12799
12800 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
12801
12802         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
12803         uses three-argument AC_DEFINE so no acconfig.h entries are
12804         needed.
12805         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
12806         which contains the GAS version number as a scaled integer.
12807         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
12808         ability to check for ELF assembler.
12809         (gcc_GAS_CHECK_FEATURE): New macro.
12810         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
12811         assembler feature checks using gcc_GAS_CHECK_FEATURE.
12812         Use three-argument AC_DEFINE everywhere.
12813         * acconfig.h: Deleted.
12814         * config.in, configure: Regenerate.
12815
12816 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
12817
12818         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
12819         (on OpenBSD).
12820         * fixinc/fixincl.x: Regenerate.
12821
12822         * fixinc/inclhack.def (gnu_types): Improve comment.
12823
12824 2003-07-12  Andreas Jaeger  <aj@suse.de>
12825
12826         * fp-test.c (main): Use ISO C90 prototype.
12827
12828         * version.c: Remove unneded include of ansidecl.h.
12829
12830         * cgraph.h: Convert prototypes to ISO C90.
12831         * cgraph.c: Likewise.
12832         * fix-header.c: Likewise.
12833         * ra.h: Likewise.
12834         * protoize.c: Likewise.
12835
12836 2003-07-12  Jan Hubicka  <jh@suse.cz>
12837
12838         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
12839         warning.
12840
12841 2003-07-12  Jan Hubicka  <jh@suse.cz>
12842                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12843
12844         * cgraph.c (cgraph_max_uid): New global variable.
12845         (cgraph_node): Set uid field.
12846         (create_edge): Keep inline flags consistent.
12847         (dump_cgraph): Dump more info.
12848         * cgraph.h (struct cgraph_local_info): Remove inline_many and
12849         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
12850         (struct cgraph_global_info): Add insns, calls, cloned_times,
12851         will_be_output.
12852         (struct cgraph_node): Add uid.
12853         (struct cgraph_edge): Add inline_call.
12854         (cgraph_max_uid, cgraph_inline_p): Declare.
12855         * cgraph.c: Include params.h and fibheap.h
12856         (cgraph_mark_functions_to_inline_once): Kill.
12857         (INSNS_PER_CALL): New constant.
12858         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
12859         static variables.
12860         (cgraph_finalize_function): Do not analyze inlining.
12861         (cgraph_finalize_compilation_unit): Set inlining attributes.
12862         (cgraph_mark_functions_to_output): More consistency checks.
12863         (cgraph_optimize_function): Set current_function_decl to NULL.
12864         (cgraph_expand_function): Use new inline flags.
12865         (cgraph_postorder): Expand from cgraph_expand_functions.
12866         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
12867         (cgraph_inlined_into, cgraph_inlined_callees,
12868         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
12869         cgraph_mark_inline, cgraph_check_inline_limits,
12870         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
12871         cgraph_decide_inlining, cgraph_inline_p): New functions.
12872         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
12873         PARAM_INLINE_UNIT_GROWTH): New parameters.
12874         * tree-inline.c (struct inline_data): New field current_decl.
12875         (expand_call_inline): Avoid forward declarations; use
12876         inlinable_function_p.
12877         (optimize_inline_calls): Set id.current_decl.
12878
12879 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
12880
12881         * configure.in: Remove wrongly added definition of
12882         local_prefix.
12883         * configure: Regenerate.
12884
12885 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
12886
12887         * rtl.def (NOTE): Do not use padding.
12888
12889 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
12890
12891         * doc/install.tex: Update required binutils for i?86-*-linux*
12892
12893 2003-07-11  Richard Henderson  <rth@redhat.com>
12894
12895         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
12896
12897 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
12898
12899         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
12900         TRANSLATION_UNIT_DECL as top_level.
12901
12902 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
12903
12904         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
12905         then fall back to cmpstrM.
12906         * builtins.c (expand_builtin_memcmp): Likewise.
12907         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
12908         (s390_expand_cmpmem): ... this.
12909         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
12910         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
12911         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
12912         to s390_expand_cmpmem.
12913         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
12914         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
12915         to cmpmem*.
12916         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
12917         cmpstr* patterns.
12918         * doc/md.texi (cmpstrM): Describe as String compare insn, not
12919         Block compare insn.
12920         (cmpmemM): Add.
12921
12922 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
12923
12924         * config/i386/freebsd.h (SET_ASM_OP): Remove.
12925         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
12926         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
12927          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
12928
12929 2003-07-11  Richard Henderson  <rth@redhat.com>
12930
12931         * function.c (assign_parms): Don't recombine complex args if
12932         fnargs is unchanged from orig_fnargs.
12933         (split_complex_args): Return args without complex before copying.
12934         Re-layout the modified parameters.
12935
12936 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
12937
12938         * regclass.c (choose_hard_reg_mode): Add third argument.
12939         Changed all callers.
12940         * rtl.h (choose_hard_reg_mode): Update declaration.
12941         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
12942         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
12943
12944 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
12945
12946         * c-decl.c (finish_decl): Handle 'used' here...
12947         * cgraphunit.c (cgraph_finalize_function): ... and here ...
12948         * c-common.c: (handle_used_attribute): ... not here.
12949
12950         * configure.in (onstep): Support --enable-intermodule.
12951         * Makefile.in (OBJS-common): New.
12952         (OBJS-md): New.
12953         (OBJS-archive): New.
12954         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
12955         (OBJS-onestep): New.
12956         (libbackend.a): Support @onestep@.
12957         (libbackend.o): New.
12958         * configure: Regenerate.
12959
12960         * c-common.h (c_reset_state): New prototype.
12961         (c_parse_file): New prototype.
12962         (finish_file): Move prototype from c-tree.h.
12963         * c-decl.c: Include <hashtab.h>.
12964         (builtin_decls): New.
12965         (current_file_decl): New.
12966         (duplicate_decls): Add extra parameter. Change all callers.  Don't
12967         output duplicate common symbols.
12968         (link_hash_hash): New.
12969         (link_hash_eq): New.
12970         (poplevel): Handle popping of the top level.
12971         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
12972         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
12973         (pushdecl_top_level): Likewise.
12974         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
12975         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
12976         (finish_decl): Handle TRANSLATION_UNIT_DECL.
12977         (merge_translation_unit_decls): New.
12978         (c_write_global_declarations): New.
12979         (c_reset_state): New.
12980         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
12981         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
12982         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
12983         TRANSLATION_UNIT_DECL.
12984         (c_objc_common_finish_file): Call merge_translation_unit_decls.
12985         * c-opts.c (in_fnames): Rename from in_fname.
12986         (c_common_decode_option): Handle multiple input filenames.
12987         (c_common_post_options): Likewise.
12988         (c_common_parse_file): Likewise; also, call c_parse_file rather than
12989         yyparse.
12990         * c-parse.in: Move cleanup code to c_parse_file.
12991         (free_parser_stacks): Move contents to c_parse_file.
12992         (c_parse_file): New.
12993         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
12994         for integer types.
12995         (C_DECL_FILE_SCOPE): New.
12996         (finish_file): Move prototype to c-common.h.
12997         (merge_translation_unit_decls): New prototype.
12998         (comptypes): Add extra parameter to prototype.
12999         (c_write_global_declarations): New prototype.
13000         * c-typeck.c (tagged_types_tu_compatible_p): New.
13001         (function_types_compatible_p): Add extra parameter, change all callers.
13002         (type_lists_compatible_p): Likewise.
13003         (comptypes): Likewise.
13004         (struct tagged_tu_seen): New.
13005         (tagged_tu_seen_base): New.
13006         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
13007         (c_mark_addressable): Remove #if 0 code.
13008         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
13009         comment explaining why it shouldn't have to.
13010         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
13011         options.
13012         * cppinit.c (cpp_read_next_file): New.
13013         (cpp_read_main_file): Use it.
13014         * cpplib.c (undefine_macros): New.
13015         (cpp_undef_all): New.
13016         * cpplib.h (cpp_read_next_file): Prototype.
13017         (cpp_undef_all): Prototype.
13018         * langhooks-def.h (write_global_declarations): Remove prototype.
13019         * toplev.h (write_global_declarations): Add prototype.
13020         * tree.c (decl_type_context): Use switch statement, handle
13021         TRANSLATION_UNIT_DECL.
13022         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
13023         (TRANSLATION_UNIT_DECL): New kind of tree.
13024         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
13025         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
13026         * doc/invoke.texi: Make attempt to document new functionality.
13027
13028         2003-05-19  Per Bothner <bothner@apple.com>
13029
13030         * gcc.c (combine_inputs): New.
13031         (process_command): Set combine_inputs.
13032         (do_spec_1): Handle combine_inputs.
13033         (main): Likewise.
13034
13035 2003-07-10  James E Wilson  <wilson@tuliptree.org>
13036
13037         PR optimization/9745
13038         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
13039         loop_insn_emit_before.
13040         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13041
13042 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
13043
13044         * cppcharset.c: Fix comment.
13045         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
13046         (EILSEQ): #define to EINVAL if not already defined.
13047         (convert_using_iconv): #if out when !HAVE_ICONV.
13048         (init_iconv_desc): Handle !HAVE_ICONV here...
13049         (cpp_init_iconv): ...not here.
13050
13051 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
13052
13053         * common.opt: More --help messages.
13054         * opts.c (print_help): Use puts().
13055         * toplev.c (f_options): Remove help text.
13056         (display_help): Don't dump f_options.
13057
13058 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
13059
13060         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
13061         Move i?86-*-interix* to the don't-fix list.
13062         * fixinc/fixinc.interix: Delete with extreme prejudice.
13063
13064 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
13065
13066         PR bootstrap/10758
13067         * doc/install.texi: Document requirements for ia64-*-hpux* target.
13068
13069 2003-07-10  Roger Sayle  <roger@eyesopen.com>
13070
13071         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
13072
13073 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
13074
13075         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
13076         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
13077         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
13078         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
13079         convert_no_conversion, convert_using_iconv): New functions.
13080         (APPLY_CONVERSION): New macro.
13081         (struct conversion, conversion_tab): New data structure.
13082         (init_iconv_desc): Check conversion_tab for a custom conversion
13083         primitive before trying to use iconv.
13084         (convert_cset): Deleted.
13085         (cpp_init_iconv): Use UTF- terminology, not UCS-.
13086         (_cpp_destroy_iconv): Update to match.
13087         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
13088         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
13089         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
13090         (_cpp_interpret_string_notranslate): New function, moved here
13091         from cpplib.c.
13092
13093         * cpphash.h (convert_f, struct cset_converter): New types.
13094         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
13095         are now struct cset_converter, not bare iconv_t.
13096         Update prototypes.
13097         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
13098         all callers changed.
13099
13100 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
13101
13102         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
13103         to opts.sh command line.
13104         * opts.sh: Write to temporary files with a move-if-change at the end.
13105
13106 2003-07-10  Denis Chertykov  <denisc@overta.ru>
13107             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
13108
13109         * combine.c (gen_binary): Handle the CLOBBER rtx and
13110         don't build a binary operation with it.
13111
13112 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13113
13114         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
13115         store_killed_after, store_killed_before): Keep track of the correct
13116         dependency function to use.
13117
13118 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
13119         * toplev.c (do_compile): Don't try to open dump files before
13120         lang_dependent_init initializes dump_base_name.
13121
13122 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13123
13124         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
13125         Use ARRAY_SIZE.
13126         * config/frv/frv.c (frv_expand_builtin): Likewise.
13127         * config/sh/sh.c (sh_media_init_builtins): Likewise.
13128
13129 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
13130
13131         PR c++/10032
13132         * doc/invoke.texi (C++ Dialect Options): Change documentation of
13133         -fpermissive.
13134
13135 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
13136
13137         * tm.texi (RETURN_ADDR_OFFSET): Document.
13138
13139 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
13140
13141         * gcov-io.h: Update documentation.
13142         (GCOV_UNSIGNED2STRING): New.
13143         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
13144         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
13145         GCOV_TAG_SUMMARY_LENGTH): Adjust.
13146         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
13147         GCOV_TAG_COUNTER_NUM): New.
13148         (GCOV_BLOCK_SIZE): Number of words.
13149         (gcov_var): Adjust buffer type.
13150         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
13151         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
13152         count, not byte count.
13153         (gcov_open): Adjust overread init.
13154         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
13155         gcov_write_string, gcov_write_tag, gcov_write_length,
13156         gcov_write_tag_length): Adjust.
13157         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
13158         (gcov_sync, gcov_seek): Adjust.
13159         * gcov-dump.c (print_usage): Show gcc version only.
13160         (dump_file): Use GCOV_UNSIGNED2STRING.
13161         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
13162         * gcov.c (print_version): Show gcc version only.
13163         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
13164         GCOV_TAG_*_NUM macros.
13165         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
13166         GCOV_TAG_COUNTER_LENGTH.
13167         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
13168         Use GCOV_TAG_COUNTER_NUM.
13169         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
13170         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
13171
13172 2003-07-10  Andreas Schwab  <schwab@suse.de>
13173
13174         * gcov-dump.c (dump_file): Fix missing address operator.
13175
13176 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
13177
13178         PR c/11449
13179         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
13180         of HOST_WIDE_INT.
13181         (fold_single_bit_test): If sign_bit_p() fails, assume that the
13182         bit being tested is not a sign bit.
13183
13184 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
13185
13186         * config/h8300/h8300.md (a peephole2): New.
13187
13188 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
13189
13190         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
13191         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
13192         from ld-linux.so.2 to ld.so.1.
13193         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
13194         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
13195         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
13196         nor -Wl,-rpath-link.
13197         (LIB_SPEC): Add -rpath-link if !static.
13198         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
13199         * config/mn10300/mn10300.c (mn10300_protect_label): New
13200         variable.
13201         * config/mn10300/linux.h (PRINT_OPERAND,
13202         PRINT_OPERAND_ADDRESS): Set it during their execution.
13203         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
13204         mn10300_protect_label is set.
13205         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
13206         -Wl,-rpath-link.
13207         (LIB_SPEC, STARTFILE_SPEC): Define.
13208         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
13209         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
13210         FLOAT_BIT_ORDER_MISMATCH.
13211         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
13212         * config.gcc (am33_2.0-*-linux*): Added.
13213         * config/mn10300/linux.h: New.
13214         * config/mn10300/t-linux: New.
13215
13216 2003-07-10  Andreas Jaeger  <aj@suse.de>
13217
13218         * fold-const.c: Properly wrap prototypes.
13219
13220 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
13221
13222         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
13223         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
13224         Moved from...
13225         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
13226         * config/mn10300/mn10300.h: GTY-declare it.
13227         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
13228         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
13229         prototype.  Use incoming RTL argument.
13230         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
13231         * config/mn10300/mn10300.md (int_label): Move C statements...
13232         (GOTaddr2picreg): ... here.
13233         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
13234         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
13235         * config/mn10300/mn10300.c (mn10300_encode_section_info):
13236         ... here.  New function.
13237         (TARGET_ENCODE_SECTION_INFO): Define to it.
13238         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
13239         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
13240         pattern name.
13241         (mn10300_loadPC): Define as insn splittable after reload.
13242         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
13243         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
13244         be defined in .rodata even in PIC, now that the assembler
13245         supports that.
13246         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
13247         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
13248         symbol take an underscore prefix.
13249         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13250         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
13251         legitimize_pic_address): Declare.
13252         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
13253         the PIC register as fixed.
13254         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
13255         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
13256         PIC.
13257         (LEGITIMATE_PIC_OPERAND_P): Define.
13258         (PIC_OFFSET_TABLE_REGNUM): Define.
13259         (GOT_SYMBOL_NAME): Define.
13260         (SYMBOLIC_CONST_P): Define.
13261         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
13262         symbols.
13263         (MN10300_GLOBAL_P): Test it.
13264         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
13265         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
13266         * config/mn10300/mn10300.c (print_operand): Handle unspec.
13267         (expand_prologue): Set PIC register.
13268         (call_address_operand): Don't match SYMBOL_REFs in PIC.
13269         (legitimize_address): Call legitimize_pic_address.
13270         (legitimize_pic_address): New fn.
13271         (legitimate_pic_operand_p): New fn.
13272         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
13273         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
13274         UNSPEC_PLT): New constants.
13275         (pop_pic_reg): New insn.
13276         (movsi): Adjust non-PIC addresses.
13277         (builtin_setjmp_receiver): Restore the PIC register.
13278         (casesi): New insn.
13279         (call): Adjust non-PIC addresses.
13280         (int_label, GOTaddr2picreg): New expands.
13281         (am33_loadPC): New insn.
13282         (mn10300_loadPC): New expand.
13283         (call_next_insn): New insn.
13284         (add_GOT_to_pic_reg): New expand.
13285         (symGOT2reg, symGOT2reg_i): New expands.
13286         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
13287         (sym2PIC, sym2PLT): New expands.
13288
13289 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
13290
13291         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
13292         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
13293         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
13294         to flag_unsafe_math_optimizations.
13295         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
13296         * config/mn10300/mn10300.c (expand_prologue): Mark
13297         FP-register-saving insns as frame-related.
13298         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
13299         * config/mn10300/mn10300.c
13300         (mn10300_get_live_callee_saved_regs): Don't search past
13301         LAST_EXTENDED_REGNUM.
13302         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
13303         * config/mn10300/mn10300.md: Remove excessive line breaks from
13304         `@' output patterns that were accounted as additional
13305         alternatives.
13306         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
13307         Re-introduce changes accidentally removed in Richard Sandiford's
13308         2000-12-05's patch.
13309         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
13310         Re-instate am33-2 lost in merge from net GCC.
13311         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
13312         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
13313         floating-point registers.
13314         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
13315         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
13316         pessimizations that had gone in on 2000-05-08.
13317         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
13318         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
13319         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
13320         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
13321         operand 0.
13322         * (movhi): Likewise.
13323         * (movsi): Likewise.
13324         * (movsf): Likewise.
13325         * (movdi): Likewise.
13326         * (movdf): Likewise.
13327         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
13328         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
13329         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
13330         (expand_prologue, expand_epilogue): Save and restore FP regs.
13331         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
13332         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
13333         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
13334         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
13335         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
13336         Do not clobber cc0.
13337         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
13338         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
13339         Discourage the two-argument, longer opcodes.
13340         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
13341         ones.
13342         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
13343         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
13344         * config/mn10300/mn10300.md (cmpsf): New pattern.
13345         (branch): Test mdep.fpCC and output fbCC.
13346         * config/mn10300/mn10300.c (print_operand): Output conditions.
13347         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
13348         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
13349         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
13350         mulsf3, divsf3): Use the `F' constraint for FP values.
13351         * config/mn10300/mn10300.c (const_1f_operand): New function.
13352         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
13353         * config/mn10300/mn10300.md (sqrtsf2): New expand.
13354         (rsqrtsf2): New insn.
13355         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
13356         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
13357         previous check-in.
13358         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
13359         * config/mn10300/mn10300.md (abssf2, negdf2): On
13360         TARGET_AM33_2, expand to...
13361         (abssf2_am33_2, negdf2_am33_2): New insns.
13362         (addsf3, subsf3, mulsf3, divsf3): Likewise.
13363         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
13364         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
13365         movdi, movdf): Added FP regs.
13366         * invoke.texi (-mam33-2, -mno-am33-2): Document.
13367         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
13368         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
13369         New macros.
13370         (REGNO_AM33_2_FP_P): Renamed to...
13371         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
13372         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
13373         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13374         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
13375         regs from GENERAL_REGS.
13376         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
13377         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
13378         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
13379         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
13380         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
13381         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
13382         as FP_REGS.
13383         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
13384         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
13385         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
13386         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
13387         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
13388         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
13389         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
13390         AM33/2.0 floating-point registers.
13391         (CONDITIONAL_REGISTER_USAGE): Adjust.
13392         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
13393         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
13394         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
13395         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
13396         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
13397         (MULTILIB_DIRNAMES): Likewise.
13398         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
13399         `__AM33_2__' when `-mam33-2' is given.
13400         (TARGET_AM33_2): Define.
13401         (TARGET_SWITCHES): Adjust.
13402         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
13403         when appropriate.
13404
13405 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
13406
13407         * doc/install.texi: Add missing @.
13408
13409 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
13410
13411         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
13412
13413 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
13414
13415         PR/11144
13416         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
13417
13418 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
13419
13420         PR bootstrap/11043
13421         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
13422         "x-crtfini.o" with "crtinit.o", "crtfini.o".
13423
13424         * fixinc/inclhack.def (limits_ifndefs): Add select test.
13425         * fixinc/fixincl.x: Rebuild.
13426
13427         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
13428         * fixinc/fixincl.x: Rebuild.
13429
13430 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
13431
13432         * doc/install.texi (Configuration): Document the valgrind option
13433         to --enable-checking.
13434
13435 2003-07-09  Jan Hubicka  <jh@suse.cz>
13436
13437         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13438
13439 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13440
13441         * c-lex.c (cb_ident): Cast cstr.text to const char *.
13442
13443 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13444
13445         * gcov-io.h: Update documentation.
13446         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
13447         GCOV_NOTE_MAGIC.
13448         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
13449         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
13450         (struct gcov_var): Change buffer's type. Add endian flag.
13451         (gcov_open): Remove mode in libgcov.
13452         (gcov_magic): Prototype.
13453         * gcov-io.c (from_file): New.
13454         (gcov_open): Clear endian flag.
13455         (gcov_magic): New.
13456         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
13457         pointers.
13458         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
13459         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
13460         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
13461         * gcov-iov.c (main): Correct cast.
13462         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
13463         conversion.
13464         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
13465         (coverage_init): Use GCOV_NOTE_SUFFIX.
13466         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
13467         Rename to gcov_version, and return flag.
13468         (gcov_exit): Use gcov_version.
13469         (__gcov_init): Use gcov_version.
13470         * Makefile.in (coverageexts): Update.
13471         * gcov.c (print_version): Remove endianness conversion.
13472         (create_file_names): Use GCOV_NOTE_SUFFIX.
13473         (read_graph_file): Use gcov_magic.
13474         (read_count_file): Likewise.
13475         * gcov-dump.c (dump_file): Remove endianness conversion, use
13476         gcov_magic.
13477
13478 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
13479
13480         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
13481         coverage is on.
13482         * configure: Regenerated.
13483         * Makefile.in (ALL_CFLAGS): Correct its comment.
13484
13485 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
13486
13487         * fold-const.c (make_range): Do not access operand 1 for a
13488         zero-operand operator.
13489
13490 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
13491
13492         * toplev.c (warn_dummy, W_options): Die.
13493         (display_help): Don't print W_options.
13494         * common.opt: Add W_options help from toplev.c.
13495
13496 2003-07-09  Andreas Jaeger  <aj@suse.de>
13497
13498         * opts.c (wrap_help): Only pass int arguments as arguments to
13499         printf's '*' modifier.  Change argument of function.
13500
13501 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13502
13503         * doc/invoke.texi: Fix misspelling of "@item".
13504
13505 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13506
13507         * config/i386/i386.md: Remove an old comment about
13508         NOTICE_UPDATE_CC.
13509
13510 2003-07-09  Jan Hubicka  <jh@suse.cz>
13511
13512         * cgraph.c (cgraph_node_name): New function.
13513         (dump_cgraph): Use it.
13514         * cgraph.h (cgraph_dump_file): Declare.
13515         (cgraph_node_name): Declare.
13516         * cgraphunit.c: Include timevar.h
13517         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
13518         (cgraph_optimize_function): Use TV_INTEGRATION.
13519         (cgraph_mark_local_functions): reorganize dumps.
13520         (cgraph_mark_functions_to_inline_once): Likewise.
13521         (cgraph_optimize): Likewise; use timevar.
13522         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
13523         * toplev.c (dump_file_index): Add DFI_cgraph.
13524         (dump_file_info): Likewise.
13525         (cgraph_dump_file): New global variable.
13526         (do_compile): Open and close cgraph dump.
13527         * invoke.texi (-d): Document new flag; renumber.
13528
13529 2003-07-08  Roger Sayle  <roger@eyesopen.com>
13530
13531         PR c/11370
13532         * calls.c (emit_call_1): Don't bother popping the arguments off of
13533         the stack after a noreturn function call;  The adjustment is dead.
13534         (expand_call): Likewise.
13535
13536 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
13537
13538         * expr.c (MOVE_MAX_PIECES): Move from here...
13539         * defaults.h (MOVE_MAX_PIECES): ... to here.
13540
13541 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
13542
13543         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
13544
13545 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13546
13547         * genattr.c (internal_dfa_insn_code): Don't prototype.
13548         * genattrtab.c (attr_desc): Add `static_p' field.
13549         (expand_units): Make blockage range and ready cost functions
13550         static.
13551         (write_attr_get): Don't add extern prototypes in C file.  Mark
13552         static functions as appropriate.
13553         (find_attr, make_internal_attr): Initialize static_p.
13554         * genattrtab.h (ATTR_STATIC): New macro.
13555         * genautomata.c (output_internal_reset_func): Mark output function
13556         as inline.
13557         (make_internal_dfa_insn_code_attr): Mark output function as static.
13558
13559 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13560
13561         * genattrtab.h: Add new macros for attr `special' flags.
13562         * genattrtab.c (attr_desc): Reorder/resize fields better.
13563         Use attr `special' macros in all calls to make_internal_attr.
13564         * genautomata.c: Likewise.
13565
13566 2003-07-09  Jan Hubicka  <jh@suse.cz>
13567
13568         * c-common.c (c_estimate_num_insns_1): New static function.
13569         (c_estimate_num_insns): New global function.
13570         * c-common.h (DECL_NUM_STMTS): Rename to...
13571         (DECL_ESTIMATED_INSNS): ... this.
13572         (c_estimate_num_insns): Declare.
13573         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
13574         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
13575         * c-semantics.c (add_stmt): Do not account statements.
13576         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
13577         New.
13578         * langhooks.h (lang_hooks_for_tree_inlining): Add
13579         estimate_num_insns
13580         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
13581         to 100.
13582         (max-inline-insns): set to 300.
13583         (min-inline-insns): set to 10.
13584         * tree-inline.c (struct inline_data): Rename inlined_stmts to
13585         inlined-insns.
13586         (INSNS_PER_STMT): Kill.
13587         (inlinable_function_p): Compute and store body size.
13588         (expand_call_inline): Likewise.
13589         (optimize_inline_calls): Likewise.
13590
13591 2003-07-08  James E Wilson  <wilson@tuliptree.org>
13592
13593         PR target/10021
13594         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
13595         loop over new variable t2 instead of t.
13596
13597 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13598
13599         PR bootstrap/11455
13600         * config/i386/winnt.c: Replace use of error(), warning() with
13601         error_with_decl(), warning_with_decl(),  throughout.
13602
13603 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13604
13605         * opts.c (wrap_help): Use unsigned int, not size_t.
13606
13607 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
13608
13609         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
13610         as .file/.loc directives are incompatible with linker relaxation.
13611
13612 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13613
13614         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
13615         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
13616         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
13617         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
13618         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
13619         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
13620         Escape { and } characters which are not part of range expressions.
13621         * fixinc/fixincl.x: Regenerate.
13622         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
13623
13624 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
13625
13626         PR c/1687
13627         * tree-inline.c (find_alloca_call): Use
13628         walk_tree_without_duplicates, instead of walk_tree.
13629         (find_builtin_longjmp_call): Likewise.
13630         * c-objc-common.c (c_cannot_inline_fn): Likewise.
13631         * c-semantics.c (find_reachable_label): Likewise.
13632
13633 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13634
13635         PR c/11420
13636         * config/i386/i386.c (ix86_check_movabs): New function.
13637         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
13638         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
13639         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
13640
13641 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
13642
13643         * Makefile.in (install-po): Cope with empty CATALOGS.
13644
13645 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
13646
13647         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13648         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
13649         (SECTION_FUNCTION_TEMPLATE): Delete.
13650         * config/mips/elf.h: As for elf64.h.
13651         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
13652         * config/mips/linux.h: As for elf.h
13653         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13654         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
13655         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
13656         of in_sdata from current_section_name and current_section_flags.
13657         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
13658         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
13659         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
13660         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
13661         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
13662         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
13663         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
13664         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
13665         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
13666         (override_options): Remove setting of MASK_GPOPT.
13667         (mips_output_external): Use mips_in_small_data_p to check whether a
13668         symbol needs an .extern directive.  Don't emit such directives for
13669         TARGET_EXPLICIT_RELOCS.
13670         (mips_declare_object): Update accordingly.
13671         (mips_select_rtx_section): Call named_section rather than
13672         SMALL_DATA_SECTION.
13673         (mips_select_section): Use default_elf_section_section for everything
13674         except .text string constants.
13675         (mips_in_small_data_p): New function.
13676         (mips_encode_section_info): Remove small data handling.
13677         (mips_unique_section): Delete.
13678         (iris6_section_type_flags): New function.
13679         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
13680
13681 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
13682
13683         PR Target/11453
13684         * pa.md: Disparage all mtsar constraints.
13685         (extzv, extv, insv): Don't fail on length of {32|64}.
13686
13687 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
13688
13689         * system.h: Poison MAP_CHARACTER.
13690         * config/i370/i370-protos.h (mvs_map_char): Delete.
13691         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
13692         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
13693         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
13694
13695 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
13696
13697         * toplev.c (randomize): Correct call to time().
13698
13699 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
13700
13701         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
13702         REG_EQUIV notes as well.
13703
13704 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
13705
13706         * doc/md.texi: Fix the description of addmodecc.
13707
13708 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
13709
13710         * Makefile.in (top_builddir): Set to "..", not ".".
13711         (INTLLIBS, INTLDEPS): Delete.
13712         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
13713         (LIBDEPS): Add $(LIBICONV_DEP).
13714         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
13715         (INCLUDES): Replace -I../intl with @INCINTL@.
13716         ($(top_builddir)/intl/libintl.a): Delete rule.
13717         (stage2-start, stage3-start, stage4-start, stageprofile-start,
13718         stagefeedback-start): Use $$ for variable to be evaluated by
13719         shell, not make.
13720         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
13721         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
13722         * aclocal.m4: sinclude ../config/progtest.m4.  Add
13723         contents of lcmessage.m4 from gettext distro.
13724         * configure.in: Check for wchar.h and setlocale.  Set
13725         LIBICONV_DEP to the empty string and substitute it.
13726         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
13727         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
13728         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
13729         in $LIBINTL, to avoid linking it twice.
13730         * configure, config.in: Regenerate.
13731
13732 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
13733
13734         * fixinc/mkfixinc.sh: Remove winnt support.
13735         * fixinc/fixinc.winnt: Delete with extreme prejudice.
13736
13737 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
13738
13739         * Makefile.in: Update.
13740         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
13741         * c.opt: Update documentation.
13742         * common.opt: Add some help text.
13743         * opts.c: Include intl.h.
13744         (wrap_help, print_help): New.
13745         (find_opt, handle_option, common_handle_option): opt_text now
13746         contains the '-'.  Use print_help to output help.
13747         * opts.h (struct cl_option): New member "help".
13748         * opts.sh: Update to handle help text output and to prepend
13749         options with '-'.
13750         * toplev.c (display_help): Remove some help text.
13751
13752 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
13753             Fariborz Jahanian  <fjahanian@apple.com>
13754
13755         * configure.in: Test for PowerPC mfcr field support in assembler.
13756         * config.in, configure: Regenderated.
13757
13758         * config/rs6000/power4.md: Add mfcrf reservation.
13759         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
13760         * config/rs6000/rs6000.c (mfcr_operation): Define.
13761         (print_operand): Add 'Q' case for mfcrf.
13762         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
13763         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
13764         (movcc_internal1): Emit optional field operand for mfcr and set
13765         "type" attribute appropriately.
13766         (mfcr SCC): Likewise.
13767         (movesi_from_cr_one): New.
13768
13769 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13770
13771         * config/i386/i386.md: Correct check-in of incorrect version.
13772
13773 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13774
13775         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
13776         adjacent stdio calls.
13777         * c-decl.c (c_print_identifier): Likewise.
13778         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
13779         * print-rtl.c (print_rtx): Likewise.
13780         * print-tree.c (print_node_brief, print_node): Likewise.
13781         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
13782
13783         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
13784         * config.in, configure: Regenerated.
13785
13786 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13787
13788         PR target/10979
13789         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
13790         Changed to define_expand patterns that copy operand[1] to prevent
13791         it from being clobbered before emitting an atan2?f3_1 insn.
13792         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
13793         patterns that actually specify the behaviour of x87's FPATAN.
13794
13795 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
13796
13797         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
13798         clearing of SYMBOL_FLAG_LOCAL bit.
13799         If vcall_offset fits into signed 16-bit immediate, use
13800         one instruction for both addition and load.
13801
13802 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
13803
13804         * opts.c (common_handle_option): Correct handling of the
13805         -falign- switches that do and don't take an argument.
13806
13807 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13808
13809         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
13810         today.
13811         (pushhi1_h8300hs): Likewise.
13812
13813 2003-07-07  Andreas Jaeger  <aj@suse.de>
13814
13815         * genextract.c: Convert remaining prototypes to ISO C90.
13816
13817         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
13818         * fold-const.c (fold_single_bit_test): Likewise.
13819         * diagnostic.c (default_diagnostic_finalizer): Likewise.
13820         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
13821
13822         * gengtype.c (write_array): Generate ISO C90 prototypes.
13823
13824         * genflags.c (gen_proto): Generate ISO C90 prototypes.
13825
13826 2003-07-07  Roger Sayle  <roger@eyesopen.com>
13827
13828         PR optimization/11059
13829         * expr.c (can_store_by_pieces): Return true if length is zero.
13830         (store_by_pieces): If length is zero and endp is two, abort,
13831         othwerise, if length is zero and endp is not two, return "to".
13832         (clear_by_pieces): Do nothing if length is zero.
13833         (clear_storage): Do nothing if length is zero.
13834         (store_constructor): Simplify code when size is zero, or the
13835         target has already been cleared.  This avoids emitting a
13836         blockage instruction when initializing empty structures.
13837
13838 2003-07-07  Andreas Jaeger  <aj@suse.de>
13839
13840         * mips-tfile.c: Convert prototypes to ISO C90.
13841         * mips-tdump.c: Convert prototypes to ISO C90.
13842
13843 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13844
13845         * rtl.h (emit_line_note): Take a location_t.
13846         (emit_line_note_force): Remove.
13847         (set_file_and_line_for_statement): Take a location_t.
13848         * tree.g (emit_line_note): Take a location_t.
13849         * emit-rtl.c (emit_line_note): Take a location_t.
13850         (emit_line_note_force): Remove.
13851         * function.c (init_function_start): Adjust emit_line_note call.
13852         (expand_function_end): Use force_next_line_note, not
13853         emit_line_note_force.
13854         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
13855         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
13856         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
13857         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
13858         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
13859         genrtl_continue_stmt, genrtl_switch_stmt,
13860         genrtl_asm_stmt): Likewise.
13861         * expr.c (expand_expr): Likewise.
13862         * integrate.c (expand_inline_function): Likewise.
13863         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
13864         (expand_decl_init): Adjust emit_line_note call.
13865
13866 2003-07-07  Dale Johannesen  <dalej@apple.com>
13867
13868         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
13869
13870 2003-07-07  Andreas Jaeger  <aj@suse.de>
13871
13872         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
13873         * config/i386/i386.c: Likewise.
13874
13875 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13876
13877         * config/h8300/h8300.md: Use gen_int_mode instead of
13878         GEN_INT (trunc_int_for_mode (...)).
13879
13880 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
13881
13882         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
13883         2 bytes and then subtract 2 from the stack pointer.
13884         (pushhi1_h8300hs): Likewise.
13885
13886 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
13887
13888         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
13889         -frandom-seed.
13890         * configure: Regenerated.
13891         * Makefile.in: Remove extraneous comment.
13892         * toplev.c (randomize): Protect against potential multiple calls.
13893         * doc/invoke.texi (-frandom-seed): Document use for in coverage
13894         files.
13895
13896 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13897             Eric Botcazou  <ebotcazou@libertysurf.fr>
13898
13899         PR optimization/11198
13900         * alias.c (objects_must_conflict_p): Return 1 if the types have
13901         the same alias set, not if the alias sets only conflict.
13902
13903 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
13904
13905         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
13906         (convert_cset): Change inbuf to type ICONV_CONST char.
13907         * Makefile.in (LIBS): Add LIBICONV.
13908
13909         * doc/invoke.texi (-falign-functions): Document that
13910         when n is zero then a machine-dependent default is used.
13911         (-falign-labels): Document that when n is zero then a
13912         machine-dependent default is used and that -falign-labels =1
13913         is equivalent to -fno-align-labels.
13914         (-falign-loops): Likewise.
13915         (-falign-jumps): Likewise.
13916
13917 2003-07-06  Art Haas  <ahaas@airmail.net>
13918
13919         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
13920         initializer syntax.
13921
13922 2003-07-06  James E Wilson  <wilson@tuliptree.org>
13923
13924         PR optimization/9812
13925         * rtl.h (mem_for_const_double): Delete prototype.
13926         * varasm.c (mem_for_const_double): Delete function.
13927         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
13928         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
13929         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
13930         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
13931         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
13932         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
13933         comment about confused support for XFmode constants.
13934
13935 2003-07-07  Jan Hubicka  <jh@suse.cz>
13936
13937         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
13938
13939 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
13940
13941         * config/h8300/h8300.c: Fix comment typos.
13942         * config/h8300/h8300.md: Likewise.
13943         * config/i386/athlon.md: Likewise.
13944         * config/i386/i386.c: Likewise.
13945         * config/i386/pentium.md: Likewise.
13946         * config/ia64/ia64.c: Likewise.
13947         * config/ia64/itanium1.md: Likewise.
13948         * config/ia64/itanium2.md: Likewise.
13949         * config/m32r/m32r.md: Likewise.
13950         * config/m68hc11/m68hc11.c: Likewise.
13951         * config/mcore/mcore.c: Likewise.
13952         * config/mips/sr71k.md: Likewise.
13953         * config/mips/t-iris5-as: Likewise.
13954         * config/mmix/mmix.h: Likewise.
13955         * config/ns32k/ns32k.h: Likewise.
13956         * config/ns32k/NOTES: Fix a typo.
13957
13958 2003-07-06  Andreas Jaeger  <aj@suse.de>
13959
13960         * stmt.c: Convert remaining prototypes to ISO C90.
13961         * cfglayout.c: Likewise.
13962         * dbxout.c: Likewise.
13963         * gcc.c: Likewise.
13964         * genemit.c: Likewise.
13965
13966         * basic-block.h: Convert prototypes to ISO C90.
13967         * c-parse.in: Likewise.
13968         * c-pragma.h: Likewise.
13969         * c-typeck.c: Likewise.
13970         * cfghooks.h: Likewise.
13971         * cfgloopanal.c: Likewise.
13972         * dbxout.h: Likewise.
13973         * debug.h: Likewise.
13974         * dwarf2asm.h: Likewise.
13975         * gcov.c: Likewise.
13976         * gengtype-lex.l: Likewise.
13977         * sched-int.h: Likewise.
13978         * timevar.c: Likewise.
13979
13980 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
13981
13982         * c-common.h (c_comon_handle_filename,
13983         c_common_missing_arguement): New.
13984         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
13985         LANG_HOOKS_MISSING_ARGUMENT): New.
13986         * c-opts.c (missing_arg): Rename c_common_missing_argument,
13987         update to be an appropriate langhook.
13988         (c_common_handle_option): Don't handle filenames.
13989         (c_common_handle_filename): New.
13990         * hooks.c (hook_void_constcharptr,
13991         hook_bool_constcharptr_size_t_false): New.
13992         * hooks.h (hook_void_constcharptr,
13993         hook_bool_constcharptr_size_t_false): New.
13994         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
13995         LANG_HOOKS_MISSING_ARGUMENT): New.
13996         (LANG_HOOKS_INITIALIZER): Update.
13997         * langhooks.h (struct lang_hooks): Add handle_filename and
13998         missing_argument.
13999         * opts.c (handle_option): Don't handle filenames here, but ...
14000         (handle_options): ... here.
14001         (common_handle_option): Don't handle missing arguments here.
14002         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
14003         LANG_HOOKS_MISSING_ARGUMENT): New.
14004
14005 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
14006
14007         * Makfile.in: Remove traces of mbchar.
14008         * c-parse.in (MULTIBYTE_CHARS): Remove.
14009         * config.in (MULTIBYTE_CHARS): Remove.
14010         * configure: Remove --enable-mbchar.
14011         * configure.in: Remove --enable-mbchar.
14012         * mbchar.c, mbchar.h: Remove.
14013         * system.h: Poison MULTIBYTE_CHARS.
14014         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
14015         * config/linux.h (MULTIBYTE_CHARS): Remove.
14016         * config/svr4.h (MULTIBYTE_CHARS): Remove.
14017         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
14018
14019 2003-07-06  Andreas Jaeger  <aj@suse.de>
14020
14021         * varray.c (varray_check_failed): Fix typo.
14022
14023         * unroll.c: Convert prototypes to ISO C90.
14024         * varasm.c: Likewise.
14025         * varray.c: Likewise.
14026         * varray.h: Likewise.
14027         * vmsdbgout.c: Likewise.
14028         * xcoffout.c: Likewise.
14029         * xcoffout.h: Likewise.
14030
14031 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14032
14033         * gcov-io.h: Add a local time stamp.
14034         (struct gcov_info): Add stamp field.
14035         (gcov_truncate): New.
14036         * coverage.c (read_counts_file): Skip the stamp.
14037         (coverage_begin_output): Write the stamp.
14038         (build_gcov_info): Declare and init the stamp.
14039         (coverage_finish): Only unlink data file, if stamp is zero.
14040         * gcov-dump.c (dump_file): Dump the stamp.
14041         * gcov.c (bbg_stamp): New.
14042         (release_structures): Clear bbg_stamp.
14043         (read_graph_file): Read stamp.
14044         (read_count_file): Check stamp.
14045         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
14046
14047 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14048
14049         * tree.h (default_flag_random_seed): Remove.
14050         * toplev.h (local_tick): Declare.
14051         * tree.c (flag_random_seed, default_flag_random_seed): Move to
14052         toplev.c.
14053         (append_random_chars): Don't call default_flag_random_seed.
14054         * toplev.c (flag_random_seed): Define here. Set local_tick.
14055         (local_tick): Define.
14056         (randomize): New, moved from tree.c.
14057         (print_switch_values): Adjust.
14058         (toplev_main): Call randomize.
14059
14060 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
14061
14062         * tree.h (crc32_string): Declare.
14063         * tree.c (append_random_chars): Remove.
14064         (crc32_string): New.
14065         (get_file_function_name_long): Use crc32_string here.
14066
14067 2003-07-06  Andreas Jaeger  <aj@suse.de>
14068
14069         * gcc.c: Convert prototypes to ISO C90.
14070         * gcc.h: Likewise.
14071         * gcov-dump.c: Likewise.
14072         * gcov-iov.c: Likewise.
14073         * gcse.c: Likewise.
14074         * genattrtab.h: Likewise.
14075         * ggc.h: Likewise.
14076         * global.c: Likewise.
14077         * graph.c: Likewise.
14078         * graph.h: Likewise.
14079         * hosthooks.h: Likewise.
14080         * hooks.h: Likewise.
14081         * hooks.c: Likewise.
14082         * hashtable.h: Likewise.
14083         * hashtable.c: Likewise.
14084         * haifa-sched.c: Likewise.
14085         * integrate.h: Likewise.
14086         * integrate.c: Likewise.
14087         * input.h: Likewise.
14088         * ifcvt.c: Likewise.
14089         * jump.c: Likewise.
14090         * langhooks-def.h: Likewise.  Add extern to prototypes.
14091         * langhooks.c: Likewise.
14092         * langhooks.h: Likewise.
14093         * lcm.c: Likewise.
14094         * local-alloc.c: Likewise.
14095         * loop-init.c: Likewise.
14096         * loop-unroll.c: Likewise.
14097         * loop-unswitch.c: Likewise.
14098         * loop.c: Likewise.
14099         * loop.h: Likewise. Add extern to prototypes.
14100         * machmode.h: Likewise.
14101         * main.c: Likewise.
14102         * mbchar.c: Likewise.
14103         * mbchar.h: Likewise.
14104         * mkdeps.c: Likewise.
14105         * mkdeps.h: Likewise.
14106         * optabs.c: Likewise.
14107         * optabs.h: Likewise.
14108         * output.h: Likewise.
14109         * gccspec.c: Likwise.
14110         * postreload.c: Likewise.
14111         * prefix.c: Likewise.
14112         * prefix.h: Likewise.
14113         * print-rtl.c: Likewise.
14114         * print-tree.c: Likewise.
14115         * profile.c: Likewise.
14116         * read-rtl.c: Likewise.
14117         * real.c: Likewise.
14118         * real.h: Likewise.
14119         * recog.c: Likewise.
14120         * recog.h: Likewise.
14121         * reg-stack.c: Likewise.
14122         * regclass.c: Likewise.
14123         * regmove.c: Likewise.
14124         * regrename.c: Likewise.
14125         * regs.h: Likewise.
14126         * reload.c: Likewise.
14127         * reload.h: Likewise.
14128         * reload1.c: Likewise.
14129         * reorg.c: Likewise.
14130         * resource.c: Likewise.
14131         * resource.h: Likewise.
14132         * rtl-error.c: Likewise.
14133         * rtl.c: Likewise.
14134         * rtl.h: Likewise.
14135         * rtlanal.c: Likewise.
14136         * sbitmap.c: Likewise.
14137         * sbitmap.h: Likewise.
14138         * scan-decls.c: Likewise.
14139         * scan.c: Likewise.
14140         * sched-deps.c: Likewise.
14141         * sched-ebb.c: Likewise.
14142         * sched-int.h: Likewise.
14143         * sched-rgn.c: Likewise.
14144         * sched-vis.c: Likewise.
14145         * sibcall.c: Likewise.
14146         * simplify-rtx.c: Likewise.
14147         * sreal.c: Likewise.
14148         * sreal.h: Likewise.
14149         * ssa-ccp.c: Likewise.
14150         * ssa-dce.c: Likewise.
14151         * ssa.c: Likewise.
14152         * ssa.h: Likewise.
14153         * stack.h: Likewise.
14154         * stmt.c: Likewise.
14155         * stor-layout.c: Likewise.
14156         * stringpool.c: Likewise.
14157         * target.h: Likewise.
14158         * timevar.c: Likewise.
14159         * timevar.h: Likewise.
14160         * tlink.c: Likewise.
14161         * tracer.c: Likewise.
14162         * tree-inline.c: Likewise.
14163         * tree-inline.h: Likewise.
14164         * tree.c: Likewise.
14165         * tree.h: Likewise.
14166
14167 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14168
14169         * combine.c (nonzero_bits1): Fix a warning.
14170
14171 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14172
14173         * config/h8300/h8300.c (compute_mov_length): Correct the
14174         length of loading CONST0_RTX (SFmode).
14175
14176 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
14177
14178         * toplev.c (output_clean_symbol_name): Remove.
14179         * toplev.h (output_clean_symbol_name): Remove.
14180         * config/alpha/alpha.c (unicosmk_output_module_name): Use
14181         lbasename & clean_symbol_name.
14182
14183 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14184
14185         * ggc.h: Follow spelling conventions.
14186         * config/i386/i386.c: Likewise.
14187         * config/i386/winnt.c: Likewise.
14188         * config/rs6000/rs6000.c: Likewise.
14189
14190 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
14191
14192         * bt-load.c: Fix comment typos.
14193         * c-incpath.c: Likewise.
14194         * cfg.c: Likewise.
14195         * cfgcleanup.c: Likewise.
14196         * cfgloop.h: Likewise.
14197         * cfgloopmanip.c: Likewise.
14198         * cfgrtl.c: Likewise.
14199         * diagnostic.h: Likewise.
14200         * dwarfout.c: Likewise.
14201         * emit-rtl.c: Likewise.
14202         * et-forest.c: Likewise.
14203         * et-forest.h: Likewise.
14204         * expr.c: Likewise.
14205         * gcse.c: Likewise.
14206         * genattr.c: Likewise.
14207         * jump.c: Likewise.
14208         * langhooks.h: Likewise.
14209         * local-alloc.c: Likewise.
14210         * loop-unroll.c: Likewise.
14211         * loop-unswitch.c: Likewise.
14212         * ra-build.c: Likewise.
14213         * regclass.c: Likewise.
14214         * regmove.c: Likewise.
14215         * rtl.def: Likewise.
14216         * rtlanal.c: Likewise.
14217         * sched-ebb.c: Likewise.
14218         * sched-rgn.c: Likewise.
14219         * simplify-rtx.c: Likewise.
14220         * ssa.c: Likewise.
14221         * tracer.c: Likewise.
14222         * tree.c: Likewise.
14223
14224 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
14225
14226         * cppcharset.c: Use the correct return type for the fallback iconv
14227         macro.
14228
14229 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14230
14231         Blame to Jan Hubicka  <jh@suse.cz>
14232         * cfglayout.c (record_effective_endpoints): Split insns before
14233         first basic block correctly.
14234
14235 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14236
14237         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
14238         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
14239         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
14240
14241 2003-07-05  Andreas Jaeger  <aj@suse.de>
14242
14243         * genattrtab.c (write_attr_get): Revert part of last patch to
14244         always write out a prototype.
14245
14246         * genemit.c (gen_split): Readd lost unused attributes in last
14247         patch.
14248
14249 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14250
14251         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
14252         different from header.
14253
14254 2003-07-05  Andreas Schwab  <schwab@suse.de>
14255
14256         * config/m68k/m68k.c: Remove code protected by CRDS.
14257         * config/m68k/m68k.md: Likewise.
14258
14259 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
14260
14261         PR driver/11417
14262         * c-opts.c (permit_fortran_options): New.
14263         (c_common_init_options): Accept fortran front end options if
14264         it looks like we might be preprocessing Fortran.
14265         (c_common_handle_option): Don't reject switch if permit_fotran_options.
14266
14267 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14268
14269         * genattr.c (internal_dfa_insn_code): Output prototype.
14270         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
14271         * genautomata.c: Likewise.
14272         * genconditions.c: Likewise.
14273         * genemit.c: Likewise.
14274         * genextract.c: Likewise.
14275         * gengenrtl.c: Likewise.
14276         * gengtype.c: Likewise.
14277         * genopinit.c: Likewise.
14278         * genoutput.c: Likewise.
14279         * genpeep.c: Likewise.
14280         * genrecog.c: Likewise.
14281
14282 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14283
14284         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
14285         (struct cpp_options): Add narrow_charset, wide_charset,
14286         bytes_big_endian fields.  Remove EBCDIC field.
14287         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
14288
14289         * cpphash.h: Include <iconv.h> if we have it, otherwise
14290         provide a dummy definition of iconv_t.
14291         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
14292         (_cpp_valid_ucn): Update prototype.
14293         (_cpp_destroy_iconv): New prototype.
14294
14295         * doc/cpp.texi: Document character set handling.
14296         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
14297         * doc/extend.texi: Delete entire section on multiline strings.
14298         Rewrite section on __FUNCTION__ etc now that these are
14299         variables in C.
14300
14301         * cppucnid.tab, cppucnid.pl: New files.
14302         * cppucnid.h: New generated file.
14303         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
14304         (iconv_open, iconv, iconv_close): Provide dummy definitions
14305         if !HAVE_ICONV.
14306         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
14307         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
14308         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
14309         cpp_interpret_string, narrow_str_to_charconst,
14310         wide_str_to_charconst): New.
14311         (ucn_valid_in_identifier): Use a binary search through the
14312         ucnranges table defined in cppucnid.h, not a long chain of if
14313         statements.
14314         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
14315         character names are only valid in C++ and C99" to a warning.
14316         Issue the "meaning of \[uU] is different in traditional C"
14317         warning here.  Take care not to let iconv see an invalid UCS
14318         value if we get a malformed UCN.  Issue an error if we don't
14319         have iconv.
14320         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
14321         cpp_interpret_string to do the heavy lifting.
14322
14323         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
14324         narrow_charset, wide_charset fields of options structure.
14325         (cpp_destroy): Call _cpp_destroy_iconv.
14326         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
14327         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
14328         (cpp_interpret_charconst): Moved to cppcharset.c.
14329         * cpplib.c (dequote_string): Delete.
14330         (interpret_string_notranslate): New.
14331         (do_line, do_linemarker): Use interpret_string_notranslate.
14332
14333         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
14334
14335         * c-common.c (fname_string, combine_strings): Delete.
14336         * c-common.h (fname_string, combine_strings): Delete prototypes.
14337         * c-lex.c (ignore_escape_flag): Delete.
14338         (cb_ident): Use cpp_interpret_string, not lex_string.
14339         (get_nonpadding_token): New function.
14340         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
14341         Adjust calls to lex_string.  Don't write *value twice.
14342         (lex_string): Now handles string constant concatenation.
14343         Most of the work handed off to cpp_interpret_string.
14344         Call fix_string_type here.
14345         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
14346         FUNC_NAME, throughout.
14347         (OBJC_STRING): New token type.
14348         (primary:STRING): No need to call fix_string_type here.
14349         (primary:objc_string): Make that OBJC_STRING.
14350         (objc_string nonterminal): Delete.
14351         (yylexname): Delete code to handle fake string constants.
14352         (yylexstring): Delete entirely.
14353         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
14354         to handle CPP_ATSIGN.
14355
14356         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
14357         * c-opts.c (missing_arg, c_common_handle_option): Handle
14358         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
14359         (c_common_init): Set cpp_opts->bytes_big_endian, not
14360         cpp_opts->EBCDIC.  Call cpp_init_iconv.
14361         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
14362         (TARGET_EBCDIC): Delete default definition.
14363
14364         * objc/objc-act.c (build_objc_string_object): No need to
14365         handle string constant concatenation.
14366
14367 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14368
14369         * doc/install.texi: Fix typos.
14370         * doc/invoke.texi: Likewise.
14371         * doc/tm.texi: Likewise.
14372
14373 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
14374
14375         * config/pa/fptr.c: Fix comment typos.
14376         * config/pa/pa-64.h: Likewise.
14377         * config/pa/pa.c: Likewise.
14378         * config/pa/pa.h: Likewise.
14379         * config/rs6000/603.md: Likewise.
14380         * config/rs6000/7xx.md: Likewise.
14381         * config/rs6000/darwin.h: Likewise.
14382         * config/rs6000/freebsd.h: Likewise.
14383         * config/rs6000/rs6000.c: Likewise.
14384         * config/rs6000/rs6000.md: Likewise.
14385         * config/rs6000/spe.h: Likewise.
14386
14387 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
14388
14389         * config/s390/2064.md: Change GNU CC to GCC.
14390         * config/s390/2084.md: Likewise.
14391         * config/s390/fixdfdi.h: Likewise.
14392         * config/s390/linux.h: Likewise.
14393         * config/s390/s390-modes.def: Likewise.
14394         * config/s390/s390-protos.h: Likewise.
14395         * config/s390/s390.c: Likewise.
14396         * config/s390/s390.h: Likewise.
14397         * config/s390/s390.md: Likewise.
14398         * config/s390/s390x.h: Likewise.
14399
14400 2003-07-04  Jeff Law  <law@redhat.com>
14401
14402         PR c/11428
14403         * expr.c (do_store_flag): Pass in the correct result type
14404         when calling fold_single_bit_test.
14405         * fold-const.c (fold_single_bit_test): Use result_type for the
14406         result when folding a sign bit test.
14407
14408 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
14409
14410         * opts.c (common_handle_options): Negate sense of -falign- switches.
14411
14412 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
14413
14414         * Makefile.in: Replace PWD with PWD_COMMAND.
14415
14416 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14417
14418         * cfgloopanal.c (count_strange_loop_iterations): New static function.
14419         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
14420         Handle strange loops.
14421
14422 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
14423
14424         * install.texi: Even the g77 manpage is derived from
14425         the full g77 manual.
14426
14427 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
14428
14429         * ABOUT-NLS: Delete.
14430         * intl: Delete entire directory.
14431         * aclocal.m4: Include ../config/gettext.m4.  Delete
14432         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
14433         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
14434         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
14435         Remove intl/Makefile from all_outputs.
14436         * configure, config.in: Regenerate.
14437         * Makefile.in: Expunge all references to intl subdirectory.
14438         Add -I../intl to INCLUDES.
14439         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
14440
14441 2003-07-04  Roger Sayle  <roger@eyesopen.com>
14442
14443         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
14444         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
14445
14446 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
14447
14448         PR c++/5287, PR c++/7910, PR c++/11021
14449         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
14450         dllimport attribute if function is defined at declaration, but
14451         report error instead. Likewise for dllimport'd variable
14452         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
14453         declared within functions, Report error if dllimport or dllexport
14454         symbol is not global.
14455         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
14456         if defined after declaration or if inlined. Don't allow definition
14457         of static data members of C++ classes. Don't dllimport virtual
14458         methods.
14459         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
14460         (i386_pe_mark_dllimport): Remove unnecessary checks.
14461         (i386_pe_encode_section_info): Warn if the dllimport attribute
14462         and symbol prefix have been instantiated and then overridden.
14463
14464         * doc/extend.texi: Document dllimport and dllexport attributes.
14465
14466         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
14467
14468 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
14469
14470         * config/kaos.h (CPP_PREDEFINES): Delete.
14471         (TARGET_OS_CPP_BUILTINS): New.
14472
14473 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14474
14475         * c-aux-info.c: Include toplev.h after c-tree.h.
14476         * c-common.c: Likewise.
14477         (GCC_DIAG_STYLE): Undef.
14478         * c-semantics.c (GCC_DIAG_STYLE): Define.
14479         * c-tree.h (GCC_DIAG_STYLE): Likewise.
14480         * diagnostic.h (inform): Move prototype to toplev.h.
14481         * jump.c: Include diagnostic.h before toplev.h.
14482         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
14483         (warning, error, fatal_error, pedwarn, sorry, inform,
14484         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
14485
14486 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
14487
14488         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
14489         at all if edge is not specified.
14490         (can_copy_bbs_p, copy_bbs): New.
14491         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
14492         * cfgloop.c (get_loop_body): Comment more precisely.
14493         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
14494         (scale_bbs_frequencies): Fix comment typo.
14495         (can_duplicate_loop_p): Use can_copy_bbs_p.
14496         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
14497
14498 2003-07-03  Devang Patel <dpatel@apple.com>
14499
14500         * c-opts.c (c_common_parse_file): Remove extra
14501         debug_hooks->start_source_file call.
14502
14503 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14504
14505         * real.c (real_trunc, real_floor, real_ceil): New functions
14506         to implement trunc, floor and ceil respectively.
14507         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
14508         * builtins.c (integer_valued_real_p): New function to test if
14509         a floating point expression has an integer valued result.
14510         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
14511         foo(x) where foo is an integer rounding function.  Similarly,
14512         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
14513         (double)(int)x when both foo and bar are integer rounding
14514         functions and we don't need to honor errno.
14515         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
14516         New functions to fold trunc, floor and ceil.
14517         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
14518         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
14519         to fold BUILT_IN_CEIL*.
14520         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
14521         the remaining integer rounding functions.
14522
14523 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14524
14525         * config/sparc/sparc.c (function_arg_partial_nregs): Use
14526         SPARC_INT_ARG_MAX to determine where to split unnamed
14527         complex FP arguments.
14528
14529 2003-07-03  Jan Hubicka  <jh@suse.cz>
14530
14531         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
14532         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
14533         (merge_blocks_move_predecessor_nojumps,
14534          merge_blocks_move_successor_nojumps): Use merge_blocks.
14535         (try_optimize_cfg): Use merge_blocks_move.
14536         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
14537         (merge_blocks_nomove): Rename to rtl_merge_blocks.
14538         (cfg_layout_create_basic_block): New.
14539         (rtl_can_merge_blocks): New.
14540         (cfg_layout_split_block): Do not alloc aux by hand.
14541         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
14542         merge_blocks.
14543         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
14544         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
14545         * cfgloopmanip.c (loop_split_edge_with): Likewise.
14546         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
14547
14548         * basic-block.h (basic_block_def): Add field 'rbi'.
14549         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
14550         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
14551         * cfg.c (entry_exit_blocks): Add new field.
14552         * cfglayout.c: Include alloc-pool.h;
14553         (cfg_layout_pool): New.
14554         (record_effective_endpoints, fixup_reorder_chain,
14555         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
14556         of rbi.
14557         (cfg_layout_initialize_rbi): New function.
14558         (cfg_layout_initialize): Use it.
14559         (cfg_layout_finalize): Clear rbi fields.
14560         * cfglayout.h (RBI): Kill.
14561         (cfg_layout_initialize_rbi): Declare.
14562         * cfgloopmanip.c (copy_bbs): Use rbi.
14563         (record_exit_edges): Likewise.
14564         (duplicate_loop_to_header_edge): Likewise.
14565         * cfgrtl.c (cfg_layout_create_basic_block): Use
14566         cfg_layout_initialize_rbi.
14567         (cfg_layout_split_block): Use rbi.
14568         (cfg_layout_delete_block): Likewise.
14569         * loop-init.c (loop_optimizer_finalize): Likewise.
14570         * loop-unswitch.c (unswitch_loop): Likewise.
14571         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
14572
14573         * cfgrtl.c: Update comments.
14574         (try_redirect_by_replacing_jump): New argument.
14575         (redirect_branch_edge): Break out from ...
14576         (rtl_redirect_edge_and_branch): ... this one.
14577         (update_cfg_after_block_merging): Break out from ...
14578         (rtl_merge_blocks): ... this one.
14579         (cfg_layout_split_edge): New.
14580         (cfg_layout_merge_blocks): New.
14581         (cfg_layout_can_merge_blocks_p): New.
14582         (cfg_layout_redirect_edge_and_branch): Reorganize.
14583         (cfg_layout_rtl_cfg_hooks): Fill in.
14584         (cfg_layout_delete_block): Kill barriers.
14585         * cfganal.c (can_fallthru): Deal with exit blocks
14586         * cfglayout.c (cfg_layout_function_header): New function
14587         (record_effective_endpoints): Record function header.
14588         (fixup_reorder_chain): Fixup dead jumptables; place header
14589
14590         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
14591         * bb-reorder.c (cfg_layout_initialize): Update call.
14592         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
14593         edges in cfglayout mode.
14594         * cfglayout.c (cleanup_unconditional_jumps): Kill.
14595         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
14596         * cfglayout.h (cfg_layout_initialize): Update prototype.
14597         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
14598         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
14599         * flow.c (propagate_block): Do not crash when basic block ends
14600         by first insn in the chain.
14601         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
14602         do loop discovery.
14603         * tracer.c (tracer): Update call of cfg_layout_initialize.
14604
14605 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14606
14607         * Makefile.in: Use dependency variables in lieu of explicit
14608         files throughout.
14609
14610 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
14611
14612         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
14613         * tree.h: ...to here.
14614
14615 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14616
14617         * config/s390/2064.md: Fix comment typos.
14618         * config/s390/2084.md: Likewise.
14619         * config/s390/s390.c: Likewise.
14620         * config/s390/s390.md: Likewise.
14621         * config/sh/sh.c: Likewise.
14622         * config/sh/sh.h: Likewise.
14623         * config/sh/sh.md: Likewise.
14624         * config/sparc/sparc.c: Likewise.
14625         * config/sparc/sparc.h: Likewise.
14626         * config/sparc/sparc.md: Likewise.
14627         * config/stormy16/stormy16.c: Likewise.
14628         * config/stormy16/stormy16.h: Likewise.
14629         * config/stormy16/stormy-abi: Fix a typo.
14630
14631 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
14632
14633         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
14634
14635 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14636
14637         * config/mips/mips.h (save_argv): Delete.
14638
14639 2003-07-03  Roger Sayle  <roger@eyesopen.com>
14640
14641         PR target/10700
14642         * fold-const.c (extract_muldiv_1): There's nothing that can be done
14643         if the expression is a SAVE_EXPR.
14644
14645 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
14646
14647         * config/m32r/m32r.c: Fix comment typos.
14648         * config/m68hc11/m68hc11.c: Likewise.
14649         * config/m68hc11/m68hc11.h: Likewise.
14650         * config/m68k/m68k.c: Likewise.
14651         * config/mcore/mcore.c: Likewise.
14652         * config/mcore/mcore.h: Likewise.
14653         * config/mcore/mcore.md: Likewise.
14654         * config/mips/mips.c: Likewise.
14655         * config/mips/mips.h: Likewise.
14656         * config/mips/mips.md: Likewise.
14657         * config/mips/netbsd.h: Likewise.
14658         * config/mn10300/mn10300.c: Likewise.
14659
14660 2003-07-03  Andreas Schwab  <schwab@suse.de>
14661
14662         * dbxout.c (pending_bincls): Move decl down inside
14663         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
14664
14665 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14666
14667         * rtl.h (NOTE_DATA): Refer to whole union.
14668         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
14669
14670 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
14671
14672         PR optimization/11381
14673         * simplify-rtx.c (simplify_relational_operation): Check that
14674         two equal operands have no side-effects before simplifying
14675         the comparison.
14676
14677 2003-07-02  Jeff Law  <law@redhat.com>
14678
14679         * expr.c (do_store_flag): Remove special case folding for
14680         single bit tests.  Instead call back into the commonized folder
14681         routine.
14682         * fold-const.c (fold_single_bit_test): New function, mostly
14683         extracted from do_store_flag, with an additional case extracted
14684         from fold.
14685         (fold): Call fold_single_bit_test appropriately.
14686         * tree.h (fold_single_bit_test): Prototype.
14687
14688 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
14689
14690         * system.h: Include filenames.h.
14691         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
14692         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
14693         define based on HAVE_DOS_BASED_FILE_SYSTEM.
14694         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
14695         * config/i386/xm-mingw32.h: Don't define
14696         HAVE_DOS_BASED_FILE_SYSTEM,
14697         DIR_SEPARATOR, or DIR_SEPARATOR_2.
14698         * doc/hostconfig.texi: Update to match.
14699
14700         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
14701         config/i386/cygwin.h:
14702         Use IS_ABSOLUTE_PATH throughout.
14703         * gcc.c (DIR_UP): Delete, unused.
14704         * protoize.c (IS_SAME_PATH): Define in terms of
14705         FILENAME_CMP.
14706         (is_abspath): Delete.
14707
14708 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14709
14710         * config/i386/emmintrin.h: Fix comment typos.
14711         * config/i386/i386.c: Likewise.
14712         * config/i386/i386.h: Likewise.
14713         * config/i386/sco5.h: Likewise.
14714         * config/ia64/ia64.c: Likewise.
14715         * config/ia64/itanium2.md: Likewise.
14716
14717 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
14718
14719         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
14720         DBX_USE_BINCL.
14721         (emit_bincl_stab): Same.
14722         (emit_pending_bincls): Same.
14723
14724 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
14725
14726         * config/h8300/h8300.c (compute_mov_length): Fix the length of
14727         loading CONST0_RTX (SFmode).
14728         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
14729         'G' to CONST0_RTX (SFmode).
14730         * config/h8300/h8300.md (movsf_h8300): Change the first
14731         constraint to 'G'.
14732         (movsf_h8300h): Likewise.
14733
14734 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
14735
14736         * c-common.h (c_common_init_options): New prototype.
14737         * c-opts.c (deferred_size): Remove.
14738         (defer_opt): Array is now pre-allocated.
14739         (c_common_init_options): Pre-allocate deferred_opts.  Make
14740         lang_flags unsigned.
14741         (push_command_line_options): Free deferred_opts.
14742         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
14743         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
14744         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
14745         * langhooks.h (struct lang_hooks): New prototype for init_options.
14746         * main.c (main): Cast argv.
14747         * opts.c (handle_option, handle_options): Update prototypes.
14748         (decode_options): save_argc, save_argv are not global.  Constify.
14749         * opts.h (decode_options): New prototype.
14750         * toplev.c (general_init): New protoype.
14751         (save_argv): Make static.
14752         (save_argc): Remove.
14753         (print_switch_values, general_init): Constify.
14754         (toplev_main): Save argv.
14755         * toplev.h (toplev_main): Update prototype.
14756         (save_argc, save_argv): Remove.
14757
14758 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
14759
14760         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
14761         (emit_bincl_stab): Same.
14762         (emit_pending_bincls): Same.
14763
14764 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
14765
14766         PR c++/11072
14767         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
14768
14769 2003-07-02  Andreas Schwab  <schwab@suse.de>
14770
14771         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
14772
14773 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
14774
14775         PR optimization/11210
14776         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
14777         about the behaviour with regard to bitfields.
14778         * fold-const (decode_field_reference): Record outermost type in
14779         case the expression is a NOP. Strip all NOPs. Set the signedness
14780         to that of the outermost type (if any) when the bitsize is equal
14781         to the size of the type.
14782
14783 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14784
14785         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
14786         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
14787         (adddi3_internal_3, addsi3_internal_2): Likewise.
14788
14789 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
14790
14791         * config/mips/mips.c (machine_function): Add new fields:
14792         ignore_hazard_length_p and all_noreorder_p.
14793         (mips_flag_delayed_branch): New variable.
14794         (override_options): Treat '/' as an operand punctuation character.
14795         Set up mips_flag_delayed_branch.
14796         (print_operand): Handle '/'.
14797         (mips_output_function_prologue): Put the whole function in
14798         .set noreorder and .set nomacro if all_noreorder_p is true.
14799         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
14800         (mips16_optimize_gp): Remove "first insn" parameter.
14801         (mips16_lay_out_constants): New function, split out from mips_reorg.
14802         (mips_avoid_hazard, mips_avoid_hazards): New functions.
14803         (mips_reorg): For mips16 code, call mips16_lay_out_constant
14804         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
14805         do delayed-branch scheduling followed by hazard detection.
14806         (mips_adjust_insn_length): Only account for hazards if
14807         !ignore_hazard_length_p.
14808         (mips_output_load_label): Add a nop to the o32 sequence if
14809         the target suffers from load delays.
14810         (mips_output_conditional_branch): Add %/ to the end of branches.
14811         (mips_output_division): Fill the branch delay slot with %#.
14812         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
14813         instructions.  End all other %* branches with %/.
14814         (ffssi2, ffsdi2): Fix lengths.
14815         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
14816         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
14817         (fix_truncsfsi2_macro): Likewise.
14818         (mov_lwl): Set hazard to "none".
14819         (ashldi3_internal): Fill the branch delay slot with %#.
14820         (ashrdi3_internal, lshrdi3_internal): Likewise.
14821         (exception_receiver): Explicitly set $28.
14822         (hazard_nop): New pattern.
14823
14824 2003-07-02  Jan Hubicka  <jh@suse.cz>
14825
14826         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
14827         before calling tree_inlinable_function_p.
14828
14829 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14830
14831         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
14832         <internal/stdio_core.h> too.
14833         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
14834         <internal/wchar_core.h> too.
14835         Substitute va_list uses in inline definition.
14836         * fixinc/fixincl.x: Regenerate.
14837
14838 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14839
14840         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
14841         Undef before redefinition.
14842         (LABEL_AFTER_LOC): Likewise.
14843         (DEFAULT_SIGNED_CHAR): Likewise.
14844         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
14845         Fix IRIX spelling.
14846
14847         * config/mips/iris3.h: Remove, unused.
14848         * config/mips/iris4.h: Likewise.
14849
14850         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
14851
14852         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
14853         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
14854         target_cpu_default.
14855
14856         * config/mips/iris5.h: Move explicit includes ...
14857         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
14858
14859         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
14860         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14861         tm_defines.
14862
14863         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
14864         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
14865         target_cpu_default.
14866
14867         * config/mips/iris6.h: Fix IRIX spelling.
14868         (MULTILIB_DEFAULTS): Undef before redefinition.
14869
14870         * config/mips/iris6.h: Move explicit includes ...
14871         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
14872
14873 2003-07-02  Jan Hubicka  <jh@suse.cz>
14874
14875         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
14876         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
14877         Use next_needed field instead of aux to maintain the queue.
14878         * cgraph.h (cgraph_node): Add next_needed.
14879         (cgraph_varpool_node): Add next_needed; remove aux.
14880         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
14881
14882 2003-07-02  Jan Hubicka  <jh@suse.cz>
14883
14884         * cgraphunit.c (cgraph_finalize_function): Set finalized.
14885         (cgraph_finalize_function): Do not examine inlinablility.
14886         (cgraph_finalize_compilation_unit): Do it here.
14887         * cgraph.h (cgraph_local_info): Add finalized field.
14888
14889 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14890
14891         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
14892         (gt_pch_restore): Likewise.
14893
14894 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14895
14896         * config/alpha/alpha.c: Fix comment typos.
14897         * config/alpha/elf.h: Likewise.
14898         * config/arm/arm.c: Likewise.
14899         * config/arm/arm.h: Likewise.
14900         * config/arm/arm.md: Likewise.
14901         * config/arm/t-arm-coff: Likewise.
14902         * config/arm/t-strongarm-pe: Likewise.
14903         * config/arm/xscale-elf.h: Likewise.
14904         * config/avr/avr.h: Likewise.
14905
14906 2003-07-01  Jeff Law  <law@redhat.com>
14907
14908         * stmt.c (any_pending_cleanups): Remove another redundant test.
14909
14910 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
14911             J"orn Rennecke <joern.rennecke@superh.com>
14912
14913         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
14914         for MEM case.
14915
14916 2003-07-01  Devang Patel  <dpatel@apple.com>
14917
14918         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
14919         (binclstatus): New.
14920         (struct dbx_file): New members - bincl_status, pending_bincl_name and
14921         prev.
14922         (pending_bincls): New.
14923         (dbxout_init): Initialize new dbx_file members.
14924         (dbxout_start_source_file): Same.
14925         (emit_bincl_stab): New function.
14926         (emit_pending_bincls): Same.
14927         (emit_pending_bincls_if_required): Same.
14928         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
14929         processed.
14930         (dbxout_begin_block): Emit pending BINCL stabs.
14931         (dbxout_end_block): Same.
14932         (dbxout_function_decl): Same.
14933         (dbxout_continue): Same.
14934         (dbxout_type): Same.
14935         (dbxout_class_name_qualifiers): Same.
14936         (dbxout_symbol): Same.
14937         (dbxout_symbol_location): Same.
14938         (dbxout_parms): Same.
14939
14940 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14941
14942         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
14943         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
14944
14945 2003-07-01  Andreas Jaeger  <aj@suse.de>
14946
14947         * fold-const.c: Convert prototypes to ISO C90.
14948         * function.c: Likewise.
14949         * function.h: Likewise.
14950
14951 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14952
14953         * doc/contrib.texi: Fix typos.
14954         * doc/invoke.texi: Likewise.
14955         * doc/passes.texi: Likewise.
14956         * doc/sourcebuild.texi: Likewise.
14957         * doc/tm.texi: Likewise.
14958
14959 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
14960
14961         * basic-block.h: Fix comment typos.
14962         * bb-reorder.c: Likewise.
14963         * c-format.c: Likewise.
14964         * cfgcleanup.c: Likewise.
14965         * cfghooks.h: Likewise.
14966         * cfgloop.c: Likewise.
14967         * cfgloopmanip.c: Likewise.
14968         * cfgrtl.c: Likewise.
14969         * cgraph.h: Likewise.
14970         * cgraphunit.c: Likewise.
14971         * combine.c: Likewise.
14972         * convert.c: Likewise.
14973         * dbxout.c: Likewise.
14974         * df.c: Likewise.
14975         * df.h: Likewise.
14976         * diagnostic.c: Likewise.
14977         * dwarf2out.c: Likewise.
14978         * et-forest.h: Likewise.
14979         * flow.c: Likewise.
14980         * fold-const.c: Likewise.
14981         * function.h: Likewise.
14982         * gcov-io.h: Likewise.
14983         * gcov.c: Likewise.
14984         * gcse.c: Likewise.
14985         * genautomata.c: Likewise.
14986         * ggc-common.c: Likewise.
14987         * ggc-page.c: Likewise.
14988         * loop-unroll.c: Likewise.
14989         * loop-unswitch.c: Likewise.
14990         * loop.c: Likewise.
14991         * mips-tfile.c: Likewise.
14992         * optabs.c: Likewise.
14993         * ra-build.c: Likewise.
14994         * ra-colorize.c: Likewise.
14995         * ra-rewrite.c: Likewise.
14996         * ra.h: Likewise.
14997         * regmove.c: Likewise.
14998         * reload.c: Likewise.
14999         * rtlanal.c: Likewise.
15000         * sched-ebb.c: Likewise.
15001         * sched-int.h: Likewise.
15002         * sched-vis.c: Likewise.
15003         * sreal.c: Likewise.
15004         * ssa-ccp.c: Likewise.
15005         * ssa.c: Likewise.
15006         * toplev.c: Likewise.
15007         * tree-inline.c: Likewise.
15008         * value-prof.c: Likewise.
15009         * value-prof.h: Likewise.
15010
15011 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15012
15013         * rtl.h (emit_line_note_after): Remove.
15014         (emit_note_copy_after, emit_note_copy): New.
15015         * emit-rtl.c (reorder_insns_with_line_notes): Replace
15016         emit_line_note_after with emit_note_copy_after.
15017         (emit_insn_after_with_line_notes): Likewise.
15018         (emit_line_note_after): Kill.
15019         (emit_note_copy_after): New.
15020         (emit_note_copy): New.
15021         * function.c (emit_return_into_block): Use emit_note_copy_after.
15022         (thread_prologue_and_epilogue_insns): Likewise.
15023         * integrate.c (expand_inline_function): Use emit_note_copy.
15024         (copy_insn_list): Likewise.
15025         * unroll.c (copy_loop_body): Likewise.
15026         * cfglayout.c (duplicate_insn_chain): Likewise.
15027
15028 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
15029
15030         * c-tree.h (define_label): Replace filename and lineno arguments
15031         with a location_t.
15032         * c-decl.c (poplevel): Adjust define_label call.
15033         (pop_label_level): Likewise.
15034         (define_label): Replace filename and lineno arguments with a
15035         location_t.
15036         (store_parm_decls): Use DECL_SOURCE_LOCATION.
15037         * c-parse.in (label): Adjust define_label call.
15038
15039 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
15040
15041         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
15042         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
15043         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
15044         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
15045         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
15046
15047 2003-07-01  Andreas Jaeger  <aj@suse.de>
15048
15049         * final.c: Convert prototypes to ISO C90.
15050         * flow.c: Likewise.
15051         * flags.h: Likewise.
15052         * gcov-io.c: Likewise.
15053         * gcov-io.h: Likewise.
15054
15055 See ChangeLog.9 for earlier changes.