re PR rtl-optimization/8967 (Making class data members `const' pessimizes code)
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-09-12  Roger Sayle  <roger@eyesopen.com>
2
3         PR optimization/8967
4         * alias.c (write_dependence_p): Modify to take an additional constp
5         argument that controls whether the UNCHANGING_RTX_P flags are used.
6         (anti_dependence, output_dependence): Adjust write_dependence_p
7         callers to pass this additional argument, to return the same result.
8         (unchanging_anti_dependence): New variant of anti_dependence that
9         ignores the UNCHANGING_RTX_P property on memory references.
10         * rtl.h (unchaning_anti_dependence): Prototype here.
11         * flow.c (init_propagate_block): Place fake constant mem writes on
12         the mem_set_list so that dead writes to const variables are deleted.
13         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
14         (mark_used_regs): Likewise.
15
16 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
17
18         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
19         (mcore_secondary_reload_class): Declare.
20         (mcore_output_inline_const_forced): Remove.
21         * config/mcore/mcore.md (movsi): Remove the code that forced
22         non-inlineable constants into a register if the target was r15
23         or the stack pointer.  Remove constant restrictions from the main
24         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
25         of an r <- P alternative.  Remove fallback define_insn for reload.
26         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
27         define_insn.  Use mcore_output_move in the remaining define_insn.
28         Adjust condition and constraints in the way as for movsi.
29         (movdi): Always split unacceptable constants into two.  Use
30         simplify_gen_subreg instead of operand_subword{,_force}.
31         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
32         (mcore_output_move): Support HImode and QImode moves as well.
33         (mcore_m15_operand_p): New function.
34         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
35         (mcore_secondary_reload_class): New function.
36         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
37         terms of mcore_secondary_reload_class.
38
39 2003-09-11  Mike Stump  <mrs@apple.com>
40
41         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
42
43 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
44
45         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
46         MODE exactly, then only convert logN(N) -> 1.0 if
47         flag_unsafe_math_optimizations is set.
48
49         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
50         init_builtin_dconsts): Delete.
51         * emit-rtl.c (dconstpi, dconste): Define.
52         (init_emit_once): Initialize dconstpi & dconste.
53         * real.h (dconstpi, dconste): Declare.
54
55 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
56
57         PR fortran/11522
58         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
59         for ultimate origin even if block is abstract.
60
61 2003-09-11  Roger Sayle  <roger@eyesopen.com>
62
63         * combine.c (combine_simplify_rtx): Move several NOT and NEG
64         optimizations from here...
65         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
66         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
67
68 2003-09-11  Richard Henderson  <rth@redhat.com>
69
70         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
71         Tweek tests for function already generated.
72         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
73         * cgraph.h (cgraph_finalize_function): Update for extra arg.
74         * c-decl.c (finish_function): Likewise.
75
76 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
77
78         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
79
80 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
81
82         * real.c: Update URL to VAX floating point docs.
83         (decode_vax_d): Extract 8 exponent bits instead of 7.
84
85 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
86
87         * combine.c (force_to_mode): Set fuller_mask based only on mask,
88         not op_mode.
89
90 Thu Sep 11 01:21:05 CEST 2003  Jan Hubicka  <jh@suse.cz>
91
92         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
93         on why function is not inlinable; do not check
94         the body.
95         (inline_forbidden_p): Move to...
96         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
97         deal with alloca, longjmp.
98         (inline_forbidden_p): New static function.
99         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
100         find_builtin_longjmp_call): Kill.
101
102 2003-09-10  Richard Henderson  <rth@redhat.com>
103
104         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
105         * cgraphunit.c: Update to match.
106         (record_call_1): Rearrange.  Call lang hook for language nodes.
107         (cgraph_analyze_function): Don't call lower_function.
108         * langhooks.h (struct lang_hooks_for_callgraph): Replace 
109         lower_function with analyze_expr.
110         * langhooks-def.h: Update to match.
111         * langhooks.c (lhd_callgraph_analyze_expr): New.
112
113 2003-09-10  Martin Husemann  <martin@duskware.de>
114
115         PR target/11965
116         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
117         constants greater than 63.
118         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
119         against constants greater than 31.
120         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
121         constants greater than 63.
122
123 2003-09-09  Richard Henderson  <rth@redhat.com>
124
125         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
126         * cgraph.h (cgraph_finalize_function): Update.
127         * c-decl.c (finish_function): Update.
128
129 2003-09-09  Devang Patel  <dpatel@apple.com>
130
131         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
132         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
133         
134 2003-09-09  Eric Christopher  <echristo@redhat.com>
135
136         * configure.in: Change usage of 'head' to 'sed 1q'.
137         * configure: Regenerate.
138
139 2003-09-09  Richard Henderson  <rth@redhat.com>
140
141         * except.c: Include cgraph.h.
142         (output_function_exception_table): Invoke
143         cgraph_varpool_mark_needed_node.
144         * Makefile.in (except.o): Update.
145
146 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
147
148         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
149         and use it throughout.
150
151 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
152
153         * builtins.c (real_dconstp, fold_builtin_logarithm,
154         fold_builtin_exponent): New, split out from fold_builtin.  Also
155         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
156         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
157         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
158         of hardcoded array size.
159         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
160         (tree_expr_nonnegative_p): Likewise.
161         * real.h (dconst3, dconst10, dconstthird): New.
162
163 Tue Sep  9 22:18:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
164
165         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
166         inline functions.
167         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
168         DECL_SAVED_TREE.
169
170 2003-09-09  Roger Sayle  <roger@eyesopen.com>
171
172         * builtins.c (fold_builtin_cabs): Protect the complex argument
173         against multiple evaluation when optimizing cabs* into sqrt*.
174
175 Tue Sep  9 15:36:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
176
177         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
178
179 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
180
181         * Makefile.in: Revert yesterday's change.
182
183 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
184             Peter Barada <peter@baradas.org>
185
186         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
187         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
188         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
189         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
190         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
191         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
192         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
193         (m68k_compute_frame_layout): New function.
194         (m68k_initial_elimination_offset): New function.
195         (m68k_output_function_prologue): ColdFire-specific movem handling.
196         (m68k_output_function_epilogue): Likewise.
197         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
198         (ARG_POINTER_REGNUM): Add new definition.
199         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
200         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
201         (CAN_ELIMINATE): Likewise.
202         (INITIAL_ELIMINATION_OFFSET): Likewise.
203
204 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
205
206         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
207         by removing redundant variable cfa_store_offset.
208
209 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
210
211         * langhooks-def.h (lhd_register_builtin_type): New function.
212         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
213         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
214         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
215         * langhooks.c (lhd_register_builtin_type): New function.
216         * c-common.h (c_register_builtin_type): Declare.
217         * c-common.c (c_register_builtin_type): New function.
218         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
219         c_register_builtin_type.
220         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
221         __float80, and __float128 macros.
222         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
223         __float80, and __float128 types.
224
225 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
226
227         * builtin-types.def
228         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
229         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
230         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
231         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
232         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
233         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
234         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
235         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
236         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
237         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
238         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
239         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
240         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
241         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
242         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
243         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
244         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
245         New.
246         * doc/extend.texi: Document new builtins.
247
248 Tue Sep  9 02:18:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
249
250         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
251         finalization.
252         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
253         functions, check for COMDAT.
254         (cgraph_assemble_pending_functions): Break out from...
255         (cgraph_finalize_function): ... here; allow redefinig of extern inline
256         functions.
257         (record_call_1): Record function references only in non-unit-at-a-time
258         mode.
259         (cgraph_analyze_function): Reset current_function_decl.
260         (cgraph_finalize_compilation_unit):  Assemble pending functions.
261
262 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
263
264         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
265         (libgov.a): Likewise.
266         (libgcc_eh.a): Likewise.
267
268 2003-09-08  Roger Sayle  <roger@eyesopen.com>
269
270         * fold-const.c (operand_equal_p): Clarify documentation.
271
272 2003-09-08  Richard Henderson  <rth@redhat.com>
273
274         * c-decl.c (c_expand_body_1): Push and pop function context here.
275         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
276         nested argument instead of computing nesting ourselves.
277
278 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
279
280         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
281         regstack if optimizing but not scheduling after reload.
282
283 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
284
285         * config/sparc/sparc.c (struct machine_function): New type.
286         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
287         (sparc_override_options): Initialize init_machine_status.
288         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
289         tie_symbolic_operand, tle_symbolic_operand): New functions.
290         (symbolic_operand): Disallow tls_symbolic_operand.
291         (symbolic_memory_operand): Likewise.
292         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
293         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
294         New functions.
295         (sparc_tls_symbol): New variable.
296         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
297         legitimize_address): New functions.
298         (print_operand): Handle %&.
299         (sparc_init_machine_status, get_some_local_dynamic_name,
300         get_some_local_dynamic_name_1): New functions.
301         (sparc_output_dwarf_dtprel): New function.
302         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
303         constant_address_p.
304         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
305         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
306         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
307         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
308         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
309         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
310         (ASM_OUTPUT_DWARF_DTPREL): Define.
311         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
312         tie_symbolic_operand, tle_symbolic_operand.
313         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
314         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
315         (tls_call_delay): New attribute.
316         (in_call_delay): Use it.
317         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
318         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
319         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
320         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
321         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
322         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
323         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
324         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
325         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
326         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
327         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
328         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
329         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
330         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
331         insns.
332         * config/sparc/sparc-protos.h (legitimate_constant_p,
333         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
334         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
335         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
336         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
337         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
338         * configure.in (sparc*-*-*): Add TLS check.
339         * configure: Rebuilt.
340
341 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
342
343         PR target/11689
344         * config/i386/i386.c (memory_address_length): Fix computation when
345         the base is esp or ebp.
346
347 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
348
349         PR c++/11852
350         * varasm.c (initializer_constant_valid_p): Correct logic for
351         CONSTRUCTORs.
352
353 2003-09-07  Roger Sayle  <roger@eyesopen.com>
354
355         * expr.c (expand_operands): New function to expand an operand pair.
356         (expand_expr): Call expand_operands whenever we need to expand both
357         operands of a binary operator.
358         (do_store_flag): Likewise for operands of comparison operations.
359
360 2003-09-07  Roger Sayle  <roger@eyesopen.com>
361
362         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
363         (-A)*B if we care about sign-dependent rounding.
364
365 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
366
367         * c-pretty-print.h (pp_c_left_brace): Declare.
368         (pp_c_right_brace): Likewise.
369         * c-pretty-print.c (pp_c_left_brace): Now a function
370         (pp_c_right_brace): Likewise.
371
372 Sun Sep  7 14:50:03 CEST 2003  Jan Hubicka  <jh@suse.cz>
373
374         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
375
376 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
377
378         * diagnostic.c (warn_deprecated_use): Move to toplev.c
379
380 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
381
382         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
383         * Makefile.in (langhooks.o): Depend on diagnostic.h
384
385 2003-09-06  James E Wilson  <wilson@tuliptree.org>
386
387         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
388         simplify.
389
390 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
391
392         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
393         and use it throughout.
394
395 2003-09-07  Jan Hubicka  <jh@suse.cz>
396
397         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
398
399         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
400         virables.
401
402         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
403         functions.
404         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
405
406 2003-09-06  Jan Hubicka  <jh@suse.cz>
407
408         PR target/12070
409         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
410
411         PR opt/12082
412         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
413
414 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
415
416         * diagnostic.c (announce_function): Move to toplev.c.
417
418 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
419
420         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
421         volatile mem.
422
423 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
424
425         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
426         when gc checking is enabled.
427
428 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
429
430         PR c/9862
431         * c-decl.c (c_expand_body_1): Move return warning from here...
432         (finish_function): ...to here.
433
434 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
435
436         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
437         a subset of the input class.
438
439 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
440
441         * config/i860/i860.c: Follow spelling conventions.
442         * config/i860/i860.h: Likewise.
443         * config/sh/sh.h: Likewise.
444
445 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
446
447         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
448         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
449         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
450
451 2003-09-05  Roger Sayle  <roger@eyesopen.com>
452             Richard Henderson  <rth@redhat.com>
453
454         PR optimization/1823
455         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
456         multiplication to implement division by constant integer.
457
458 Fri Sep  5 07:35:16 CEST 2003  Jan Hubicka  <jh@suse.cz>
459
460         * opts.c (decode_options): Enable unit-at-a-time at -O2.
461         * params.def (max-inline-insns-single): Set to 500
462         (max-inline-insns-auto): Set to 150
463         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
464
465 2003-09-04  Richard Henderson  <rth@redhat.com>
466
467         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
468         (cgraph_mark_needed_node): Remove needed argument.
469         * cgraph.h: Update to match.
470         * cgraphunit.c (decide_is_function_needed): Split out from ...
471         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
472         if we generated the function.
473         (record_call_1): Update for cgraph_mark_reachable_node.
474         * varasm.c (mark_referenced): Likewise.
475         * objc/objc-act.c (mark_referenced_methods): Likewise.
476
477 2003-09-04  DJ Delorie  <dj@redhat.com>
478
479         * targhooks.c: Add comment explaining the migration process.
480
481 2003-09-04  Eric Christopher  <echristo@redhat.com>
482
483         * config/frv/t-frv: Fix path for frv-abi.h.
484         * config/frv/frv-asm.h: Fix string concatenation.
485
486 2003-09-04  DJ Delorie  <dj@redhat.com>
487
488         * builtins.c (apply_args_size): Guard against a NULL cfun.
489         (expand_builtin_apply_args_1): Likewise.
490         (expand_builtin_apply): Likewise.
491         Fixes PR bootstrap/12172.
492
493 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
494
495         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
496         assembler supports Sun syntax for cmov.
497         * configure: Regenerate.
498         * config.in: Likewise.
499         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
500         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
501         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
502         Fixes PR target/12101.
503
504 2003-09-04  Matt Austern  <austern@apple.com>
505
506         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
507         with verbosity 0, instead of DECL_NAME, for human-readable string.
508
509 2003-09-04  Eric Christopher  <echristo@redhat.com>
510
511         * targhooks.c (default_return_in_memory): Allow
512         unconverted ports.
513
514 2003-09-04  Eric Christopher  <echristo@redhat.com>
515
516         * targhooks.c (default_return_in_memory): Fix typo
517         in last checkin.
518
519 2003-09-04  Eric Christopher  <echristo@redhat.com>
520
521         * targhooks.c (default_return_in_memory): Fix default
522         definition.
523
524 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
525
526         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
527         deleted function.
528         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
529         enable coff-only code in m68k.c.
530
531 2003-09-04  Nick Clifton  <nickc@redhat.com>
532
533         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
534         v850e1.
535         * config/v850/v850.h: Accept v850e1 as a default CPU.
536         Accept -mv850e1 as a command line option.
537         * doc/invoke.texi: Document new -mv850e1 command line switch.
538         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
539         -mv850e.
540
541 2003-09-04  Nick Clifton  <nickc@redhat.com>
542
543         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
544         * config/v850/t-v850: Only produce one extra multilib - for
545         the v850e.
546         * config/v850/t-v850e: New file: Only produce one extra
547         multilib - for the v850.
548
549 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
550
551         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
552         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
553         * unwind.h (_Unwind_GetBSP): New prototype.
554         * libgcc-std.ver: Add empty GCC_3.3.2 version.
555         * mkmap-symver.awk: For symbol versions with no exported symbols,
556         don't put anything into version script, just change all symbol
557         versions which inherit from it to inherit from its ancestor.
558
559 2003-09-04  Eric Christopher  <echristo@redhat.com>
560
561         * config/mips/mips.c (mips_expand_prologue): Convert to
562         calls.struct_value_rtx hook.
563         (reg_or_const_float_1_operand): New.
564         * config/mips/mips.h: Update Comments.
565         (mips_arg): Add reg_or_const_float_1_operand.
566         * config/mips/mips.md (divdf3); Convert to expander.
567         (divsf3): Ditto.
568         (*divdf3): New pattern.
569         (*divsf3): Ditto.
570
571 Thu Sep  4 10:43:24 CEST 2003  Jan Hubicka  <jh@suse.cz>
572
573         * toplev.c (wrapup_global_declarations): Fix final pass in
574         unit-at-atime mode.
575
576 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
577
578         * doc/extend.texi: Document removal of cast-as-lvalue extension in
579         C++.
580
581 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
582
583         * gcc.c (process_command): Fix typo.
584
585 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
586
587         optimization/11980
588         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
589         (PTRDIFF_TYPE): Likewise.
590         (WCHAR_TYPE_SIZE): Likewise.
591
592 2003-09-03  DJ Delorie  <dj@redhat.com>
593
594         * targhooks.c: New file.
595         * targhooks.h: New file.
596         * Makefile.in: Add targhooks.o support.
597         (function.o): Depend on$(TARGET_H).
598         (stmt.o): Likewise.
599         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
600         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
601         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
602         (expand_builtin_saveregs): Convert to
603         calls.expand_builtin_saveregs hook.
604         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
605         here, instead of ...
606         (get_parm_info) ... here.
607         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
608         hook.
609         (finish_function): Handle calls.promote_prototypes hook here too.
610         * c-typeck.c (convert_arguments): Convert to
611         calls.promote_prototypes hook.
612         (c_convert_parm_for_inlining): Likewise.
613         * calls.c (initialize_argument_information): Convert to
614         calls.promote_function_args hook.
615         (expand_call): Convert to calls.struct_value_rtx,
616         calls.strict_argument_naming,
617         calls.pretend_outgoing_varargs_named, and
618         calls.promote_function_return hooks.  Pass fndecl to
619         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
620         hooks, so they can use that.
621         (emit_library_call_value_1): Likewise.
622         * combine.c (setup_incoming_promotions): Convert to
623         calls.promote_function_args hook.
624         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
625         * expr.c (expand_assignment): Pass call to aggregate_value_p.
626         (expand_expr): Likewise.
627         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
628         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
629         RETURN_IN_MEMORY macro defaults.
630         * final.c (profile_function): Convert to calls.struct_value_rtx
631         hook.
632         * function.c (aggregate_value_p): Accept function type tree as
633         second parameter; try to deduce fntype from it.  Convert to
634         calls.return_in_memory hook.
635         (assign_parms): Convert to calls.setup_incoming_varargs,
636         calls.strict_argument_naming, calls.promote_function_args,
637         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
638         aggregate_value_p.
639         (expand_function_start): Likewise.  Convert to
640         calls.struct_value_rtx hook.
641         (expand_function_end): Convert to calls.promote_function_return hook.
642         (allocate_struct_function): Pass fndecl to aggregate_value_p.
643         * hard-reg-set.h: Update comments to new hook names.
644         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
645         * reg-stack.c (stack_result): Likewise.
646         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
647         * stmt.c (expand_value_return): Convert to
648         calls.promote_function_return hook.
649         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
650         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
651         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
652         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
653         TARGET_STRICT_ARGUMENT_NAMING,
654         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
655         * target.h: Likewise.
656         * tree.h (aggregate_value_p): Also takes a tree to deduce function
657         attributes from (for target hooks).
658         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
659         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
660         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
661         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
662         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
663         to hooks.
664
665         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
666         to aggregate_value_p.
667         * config/arm/arm.c (arm_init_cumulative_args,
668         arm_output_mi_thunk): Likewise.
669         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
670         Likewise.
671         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
672         mips_can_use_return_insn): Likewise.
673         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
674         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
675         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
676         aggregate_value_p.
677         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
678         function to aggregate_value_p.
679         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
680         aggregate_value_p.
681
682         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
683         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
684         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
685         (sh_handle_renesas_attribute, sh_promote_prototypes,
686         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
687         sh_setup_incoming_varargs, sh_strict_argument_naming,
688         sh_pretend_outgoing_varargs_named): New decls.
689         (targetm): Add new hooks.
690         (calc_live_regs): Save MACL and MACH if the function has the
691         renesas attribute.
692         (sh_expand_prologue): Support renesas attribute.
693         (sh_builtin_saveregs): Make static.
694         (sh_build_va_list): Support renesas attribute.
695         (sh_va_start): Likewise.
696         (sh_va_arg): Likewise.
697         (sh_promote_prototypes): New.
698         (sh_function_arg): New, moved from sh.h.  Support renesas
699         attribute.
700         (sh_function_arg_advance): Likewise.
701         (sh_return_in_memory): Likewise.
702         (sh_strict_argument_naming): Likewise.
703         (sh_pretend_outgoing_varargs_named): Likewise.
704         (sh_struct_value_rtx): New.
705         (sh_attribute): Add renesas attribute.
706         (sh_handle_renesas_attribute): New.
707         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
708         (sh_ms_bitfield_layout_p): Support renesas attribute also.
709         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
710         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
711         -mhitachi.
712         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
713         target hooks.
714         (sh_args): Add renesas_abi flag.
715         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
716         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
717         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
718         stack for the renesas abi.
719         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
720         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
721         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
722         call cookie to indicate renesas calls.
723
724 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
725
726         * gcse.c (replace_one_set): New function.
727         (pre_insert_copy_insn): Change the order of copying
728         to make copy propagation discover additional PRE opportunities.
729
730 2003-09-03  Roger Sayle  <roger@eyesopen.com>
731
732         PR optimization/11700.
733         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
734         of a hard register is representable before trying to simplify it
735         using subreg_hard_regno.
736
737 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
738
739         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
740         * configure: Regenerate.
741
742 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
743
744         * intl.h (N_): Remove parentheses.
745
746 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
747
748         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
749         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
750         definition and code blocks compiled when not defined.
751         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
752         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
753         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
754         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
755
756 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
757
758         * cgraphunit.c (visited_nodes): New static variable.
759         (record_call_1): Use walk_tree with visited_nodes.
760         (cgraph_create_edges): Use walk_tree with visited_nodes.
761         Setup/teardown visited_nodes hashtable.
762
763 2003-09-03  Roger Sayle  <roger@eyesopen.com>
764
765         * toplev.c (flag_rounding_math): New global variable.
766         (f_options): Add to the list of language independent options.
767         * flags.h (flag_rounding_math): Prototype here.
768         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
769         * common.opt (frounding-math): New common command line option.
770         * opts.c (common_handle_option): Handle OPT_frounding_math.
771         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
772
773         * doc/invoke.texi: Document this new command line option.
774
775 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
776
777         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
778
779 Wed Sep  3 16:55:25 CEST 2003  Jan Hubicka  <jh@suse.cz>
780
781         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
782         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
783         * c-objc-common.c: Kill include of gt-c-objc-common.h
784         (expand_deferred_fns, deffer_fn): Kill function.
785         (deferred_fns): Kill variable.
786         (finish_cdtor): Update finish_function call.
787         (c_objc_common_finish_file): Always call cgraph code.
788         * c-parse.c: Regenerate.
789         * c-parse.y: Regenerate.
790         * c-tree.h (finish_function): Update prototype.
791         * objc-acct.c (build_module_descriptor, finish_method_def):
792         Update call of finish_function.
793         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
794         forward prototype.
795         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
796         function and assemble it if needed.
797         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
798         mode.
799         (cgraph_optimize): Likewise.
800         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
801         even when it has no inline callees.
802         * c-parse.in: Update calls to finish_function.
803
804 2003-09-03  Nick Clifton  <nickc@redhat.com>
805
806         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
807         Use #error to generate the message if TARGET_DEFAULT is not
808         recognised.
809
810 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
811
812         * config/mips/mips.h (MASK_UNUSED1): Remove.
813         (MASK_XGOT, TARGET_XGOT): Define.
814         (TARGET_SWITCHES): Add an entry for -mxgot.
815         (ASM_SPEC): Map -mxgot to -xgot.
816         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
817         whether we're using a big-GOT sequences.
818         (mips_legitimize_const_move, mips_expand_call): Likewise.
819         (override_options): Revert 2003-01-09 change.
820         * doc/invoke.texi: Document -mxgot.
821
822 2003-09-02  Jason Merrill  <jason@redhat.com>
823
824         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
825         * config/sparc/sol2.h: Not here.
826
827 2003-09-02  Roger Sayle  <roger@eyesopen.com>
828
829         * expr.c (expand_expr): The code following both_summands performs
830         the same task as simplify_gen_binary.  Replace all gotos to
831         both_summands with a call to simplify_gen_binary and delete the
832         now unused label.
833
834 2003-09-02  Jason Merrill  <jason@redhat.com>
835
836         PR c++/7327
837         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
838
839 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
840
841         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
842         (cgraph_optimize_function): Set current_function_decl to the
843         fndecl we're integrating from.
844
845 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
846
847         * builtins.def: Break out _Complex math functions into their
848         own category.
849
850 2003-09-02  Andreas Jaeger  <aj@suse.de>
851
852         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
853
854 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
855
856         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
857         finding the note again.
858
859 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
860
861         * config.gcc: Remove host-specific rewrites of target_alias.
862
863 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
864
865         * Makefile.in (genprogs): Fix typo.
866
867         * Makefile.in (gencheck.o): Remove build commands.
868         (dummy-conditions.o): Likewise.
869         (read-rtl.o): Likewise.
870         (gensupport.o): Likewise.
871         (genconfig$(build_exeext)): Remove rule.
872         (genconfig.o): Remove build commands.
873         (genflags$(build_exeext)): Remove rule.
874         (genflags.o): Remove build commands.
875         (gencodes$(build_exeext)): Remove rule.
876         (gencodes.o): Remove build commands.
877         (genconstants.o): Remove build commands.
878         (genemit$(build_exeext)): Remove rule.
879         (genemit.o): Remove build commands.
880         (genrecog$(build_exeext)): Remove rule.
881         (genrecog.o): Remove build commands.
882         (genextract$(build_exeext)): Remove rule.
883         (genextract.o): Remove build commands.
884         (genpeep$(build_exeext)): Remove rule.
885         (genpeep.o): Remove build commands.
886         (genattr$(build_exeext)): Remove rule.
887         (genattr.o): Remove build commands.
888         (genprognames): New variable.
889         (genprogs): Likewise.
890         (genobjs): Likewise.
891         (genprogs): New rule.
892         (genobjs): Likewise.
893         (genattrtab.o): Remove build commands.
894         (genautomata.o): Likewise.
895         (genoutput$(build_exeext)): Remove rule.
896         (genoutput.o): Remove build commands.
897         (gengenrtl.o): Likewise.
898         (genpreds.o): Likewise.
899         (gengtype.o): Likewise.
900         (genconditions.o): Likewise.
901         (gen-protos.o): Likewise.
902         (scan.o): Likewise.
903         (fix-header.o): Likewise.
904         (scan-decls.o): Likewise.
905         (check-g++): Combine with other check targets.
906         (check-gcc): Likewise.
907         (check-g77): Likewise.
908         (check-objc): Likewise.
909
910 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
911
912         * config.gcc: Remove host-specific stuff which is unused here
913         since the introduction of config.host.
914
915         * doc/fragments.texi: Mention config.host.
916         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
917         of config.build, config.host, and config.gcc.
918
919 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
920
921         * c-decl.c (pushdecl): Don't put variables on
922         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
923         incomplete.
924
925 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
926
927         * config.host: New file.
928         * config.gcc: Remove some host-specific stuff and some
929         logic needed only for repeated invocation.
930         * configure.in: Use config.host.
931         * configure: Regenerate.
932
933 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
934
935         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
936         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
937         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
938         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
939         * tree.def (BIT_ANDTC_EXPR): Kill.
940
941 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
942
943         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
944         * configure: Regenerate.
945
946         * config.gcc:  Remove references to install_headers_dir, now unused
947         since introduction of config.build.
948         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
949
950         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
951         config.build.
952
953         * config.build: New file.
954         * config.gcc: Remove some build-specific stuff.
955         * configure.in: Use config.build.
956         * configure: Regnerate.
957
958 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
959             Roger Sayle  <roger@eyesopen.com>
960
961         PR middle-end/11823
962         * stmt.c (expand_end_case_type): Only use jump tables for dense
963         switch statements when optimizing for size.
964
965 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
966
967         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
968         the != 0 case, which ensures pending stack adjustments are flushed.
969
970 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
971
972         * configure.frag: Delete file.
973         * configure.in: Rename the substitution variables
974         dep_host_xmake_file and dep_tmake_file to xmake_file and
975         tmake_file respectively.  Do not expand $srcdir in the
976         value of these; leave that for Make.  Introduce a new
977         substitution varaible, all_lang_makefrags, which lists
978         subdirectory Make-lang.in files; exclude these from
979         all_lang_makefiles, which is now only for subdirectory
980         outputs.  Do not invoke configure.frag.  Do not set nor
981         AC_SUBST_FILE target_overrides, host_overrides, or
982         language_fragments. Create build subdirectories in
983         config.status extra commands.
984         * configure: Regenerate.
985         * Makefile.in: Update substitutions to match changes to
986         configure.  Use include directives instead of @-insertions
987         to read in host, target, and language fragments.
988         (Makefile rule): Do not invoke configure.frag.  Do not copy
989         config.status to config.run before executing it.  Set
990         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
991         regenerated.
992         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
993
994 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
995
996         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
997         * c-typeck.c (same_translation_unit_p): New function.
998         (comptypes): Use it instead of flags parameter to identify
999         structure types from different translation units.
1000         * c-decl.c (duplicate_decls): Always call comptypes with
1001         COMPTYPE_STRICT flags argument.
1002         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
1003         to file_scope_decl.
1004
1005 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
1006
1007         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
1008         * c-decl.c (struct c_scope): Remove "incomplete" field.
1009         (pushdecl): Attach variables with incomplete types to
1010         the TYPE_MAIN_VARIANT of the incomplete type in question.
1011         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
1012         to complete, not at current_scope->incomplete.  All such
1013         variables do need completion.
1014
1015 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
1016         Nicolas Pitre <nico@cam.org>
1017
1018         * arm/lib1funcs.asm (RETCOND): Delete.
1019         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
1020         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
1021         (__ARM_ARCH__): Move here from ieee754-?f.S.
1022         (RET, RETc): Clean up definitions.
1023         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
1024         (FUNC_END): New macro that marks the end of any function.
1025         (ARM_FUNC_START): New macro that allows an assembler routine to be
1026         implemented in ARM code even if a Thumb-only build.
1027         Unconditionally include ieee754-?f.S.
1028         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
1029         Mark ends of functions.
1030         Split into separate conditionally-compiled units.
1031         Use RETLDM to return from routines.
1032         * arm/ieee754-sf.S: Similarly.
1033         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
1034         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
1035         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
1036         _fixsfsi and _fixunssfsi.
1037
1038         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
1039         multiplication underflows to zero.
1040         (__adddf3): Fix bug when using VFP ordering on little-endian
1041         processors.
1042         (__fixdfsi): Use rrx to extract the carry into a register instead of
1043         MRS instruction.  Optimize later use of result.
1044         * arm/ieee754-sf.S (__fixsfsi): Likewise.
1045         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
1046
1047 2003-08-29  Richard Henderson  <rth@redhat.com>
1048
1049         * tree-optimize.c: New file.
1050         * Makefile.in (OBJS-archive): Add tree-optimize.o.
1051         (tree-optimize.o): New.
1052         * c-decl.c (store_parm_decls): Use allocate_struct_function.
1053         (finish_function): Don't free_after_parsing or free_after_compilation.
1054         (set_save_expr_context): Move to tree-optimize.c.
1055         (c_expand_body_1): Use tree_rest_of_compilation.
1056         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1057         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
1058         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
1059         iterate until closure.
1060         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
1061         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
1062         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
1063         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
1064         * toplev.h (tree_rest_of_compilation): Declare it.
1065
1066 2003-08-29  Richard Henderson  <rth@redhat.com>
1067
1068         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
1069         * integrate.c (save_for_inline): Set saved_for_inline.
1070         * c-semantics.c (genrtl_scope_stmt): Check it.
1071         * toplev.c (wrapup_global_declarations): Check it.
1072         (rest_of_handle_inlining): Set and check rtl_inline_init.
1073         (rest_of_compilation): Remove out of date comment.
1074
1075 2003-08-29  Richard Henderson  <rth@redhat.com>
1076
1077         * function.c (allocate_struct_function): New, split out of ...
1078         (prepare_function_start, init_function_start): ... here.
1079         * expr.c (init_expr): Use ggc_alloc_cleared.
1080         * stmt.c (init_stmt_for_function): Likewise.
1081         * tree.h (allocate_struct_function): Declare.
1082
1083 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1084
1085         * config.gcc: Don't use negated character class in shell case
1086         clause.
1087
1088 2003-08-29  Richard Henderson  <rth@redhat.com>
1089
1090         * function.h (struct function): Move function_frequency and
1091         max_jumptable_ents before start of bit field members.
1092
1093 2003-08-29  Richard Henderson  <rth@redhat.com>
1094
1095         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
1096         (fold_builtin_constant_p) ... not here.
1097
1098 2003-08-29  Richard Henderson  <rth@redhat.com>
1099
1100         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
1101         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
1102         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
1103
1104 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1105
1106         * builtins.def: Fix typos.
1107         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
1108         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
1109         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
1110         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
1111         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
1112
1113         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
1114         Use ATTR_MATHFN_FPROUNDING_ERRNO.
1115
1116 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1117
1118         * config.gcc (i386-*-vsta): Fix obvious bogosity.
1119
1120         * fixinc/inclhack.def:  Remove special cases for unsupported
1121         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
1122         * fixinc/fixincl.x: Regenerate.
1123
1124 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
1125
1126         * Makefile.in (cpp.info): Just state dependencies.
1127         (gcc.info): Likewise.
1128         (gccint.info): Likewise.
1129         (gccinstall.info): Likewise.
1130         (cppinternals.info): Likewise.
1131         (cpp.dvi): Likewise.
1132         (gcc.dvi): Likewise.
1133         (gccint.dvi): Likewise.
1134         (gccinstall.dvi): Likewise.
1135         (cppinternals.dvi): Likewise.
1136         (gcov.1): Likewise.
1137         (cpp.1): Likewise.
1138         (gcc.1): Likewise.
1139         (gfdl.7): Likewise.
1140         (gpl.7): Likewise.
1141         (fsf-funding.7): Likewise.
1142         ($(objdir)/%.info): New pattern rule.
1143         (%.dvi): Likewise.
1144
1145 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
1146
1147         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
1148         (restage2): Likewise.
1149         (restage3): Likewise.
1150         (restage4): Likewise.
1151         (restageprofile): Likewise.
1152         (restagefeedback): Likewise.
1153         (bubblestrap): Likewise.
1154
1155 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
1156
1157         * config.gcc: Narrow unsupported target match to avoid clobbering
1158         i?86-sequent-sysv4*.
1159
1160 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1161
1162         * builtins.c (mathfn_built_in): Handle new math builtins.
1163
1164 2003-08-28  Per Bothner  <per@bothner.com>
1165
1166         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
1167         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
1168         (_cpp_lex_buffer):  Likewise.
1169         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
1170
1171 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
1172
1173         * config/s390/s390.md ("*mulsi3_sign"): New insn.
1174         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
1175         ("mulsidi3"): ... this new insn.
1176         ("umulsidi3"): New insn.
1177         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
1178         mixed-mode matching constraints.
1179         ("udivmodsi4", "udivmoddisi3"): New insns.
1180         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
1181
1182 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1183
1184         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
1185         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
1186         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
1187         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
1188         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
1189         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
1190         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
1191         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
1192         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
1193         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
1194         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
1195         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
1196         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
1197         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
1198         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
1199         * tree.c: Assign new type_nodes.
1200         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
1201         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
1202         (float_ptr_type_node, double_ptr_type_node,
1203         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
1204
1205         * doc/extend.texi: Document new builtins.
1206
1207 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1208
1209         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
1210         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
1211
1212         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
1213         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
1214         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
1215         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
1216         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
1217         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
1218         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
1219         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
1220         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
1221         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
1222
1223         * doc/extend.texi: Document new builtins.
1224
1225 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
1226
1227         * fixinc/mkfixinc.sh: Remove special case code for unsupported
1228         variants of i?86, powerpcle, and thumb.
1229         * fixinc/mkfixinc.sh: Remove special case code for unsupported
1230         arm and hppa variants.
1231
1232 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1233
1234         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
1235         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
1236         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
1237         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
1238         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
1239         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
1240         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
1241         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
1242         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
1243         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
1244
1245         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
1246         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
1247         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
1248         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
1249         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
1250         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
1251         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
1252         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
1253         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
1254         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
1255         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
1256         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
1257         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
1258         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
1259         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
1260         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
1261         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
1262         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
1263         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
1264         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
1265         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
1266         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
1267         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
1268         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
1269         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
1270         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
1271         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
1272         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
1273         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
1274         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
1275         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
1276
1277         * doc/extend.texi: Document new builtins.
1278
1279 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
1280
1281         * config/s390/s390.c (legitmate_constant_p): Use LARL on
1282         zSeries machines even in 31-bit addressing mode.
1283         (legitimate_reload_constant_p): Likewise.
1284         (legitimize_pic_address): Likewise.
1285         (legitimize_tls_address): Likewise.
1286         (s390_split_branches): Likewise.
1287         (s390_dump_pool): Likewise.
1288         (s390_mainpool_finish): Likewise.
1289         (s390_chunkify_start): Likewise.
1290         (s390_select_rtx_section): Likewise.
1291         * config/s390/s390.md ("doloop_si"): Likewise.
1292         ("pool_start_31", "pool_end_31"): Likewise.
1293         ("pool_start_64", "pool_end_64"): Likewise.
1294         ("main_base_31_small", "main_base_31_large"): Likewise.
1295         ("main_base_64"): Likewise.
1296         ("reload_base_31", "reload_base_64"): Likewise.
1297         ("*movsi_larl"): New insn.
1298         ("cjump", "icjump"): Use long branches on zSeries machines.
1299         ("jump"): Likewise.
1300         ("call"): Use BRASL on zSeries machines.
1301         ("call_value", "call_value_tls"): Likewise.
1302         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
1303         and replace by ...
1304         ("*bras", "*brasl", "*basr") ... these new insns.
1305         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
1306         "bas_31_r"): Remove and replace by ...
1307         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
1308         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
1309         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
1310         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
1311         ("*return_si", "*return_di"): Remove and replace by ...
1312         ("*return"): ... this new insn.
1313         ("rotlsi3"): Allow on zSeries machines.
1314
1315         * config/s390/s390.c (legitimize_reload_constant_p): Use
1316         LL/LH type instructions in z/Architecture mode.
1317         * config/s390/s390.md ("*movsi_lli"): Likewise.
1318         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
1319         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
1320         ("*extendqisi2"): Use LB in z/Architecture mode.
1321         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
1322         z/Architecture mode.
1323         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
1324         Likewise.
1325
1326         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
1327         and 31-bit mode.
1328         ("ptr_extend"): Allow only in 64-bit mode.
1329
1330 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
1331
1332         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
1333         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
1334         definitions.
1335         (main): Only use standard_startfile_prefix if native.
1336         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
1337
1338 2003-08-27  Per Bothner  <pbothner@apple.com>
1339
1340         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
1341         test fails following my 08-21 change, and it seems unnecessary anyway.
1342         (cpp_error):  Likewise.
1343
1344 2003-08-27  Jason Merrill  <jason@redhat.com>
1345
1346         * real.c (do_multiply): Initialize with memset.
1347
1348 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1349
1350         * gcov.c (typedef struct arc_info): New field cs_count.
1351         (accumulate_line_counts): Find cycles correctly.
1352
1353 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
1354
1355         * config/s390/s390.c (struct machine_function): Remove member
1356         literal_pool_label.
1357         (s390_optimize_prolog): Replace TEMP_REG argument with
1358         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
1359         (general_s_operand): Accept all immediates before reload if
1360         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
1361         references.
1362         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
1363         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
1364         (s390_alloc_pool): New function.
1365         (s390_new_pool): Call it.
1366         (s390_dump_pool): Add REMOTE_LABEL argument.
1367         (s390_chunkify_start): Add BASE_REG argument.  Do not check
1368         get_pool_size ().
1369         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
1370         s390_dump_pool call.
1371         (s390_pool_count, s390_nr_constants): Remove.
1372         (s390_output_constant_pool): Remove.
1373         (s390_mainpool_start): New function.
1374         (s390_mainpool_finish): New function.
1375         (s390_mainpool_cancel): New function.
1376         (s390_reorg): Implement main literal pool handling.
1377         (s390_emit_prologue): Emit main_pool placeholder instead of
1378         literal_pool_31 / literal_pool_64 insns.
1379         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
1380         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
1381         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
1382         ("main_base_31_small", "main_base_31_large"): New insns.
1383         ("main_base_64",  "main_pool"): New insns.
1384         ("literal_pool_31", "literal_pool_64"): Remove.
1385
1386 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1387
1388         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
1389         fixinc.ptx.
1390         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
1391         Prettify a little.
1392         * fixinc/fixincl.x: Regenerate.
1393
1394 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
1395
1396         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
1397         (L_ieee754_dp): New.  Include ieee754-df.S.
1398         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
1399         and compilation in apcs-26 mode.
1400         * arm/ieee754-df.S: Likewise.
1401         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
1402         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
1403
1404 2003-08-27  Nicolas Pitre  <nico@cam.org>
1405
1406         * arm/ieee754-sf.S: New.
1407         * arm/ieee754-df.S: New.
1408
1409 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
1410
1411         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
1412         and restore it if returning NULL.
1413
1414 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
1415
1416         * calls.c (initialize_argument_information): If an argument has no
1417         stack space associated with it, and BLOCK_REG_PADDING is defined,
1418         use it to decide at which end the argument should be padded.
1419         * function.c (assign_parms): Allocate BLKmode stack slots.
1420         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
1421         (mips_pad_reg_upward): Declare.
1422         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
1423         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
1424         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
1425         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
1426         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
1427         (mips_expand_call): Remove code for generating structure shifts.
1428         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
1429         types unless using the EABI.
1430         (function_arg_advance): Don't generate shift instructions.
1431         (function_arg): Don't return them.  Don't short-circuit the
1432         check for double structure chunks for DFmode arguments.
1433         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
1434         (mips_expand_prologue): Remove code to emit structure shifts.
1435         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
1436         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
1437         comments to say that only structure returns are a problem.
1438
1439 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1440
1441         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
1442         Fix to match produced versions.
1443         * fixinc/inclhack.def (longlong_t): New disabled test, ported
1444         from fixinc.svr4.
1445         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
1446         from fixinc.ptx.
1447         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
1448         ported from fixinc.ptx.
1449
1450 2003-08-26  Per Bothner  <pbothner@apple.com>
1451
1452         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
1453         (cpp_error_with_line):  Use fileline for appropriate parameter.
1454         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
1455         (struct cpp_reader):  Likewise for fields line and directive_line.
1456         (_cpp_begin_message):  Use fileline for appropriate parameter.
1457         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
1458         cpp_error):  Use fileline for appropriate parameters and variables.
1459         (print_location):  New local lin, since it is not a fileline.
1460
1461 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1462
1463         PR middle-end/12002
1464         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
1465         (FLOAT_TYPE_P): Define in terms of these two new macros.
1466         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
1467         for complex floating point types.
1468
1469 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
1470
1471         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
1472         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
1473         s390_output_pool_entry.
1474
1475 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
1476
1477         * fixinc/inclhack.def (svr4_preproc_lint_on,
1478         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
1479         fixes, ported from fixinc.svr4.
1480
1481 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
1482
1483         * doc/install.texi (Prerequisites): Mention GNU make requirement.
1484
1485         * Makefile.in (AR_FOR_TARGET): Export it.
1486         (AR_CREATE_FOR_TARGET): Likewise.
1487         (AR_FLAGS_FOR_TARGET): Likewise.
1488         (AR_EXTRACT_FOR_TARGET): Likewise.
1489         (AWK): Likewise.
1490         (BUILD_PREFIX): Likewise.
1491         (BUILD_PREFIX_1): Likewise.
1492         (DESTDIR): Likewise.
1493         (GCC_FOR_TARGET): Likewise.
1494         (INCLUDES): Likewise.
1495         (INSTALL_DATA): Likewise.
1496         (LIB1ASMSRC): Likewise.
1497         (LIBGCC2_CFLAGS): Likewise.
1498         (MACHMODE_H): Likewise.
1499         (NM_FOR_TARGET): Likewise.
1500         (RANLIB_FOR_TARGET): Likewise.
1501         (libsubdir): Likewise.
1502         (slibdir): Likewise.
1503         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
1504         exporting.
1505         (libgcc.a): Don't pass them here.
1506         (stmp-multilib): Or here.
1507         (install-libgcc): Or here.
1508         (install-multilib): Or here.
1509         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
1510         (stage1_build): Or here.
1511
1512 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
1513
1514         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
1515         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
1516
1517 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
1518
1519         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
1520         "*fmaddsf", "*fmsubsf"): New insns.
1521
1522 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1523
1524         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
1525         (C1*C2)/X when unsafe math optimizations are allowed.
1526         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
1527         math optimizations.  Minor code clean-ups.  Recursively call
1528         fold when constructing sub-expressions.
1529
1530 2003-08-26  Roger Sayle  <roger@eyesopen.com>
1531
1532         * builtins.c (fold_builtin_bitop): New function to perform constant
1533         folding of ffs, clz, ctz, popcount and parity builtin functions
1534         and their long and long long variants (such as ffsl and ffsll).
1535         (fold_builtin): fold_builtin_bitop when appropriate.
1536         * simplify-rtx.c (simplify_unary_operation): Honor both
1537         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
1538         evaluating clz and ctz at compile-time, for operands wider
1539         than HOST_WIDE_INT.
1540
1541 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
1542
1543         * builtins.c (build_function_call_expr): Don't set
1544         TREE_SIDE_EFFECTS here.
1545         * expr.c (emit_block_move_via_libcall): Likewise.
1546         (clear_storage_via_libcall): Likewise.
1547         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
1548         CALL_EXPRs.
1549
1550         * gcse.c (is_too_expensive): New function.
1551         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
1552
1553 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
1554
1555         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
1556         commented-out logic to use DCE threads (if present), add
1557         support for POSIX threads.
1558         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
1559         #defines for -pthread.  Add -lpthread to LIB_SPEC when
1560         -pthread.  In both cases take -mt as a synonym for -pthread
1561         for acc compatibility.
1562         Define GTHREAD_USE_WEAK to 0.
1563         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
1564         Remove old logic for DCE threads from LIB_SPEC.
1565         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
1566
1567 2003-08-25  Roger Sayle  <roger@eyesopen.com>
1568
1569         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
1570         return 0 for invalid argument types.  Instead drop through to a
1571         call of expand_call at the bottom of function.  If op is SQRT,
1572         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
1573
1574 2003-08-25  Richard Henderson  <rth@redhat.com>
1575
1576         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
1577         result when op0 is SImode.
1578
1579 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
1580
1581         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
1582         from fixinc.svr4.
1583         * fixinc/fixincl.x: Regenerate.
1584         * fixinc/tests/base/sys/signal.h: Regenerate.
1585
1586 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1587
1588         * combine.c (simplify_comparison): Re-enable widening of comparisons
1589         with non-paradoxical subregs of non-REG expressions.
1590
1591 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1592
1593         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
1594
1595 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
1596
1597         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
1598
1599 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1600
1601         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
1602         * c-pretty-print.h (c_pretty_printer): Now typedef to the
1603         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
1604         (struct c_pretty_print_info): Document.  Add new fields.
1605         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
1606         (pp_direct_abstract_declarator): New macro.
1607         (pp_ptr_operator): Likewise.
1608         (pp_simple_type_specifier): Likewise.
1609         (pp_expression): Likewise.
1610         (pp_parameter_list): Rename from pp_parameter_declaration.
1611         * c-pretty-print.c (pp_c_whitespace): Now a function.
1612         (pp_c_left_paren): Likewise.
1613         (pp_c_right_paren): Likewise.
1614         (pp_c_dot): Likewise.
1615         (pp_c_ampersand): Likewise.
1616         (pp_c_arrow): Likewise.
1617         (pp_c_semicolon): Likewise.
1618         (pp_c_type_cast): New function.
1619         (pp_c_space_for_pointer_operator): Likewise.
1620         (pp_c_call_argument_list): Likewise.
1621         (pp_c_cv_qualifier): Adjust prototype.
1622         (pp_c_type_qualifier_list): Likewise.
1623         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
1624         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
1625         Adjust to follow standard grammar.
1626         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
1627         REFERENCE_TYPE.  Tidy.
1628         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
1629         (pp_c_parameter_declaration): Remove.
1630         (pp_c_abstract_declarator): Adjust prototype.
1631         (pp_c_direct_abstract_declarator): Likewise.
1632         (pp_c_type_id): Likewise.
1633         (pp_c_storage_class_specifier): Likewise.
1634         (pp_c_function_specifier): Likewise.
1635         (pp_c_declaration_specifiers): Likewise.
1636         (pp_c_direct_declarator): Likewise.
1637         (pp_c_declarator): Likewise.
1638         (pp_c_declarator): Likewise.
1639         (pp_c_declaration): Likewise.
1640         (pp_c_attributes): Likewise.  Tidy.
1641         (pp_c_function_definition): Adjust prototype.
1642         (pp_c_char): Likewise.
1643         (pp_c_string_literal): Likewise.
1644         (pp_c_integer_constant): Likewise.
1645         (pp_c_character_constant): Likewise.
1646         (pp_c_bool_constant): Likewise.
1647         (pp_c_enumeration_constant): Likewise.
1648         (pp_c_floating_constant): Likewise.
1649         (pp_c_constant): Likewise.
1650         (pp_c_identifier): Likewise.
1651         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
1652         (pp_c_initializer): Adjust prototype.
1653         (pp_c_init_declarator): Likewise.
1654         (pp_c_initializer_list): Likewise.
1655         (pp_c_id_expression): Likewise.
1656         (pp_c_postfix_expression): Likewise.
1657         (pp_c_expression_list): Likewise.
1658         (pp_c_unary_expression): Likewise.
1659         (pp_c_cast_expression): Likewise.
1660         (pp_c_multiplicative_expression): Likewise.
1661         (pp_c_additive_expression): Likewise.
1662         (pp_c_shift_expression): Likewise.
1663         (pp_c_relational_expression): Likewise.
1664         (pp_c_equality_expression): Likewise.
1665         (pp_c_and_expression): Likewise.
1666         (pp_c_exclusive_or_expression): Likewise.
1667         (pp_c_inclusive_or_expression): Likewise.
1668         (pp_c_logical_and_expression): Likewise.
1669         (pp_c_logical_or_expression): Likewise.
1670         (pp_c_conditional_expression): Likewise.
1671         (pp_c_assignment_expression): Likewise.
1672         (pp_c_expression): Likewise.  Tidy.
1673         (pp_c_statement): Likewise.  Document.
1674         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
1675
1676         * c-lang.c (c_initialize_diagnostics): Update.
1677         * c-common.h (strip_pointer_operator): Declare.
1678         * c-common.c (strip_pointer_operator): Define.
1679
1680 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
1681
1682         PR c++/8795
1683         * tree.h (build_method_type_directly): Declare.
1684         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
1685         (vector_size_helper): Likewise.
1686         * tree.c (build_method_type_directly): New function.
1687         (build_method_type): Use it.
1688
1689 2003-08-24  Richard Henderson  <rth@redhat.com>
1690
1691         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
1692         for 16-byte vector modes if sse not enabled; warn for abi change.
1693         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
1694
1695 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
1696
1697         * rtlanal.c (may_trap_p): Simplify an integer comparison.
1698
1699 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
1700
1701         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
1702         comment.  Enable for DYNIX/ptx systems (when they switch to
1703         regular fixincludes).
1704         * fixinc/fixincl.x: Regenerate.
1705
1706 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1707
1708         * config/i860/t-i860: New.
1709         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
1710
1711 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
1712
1713         * c-decl.c (pushdecl): Only put decls which finish_struct will do
1714         something about onto incomplete chain.
1715         (finish_struct): If not removing type from incomplete
1716         list, update prev.
1717
1718 Wed Aug 20 12:08:55 CEST 2003  Jan Hubicka  <jh@suse.cz>
1719
1720         PR target/11369
1721         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
1722
1723         PR target/11031
1724         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
1725         const_0_to_15_operand, const_0_to_255_operand): New predicates.
1726         * i386.h (PREDICATE_CODES): Add these.
1727         * i386.c (pinsrw and pextrw patterns): Use them.
1728
1729         PR target/10984
1730         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
1731
1732         PR target/8869
1733         * expr.c (convert_modes): Deal properly with integer to vector
1734         constant conversion.
1735
1736         PR target/8871
1737         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
1738
1739 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1740
1741         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
1742         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
1743         ("*movhi"): ... this.
1744         ("movqi", "*movqi"): Likewise.
1745         ("movqi_64"): Remove.
1746         ("*zero_extendhisi2_31"): Change predicate to s_operand.
1747
1748 2003-08-23  Dale Johannesen  <dalej@apple.com>
1749         * calls.c (emit_library_call_value_1): Fix obvious errors in
1750         arguments to emit_group_store.
1751
1752 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1753
1754         * calls.c (emit_library_call_value_1): Remove code related
1755         to LIBGCC_NEEDS_DOUBLE.
1756         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
1757         * doc/tm.texi: Likewise.
1758         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
1759
1760 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
1761
1762         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
1763
1764 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
1765
1766         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
1767         as well.  Put memory references in the varargs alias set.
1768         (mips_expand_prologue): Remove varargs handling from here.
1769
1770 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1771
1772         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
1773         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
1774         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
1775         for function pointer calls.
1776         * config/s390/s390.md ("*negdi2_31"): Likewise.
1777
1778 2003-08-23  Roger Sayle  <roger@eyesopen.com>
1779
1780         * combine.c (apply_distributive_law): Correct comment.
1781
1782 2003-08-23  Jason Eckhardt  <jle@rice.edu>
1783
1784         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
1785
1786 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1787
1788         * config/i860/i860.c (i860_build_va_list): Create the va_decl
1789         declaration.  Document the va_list structure.
1790         (i860_va_start): Initialize the va_list structure.
1791         (i860_va_arg): Rewrite completely.
1792         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
1793         * config/i860/varargs.asm: Do not allocate or initialize
1794         a va_list.  Return the address of the register save area.
1795
1796 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1797
1798         * config/iq2000/iq2000.c: Fix comment typos.
1799         * config/iq2000/iq2000.md: Likewise.
1800
1801 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1802
1803         * config/iq2000/iq2000.c: Follow spelling conventions.
1804         * config/iq2000/iq2000.h: Likewise.
1805         * config/mn10300/mn10300.c: Likewise.
1806
1807 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1808
1809         * config/i860/i860.c (output_move_double): Don't set latehalf
1810         to zero for CONST_INT (since it could be, e.g., -1).
1811
1812         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
1813         (MODSI3_LIBCALL): ...with this one.
1814         (UREMSI3_LIBCALL): Replace this macro...
1815         (UMODSI3_LIBCALL): ...with this one.
1816
1817 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1818
1819         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
1820         (output_delayed_branch): Remove prototype.
1821         (single_insn_src_p): Remove prototype.
1822         * config/i860/i860.c (single_insn_src_p): Remove function.
1823         (output_delayed_branch): Remove function.
1824         (output_delay_insn): Remove function.
1825         (va_start): Remove unconditional test and dead code, re-format.
1826         Fix coding style and spelling problems in various comments.
1827         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
1828         (blockage pattern): ...and use it here.
1829         (all define_peephole patterns related to delayed branches): Remove.
1830         Fix coding style and spelling problems in various comments.
1831
1832 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1833
1834         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
1835         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
1836         Convert all function definitions from traditional to ISO C90 syntax.
1837         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
1838         with 'GCC'.  Remove all uses of the PARAMS macro.
1839         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
1840         * config/i860/i860.md: Likewise.
1841         * config/i860/sysv4.h: Likewise.
1842         * config/i860/varargs.asm: Likewise.
1843
1844 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1845
1846         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
1847         argument.
1848         (tdesc_section): Add prototype.
1849         Update copyright dates.
1850         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
1851         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
1852         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
1853         (targetm): Likewise.
1854         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
1855         for '%d' where necessary.
1856         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
1857         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
1858         by UNITS_PER_WORD when referencing (likewise for .floats).
1859         (I860_SVR4_VARARGS): Rename...
1860         (I860_SVR4_VA_LIST): ...to this.
1861         Call build() with 't' rather than 'field'.
1862         (i860_rtx_costs): New function.
1863         (TARGET_RTX_COSTS): Define.
1864         (i860_internal_label): New function.
1865         (TARGET_ASM_INTERNAL_LABEL): Define.
1866         (i860_file_start): New function.
1867         Update copyright dates.
1868         * config/i860/i860.h (CPP_PREDEFINES): Remove.
1869         (TARGET_CPU_CPP_BUILTINS): Define.
1870         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
1871         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
1872         (ASM_FILE_START): Remove.
1873         (ASM_FILE_START_1): Remove.
1874         (ASM_GLOBALIZE_LABEL): Remove.
1875         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
1876         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
1877         with targetm.asm_out.internal_label.
1878         Update copyright dates.
1879         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
1880         (CPP_PREDEFINES): Remove.
1881         (TARGET_OS_CPP_BUILTINS): Define.
1882         (GLOBAL_ASM_OP): Define.
1883         (ASM_FILE_START): Remove.
1884         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
1885         (TARGET_ASM_FILE_START): Define.
1886         Update copyright dates.
1887
1888 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1889
1890         * gcc/config.gcc (i860-*-sysv4*): Add target.
1891         * config/i860/i860-protos.h: New.
1892         * config/i860/i860.c: New.
1893         * config/i860/i860.h: New.
1894         * config/i860/i860.md: New.
1895         * config/i860/sysv4.h: New.
1896         * config/i860/varargs.asm: New.
1897         * config/i860/x-sysv4: New.
1898
1899 2003-08-22  Jason Eckhardt  <jle@rice.edu>
1900
1901         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
1902         Remove all uses of PARAMS macro.
1903         Convert all function definitions to ISO C90 syntax.
1904         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
1905         * config/pa/fptr.c: Likewise.
1906         * config/pa/lib2funcs.asm: Likewise.
1907         * config/pa/long_double.h: Likewise.
1908         * config/pa/milli64.S: Likewise.
1909         * config/pa/pa-64.h: Likewise.
1910         * config/pa/pa-hpux.h: Likewise.
1911         * config/pa/pa-hpux10.h: Likewise.
1912         * config/pa/pa-hpux11.h: Likewise.
1913         * config/pa/pa-linux.h: Likewise.
1914         * config/pa/pa-modes.def: Likewise.
1915         * config/pa/pa-osf.h: Likewise.
1916         * config/pa/pa-pro-end.h: Likewise.
1917         * config/pa/pa.md: Likewise.
1918         * config/pa/pa32-linux.h: Likewise.
1919         * config/pa/pa64-linux.h: Likewise.
1920         * config/pa/pa64-hpux.h: Likewise.
1921         * config/pa/pa64-regs.h: Likewise.
1922         * config/pa/quadlib.c: Likewise.
1923         * config/pa/rtems.h: Likewise.
1924         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
1925         all uses of the PARAMS macro.
1926         * config/pa/pa.h: Likewise.
1927         * config/pa/som.h: Likewise.
1928
1929         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
1930         Remove all uses of PARAMS macro.
1931         Convert all function definitions to ISO C90 syntax.
1932         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
1933         Remove all uses of PARAMS macro.
1934         * config/iq2000.h: Remove all uses of PARAMS macro.
1935         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
1936
1937 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
1938
1939         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
1940         * config/s390/s390.c (gen_consttable): Remove.
1941         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
1942         (s390_output_pool_entry): New function.
1943         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
1944         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
1945         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
1946         (UNSPECV_POOL_ENTRY): ... this new constant.
1947         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
1948         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
1949         ("*pool_entry"): ... and replace by this new insn.
1950         ("literal_pool_31"): Do not emit anchor label if pool empty.
1951
1952         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
1953         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
1954         (s390_fixup_clobbered_return_reg): Remove.
1955         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
1956         (s390_return_addr_rtx): Always retrieve return address from save area
1957         slot.  Use save_return_addr_p to force slot to be filled.
1958         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
1959
1960 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
1961
1962         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
1963         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
1964         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
1965         around SB-1 errata if TARGET_FIX_SB1 is set.
1966         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
1967         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
1968
1969 2003-08-22  Roger Sayle  <roger@eyesopen.com>
1970
1971         * hashtable.c (ht_expand): Avoid calculating rehash for the common
1972         case that the first probe hits an empty hash table slot.
1973
1974 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
1975
1976         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
1977
1978 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
1979
1980         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
1981         (ptr_extend_plus_imm): ... this.
1982         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
1983         optimization in C++.
1984         (ia64_output_mi_thunk): Support ILP32 mode.
1985
1986 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
1987
1988         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
1989         function.
1990         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
1991
1992 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
1993
1994         * config/i386/i386.c (const_int_1_operand): Simplify an
1995         integer comparison.
1996
1997 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
1998
1999         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
2000         * config/rs6000/ppc64-fp.c: Likewise.
2001
2002 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
2003
2004         * cfgcleanup.c: Fix comment typos.
2005         * emit-rtl.c: Likewise.
2006         * optabs.c: Likewise.
2007         * ra-build.c: Likewise.
2008         * rtlanal.c: Likewise.
2009         * tree.h: Likewise.
2010
2011 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
2012
2013         * c-decl.c: Fix comment formatting.
2014         * cfgrtl.c: Likewise.
2015         * combine.c: Likewise.
2016         * convert.c: Likewise.
2017         * dominance.c: Likewise.
2018         * dwarf2out.c: Likewise.
2019         * dwarfout.c: Likewise.
2020         * expmed.c: Likewise.
2021         * fold-const.c: Likewise.
2022         * gcov.c: Likewise.
2023         * genattrtab.c: Likewise.
2024         * ggc-common.c: Likewise.
2025         * mips-tfile.c: Likewise.
2026         * regmove.c: Likewise.
2027
2028 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
2029
2030         * builtin-attrs.def: Fix comment formatting.
2031         * c-pretty-print.c: Likewise.
2032         * diagnostic.h: Likewise.
2033         * langhooks.h: Likewise.
2034         * recog.c: Likewise.
2035         * simplify-rtx.c: Likewise.
2036         * tree.def: Likewise.
2037
2038 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
2039
2040         * config/m68k/m68k-protos.h: Convert to ISO C90.
2041         * config/m68k/m68k.c: Likewise.
2042
2043 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
2044             Paul Dale  <pauli@snapgear.com>
2045             Peter Barada <peter@baradas.org>
2046
2047         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
2048         ColdFire cores.
2049
2050 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
2051
2052         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
2053         * config.gcc (*-*-openbsd): Don't set tm_file.
2054         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
2055         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
2056         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
2057         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
2058         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
2059         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
2060         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
2061         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
2062         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
2063         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
2064         xscale-*-coff): Use explicit and complete lists of target headers
2065         to include.  Move definitions to tm_defines where appropriate.
2066         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
2067         not-yet-contributed configuration.
2068
2069         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
2070         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
2071         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
2072         * config/i386/nto.h, config/iq2000/iq2000.h,
2073         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
2074         * config/m68k/linux.h, config/m68k/m68k-aout.h
2075         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
2076         * config/m68k/netbsd.h, config/m68k/openbsd.h
2077         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
2078         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
2079         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
2080         Remove includes of other target config headers, and
2081         definitions of macros moved to tm_defines lists.  Add #undefs
2082         where now necessary to prevent redefinition warnings.
2083
2084         * config/h8300/coff.h: New file split out of...
2085         * config/h8300/elf.h: ...here.
2086         * config/m68k/hp320base.h: New file split out of...
2087         * config/m68k/hp320.h: ...here.
2088         * config/rs6000/lynxbase.h: New file split out of...
2089         * config/rs6000/lynx.h: ...here.
2090
2091         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
2092         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
2093
2094         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
2095         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
2096         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
2097         Remove unnecessary #ifndef.
2098         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
2099         [under IN_LIBGCC2] with config/.
2100
2101 2003-08-21  Per Bothner  <pbothner@apple.com>
2102
2103         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
2104         to cpp_push_buffer.
2105         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
2106         by return_at_eof check.  Always call _cpp_pop_buffer at end.
2107
2108 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
2109
2110         PR target/11805
2111         * config/h8300/h8300.md (two anonymous patterns): Remove.
2112
2113 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
2114
2115         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
2116         * config/mips/mips.c (function_arg_pass_by_reference): Never return
2117         true for n32 & n64.
2118
2119 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
2120
2121         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
2122         and similarly in (A | C) == D where C & ~D != 0.
2123
2124 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
2125
2126         PR 8180
2127         * configure.in: When testing with_libs and with_headers, treat
2128         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
2129         * configure: Regenerate.
2130
2131 2003-08-20  Peter Barada <peter@baradas.org>
2132
2133         * longlong.h (umul_ppmm): Add ColdFire support.
2134
2135 2003-08-20  Peter Barada <peter@baradas.org>
2136             Bernardo Innocenti  <bernie@develer.com>
2137
2138         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
2139         * config/m68k/m68k.h: Likewise.
2140         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
2141         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
2142         * config/m68k/linux.h: Likewise.
2143         * config/m68k/m68k.c: Likewise.
2144         * config/m68k/m68k.md: Likewise.
2145         * config/m68k/m68kelf.h: Likewise.
2146         * config/m68k/netbsd-elf.h: Likewise.
2147         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
2148
2149 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
2150
2151         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
2152         * config/m68k/m68k.md: Likewise.
2153
2154 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
2155
2156         PR java/11996
2157         Revert this change:
2158         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
2159         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2160         types with precisions other than those given by native machine
2161         modes.
2162
2163 2003-08-20  Gunther Nikl  <gni@gecko.de>
2164
2165         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
2166         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
2167         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
2168         * config/m68k/m68k.md (anonymous define_insn): Likewise
2169         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
2170         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
2171         code selected by NO_ASM_FMOVECR
2172
2173 2003-08-20  Gunther Nikl  <gni@gecko.de>
2174
2175         * config/m68k/m68k.c (output_move_const_into_data_reg,
2176         output_move_himode): unify MOTOROLA/MIT handling of moveq
2177         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
2178         Likewise
2179
2180 2003-08-20  Gunther Nikl  <gni@gecko.de>
2181
2182         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
2183         label name
2184         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
2185         HOST_WIDE_INT_PRINT_DEC with %wd
2186
2187 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
2188
2189         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
2190         redefine warning.
2191
2192 2003-08-20  Roger Sayle  <roger@eyesopen.com>
2193
2194         PR middle-end/11984
2195         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
2196         operands before calling tree_int_cst_lt when performing associative
2197         transformations.
2198
2199 2003-08-20  Jason Merrill  <jason@redhat.com>
2200
2201         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
2202         (EXPR_CHECK): Don't check for 'r' or 's' if we're
2203         checking IS_EXPR_CODE_CLASS.
2204         * calls.c (calls_function_1): Likewise.
2205         * fold-const.c (fold): Likewise.
2206         * tree.c (iterative_hash_expr): Likewise.
2207         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
2208
2209 2003-08-20  Gunther Nikl  <gni@gecko.de>
2210
2211         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
2212         depending on MOTOROLA_BSR
2213         * config/m68k/m68k.md (anonymous define_insn): Likewise
2214
2215 2003-08-20  Jason Merrill  <jason@redhat.com>
2216
2217         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
2218         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
2219         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
2220         * dojump.c (do_jump): Likewise.
2221         * fold-const.c (operand_equal_p, fold): Likewise.
2222         (tree_expr_nonnegative_p): Likewise.
2223
2224         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
2225         TYPE_USER_ALIGN for FIELD_DECLs.
2226
2227         * attribs.c (decl_attributes): Rebuild the function pointer type after
2228         changing the target type.
2229         * tree.c (get_qualified_type): Also check that the attributes match.
2230
2231 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
2232
2233         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
2234         * objc/config-lang.in (stagestuff): ... to here.
2235
2236 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
2237
2238         PR c++/11946
2239         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
2240         NOP_EXPR) when necessary.
2241         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
2242         types with precisions other than those given by native machine
2243         modes.
2244
2245 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
2246
2247         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
2248         because some macro is defined.
2249
2250         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
2251         options.
2252         * config/i386/darwin.h (ASM_SPEC): New.
2253         (SUBTARGET_EXTRA_SPECS): New.
2254         * config/rs6000/darwin.h (ASM_SPEC): New.
2255         (SUBTARGET_EXTRA_SPECS): New.
2256         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
2257         a cross-compiler between two different processors on Darwin.
2258         * configure: Regenerate.
2259
2260 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
2261
2262         * builtins.c: Fix comment typos.
2263         * c-common.c: Likewise.
2264         * c-decl.c: Likewise.
2265         * c-pretty-print.c: Likewise.
2266         * cfgbuild.c: Likewise.
2267         * cfglayout.c: Likewise.
2268         * cfgloopanal.c: Likewise.
2269         * cgraphunit.c: Likewise.
2270         * cppfiles.c: Likewise.
2271         * dwarfout.c: Likewise.
2272         * expr.c: Likewise.
2273         * fold-const.c: Likewise.
2274         * gcse.c: Likewise.
2275         * ggc-page.c: Likewise.
2276         * haifa-sched.c: Likewise.
2277         * pretty-print.c: Likewise.
2278         * tree.c: Likewise.
2279         * tree.h: Likewise.
2280         * value-prof.c: Likewise.
2281
2282 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
2283
2284         * c-decl.c: Follow spelling conventions.
2285         * cppfiles.c: Likewise.
2286
2287 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
2288
2289         * c-common.c: Fix comment formatting.
2290         * c-common.h: Likewise.
2291         * c-decl.c: Likewise.
2292         * cppinit.c: Likewise.
2293         * cpplib.h: Likewise.
2294         * emit-rtl.c: Likewise.
2295         * input.h: Likewise.
2296         * line-map.h: Likewise.
2297         * opts.c: Likewise.
2298         * opts.h: Likewise.
2299         * simplify-rtx.c: Likewise.
2300
2301 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
2302
2303         * unwind-c.c: Add libgcc-style exception.
2304         * unwind-dw2.c: Likewise.
2305         * unwind-pe.h: Likewise.
2306         * unwind-sjlj.c: Likewise.
2307         * unwind.inc: Likewise.
2308
2309 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
2310
2311         PR c/5582 PR c++/10538
2312         * langhooks-def.h (lhd_decl_uninit): Declare.
2313         (LANG_HOOKS_DECL_UNINIT): New macro.
2314         (LANG_HOOKS_INITIALIZER): Adjust.
2315         * langhooks.h (struct lang_hooks): Add new field
2316         decl_uninit.
2317         * langhooks.c (lhd_decl_uninit): Define.
2318         * c-common.c (c_decl_uninit_1): New function.
2319         (c_decl_uninit): New function.
2320         (warn_init_self): Define.
2321         * c-common.h (c_decl_uninit): Declare.
2322         (warn_init_self): Declare.
2323         * c.opt: Introduce -Winit-self.
2324         * c-opts.c (c_common_handle_options): Set warn_init_self.
2325         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
2326         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
2327         * function.c (uninitialized_vars_warning): Call the language hook.
2328         * doc/invoke.texi: Document -Winit-self.
2329
2330 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
2331
2332         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
2333         to use better predicates and constraints.  Define new
2334         instruction to handle "trap_if" with DI-mode arguments.
2335         (conditional_trap): FAIL if trap code is not 0.
2336
2337 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
2338
2339         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
2340         strstr with $pb to a strcompare with "<pic base>"
2341         (ix86_output_addr_diff_elt): Output the real pic base.
2342
2343 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2344
2345         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
2346         (LANG_HOOKS_INITIALIZER): Correct.
2347         * c-lang.c: Likewise.
2348
2349 2003-08-19  Jan Hubicka  <jh@suse.cz>
2350
2351         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
2352         (cgraph_varpool_mark_needed_node): Likewise.
2353         * cgraph.h (notice_global_symbol): Declare
2354         * varasm.c (notice_global_symbol): Break out from ...
2355         (assemble_start_function): ... here; update for variables.
2356         (assemble_variable): Use notice_global_symbol.
2357
2358 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
2359
2360         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
2361         expect SFmode and DFmode arguments to be passed in FPRs,
2362         regardless of the underlying type.
2363
2364 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
2365
2366         PR target/11924
2367         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
2368         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
2369
2370 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
2371
2372         PR c/11207
2373         * c-typeck.c (set_init_index): Check for negative index.
2374
2375 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
2376
2377         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
2378         call0 ABI.
2379         * config/xtensa/crtn.asm (_init, _fini): Likewise.
2380         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
2381         __umodsi3, __modsi3): Likewise.
2382         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
2383         $(INCLUDES).
2384
2385 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
2386
2387         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
2388
2389 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2390
2391         * config/mips/mips.md: Quote C code in braces.  Remove use of
2392         fake const0_rtx operands.  Remove double backslashes.  Use \;.
2393         Remove workarounds for bogus warnings.
2394
2395 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2396
2397         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
2398         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
2399         rather than TARGET_MIPS4300.
2400         (mulsf3_internal, mulsf3_r4300): Likewise.
2401
2402 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
2403
2404         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
2405
2406 2003-08-17  Roger Sayle  <roger@eyesopen.com>
2407
2408         * simplify-rtx.c (associative_constant_p): New function to test
2409         whether an RTX expression is an immediate constant.
2410         (simplify_associative_operation): New function to perform some
2411         reassociation optimizations of associative binary expressions.
2412         (simplify_binary_operation): Use simplify_associative_operation
2413         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
2414         Floating point expressions are only reassociated when unsafe
2415         math optimizations are permitted.
2416
2417 2003-08-17  Andreas Jaeger  <aj@suse.de>
2418
2419         * config/alpha/alpha.md: Remove usage of PARAMS.
2420
2421         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
2422         * config/i386/i386-interix.h: Likewise.
2423         * config/i386/winnt.c: Likewise.
2424         * config/i386/cygming.h: Likewise.
2425         * config/i386/cygwin2.c: Likewise.
2426         * config/darwin.c: Likewise.
2427         * config/darwin-c.c: Likewise.
2428         * config/darwin-protos.h: Likewise.
2429         * config/darwin.h: Likewise.
2430         * config/s390/s390-protos.h: Likewise.
2431         * config/s390/s390.c: Likewise.
2432         * config/ia64/ia64.c: Likewse
2433         * config/ia64/ia64-protos.h: Likewise.
2434         * config/ia64/ia64-c.c: Likewise.
2435
2436 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2437
2438         * config/sparc/sparc.c: Convert to ISO C.
2439
2440         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
2441         * config/sparc/sparc.c: Likewise.
2442
2443 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
2444
2445         PR c++/11512
2446         * stmt.c (expand_expr_stmt_value): Don't warn about any void
2447         typed expression.
2448
2449 2003-08-16  Jan Hubicka  <jh@suse.cz>
2450
2451         * i386.c (ix86_fntype_regparm): Rename from ...
2452         (ix86_function_regparm): ... this one; add fastcall and local
2453         functions.
2454         (ix86_function_ok_for_sibcall): Update.
2455         (ix86_return_pops_args): Likewise.
2456         (init_cumulative_args): Likewise.
2457         (x86_can_output_mi_thunk): Likewise.
2458         (function_arg): Fix formating.
2459         (x86_this_parameter): Fix fastcall.
2460         (x86_output_mi_thunk): Likewise.
2461
2462         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
2463         body as reachable; mark nested functions as needed too.
2464         (dump_cgraph): Do not output global.calls.
2465         * cgraph.h (cgraph_global_info): Kill.
2466         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
2467         (record_call_1): Speedup.
2468         (cgraph_analyze_function): Break out from ...; compute inlining
2469         parameters.
2470         (cgraph_finalize_compilation_unit): ... here.
2471         (cgraph_mark_inline): Kill computation of calls.
2472         (cgraph_decide_inlining): Do not compute most of initial values.
2473
2474 2003-08-14  Roger Sayle  <roger@eyesopen.com>
2475
2476         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
2477         to negate if either operand is easy to negate, if we don't care
2478         about sign-dependent rounding.
2479         (negate_expr): Make the logic to negate a REAL_CST explicit.
2480         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
2481         that's easy to negate, if we don't honor sign-dependent rounding.
2482         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
2483         negate, and the symmetric A * -B as -A * B if A is easy to negate.
2484         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
2485         -C/D if B and C are cheap to negate.  Add an explicit rule to
2486         optimize X/-1.0 as -X when we don't care about signaling NaNs.
2487
2488 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
2489
2490         * Makefile.in (tm_file): Rename tm_include_list.
2491         (tm_p_file): Rename tm_p_include_list.
2492         (build_xm_file): Rename build_xm_include_list.
2493         (host_xm_file): Rename host_xm_include_list.
2494         (xm_file): Rename xm_include_list.
2495         (xm_file_list): Add to be substituted.
2496         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
2497         Update to match.
2498         (bt-load.o): Add missing dependency on $(TM_H).
2499         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
2500         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
2501         build_xm_file, generate both *_file_list and *_include_list
2502         values from it.  (xm_file_list was formerly not being generated.)
2503         In *_include_list, prefix the names of all headers found in
2504         $(srcdir)/config with config/.  In each loop, consider only
2505         the special case files that can actually appear in that list.
2506         AC_SUBST all *_file_list and all *_include_list variables; do
2507         not AC_SUBST the plain *_file variables.
2508         * configure: Regenerate.
2509
2510 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2511
2512         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
2513
2514 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2515
2516         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
2517         direct calls.
2518         (attr_length_call): Include it here.  Improve length estimate for
2519         local calls.
2520         (output_call): Use targetm.binds_local_p.
2521
2522 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2523
2524         * builtins.c (CASE_MATHFN): New helper macro.
2525         (mathfn_built_in): Simplify and sort.
2526
2527         * protoize.c (substr): Delete, callers changed to `strstr'.
2528
2529 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
2530
2531         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
2532         * config/iq2000/xm-iq2000.h: Delete file.
2533
2534 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
2535
2536         * gengtype.c (walk_type): Process a subobject before processing
2537         the pointer that points to the subobject.
2538
2539 2003-08-13  Per Bothner  <pbothner@apple.com>
2540
2541         * regclass.c (init_reg_modes):  Make non-static.
2542         Rename to init_reg_modes_once per new naming convention.
2543         (init_regs):  Don't call init_reg_modes here.
2544         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
2545         * rtl.h (init_reg_modes_once):  New declaration.
2546         * toplev.c (backend_init):  Call init_regs after init_emit_once.
2547
2548 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
2549
2550         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
2551         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
2552
2553 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
2554
2555         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
2556         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
2557
2558 2003-08-13  Dale Johannesen  <dalej@apple.com>
2559
2560         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
2561         handling of decrement-and-branch farther than 32 bits.
2562
2563 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
2564
2565         * configure.in (make_compare_target): Move test to ...
2566         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
2567         * configure: Regenerate.
2568
2569 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
2570
2571         * config/mips/iris6.h: Convert to C90 prototypes.
2572         * config/mips/irix6-libc-compat.c: Likewise.
2573         * config/mips/mips-protos.h: Likewise.
2574         * config/mips/mips.c: Likewise.
2575
2576 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
2577
2578         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
2579         for selected machines.  Comment heavily.
2580         fixinc/fixincl.x: Rebuild.
2581         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
2582
2583 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
2584
2585         * config/mips/mips.h: Tweak various comments.
2586         * config/mips/mips.c: Likewise.
2587
2588 2003-08-11  James E Wilson  <wilson@tuliptree.org>
2589
2590         PR optimization/11319
2591         PR target/10021
2592         * alias.c (find_base_value, case REG): Return 0 not src if no base
2593         found.
2594
2595 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2596
2597         * gcse.c (gmalloc): Fix last change.
2598
2599 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2600
2601         * simplify-rtx.c (simplify_binary_operation): Replace calls to
2602         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
2603         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
2604         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
2605
2606 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2607
2608         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
2609         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
2610         typecode for an ABS_EXPR.
2611
2612         * doc/c-tree.texi: Document ABS_EXPR.
2613
2614 2003-08-11  Roger Sayle  <roger@eyesopen.com>
2615
2616         * fold-const.c (fold): Optimize any associative floating point
2617         operator with -funsafe-math-optimizations, not just MULT_EXPR.
2618
2619 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
2620
2621         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
2622         information in SHmedia case too.
2623         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
2624         Likewise.
2625         (__set_fpscr): Use an access via GOT for PIC case.
2626
2627 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
2628
2629         * configure.in (intermodule): Make switch test more portable.
2630         * configure: Regenerate.
2631
2632 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
2633
2634         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
2635         (restrap): Likewise.
2636
2637 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2638
2639         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
2640         (grealloc): Size argument is a size_t.
2641         (gcalloc): New function.  Use throughout in lieu of
2642         gmalloc/memset.
2643
2644         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
2645         xmalloc/memset.
2646         * config/ia64/ia64.c (ia64_reorg): Likewise.
2647         * conflict.c (conflict_graph_new): Likewise.
2648         * fixinc/fixincl.c (run_compiles): Likewise.
2649         * genattrtab.c (optimize_attrs): Likewise.
2650         * genrecog.c (new_decision): Likewise.
2651         * haifa-sched.c (schedule_block): Likewise.
2652         * hashtable.c (ht_create): Likewise.
2653
2654 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
2655
2656         * config/xtensa/lib2funcs.S: Fix whitespace.
2657         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
2658         syntax where appropriate.  Remove unnecessary backslash escapes.
2659         Reformat comments and fix some code formatting.
2660         (extendqisi2): Rearrange conditional.
2661         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
2662         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
2663         of fatal_insn.
2664
2665 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
2666
2667         * config/mips/mips.c: Various formatting fixes.
2668         (override_options): Resync -mtune handling with gas.
2669         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
2670         * config/mips/mips.h: More formatting fixes.
2671         (mips_abi): Move declaration.
2672         * config/mips/mips.md (exception_receiver): Add mode to
2673         unspec_volatile.
2674
2675 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
2676
2677         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
2678         evsplatfi here.
2679         (bdesc_1arg): Remove evsplati and evsplatfi.
2680
2681 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
2682
2683         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
2684         into account.
2685
2686 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2687
2688         * builtins.c (expand_builtin_strcat): Optimize constant strings.
2689
2690 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2691
2692         * pretty-print.c (pp_base_indent): Rename from pp_indent.
2693         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
2694         (struct c_pretty_print_info): Add more fields.
2695         (pp_c_left_paren): Move to c-pretty-print.c.
2696         (pp_c_right_paren): Likewise.
2697         (pp_c_left_brace): Likewise.
2698         (pp_c_right_brace): Likewise.
2699         (pp_c_left_bracket): Likewise.
2700         (pp_c_right_bracket): Likewise.
2701         (pp_c_declarator): Declare.
2702         (pp_c_direct_declarator): Likewise.
2703         (pp_c_specifier_qualifier_list): Likewise.
2704         (pp_c_type_id): Likewise.
2705         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
2706         (pp_c_type_qualifier_list): New.
2707         (pp_c_pointer): Likewise.
2708         (pp_c_parameter_type_list): Likewise.
2709         (pp_c_function_definition): Likewise.
2710         (pp_c_id_expression): Likewise.
2711         (pp_c_simple_type_specifier): Tidy.
2712         (pp_c_unary_expression): Likewise.
2713         (pp_c_expression): Likewise.
2714         (pp_c_pretty_printer_init): Likewise.
2715         (pp_c_specifier_qualifier_list): Rework..
2716         (pp_c_abstract_declarator): Likewise.
2717         (pp_c_postfix_expression): Likewise.
2718         (pp_c_primary_expression): Likewise.
2719         (pp_c_cast_expression): Likewise.
2720         (pp_c_direct_abstract_declarator): Likewise.
2721         (pp_c_storage_class_specifier): Likewise.
2722         (pp_c_function_specifier): Likewise.
2723         (pp_c_declaration_specifiers): Likewise.
2724         (pp_c_direct_declarator): Likewise.
2725         (pp_c_declarator): Likewise.
2726         (pp_c_declaration): Likewise.
2727         (pp_c_statement): Likewise.
2728         (pp_c_integer_constant): Rename from pp_c_integer_literal.
2729         (pp_c_character_constant): Rename from pp_c_character_literal.
2730         (pp_c_bool_constant): Rename from pp_c_bool_literal.
2731         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
2732         (pp_c_floating_constant): Rename from pp_c_real_literal.
2733         (pp_c_constant): Rename from pp_c_literal.
2734         * c-lang.c: Include diagnostic.h and c-pretty-print.h
2735         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
2736         (c_initialize_diagnostics): New.
2737         * Makefile.in (c-lang.o): Update dependency.
2738
2739 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
2740
2741         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
2742
2743 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
2744
2745         * config/mips/mips.c (mips_no_mips16_string): Remove.
2746         (override_options): Don't handle -mips16 as part of -mipsN.
2747         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
2748         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
2749         (TARGET_OPTIONS): Remove -mno-mips16.
2750
2751 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
2752
2753         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
2754         (coprocessor2_operand): Likewise.
2755         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
2756         (lookup_name): Remove declaration.
2757         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
2758         (mips16, mips_abicalls): Remove.
2759         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
2760         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
2761         (coprocessor_operand, coprocessor2_operand): Remove.
2762         (override_options): Don't set mips16 or mips_abicalls.
2763         (print_operand): Don't expect SIGN_EXTEND operands.
2764         (mips_secondary_reload_class): Likewise.
2765         (mips_output_conditional_branch): Remove disabled long-branch code.
2766         * config/mips/mips.h (call_used_regs): Remove declaration.
2767         (may_call_alloca): Likewise.
2768         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
2769         (mips_abicalls, mips16): Remove declarations.
2770         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
2771         (CC1_SPEC): Remove outdated comment.
2772         (MIPS_VERSION, MACHINE_TYPE): Remove.
2773         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
2774         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
2775         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
2776         (PUSH_ROUNDING): Likewise.
2777         (ASSEMBLER_SCRATCH_REGNUM): Remove.
2778         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
2779         and mips16 with TARGET_MIPS16.
2780
2781 2003-08-09  Per Bothner  <pbothner@apple.com>
2782
2783         * cppinit.c (cpp_read_main_file):  Split out source-independent
2784         initialization to separate function ...
2785         (cpp_post_options):  New function.
2786         * cppfiles.c (cpp_stack_file):  Rename public name to ...
2787         (_cpp_stack_file):  New internal function name.
2788         * cpplib.h:  Update accordingly.
2789         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
2790         (cpp_read_main_file):  Don't initialize line here.
2791         * c-opts.c (c_common_post_options):  Call cpp_post_options.
2792         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
2793         * fix-header.c (read_scan_file):  Call cpp_post_options.
2794
2795 2003-08-09  Per Bothner  <per@bothner.com>
2796
2797         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
2798
2799 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2800
2801         * pa.c (pa_asm_output_mi_thunk): Fix typo.
2802
2803 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
2804
2805         PR preprocessor/11839
2806         * cppfiles.c (open_file): Handle ENOTDIR.
2807
2808 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
2809
2810         PR target/11699
2811         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
2812
2813 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2814
2815         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
2816         source/destination is not a register operand.
2817
2818 2003-08-08  Richard Henderson  <rth@redhat.com>
2819
2820         PR target/11535
2821         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
2822         RETURN_ADDRESS_POINTER_REGNUM.
2823         (ia64_expand_prologue): Don't frob it.
2824         (ia64_output_function_epilogue): Likewise.
2825         (ia64_return_addr_rtx): New.
2826         (ia64_split_return_addr_rtx): New.
2827         * config/ia64/ia64-protos.h: Update.
2828         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
2829         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
2830         (GENERAL_REGNO_P): Don't check it.
2831         (AR_*_REGNUM): Renumber.
2832         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
2833         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
2834         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
2835         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
2836         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
2837         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
2838         (movdi_ret_addr): New.
2839
2840 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
2841
2842         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
2843
2844 2003-08-08  Roger Sayle  <roger@eyesopen.com>
2845
2846         * tree.h (get_identifier) Define a macro form of get_identifier
2847         that calls get_identifier_with_length when the string is constant.
2848         (get_identifier_with_length): Change type of second argument to
2849         size_t in prototype.
2850         * stringpool.c (get_identifier): Undefine the macro before giving
2851         the function definition.
2852         (get_identifier_with_length): Change  type of second argument to
2853         size_t in function definition.
2854         * hashtable.c (calc_hash): Change type of second argument to size_t.
2855         (ht_lookup): Change type of third argument to size_t.  Reorganize
2856         to speed-up the cases where the hash table slot is empty, or the
2857         first probe matches (i.e. there isn't a collision).
2858         * hashtable.h (ht_lookup): Adjust function prototype.
2859
2860 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
2861
2862         PR target/9697
2863         PR target/11777
2864         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
2865
2866 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
2867
2868         * common.opt: Add debug switches.
2869         * flags.h (use_gnu_debug_info_extensions): Boolify.
2870         * opts.c (write_symbols, debug_info_level,
2871         use_gnu_debug_info_extensions): Move from toplev.c.
2872         (set_debug_level): New.
2873         (common_handle_options): Handle debug switches.
2874         (print_help): Display target options directly.
2875         * toplev.c (debug_hooks): Don't initialize.
2876         (write_symbols, debug_info_level,
2877         use_gnu_debug_info_extensions): Move to opts.c.
2878         (debug_args, display_help, decode_g_option): Remove.
2879         (process_options): Set no debug if level zero here,
2880         and no-debug-hooks.  Error here if impossible debug format selected.
2881         * toplev.h (display_help, decode_g_option): Remove.
2882
2883 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
2884
2885         * tree.c (get_file_function_name_long): Fix size of alloca() area.
2886
2887 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
2888
2889         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
2890         and gcc_cv_prog_cmp_skip.
2891         * configure: Regenerate.
2892
2893 2003-08-08  Stan Cox  <scox@redhat.com>
2894
2895         * config/iq2000: New port.
2896         * config.gcc (iq2000-*-elf): Added.
2897         * doc/install.texi (Specific):  Add iq2000 description.
2898
2899 2003-08-08  Andreas Schwab  <schwab@suse.de>
2900
2901         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
2902         and insert missing empty argument.
2903         * configure: Regenerate.
2904
2905 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2906
2907         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
2908         (attr_length_millicode_call): Likewise.
2909         (attr_length_call): Likewise.  Revise some maximum insn lengths.
2910         (attr_length_indirect_call): Likewise.
2911         (output_call): Fix thinko that added extra nop.
2912         * pa.h (IN_NAMED_SECTION_P): Define.
2913
2914         PR c++/11712
2915         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
2916         __STDC_EXT__ when using C++ dialect.
2917
2918 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
2919
2920         * sh.c (calc_live_regs): If the return address pointer is live,
2921         force pr live.
2922         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
2923         for saves / restores.
2924         (sh_expand_epilogue): If sh_media_register_for_return returns a
2925         register number, flag the instructions that restores PR_MEDIA_REG
2926         as possibly dead.
2927         Remove dead update of offset.
2928         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
2929         we can use the result of get_hard_reg_initial_val.
2930         * sh.md (UNSPEC_RA): New constant.
2931         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
2932         (load_ra).  Handle UNSPEC_RA.
2933         (sibcall_media): Use PR_MEDIA_REG.
2934
2935         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
2936         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
2937         needs saving on SHmedia.
2938
2939 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
2940
2941         * config/s390/s390.md: Replace all occurrences of \\t with \t.
2942
2943 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
2944
2945         * local-alloc.c (combine_regs): Fix comment typo.
2946
2947 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
2948
2949         * c-decl.c (builtin_decls): Replace with first_builtin_decl
2950         and last_builtin_decl.
2951         (c_init_decl_processing): Initialize both.
2952         (c_reset_state): Iterate from first_builtin_decl to
2953         last_builtin_decl inclusive to reintroduce builtins.
2954
2955 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
2956
2957         * doc/extend.texi (Function Attributes): Document the IA-64 version
2958         of the "model" attribute.
2959
2960         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
2961         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
2962         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
2963
2964         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
2965         (ia64_encode_section_info): Likewise.
2966         (ia64_attribute_table): Add "model" attribute.
2967         (TARGET_ENCODE_SECTION_INFO): Define.
2968         (small_addr_symbolic_operand): New function.
2969         (got_symbolic_operand): Return 0 for a symbolref to an object
2970         in the small address area.
2971         (enum ia64_addr_area): New type.
2972         (small_ident1): New variable.
2973         (small_ident2): Likewise.
2974         (init_idents): New function.
2975         (ia64_get_addr_area): Likewise.
2976         (ia64_encode_addr_area): Likewise.
2977         (ia64_encode_section_info): Likewise.
2978         (ia64_expand_load_address): For symbolic references to objects in
2979         the small-address-area, load the address via gen_rtx_SET() (which,
2980         eventually, will expand into "addl").
2981
2982 2003-08-06  Per Bothner  <pbothner@apple.com>
2983
2984         * line-map.h (fileline):  New typedef.
2985         (struct line_map, linemap_add, linemap_lookup):  Use it.
2986         * input.h (struct location_s):  Comment notes that long-term we want
2987         to replace it by fileline.
2988
2989 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
2990
2991         Fix SHcompact exception handling:
2992         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
2993         by the prologue, return a MEM with return_address_pointer_rtx
2994         as address.
2995         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
2996         (RETURN_ADDR_OFFSET): Don't define.
2997         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
2998         registers that are visible in compact mode.  Show that SHmedia
2999         registers still exist in compact mode, even if there are not
3000         readily accessible.
3001         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
3002         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
3003         and DW_EH_PE_pcrel for pic data.
3004         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
3005         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
3006         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
3007         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
3008         * sh.md (movsi_media-1): New splitter.
3009
3010 2003-08-06  Graeme Peterson <gp@qnx.com>
3011
3012         * config/i386/nto.h: New.
3013         * config/i386/t-nto: New.
3014         * config.gcc (i[34567]86-*-nto-qnx*): New.
3015
3016 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
3017
3018         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
3019
3020 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
3021
3022         * calls.c (load_register_parameters): Arrange for call_fusage to
3023         report the whole register as used when shifting to the msb.
3024
3025 2003-08-05  Roger Sayle  <roger@eyesopen.com>
3026
3027         * builtins.c (expand_builtin): When not optimizing, call the library
3028         function for all builtins that have library functions (except alloca).
3029
3030 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
3031
3032         * c.opt: Introduce -fworking-directory.
3033         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
3034         * c-common.h (flag_working_directory): Declare.
3035         * c-common.c (flag_working_directory): Define.
3036         * c-opts.c (c_common_handle_options): Set it.
3037         (sanitize_cpp_opts): Set...
3038         * cpplib.h (struct cpp_options): ... working_directory option.
3039         (struct cpp_callbacks): Add dir_change.
3040         * cppinit.c (read_original_filename): Call...
3041         (read_original_directory): New.  Look for # 1 "directory//"
3042         and process it.
3043         (cpp_read_main_file): Call dir_change callback if working_directory
3044         option is set.
3045         * gcc.c (cpp_unique_options): Pass -g*.
3046         * c-lex.c (cb_dir_change): New.
3047         (init_c_lex): Set dir_change callback.
3048         * toplev.c (src_pwd): New static variable.
3049         (set_src_pwd, get_src_pwd): New functions.
3050         * toplev.h (get_src_pwd, set_src_pwd): Declare.
3051         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
3052         * dwarf2out.c (gen_compile_unit_die): Likewise.
3053         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
3054
3055 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3056
3057         * pretty-print.h (pp_set_line_maximum_length): Make macro.
3058         (pp_set_prefix): Likewise.
3059         (pp_destroy_prefix): Likewise.
3060         (pp_remaining_character_count_for_line): Likewise.
3061         (pp_clear_output_area): Likewise.
3062         (pp_formatted_text): Likewise.
3063         (pp_last_position_in_text): Likewise.
3064         (pp_emit_prefix): Likewise.
3065         (pp_append_text): Likewise.
3066         (pp_flush): Likewise.
3067         (pp_format_text): Likewise.
3068         (pp_format_verbatim): Likewise.
3069         (pp_tree_identifier): Tidy.
3070         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
3071         (pp_base_format_verbatim): Rename from pp_format_verbatim.
3072         (pp_base_flush): Rename from pp_flush.
3073         (pp_base_set_line_maximum_length): Rename from
3074         pp_set_line_maximum_length.
3075         (pp_base_clear_output_area): Rename from pp_clear_output_area.
3076         (pp_base_set_prefix): Rename from pp_set_prefix.
3077         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
3078         (pp_base_emit_prefix): Rename from pp_emit_prefix.
3079         (pp_base_append_text): Rename from pp_append_text.
3080         (pp_base_formatted_text): Rename from pp_formatted_text.
3081         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
3082         (pp_base_remaining_character_count_for_line): Rename from
3083         pp_remaining_character_count_for_line.
3084         * diagnostic.h (diagnostic_format_decoder): Tidy.
3085         (diagnostic_flush_buffer): Likewise.
3086         * c-pretty-print.h: (pp_c_string_literal): Declare.
3087         (pp_c_real_literal): Likewise.
3088         (pp_c_integer_literal): Likewise.
3089         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
3090         pp_identifier.
3091         (pp_c_character_literal): Tidy.
3092         (pp_c_string_literal): Make public.
3093         (pp_c_bool_literal): Likewise.
3094         (pp_c_integer_literal): Likewise.
3095         (pp_c_real_literal): Likewise.
3096
3097         * Makefile.in (C_PRETTY_PRINT_H): New variable.
3098         (c-pretty-print.o): Update dependence.
3099
3100 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
3101
3102         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
3103         ".set nomacro" state.
3104         (fix_truncsfsi2_macro): Likewise.
3105
3106 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
3107
3108         * tree.h (DID_INLINE_FUNC): Remove macro.
3109         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
3110         add tree check for FUNCTION_DECL.
3111         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
3112         (struct tree_decl): Rename inlined_function_flag to
3113         declared_inline_flag.
3114         * c-common.h (c_lang_decl): Remove.
3115         (DECL_ESTIMATED_INSNS): Remove.
3116         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
3117         (DECL_DECLARED_INLINE_P): Remove.
3118         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
3119         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
3120         (finish_function): Make uninlinable a bool.  Fixup call to
3121         tree_inlinable_function_p() and fix some code style issues.
3122         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
3123         * cgraph.c (dump_cgraph): Likewise.
3124         * cgraphunit.c (cgraph_decide_inlining): Likewise
3125         (cgraph_finalize_compilation_unit): Likewise.
3126         Also update call to tree_inlinable_function_p().
3127         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
3128         look at DECL_DECLARED_INLINE and reverse logic.
3129         * print-tree.c (print_node): Likewise.
3130         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
3131         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
3132         prototype.
3133         * tree-inline.c (inlinable_function_p): Split up in this function to
3134         check for basic inlining inhibiting conditions, and new
3135         limits_allow_inlining() function.  Warn if inlining is impossible
3136         because the inline candidate calls alloca or uses sjlj exceptions.
3137         (limits_allow_inlining): this new function to check if the inlining
3138         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
3139         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
3140         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
3141         Update prototypes.
3142         (tree_inlinable_function_p): Make a bool.  Update call to
3143         inlinable_function_p
3144         (expand_call_inline): Use limits_allow_inlining() when not in
3145         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
3146         instead see if the function was declared `inline'.
3147
3148 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
3149
3150         * gcse.c (try_replace_reg): Fix updating of note.
3151
3152 2003-08-04  Roger Sayle  <roger@eyesopen.com>
3153
3154         PR middle-end/11771
3155         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
3156         logic in negate_expr, i.e. we don't invert (A-B) for floating
3157         point types unless flag_unsafe_math_optimizations.
3158
3159 2003-08-04  Roger Sayle  <roger@eyesopen.com>
3160
3161         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
3162         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
3163         for floating point expressions with -ffast-math.
3164         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
3165         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
3166
3167 2003-08-04  Roger Sayle  <roger@eyesopen.com>
3168
3169         * c-common.c (flag_noniso_default_format_attributes): Delete.
3170         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
3171         (c_attrs_initialized): Delete.
3172         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
3173         always call c_init_attributes.
3174         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
3175         set c_attrs_initialized when done.
3176         (c_common_insert_default_attributes): Delete.
3177         * c-common.h (flag_noniso_default_format_attributes): Delete.
3178         (c_coomon_insert_default_attributes): Delete prototype.
3179         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
3180         flag_noniso_default_format_attributes.
3181
3182         * c-decl.c (c_insert_default_attributes): Delete.
3183         * c-tree.h (c_insert_default_attributes): Delete prototype.
3184
3185         * attribs.c (decl_attributes): Don't call insert_default_attributes
3186         langhook.  Update function description comment.
3187         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
3188         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
3189         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
3190         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
3191
3192         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
3193         define.
3194
3195 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
3196
3197         * config/mips/mips.c (override_options): Disable -G on targets that
3198         have no .section support.
3199         (mips_select_section): Use default_select_section for such targets.
3200
3201 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
3202
3203         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
3204         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
3205         * fixinc/fixincl.x: Rebuild.
3206         * fixinc/tests/base/regexp.h: New test.
3207
3208 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
3209
3210         * c-ppoutput.c (cb_line_change): Don't skip line changing while
3211         parsing macro arguments in the top-level context.
3212
3213 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
3214
3215         * config.in: Remove HAVE_LSTAT.
3216         * configure, configure.in: Don't test for lstat.
3217
3218 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3219
3220         * opts.c (decode_options): Do language-specific initialization for
3221         the global diagnostic context.
3222         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
3223         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
3224         (LANG_HOOKS_INITIALIZER): Adjust.
3225         * langhooks.h (struct lang_hooks): Add new field
3226         initialize_diagnostics.
3227         * langhooks.c (lhd_initialize_diagnostics): Define.
3228
3229 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3230
3231         * pretty-print.h:   Adjust macro definitions.
3232         * pretty-print.c (pp_newline): Rename to pp_base_newline.
3233         (pp_character): Rename to pp_base_character.
3234         (pp_string): Rename to pp_base_string.
3235         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
3236         (pp_newline):  Likewise.  Adjust.
3237         (pp_c_char): Adjust.
3238
3239 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3240
3241         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
3242         BUILT_IN_LLABS): Move to miscellaneous section.
3243
3244 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
3245
3246         PR preprocessor/11534
3247         * cppexp.c (parse_defined): Warn only if -pedantic.
3248
3249 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
3250
3251         * cppfiles.c (stack_file): Use file path.
3252
3253 2003-08-02  Roger Sayle  <roger@eyesopen.com>
3254
3255         * builtin-types.def (BT_SSIZE): New primitive type.
3256         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
3257         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
3258         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
3259         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
3260         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
3261         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
3262         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
3263         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
3264         few functions that define default attributes using it.
3265         * c-common.c (c_common_insert_default_attributes): Do nothing.
3266
3267         * doc/extend.texi: Document these "new" builtins.
3268
3269 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
3270
3271         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
3272         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
3273         when -mieee-fp set and -shared not set.
3274         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
3275
3276 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
3277
3278         * cppfiles.c (struct _cpp_file): Rename once_only_next to
3279         next_file.  Remove import and pragma_once, add once_only.
3280         (find_file): Add new file structures to the all_files list.
3281         (should_stack_file): Mark #import-ed files once-only, and
3282         don't stack them if the file has already been stacked.
3283         (_cp_mark_file_once_only): Simplify.
3284         * cpphash.h (struct cpp_reader): Rename once_only_files
3285         to all_files.  Rename saw_pragma_once to seen_once_only.
3286         (_cpp_mark_file_once_only): Update prototype.
3287         * cpplib.c (do_pragma_once): Update.
3288
3289 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
3290
3291         * cppfiles.c (ENOTDIR): Remove.
3292         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
3293         other than ENOENT here.
3294         (once_only_file_p): Rename should_stack_file.
3295         (find_file, open_file_failed, read_file_guts): Report errors
3296         with full path name.
3297         (read_file): Move pch handling to should_stack_file.
3298         (should_stack_file): Handle PCH and once-only issues, and
3299         reading the file.
3300         (stack_file): Don't do file reads.
3301
3302 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3303
3304         * libgcov.c (gcov_exit): Cleanup and fix.
3305         * profile.c (compute_value_histograms): Don't try to read profiles
3306         that are not present.
3307
3308 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3309
3310         * builtins.def: Categorize.
3311
3312         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
3313         Mind fp rounding.
3314         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
3315
3316 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
3317
3318         * config.gcc: Enable posix threads by default on darwin.
3319
3320 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
3321
3322         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
3323         even if nehedges1 is 0.
3324
3325 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
3326
3327         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
3328         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
3329         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
3330         and defintions.
3331
3332         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
3333         * fixinc/fixincl.x: Regenerate.
3334         * fixinc/tests/base/math.h: Regenerate to match test_text change.
3335
3336 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3337
3338         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
3339
3340 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3341
3342         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
3343         for accesses to exc_ptr.
3344
3345 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
3346
3347         * doc/sourcebuild.texi (Front End Directory): Don't make references
3348         to libsubdir, it's not part of the interface to frontends.
3349         * doc/install.texi (Configuration): Help users read faster by saying
3350         that GCC's configure options are the standard autoconf ones.
3351         Mention --libdir.  Update the default rules for finding the
3352         assembler.  Don't use libsubdir since we haven't said what it means.
3353         (Specific): In the Solaris 7 notes, update the place to put the
3354         assembler.
3355         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
3356         * doc/cpp.texi (Search Path): Actually, the search path
3357         depends on libdir, which can relocate with cpp.
3358         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
3359         now a private interface between the Makefile and the driver.
3360
3361 2003-08-01  Richard Henderson  <rth@redhat.com>
3362
3363         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
3364
3365         * varasm.c (lookup_constant_def): New function.
3366         * rtl.h (lookup_constant_def): Declare it.
3367         * dwarf2out.c (loc_descriptor_from_tree): Use it.
3368         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
3369
3370 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
3371
3372         * c-decl.c (gettags, pushdecl_function_level): Delete.
3373         (last_function_parm_vars): Rename last_function_parm_others.
3374         (current_function_parm_vars): Rename current_function_parm_others.
3375         (struct c_scope): Rewrite comment explaining this data structure.
3376         Add names_last, blocks_last, parms_last fields.  Rename
3377         incomplete_list to incomplete.
3378         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
3379         (poplevel): Ignore second argument.  No need to nreverse
3380         anything.  Restructure such that each list is processed
3381         exactly once.  Use 'const location_t *locus' syntactic sugar
3382         variable where useful.  Issue unused variable warnings
3383         ourselves, do not rely on function.c.
3384         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
3385         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
3386         (implicitly_declare): decl cannot be error_mark_node.
3387         (undeclared_variable): Manipulate scope structure directly.
3388         (c_make_fname_decl): Likewise.
3389         (getdecls, c_init_decl_processing): Fix comment.
3390         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
3391         for 'last' variable.
3392         (grokparms): No need to nreverse parms list.
3393         (store_parm_decls_newstyle): Set up the parms_last and
3394         names_last fields of the new scope too.
3395         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
3396         on parms to begin with; check this under ENABLE_CHECKING.  Set
3397         up parms_last.
3398         (check_for_loop_decls): Refer directly to current_scope->tags.
3399         Use consistent quote style in diagnostics.
3400         (c_write_global_declarations): The names list is not backward.
3401
3402         * c-common.h: Don't prototype gettags.
3403         * c-parse.in: Call poplevel with second argument 0 always.
3404
3405 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3406
3407         * builtins.def: Resort builtins.
3408
3409 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3410
3411         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
3412         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
3413         Prepend "__builtin_" onto NAME with string concatenation.  Remove
3414         explicit "__builtin_" from each macro call.
3415
3416         Reformat entire file.
3417
3418 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3419
3420         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
3421         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
3422
3423 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
3424
3425         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
3426         CCL1, or CCL2 modes with floating point operations.
3427
3428         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
3429         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
3430         "*subdf3_cconly"): New insns.
3431         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
3432
3433 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
3434
3435         * Makefile.in: Refine dependencies.
3436         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
3437         * c.opt: Update help for -Wimport.
3438         * cppfiles.c: Include hashtab.h.  Update comments.
3439         (stack_file): Read the file before updating dependencies.
3440         (once_only_file_p): Be smarter about marking once-only files.
3441         (_cpp_mark_file_once_only): Correct the check for existence on
3442         the list.
3443         (open_file_failed): Use name not path, which is NULL.
3444         * cpphash.h: Don't include hashtab.h.
3445         (struct _cpp_file): Remove.
3446         (struct cpp_reader): Update.
3447         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
3448         * cpplib.h (struct cpp_options): Remove warn_import.
3449         (cpp_simplify_path): Remove.
3450
3451 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
3452
3453         PR c++/11295
3454         * doc/extend.texi (Statement Expressions): Document C++ semantics.
3455
3456 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
3457
3458         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
3459
3460 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3461
3462         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
3463         throughout.
3464         * builtins.def: Likewise.
3465
3466 2003-07-31  Jason Merrill  <jason@redhat.com>
3467
3468         * Makefile.in (bubblestrap): Don't require a previous full
3469         bootstrap.
3470
3471         * expr.c (mostly_zeros_p): No longer static.
3472         * tree.h: Declare it.
3473         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
3474         unless we need to do substitutions.
3475
3476 2003-07-31  Roger Sayle  <roger@eyesopen.com>
3477
3478         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
3479         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
3480         as pow(x,2.0) when the latter will be expanded back into x*x.
3481         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
3482         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
3483         pow can never set errno when used with an integer exponent.
3484         Always use expand_powi when exponent is -1, 0, 1 or 2.
3485         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
3486         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
3487         the pow forms of these expressions.
3488
3489 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
3490
3491         * Makefile.in (libexecdir): New.
3492         (libsubdir): Use gcc instead of gcc-lib.
3493         (libexecsubdir): New.
3494         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
3495         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
3496         gcc-lib.
3497         (installdirs): Make libexecsubdir.
3498         (install-common): Put executables in libexecsubdir.
3499         (itoolsdir): Use libexecsubdir.
3500         (itoolsdatadir): New.
3501         (install-mkheaders): Separate data files and executables.
3502         (install-collect2): Put executables in libexecsubdir.
3503         (uninstall): Remove libexecsubdir.
3504         * mkheaders.in: Update for new arrangement of files.
3505         (libexecdir): New.
3506         (libexecsubdir): New.
3507         (itoolsdir): Use libexecsubdir.
3508         (itoolsdatadir): New.
3509         * gcc.c (gcc_libexec_prefix): New.
3510         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
3511         (standard_exec_prefix_1): Use libexec.
3512         (standard_exec_prefix_2): New.
3513         (standard_libexec_prefix): New.
3514         (process_command): Update for new arrangement of files.  Compute
3515         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
3516
3517 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
3518
3519         * inclhack.def (stdio_va_list): Avoid bogus replacement which
3520         triggers on Interix.
3521         * fixincl.x: Regenerate.
3522
3523 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
3524
3525         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
3526         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
3527
3528 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3529
3530         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
3531
3532 2003-07-31  Per Bothner  <pbothner@apple.com>
3533
3534         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
3535         (add_input_filename):  New function.
3536         (handle_options):  Call add_input_filename directly instead of
3537         with a lang hook.
3538         * opts.h (in_fnames, num_in_fnames):  Moved here.
3539         (add_input_filename):  Declare.
3540         * c-decl.c:  Need to #include opts.h.
3541         * Makefile.in (c-decl.o):  Also depends on opts.h.
3542         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
3543         (c_common_handle_filename):  Replaced by add_input_filename.
3544         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
3545         Remove.
3546         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
3547         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
3548         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
3549         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
3550
3551 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3552
3553         * combine.c (try_combine): Set JUMP_LABEL for newly created
3554         unconditional jump.
3555
3556 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3557
3558         * fold-const.c (fold): Fold some comparisons of bit operations.
3559
3560 Thu Jul 31 19:49:53 CEST 2003  Jan Hubicka  <jh@suse.cz>
3561
3562         * cgraph.c (create_edge): Fix typo.
3563         * i386.c (pic_symbolic_operand): Reorder tests.
3564
3565 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
3566
3567         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
3568         more fully.
3569         (Gcov Data Files): Update.
3570
3571 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3572
3573         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
3574         default.
3575
3576         * gthr-posix.c: New file.
3577         * gthr-posix.h: Define _REENTRANT if missing.
3578         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
3579
3580         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
3581         by gthr-posix.o.
3582         * config/alpha/t-osf-pthread: New file.
3583
3584         * fixinc/inclhack.def (alpha_pthread): New fix.
3585         * fixinc/fixincl.x: Regenerate.
3586         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
3587
3588         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
3589         warning.
3590         Fixes PR bootstrap/9330.
3591
3592 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3593
3594         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
3595         without GNU ld.
3596         Update comment.
3597         * configure: Regenerate.
3598
3599 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
3600
3601         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
3602         setter.
3603
3604 2003-07-30  Roger Sayle  <roger@eyesopen.com>
3605
3606         * builtins.def: Alphabetize.
3607
3608 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
3609
3610         * doc/c-tree.texi: Normalize spellings of "lowercase" and
3611         "uppercase".
3612         * doc/cpp.texi: Likewise.
3613         * doc/md.texi: Likewise.
3614         * doc/rtl.texi: Likewise.
3615         * doc/tm.texi: Likewise.
3616
3617 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
3618
3619         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
3620         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
3621         of cc1obj.
3622
3623 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
3624
3625         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
3626         macros before defining them.
3627
3628 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
3629
3630         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
3631         UNSPECV_BLOCKAGE): New constants.
3632         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
3633         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
3634         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
3635         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
3636
3637         (all insns and expanders): Write output control string as brace block
3638         where appropriate.  Remove \-escapes for doublequote characters.
3639
3640 Thu Jul 31 01:04:19 CEST 2003  Jan Hubicka  <jh@suse.cz>
3641
3642         * gcse.c (insert_store): Fix typo in previous patch.
3643
3644 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
3645
3646         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
3647
3648 2003-07-30  Andi Kleen  <ak@muc.de>
3649
3650         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
3651
3652 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3653
3654         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
3655         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
3656         GCOV_N_VALUE_COUNTERS): New.
3657         * profile.c (compute_value_histograms): New static function.
3658         (branch_prob): Read back the value histograms.
3659         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
3660         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
3661         * value-prof.c: Add comment on reading the profile.
3662         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
3663         * doc/invoke.texi (-fprofile-values): Document behavior with
3664         -fbranch-probabilities.
3665
3666 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
3667
3668         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
3669
3670 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
3671
3672         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
3673         symbolically.
3674
3675 Wed Jul 30 19:12:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
3676
3677         * gcse.c (insert_store): Ignore fake edges.
3678
3679         * c-common.c (flag_vtable_gc): Kill.
3680         * c-common.g (flag_vtable_gc): Kill.
3681         * c-opts (c_common_handle_option): Kill.
3682         * c.opt (fvtable-gc): Kill.
3683         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
3684         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3685         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
3686
3687         * invoke.texi (-ftable-gc): Kill documentation.
3688
3689         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
3690         just because function body is missing.
3691
3692         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
3693
3694 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
3695
3696         * unwind-sjlj.c: Fix typo in file description.
3697
3698 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
3699
3700         * calls.c (load_register_parameters): When shifting reg sized values
3701         to the msb, move the value to a reg first.
3702
3703 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
3704
3705         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
3706         * line-map.h (linemap_add): Update comments.
3707         * line-map.c (linemap_add): Update comments, interpret zero-length
3708         filename as "<stdin>".
3709
3710 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
3711
3712         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
3713
3714 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
3715
3716         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
3717         New static variables.
3718         (struct c_scope): Add parms and warned_forward_parm_decls
3719         fields; remove parm_order.
3720         (storedecls, storetags): Delete.
3721         (poplevel): Also clear bindings on the parms chain.
3722         (pushdecl): Handle forward declarations of parameters, and
3723         chain PARM_DECLs on the parms list, not the names list.
3724         (lookup_name_current_level): Check for PARM_DECLs on the parms
3725         list too.
3726         (push_parm_decl): Don't update parm_order.
3727         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
3728         warning, only once per parameter list, and set TREE_ASM_WRITTEN
3729         on the decls here.  Then move the forward decls to the names list.
3730         (grokparms): Set last_function_parm_vars.
3731         (get_parm_info): Don't use gettags or getdecls.  No need to
3732         extract non-parms from the parms list, or reorganize the parms
3733         list.  Feed nonparms back in the TREE_TYPE of the list node
3734         returned.  Issue only one error per parameter list for "void"
3735         appearing more than once in said parameter list.  Collapse
3736         parmlist_tags_warning into this function to avoid double scan
3737         of tags list.
3738         (start_function): Set current_function_parm_vars.
3739         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
3740         directly.  Get non-parms from current_function_parm_vars; no
3741         need to extract them from the parms chain.  Properly bind tags
3742         in the new scope.
3743         (store_parm_decls_oldstyle): No need to extract non-parameters
3744         from the parms chain, nor to store them back afterward.  Move
3745         declaration to top of function, restructure code reordering
3746         DECL_ARGUMENTS.
3747         (store_parm_decls): No need to save and restore warn_shadow.
3748         * c-parse.in: Don't call parmlist_tags_warning nor
3749         clear_parm_order.  Call mark_forward_parm_decls when forward
3750         parm decls are encountered.
3751         * c-tree.h: Prototype mark_forward_parm_decls; not
3752         clear_parm_order or parmlist_tags_warning.
3753
3754 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
3755
3756         * c-common.c (allow_pch): Remove.
3757         * c-common.h (allow_pch): Remove.
3758         (c_common_no_more_pch): Declare.
3759         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
3760         * c-pch.c: Include hosthooks.h.
3761         (c_common_valid_pch): Don't check allow_pch.
3762         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
3763         (c_common_no_more_pch): New.
3764         * ggc-common.c: Include hosthooks.h.
3765         (gt_pch_save): Call gt_pch_get_address.
3766         (gt_pch_restore): Call gt_pch_use_address.
3767         * hooks.c (hook_voidp_size_t_null): New.
3768         (hook_bool_voidp_size_t_false): New.
3769         * hooks.h (hook_voidp_size_t_null): New.
3770         (hook_bool_voidp_size_t_false): New.
3771         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
3772         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
3773         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
3774         HOST_HOOKS_GT_PCH_USE_ADDRESS.
3775         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
3776         gt_pch_use_address.
3777         * doc/hostconfig.texi (Host Common): Document
3778         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
3779         * Makefile.in (c-pch.o): Depend on hosthooks.h.
3780         (ggc-common.o): Likewise.
3781
3782         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
3783         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
3784         (pch_address_space): New.
3785         (darwin_rs6000_gt_pch_get_address): New.
3786         (darwin_rs6000_gt_pch_use_address): New.
3787
3788 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
3789
3790         PR preprocessor/11569
3791         PR preprocessor/11649
3792         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
3793         * cppfiles.c: Completely rewritten.
3794         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
3795         struct cpp_path is now struct cpp_dir.
3796         (remove_duplicates): Don't simplify path names.
3797         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
3798         cpp_stack_file.
3799         * cpphash.h: Include hashtab.h.
3800         (_cpp_file): Declare.
3801         (struct cpp_buffer): struct include_file is now struct _cpp_file,
3802         and struct cpp_path is now struct cpp_dir.  Rename members.
3803         (struct cpp_reader): Similarly.  New members once_only_files,
3804         file_hash, file_hash_entries, quote_ignores_source_dir,
3805         no_search_path, saw_pragma_once.  Remove all_include_files and
3806         max_include_len.  Make some members bool.
3807         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
3808         (_cpp_stack_file): Renamed from _cpp_read_file.
3809         (_cpp_stack_include): Renamed from _cpp_execute_include.
3810         (_cpp_init_files): Renamed from _cpp_init_includes.
3811         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
3812         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
3813         (cpp_read_next_file): Rename and move to cppfiles.c.
3814         (cpp_read_main_file): Update.
3815         * cpplib.c (run_directive): Update for renamed members.
3816         (do_include_common, _cpp_pop_buffer): Update.
3817         (do_import): Undeprecate #import.
3818         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
3819         * cpplib.h: Remove file_name_map_list.
3820         (cpp_options): Remove map_list.
3821         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
3822         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
3823
3824 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
3825
3826         * Makefile.in:  Make stamp-objdir safe for parallel builds.
3827
3828 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
3829
3830         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
3831         (info):  Depend on stmp-docobjdir.
3832
3833 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3834
3835         * configure: Regenerate.
3836
3837 Tue Jul 29 19:24:49 CEST 2003  Jan Hubicka  <jh@suse.cz>
3838
3839         PR C++/11131
3840         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
3841         in !unit-at-a-time mode.
3842
3843 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
3844
3845         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
3846         main function.
3847
3848 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
3849
3850         PR c++/11667
3851         * c-common.c (shorten_compare): Take into account differences
3852         between C and C++ representation for enumeration types.
3853         * tree.h (set_min_and_max_values_for_integral_type): Declare.
3854         * stor-layout.c (set_min_and_max_values_for_integral_type): New
3855         function, broken out from ...
3856         (fixup_signed_type): ... here and ...
3857         (fixup_unsigned_type): ... here.
3858
3859 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
3860
3861         * c-decl.c: Update commentary, adjust blank lines throughout.
3862         (struct c_scope): Fix indentation.  Reorder members so
3863         outer-context pointers come first, booleans last.
3864         (duplicate_decls, define_label): Use a 'locus' variable for
3865         diagnostic locations in a few more places.
3866         (warn_if_shadowing): Un-split a conditional that fits on one line.
3867         (c_init_decl_processing): No need to clear current_scope and
3868         current_function_scope.
3869         (start_decl): Merge if/else if statements with same action.
3870         (push_parm_decl): Rename old_immediate_size_expand to use
3871         save_foo convention; save/restore around entire function.
3872         (grokdeclarator): Remove unnecessary braces.
3873
3874 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
3875             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
3876
3877         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
3878         when warn_declaration_after_statement.  Call pedwarn_c90, not
3879         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
3880         * c-common.c (warn_declaration_after_statement): Define.
3881         * c-common.h (warn_declaration_after_statement): Declare.
3882         * c.opt (Wdeclaration-after-statement): New.
3883         * c-errors.c (pedwarn_c90): New function.
3884         * c-opts.c (c_common_handle_option) <case
3885         OPT_Wdeclaration_after_statement>: New.
3886         * c-tree.h (pedwarn_c90): Declare.
3887         * doc/invoke.texi (Option Summary): Document
3888         -Wdeclaration-after-statement.
3889         (Warning Options): Ditto.
3890
3891 Mon Jul 28 20:13:06 CEST 2003  Jan Hubicka  <jh@suse.cz>
3892
3893         * i386.md (memory attribute) Avoid accessing uninitialized memory
3894         for ishift1 type instructions.
3895
3896 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
3897
3898         * configure.in (--enable-checking): Add fold category.
3899         (ENABLE_FOLD_CHECKING): Define if requested.
3900         * configure: Rebuilt.
3901         * config.in: Rebuilt.
3902         * doc/install.texi: Document it.
3903         * fold-const.c: Include md5.h.
3904         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
3905         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
3906         print_fold_checksum): New functions.
3907
3908         * fold-const.c (fold): Never modify argument passed to fold, instead
3909         change a copy and return it.
3910         * convert.c (convert_to_integer): Likewise.
3911
3912 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
3913
3914         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
3915         cleanup of junk after #else and #endif directives.  Collapse repeated
3916         clauses into for statment.
3917
3918         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
3919
3920 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
3921
3922         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
3923         (keep_next_if_subblocks): Rename next_is_function_body.
3924         (pushlevel): Adjust commentary.  Always set ->keep on the
3925         outermost level of a function.  Don't set ->keep_if_subblocks.
3926         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
3927         (store_parm_decls): Adjust to match.
3928         (finish_function): Adjust to match.
3929         Call poplevel with all three arguments zero.
3930
3931         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
3932         New functions split out of store_parm_decls.
3933         Avoid unnecessary work. Use local variables consistently.
3934         (store_parm_decls): Likewise.
3935
3936         (finish_function): No need to set functionbody flag on call to
3937         poplevel.
3938         (struct language_function): Remove scope field.
3939         (c_push_function_context, c_pop_function_context): No need to
3940         save and restore current_scope.
3941
3942 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
3943
3944         * doc/extend.texi (Deprecated Features): Implicit typename is
3945         gone. Default args on types is going.
3946
3947 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
3948
3949         * Makefile.in (ifcvt.o): Depend on target.h
3950         * ifcvt.c (target.h): Include.
3951         (if_convert): Don't call mark_loop_exit_edges if we can't
3952         modify jumps.
3953
3954 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3955
3956         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
3957
3958 2003-07-26  Richard Henderson  <rth@redhat.com>
3959
3960         PR inline-asm/11676
3961         * cse.c (count_reg_usage): Handle asm_operands properly.
3962
3963 2003-07-26  Roger Sayle  <roger@eyesopen.com>
3964
3965         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
3966         (DEF_EXT_FALLBACK_BUILTIN): Delete.
3967         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
3968         the regular DEF_EXT_LIB_BUILTIN macro.
3969         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
3970         the regular DEF_LIB_BUILTIN macro.
3971         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
3972         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
3973         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
3974         DEF_EXT_LIB_BUILTIN macro.
3975
3976         * c-decl.c (duplicate_decls): Remove code to handle builtin
3977         functions prototyped without an argument list.
3978
3979 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
3980
3981         * config/i386/winnt.c: Revert 2003-07-08 change.
3982         (i386_pe_section_type_flags): Remove error_with_decl here too.
3983
3984 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3985
3986         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
3987         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
3988         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
3989         (v850_handle_data_area_attribute): Likewise.
3990
3991 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
3992
3993         * varasm.c (output_constant_def_contents): Use
3994         ASM_DECLARE_CONSTANT_NAME if defined.
3995         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
3996         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
3997         objects get at least one byte to prevent assembler problems.
3998         (ASM_DECLARE_CONSTANT_NAME): New.
3999
4000         * Makefile.in (libbackend.o): Remove options_.h.
4001         (mostlyclean): Likewise.
4002
4003         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
4004         insert a label at the end of an function under Mach-O.
4005
4006         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
4007
4008 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
4009
4010         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
4011         equality.
4012         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
4013
4014         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
4015
4016 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4017
4018         * doc/passes.texi (Passes): Mention pretty-printing and
4019         diagnostic files.
4020
4021 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
4022
4023         * doc/extend.texi (Function Attributes): GNU C++ does now allow
4024         unused parameter decls.
4025         (Attribute Syntax): GNU C++ does not allow label attributes to be
4026         after the ':'.
4027
4028 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4029
4030         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
4031         (objc_declare_class): Likewise.
4032         (error_with_ivar): Likewise.
4033         (start_class): Likewise.
4034         (warn_with_method): Likewise.
4035
4036 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4037
4038         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
4039         from GCC.
4040         * calls.c (try_to_integrate): Don't use xxx_with_decl.
4041         (expand_call): Likewise.
4042         * dwarfout.c (output_reg_number): Likewise.
4043         * expr.c (expand_expr): Likewise.
4044         * function.c (assign_temp): Likewise.
4045         (uninitialized_vars_warning): Likewise.
4046         (setjmp_args_warning): Likewise.
4047         (expand_function_end): Likewise.
4048         * stmt.c (fixup_gotos): Likewise.
4049         (warn_about_unused_variables): Likewise.
4050         (expand_end_bindings): Likewise.
4051         * stor-layout.c (layout_decl): Likewise.
4052         (place_field): Likewise.
4053         * toplev.c (check_global_declarations): Likewise.
4054         (rest_of_handle_inlining): Likewise.
4055         (default_tree_printer): New function.
4056         (general_init): Initialize diagnostic machinery before routing
4057         signals to the ICE machinery.  Set default tree printer.
4058         * toplev.h (pedwarn_with_decl): Remove declaration.
4059         (warning_with_decl): Likewise.
4060         (error_with_decl): Likewise.
4061         (pedwarn): Remove attribute for the time being.
4062         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
4063         * varasm.c (named_section): Likewise.
4064         (make_decl_rtl): Likewise.
4065         (assemble_variable): Likewise.
4066         (merge_weak): Likewise.
4067         (declare_weak): Likewise.
4068
4069         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
4070         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
4071         (format_with_decl): Remove.
4072         (diagnostic_for_decl): Likewise.
4073         (pedwarn_with_decl): Likewise.
4074         (warning_with_decl): Likewise.
4075         (error_with_decl): Likewise.
4076         (diagnostic_initialize): Adjust.
4077         (diagnostic_count_diagnostic): Likewise.
4078         (announce_function): Likewise.
4079         (lhd_print_error_function): Likewise.
4080         (diagnostic_report_current_module): Likewise.
4081         (default_diagnostic_starter): Likewise.
4082         (diagnostic_report_diagnostic): Likewise.
4083         (default_diagnostic_finalizer): Likewise.
4084         (verbatim): Likewise.
4085         (error): Likewise.
4086         (warning): Likewise.
4087         * opts.c (common_handle_option): Likewise.
4088         * pretty-print.c: New file.
4089         * c-pretty-print.h (pp_base): Override.
4090         * c-pretty-print.c: Adjust use of macros throughout.
4091         (pp_buffer): New macro.
4092         (pp_newline): Likewise.
4093         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
4094         * Makefile.in (DIAGNOSTIC_H): New variable.
4095         (c-errors.o): Use it.
4096         (c-objc-common.o): Likewise.
4097         (c-common.o): Likewise.
4098         (c-opts.o): Likewise.
4099         (c-format.o): Likewise.
4100         (diagnostic.o): Likewise.
4101         (opts.o): Likewise.
4102         (toplev.o): Likewise.
4103         (rtl-error.o): Likewise.
4104         (dwarf2out.o): Likewise.
4105         (jump.o): Likewise.
4106         (pretty-print.o): New rule.
4107
4108 2003-07-24  Roger Sayle  <roger@eyesopen.com>
4109
4110         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
4111         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
4112         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
4113         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
4114         (DEF_FRONT_END_LIB_BUILTIN): Delete.
4115         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
4116         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
4117
4118         * builtins.c (build_string_literal): New function to construct
4119         a char* pointer to a string literal.
4120         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
4121         "rtx target" to be consistent with other expand_builtin_* functions.
4122         Change 3rd argument from "int unlocked" to "bool unlocked".
4123         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
4124         c-common.c to avoid front-end dependencies.  Optimize printf("")
4125         as a no-op when the result isn't required.  Handle embedded NULs
4126         in format string.
4127         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
4128         from c-common.c to avoid front-end dependencies.  Likewise, optimize
4129         fprintf(fp,"") as a no-op when the result isn't required, evaluating
4130         fp for side-effects.  Handle embedded NULs in format string.
4131         (expand_builtin_sprintf): Fix typo.
4132         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
4133         optimizing.  Adjust calls of expand_builtin_fputs to match the API
4134         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
4135         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
4136         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
4137
4138         * c-common.c (is_valid_printf_arglist): Delete.
4139         (c_expand_builtin): Delete.
4140         (c_expand_builtin_printf): Moved to builtins.c. Delete.
4141         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
4142         (c_expand_expr): No longer treat CALL_EXPRs specially.
4143         (CALLED_AS_BUILT_IN): Delete.
4144
4145 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4146
4147         PR optimization/11631
4148         * gcse.c (store_motion): Connect infinite loops to exit.
4149
4150 2003-07-24  Jason Merrill  <jason@redhat.com>
4151
4152         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
4153         (boolean_true_node, boolean_false_node): Likewise.
4154         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
4155         * tree.c (build_common_tree_nodes): Init boolean_type_node.
4156         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
4157         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
4158         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
4159         (truthvalue_true_node): Renamed from boolean_true_node.
4160         (truthvalue_false_node): Renamed from boolean_false_node.
4161         * c-decl.c: Just set truthvalue_* to integer_*.
4162         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
4163
4164 2003-07-24  Roger Sayle  <roger@eyesopen.com>
4165
4166         * c-decl.c (match_builtin_function_types): New subroutine of
4167         duplicate_decls to test whether a redeclaration of a builtin
4168         function is suitably close, i.e. the return type and all of
4169         the argument types have the same modes as the builtin expects.
4170         (duplicate_decls): Fuzzy type matching for builtin functions
4171         moved to match_builtin_function_types.
4172
4173 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4174
4175         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
4176         flag correctly.
4177
4178 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
4179
4180         * c-decl.c: Search-and-replace change 'binding level' to
4181         'scope' in commentary.
4182         (struct binding_level): Now struct c_scope.
4183         (current_binding_level): Now current_scope.
4184         (free_binding_level): Now scope_freelist.
4185         (current_function_level): Now current_function_scope.
4186         (global_binding_level): Now global_scope.
4187         (make_binding_level): Now make_scope.
4188         (pop_binding_level): Now pop_scope.
4189
4190 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4191
4192         * configure.in (libgcc_visibility): Add missing whitespace.
4193
4194 2003-07-24  Richard Henderson  <rth@redhat.com>
4195
4196         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
4197         __gcc_personality_v0.
4198
4199 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4200
4201         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
4202
4203 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
4204
4205         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
4206         documentation missed from my 2003-07-09 patch.
4207
4208 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
4209
4210         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
4211         it's not provided.
4212         * configure: Rebuild.
4213
4214 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
4215
4216         PR c/10602
4217         * c-typeck.c (type_lists_compatible_p): Do not compare
4218         arguments if one of them is an error_mark_node
4219
4220 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
4221
4222         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
4223         if current_function_calls_eh_return.
4224
4225 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
4226
4227         * doc/c-tree.texi (OFFSET_TYPE): Update description.
4228
4229 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
4230
4231         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
4232         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
4233         __umodsi3, __modsi3): Increase frame size to 32.
4234
4235 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
4236
4237         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
4238         prototype.
4239
4240 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
4241
4242         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
4243
4244         PR optimization/10679
4245         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
4246
4247 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
4248
4249         PR target/11607 and PR target/11516
4250         * pa.md (extzv, extv, insv): Revert latter half of last patch.
4251
4252 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
4253
4254         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
4255         * varasam.c (output_constant): Likewise.
4256
4257 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
4258
4259         * alias.c: Fix comment formatting.
4260         * c-common.c: Likewise.
4261         * c-decl.c: Likewise.
4262         * c-opts.c: Likewise.
4263         * combine.c: Likewise.
4264         * cpplib.c: Likewise.
4265         * diagnostic.c: Likewise.
4266         * dojump.c: Likewise.
4267         * final.c: Likewise.
4268         * fold-const.c: Likewise.
4269         * gcc.c: Likewise.
4270         * gcse.c: Likewise.
4271         * ggc-page.c: Likewise.
4272         * jump.c: Likewise.
4273         * loop.c: Likewise.
4274         * mips-tfile.c: Likewise.
4275         * recog.c: Likewise.
4276         * regclass.c: Likewise.
4277         * regmove.c: Likewise.
4278         * tree.c: Likewise.
4279         * tree.h: Likewise.
4280
4281 2003-07-22  Per Bothner  <pbothner@apple.com>
4282
4283         * line-map.c (add_line_map):  Handle invalid LEAVE request.
4284         Fixes PR preprocessor/11361.
4285
4286 2003-07-22  Per Bothner  <pbothner@apple.com>
4287
4288         * diagnostic.c.(diagnostic_report_current_module):  Update to match
4289         2003-06-05 changes to push_srcloc and pop_srcloc.
4290
4291 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
4292
4293         * doc/trouble.texi: Better document two-stage name lookup.
4294
4295 2003-07-22  Eric Christopher <echristo@redhat.com>
4296
4297         * config/s390.c (s390_valid_pointer_mode): New.
4298         (TARGET_VALID_POINTER_MODE): Use.
4299         (s390_emit_prologue): Add tpf profiling hooks.
4300         (s390_emit_epilogue): Ditto.
4301         * config/s390.h (MASK_TPF): New.
4302         (TARGET_TPF): Use.
4303         (POINTERS_EXTEND_UNSIGNED): Define.
4304         * config/s390.md (ptr_extend): New pattern.
4305
4306 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
4307
4308         * hashtable.c (approx_sqrt): Make static.
4309         * hashtable.h: Don't prototype approx_sqrt.
4310         * line-map.c (init_line_maps): Rename linemap_init.
4311         (free_line_maps): Rename linemap_free.
4312         (add_line_map): Rename linemap_add.
4313         (lookup_line): Rename linemap_lookup.
4314         (print_containing_files): Rename linemap_print_containing_files.
4315         * linemap.h: Update to match.
4316
4317         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
4318         linemap routines to use new names.
4319
4320 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
4321
4322         * c-common.c (handle_packed_attribute): Don't pack a struct via a
4323         typedef. Propagate packedness from a main variant.
4324
4325 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
4326
4327         * Makefile.in (install-common): Add dependency on installdirs.
4328
4329 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
4330
4331         * c-common.c (c_common_type_for_mode): Return integer types for
4332         pointer modes.
4333
4334 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
4335
4336         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
4337         (finish_decl): Call maybe_apply_pragma_weak here.
4338         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
4339         TREE_PUBLIC and TREE_STATIC are decided.
4340         (start_function): Move call to maybe_apply_pragma_weak.  Check that
4341         DECL_ASSEMBLER_NAME isn't set too early.
4342
4343         * cpplex.c (_cpp_process_line_notes): Mention option name in
4344         trigraphs warning.
4345
4346 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
4347
4348         * combine.c (if_then_else_cond): Simplify the comparison of
4349         rtx against -1, 0, and 1.
4350         * loop.c (check_dbra_loop): Likewise.
4351         * optabs.c (emit_conditional_move): Likewise.
4352         (emit_conditional_add): Likewise.
4353         * config/i386/i386.md (*movsi_or): Likewise.
4354         (*movdi_or_rex6): Likewise.
4355
4356 Tue Jul 22 00:42:12 CEST 2003  Jan Hubicka  <jh@suse.cz>
4357
4358         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
4359
4360 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
4361
4362         * cppfiles.c (open_file_pch): Don't put unused entries in the
4363         splay tree.  Remove dead code.
4364
4365 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
4366
4367         * c-common.h (num_in_fnames): Declare.
4368         (c_static_assembler_name): Move from here...
4369         * c-tree.h (c_static_assembler_name): ... to here.
4370         * c-opts.c: Don't include langhooks-def.h.
4371         (c_static_assembler_name): Move to c-decl.c.
4372         (num_in_fnames): Make externally visible.
4373         * c-decl.c: Include langhooks-def.h.
4374         (c_static_assembler_name): Move from c-opts.c.
4375         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
4376         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
4377
4378         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
4379         when it's not needed.
4380
4381 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
4382
4383         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
4384         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
4385         (rs6000_emit_prologue): Save FPRs inline if set.
4386
4387 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
4388
4389         * config/ia64/ia64.md (prefetch): Support predicate.
4390
4391 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
4392
4393         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
4394         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
4395         table.
4396
4397 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4398
4399         PR optimization/11536
4400         * unroll.c (loop_iterations): Do not replace a register holding
4401         the final value by its equivalent before the loop if it is not
4402         invariant.
4403
4404 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
4405
4406         * doc/extend.texi: Fixes to spelling, grammar, and diction.
4407
4408 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
4409
4410         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
4411         (V850 Options): Spelling fixes.
4412
4413 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
4414
4415         * doc/invoke.texi: Fixes to style, grammar and diction.
4416
4417 2003-07-20  Roger Sayle  <roger@eyesopen.com>
4418
4419         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
4420         * system.h (SMALL_STACK): Poison obsolete target macro.
4421         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
4422
4423 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
4424
4425         * configure.in:  Cache the results of testing for cmp's capabilities.
4426         * configure:  Regenerate.
4427
4428 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
4429
4430         PR debug/11279
4431         * dwarf2out.c (gen_enumeration_type_die): Remember that
4432         enumerators can be unsigned.
4433
4434 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
4435
4436         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
4437         (push_label_level, pop_label_level): Kill.
4438         (struct binding_level): Rename level_chain to outer.
4439         Add outer_function field.  Change parm_flag, function_body,
4440         keep, keep_if_subblocks to 1-bit bitfields of type bool.
4441         (current_function_level): New variable.
4442         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
4443         (keep_next_level, declare_parm_level, warn_if_shadowing):
4444         Update to match.
4445         (struct language_function): Kill named_labels, shadowed_labels fields.
4446         (c_init_decl_processing, start_function, c_push__function_context)
4447         (c_pop_function_context): No need to muck with named_labels nor
4448         shadowed_labels.
4449
4450         (make_binding_level): No need to clear the structure here.
4451         (pop_binding_level): Always operate on current_binding_level.
4452         Update current_function_level if necessary.
4453         (pushlevel): Don't clear named_labels.  Update current_function_level
4454         if necessary.  Use "true" and "false" where appropriate.
4455         (poplevel): Diagnose labels defined but not used, or vice
4456         versa, and clear out label-meanings leaving scope, while
4457         walking down the decls list, for all binding levels.
4458         Handle LABEL_DECLs appearing in the shadowed list.
4459         pop_binding_level takes no arguments.
4460         (pushdecl_function_level): Use current_function_level.
4461
4462         (make_label, bind_label): New static functions.
4463         (declare_label): New exported function.
4464         (lookup_label, define_label): Rewritten for new data structure.
4465         (shadow_label): Kill.
4466
4467         * c-tree.h: Prototype declare_label; don't prototype
4468         push_label_level, pop_label_level, nor shadow_label.
4469         * c-parse.in: Remove all calls to push_label_level and
4470         pop_label_level.  Use declare_label for __label__ decls.
4471
4472         * doc/extend.texi: Clarify that __label__ can be used to
4473         declare labels with local scope in any nested block, not
4474         just statement expressions.  Cross-reference nested functions
4475         section from local labels section.
4476
4477 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4478
4479         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
4480
4481 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
4482
4483         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
4484
4485 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4486
4487         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
4488         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
4489
4490 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
4491
4492         * config/s390/s390.c (legitimize_pic_address): Access local symbols
4493         relative to the GOT instead of relative to the literal pool base.
4494         (s390_output_symbolic_const): Handle new GOT-relative accesses.
4495         * config/s390/s390.md ("call"): Access local functions and PLT stubs
4496         relative to the GOT instead of relative to the literal pool base.
4497         ("call_value"): Likewise.
4498         ("call_value_tls"): Likewise.
4499
4500         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
4501         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
4502         (s390_chunkify_finish): Likewise.
4503         (s390_chunkify_cancel): Likewise.
4504         (s390_reorg): Adapt caller.
4505         (find_base_register_in_addr,
4506         find_base_register_ref, replace_base_register_ref): Delete.
4507         (find_ltrel_base, replace_ltrel_base): New functions.
4508         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
4509         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
4510         base vs. index register usage.
4511         (struct constant_pool): Remove 'anchor'.
4512         (s390_add_anchor): Delete.
4513         (s390_dump_pool): Remove anchor handling.
4514         * config/s390/s390.md ("reload_anchor"): Remove.
4515
4516         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
4517         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
4518         (s390_emit_prologue): Use it.
4519         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
4520         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
4521         hard-code register 14.
4522         * config/s390/s390-protos.h (s390_load_got): Declare.
4523
4524         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
4525         Support TImode constants.
4526         * config/s390/s390.md ("consttable_ti"): New.
4527         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
4528
4529         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
4530         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
4531         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
4532         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
4533         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
4534         New symbolic constants.
4535         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
4536         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
4537         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
4538         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
4539         symbolic UNSPEC values.
4540         * config/s390/s390.c (larl_operand, s390_short_displacement,
4541         bras_sym_operand, s390_cannot_force_const_mem,
4542         s390_delegitimize_address, s390_decompose_address,
4543         legitimize_pic_address, s390_output_symbolic_const,
4544         s390_function_profiler): Use symbolic UNSPEC values.
4545
4546 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4547
4548         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
4549         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
4550         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
4551         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
4552         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
4553         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
4554         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
4555         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
4556         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
4557         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
4558         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
4559         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
4560         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
4561         postreload.c prefix.c print-tree.c protoize.c ra-build.c
4562         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
4563         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
4564         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
4565         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
4566         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
4567         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
4568         casts.
4569
4570 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4571
4572         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
4573         * toplev.h (warning): Remove attribute.
4574
4575 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4576
4577         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
4578         (pop_label_level): Likewise.
4579         (duplicate_decls): Likewise.
4580         (implicitly_declare): Likewise.
4581         (shadow_label): Likewise.
4582         (start_decl): Likewise.
4583         (finish_decl): Likewise.
4584         (grokdeclarator): Likewise.
4585         (get_parm_info): Likewise.
4586         (detect_field_duplicates): Likewise.
4587         (finish_struct): Likewise.
4588         (start_function): Likewise.
4589         (store_parm_decls): Likewise.
4590         (finish_function): Likewise.
4591         (c_expand_body_1): Likewise.
4592         (check_for_loop_decls): Likewise.
4593         (merge_translation_unit_decls): Likewise.
4594
4595 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
4596
4597         * common.opt:  Document --param.
4598         * opts.c (columns, undocumented_msg): New.
4599         (print_help): Get number of columns from environment.  Print
4600         --param help.  Tweak newline handling.
4601         (print_param_help): New.
4602         (print_filtered_help): Better handling of duplicates.  Complain
4603         about undocumented switches.
4604         (print_switch): New.
4605         (wrap_help): Improve wrapping, use COLUMNS.
4606         * opts.sh: Ignore comments in records.
4607         * params.def: Fix typos and remove trailing periods.
4608         * toplev.c (display_help): Don't dump --param help.
4609         * doc/sourcebuild.texi: Update.
4610
4611 2003-07-18  Richard Henderson  <rth@redhat.com>
4612
4613         PR target/11556
4614         * optabs.c (prepare_operand): Fail gracefully instead of abort
4615         if the predicate doesn't satisfy.
4616         (gen_cond_trap): Allow prepare_operand to fail.
4617
4618 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4619
4620         * c-common.c: Don't undefine GCC_DIAG_STYLE.
4621         (fname_decl): Don't use xxx_with_decl.
4622         (c_add_case_label): Likewise.
4623         (handle_section_attribute): Likewise.
4624         (handle_alias_attribute): Likewise.
4625         (handle_no_instrument_function_attribute): Likewise.
4626         (handle_no_limit_stack_attribute): Likewise.
4627         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
4628         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
4629
4630 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4631
4632         * Makefile.in (ifcvt.o): Add cfgloop.h.
4633         * basic-block.h (EDGE_LOOP_EXIT): New flag.
4634         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
4635         * ifcvt.c: Include cfgloop.h.
4636         (mark_loop_exit_edges): New static function.
4637         (if_convert): Call it.
4638         (find_if_header): Ignore branches out of loops.
4639
4640 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
4641
4642         * combine.c (simplify_comparison): Don't share rtx when converting
4643         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
4644
4645 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
4646
4647         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
4648         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
4649         (MUST_PASS_IN_STACK): Define.
4650         (BLOCK_REG_PADDING): Define.
4651
4652 2003-07-18  Richard Henderson  <rth@redhat.com>
4653
4654         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
4655         to skip the addr_vec.
4656
4657 Fri Jul 18 15:22:28 2003  Alexandre Oliva  <aoliva@redhat.com>
4658
4659         * combine.c (combinable_i3pat): Don't forbid occurrences of
4660         i2dest or i1dest in inner_dest if inner_dest is a mem.
4661
4662 Fri Jul 18 17:05:57 CEST 2003  Jan Hubicka  <jh@suse.cz>
4663
4664         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
4665
4666 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
4667
4668         PR target/11087
4669         * loop.c (basic_induction_var): Check if convert_modes emitted any
4670         instructions. Remove them and return 0 if so.
4671
4672 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
4673
4674         PR optimization/11083
4675         * toplev.c (rest_of_handle_addresof): Rename into
4676         rest_of_handle_addressof.  Delete unreachable blocks
4677         if dead edges were purged after the addressof pass.
4678
4679 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
4680
4681         * Makefile.in, configure, configure.in: Remove handling of
4682         lang-options.h and options_.h.
4683         * toplev.c (struct lang_opt, documented_lang_options): Remove.
4684         (display_help): Don't use documented_lang_options.
4685
4686 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
4687
4688         * c-decl.c (pushdecl_function_level): Make static, return nothing.
4689         (kept_level_p): Fold into poplevel.
4690         (undeclared_variable): Moved here from c-typeck.c.  Export.
4691         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
4692         (undeclared_variable): Prototype here.  Don't prototype
4693         kept_level_p nor pushdecl_function_level.
4694         * c-parse.in: Change first argument to poplevel from
4695         "kept_level_p()" to "KEEP_MAYBE".
4696         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
4697
4698 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4699
4700         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
4701         commutative operands instead of modifying the RTL in-place.
4702
4703 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
4704
4705         PR optimization/11557
4706         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
4707         unless we know which function is being called.
4708
4709 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4710
4711         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
4712         whether to reorder the operands of a commutative binary operator.
4713
4714 2003-07-17  Roger Sayle  <roger@eyesopen.com>
4715
4716         * fold-const.c (const_binop): Avoid performing the FP operation at
4717         compile-time, if either operand is NaN and we honor signaling NaNs,
4718         or if we're dividing by zero and either flag_trapping_math is set
4719         or the desired mode doesn't support infinities.
4720         (fold_initializer): New function to fold an expression ignoring any
4721         potential run-time exceptions or traps.
4722         * tree.h (fold_initializer): Prototype here.
4723         * c-typeck.c (build_binary_op): Move to the end of the file so
4724         that intializer_stack is in scope.  If constructing an initializer,
4725         i.e. when initializer_stack is not NULL, use fold_initializer to
4726         fold expressions.
4727         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
4728         performing FP operations at compile-time, if they would raise an
4729         exception at run-time.
4730
4731 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
4732
4733         PR 11498
4734         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
4735         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
4736         (GTFILES): Add langhooks.c.
4737         (gt-langhooks.h): New.
4738         * c-common.h (c_static_assembler_name): Prototype.
4739         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4740         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
4741         * c-opts.c: Include langhooks-def.h.
4742         (c_static_assembler_name): New.
4743         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
4744         (var_labelno): New.
4745         (lhd_set_decl_assembler_name): Give static objects with context
4746         unique names.
4747         * varasm.c (var_labelno): Delete.
4748         (make_decl_rtl): Don't change the assembler name once it's set.
4749
4750         * c-opts.c (this_input_filename): New.
4751         (finish_options): Take new parameter, name of file being compiled.
4752         Update callers.  Set this_input_filename.
4753         (push_command_line_include): Use this_input_filename not
4754         main_input_filename.
4755
4756 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
4757
4758         * Makefile.in: Depend .pot generation on options.c.
4759         * po/exgettext: Add an extra_files variable containing additional
4760         files to scan.
4761
4762 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
4763
4764         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
4765         c_write_global_declarations.
4766
4767         * c-decl.c: Fix typos in several comments.  Remove all
4768         #if 0 blocks; reindent as needed.  Remove unused argument
4769         to declare_parm_level; all callers changed.
4770         * c-parse.in: Update calls to declare_parm_level.  Avoid
4771         issuing a double warning in some circumstances.
4772         * c-typeck.c: Update calls to declare_parm_level.
4773         * c-tree.h: Update prototype of declare_parm_level.
4774
4775         * c-pragma.c (apply_pragma_weak): Don't complain about a
4776         redundant #pragma weak.
4777
4778         * objc/objc-act.c (forward_declare_categories,
4779         build_selector_reference_decl, build_class_reference_decl,
4780         build_objc_string_decl, synth_forward_declarations,
4781         build_protocol_reference): Set TREE_PUBLIC on synthetic
4782         forward decl to 0, consistent with eventual definition.
4783         Correct comments to match.
4784
4785         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
4786         in regexp that don't form a range expression.
4787         * fixinc/fixincl.def: Regenerate.
4788
4789 2003-07-17  Richard Henderson  <rth@redhat.com>
4790
4791         PR target/10907
4792         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
4793         even with !TARGET_CONST_GP.
4794         (ia64_function_ok_for_sibcall): Reject non-local functions.
4795
4796 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
4797
4798         * c-common.c (c_estimate_num_insns_1): Don't handle
4799         METHOD_CALL_EXPR.
4800         * expr.c (safe_from_p): Likewise.
4801         * gengtype.c (adjust_field_tree_exp): Likewise.
4802         * stmt.c (warn_if_unused_value): Likewise
4803         * tree.c (first_rtl_op): Likewise.
4804         * tree.def: Don't define METHOD_CALL_EXPR.
4805         * java/lang.c (java_estimate_num_insns_1): Don't handle
4806         METHOD_CALL_EXPR.
4807
4808 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
4809
4810         PR other/11466
4811         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
4812         and its restrictions for the SPARC64 port.
4813         Move the entry of "-mimpure-text" before that of "-mv8".
4814
4815 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
4816             Phil Edwards <phil@jaj.com>
4817
4818         * doc/install.texi (*-*-solaris2*): Document the step-by-step
4819         procedure to bootstrap and install.
4820         Document the preference for the legacy Sun tools in /usr/bin
4821         over the POSIX tools in /usr/xpg4/bin for the build process.
4822
4823 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
4824
4825         * c.opt: Document Uncodumented; use it.  Document ObjC options.
4826         * opts.c (print_filtered_help): Skip undocumented switches.
4827         * opts.h (CL_UNDOCUMENTED): New.
4828         * opts.sh: Handle Undocumented.
4829         * toplev.c (documented_lang_options): Prevent its becoming empty.
4830 objc:
4831         * lang-options.h: Remove.
4832
4833 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
4834
4835         * loop.c (check_ext_dependent_givs): Pass const struct loop *
4836         instead of struct loop_info * as argument.  Accept BIVs with
4837         increment +/- 1 provided there is a friendly exit test against
4838         a loop-invariant value.
4839         (strength_reduce): Adapt call to check_ext_dependent_givs.
4840
4841 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
4842             Con Bradley <con.bradley@superh.com>
4843
4844         * sh-protos.h (sh_get_pr_initial_val): Declare.
4845         * sh.c (regno_reg_class): Make its elements type enum reg_class.
4846         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
4847         and live_regs_mask arguments.  Changed all callers.
4848         (save_schedule_s): New structure.
4849         (save_schedule): New typedef.
4850         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
4851         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
4852         In interrupts handlers, also save registers that are usually
4853         partially saved, and make sure there is at least one general purpose
4854         register saved if a target register needs saving.
4855         Add casts in comparisons to avoid warnings.
4856         (sh_media_register_for_return): return -1 for interrupt handlers.
4857         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
4858         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
4859         registers used are available.
4860         Set RTX_FRAME_RELATED_P where appropriate.
4861         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
4862         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
4863         (initial_elimination_offset): Likewise.
4864         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
4865         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
4866         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
4867         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
4868         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
4869         and for target registers.
4870         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
4871         (regno_reg_class): Make its elements type enum reg_class.
4872         (CONSTRAINT_LEN): Don't use isdigit.
4873         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
4874         (FUNCTION_ARG): Add parentheses to avoid warnings.
4875         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
4876         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
4877         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
4878         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
4879         * sh.md (xordi3+1): Remove unused variable regno.
4880         (return_media): Check that tr0 is available before using it.
4881
4882 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
4883
4884         * c.opt: Document more options.
4885
4886 2003-07-16  Roger Sayle  <roger@eyesopen.com>
4887
4888         * combine.c (subst): Also handle (subreg (const_double ...)) case
4889         if created by a substitution, by using the original inner mode.
4890
4891 2003-07-16  Roger Sayle  <roger@eyesopen.com>
4892
4893         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
4894         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
4895         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
4896
4897 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
4898
4899         * doc/install.texi (--without-headers): New.
4900
4901         Partial Fix PR/10129
4902         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
4903         (machopic_output_function_base_name): New; print the true pic label.
4904         (machopic_classify_ident): Pic Base is always a defined data.
4905         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
4906         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
4907
4908         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
4909         if they are not floating point registers.
4910
4911         PR c/10962
4912         * ggc.h: Add header guards.
4913         * c-decl.c (finish_struct): Sort fields if
4914         number greater than 15 and there are no
4915         anonymous structs/unions.
4916         * c-common.h: Include ggc.h.
4917         (sorted_fields_type): New struct.
4918         (field_decl_cmp): New prototype.
4919         (resort_sorted_fields): New prototype.
4920         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
4921         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
4922         as s, removing other fields.
4923         * c-typeck.c (lookup_field): Use s in lang_type.
4924         These were mostly moved from cp/class.c:
4925         * c-common.c (field_decl_cmp): New static function.
4926         (field_decl_cmp): New function.
4927         (resort_sorted_fields): New function.
4928
4929 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
4930
4931         * config/darwin.c (machopic_select_section): Use decl_readonly_section
4932         to do most of the work.
4933
4934 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
4935
4936         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
4937         * config/mmix/mmix.c: Convert functions to ISO C90.
4938         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
4939         formatting.
4940         (mmix_get_hard_reg_initial_val): Tweak section head comment.
4941
4942 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
4943
4944         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
4945
4946 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
4947
4948         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
4949         (uw_update_context_1): Use it.
4950         * config/rs6000/rs6000.c (insn_after_throw): Remove.
4951         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
4952         in parent frame if _Unwind_* called directly instead of through
4953         .plt.
4954         (rs6000_emit_eh_toc_restore): Remove.
4955         (rs6000_emit_prologue): Update stack pointer before doing any saving
4956         if current_function_calls_eh_return.  Generate unwind info for $r2.
4957         (rs6000_emit_epilogue): Restore stack pointer after doing all
4958         restoring if current_function_calls_eh_return.  Restore $r2.
4959         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
4960         * config/rs6000/rs6000.md (eh_return): Remove call to
4961         rs6000_emit_eh_toc_restore.
4962         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
4963         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
4964
4965 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
4966
4967         * expr.c (emit_block_move): Don't move anything if size is const 0.
4968         (clear_storage): Test against const0_rtx instead of comparing INTVAL
4969         against 0.
4970
4971 2003-07-15  David S. Miller  <davem@redhat.com>
4972
4973         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
4974         emit nop if the last real insn is CALL_INSN.
4975
4976 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
4977
4978         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
4979         as "nul".
4980         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
4981
4982 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
4983
4984         * config/i386/winnt.c (associated_type): Artificial methods are not
4985         affected by the import/export status of their class unless they are
4986         COMDAT.
4987         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
4988
4989         * config/i386/winnt.c: Fix GCC copyright comment.
4990
4991 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
4992
4993         PR c++/11531
4994         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
4995         not recursing on hard error.
4996         (diagnostic_for_decl): Likewise.
4997         * diagnostic.def: Rearrange.
4998
4999 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
5000
5001         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5002         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
5003
5004 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
5005             Richard Henderson  <rth@redhat.com>
5006
5007         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
5008         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
5009         (_Unwind_SetGR): Likewise.
5010         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
5011         (Unwind_SpTmp): New typedef.
5012         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
5013         (uw_update_context): Use _Unwind_GetPtr.
5014         (init_dwarf_reg_size_table): Move above uw_init_context_1.
5015         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
5016         Use _Unwind_SetSpColumn.
5017         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
5018         Use _Unwind_GetPtr.
5019
5020 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
5021
5022         * c.opt: Document more options.
5023         * toplev.c (documented_lang_options): Remove all local help strings.
5024
5025 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
5026
5027         PR debug/11473
5028         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
5029         base classes.
5030
5031 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
5032
5033         PR target/10795
5034         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
5035         swap comparison operands if doing so would generate an
5036         unrecognizable insn.
5037
5038 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
5039
5040         PR optimization/11320
5041         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
5042         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
5043         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
5044         current_sched_info->compute_jump_reg_dependencies. Record which
5045         registers are used and which registers are set by the jump.
5046         Clear deps->reg_conditional_sets after a barrier.
5047         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
5048         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
5049         (init_deps): Initialize reg_conditional_sets.
5050         (free_deps): Clear reg_conditional_sets.
5051         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
5052         Mark registers live on entry of the fallthrough block and conditionally
5053         set as set by the jump. Mark registers live on entry of non-fallthrough
5054         blocks as used by the jump.
5055         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
5056         Mark new parameters as unused.
5057
5058 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
5059
5060         * doc/invoke.texi: Resync MIPS -march documentation.
5061
5062 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
5063
5064         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
5065         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
5066         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
5067         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
5068         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
5069         (mips_issue_rate): Handle PROCESSOR_R9000.
5070         (mips_use_dfa_pipeline_interface): Likewise.
5071         * config/mips/9000.md: New file.
5072         * config/mips/mips.md: Include it.
5073         (define_attr cpu): Add r9000.
5074         (mulsi3_mult3): Use "mul" for rm9000 code.
5075
5076 2003-07-15  Stan Cox  <scox@redhat.com>
5077
5078         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
5079         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
5080         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
5081         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
5082         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
5083         (mips_issue_rate): Handle PROCESSOR_R7000.
5084         (mips_use_dfa_pipeline_interface): Likewise.
5085         * config/mips/7000.md: New file.
5086         * config/mips/mips.md: Include it.
5087         (define_attr cpu): Add r7000.
5088         (mulsi3_mult3): Use "mul" for rm7000 code.
5089
5090 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
5091
5092         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
5093         the conditional move patterns.
5094         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
5095         Check for condmove type.
5096         (ir_vr54_arith): Add move type.
5097         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
5098         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
5099
5100 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
5101
5102         * c-opts.c (print_help): Remove.
5103         (c_common_handle_option): Don't handle --help.
5104         * c.opt: Document some options.
5105         (--help): Remove.
5106         * opts.c (print_filtered_help): New.
5107         (print_help): Use it.
5108
5109 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
5110
5111         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
5112         * tree.c: (build_common_tree_nodes_2): Likewise.
5113         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
5114         (V4DF_type_node): New.
5115
5116         * c-opts.c (push_command_line_include): Don't free deferred_opts,
5117         we'll need it.
5118         (finish_options): Reset init_cursor.
5119
5120 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
5121
5122         * expr.c (expand_assignment): Remove an unused argument
5123         SUGGEST_REG.
5124         * expr.h: Update the prototype.
5125         * function.c: Update the callers.
5126         * stmt.c: Likewise.
5127
5128 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
5129
5130         PR debug/11098
5131         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
5132         as DECL_ABSTRACT.
5133
5134 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
5135
5136         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
5137         with __cplusplus, not "we must use the C++ compiler's type"
5138         * fixinc/inclhack.def (void_null): Note that Interix needs this.
5139         * fixinc/fixincl.x: Regenerate.
5140
5141 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
5142
5143         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
5144         and unseen_objects from the global data before calling
5145         __deregister_frame_info_bases.
5146         (examine_objects): Insert objects into the seen_objects list,
5147         not unseen_objects.
5148         (_Unwind_Find_FDE): Always unlock the global object lists, even if
5149         we couldn't allocate a data structure to put in it.
5150
5151         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
5152         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
5153         (SET_TYPE_PROTOCOL_LIST): New.
5154         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
5155         (get_object_reference): Likewise.
5156
5157 Mon Jul 14 23:14:28 CEST 2003  Jan Hubicka  <jh@suse.cz>
5158
5159         * cfglayout.c (locator_file): Break out from ....
5160         (insn_file): ... here.
5161         (locator_line): Break out from ....
5162         (insn_line): ... here.
5163         * rtl.h (locator_file, locator_line): Declare.
5164         (final_start_function): Set proper line/file info.
5165
5166 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5167
5168         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
5169         handled by pp_c_cast_expression.
5170
5171 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
5172
5173         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
5174         allocate 32768 bytes of stack.  Use addition rather than subtraction
5175         when a single insn is enough.
5176         * config/mips/mips.md: Remove insns and splitters for subtracting
5177         constants.
5178         (subsi3): Only accept register operands.
5179         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
5180         (subdi3_internal_3, subsi3_internal_2): Likewise.
5181         (casesi): Use expand_binop to subtract the lower bound.
5182
5183 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
5184
5185         * config/mips/mips.c (mips_in_small_data_p): Don't handle
5186         TARGET_MIPS16 specially.
5187
5188 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
5189
5190         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
5191         mips_output_aligned_bss.
5192         * config/mips/linux.h: Likewise.
5193         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
5194         * config/mips/mips.c (mips_output_aligned_bss): New function.
5195
5196         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
5197         * config/mips/elf64.h: Likewise.
5198
5199         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
5200         mips_declare_object_name.
5201         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
5202         * config/mips/elf64.h: As for elf.h.
5203         * config/mips/iris6.h: Likewise.
5204         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
5205         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
5206         do...while (0) block.
5207         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
5208         (mips_finish_declare_object): Declare.
5209         * config/mips/mips.c (mips_declare_object_name): New function.
5210         (mips_finish_declare_object): New function.
5211
5212         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
5213         * config/mips/linux.h: Likewise.
5214
5215         * config/mips/mips.c (inside_function): Delete.
5216         (file_in_function_warning, ignore_line_number): Delete.
5217         (mips_output_filename): Don't warn about changing filenames within
5218         a function.
5219         (mips_output_lineno): Update accordingly.
5220         (mips_output_function_prologue): Don't reset the deleted variables.
5221         * config/mips/mips.h (inside_function): Delete.
5222         (file_in_function_warning, ignore_line_number): Delete.
5223
5224         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
5225         * config/mips/elf64.h: Likewise.
5226         * config/mips/openbsd.h: Likewise.
5227         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
5228         * config/mips/linux.h: Likewise.
5229         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
5230         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
5231
5232         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
5233         to the list of include files when using gas.
5234         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
5235         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
5236         * config/mips/elf64.h: Likewise.
5237         * config/mips/iris5.h: Likewise.
5238         * config/mips/linux.h: Likewise.
5239         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
5240         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
5241         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
5242         * config/mips/sdb.h: ...this new file.
5243
5244 2003-07-14  Douglas Rupp  <rupp@gnat.com>
5245
5246         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
5247         argument to getcwd; use fixed buffer instead.
5248
5249 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
5250
5251         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
5252         * fixinc/fixinc.wrap: Delete.
5253
5254 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
5255
5256         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
5257         don't have 2.
5258
5259 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
5260
5261         * ggc-page.c (struct globals): Add new fields to keep track of the
5262         total allocated memory and overhead.
5263         (ggc_print_statistics): Print them.
5264         (ggc_alloc): Keep track of the total allocated memory and the
5265         overhead.
5266
5267         * tree.c (dump_tree_statistics): Increase spacing.
5268         (enum tree_node_kind): Move to ...
5269         * tree.h (enum tree_node_kind): ... here.
5270         (tree_node_counts, tree_node_sizes): Declare.
5271
5272 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
5273
5274         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
5275
5276 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5277
5278         PR optimization/11440
5279         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
5280         SIGN_EXTRACT SETs.
5281
5282 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
5283
5284         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
5285         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
5286         (emit_group_load, emit_group_store): Adjust declarations.
5287         Remove most occurrences of #ifdef TREE_CODE.
5288         * expr.c (emit_group_load): Add "type" param, and use
5289         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
5290         aligned accesses if !SLOW_UNALIGNED_ACCESS.
5291         (emit_group_store): Likewise.
5292         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
5293         emit_group_load and emit_group_store calls.
5294         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
5295         BLOCK_REG_PADDING to determine whether we need endian_correction.
5296         (load_register_parameters): Localize vars.  Handle shifting of
5297         small values to the correct end of regs.  Adjust emit_group_load
5298         call.
5299         (expand_call, emit_library_call_value_1): Adjust emit_group_load
5300         and emit_group_store calls.
5301         * function.c (assign_parms): Set mem alignment for stack slots.
5302         Adjust emit_group_store call.  Store values at the "wrong" end
5303         of regs to the stack.  Use BLOCK_REG_PADDING.
5304         (locate_and_pad_parm): Save where_pad.
5305         (expand_function_end): Adjust emit_group_load call.
5306         * stmt.c (expand_value_return): Adjust emit_group_load call.
5307         * Makefile.in (calls.o): Depend on $(OPTABS_H).
5308         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
5309         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
5310         (MUST_PASS_IN_STACK): Define.
5311         (BLOCK_REG_PADDING): Define.
5312         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
5313         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
5314         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
5315         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
5316         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
5317
5318 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
5319
5320         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
5321
5322 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5323
5324         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
5325         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
5326
5327 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5328
5329         PR other/11123
5330         * toplev.c: Don't cut off option names.
5331
5332 2003-07-13  Andreas Jaeger  <aj@suse.de>
5333
5334         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
5335         to integer of different size.
5336
5337 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
5338
5339         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
5340         to (eq (and X 1) 0).
5341
5342 2003-07-13  Andreas Jaeger  <aj@suse.de>
5343
5344         * config.gcc: Add pmmintrin.h for x86_64-*-*.
5345
5346 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
5347
5348         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
5349         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
5350         list.  Move these all together down by cpplib.
5351
5352         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
5353         definition of CPPCHAR_SIGNED_T.
5354
5355         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
5356         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
5357         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
5358
5359         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
5360         * cppinit.c (cpp_create_reader): Likewise.
5361
5362         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
5363         * cpptrad.c: Likewise.  All callers changed.
5364         * cpplib.c: All callers changed.
5365         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
5366         * hashtable.h: Define GTY(x) to nothing here too.
5367
5368 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5369
5370         * stor-layout.c (compute_record_mode): Remove very obsolete test
5371         that forces BLKmode for records with fields crossing word boundary.
5372
5373 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
5374
5375         * Makefile.in: Remove orphan reference to acconfig.h.
5376
5377 2003-07-13  Andreas Jaeger  <aj@suse.de>
5378
5379         * cgraphunit.c: Convert prototypes to ISO C90.
5380
5381 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
5382
5383         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
5384         (for OpenBSD).
5385         * fixinc/fixincl.x: Rebuild.
5386
5387 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
5388
5389         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
5390         i?86-*-*.  Use correct name of cache variable.
5391         * configure: Regenerate.
5392
5393 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
5394
5395         * config/alpha/alpha.c: Fix comment typos.
5396         * config/alpha/alpha.md: Likewise.
5397         * config/arm/arm.c: Likewise.
5398         * config/arm/arm.md: Likewise.
5399         * config/arm/lib1funcs.asm: Likewise.
5400         * config/avr/avr.md: Likewise.
5401         * config/arm/README-interworking: Fix typos.
5402
5403 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
5404
5405         * c-format.c: Fix comment formatting.
5406         * c-typeck.c: Likewise.
5407         * coverage.c: Likewise.
5408         * cppcharset.c: Likewise.
5409         * cpplib.c: Likewise.
5410         * dbxout.c: Likewise.
5411         * gcov-io.h: Likewise.
5412         * toplev.c: Likewise.
5413
5414 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5415
5416         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
5417         fix.
5418
5419 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
5420
5421         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
5422         uses three-argument AC_DEFINE so no acconfig.h entries are
5423         needed.
5424         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
5425         which contains the GAS version number as a scaled integer.
5426         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
5427         ability to check for ELF assembler.
5428         (gcc_GAS_CHECK_FEATURE): New macro.
5429         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
5430         assembler feature checks using gcc_GAS_CHECK_FEATURE.
5431         Use three-argument AC_DEFINE everywhere.
5432         * acconfig.h: Deleted.
5433         * config.in, configure: Regenerate.
5434
5435 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5436
5437         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
5438         (on OpenBSD).
5439         * fixinc/fixincl.x: Regenerate.
5440
5441         * fixinc/inclhack.def (gnu_types): Improve comment.
5442
5443 2003-07-12  Andreas Jaeger  <aj@suse.de>
5444
5445         * fp-test.c (main): Use ISO C90 prototype.
5446
5447         * version.c: Remove unneded include of ansidecl.h.
5448
5449         * cgraph.h: Convert prototypes to ISO C90.
5450         * cgraph.c: Likewise.
5451         * fix-header.c: Likewise.
5452         * ra.h: Likewise.
5453         * protoize.c: Likewise.
5454
5455 Sat Jul 12 06:09:38 CEST 2003  Jan Hubicka  <jh@suse.cz>
5456
5457         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
5458         warning.
5459
5460 Sat Jul 12 03:06:01 CEST 2003  Jan Hubicka  <jh@suse.cz>
5461                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5462
5463         * cgraph.c (cgraph_max_uid): New global variable.
5464         (cgraph_node): Set uid field.
5465         (create_edge): Keep inline flags consistent.
5466         (dump_cgraph): Dump more info.
5467         * cgraph.h (struct cgraph_local_info): Remove inline_many and
5468         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
5469         (struct cgraph_global_info): Add insns, calls, cloned_times,
5470         will_be_output.
5471         (struct cgraph_node): Add uid.
5472         (struct cgraph_edge): Add inline_call.
5473         (cgraph_max_uid, cgraph_inline_p): Declare.
5474         * cgraph.c: Include params.h and fibheap.h
5475         (cgraph_mark_functions_to_inline_once): Kill.
5476         (INSNS_PER_CALL): New constant.
5477         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
5478         static variables.
5479         (cgraph_finalize_function): Do not analyze inlining.
5480         (cgraph_finalize_compilation_unit): Set inlining attributes.
5481         (cgraph_mark_functions_to_output): More consistency checks.
5482         (cgraph_optimize_function): Set current_function_decl to NULL.
5483         (cgraph_expand_function): Use new inline flags.
5484         (cgraph_postorder): Expand from cgraph_expand_functions.
5485         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
5486         (cgraph_inlined_into, cgraph_inlined_callees,
5487         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
5488         cgraph_mark_inline, cgraph_check_inline_limits,
5489         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
5490         cgraph_decide_inlining, cgraph_inline_p): New functions.
5491         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
5492         PARAM_INLINE_UNIT_GROWTH): New parameters.
5493         * tree-inline.c (struct inline_data): New field current_decl.
5494         (expand_call_inline): Avoid forward declarations; use
5495         inlinable_function_p.
5496         (optimize_inline_calls): Set id.current_decl.
5497
5498 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
5499
5500         * configure.in: Remove wrongly added definition of
5501         local_prefix.
5502         * configure: Regenerate.
5503
5504 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
5505
5506         * rtl.def (NOTE): Do not use padding.
5507
5508 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
5509
5510         * doc/install.tex: Update required binutils for i?86-*-linux*
5511
5512 2003-07-11  Richard Henderson  <rth@redhat.com>
5513
5514         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
5515
5516 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
5517
5518         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
5519         TRANSLATION_UNIT_DECL as top_level.
5520
5521 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
5522
5523         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
5524         then fall back to cmpstrM.
5525         * builtins.c (expand_builtin_memcmp): Likewise.
5526         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
5527         (s390_expand_cmpmem): ... this.
5528         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
5529         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
5530         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
5531         to s390_expand_cmpmem.
5532         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
5533         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
5534         to cmpmem*.
5535         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
5536         cmpstr* patterns.
5537         * doc/md.texi (cmpstrM): Describe as String compare insn, not
5538         Block compare insn.
5539         (cmpmemM): Add.
5540
5541 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
5542
5543         * config/i386/freebsd.h (SET_ASM_OP): Remove.
5544         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
5545         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
5546          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
5547
5548 2003-07-11  Richard Henderson  <rth@redhat.com>
5549
5550         * function.c (assign_parms): Don't recombine complex args if
5551         fnargs is unchanged from orig_fnargs.
5552         (split_complex_args): Return args without complex before copying.
5553         Re-layout the modified parameters.
5554
5555 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
5556
5557         * regclass.c (choose_hard_reg_mode): Add third argument.
5558         Changed all callers.
5559         * rtl.h (choose_hard_reg_mode): Update declaration.
5560         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
5561         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
5562
5563 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
5564
5565         * c-decl.c (finish_decl): Handle 'used' here...
5566         * cgraphunit.c (cgraph_finalize_function): ... and here ...
5567         * c-common.c: (handle_used_attribute): ... not here.
5568
5569         * configure.in (onstep): Support --enable-intermodule.
5570         * Makefile.in (OBJS-common): New.
5571         (OBJS-md): New.
5572         (OBJS-archive): New.
5573         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
5574         (OBJS-onestep): New.
5575         (libbackend.a): Support @onestep@.
5576         (libbackend.o): New.
5577         * configure: Regenerate.
5578
5579         * c-common.h (c_reset_state): New prototype.
5580         (c_parse_file): New prototype.
5581         (finish_file): Move prototype from c-tree.h.
5582         * c-decl.c: Include <hashtab.h>.
5583         (builtin_decls): New.
5584         (current_file_decl): New.
5585         (duplicate_decls): Add extra parameter. Change all callers.  Don't
5586         output duplicate common symbols.
5587         (link_hash_hash): New.
5588         (link_hash_eq): New.
5589         (poplevel): Handle popping of the top level.
5590         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
5591         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
5592         (pushdecl_top_level): Likewise.
5593         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
5594         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
5595         (finish_decl): Handle TRANSLATION_UNIT_DECL.
5596         (merge_translation_unit_decls): New.
5597         (c_write_global_declarations): New.
5598         (c_reset_state): New.
5599         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
5600         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
5601         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
5602         TRANSLATION_UNIT_DECL.
5603         (c_objc_common_finish_file): Call merge_translation_unit_decls.
5604         * c-opts.c (in_fnames): Rename from in_fname.
5605         (c_common_decode_option): Handle multiple input filenames.
5606         (c_common_post_options): Likewise.
5607         (c_common_parse_file): Likewise; also, call c_parse_file rather than
5608         yyparse.
5609         * c-parse.in: Move cleanup code to c_parse_file.
5610         (free_parser_stacks): Move contents to c_parse_file.
5611         (c_parse_file): New.
5612         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
5613         for integer types.
5614         (C_DECL_FILE_SCOPE): New.
5615         (finish_file): Move prototype to c-common.h.
5616         (merge_translation_unit_decls): New prototype.
5617         (comptypes): Add extra parameter to prototype.
5618         (c_write_global_declarations): New prototype.
5619         * c-typeck.c (tagged_types_tu_compatible_p): New.
5620         (function_types_compatible_p): Add extra parameter, change all callers.
5621         (type_lists_compatible_p): Likewise.
5622         (comptypes): Likewise.
5623         (struct tagged_tu_seen): New.
5624         (tagged_tu_seen_base): New.
5625         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
5626         (c_mark_addressable): Remove #if 0 code.
5627         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
5628         comment explaining why it shouldn't have to.
5629         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
5630         options.
5631         * cppinit.c (cpp_read_next_file): New.
5632         (cpp_read_main_file): Use it.
5633         * cpplib.c (undefine_macros): New.
5634         (cpp_undef_all): New.
5635         * cpplib.h (cpp_read_next_file): Prototype.
5636         (cpp_undef_all): Prototype.
5637         * langhooks-def.h (write_global_declarations): Remove prototype.
5638         * toplev.h (write_global_declarations): Add prototype.
5639         * tree.c (decl_type_context): Use switch statement, handle
5640         TRANSLATION_UNIT_DECL.
5641         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
5642         (TRANSLATION_UNIT_DECL): New kind of tree.
5643         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
5644         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
5645         * doc/invoke.texi: Make attempt to document new functionality.
5646
5647         2003-05-19  Per Bothner <bothner@apple.com>
5648
5649         * gcc.c (combine_inputs): New.
5650         (process_command): Set combine_inputs.
5651         (do_spec_1): Handle combine_inputs.
5652         (main): Likewise.
5653
5654 2003-07-10  James E Wilson  <wilson@tuliptree.org>
5655
5656         PR optimization/9745
5657         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
5658         loop_insn_emit_before.
5659         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
5660
5661 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
5662
5663         * cppcharset.c: Fix comment.
5664         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
5665         (EILSEQ): #define to EINVAL if not already defined.
5666         (convert_using_iconv): #if out when !HAVE_ICONV.
5667         (init_iconv_desc): Handle !HAVE_ICONV here...
5668         (cpp_init_iconv): ...not here.
5669
5670 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
5671
5672         * common.opt: More --help messages.
5673         * opts.c (print_help): Use puts().
5674         * toplev.c (f_options): Remove help text.
5675         (display_help): Don't dump f_options.
5676
5677 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
5678
5679         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
5680         Move i?86-*-interix* to the don't-fix list.
5681         * fixinc/fixinc.interix: Delete with extreme prejudice.
5682
5683 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
5684
5685         PR bootstrap/10758
5686         * doc/install.texi: Document requirements for ia64-*-hpux* target.
5687
5688 2003-07-10  Roger Sayle  <roger@eyesopen.com>
5689
5690         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
5691
5692 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
5693
5694         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
5695         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
5696         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
5697         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
5698         convert_no_conversion, convert_using_iconv): New functions.
5699         (APPLY_CONVERSION): New macro.
5700         (struct conversion, conversion_tab): New data structure.
5701         (init_iconv_desc): Check conversion_tab for a custom conversion
5702         primitive before trying to use iconv.
5703         (convert_cset): Deleted.
5704         (cpp_init_iconv): Use UTF- terminology, not UCS-.
5705         (_cpp_destroy_iconv): Update to match.
5706         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
5707         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
5708         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
5709         (_cpp_interpret_string_notranslate): New function, moved here
5710         from cpplib.c.
5711
5712         * cpphash.h (convert_f, struct cset_converter): New types.
5713         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
5714         are now struct cset_converter, not bare iconv_t.
5715         Update prototypes.
5716         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
5717         all callers changed.
5718
5719 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
5720
5721         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
5722         to opts.sh command line.
5723         * opts.sh: Write to temporary files with a move-if-change at the end.
5724
5725 2003-07-10  Denis Chertykov  <denisc@overta.ru>
5726             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
5727
5728         * combine.c (gen_binary): Handle the CLOBBER rtx and
5729         don't build a binary operation with it.
5730
5731 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5732
5733         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
5734         store_killed_after, store_killed_before): Keep track of the correct
5735         dependency function to use.
5736
5737 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
5738         * toplev.c (do_compile): Don't try to open dump files before
5739         lang_dependent_init initializes dump_base_name.
5740
5741 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5742
5743         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
5744         Use ARRAY_SIZE.
5745         * config/frv/frv.c (frv_expand_builtin): Likewise.
5746         * config/sh/sh.c (sh_media_init_builtins): Likewise.
5747
5748 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
5749
5750         PR c++/10032
5751         * doc/invoke.texi (C++ Dialect Options): Change documentation of
5752         -fpermissive.
5753
5754 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
5755
5756         * tm.texi (RETURN_ADDR_OFFSET): Document.
5757
5758 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
5759
5760         * gcov-io.h: Update documentation.
5761         (GCOV_UNSIGNED2STRING): New.
5762         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
5763         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
5764         GCOV_TAG_SUMMARY_LENGTH): Adjust.
5765         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
5766         GCOV_TAG_COUNTER_NUM): New.
5767         (GCOV_BLOCK_SIZE): Number of words.
5768         (gcov_var): Adjust buffer type.
5769         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
5770         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
5771         count, not byte count.
5772         (gcov_open): Adjust overread init.
5773         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
5774         gcov_write_string, gcov_write_tag, gcov_write_length,
5775         gcov_write_tag_length): Adjust.
5776         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
5777         (gcov_sync, gcov_seek): Adjust.
5778         * gcov-dump.c (print_usage): Show gcc version only.
5779         (dump_file): Use GCOV_UNSIGNED2STRING.
5780         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
5781         * gcov.c (print_version): Show gcc version only.
5782         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
5783         GCOV_TAG_*_NUM macros.
5784         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
5785         GCOV_TAG_COUNTER_LENGTH.
5786         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
5787         Use GCOV_TAG_COUNTER_NUM.
5788         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
5789         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
5790
5791 2003-07-10  Andreas Schwab  <schwab@suse.de>
5792
5793         * gcov-dump.c (dump_file): Fix missing address operator.
5794
5795 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
5796
5797         PR c/11449
5798         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
5799         of HOST_WIDE_INT.
5800         (fold_single_bit_test): If sign_bit_p() fails, assume that the
5801         bit being tested is not a sign bit.
5802
5803 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
5804
5805         * config/h8300/h8300.md (a peephole2): New.
5806
5807 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
5808
5809         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
5810         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
5811         from ld-linux.so.2 to ld.so.1.
5812         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
5813         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
5814         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
5815         nor -Wl,-rpath-link.
5816         (LIB_SPEC): Add -rpath-link if !static.
5817         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
5818         * config/mn10300/mn10300.c (mn10300_protect_label): New
5819         variable.
5820         * config/mn10300/linux.h (PRINT_OPERAND,
5821         PRINT_OPERAND_ADDRESS): Set it during their execution.
5822         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
5823         mn10300_protect_label is set.
5824         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
5825         -Wl,-rpath-link.
5826         (LIB_SPEC, STARTFILE_SPEC): Define.
5827         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
5828         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
5829         FLOAT_BIT_ORDER_MISMATCH.
5830         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
5831         * config.gcc (am33_2.0-*-linux*): Added.
5832         * config/mn10300/linux.h: New.
5833         * config/mn10300/t-linux: New.
5834
5835 2003-07-10  Andreas Jaeger  <aj@suse.de>
5836
5837         * fold-const.c: Properly wrap prototypes.
5838
5839 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
5840
5841         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
5842         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
5843         Moved from...
5844         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
5845         * config/mn10300/mn10300.h: GTY-declare it.
5846         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
5847         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
5848         prototype.  Use incoming RTL argument.
5849         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
5850         * config/mn10300/mn10300.md (int_label): Move C statements...
5851         (GOTaddr2picreg): ... here.
5852         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
5853         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
5854         * config/mn10300/mn10300.c (mn10300_encode_section_info):
5855         ... here.  New function.
5856         (TARGET_ENCODE_SECTION_INFO): Define to it.
5857         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
5858         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
5859         pattern name.
5860         (mn10300_loadPC): Define as insn splittable after reload.
5861         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
5862         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
5863         be defined in .rodata even in PIC, now that the assembler
5864         supports that.
5865         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
5866         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
5867         symbol take an underscore prefix.
5868         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
5869         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
5870         legitimize_pic_address): Declare.
5871         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
5872         the PIC register as fixed.
5873         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
5874         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
5875         PIC.
5876         (LEGITIMATE_PIC_OPERAND_P): Define.
5877         (PIC_OFFSET_TABLE_REGNUM): Define.
5878         (GOT_SYMBOL_NAME): Define.
5879         (SYMBOLIC_CONST_P): Define.
5880         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
5881         symbols.
5882         (MN10300_GLOBAL_P): Test it.
5883         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
5884         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
5885         * config/mn10300/mn10300.c (print_operand): Handle unspec.
5886         (expand_prologue): Set PIC register.
5887         (call_address_operand): Don't match SYMBOL_REFs in PIC.
5888         (legitimize_address): Call legitimize_pic_address.
5889         (legitimize_pic_address): New fn.
5890         (legitimate_pic_operand_p): New fn.
5891         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
5892         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
5893         UNSPEC_PLT): New constants.
5894         (pop_pic_reg): New insn.
5895         (movsi): Adjust non-PIC addresses.
5896         (builtin_setjmp_receiver): Restore the PIC register.
5897         (casesi): New insn.
5898         (call): Adjust non-PIC addresses.
5899         (int_label, GOTaddr2picreg): New expands.
5900         (am33_loadPC): New insn.
5901         (mn10300_loadPC): New expand.
5902         (call_next_insn): New insn.
5903         (add_GOT_to_pic_reg): New expand.
5904         (symGOT2reg, symGOT2reg_i): New expands.
5905         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
5906         (sym2PIC, sym2PLT): New expands.
5907
5908 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
5909
5910         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
5911         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
5912         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
5913         to flag_unsafe_math_optimizations.
5914         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
5915         * config/mn10300/mn10300.c (expand_prologue): Mark
5916         FP-register-saving insns as frame-related.
5917         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
5918         * config/mn10300/mn10300.c
5919         (mn10300_get_live_callee_saved_regs): Don't search past
5920         LAST_EXTENDED_REGNUM.
5921         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
5922         * config/mn10300/mn10300.md: Remove excessive line breaks from
5923         `@' output patterns that were accounted as additional
5924         alternatives.
5925         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
5926         Re-introduce changes accidentally removed in Richard Sandiford's
5927         2000-12-05's patch.
5928         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
5929         Re-instate am33-2 lost in merge from net GCC.
5930         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
5931         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
5932         floating-point registers.
5933         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
5934         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
5935         pessimizations that had gone in on 2000-05-08.
5936         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
5937         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
5938         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
5939         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
5940         operand 0.
5941         * (movhi): Likewise.
5942         * (movsi): Likewise.
5943         * (movsf): Likewise.
5944         * (movdi): Likewise.
5945         * (movdf): Likewise.
5946         Wed May 24 13:16:09 2000  Alexandre Oliva  <aoliva@cygnus.com>
5947         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
5948         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
5949         (expand_prologue, expand_epilogue): Save and restore FP regs.
5950         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
5951         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
5952         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
5953         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
5954         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
5955         Do not clobber cc0.
5956         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
5957         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
5958         Discourage the two-argument, longer opcodes.
5959         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
5960         ones.
5961         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
5962         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
5963         * config/mn10300/mn10300.md (cmpsf): New pattern.
5964         (branch): Test mdep.fpCC and output fbCC.
5965         * config/mn10300/mn10300.c (print_operand): Output conditions.
5966         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
5967         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
5968         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
5969         mulsf3, divsf3): Use the `F' constraint for FP values.
5970         * config/mn10300/mn10300.c (const_1f_operand): New function.
5971         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
5972         * config/mn10300/mn10300.md (sqrtsf2): New expand.
5973         (rsqrtsf2): New insn.
5974         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
5975         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
5976         previous check-in.
5977         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
5978         * config/mn10300/mn10300.md (abssf2, negdf2): On
5979         TARGET_AM33_2, expand to...
5980         (abssf2_am33_2, negdf2_am33_2): New insns.
5981         (addsf3, subsf3, mulsf3, divsf3): Likewise.
5982         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
5983         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
5984         movdi, movdf): Added FP regs.
5985         * invoke.texi (-mam33-2, -mno-am33-2): Document.
5986         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
5987         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
5988         New macros.
5989         (REGNO_AM33_2_FP_P): Renamed to...
5990         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
5991         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
5992         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
5993         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
5994         regs from GENERAL_REGS.
5995         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
5996         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
5997         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
5998         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
5999         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
6000         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
6001         as FP_REGS.
6002         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
6003         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
6004         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
6005         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
6006         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
6007         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
6008         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
6009         AM33/2.0 floating-point registers.
6010         (CONDITIONAL_REGISTER_USAGE): Adjust.
6011         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
6012         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
6013         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
6014         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
6015         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
6016         (MULTILIB_DIRNAMES): Likewise.
6017         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
6018         `__AM33_2__' when `-mam33-2' is given.
6019         (TARGET_AM33_2): Define.
6020         (TARGET_SWITCHES): Adjust.
6021         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
6022         when appropriate.
6023
6024 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
6025
6026         * doc/install.texi: Add missing @.
6027
6028 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
6029
6030         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
6031
6032 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
6033
6034         PR/11144
6035         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
6036
6037 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
6038
6039         PR bootstrap/11043
6040         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
6041         "x-crtfini.o" with "crtinit.o", "crtfini.o".
6042
6043         * fixinc/inclhack.def (limits_ifndefs): Add select test.
6044         * fixinc/fixincl.x: Rebuild.
6045
6046         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
6047         * fixinc/fixincl.x: Rebuild.
6048
6049 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
6050
6051         * doc/install.texi (Configuration): Document the valgrind option
6052         to --enable-checking.
6053
6054 Wed Jul  9 16:16:30 CEST 2003  Jan Hubicka  <jh@suse.cz>
6055
6056         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6057
6058 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6059
6060         * c-lex.c (cb_ident): Cast cstr.text to const char *.
6061
6062 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
6063
6064         * gcov-io.h: Update documentation.
6065         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
6066         GCOV_NOTE_MAGIC.
6067         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
6068         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
6069         (struct gcov_var): Change buffer's type. Add endian flag.
6070         (gcov_open): Remove mode in libgcov.
6071         (gcov_magic): Prototype.
6072         * gcov-io.c (from_file): New.
6073         (gcov_open): Clear endian flag.
6074         (gcov_magic): New.
6075         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
6076         pointers.
6077         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
6078         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
6079         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
6080         * gcov-iov.c (main): Correct cast.
6081         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
6082         conversion.
6083         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
6084         (coverage_init): Use GCOV_NOTE_SUFFIX.
6085         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
6086         Rename to gcov_version, and return flag.
6087         (gcov_exit): Use gcov_version.
6088         (__gcov_init): Use gcov_version.
6089         * Makefile.in (coverageexts): Update.
6090         * gcov.c (print_version): Remove endianness conversion.
6091         (create_file_names): Use GCOV_NOTE_SUFFIX.
6092         (read_graph_file): Use gcov_magic.
6093         (read_count_file): Likewise.
6094         * gcov-dump.c (dump_file): Remove endianness conversion, use
6095         gcov_magic.
6096
6097 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
6098
6099         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
6100         coverage is on.
6101         * configure: Regenerated.
6102         * Makefile.in (ALL_CFLAGS): Correct its comment.
6103
6104 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
6105
6106         * fold-const.c (make_range): Do not access operand 1 for a
6107         zero-operand operator.
6108
6109 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
6110
6111         * toplev.c (warn_dummy, W_options): Die.
6112         (display_help): Don't print W_options.
6113         * common.opt: Add W_options help from toplev.c.
6114
6115 2003-07-09  Andreas Jaeger  <aj@suse.de>
6116
6117         * opts.c (wrap_help): Only pass int arguments as arguments to
6118         printf's '*' modifier.  Change argument of function.
6119
6120 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
6121
6122         * doc/invoke.texi: Fix misspelling of "@item".
6123
6124 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
6125
6126         * config/i386/i386.md: Remove an old comment about
6127         NOTICE_UPDATE_CC.
6128
6129 Wed Jul  9 03:00:10 CEST 2003  Jan Hubicka  <jh@suse.cz>
6130
6131         * cgraph.c (cgraph_node_name): New function.
6132         (dump_cgraph): Use it.
6133         * cgraph.h (cgraph_dump_file): Declare.
6134         (cgraph_node_name): Declare.
6135         * cgraphunit.c: Include timevar.h
6136         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
6137         (cgraph_optimize_function): Use TV_INTEGRATION.
6138         (cgraph_mark_local_functions): reorganize dumps.
6139         (cgraph_mark_functions_to_inline_once): Likewise.
6140         (cgraph_optimize): Likewise; use timevar.
6141         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
6142         * toplev.c (dump_file_index): Add DFI_cgraph.
6143         (dump_file_info): Likewise.
6144         (cgraph_dump_file): New global variable.
6145         (do_compile): Open and close cgraph dump.
6146         * invoke.texi (-d): Document new flag; renumber.
6147
6148 2003-07-08  Roger Sayle  <roger@eyesopen.com>
6149
6150         PR c/11370
6151         * calls.c (emit_call_1): Don't bother popping the arguments off of
6152         the stack after a noreturn function call;  The adjustment is dead.
6153         (expand_call): Likewise.
6154
6155 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
6156
6157         * expr.c (MOVE_MAX_PIECES): Move from here...
6158         * defaults.h (MOVE_MAX_PIECES): ... to here.
6159
6160 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
6161
6162         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
6163
6164 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6165
6166         * genattr.c (internal_dfa_insn_code): Don't prototype.
6167         * genattrtab.c (attr_desc): Add `static_p' field.
6168         (expand_units): Make blockage range and ready cost functions
6169         static.
6170         (write_attr_get): Don't add extern prototypes in C file.  Mark
6171         static functions as appropriate.
6172         (find_attr, make_internal_attr): Initialize static_p.
6173         * genattrtab.h (ATTR_STATIC): New macro.
6174         * genautomata.c (output_internal_reset_func): Mark output function
6175         as inline.
6176         (make_internal_dfa_insn_code_attr): Mark output function as static.
6177
6178 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6179
6180         * genattrtab.h: Add new macros for attr `special' flags.
6181         * genattrtab.c (attr_desc): Reorder/resize fields better.
6182         Use attr `special' macros in all calls to make_internal_attr.
6183         * genautomata.c: Likewise.
6184
6185 Wed Jul  9 02:25:39 CEST 2003  Jan Hubicka  <jh@suse.cz>
6186
6187         * c-common.c (c_estimate_num_insns_1): New static function.
6188         (c_estimate_num_insns): New global function.
6189         * c-common.h (DECL_NUM_STMTS): Rename to...
6190         (DECL_ESTIMATED_INSNS): ... this.
6191         (c_estimate_num_insns): Declare.
6192         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
6193         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
6194         * c-semantics.c (add_stmt): Do not account statements.
6195         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
6196         New.
6197         * langhooks.h (lang_hooks_for_tree_inlining): Add
6198         estimate_num_insns
6199         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
6200         to 100.
6201         (max-inline-insns): set to 300.
6202         (min-inline-insns): set to 10.
6203         * tree-inline.c (struct inline_data): Rename inlined_stmts to
6204         inlined-insns.
6205         (INSNS_PER_STMT): Kill.
6206         (inlinable_function_p): Compute and store body size.
6207         (expand_call_inline): Likewise.
6208         (optimize_inline_calls): Likewise.
6209
6210 2003-07-08  James E Wilson  <wilson@tuliptree.org>
6211
6212         PR target/10021
6213         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
6214         loop over new variable t2 instead of t.
6215
6216 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
6217
6218         PR bootstrap/11455
6219         * config/i386/winnt.c: Replace use of error(), warning() with
6220         error_with_decl(), warning_with_decl(),  throughout.
6221
6222 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
6223
6224         * opts.c (wrap_help): Use unsigned int, not size_t.
6225
6226 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
6227
6228         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
6229         as .file/.loc directives are incompatible with linker relaxation.
6230
6231 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
6232
6233         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
6234         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
6235         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
6236         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
6237         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
6238         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
6239         Escape { and } characters which are not part of range expressions.
6240         * fixinc/fixincl.x: Regenerate.
6241         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
6242
6243 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
6244
6245         PR c/1687
6246         * tree-inline.c (find_alloca_call): Use
6247         walk_tree_without_duplicates, instead of walk_tree.
6248         (find_builtin_longjmp_call): Likewise.
6249         * c-objc-common.c (c_cannot_inline_fn): Likewise.
6250         * c-semantics.c (find_reachable_label): Likewise.
6251
6252 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
6253
6254         PR c/11420
6255         * config/i386/i386.c (ix86_check_movabs): New function.
6256         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
6257         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
6258         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
6259
6260 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
6261
6262         * Makefile.in (install-po): Cope with empty CATALOGS.
6263
6264 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
6265
6266         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6267         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
6268         (SECTION_FUNCTION_TEMPLATE): Delete.
6269         * config/mips/elf.h: As for elf64.h.
6270         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
6271         * config/mips/linux.h: As for elf.h
6272         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6273         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
6274         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
6275         of in_sdata from current_section_name and current_section_flags.
6276         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
6277         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
6278         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
6279         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
6280         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
6281         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
6282         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
6283         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
6284         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
6285         (override_options): Remove setting of MASK_GPOPT.
6286         (mips_output_external): Use mips_in_small_data_p to check whether a
6287         symbol needs an .extern directive.  Don't emit such directives for
6288         TARGET_EXPLICIT_RELOCS.
6289         (mips_declare_object): Update accordingly.
6290         (mips_select_rtx_section): Call named_section rather than
6291         SMALL_DATA_SECTION.
6292         (mips_select_section): Use default_elf_section_section for everything
6293         except .text string constants.
6294         (mips_in_small_data_p): New function.
6295         (mips_encode_section_info): Remove small data handling.
6296         (mips_unique_section): Delete.
6297         (iris6_section_type_flags): New function.
6298         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
6299
6300 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6301
6302         PR Target/11453
6303         * pa.md: Disparage all mtsar constraints.
6304         (extzv, extv, insv): Don't fail on length of {32|64}.
6305
6306 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
6307
6308         * system.h: Poison MAP_CHARACTER.
6309         * config/i370/i370-protos.h (mvs_map_char): Delete.
6310         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
6311         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
6312         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
6313
6314 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
6315
6316         * toplev.c (randomize): Correct call to time().
6317
6318 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
6319
6320         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
6321         REG_EQUIV notes as well.
6322
6323 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
6324
6325         * doc/md.texi: Fix the description of addmodecc.
6326
6327 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
6328
6329         * Makefile.in (top_builddir): Set to "..", not ".".
6330         (INTLLIBS, INTLDEPS): Delete.
6331         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
6332         (LIBDEPS): Add $(LIBICONV_DEP).
6333         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
6334         (INCLUDES): Replace -I../intl with @INCINTL@.
6335         ($(top_builddir)/intl/libintl.a): Delete rule.
6336         (stage2-start, stage3-start, stage4-start, stageprofile-start,
6337         stagefeedback-start): Use $$ for variable to be evaluated by
6338         shell, not make.
6339         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
6340         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
6341         * aclocal.m4: sinclude ../config/progtest.m4.  Add
6342         contents of lcmessage.m4 from gettext distro.
6343         * configure.in: Check for wchar.h and setlocale.  Set
6344         LIBICONV_DEP to the empty string and substitute it.
6345         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
6346         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
6347         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
6348         in $LIBINTL, to avoid linking it twice.
6349         * configure, config.in: Regenerate.
6350
6351 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
6352
6353         * fixinc/mkfixinc.sh: Remove winnt support.
6354         * fixinc/fixinc.winnt: Delete with extreme prejudice.
6355
6356 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
6357
6358         * Makefile.in: Update.
6359         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
6360         * c.opt: Update documentation.
6361         * common.opt: Add some help text.
6362         * opts.c: Include intl.h.
6363         (wrap_help, print_help): New.
6364         (find_opt, handle_option, common_handle_option): opt_text now
6365         contains the '-'.  Use print_help to output help.
6366         * opts.h (struct cl_option): New member "help".
6367         * opts.sh: Update to handle help text output and to prepend
6368         options with '-'.
6369         * toplev.c (display_help): Remove some help text.
6370
6371 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
6372             Fariborz Jahanian  <fjahanian@apple.com>
6373
6374         * configure.in: Test for PowerPC mfcr field support in assembler.
6375         * config.in, configure: Regenderated.
6376
6377         * config/rs6000/power4.md: Add mfcrf reservation.
6378         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
6379         * config/rs6000/rs6000.c (mfcr_operation): Define.
6380         (print_operand): Add 'Q' case for mfcrf.
6381         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
6382         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
6383         (movcc_internal1): Emit optional field operand for mfcr and set
6384         "type" attribute appropriately.
6385         (mfcr SCC): Likewise.
6386         (movesi_from_cr_one): New.
6387
6388 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6389
6390         * config/i386/i386.md: Correct check-in of incorrect version.
6391
6392 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6393
6394         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
6395         adjacent stdio calls.
6396         * c-decl.c (c_print_identifier): Likewise.
6397         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
6398         * print-rtl.c (print_rtx): Likewise.
6399         * print-tree.c (print_node_brief, print_node): Likewise.
6400         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
6401
6402         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
6403         * config.in, configure: Regenerated.
6404
6405 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6406
6407         PR target/10979
6408         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
6409         Changed to define_expand patterns that copy operand[1] to prevent
6410         it from being clobbered before emitting an atan2?f3_1 insn.
6411         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
6412         patterns that actually specify the behaviour of x87's FPATAN.
6413
6414 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
6415
6416         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
6417         clearing of SYMBOL_FLAG_LOCAL bit.
6418         If vcall_offset fits into signed 16-bit immediate, use
6419         one instruction for both addition and load.
6420
6421 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
6422
6423         * opts.c (common_handle_option): Correct handling of the
6424         -falign- switches that do and don't take an argument.
6425
6426 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6427
6428         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
6429         today.
6430         (pushhi1_h8300hs): Likewise.
6431
6432 2003-07-07  Andreas Jaeger  <aj@suse.de>
6433
6434         * genextract.c: Convert remaining prototypes to ISO C90.
6435
6436         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
6437         * fold-const.c (fold_single_bit_test): Likewise.
6438         * diagnostic.c (default_diagnostic_finalizer): Likewise.
6439         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
6440
6441         * gengtype.c (write_array): Generate ISO C90 prototypes.
6442
6443         * genflags.c (gen_proto): Generate ISO C90 prototypes.
6444
6445 2003-07-07  Roger Sayle  <roger@eyesopen.com>
6446
6447         PR optimization/11059
6448         * expr.c (can_store_by_pieces): Return true if length is zero.
6449         (store_by_pieces): If length is zero and endp is two, abort,
6450         othwerise, if length is zero and endp is not two, return "to".
6451         (clear_by_pieces): Do nothing if length is zero.
6452         (clear_storage): Do nothing if length is zero.
6453         (store_constructor): Simplify code when size is zero, or the
6454         target has already been cleared.  This avoids emitting a
6455         blockage instruction when initializing empty structures.
6456
6457 2003-07-07  Andreas Jaeger  <aj@suse.de>
6458
6459         * mips-tfile.c: Convert prototypes to ISO C90.
6460         * mips-tdump.c: Convert prototypes to ISO C90.
6461
6462 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
6463
6464         * rtl.h (emit_line_note): Take a location_t.
6465         (emit_line_note_force): Remove.
6466         (set_file_and_line_for_statement): Take a location_t.
6467         * tree.g (emit_line_note): Take a location_t.
6468         * emit-rtl.c (emit_line_note): Take a location_t.
6469         (emit_line_note_force): Remove.
6470         * function.c (init_function_start): Adjust emit_line_note call.
6471         (expand_function_end): Use force_next_line_note, not
6472         emit_line_note_force.
6473         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
6474         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
6475         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
6476         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
6477         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
6478         genrtl_continue_stmt, genrtl_switch_stmt,
6479         genrtl_asm_stmt): Likewise.
6480         * expr.c (expand_expr): Likewise.
6481         * integrate.c (expand_inline_function): Likewise.
6482         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
6483         (expand_decl_init): Adjust emit_line_note call.
6484
6485 2003-07-07  Dale Johannesen  <dalej@apple.com>
6486
6487         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
6488
6489 2003-07-07  Andreas Jaeger  <aj@suse.de>
6490
6491         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
6492         * config/i386/i386.c: Likewise.
6493
6494 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6495
6496         * config/h8300/h8300.md: Use gen_int_mode instead of
6497         GEN_INT (trunc_int_for_mode (...)).
6498
6499 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
6500
6501         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
6502         2 bytes and then subtract 2 from the stack pointer.
6503         (pushhi1_h8300hs): Likewise.
6504
6505 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
6506
6507         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
6508         -frandom-seed.
6509         * configure: Regenerated.
6510         * Makefile.in: Remove extraneous comment.
6511         * toplev.c (randomize): Protect against potential multiple calls.
6512         * doc/invoke.texi (-frandom-seed): Document use for in coverage
6513         files.
6514
6515 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6516             Eric Botcazou  <ebotcazou@libertysurf.fr>
6517
6518         PR optimization/11198
6519         * alias.c (objects_must_conflict_p): Return 1 if the types have
6520         the same alias set, not if the alias sets only conflict.
6521
6522 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
6523
6524         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
6525         (convert_cset): Change inbuf to type ICONV_CONST char.
6526         * Makefile.in (LIBS): Add LIBICONV.
6527
6528         * doc/invoke.texi (-falign-functions): Document that
6529         when n is zero then a machine-dependent default is used.
6530         (-falign-labels): Document that when n is zero then a
6531         machine-dependent default is used and that -falign-labels =1
6532         is equivalent to -fno-align-labels.
6533         (-falign-loops): Likewise.
6534         (-falign-jumps): Likewise.
6535
6536 2003-07-06  Art Haas  <ahaas@airmail.net>
6537
6538         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
6539         initializer syntax.
6540
6541 2003-07-06  James E Wilson  <wilson@tuliptree.org>
6542
6543         PR optimization/9812
6544         * rtl.h (mem_for_const_double): Delete prototype.
6545         * varasm.c (mem_for_const_double): Delete function.
6546         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
6547         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
6548         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
6549         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
6550         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
6551         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
6552         comment about confused support for XFmode constants.
6553
6554 Mon Jul  7 02:03:56 CEST 2003  Jan Hubicka  <jh@suse.cz>
6555
6556         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
6557
6558 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
6559
6560         * config/h8300/h8300.c: Fix comment typos.
6561         * config/h8300/h8300.md: Likewise.
6562         * config/i386/athlon.md: Likewise.
6563         * config/i386/i386.c: Likewise.
6564         * config/i386/pentium.md: Likewise.
6565         * config/ia64/ia64.c: Likewise.
6566         * config/ia64/itanium1.md: Likewise.
6567         * config/ia64/itanium2.md: Likewise.
6568         * config/m32r/m32r.md: Likewise.
6569         * config/m68hc11/m68hc11.c: Likewise.
6570         * config/mcore/mcore.c: Likewise.
6571         * config/mips/sr71k.md: Likewise.
6572         * config/mips/t-iris5-as: Likewise.
6573         * config/mmix/mmix.h: Likewise.
6574         * config/ns32k/ns32k.h: Likewise.
6575         * config/ns32k/NOTES: Fix a typo.
6576
6577 2003-07-06  Andreas Jaeger  <aj@suse.de>
6578
6579         * stmt.c: Convert remaining prototypes to ISO C90.
6580         * cfglayout.c: Likewise.
6581         * dbxout.c: Likewise.
6582         * gcc.c: Likewise.
6583         * genemit.c: Likewise.
6584
6585         * basic-block.h: Convert prototypes to ISO C90.
6586         * c-parse.in: Likewise.
6587         * c-pragma.h: Likewise.
6588         * c-typeck.c: Likewise.
6589         * cfghooks.h: Likewise.
6590         * cfgloopanal.c: Likewise.
6591         * dbxout.h: Likewise.
6592         * debug.h: Likewise.
6593         * dwarf2asm.h: Likewise.
6594         * gcov.c: Likewise.
6595         * gengtype-lex.l: Likewise.
6596         * sched-int.h: Likewise.
6597         * timevar.c: Likewise.
6598
6599 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
6600
6601         * c-common.h (c_comon_handle_filename,
6602         c_common_missing_arguement): New.
6603         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6604         LANG_HOOKS_MISSING_ARGUMENT): New.
6605         * c-opts.c (missing_arg): Rename c_common_missing_argument,
6606         update to be an appropriate langhook.
6607         (c_common_handle_option): Don't handle filenames.
6608         (c_common_handle_filename): New.
6609         * hooks.c (hook_void_constcharptr,
6610         hook_bool_constcharptr_size_t_false): New.
6611         * hooks.h (hook_void_constcharptr,
6612         hook_bool_constcharptr_size_t_false): New.
6613         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
6614         LANG_HOOKS_MISSING_ARGUMENT): New.
6615         (LANG_HOOKS_INITIALIZER): Update.
6616         * langhooks.h (struct lang_hooks): Add handle_filename and
6617         missing_argument.
6618         * opts.c (handle_option): Don't handle filenames here, but ...
6619         (handle_options): ... here.
6620         (common_handle_option): Don't handle missing arguments here.
6621         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
6622         LANG_HOOKS_MISSING_ARGUMENT): New.
6623
6624 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
6625
6626         * Makfile.in: Remove traces of mbchar.
6627         * c-parse.in (MULTIBYTE_CHARS): Remove.
6628         * config.in (MULTIBYTE_CHARS): Remove.
6629         * configure: Remove --enable-mbchar.
6630         * configure.in: Remove --enable-mbchar.
6631         * mbchar.c, mbchar.h: Remove.
6632         * system.h: Poison MULTIBYTE_CHARS.
6633         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
6634         * config/linux.h (MULTIBYTE_CHARS): Remove.
6635         * config/svr4.h (MULTIBYTE_CHARS): Remove.
6636         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
6637
6638 2003-07-06  Andreas Jaeger  <aj@suse.de>
6639
6640         * varray.c (varray_check_failed): Fix typo.
6641
6642         * unroll.c: Convert prototypes to ISO C90.
6643         * varasm.c: Likewise.
6644         * varray.c: Likewise.
6645         * varray.h: Likewise.
6646         * vmsdbgout.c: Likewise.
6647         * xcoffout.c: Likewise.
6648         * xcoffout.h: Likewise.
6649
6650 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6651
6652         * gcov-io.h: Add a local time stamp.
6653         (struct gcov_info): Add stamp field.
6654         (gcov_truncate): New.
6655         * coverage.c (read_counts_file): Skip the stamp.
6656         (coverage_begin_output): Write the stamp.
6657         (build_gcov_info): Declare and init the stamp.
6658         (coverage_finish): Only unlink data file, if stamp is zero.
6659         * gcov-dump.c (dump_file): Dump the stamp.
6660         * gcov.c (bbg_stamp): New.
6661         (release_structures): Clear bbg_stamp.
6662         (read_graph_file): Read stamp.
6663         (read_count_file): Check stamp.
6664         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
6665
6666 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6667
6668         * tree.h (default_flag_random_seed): Remove.
6669         * toplev.h (local_tick): Declare.
6670         * tree.c (flag_random_seed, default_flag_random_seed): Move to
6671         toplev.c.
6672         (append_random_chars): Don't call default_flag_random_seed.
6673         * toplev.c (flag_random_seed): Define here. Set local_tick.
6674         (local_tick): Define.
6675         (randomize): New, moved from tree.c.
6676         (print_switch_values): Adjust.
6677         (toplev_main): Call randomize.
6678
6679 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
6680
6681         * tree.h (crc32_string): Declare.
6682         * tree.c (append_random_chars): Remove.
6683         (crc32_string): New.
6684         (get_file_function_name_long): Use crc32_string here.
6685
6686 2003-07-06  Andreas Jaeger  <aj@suse.de>
6687
6688         * gcc.c: Convert prototypes to ISO C90.
6689         * gcc.h: Likewise.
6690         * gcov-dump.c: Likewise.
6691         * gcov-iov.c: Likewise.
6692         * gcse.c: Likewise.
6693         * genattrtab.h: Likewise.
6694         * ggc.h: Likewise.
6695         * global.c: Likewise.
6696         * graph.c: Likewise.
6697         * graph.h: Likewise.
6698         * hosthooks.h: Likewise.
6699         * hooks.h: Likewise.
6700         * hooks.c: Likewise.
6701         * hashtable.h: Likewise.
6702         * hashtable.c: Likewise.
6703         * haifa-sched.c: Likewise.
6704         * integrate.h: Likewise.
6705         * integrate.c: Likewise.
6706         * input.h: Likewise.
6707         * ifcvt.c: Likewise.
6708         * jump.c: Likewise.
6709         * langhooks-def.h: Likewise.  Add extern to prototypes.
6710         * langhooks.c: Likewise.
6711         * langhooks.h: Likewise.
6712         * lcm.c: Likewise.
6713         * local-alloc.c: Likewise.
6714         * loop-init.c: Likewise.
6715         * loop-unroll.c: Likewise.
6716         * loop-unswitch.c: Likewise.
6717         * loop.c: Likewise.
6718         * loop.h: Likewise. Add extern to prototypes.
6719         * machmode.h: Likewise.
6720         * main.c: Likewise.
6721         * mbchar.c: Likewise.
6722         * mbchar.h: Likewise.
6723         * mkdeps.c: Likewise.
6724         * mkdeps.h: Likewise.
6725         * optabs.c: Likewise.
6726         * optabs.h: Likewise.
6727         * output.h: Likewise.
6728         * gccspec.c: Likwise.
6729         * postreload.c: Likewise.
6730         * prefix.c: Likewise.
6731         * prefix.h: Likewise.
6732         * print-rtl.c: Likewise.
6733         * print-tree.c: Likewise.
6734         * profile.c: Likewise.
6735         * read-rtl.c: Likewise.
6736         * real.c: Likewise.
6737         * real.h: Likewise.
6738         * recog.c: Likewise.
6739         * recog.h: Likewise.
6740         * reg-stack.c: Likewise.
6741         * regclass.c: Likewise.
6742         * regmove.c: Likewise.
6743         * regrename.c: Likewise.
6744         * regs.h: Likewise.
6745         * reload.c: Likewise.
6746         * reload.h: Likewise.
6747         * reload1.c: Likewise.
6748         * reorg.c: Likewise.
6749         * resource.c: Likewise.
6750         * resource.h: Likewise.
6751         * rtl-error.c: Likewise.
6752         * rtl.c: Likewise.
6753         * rtl.h: Likewise.
6754         * rtlanal.c: Likewise.
6755         * sbitmap.c: Likewise.
6756         * sbitmap.h: Likewise.
6757         * scan-decls.c: Likewise.
6758         * scan.c: Likewise.
6759         * sched-deps.c: Likewise.
6760         * sched-ebb.c: Likewise.
6761         * sched-int.h: Likewise.
6762         * sched-rgn.c: Likewise.
6763         * sched-vis.c: Likewise.
6764         * sibcall.c: Likewise.
6765         * simplify-rtx.c: Likewise.
6766         * sreal.c: Likewise.
6767         * sreal.h: Likewise.
6768         * ssa-ccp.c: Likewise.
6769         * ssa-dce.c: Likewise.
6770         * ssa.c: Likewise.
6771         * ssa.h: Likewise.
6772         * stack.h: Likewise.
6773         * stmt.c: Likewise.
6774         * stor-layout.c: Likewise.
6775         * stringpool.c: Likewise.
6776         * target.h: Likewise.
6777         * timevar.c: Likewise.
6778         * timevar.h: Likewise.
6779         * tlink.c: Likewise.
6780         * tracer.c: Likewise.
6781         * tree-inline.c: Likewise.
6782         * tree-inline.h: Likewise.
6783         * tree.c: Likewise.
6784         * tree.h: Likewise.
6785
6786 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6787
6788         * combine.c (nonzero_bits1): Fix a warning.
6789
6790 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6791
6792         * config/h8300/h8300.c (compute_mov_length): Correct the
6793         length of loading CONST0_RTX (SFmode).
6794
6795 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
6796
6797         * toplev.c (output_clean_symbol_name): Remove.
6798         * toplev.h (output_clean_symbol_name): Remove.
6799         * config/alpha/alpha.c (unicosmk_output_module_name): Use
6800         lbasename & clean_symbol_name.
6801
6802 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6803
6804         * ggc.h: Follow spelling conventions.
6805         * config/i386/i386.c: Likewise.
6806         * config/i386/winnt.c: Likewise.
6807         * config/rs6000/rs6000.c: Likewise.
6808
6809 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
6810
6811         * bt-load.c: Fix comment typos.
6812         * c-incpath.c: Likewise.
6813         * cfg.c: Likewise.
6814         * cfgcleanup.c: Likewise.
6815         * cfgloop.h: Likewise.
6816         * cfgloopmanip.c: Likewise.
6817         * cfgrtl.c: Likewise.
6818         * diagnostic.h: Likewise.
6819         * dwarfout.c: Likewise.
6820         * emit-rtl.c: Likewise.
6821         * et-forest.c: Likewise.
6822         * et-forest.h: Likewise.
6823         * expr.c: Likewise.
6824         * gcse.c: Likewise.
6825         * genattr.c: Likewise.
6826         * jump.c: Likewise.
6827         * langhooks.h: Likewise.
6828         * local-alloc.c: Likewise.
6829         * loop-unroll.c: Likewise.
6830         * loop-unswitch.c: Likewise.
6831         * ra-build.c: Likewise.
6832         * regclass.c: Likewise.
6833         * regmove.c: Likewise.
6834         * rtl.def: Likewise.
6835         * rtlanal.c: Likewise.
6836         * sched-ebb.c: Likewise.
6837         * sched-rgn.c: Likewise.
6838         * simplify-rtx.c: Likewise.
6839         * ssa.c: Likewise.
6840         * tracer.c: Likewise.
6841         * tree.c: Likewise.
6842
6843 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
6844
6845         * cppcharset.c: Use the correct return type for the fallback iconv
6846         macro.
6847
6848 Sat Jul  5 16:18:53 CEST 2003  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6849
6850         Blame to Jan Hubicka  <jh@suse.cz>
6851         * cfglayout.c (record_effective_endpoints): Split insns before
6852         first basic block correctly.
6853
6854 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6855
6856         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
6857         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
6858         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
6859
6860 2003-07-05  Andreas Jaeger  <aj@suse.de>
6861
6862         * genattrtab.c (write_attr_get): Revert part of last patch to
6863         always write out a prototype.
6864
6865         * genemit.c (gen_split): Readd lost unused attributes in last
6866         patch.
6867
6868 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6869
6870         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
6871         different from header.
6872
6873 2003-07-05  Andreas Schwab  <schwab@suse.de>
6874
6875         * config/m68k/m68k.c: Remove code protected by CRDS.
6876         * config/m68k/m68k.md: Likewise.
6877
6878 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
6879
6880         PR driver/11417
6881         * c-opts.c (permit_fortran_options): New.
6882         (c_common_init_options): Accept fortran front end options if
6883         it looks like we might be preprocessing Fortran.
6884         (c_common_handle_option): Don't reject switch if permit_fotran_options.
6885
6886 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6887
6888         * genattr.c (internal_dfa_insn_code): Output prototype.
6889         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
6890         * genautomata.c: Likewise.
6891         * genconditions.c: Likewise.
6892         * genemit.c: Likewise.
6893         * genextract.c: Likewise.
6894         * gengenrtl.c: Likewise.
6895         * gengtype.c: Likewise.
6896         * genopinit.c: Likewise.
6897         * genoutput.c: Likewise.
6898         * genpeep.c: Likewise.
6899         * genrecog.c: Likewise.
6900
6901 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
6902
6903         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
6904         (struct cpp_options): Add narrow_charset, wide_charset,
6905         bytes_big_endian fields.  Remove EBCDIC field.
6906         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
6907
6908         * cpphash.h: Include <iconv.h> if we have it, otherwise
6909         provide a dummy definition of iconv_t.
6910         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
6911         (_cpp_valid_ucn): Update prototype.
6912         (_cpp_destroy_iconv): New prototype.
6913
6914         * doc/cpp.texi: Document character set handling.
6915         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
6916         * doc/extend.texi: Delete entire section on multiline strings.
6917         Rewrite section on __FUNCTION__ etc now that these are
6918         variables in C.
6919
6920         * cppucnid.tab, cppucnid.pl: New files.
6921         * cppucnid.h: New generated file.
6922         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
6923         (iconv_open, iconv, iconv_close): Provide dummy definitions
6924         if !HAVE_ICONV.
6925         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
6926         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
6927         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
6928         cpp_interpret_string, narrow_str_to_charconst,
6929         wide_str_to_charconst): New.
6930         (ucn_valid_in_identifier): Use a binary search through the
6931         ucnranges table defined in cppucnid.h, not a long chain of if
6932         statements.
6933         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
6934         character names are only valid in C++ and C99" to a warning.
6935         Issue the "meaning of \[uU] is different in traditional C"
6936         warning here.  Take care not to let iconv see an invalid UCS
6937         value if we get a malformed UCN.  Issue an error if we don't
6938         have iconv.
6939         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
6940         cpp_interpret_string to do the heavy lifting.
6941
6942         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
6943         narrow_charset, wide_charset fields of options structure.
6944         (cpp_destroy): Call _cpp_destroy_iconv.
6945         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
6946         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
6947         (cpp_interpret_charconst): Moved to cppcharset.c.
6948         * cpplib.c (dequote_string): Delete.
6949         (interpret_string_notranslate): New.
6950         (do_line, do_linemarker): Use interpret_string_notranslate.
6951
6952         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
6953
6954         * c-common.c (fname_string, combine_strings): Delete.
6955         * c-common.h (fname_string, combine_strings): Delete prototypes.
6956         * c-lex.c (ignore_escape_flag): Delete.
6957         (cb_ident): Use cpp_interpret_string, not lex_string.
6958         (get_nonpadding_token): New function.
6959         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
6960         Adjust calls to lex_string.  Don't write *value twice.
6961         (lex_string): Now handles string constant concatenation.
6962         Most of the work handed off to cpp_interpret_string.
6963         Call fix_string_type here.
6964         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
6965         FUNC_NAME, throughout.
6966         (OBJC_STRING): New token type.
6967         (primary:STRING): No need to call fix_string_type here.
6968         (primary:objc_string): Make that OBJC_STRING.
6969         (objc_string nonterminal): Delete.
6970         (yylexname): Delete code to handle fake string constants.
6971         (yylexstring): Delete entirely.
6972         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
6973         to handle CPP_ATSIGN.
6974
6975         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
6976         * c-opts.c (missing_arg, c_common_handle_option): Handle
6977         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
6978         (c_common_init): Set cpp_opts->bytes_big_endian, not
6979         cpp_opts->EBCDIC.  Call cpp_init_iconv.
6980         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
6981         (TARGET_EBCDIC): Delete default definition.
6982
6983         * objc/objc-act.c (build_objc_string_object): No need to
6984         handle string constant concatenation.
6985
6986 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
6987
6988         * doc/install.texi: Fix typos.
6989         * doc/invoke.texi: Likewise.
6990         * doc/tm.texi: Likewise.
6991
6992 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
6993
6994         * config/pa/fptr.c: Fix comment typos.
6995         * config/pa/pa-64.h: Likewise.
6996         * config/pa/pa.c: Likewise.
6997         * config/pa/pa.h: Likewise.
6998         * config/rs6000/603.md: Likewise.
6999         * config/rs6000/7xx.md: Likewise.
7000         * config/rs6000/darwin.h: Likewise.
7001         * config/rs6000/freebsd.h: Likewise.
7002         * config/rs6000/rs6000.c: Likewise.
7003         * config/rs6000/rs6000.md: Likewise.
7004         * config/rs6000/spe.h: Likewise.
7005
7006 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
7007
7008         * config/s390/2064.md: Change GNU CC to GCC.
7009         * config/s390/2084.md: Likewise.
7010         * config/s390/fixdfdi.h: Likewise.
7011         * config/s390/linux.h: Likewise.
7012         * config/s390/s390-modes.def: Likewise.
7013         * config/s390/s390-protos.h: Likewise.
7014         * config/s390/s390.c: Likewise.
7015         * config/s390/s390.h: Likewise.
7016         * config/s390/s390.md: Likewise.
7017         * config/s390/s390x.h: Likewise.
7018
7019 2003-07-04  Jeff Law  <law@redhat.com>
7020
7021         PR c/11428
7022         * expr.c (do_store_flag): Pass in the correct result type
7023         when calling fold_single_bit_test.
7024         * fold-const.c (fold_single_bit_test): Use result_type for the
7025         result when folding a sign bit test.
7026
7027 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
7028
7029         * opts.c (common_handle_options): Negate sense of -falign- switches.
7030
7031 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
7032
7033         * Makefile.in: Replace PWD with PWD_COMMAND.
7034
7035 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7036
7037         * cfgloopanal.c (count_strange_loop_iterations): New static function.
7038         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
7039         Handle strange loops.
7040
7041 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
7042
7043         * install.texi: Even the g77 manpage is derived from
7044         the full g77 manual.
7045
7046 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
7047
7048         * ABOUT-NLS: Delete.
7049         * intl: Delete entire directory.
7050         * aclocal.m4: Include ../config/gettext.m4.  Delete
7051         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
7052         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
7053         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
7054         Remove intl/Makefile from all_outputs.
7055         * configure, config.in: Regenerate.
7056         * Makefile.in: Expunge all references to intl subdirectory.
7057         Add -I../intl to INCLUDES.
7058         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
7059
7060 2003-07-04  Roger Sayle  <roger@eyesopen.com>
7061
7062         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
7063         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
7064
7065 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
7066
7067         PR c++/5287, PR c++/7910, PR c++/11021
7068         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
7069         dllimport attribute if function is defined at declaration, but
7070         report error instead. Likewise for dllimport'd variable
7071         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
7072         declared within functions, Report error if dllimport or dllexport
7073         symbol is not global.
7074         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
7075         if defined after declaration or if inlined. Don't allow definition
7076         of static data members of C++ classes. Don't dllimport virtual
7077         methods.
7078         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
7079         (i386_pe_mark_dllimport): Remove unnecessary checks.
7080         (i386_pe_encode_section_info): Warn if the dllimport attribute
7081         and symbol prefix have been instantiated and then overridden.
7082
7083         * doc/extend.texi: Document dllimport and dllexport attributes.
7084
7085         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
7086
7087 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
7088
7089         * config/kaos.h (CPP_PREDEFINES): Delete.
7090         (TARGET_OS_CPP_BUILTINS): New.
7091
7092 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7093
7094         * c-aux-info.c: Include toplev.h after c-tree.h.
7095         * c-common.c: Likewise.
7096         (GCC_DIAG_STYLE): Undef.
7097         * c-semantics.c (GCC_DIAG_STYLE): Define.
7098         * c-tree.h (GCC_DIAG_STYLE): Likewise.
7099         * diagnostic.h (inform): Move prototype to toplev.h.
7100         * jump.c: Include diagnostic.h before toplev.h.
7101         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
7102         (warning, error, fatal_error, pedwarn, sorry, inform,
7103         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
7104
7105 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7106
7107         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
7108         at all if edge is not specified.
7109         (can_copy_bbs_p, copy_bbs): New.
7110         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
7111         * cfgloop.c (get_loop_body): Comment more precisely.
7112         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
7113         (scale_bbs_frequencies): Fix comment typo.
7114         (can_duplicate_loop_p): Use can_copy_bbs_p.
7115         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
7116
7117 2003-07-03  Devang Patel <dpatel@apple.com>
7118
7119         * c-opts.c (c_common_parse_file): Remove extra
7120         debug_hooks->start_source_file call.
7121
7122 2003-07-03  Roger Sayle  <roger@eyesopen.com>
7123
7124         * real.c (real_trunc, real_floor, real_ceil): New functions
7125         to implement trunc, floor and ceil respectively.
7126         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
7127         * builtins.c (integer_valued_real_p): New function to test if
7128         a floating point expression has an integer valued result.
7129         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
7130         foo(x) where foo is an integer rounding function.  Similarly,
7131         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
7132         (double)(int)x when both foo and bar are integer rounding
7133         functions and we don't need to honor errno.
7134         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
7135         New functions to fold trunc, floor and ceil.
7136         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
7137         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
7138         to fold BUILT_IN_CEIL*.
7139         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
7140         the remaining integer rounding functions.
7141
7142 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7143
7144         * config/sparc/sparc.c (function_arg_partial_nregs): Use
7145         SPARC_INT_ARG_MAX to determine where to split unnamed
7146         complex FP arguments.
7147
7148 Thu Jul  3 20:36:47 CEST 2003  Jan Hubicka  <jh@suse.cz>
7149
7150         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
7151         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
7152         (merge_blocks_move_predecessor_nojumps,
7153          merge_blocks_move_successor_nojumps): Use merge_blocks.
7154         (try_optimize_cfg): Use merge_blocks_move.
7155         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
7156         (merge_blocks_nomove): Rename to rtl_merge_blocks.
7157         (cfg_layout_create_basic_block): New.
7158         (rtl_can_merge_blocks): New.
7159         (cfg_layout_split_block): Do not alloc aux by hand.
7160         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
7161         merge_blocks.
7162         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
7163         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
7164         * cfgloopmanip.c (loop_split_edge_with): Likewise.
7165         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
7166
7167         * basic-block.h (basic_block_def): Add field 'rbi'.
7168         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
7169         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
7170         * cfg.c (entry_exit_blocks): Add new field.
7171         * cfglayout.c: Include alloc-pool.h;
7172         (cfg_layout_pool): New.
7173         (record_effective_endpoints, fixup_reorder_chain,
7174         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
7175         of rbi.
7176         (cfg_layout_initialize_rbi): New function.
7177         (cfg_layout_initialize): Use it.
7178         (cfg_layout_finalize): Clear rbi fields.
7179         * cfglayout.h (RBI): Kill.
7180         (cfg_layout_initialize_rbi): Declare.
7181         * cfgloopmanip.c (copy_bbs): Use rbi.
7182         (record_exit_edges): Likewise.
7183         (duplicate_loop_to_header_edge): Likewise.
7184         * cfgrtl.c (cfg_layout_create_basic_block): Use
7185         cfg_layout_initialize_rbi.
7186         (cfg_layout_split_block): Use rbi.
7187         (cfg_layout_delete_block): Likewise.
7188         * loop-init.c (loop_optimizer_finalize): Likewise.
7189         * loop-unswitch.c (unswitch_loop): Likewise.
7190         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
7191
7192         * cfgrtl.c: Update comments.
7193         (try_redirect_by_replacing_jump): New argument.
7194         (redirect_branch_edge): Break out from ...
7195         (rtl_redirect_edge_and_branch): ... this one.
7196         (update_cfg_after_block_merging): Break out from ...
7197         (rtl_merge_blocks): ... this one.
7198         (cfg_layout_split_edge): New.
7199         (cfg_layout_merge_blocks): New.
7200         (cfg_layout_can_merge_blocks_p): New.
7201         (cfg_layout_redirect_edge_and_branch): Reorganize.
7202         (cfg_layout_rtl_cfg_hooks): Fill in.
7203         (cfg_layout_delete_block): Kill barriers.
7204         * cfganal.c (can_fallthru): Deal with exit blocks
7205         * cfglayout.c (cfg_layout_function_header): New function
7206         (record_effective_endpoints): Record function header.
7207         (fixup_reorder_chain): Fixup dead jumptables; place header
7208
7209         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
7210         * bb-reorder.c (cfg_layout_initialize): Update call.
7211         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
7212         edges in cfglayout mode.
7213         * cfglayout.c (cleanup_unconditional_jumps): Kill.
7214         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
7215         * cfglayout.h (cfg_layout_initialize): Update prototype.
7216         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
7217         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
7218         * flow.c (propagate_block): Do not crash when basic block ends
7219         by first insn in the chain.
7220         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
7221         do loop discovery.
7222         * tracer.c (tracer): Update call of cfg_layout_initialize.
7223
7224 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7225
7226         * Makefile.in: Use dependency variables in lieu of explicit
7227         files throughout.
7228
7229 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
7230
7231         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
7232         * tree.h: ...to here.
7233
7234 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
7235
7236         * config/s390/2064.md: Fix comment typos.
7237         * config/s390/2084.md: Likewise.
7238         * config/s390/s390.c: Likewise.
7239         * config/s390/s390.md: Likewise.
7240         * config/sh/sh.c: Likewise.
7241         * config/sh/sh.h: Likewise.
7242         * config/sh/sh.md: Likewise.
7243         * config/sparc/sparc.c: Likewise.
7244         * config/sparc/sparc.h: Likewise.
7245         * config/sparc/sparc.md: Likewise.
7246         * config/stormy16/stormy16.c: Likewise.
7247         * config/stormy16/stormy16.h: Likewise.
7248         * config/stormy16/stormy-abi: Fix a typo.
7249
7250 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
7251
7252         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
7253
7254 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7255
7256         * config/mips/mips.h (save_argv): Delete.
7257
7258 2003-07-03  Roger Sayle  <roger@eyesopen.com>
7259
7260         PR target/10700
7261         * fold-const.c (extract_muldiv_1): There's nothing that can be done
7262         if the expression is a SAVE_EXPR.
7263
7264 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
7265
7266         * config/m32r/m32r.c: Fix comment typos.
7267         * config/m68hc11/m68hc11.c: Likewise.
7268         * config/m68hc11/m68hc11.h: Likewise.
7269         * config/m68k/m68k.c: Likewise.
7270         * config/mcore/mcore.c: Likewise.
7271         * config/mcore/mcore.h: Likewise.
7272         * config/mcore/mcore.md: Likewise.
7273         * config/mips/mips.c: Likewise.
7274         * config/mips/mips.h: Likewise.
7275         * config/mips/mips.md: Likewise.
7276         * config/mips/netbsd.h: Likewise.
7277         * config/mn10300/mn10300.c: Likewise.
7278
7279 2003-07-03  Andreas Schwab  <schwab@suse.de>
7280
7281         * dbxout.c (pending_bincls): Move decl down inside
7282         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
7283
7284 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
7285
7286         * rtl.h (NOTE_DATA): Refer to whole union.
7287         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
7288
7289 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
7290
7291         PR optimization/11381
7292         * simplify-rtx.c (simplify_relational_operation): Check that
7293         two equal operands have no side-effects before simplifying
7294         the comparison.
7295
7296 2003-07-02  Jeff Law  <law@redhat.com>
7297
7298         * expr.c (do_store_flag): Remove special case folding for
7299         single bit tests.  Instead call back into the commonized folder
7300         routine.
7301         * fold-const.c (fold_single_bit_test): New function, mostly
7302         extracted from do_store_flag, with an additional case extracted
7303         from fold.
7304         (fold): Call fold_single_bit_test appropriately.
7305         * tree.h (fold_single_bit_test): Prototype.
7306
7307 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
7308
7309         * system.h: Include filenames.h.
7310         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
7311         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
7312         define based on HAVE_DOS_BASED_FILE_SYSTEM.
7313         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
7314         * config/i386/xm-mingw32.h: Don't define
7315         HAVE_DOS_BASED_FILE_SYSTEM,
7316         DIR_SEPARATOR, or DIR_SEPARATOR_2.
7317         * doc/hostconfig.texi: Update to match.
7318
7319         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
7320         config/i386/cygwin.h:
7321         Use IS_ABSOLUTE_PATH throughout.
7322         * gcc.c (DIR_UP): Delete, unused.
7323         * protoize.c (IS_SAME_PATH): Define in terms of
7324         FILENAME_CMP.
7325         (is_abspath): Delete.
7326
7327 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
7328
7329         * config/i386/emmintrin.h: Fix comment typos.
7330         * config/i386/i386.c: Likewise.
7331         * config/i386/i386.h: Likewise.
7332         * config/i386/sco5.h: Likewise.
7333         * config/ia64/ia64.c: Likewise.
7334         * config/ia64/itanium2.md: Likewise.
7335
7336 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
7337
7338         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
7339         DBX_USE_BINCL.
7340         (emit_bincl_stab): Same.
7341         (emit_pending_bincls): Same.
7342
7343 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
7344
7345         * config/h8300/h8300.c (compute_mov_length): Fix the length of
7346         loading CONST0_RTX (SFmode).
7347         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
7348         'G' to CONST0_RTX (SFmode).
7349         * config/h8300/h8300.md (movsf_h8300): Change the first
7350         constraint to 'G'.
7351         (movsf_h8300h): Likewise.
7352
7353 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
7354
7355         * c-common.h (c_common_init_options): New prototype.
7356         * c-opts.c (deferred_size): Remove.
7357         (defer_opt): Array is now pre-allocated.
7358         (c_common_init_options): Pre-allocate deferred_opts.  Make
7359         lang_flags unsigned.
7360         (push_command_line_options): Free deferred_opts.
7361         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
7362         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
7363         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
7364         * langhooks.h (struct lang_hooks): New prototype for init_options.
7365         * main.c (main): Cast argv.
7366         * opts.c (handle_option, handle_options): Update prototypes.
7367         (decode_options): save_argc, save_argv are not global.  Constify.
7368         * opts.h (decode_options): New prototype.
7369         * toplev.c (general_init): New protoype.
7370         (save_argv): Make static.
7371         (save_argc): Remove.
7372         (print_switch_values, general_init): Constify.
7373         (toplev_main): Save argv.
7374         * toplev.h (toplev_main): Update prototype.
7375         (save_argc, save_argv): Remove.
7376
7377 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
7378
7379         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
7380         (emit_bincl_stab): Same.
7381         (emit_pending_bincls): Same.
7382
7383 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
7384
7385         PR c++/11072
7386         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
7387
7388 2003-07-02  Andreas Schwab  <schwab@suse.de>
7389
7390         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
7391
7392 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
7393
7394         PR optimization/11210
7395         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
7396         about the behaviour with regard to bitfields.
7397         * fold-const (decode_field_reference): Record outermost type in
7398         case the expression is a NOP. Strip all NOPs. Set the signedness
7399         to that of the outermost type (if any) when the bitsize is equal
7400         to the size of the type.
7401
7402 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
7403
7404         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
7405         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
7406         (adddi3_internal_3, addsi3_internal_2): Likewise.
7407
7408 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
7409
7410         * config/mips/mips.c (machine_function): Add new fields:
7411         ignore_hazard_length_p and all_noreorder_p.
7412         (mips_flag_delayed_branch): New variable.
7413         (override_options): Treat '/' as an operand punctuation character.
7414         Set up mips_flag_delayed_branch.
7415         (print_operand): Handle '/'.
7416         (mips_output_function_prologue): Put the whole function in
7417         .set noreorder and .set nomacro if all_noreorder_p is true.
7418         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
7419         (mips16_optimize_gp): Remove "first insn" parameter.
7420         (mips16_lay_out_constants): New function, split out from mips_reorg.
7421         (mips_avoid_hazard, mips_avoid_hazards): New functions.
7422         (mips_reorg): For mips16 code, call mips16_lay_out_constant
7423         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
7424         do delayed-branch scheduling followed by hazard detection.
7425         (mips_adjust_insn_length): Only account for hazards if
7426         !ignore_hazard_length_p.
7427         (mips_output_load_label): Add a nop to the o32 sequence if
7428         the target suffers from load delays.
7429         (mips_output_conditional_branch): Add %/ to the end of branches.
7430         (mips_output_division): Fill the branch delay slot with %#.
7431         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
7432         instructions.  End all other %* branches with %/.
7433         (ffssi2, ffsdi2): Fix lengths.
7434         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
7435         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
7436         (fix_truncsfsi2_macro): Likewise.
7437         (mov_lwl): Set hazard to "none".
7438         (ashldi3_internal): Fill the branch delay slot with %#.
7439         (ashrdi3_internal, lshrdi3_internal): Likewise.
7440         (exception_receiver): Explicitly set $28.
7441         (hazard_nop): New pattern.
7442
7443 Wed Jul  2 08:12:36 CEST 2003  Jan Hubicka  <jh@suse.cz>
7444
7445         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
7446         before calling tree_inlinable_function_p.
7447
7448 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7449
7450         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
7451         <internal/stdio_core.h> too.
7452         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
7453         <internal/wchar_core.h> too.
7454         Substitute va_list uses in inline definition.
7455         * fixinc/fixincl.x: Regenerate.
7456
7457 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7458
7459         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
7460         Undef before redefinition.
7461         (LABEL_AFTER_LOC): Likewise.
7462         (DEFAULT_SIGNED_CHAR): Likewise.
7463         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
7464         Fix IRIX spelling.
7465
7466         * config/mips/iris3.h: Remove, unused.
7467         * config/mips/iris4.h: Likewise.
7468
7469         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
7470
7471         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
7472         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
7473         target_cpu_default.
7474
7475         * config/mips/iris5.h: Move explicit includes ...
7476         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
7477
7478         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
7479         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7480         tm_defines.
7481
7482         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
7483         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
7484         target_cpu_default.
7485
7486         * config/mips/iris6.h: Fix IRIX spelling.
7487         (MULTILIB_DEFAULTS): Undef before redefinition.
7488
7489         * config/mips/iris6.h: Move explicit includes ...
7490         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
7491
7492 Wed Jul  2 02:16:48 CEST 2003  Jan Hubicka  <jh@suse.cz>
7493
7494         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
7495         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
7496         Use next_needed field instead of aux to maintain the queue.
7497         * cgraph.h (cgraph_node): Add next_needed.
7498         (cgraph_varpool_node): Add next_needed; remove aux.
7499         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
7500
7501 Wed Jul  2 02:12:51 CEST 2003  Jan Hubicka  <jh@suse.cz>
7502
7503         * cgraphunit.c (cgraph_finalize_function): Set finalized.
7504         (cgraph_finalize_function): Do not examine inlinablility.
7505         (cgraph_finalize_compilation_unit): Do it here.
7506         * cgraph.h (cgraph_local_info): Add finalized field.
7507
7508 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7509
7510         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
7511         (gt_pch_restore): Likewise.
7512
7513 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7514
7515         * config/alpha/alpha.c: Fix comment typos.
7516         * config/alpha/elf.h: Likewise.
7517         * config/arm/arm.c: Likewise.
7518         * config/arm/arm.h: Likewise.
7519         * config/arm/arm.md: Likewise.
7520         * config/arm/t-arm-coff: Likewise.
7521         * config/arm/t-strongarm-pe: Likewise.
7522         * config/arm/xscale-elf.h: Likewise.
7523         * config/avr/avr.h: Likewise.
7524
7525 2003-07-01  Jeff Law  <law@redhat.com>
7526
7527         * stmt.c (any_pending_cleanups): Remove another redundant test.
7528
7529 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
7530             J"orn Rennecke <joern.rennecke@superh.com>
7531
7532         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
7533         for MEM case.
7534
7535 2003-07-01  Devang Patel  <dpatel@apple.com>
7536
7537         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
7538         (binclstatus): New.
7539         (struct dbx_file): New members - bincl_status, pending_bincl_name and
7540         prev.
7541         (pending_bincls): New.
7542         (dbxout_init): Initialize new dbx_file members.
7543         (dbxout_start_source_file): Same.
7544         (emit_bincl_stab): New function.
7545         (emit_pending_bincls): Same.
7546         (emit_pending_bincls_if_required): Same.
7547         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
7548         processed.
7549         (dbxout_begin_block): Emit pending BINCL stabs.
7550         (dbxout_end_block): Same.
7551         (dbxout_function_decl): Same.
7552         (dbxout_continue): Same.
7553         (dbxout_type): Same.
7554         (dbxout_class_name_qualifiers): Same.
7555         (dbxout_symbol): Same.
7556         (dbxout_symbol_location): Same.
7557         (dbxout_parms): Same.
7558
7559 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7560
7561         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
7562         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
7563
7564 2003-07-01  Andreas Jaeger  <aj@suse.de>
7565
7566         * fold-const.c: Convert prototypes to ISO C90.
7567         * function.c: Likewise.
7568         * function.h: Likewise.
7569
7570 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7571
7572         * doc/contrib.texi: Fix typos.
7573         * doc/invoke.texi: Likewise.
7574         * doc/passes.texi: Likewise.
7575         * doc/sourcebuild.texi: Likewise.
7576         * doc/tm.texi: Likewise.
7577
7578 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
7579
7580         * basic-block.h: Fix comment typos.
7581         * bb-reorder.c: Likewise.
7582         * c-format.c: Likewise.
7583         * cfgcleanup.c: Likewise.
7584         * cfghooks.h: Likewise.
7585         * cfgloop.c: Likewise.
7586         * cfgloopmanip.c: Likewise.
7587         * cfgrtl.c: Likewise.
7588         * cgraph.h: Likewise.
7589         * cgraphunit.c: Likewise.
7590         * combine.c: Likewise.
7591         * convert.c: Likewise.
7592         * dbxout.c: Likewise.
7593         * df.c: Likewise.
7594         * df.h: Likewise.
7595         * diagnostic.c: Likewise.
7596         * dwarf2out.c: Likewise.
7597         * et-forest.h: Likewise.
7598         * flow.c: Likewise.
7599         * fold-const.c: Likewise.
7600         * function.h: Likewise.
7601         * gcov-io.h: Likewise.
7602         * gcov.c: Likewise.
7603         * gcse.c: Likewise.
7604         * genautomata.c: Likewise.
7605         * ggc-common.c: Likewise.
7606         * ggc-page.c: Likewise.
7607         * loop-unroll.c: Likewise.
7608         * loop-unswitch.c: Likewise.
7609         * loop.c: Likewise.
7610         * mips-tfile.c: Likewise.
7611         * optabs.c: Likewise.
7612         * ra-build.c: Likewise.
7613         * ra-colorize.c: Likewise.
7614         * ra-rewrite.c: Likewise.
7615         * ra.h: Likewise.
7616         * regmove.c: Likewise.
7617         * reload.c: Likewise.
7618         * rtlanal.c: Likewise.
7619         * sched-ebb.c: Likewise.
7620         * sched-int.h: Likewise.
7621         * sched-vis.c: Likewise.
7622         * sreal.c: Likewise.
7623         * ssa-ccp.c: Likewise.
7624         * ssa.c: Likewise.
7625         * toplev.c: Likewise.
7626         * tree-inline.c: Likewise.
7627         * value-prof.c: Likewise.
7628         * value-prof.h: Likewise.
7629
7630 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
7631
7632         * rtl.h (emit_line_note_after): Remove.
7633         (emit_note_copy_after, emit_note_copy): New.
7634         * emit-rtl.c (reorder_insns_with_line_notes): Replace
7635         emit_line_note_after with emit_note_copy_after.
7636         (emit_insn_after_with_line_notes): Likewise.
7637         (emit_line_note_after): Kill.
7638         (emit_note_copy_after): New.
7639         (emit_note_copy): New.
7640         * function.c (emit_return_into_block): Use emit_note_copy_after.
7641         (thread_prologue_and_epilogue_insns): Likewise.
7642         * integrate.c (expand_inline_function): Use emit_note_copy.
7643         (copy_insn_list): Likewise.
7644         * unroll.c (copy_loop_body): Likewise.
7645         * cfglayout.c (duplicate_insn_chain): Likewise.
7646
7647 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
7648
7649         * c-tree.h (define_label): Replace filename and lineno arguments
7650         with a location_t.
7651         * c-decl.c (poplevel): Adjust define_label call.
7652         (pop_label_level): Likewise.
7653         (define_label): Replace filename and lineno arguments with a
7654         location_t.
7655         (store_parm_decls): Use DECL_SOURCE_LOCATION.
7656         * c-parse.in (label): Adjust define_label call.
7657
7658 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
7659
7660         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
7661         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
7662         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
7663         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
7664         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
7665
7666 2003-07-01  Andreas Jaeger  <aj@suse.de>
7667
7668         * final.c: Convert prototypes to ISO C90.
7669         * flow.c: Likewise.
7670         * flags.h: Likewise.
7671         * gcov-io.c: Likewise.
7672         * gcov-io.h: Likewise.
7673
7674 See ChangeLog.9 for earlier changes.