OSDN Git Service

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