darwin-protos.h (machopic_non_lazy_ptr_name): Delete prototype.
[platform/upstream/gcc.git] / gcc / ChangeLog
1 2003-10-15  Geoffrey Keating  <geoffk@apple.com>
2
3         * config/darwin-protos.h (machopic_non_lazy_ptr_name): Delete
4         prototype.  Clean up some whitespace.
5         * config/darwin.c: Use gen_rtx_FOO (...) rather than 
6         gen_rtx (FOO, ...).  
7         (machopic_non_lazy_ptr_name): Make static.
8         (name_needs_quotes): Allow '.' and '$' unquoted.
9         (machopic_legitimize_pic_address): Improve codegen in dynamic-no-pic
10         case.
11         
12 2003-10-15  Gábor Lóki  <alga@rgai.hu>
13
14         * fold-const.c (tree_swap_operands_p): disables
15         some features when optimizing for size.
16
17 2003-10-15  David Daney  <ddaney@avtrex.com>
18
19         * config/mips/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New
20         * config/mips/mips.h (DWARF_FRAME_REGNUM): Fixed to allow unwind
21         from leaf functions.
22         (DWARF_FRAME_RETURN_COLUMN): Ditto.
23         (SIGNAL_UNWIND_RETURN_COLUMN): New, used
24         by MD_FALLBACK_FRAME_STATE_FOR.
25         * testsuite/gcc.dg/cleanup-9.c: Added mips*-*-linux* target.
26
27 2003-10-15  Zack Weinberg  <zack@codesourcery.com>
28
29         * genmodes.c: Include hashtab.h.
30         (modes_by_name, hash_mode, eq_mode, struct mode_adjust)
31         (adj_bytesize, adj_alignment, adj_format, new_adjust)
32         (_ADD_ADJUST, ADJUST_BYTESIZE, ADJUST_ALIGNMENT, ADJUST_FORMAT)
33         (print_maybe_const_decl, emit_mode_adjustments): New.
34         (known_modes): Rename to modes.
35         (find_mode): Kill class argument; look up in hash table.
36         (new_mode): Insert into hash table also.
37         (new_adjust): New.
38         (reset_float_format, make_partial_integer_mode)
39         (make_vector_mode): Tweak error reporting.
40         (reset_float_format): Correct type of fourth argument.
41         (emit_insn_modes_h): Add #defines to help make mode_size,
42         mode_base_align, and real_format_for_mode conditionally const.
43         (emit_mode_size, emit_mode_base_align): Use print_maybe_const_decl.
44         (emit_real_format_for_mode): Likewise, but temporarily disabled.
45         (emit_insn_modes_c): Call emit_mode_adjustments.
46         (main): Initialize modes_by_name.
47         * Makefile.in: Update dependencies.
48         * machmode.def: Document EXPR arguments and new ADJUST_* statements.
49         * machmode.h: Use CONST_MODE_SIZE and CONST_MODE_BASE_ALIGN in
50         declarations of mode_size and mode_base_align.  Declare
51         init_adjust_machine_modes.
52         * toplev.c (backend_init): Call init_adjust_machine_modes.
53
54 2003-10-15  Olivier Hainque  <hainque@act-europe.fr>
55
56         * genmodes.c (calc_wider_mode): Allocate enough room for all the
57         entries we'll possibly assign in the sort buffer.
58
59 2003-10-15  Ulrich Weigand  <uweigand@de.ibm.com>
60
61         * config.gcc (s390x-ibm-tpf*): New target.
62         * doc/install.texi: Document it.
63         * config/s390/t-tpf: New file.
64         * config/s390/tpf.h: New file.
65
66 2003-10-15  Hans-Peter Nilsson  <hp@axis.com>
67
68         PR target/12598
69         * config/cris/cris.md (define_split "*mov_sidesi_biap_mem"+1)
70         (define_splits "*mov_sidesi_mem"+1, "casesi"+9, +10, +11, +12):
71         Use cris_mem_op and replace_equiv_address, not gen_rtx_MEM.
72         ("call", "call_value", define_split "*mov_sidesi_mem"+19, +20)
73         (define_split "*mov_sidesi_mem"+21, +22, +23, +24, +25, +26, +27)
74         (define_split "*mov_sidesi_mem"+28, +29, +30): Use
75         replace_equiv_address, not gen_rtx_MEM.
76         * config/cris/cris.c (cris_mem_op): New match_operator function.
77         (cris_notice_update_cc): Use replace_equiv_address, not
78         gen_rtx_MEM.
79         * config/cris/cris.h (PREDICATE_CODES): Add cris_mem_op.
80
81 2003-10-15  Bernardo Innocenti <bernie@develer.com>
82
83         * config/m68k/m68k.h (MASK_SEP_DATA, TARGET_SEP_DATA,
84         MASK_ID_SHARED_LIBRARY, TARGET_ID_SHARED_LIBRARY): Move
85         definitions after the other flags.
86
87 2003-10-14  Ziemowit Laski  <zlaski@apple.com>
88
89         * c-parse.in (methoddef, methodproto): Call objc_add_method()
90         instead of add_method().
91         * objc/objc-act.c (objc_check_decl): Do not check for
92         constant_string_type.
93         (add_method): Rename to objc_add_method().
94         (really_start_method): Call objc_add_method() instead of
95         add_method().
96         * objc/objc-act.h (add_method): Rename to objc_add_method().
97
98 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
99
100         * config/s390/s390-protos.h (s390_alc_comparison): Add prototype.
101         (s390_slb_comparison): Likewise.
102         * config/s390/s390.c (s390_alc_comparison, s390_slb_comparison):
103         New functions.
104         * config/s390/s390.h (PREDICATE_CODES): Add s390_alc_comparison
105         and s390_slb_comparison.
106         * config/s390/s390.md ("*adddi3_31", "*subdi3_31"): Do not use on
107         zSeries machines.
108         ("*adddi3_31z", "*subdi3_31z"): New insns.
109         ("*adddi3_alc_cc", "*adddi3_alc", "*subdi3_slb_cc", "*subdi3_slb",
110         "*addsi3_alc_cc", "*addsi3_alc", "*subsi3_slb_cc", "*subsi3_slb"):
111         New insns.
112
113 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
114
115         * configure.in: Clean up some feedback echoes.
116         * configure: Regenerate.
117
118         * aclocal.m4: Properly quote names of macros being defined.
119
120         * config.gcc (am33_2.0-*-linux*): Use t-slibgcc-elf-ver.
121
122 2003-10-14  Steve Ellcey  <sje@cup.hp.com>
123
124         * config/ia64/ia64.c (ia64_expand_call): Force function address
125         to DImode.
126         * config/ia64/ia64.md (call_gp): Put DImode on operand 0.
127
128 2003-10-14  Ulrich Weigand  <uweigand@de.ibm.com>
129
130         * config/s390/s390.md ("muldf3", "*muldf3", "*muldf3_ibm",
131         "mulsf3", "*mulsf3", "*mulsf3_ibm"): Do not clobber CC.
132         ("divdf3", "*divdf3", "*divdf3_ibm", "divsf3", "*divsf3",
133         "*divsf3_ibm"): Likewise.
134
135 2003-10-14  Nathanael Nerode  <neroden@gcc.gnu.org>
136
137         * config.gcc, config/m68hc11/t-m68hc11-gas: Replace uses of
138         target_alias with target_noncanonical.
139
140 2003-10-14  Geoffrey Keating  <geoffk@apple.com>
141
142         * expr.c (block_move_libcall_safe_for_call_parm): Clean up,
143         and add case for machines where outgoing register parameters
144         get stack space.
145
146         * config/darwin.c (machopic_indirect_data_reference): Use a scratch
147         register when generating indirect address.
148
149 2003-10-14  Richard Earnshaw  <rearnsha@arm.com>
150
151         * arm.c (arm_addimm_operand): MODE arguemnt is unused.
152         * arm.md (cbranchne_decr1): Fix bootstrap warning.
153
154 2003-10-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
155
156         * fixinc/inclhack.def (alpha_pthread_gcc): New fix.
157         * fixinc/fixincl.x: Regenerate.
158         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_GCC_CHECK]: New
159         testcase.
160         Fixes PR bootstrap/9330.
161
162 2003-10-13  Eric Christopher  <echristo@redhat.com>
163
164         * config/frv/frv.c (frv_adjust_field_align): Redo check for
165         too wide bitfields.
166         (frv_hard_regno_mode_ok): Add SPR_P and AP_FIRST.
167         * config/frv/frv.h (FUNCTION_PROFILER): Remove abort call.
168         (SBSS_SECTION_ASM_OP): Remove.
169         (EXTRA_SECTIONS): Remove in_sbss.
170         (EXTRA_SECTION_FUNCTIONS): Remove SBSS_SECTION_FUNCTION.
171         (SBSS_SECTION_FUNCTION, sbss_section): Remove.
172         (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Change sbss_section to
173         named_section.
174
175 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
176
177         * Makefile.in, configure.in, config.host, mkheaders.in: Replace
178         uses of ${target_alias} for directory names (and other places which
179         won't like the empty string) with ${target_noncanonical}.  Introduce
180         call early in configure.in to _GCC_TOPLEV_NONCANONICAL_TARGET so it's
181         available.
182         * configure: Regenerate.
183
184 2003-10-13  Ian Lance Taylor  <ian@wasabisystems.com>
185
186         * config/arm/iwmmxt.md (cond_iwmmxt_movsi_insn): New pattern.
187         * config/arm/arm.md: For splits which rely on conditional moves,
188         remove ! TARGET_IWMMXT condition.
189
190 2003-10-13  David S. Miller  <davem@redhat.com>
191
192         * ifcvt.c (num_removed_blocks): Rename to num_true_changes.
193         (find_cond_trap): Always increment if we emit a conditional
194         trap insn.
195
196 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
197
198         * Makefile.in (BUILD_RTL): Replace $(BUILD_PREFIX)insn-modes.o
199         with min-insn-modes.o.
200         (STAGESTUFF): Add min-insn-modes.c.
201         (genobjs): Add genmodes.o.
202         (print-rtl.o, print-rtl1.o): Depend on $(TM_P_H).
203         (insn-modes.o): Depend on $(TM_H) not $(GTM_H); also real.h.
204         (min-insn-modes.c, min-insn-modes.o): New rules.
205         (s-modes): Also generate min-insn-modes.c.
206         ($(BUILD_PREFIX_1)insn-modes.o): Kill.
207         * genmodes.c (struct mode_data): Add format field.
208         (blank_mode, validate_mode, complete_mode): Update to match.
209         (make_scalar_mode): Separate into make_int_mode and make_float_mode.
210         (_SCALAR_MODE): Kill.
211         (FLOAT_MODE, FRACTIONAL_FLOAT_MODE): Add format argument.
212         (emit_insn_modes_c_header): Adjust.
213         (emit_min_insn_modes_c_header, emit_real_format_for_mode)
214         (emit_min_insn_modes_c): New functions.
215         (emit_insn_modes_c): Call emit_real_format_for_mode.
216         (main): Add -m option to generate min-insn-modes.c.
217         * machmode.h: Update documentation.  Add format argument to
218         all uses of FLOAT_MODE.
219         * real.c: Don't define real_format_for_mode here.
220
221         * dwarfout.c: Move default definition of PRINT_REG...
222         * defaults.h: ...here.
223         * print-rtl.c: Include tm_p.h.
224         (DEBUG_PRINT_REG, DEBUG_REGISTER_NAMES, debug_reg_names, reg_names):
225         Kill.
226         (print_rtx): Use PRINT_REG, not DEBUG_PRINT_REG.  But surround
227         this entire block with #ifndef GENERATOR_FILE.
228         * regclass.c: Unconditionally define reg_names.
229         * config/mips/mips.h, config/rs6000/rs6000.h, config/sh/sh.h
230         Don't define DEBUG_REGISTER_NAMES.
231         * config/rs6000/darwin.h: Don't use DEBUG_REGISTER_NAMES in
232         redefinition of REGISTER_NAMES.
233         * config/i386/i386.h: Don't define DEBUG_PRINT_REG.
234
235         * combine.c: Change all preprocessor conditionals on
236         EXTRA_CC_MODES to use SELECT_CC_MODE instead; rearrange a bit
237         for clarity.
238         * genopinit.c: Remove mention of EXTRA_CC_MODES in comment.
239         * configure.in: Don't define EXTRA_CC_MODES.
240         * configure, config.in: Regenerate.
241         * doc/tm.texi: Remove documentation of EXTRA_CC_MODES.
242
243         * config/arc/arc.c, config/m32r/m32r.c, config/sparc/sparc.c:
244         May assume that GET_MODE_CLASS is accurate for extra CC modes
245         at all times.
246
247         * config/i860/i860.h (INIT_CUMULATIVE_ARGS): Pass correct
248         number of arguments to aggregate_value_p.
249
250         * genmodes.c (RESET_FLOAT_FORMAT, reset_float_format): New.
251         * machmode.def: Explain ARCH-modes.def.  Document
252         RESET_FLOAT_FORMAT.  Improve commentary on various mode
253         clusters.  Do not define OI, PQI, PHI, PSI, PDI, QF, HF, TQF,
254         XF, or TF modes here.  Remove backward-compatibility
255         definition of CC.
256
257         * config/alpha/alpha-modes.def: New file; define TF mode.
258         * config/arc/arm-modes.def: Define XF mode.
259         * config/c4x/c4x-modes.def: Define QF and HF modes.  Unset
260         float format for SF and DF modes.
261         * config/dsp16xx/dsp16xx-modes.def: New file; define HF mode.
262         * config/i386/i386-modes.def: Define XF and TF modes.
263         * config/i960/i960-modes.def: Define TF mode.
264         * config/ia64/ia64-modes.def: Define TF and OI modes.
265         * config/m68k/m68k-modes.def: New file; define XF mode.
266         * config/mips/mips-modes.def: New file; define TF mode, reset
267         formats for SF and DF modes.
268         * config/pa/pa-modes.def: Define TF mode.
269         * config/rs6000/rs6000.c: Define TF and PSI modes.
270         * config/s390/s390-modes.def: Define OI mode.
271         * config/sh/sh-modes.def: New file; define PSI mode.
272         * config/sparc/sparc-modes.def: Define TF mode.
273         * config/vax/vax-modes.def: New file; reset formats for SF and
274         DF modes.
275
276         * config/c4x/c4x.c (c4x_override_options): No need to mess
277         with real_format_for_mode or set REAL_MODE_FORMATs.
278         (c4x_immed_int_constant): Don't apply GET_MODE_CLASS to rtx
279         variable.
280         * config/i386/i386.c (override_options): No need to set
281         REAL_MODE_FORMATs here.
282         * config/i960/i960.c (i960_initialize): Likewise.
283         * config/m68k/m68k.c (m68k_override_options): Likewise.
284         * config/ia64/ia64.c (ia64_override_options): Set REAL_MODE_FORMAT
285         for TFmode only if not the default.
286         * config/mips/mips.c (override_options): Likewise.
287         * config/vax/vax.c (override_optionms): Set REAL_MODE_FORMAT for
288         DFmode only if not the default.
289
290         * config/i370/i370.h (RET_REG): Don't consider TFmode.
291         * config/m68hc11/m68hc11.c (print_operand): Don't consider XFmode.
292         * config/dsp16xx/dsp16xx.c (hard_regno_mode_ok): #if 0 out use
293         of modes that don't appear anywhere in the machine description.
294
295         * config/arc/arc-modes.def, config/arm/arm-modes.def
296         * config/c4x/c4x-modes.def, config/frv/frv-modes.def
297         * config/i386/i386-modes.def, config/i960/i960-modes.def
298         * config/ia64/ia64-modes.def, config/mmix/mmix-modes.def
299         * config/pa/pa-modes.def, config/pdp11/pdp11-modes.def
300         * config/rs6000/rs6000-modes.def, config/s390/s390-modes.def
301         * config/sparc/sparc-modes.def: Convert to new style for
302         declaring extra CC modes.
303
304 2003-10-13  Zack Weinberg  <zack@codesourcery.com>
305
306         * cpplex.c (_cpp_clean_line): In the common case of a line
307         with no trigraphs and no \-newline, avoid writing to memory.
308         (_cpp_skip_block_comment): Use a local 'cur' pointer instead
309         of the buffer member.  Make c an uchar to avoid unnecessary
310         sign extensions.
311
312 2003-10-13  Nathanael Nerode  <neroden@gcc.gnu.org>
313
314         * configure.in: Remove unnecessary test.
315         * configure: Regenerate.
316
317         * configure.in: Fix grammatical error.  Move UWIN host error to...
318         * config.host: Here.
319         * configure: Regenerate.
320
321 2003-10-13  Andreas Krebbel  <krebbel1@de.ibm.com>
322
323         * config/s390/s390.md ("*fmadddf4", "*fmsubdf4", "*fmaddsf4",
324         "*fmsubsf4"): Insns are now dependent on TARGET_FUSED_MADD instead
325         of flag_unsafe_math_optimizations.
326         * config/s390/s390.h ("MASK_NO_FUSED_MADD", "TARGET_NO_FUSED_MADD",
327         "TARGET_FUSED_MADD", "TARGET_SWITCHES"): Introduced new target flags
328         fused-madd and no-fused-madd.
329         * doc/invoke.texi: Documented the new options fused-madd and
330         no-fused-madd for S/390.
331
332 2003-10-14  Alan Modra  <amodra@bigpond.net.au>
333
334         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Choose
335         MASK_ALIGN_NATURAL if rs6000_alignment_string not given.  Don't
336         assign DEFAULT_ABI.
337         (ADJUST_FIELD_ALIGN, ROUND_TYPE_ALIGN): Update comment.
338         * config/rs6000/rs6000.c: Formatting.
339         (rs6000_parse_alignment_option): Only set rs6000_alignment_flags
340         when rs6000_alignment_string given.
341
342 2003-10-13  Eric Botcazou  <ebotcazou@libertysurf.fr>
343
344         PR target/12538
345         * config/sparc/sparc.c (MUST_SAVE_REGISTER): Delete.
346         (sparc_flat_must_save_register_p): New function to decide whether
347         a register must be saved/restored in the function prologue/epilogue.
348         (sparc_flat_compute_frame_size): Use it instead of MUST_SAVE_REGISTER.
349
350 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
351
352         * config/avr/avr.c, config/avr/avr-protos.h: Convert to
353         ISO C90 function declarations and definitions.
354         * config/sh/sh.c, config/sh/sh-protos.h: Likewise.
355
356 2003-10-12  Nathanael Nerode  <neroden@gcc.gnu.org>
357
358         * config.gcc (*-*-freebsd*): Use tm_defines instead of tiny
359         config files which do the same thing.
360         * config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
361         config/freebsd6.h: Remove now unnecessary files.
362
363 2003-10-12  Steven Bosscher  <steven@gcc.gnu.org>
364
365         * c-common.c (c_common_truthvalue_conversion): Warn if the
366         address of a non-weak function is used as a truth value.
367
368 2003-10-12  Kazu Hirata  <kazu@cs.umass.edu>
369
370         * config/h8300/h8300.c (WORD_REG_USED): Use SP_REG instead of
371         a literal.
372         * config/h8300/h8300.h (REGNO_OK_FOR_BASE_P): Use MAC_REG
373         instead of a literal.
374
375 2003-10-12  Hans-Peter Nilsson  <hp@bitrange.com>
376
377         * doc/extend.texi (Function Attributes): Mention the exceptional
378         path for noreturn-marked functions.
379
380 2003-10-12  Jan Hubicka  <jh@suse.cz>
381
382         * cgraphunit.c (cgraph_decide_inlining): Fix uninitialized variable
383         warning.
384
385 2003-10-12  Danny Smith  <dannysmith@users.sourceforge.net>
386
387         * config/i386/i386.c (x86_this_parameter): Fix typo.
388
389 2003-10-11  Jan Hubicka  <jh@suse.cz>
390
391         * Makefile.in (web.o): New.
392         * web.c: New file.
393         * rtl.h (web_main): Declare.
394         * timervar.def (TV_WEB): New.
395         * toplev.c (dump_file_index, dump_file_info): Add DFI_web.
396         (rest_of_hanle_web): New.
397         (flag_web): New static variable.
398         (lang_independent_options): Add "web".
399         (rest_of_compilation): Call rest_of_handle_web.
400         * invoke.texi (-fweb): Document.
401         * common.opt (fweb): New.
402         * flags.h (flag_web): New.
403         * opts.c (decode_options): Set flag_web at -O3.
404
405         * passes.texi (web construction):  Document.
406         * invoke.texi (-O3): Document that -fweb is enabled.
407
408         * regrename.c (regrename_optimize): Deal better with situation when
409         replacement failed.
410
411         * sched-ebb.c: Include params.h and profile.h
412         (schedule_ebbs):  Use tracer parameters to discover superblocks
413         * Makefile.in (sched-ebb.o):  Add dependencies.
414
415 2003-10-11  Roger Sayle  <roger@eyesopen.com>
416
417         * fold-const.c (negate_mathfn_p): New function to determine whether
418         a built-in mathematical function is sign preserving, f(-x) == -f(x).
419         Add support for BUILT_IN_ASIN, BUILT_IN_ASINF and BUILT_IN_ASINL.
420         (tree_swap_operands_p): Change API to take an additional argument
421         indicating that the swapped operands evaluate in reverse order.
422         Canonicalize VAR_DECLs and PARM_DECLs last if we can, i.e. neither
423         operand side-effects or we don't care about flag_evaluation_order.
424         (reorder_operands_p): New function to check whether its safe to
425         evaluate the given operands in reverse order.
426         (negate_expr_p):  We can always negate integer constants unless
427         we honor -ftrapv and the signed type would overflow.  Only allow
428         -(A-B) into B-A if reorder_operands_p says that its OK.  Allow
429         negation of COMPLEX_CST if both real and imaginary parts can be
430         negated.  Allow negation through floating point extensions and
431         sign-preserving built-in functions.
432         (negate_expr):  Move the code to negate integers from "fold" to
433         here.  Always negate integer constants unless we honor -ftrapv
434         and the signed type would overflow.  Always negate real constants
435         unless we honor -ftrapping-math.  Only convert -(A-B) into B-A
436         if allowed by reorder_operands_p.  Add support for COMPLEX_CST.
437         Optimize negation through floating point extensions and
438         sign-preserving built-in functions (as defined by negate_mathfn_p).
439         (fold): Adjust calls to tree_swap_operands_p.
440         (fold <NEGATE_EXPR>): Move the remaining negation optimizations
441         to negate_expr_p/negate_expr.
442         (fold <MINUS_EXPR>): Use reorder_operands_p to check whether we're
443         allowed to convert (-A) - B into (-B) - A.
444
445 2003-10-11  Roger Sayle  <roger@eyesopen.com>
446
447         * builtins.c (expand_builtin_strcmp): Defend against the possibility
448         that gen_cmpstrsi may fail: Stabilize the argument list against
449         re-evaluation and expand the library call directly using this saved
450         argument list if a cmpstrsi sequence can't be generated.
451         (expand_builtin_strncmp): Likewise.
452
453         * config/i386/i386.md (cmpstrsi, movstrsi): Disable with -Os.
454
455 2003-10-11  Roger Sayle  <roger@eyesopen.com>
456
457         PR optimization/12260
458         * simplify-rtx.c (simplify_unary_operation): Simplify all unary
459         operations through CONST nodes.  Optimize (neg (plus X C)) as
460         (minus -C X) for constant values C.
461         (simplify_binary_operation): Optimize (minus (neg X) C) as
462         (minus -C X) for constant values C.
463         (simplify_plus_minus): Avoid creating (neg (const (plus X C)),
464         instead create (minus -C X).
465
466 2003-10-11  Roger Sayle  <roger@eyesopen.com>
467
468         * expr.c (expand_expr <PLUS_EXPR>): Let expand_operands call
469         safe_from_p for us, once it chooses an evaluation order.
470         (expand_expr <MULT_EXPR>): Likewise.
471         (expand_expr <MIN_EXPR> <MAX_EXPR>): Likewise.  If expand_operands
472         places the second operand in "target", swap the operands.
473         (do_store_flag): Let expand_operands call safe_from_p for us.
474
475 2003-10-11  Eric Botcazou  <ebotcazou@libertysurf.fr>
476
477         PR optimization/12544
478         * function.c (put_var_into_stack): Don't generate ADDRESSOFs
479         for DECL_NONLOCAL decls.
480
481 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
482
483         * expr.c: Follow spelling conventions.
484         * final.c: Likewise.
485         * optabs.c: Likewise.
486         * sched-deps.c: Likewise.
487         * sdbout.c: Likewise.
488
489 Sat Oct 11 12:24:23 CEST 2003  Jan Hubicka  <jh@suse.cz>
490
491         * varasm.c (notice_global_symbol):  Fix handling of variables; avoid
492         re-computing of variable.
493
494 2003-10-11  Richard Henderson  <rth@redhat.com>
495
496         * config/alpha/alpha.c (alpha_return_in_memory): Rename from
497         return_in_memory, make static, change signature to match target hook.
498         (alpha_setup_incoming_varargs): Make static, change signature to
499         match target hook, add code for vms and unicos.
500         (TARGET_PROMOTE_FUNCTION_ARGS, TARGET_PROMOTE_FUNCTION_RETURN,
501         TARGET_PROMOTE_PROTOTYPES, TARGET_STRUCT_VALUE_RTX,
502         TARGET_RETURN_IN_MEMORY, TARGET_SETUP_INCOMING_VARARGS,
503         TARGET_STRICT_ARGUMENT_NAMING,
504         TARGET_PRETEND_OUTGOING_VARARGS_NAMED): New.
505         * config/alpha/alpha-protos.h: Update.
506         * config/alpha/alpha.h (PROMOTE_FUNCTION_ARGS,
507         PROMOTE_FUNCTION_RETURN, RETURN_IN_MEMORY,
508         SETUP_INCOMING_VARARGS): Remove.
509         * config/alpha/unicosmk.h (SETUP_INCOMING_VARARGS): Remove.
510         * config/alpha/vms.h (SETUP_INCOMING_VARARGS): Remove.
511
512 2003-10-11  Ian Lance Taylor  <ian@wasabisystems.com>
513
514         * config/arm/arm.c (arm_regno_class): Handle IWMMXT_GR_REGS.
515
516 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
517
518         * config/m68k/lb1sf68.asm: Follow spelling conventions.
519         * config/m68k/m68k.c: Likewise.
520         * config/m68k/m68k.h: Likewise.
521         * config/m68k/m68k.md: Likewise.
522
523 2003-10-11  Roger Sayle  <roger@eyesopen.com>
524
525         * builtins.c (expand_builtin_memcpy): Optimize case when the two
526         pointer arguments are the equal, non-volatile and side-effect free.
527         (expand_builtin_mempcpy): Likewise.
528         (expand_builtin_memmove): Likewise.
529         (expand_builtin_strcpy): Likewise.
530         (expand_builtin_memcmp): Likewise.
531         (expand_builtin_strcmp): Likewise.
532         (expand_builtin_strncmp): Likewise.
533
534 2003-10-11  Roger Sayle  <roger@eyesopen.com>
535
536         * combine.c (apply_distributive_law): Enable "distributive" floating
537         point optimizations with -funsafe-math-optimizations.
538
539 2003-10-11  Andrew Pinski <pinskia@physics.uc.edu>
540
541         * genmodes.c (emit_mode_mask) Change MASK to MODE_MASK.
542
543 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
544
545         * config/m68k/m68k-protos.h: Remove the prototype for
546         finalize_pic.
547
548 2003-10-11  Kazu Hirata  <kazu@cs.umass.edu>
549
550         * config/m68k/m68k.c: Fix comment typos.
551
552 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
553
554         * config/m68k/m68k-protos.h (use_return_insn): Change return type from
555         int to bool.
556         * config/m68k/m68k.c (struct m68k_frame): Add funcdef_no member.
557         (current_frame): New global var.
558         (m68k_compute_frame_layout): Cache computations in current_frame.
559         (m68k_initial_elimination_offset): Use values from current_frame
560         instead of recomputing them.
561         (use_return_insn): Likewise.
562         (m68k_output_function_prologue): Likewise.
563         (m68k_output_function_epilogue): Likewise.
564         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Fold __PIC__ handling
565         inside the block for __pic__.
566
567 2003-10-11  Peter Barada <peter@baradas.org>
568             Bernardo Innocenti  <bernie@develer.com>
569
570         * config/m68k/m68k.c (m68k_frame): Move before protos referencing it.
571         (m68k_save_reg): Add boolean parameter `interrupt_handler'.
572         (m68k_interrupt_function_p): New function.
573         (m68k_handle_fndecl_attribute): Ditto.
574         (m68k_compute_frame_layout): Ditto.
575         (m68k_attribute_table): Define back-end specific attributes.
576         (m68k_output_function_epilogue): Emit RTE instruction for interrupt
577         functions.
578
579 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
580
581         * config/m68k/t-uclinux: New target Makefile fragment.
582         * config/m68k/uclinux.h: New target macro file.
583         * config.gcc (m68k-*-uclinux): New target definition.
584
585 2003-10-10  Roger Sayle  <roger@eyesopen.com>
586
587         * builtins.c (builtin_mathfn_code): Generalize to check whether
588         the call is to any built-in function by comparing the call's
589         argument list against the builtin decl's function type.
590
591 2003-10-10  Roger Sayle  <roger@eyesopen.com>
592
593         * cse.c (constant_pool_entries_regcost): New global variable to
594         hold the register cost component of constant_pool_entries_cost.
595         (fold_rtx): Calculate constant_pool_entries_regcost at the same
596         time as constant_pool_entries_cost.
597         (cse_insn): Set both src_folded_cost and src_folded_regcost from
598         constant_pool_entries_cost and constant_pool_entries_regcost.
599         (cse_main): Initialize constant_pool_entries_regcost to zero.
600
601         * optabs.c (expand_unop): Attach a REG_EQUAL note describing
602         the semantics of the sequence of bit operations used to negate
603         a floating-point value.
604         (expand_abs_nojump): Likewise attach a REG_EQUAL note describing
605         the semantics of the bit operations used to abs a floating point
606         value.
607
608 2003-10-11  Bernardo Innocenti  <bernie@develer.com>
609             Paul Dale  <pauli@snapgear.com>
610
611         * config/m68k/lb1sf68.asm: Add __PIC__ and __ID_SHARED_LIBRARY__
612         support.
613         * config/m68k/m68k-none.h (ASM_SPEC): Pass --pcrel to assembler on
614         -fpic, -fPIC, -msep-data and -mid-shared-library.
615         * config/m68k/m68k.c (m68k_library_id_string): New global variable.
616         (override_options): Add -msep-data and -mshared-library-id support.
617         (m68k_output_function_prologue): Generate code to load A5 for
618         TARGET_ID_SHARED_LIBRARY and TARGET_SEP_DATA.
619         (m68k_output_mi_thunk): Emit indirect jump on TARGET_ID_SHARED_LIBRARY.
620         (m68k_output_pic_call): New function.
621         * gcc/config/m68k/m68k.h (TARGET_SEP_DATA): New target flag.
622         (TARGET_ID_SHARED_LIBRARY): Ditto.
623         (TARGET_SWITCHES): Add switches for -mid-shared-library and -msep-data.
624         * gcc/config/m68k/m68k.md (call): Call m68k_output_pic_call().
625         (call_value): Likewise.
626
627 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
628
629         * gengenrtl.c (find_formats, genheader): Make i an unsigned
630         int, remove cast of NUM_RTX_CODE.
631         * machmode.h: Make the HAVE_MACHINE_MODES #ifdef encompass the
632         entire file.  Remove the #ifs on GET_MODE_MASK etc and
633         GET_MODE_WIDER_MODE etc.
634
635 2003-10-10  Eric Christopher  <echristo@redhat.com>
636
637         * lcm.c (optimize_mode_switching): Change NORMAL_MODE
638         to MODE_ENTRY and MODE_EXIT. Add MODE_AFTER for insns
639         that set mode.
640         * config/sh/sh.h (MODE_ENTRY): New macro.
641         (MODE_EXIT): Ditto.
642         (MODE_AFTER): Ditto.
643         * config/sh/sh.md: Change for MODE_AFTER. Add
644         fp_set attribute.
645         * doc/tm.texi: Document MODE_AFTER, MODE_ENTRY, and MODE_EXIT.
646
647 2003-10-10  Zack Weinberg  <zack@codesourcery.com>
648
649         * genmodes.c, mode-classes.def: New files.
650         * machmode.def: Rewritten to genmodes.c interface.
651         * Makefile.in (extra_modes_file): New substitution variable.
652         (MACHMODE_H): No longer includes machmode.def or
653         @extra_modes_file@; instead, mode-classes.def and insn-modes.h.
654         (BUILD_RTL): Add $(BUILD_PREFIX)insn-modes.o.
655         (OBJS-common): Add insn-modes.o.
656         (STAGESTUFF): Add insn-modes.c, insn-modes.h, s-modes, and
657         genmodes$(build_exeext).
658         (insn-modes.o, insn-modes.c, insn-modes.h, s-modes, genmodes.o,
659         genmodes$(build_exeext), $(BUILD_PREFIX_1)insn-modes.o): New targets.
660         (s-genrtl): Don't depend on $(RTL_BASE_H).
661         (gengenrtl.o): Don't depend on coretypes.h, $(GTM_H), real.h,
662         or $(RTL_BASE_H); just rtl.def.
663         * gengenrtl.c: Don't include coretypes.h, tm.h, rtl.h, or
664         real.h.  Give fake definition of CONST_DOUBLE_FORMAT and
665         substitute definition of NUM_RTX_CODE.  Add casts to avoid
666         warnings.
667         * machmode.h: Include insn-modes.h, not machmode.def.  Include
668         mode-classes.def to define enum mode_class.  Tweak definitions
669         of GET_MODE_CLASS, GET_MODE_SIZE, GET_MODE_BITSIZE, GET_MODE_MASK,
670         GET_MODE_INNER, GET_MODE_WIDER_MODE, GET_CLASS_NARROWEST_MODE.
671         (inner_mode_array): Renamed mode_inner.
672         (mode_base_align): New.
673         * rtl.c (mode_name, mode_class, mode_bitsize, mode_size,
674         mode_unit_size, mode_wider_mode, mode_mask_array,
675         inner_mode_array, class_narrowest_mode): Delete definitions.
676         * stor-layout.c (get_mode_alignment): Use mode_base_align.
677         * real.h: Use MIN_MODE_FLOAT and MAX_MODE_FLOAT, not QFmode
678         and TFmode, in real_format_for_mode and REAL_MODE_FORMAT.
679
680         * config/ip2k/ip2k.h, config/iq2000/iq2000.h:
681         No need to define BITS_PER_UNIT.
682
683 2003-10-10  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
684
685         * config/ia64/ia64.c (ia64_vms_init_libfuncs): New function.
686         (ia64_output_function_prologue): Only write .prologue if --with-gnu-as.
687         (ia64_initialize_trampoline): If not using GAS, declare trampoline
688         as global.
689         * config/ia64/ia64.h (ASM_APP_ON, ASM_APP_OFF): Add vers for not GAS.
690         (ASM_OUTPUT_DEBUG_LABEL): Likewise.
691
692         * stor-layout.c (compute_record_mode): Don't force BLKmode if
693         field is zero-length BLKmode.
694         * expr.c (expand_expr, case COMPONENT_REF): Handle case of BLKmode
695         zero-size references.
696
697         * combine.c (distribute_links): Properly test for REG being set.
698
699         * config/alpha/alpha.c (alpha_expand_block_mode): Don't use
700         gen_lowpart and company except for REG.
701
702 2003-10-10  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
703
704         * pa64-hpux.h (LINK_SPEC): Use `-z' option with HP ld.
705
706 2003-10-10  Nathanael Nerode  <neroden@gcc.gnu.org>
707
708         * config.gcc (mips*-*-netbsd*): Remove content-free line.
709
710 2003-10-10  Herman A.J. ten Brugge <hermantenbrugge@home.nl>
711
712         * gcov-io.h: Check BITS_PER_UNIT when defining gcov_unsigned_t,
713         gcov_position_t and gcov_type.
714
715 2003-10-09  Kaz Kojima  <kkojima@gcc.gnu.org>
716
717         * configure.in (HAVE_AS_TLS): Add sh-*-* and sh[34]*-*-* cases.
718         * configure: Regenerate.
719
720 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
721
722         * config/h8300/h8300.md (define_asm_attributes): Specify
723         the length of an asm insn more precisely.
724
725 2003-10-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
726
727         * config/mips/iris6.h (SUBTARGET_CPP_SPEC): Define.
728
729 2003-10-09  Bob Wilson  <bob.wilson@acm.org>
730
731         * config/xtensa/xtensa.c (xtensa_dbx_register_number): Change first
732         FP register number to 48 and MAC16 accumulator to 0x210.
733
734 2003-10-09  Nathanael Nerode  <neroden@gcc.gnu.org>
735
736         * config.gcc: Remove redundant thread_file setting clauses for
737         various *-*-linux* targets.
738
739 2003-10-09  Kazu Hirata  <kazu@cs.umass.edu>
740
741         * config/h8300/h8300.md (define_asm_attributes): New.
742
743 2003-10-09  Roger Sayle  <roger@eyesopen.com>
744
745         * optabs.c (prepare_float_lib_cmp): Always attach a REG_EQUAL note
746         to the comparison, as emit_libcall_block calls copy_rtx on equiv.
747
748 2003-10-09  Dorit Naishlos  <dorit@il.ibm.com>
749
750         * haifa-sched.c (ok_for_early_schedule): New function.
751         (early_queue_to_ready): New function.
752         (schedule_block): Allow early removal of insns from Q.
753         (schedule_insn): Update INSN_TICK in case of premature
754         issue.
755         * common.opt (sched_stalled_insns): New flag.
756         (sched_stalled_insns_dep): New flag.
757         * flags.h: Same above flags.
758         * opts.c: Same as above.
759         * toplev.c: Same as above.
760         * target.h (targetm.sched.is_costly_dependence): New
761         hook.
762         * target-def.h: Same as above.
763         * config/rs6000/rs6000.h: (rs6000_sched_costly_dep):
764         Support new flag -msched-costly-dep.
765         (DEFAULT_SCHED_COSTLY_DEP): Define.
766         * config/rs6000/rs6000.c:
767         (rs6000_is_costly_dependence): New function.
768         (is_load_insn, is_store_insn): New functions.
769         (is_load_insn1, is_store_insn1, is_mem_ref): New
770         functions.
771         * doc/invoke.texi (-fsched-stalled-insns-dep)
772         (-fsched-stalled-insns, -msched-costly-dep): Document
773         options.
774         * doc/tm.texi (is_costly_dependence): Define new
775         scheduler target hook.
776
777 2003-10-09  Jason Merrill  <jason@redhat.com>
778
779         PR c++/6392
780         * c-common.c (c_build_qualified_type): Look through arrays first.
781         (c_apply_type_quals_to_decl): Look through arrays.
782
783         * c-common.c (c_apply_type_quals_to_decl): Unset TREE_READONLY for
784         types with constructors.
785
786         * coverage.c (build_ctr_info_value): Use build_decl to make a
787         VAR_DECL.
788         (create_coverage): Likewise.
789
790         * stmt.c (resolve_asm_operand_names): Call check_unique_operand_names
791         here.
792         (expand_asm_operands): Not here.
793         (parse_input_constraint): No longer static.
794         * tree.h: Declare it.
795
796 2003-10-08  Kaz Kojima  <kkojima@gcc.gnu.org>
797
798         * config/sh/t-linux (SHLIB_LINK): Override to use a linker script
799         libgcc_s.so.
800         (SHLIB_INSTALL): Likewise.
801
802 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
803
804         * doc/install.texi: Remove reference to removed 'pthreads' thread
805         option.
806
807 2003-10-08  Aldy Hernandez  <aldyh@redhat.com>
808
809         * config/rs6000/rs6000.md ("abssi2_isel"): Add early clobber to
810         operand 2.
811
812 2003-10-08  Nathanael Nerode  <neroden@gcc.gnu.org>
813
814         * config.gcc: Don't accept --enable-threads=pthreads.  Clean
815         up related case statements.
816         * configure.in: Don't accept --enable-threads=pthreads,
817         decosf1, mach, or os2 (none of which work anyway).  Alphabetize
818         supported thread files in case clause.
819         * configure: Regenerate.
820
821 2003-10-08  Geoffrey Keating  <geoffk@apple.com>
822
823         * function.c (pad_to_arg_alignment): Move 'boundary_in_bytes'
824         definition to above SPARC_STACK_BOUNDARY_HACK.
825
826 2003-10-08  Jason Merrill  <jason@redhat.com>
827
828         * c-pretty-print.c (pp_c_postfix_expression)
829         <COMPOUND_LITERAL_EXPR>: Fix thinko.
830
831 2003-10-08  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
832
833         * mklibgcc.in: Don't hide undefined or typeless symbols.
834
835 2003-10-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
836
837         PR optimization/12142
838         * cse.c (count_reg_usage): In a SET with a REG SET_DEST, count the
839         uses of the register in the SET_SRC.  Remove unnecessary argument.
840         * pa.c (legitimize_pic_address): Before reload, use a scratch register
841         for the intermediate result in loading the address of a SYMBOL_REF.
842         Set the MEM_NOTRAP_P flag for the MEM.  Add a REG_EQUAL to the insn
843         which loads the SYMBOL_REF address.
844
845 2003-10-08  Timo Kokkonen  <tjko@iki.fi>
846             Eric Botcazou  <ebotcazou@libertysurf.fr>
847
848         PR bootstrap/12490
849         * scan-decls.c (MAX_EXTERN_C_BRACES): New preprocessor constant
850         to define the size of the extern_C_braces array.  Set it to 200.
851         (scan_decls): Abort when extern_C_braces_length is out-of-bounds.
852
853 2003-10-08  Carlo Wood  <carlo@alinoe.com>
854
855         * Makefile.in (gengtype-lex.c): flex 2.5.4[a] doesn't understand
856         a space after the -o option.  flex 2.5.31 understands both, with
857         and without the space. Removed that space.
858
859 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
860
861         * config/mips/mips.c (mips_frame_info): Add cprestore_size field.
862         (compute_frame_size): Initialize it.  Remove the .cprestore slot
863         from args_size.
864         (mips_output_function_prologue): Simplify accordingly.
865         (mips_debugger_offset): Change the mips16 frame pointer offset from
866         current_function_outgoing_args to cfun->machine->frame.args_size.
867         (mips_initial_elimination_offset): Likewise.
868         (mips_expand_prologue): Likewise.
869         (mips_expand_epilogue): Likewise.
870
871 2003-10-08  Richard Sandiford  <rsandifo@redhat.com>
872
873         * config/mips/mips.h (EXTRA_CONSTRAINT): Add 'W' constraint.
874         (EXTRA_MEMORY_CONSTRAINT): Define.
875         (CAN_ELIMINATE): Remove lwu workaround.
876         * config/mips/mips.md (*zero_extendsidi2_mem): Enable for mips16 too.
877         Use a 'W' constraint for the source operand.
878
879 2003-10-08  Kazu Hirata  <kazu@cs.umass.edu>
880
881         * genopinit.c (main): Output code to declare undefined
882         variables.
883
884 2003-10-07  Kelley Cook  <kcook@gcc.gnu.org>
885
886         * gengtype-lex.l: Remove -Wtraditional cruft.
887         * Makefile.in (gengtype-lex.c): Likewise.
888
889 2003-10-07  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
890
891         * cfgloopmanip.c (fix_irreducible_loops): Initialize e correctly.
892
893 2003-10-07  Jason Merrill  <jason@redhat.com>
894
895         PR c++/12519
896         * c-semantics.c (genrtl_cleanup_stmt): Ignore the CLEANUP_DECL if
897         it isn't a decl.
898
899 2003-10-07  Alexandre Oliva  <aoliva@redhat.com>
900
901         * gcc.c (cpp_options): Only pass -fworking-directory for -g* if
902         not overridden.
903         Fixes PR bootstrap/12173.
904
905 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
906
907         * errors.c: Don't include coretypes.h or tm.h.
908         (trim_filename): Use IS_DIR_SEPARATOR.
909         * Makefile.in: Update dependencies of errors.o and
910         $(BUILD_PREFIX_1)errors.o.
911
912 2003-10-07  Geoffrey Keating  <geoffk@apple.com>
913
914         * function.c (pad_to_arg_alignment): Take STACK_POINTER_OFFSET into
915         account when aligning arguments.
916         * calls.c (STACK_POINTER_OFFSET): Move default from here ...
917         * defaults.h (STACK_POINTER_OFFSET): ... to here.
918         * config/sparc/sparc.h (STACK_BOUNDARY): Add comment about how
919         it's wrong when TARGET_ARCH64 && TARGET_STACK_BIAS.
920         (SPARC_STACK_BOUNDARY_HACK): Define.
921         * config/rs6000/rs6000.c (function_arg): On non-SVR4 systems,
922         arrange for vector parameters to varargs functions to be passed
923         in both memory and GPRs when appropriate.
924         (rs6000_va_arg): Vector arguments passed in memory are 16-byte
925         aligned.
926
927         * hooks.c (hook_bool_tree_true): New.
928         (hook_rtx_tree_int_null): New.
929         (hook_rtx_rtx_null): Use NULL, not 0.
930         * hooks.h: Add 'extern' to everything.
931         (hook_bool_tree_true): New.
932         (hook_rtx_tree_int_null): New.
933         * targhooks.c (hook_bool_CUMULATIVE_ARGS_true): New.
934         * targhooks.h (hook_bool_CUMULATIVE_ARGS_true): New.
935         * config/rs6000/rs6000-protos.h (setup_incoming_varargs): Remove
936         prototype.
937         * config/rs6000/rs6000.c (rs6000_return_in_memory): New.
938         (setup_incoming_varargs): Prototype.
939         (TARGET_PROMOTE_FUNCTION_ARGS): Define.
940         (TARGET_PROMOTE_FUNCTION_RETURN): Define.
941         (TARGET_STRUCT_VALUE_RTX): Define.
942         (TARGET_RETURN_IN_MEMORY): Define.
943         (TARGET_SETUP_INCOMING_VARARGS): Define.
944         (TARGET_STRICT_ARGUMENT_NAMING): Define.
945         (TARGET_PRETEND_OUTGOING_VARARGS_NAMED): Define.
946         (init_cumulative_args): Use rs6000_return_in_memory.
947         (setup_incoming_varargs): Make 'static'.
948         * config/rs6000/rs6000.h (PROMOTE_FUNCTION_ARGS): Delete.
949         (PROMOTE_FUNCTION_RETURN): Delete.
950         (STRUCT_VALUE): Delete.
951         (RETURN_IN_MEMORY): Delete.
952         (SETUP_INCOMING_VARARGS): Delete.
953
954 2003-10-07  Gerald Pfeifer  <gerald@pfeifer.com>
955
956         * doc/invoke.texi (Warning Options): Simplify and clarify the
957         descriptions of -Wnonnull and -Winit-self.
958
959 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
960
961         * optabs.c (init_intraclass_conv_libfuncs): Fix order of array
962         indicees for floating-point conversersion libcalls.
963
964 2003-10-07  Nathanael Nerode  <neroden@gcc.gnu.org>
965
966         * Makefile.in: Add more comments separating large conceptually
967         separate sections.
968
969         * configure.in: Clean up thread file logic.
970         * configure: Regenerate.
971
972 2003-10-07  Danny Smith  <dannysmith@users.sourceforge.net>
973
974         * config/i386/cygming.h (READONLY_DATA_SECTION_ASM_OP): Define.
975         (switch_to_section): Handle in_readonly_data.
976         * config/i386/winnt.c (i386_pe_asm_named_section): Handle
977         readonly data.
978
979 2003-10-07  Richard Earnshaw  <rearnsha@arm.com>
980
981         * arm.md (cmpsi2_addneg): New ARM pattern. Add peephole2 to generate
982         it.
983         (cbranchne_decr1): New Thumb pattern.
984         * arm.c (arm_addimm_operand): New insn predicate.
985         * arm-protos.h: Add a prototype for it.
986         * arm.h (PREDICATE_CODES): Add it.
987
988 2003-10-07  Dorit Naishlos <dorit@il.ibm.com>
989
990         * sched-int.h (sched_info): New field
991         sched_max_insns_priority.
992         * sched-rgn.c (init_ready_list): Add invocations to
993         targetm.sched.adjust_priority.
994         (sched_max_insns_priority): Init new field.
995         * sched-ebb.c (sched_max_insns_priority): Init new field.
996         * haifa-sched.c (set_priorities): Set
997         sched_info->sched_max_insns_priority.
998         * config/rs6000/rs6000.h:
999         (rs6000_sched_restricted_insns_priority_str): Support new
1000         flag -mprioritize-restricted-insns.
1001         (DEFAULT_RESTRICTED_INSNS_PRIORITY): Define.
1002         * config/rs6000/rs6000.c (is_dispatch_slot_restricted): New
1003         function.
1004         (rs6000_adjust_priority): Change priority of restricted
1005         insns, using above new function and new flag.
1006         * doc/invoke.texi (-mprioritize-restricted-insns): Document
1007         new option.
1008
1009 2003-10-07  Zack Weinberg  <zack@codesourcery.com>
1010
1011         * expr.c (cmpstr_optab, cmpmem_optab): New.
1012         * genopinit.c: Initialize them.
1013         * optabs.h: Declare them.
1014         * optabs.c (init_optabs): Clear them.
1015         (prepare_cmp_insn):  Use cmpstr_optab and cmpmem_optab to find
1016         block memory compare insns, not conditional chains.  Restructure
1017         the fallback generation of a call to memcmp/bcmp for better
1018         readability.
1019
1020 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1021
1022         * config/mips/mips.c (MIPS_MAX_FIRST_STACK_STEP): New macro.
1023         (mips_save_restore_fn): New typedef.
1024         (mips_add_large_offset_to_sp, mips_emit_frame_related_store): Remove.
1025         (mips_set_frame_expr, mips_frame_set): Move above prologue code.
1026         (save_restore_insns): Remove, replacing with...
1027         (mips_save_restore_reg, mips_for_each_saved_reg): ...these new fns.
1028         (mips_save_reg, mips_restore_reg): New function.
1029         (mips_expand_prologue, mips_expand_epilogue): Rework.
1030         * config/mips/mips.h (MIPS_TEMP1_REGNUM, MIPS_TEMP2_REGNUM): Remove.
1031         (MIPS_PROLOGUE_TEMP_REGNUM, MIPS_EPILOGUE_TEMP_REGNUM): New macros.
1032         (MIPS_PROLOGUE_TEMP, MIPS_EPILOGUE_TEMP): New macros.
1033
1034 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1035
1036         * config/mips/mips.c (mips_expand_prologue): Remove unused
1037         traversal of function arguments.
1038
1039 2003-10-07  Richard Sandiford  <rsandifo@redhat.com>
1040
1041         * doc/invoke.texi: Remove documentation of -mentry.
1042         * config/mips/mips.c (mips_entry_string, mips_entry): Remove.
1043         (override_options, mips_save_reg_p): Remove handling.
1044         (compute_frame_size, mips_output_function_prologue): Likewise.
1045         (mips_expand_prologue, mips_expand_epilogue): Likewise.
1046         * config/mips/mips.h (mips_entry_string): Remove declaration.
1047         (TARGET_OPTIONS): Remove -mentry.
1048         * config/mips/mips16.S: Remove mention of -mentry.
1049
1050 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1051
1052         * libfuncs.h (LTI_extendsfdf2, LTI_extendsfxf2, LTI_extendsftf2)
1053         (LTI_extenddfxf2, LTI_extenddftf2, LTI_truncdfsf2, LTI_truncxfsf2)
1054         (LTI_trunctfsf2, LTI_truncxfdf2, LTI_trunctfdf2, LTI_floatsisf)
1055         (LTI_floatdisf, LTI_floattisf, LTI_floatsidf, LTI_floatdidf)
1056         (LTI_floattidf, LTI_floatsixf, LTI_floatdixf, LTI_floattixf)
1057         (LTI_floatsitf, LTI_floatditf, LTI_floattitf, LTI_fixsfsi, LTI_fixsfdi)
1058         (LTI_fixsfti, LTI_fixdfsi, LTI_fixdfdi, LTI_fixdfti, LTI_fixxfsi)
1059         (LTI_fixxfdi, LTI_fixxfti, LTI_fixtfsi, LTI_fixtfdi, LTI_fixtfti)
1060         (LTI_fixunssfsi, LTI_fixunssfdi, LTI_fixunssfti, LTI_fixunsdfsi)
1061         (LTI_fixunsdfdi, LTI_fixunsdfti, LTI_fixunsxfsi, LTI_fixunsxfdi)
1062         (LTI_fixunsxfti, LTI_fixunstfsi, LTI_fixunstfdi, LTI_fixunstfti)
1063         (extendsfdf2_libfunc, extendsfxf2_libfunc, extendsftf2_libfunc)
1064         (extenddfxf2_libfunc, extenddftf2_libfunc, truncdfsf2_libfunc)
1065         (truncxfsf2_libfunc, trunctfsf2_libfunc, truncxfdf2_libfunc)
1066         (trunctfdf2_libfunc, floatsisf_libfunc, floatdisf_libfunc)
1067         (floattisf_libfunc, floatsidf_libfunc, floatdidf_libfunc)
1068         (floattidf_libfunc, floatsixf_libfunc, floatdixf_libfunc)
1069         (floattixf_libfunc, floatsitf_libfunc, floatditf_libfunc)
1070         (floattitf_libfunc, fixsfsi_libfunc, fixsfdi_libfunc, fixsfti_libfunc)
1071         (fixdfsi_libfunc, fixdfdi_libfunc, fixdfti_libfunc, fixxfsi_libfunc)
1072         (fixxfdi_libfunc, fixxfti_libfunc, fixtfsi_libfunc, fixtfdi_libfunc)
1073         (fixtfti_libfunc, fixunssfsi_libfunc, fixunssfdi_libfunc)
1074         (fixunssfti_libfunc, fixunsdfsi_libfunc, fixunsdfdi_libfunc)
1075         (fixunsdfti_libfunc, fixunsxfsi_libfunc, fixunsxfdi_libfunc)
1076         (fixunsxfti_libfunc, fixunstfsi_libfunc, fixunstfdi_libfunc)
1077         (fixunstfti_libfunc): Delete.
1078         * optabs.h (struct optab_handlers): Break out of struct optab.
1079         (struct convert_optab, convert_optab, enum convert_optab_index,
1080         convert_optab_table, sext_optab, zext_optab, trunc_optab,
1081         sfix_optab, ufix_optab, sfixtrunc_optab, ufixtrunc_optab,
1082         sfloat_optab, ufloat_optab): New.
1083         (set_conv_libfunc): Prototype.
1084         (GEN_FCN): Use C90 indirect call syntax, remove unnecessary cast.
1085         (trunc_optab): Renamed btrunc_optab.
1086         * builtins.c (expand_builtin_mathfn): Update to match.
1087         * optabs.c (extendtab, fixtab, fixtrunctab, floattab): Delete.
1088         (convert_optab_table, new_convert_optab, init_convert_optab)
1089         (init_interclass_conv_libfuncs, init_intraclass_conv_libfuncs)
1090         (set_conv_libfunc): New.
1091         (can_extend_p, gen_extend_insn, can_fix_p, can_float_p)
1092         (expand_float, expand_fix): Use new conversion optabs,
1093         not old insn code tables or long chains of ifs.
1094         (init_optabs): No need to clear old insn code tables.
1095         Initialize the new optabs, not the old libfunc array entries.
1096         Don't handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1097         * genopinit.c: Initialize conversion optabs, not the
1098         former insn code tables.  Remove unnecessary casts.
1099         Handle FIXUNS_TRUNC_LIKE_FIX_TRUNC here.
1100         * expr.c (convert_move): Remove redundant check that
1101         to_real==from_real.  Use the conversion optabs instead
1102         of long chains of tests of modes.  Move partial-integer-mode
1103         interconversion above all integer conversion.  Do not recurse
1104         on a value forced into a register in the original mode.
1105
1106         * config/gofast.h, config/frv/frv.c, config/ia64/ia64.c
1107         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1108         * config/sparc/sparc.c: Use set_conv_libfunc to adjust entries
1109         in new conversion optabs; do not reference the old libfunc
1110         array entries.  No need to include libfuncs.h.
1111
1112 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1113
1114         * config/i386/i386.c (ix86_expand_setcc): Annotate the floating
1115         point comparison sequence with a REG_EQUAL note that describes
1116         the comparison's semantics.
1117
1118 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1119
1120         * expr.c (expand_expr <COND_EXPR>): Handle the void type semantics
1121         of COND_EXPR when expanding the "A op 0 ? FOO : A" optimizations.
1122
1123 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1124             Zack Weinberg  <zack@codesourcery.com>
1125
1126         * optabs.c (prepare_float_lib_cmp): Avoid searching for REG_RETVAL
1127         instruction by using LCT_CONST and then calling emit_libcall_block
1128         ourselves.
1129
1130 2003-10-06  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
1131
1132         PR optimization/11974
1133         * optabs.c (expand_unop): Promote libcall outmode according to
1134         hard_libcall_value.
1135
1136 2003-10-06  Zack Weinberg  <zack@codesourcery.com>
1137
1138         * real.h (REAL_MODE_FORMAT): New macro.
1139         * c-cppbuiltin.c, optabs.c, real.c, config/alpha/alpha.c
1140         * config/c4x/c4x.c, config/i370/i370.c, config/i386/freebsd.h
1141         * config/i386/i386.c, config/i960/i960.c, config/ia64/ia64.c
1142         * config/m68k/m68k.c, config/mips/mips.c, config/rs6000/rs6000.c
1143         * config/vax/vax.c: Use REAL_MODE_FORMAT instead of referring
1144         directly to real_format_for_mode array, wherever possible.
1145
1146 2003-10-06  Devang Patel  <dpatel@apple.com>
1147
1148         * dwarf2out.c (is_main_source): Remove variable.
1149         (dwarf2out_start_source_file): Do not check is_main_source.
1150         Do not reset is_main_source.
1151         (dwarf2out_init): Do not initialize is_main_source.
1152
1153 2003-10-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1154
1155         * fixinc/inclhack.def (stdio_va_list): Removed _ap fix.
1156         (irix_stdio_va_list): Don't require leading printf, IRIX 6.5.21
1157         introduced some multi-line prototypes.
1158         * fixinc/fixincl.x: Regenerate.
1159
1160 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1161
1162         * config/mips/mips.h (PREDICATE_CODES): Add stack_operand.
1163         * config/mips/mips.c (stack_operand): New predicate.
1164         * config/mips/mips.md: Use it for the destination of mips16 insns
1165         that store $31.
1166
1167 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1168
1169         * config/mips/mips.md (*lowsi): Renamed from lowsi.
1170         (*lowdi): Likewise lowdi.
1171         (*lowsi_mips16, *lowdi_mips16): New patterns.
1172         * config/mips/mips.c (mips_const_insns, mips_output_move): Remove
1173         mips16 CONSTANT_RELOC handling.
1174         (mips_delegitimize_address): Adjust for new sdata representation.
1175
1176 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1177
1178         * config/mips/mips.c (mips_arg_info): If MUST_PASS_IN_STACK,
1179         skip any remaining register arguments.
1180
1181 2003-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
1182
1183         * reload.c (find_reloads_subreg_address): Use correct offset for
1184         paradoxical MEM subregs on big-endian targets.
1185
1186 2003-10-06  Andrew Haley  <aph@redhat.com>
1187
1188         * tree.c (get_callee_fndecl): Call
1189         lang_hooks.lang_get_callee_fndecl.
1190         * langhooks-def.h (LANG_HOOKS_GET_CALLEE_FNDECL): New.
1191         (lhd_get_callee_fndecl): New.
1192
1193 2003-10-06  Andrew Pinski  <apinski@apple.com>
1194
1195         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1196         error in calculating the length of the string.
1197         (machopic_stub_name): Likewise.
1198
1199 2003-10-06  Roger Sayle  <roger@eyesopen.com>
1200
1201         * optabs.c (prepare_float_lib_cmp):  Attach a REG_EQUAL note
1202         describing the return value of the comparison libcall to the
1203         REG_RETVAL instruction of the emitted sequence.
1204
1205 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1206
1207         PR optimization/12215
1208         * cse.c (cse_set_around_loop): Emit the move at the beginning
1209         of the next basic block for trapping sets.
1210
1211 2003-10-06  Eric Botcazou  <ebotcazou@libertysurf.fr>
1212
1213         PR optimization/11637
1214         * combine.c (adjust_for_new_dest): New function to adjust the
1215         notes and LOG_LINKS when the dest of an insn has changed.
1216         (try_combine): Use it when deleting the first insn of a two-insn
1217         parallel or splitting a two-load parallel.
1218
1219 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1220
1221         * config/mips/mips.c (mips_classify_constant): Only allow UNSPECs
1222         if TARGET_EXPLICIT_RELOCS.
1223
1224 2003-10-06  Mark Mitchell  <mark@codesourcery.com>
1225
1226         PR bootstrap/12512
1227         * Makefile.in (info): Use double-colon rules.
1228         (dvi): Likewise.
1229         (generated-manpages): Likewise.
1230         * configure.in: Do not create lang.info, lang.dvi, or
1231         lang.generated-manpages hooks.
1232         * configure: Regenerated.
1233         * objc/Make-lang.in (objc.info): Remove.
1234         (objc.dvi): Remove.
1235         (objc.generated-manpages): Remove.
1236         * doc/sourcebuild.texi: Update description of info, dvi, and
1237         generated-manpages hooks.
1238
1239 2003-10-06  Richard Sandiford  <rsandifo@redhat.com>
1240
1241         * config/mips/mips.md: Merge mips16 lw/srl pattern with its splitter.
1242
1243 2003-10-05  Andrew Pinski  <apinski@apple.com>
1244
1245         * config/darwin.c (machopic_non_lazy_ptr_name): Fix off by one
1246         errors in memcpy destinations.
1247         (machopic_stub_name): Likewise.
1248
1249 2003-10-05  Andrew Pinski <apinski@apple.com>
1250
1251         * config/darwin.c (machopic_non_lazy_ptr_name):
1252         Change strcat to memcpy and add length together.
1253         (machopic_stub_name): Likewise.
1254
1255 2003-10-05  Kaz Kojima  <kkojima@gcc.gnu.org>
1256
1257         * config/sh/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Handle new
1258         signal trampoline codes.
1259
1260 2003-10-05  Chris Demetriou  <cgd@broadcom.com>
1261
1262         * config/mips/mips.md (*divsf3): Move description of
1263         SB-1 F2 erratum from here to...
1264         (divsf3): Here.  Disable if TARGET_FIX_SB1 is set and
1265         flag_unsafe_math_optimizations is not.
1266
1267 2003-10-05  Aldy Hernandez  <aldyh@redhat.com>
1268
1269         * config/rs6000/linuxspe.h: Define TARGET_SPE_ABI, TARGET_SPE,
1270         TARGET_E500, TARGET_ISEL, and TARGET_FPRS.
1271
1272 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1273
1274         * c-pretty-print.c: Fix comment typos.
1275         * c-pretty-print.h: Likewise.
1276         * calls.c: Likewise.
1277         * cfgloopmanip.c: Likewise.
1278         * cgraphunit.c: Likewise.
1279         * cppfiles.c: Likewise.
1280         * final.c: Likewise.
1281         * function.c: Likewise.
1282         * gcov-io.h: Likewise.
1283         * gcse.c: Likewise.
1284         * genoutput.c: Likewise.
1285         * loop.c: Likewise.
1286         * postreload.c: Likewise.
1287         * reg-stack.c: Likewise.
1288         * regmove.c: Likewise.
1289         * sched-int.h: Likewise.
1290         * sched-rgn.c: Likewise.
1291         * simplify-rtx.c: Likewise.
1292         * tree-inline.c: Likewise.
1293         * config/m68hc11/m68hc11.h: Likewise.
1294         * config/mmix/mmix.c: Likewise.
1295         * config/mn10300/mn10300.md: Likewise.
1296         * config/sh/sh.h: Likewise.
1297
1298 2003-10-05  Richard Henderson  <rth@redhat.com>
1299
1300         * tree-inline.c (remap_type): New.
1301         (remap_decl): Use it.  Remap DECL_SIZE*.
1302         (copy_body_r): Use it.
1303         (walk_tree): Walk TREE_TYPE too.
1304         (copy_tree_r): Don't walk subtrees of types.
1305         * tree.c (variably_modified_type_p): Restructure.  Consider integer
1306         types with non-const bounds variably modified.
1307
1308 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1309
1310         * doc/invoke.texi: Fix typos.
1311
1312 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1313
1314         * fold-const.c: Follow spelling conventions.
1315         * function.c: Likewise.
1316         * config/c4x/c4x.h: Likewise.
1317         * config/c4x/c4x.md: Likewise.
1318         * config/frv/frv.md: Likewise.
1319         * config/rs6000/aix.h: Likewise.
1320         * config/rs6000/linux64.h: Likewise.
1321         * config/xtensa/xtensa.c: Likewise.
1322
1323 2003-10-05  Kazu Hirata  <kazu@cs.umass.edu>
1324
1325         * c-pretty-print.c: Fix comment formatting.
1326         * cfglayout.c: Likewise.
1327         * cfgloopanal.c: Likewise.
1328         * cppcharset.c: Likewise.
1329         * dbxout.c: Likewise.
1330         * ggc-page.c: Likewise.
1331         * ggc.h: Likewise.
1332         * target.h: Likewise.
1333
1334 2003-10-04  Kelley Cook  <kelleycook@wideopenwest.com>
1335
1336         * gengtype-lex.l: Recognize typedef of functions without PARAMS macro.
1337
1338 2003-10-04  Nathanael Nerode  <neroden@gcc.gnu.org>
1339
1340         * config/v850/v850-c.c, config/v850/v850-protos.h, config/v850/v850.c:
1341         Convert to ISO C90 function declarations and definitions.
1342
1343 2003-10-04  Zack Weinberg  <zack@codesourcery.com>
1344
1345         * libfuncs.h
1346         (LTI_eqhf2, LTI_nehf2, LTI_gthf2, LTI_gehf2, LTI_lthf2)
1347         (LTI_lehf2, LTI_unordhf2, LTI_eqsf2, LTI_nesf2, LTI_gtsf2)
1348         (LTI_gesf2, LTI_ltsf2, LTI_lesf2, LTI_unordsf2, LTI_eqdf2)
1349         (LTI_nedf2, LTI_gtdf2, LTI_gedf2, LTI_ltdf2, LTI_ledf2)
1350         (LTI_unorddf2, LTI_eqxf2, LTI_nexf2, LTI_gtxf2, LTI_gexf2)
1351         (LTI_ltxf2, LTI_lexf2, LTI_unordxf2, LTI_eqtf2, LTI_netf2)
1352         (LTI_gttf2, LTI_getf2, LTI_lttf2, LTI_letf2, LTI_unordtf2)
1353         (eqhf2_libfunc, nehf2_libfunc, gthf2_libfunc, gehf2_libfunc)
1354         (lthf2_libfunc, lehf2_libfunc, unordhf2_libfunc, eqsf2_libfunc)
1355         (nesf2_libfunc, gtsf2_libfunc, gesf2_libfunc, ltsf2_libfunc)
1356         (lesf2_libfunc, unordsf2_libfunc eqdf2_libfunc, nedf2_libfunc)
1357         (gtdf2_libfunc, gedf2_libfunc, ltdf2_libfunc, ledf2_libfunc)
1358         (unorddf2_libfunc eqxf2_libfunc, nexf2_libfunc, gtxf2_libfunc)
1359         (gexf2_libfunc, ltxf2_libfunc, lexf2_libfunc, unordxf2_libfunc
1360         (eqtf2_libfunc, netf2_libfunc, gttf2_libfunc, getf2_libfunc)
1361         (lttf2_libfunc, letf2_libfunc, unordtf2_libfunc):
1362         Delete.
1363         * optabs.h (OTI_eq, OTI_ne, OTI_gt, OTI_ge, OTI_lt, OTI_le)
1364         (OTI_unord, eq_optab, ne_optab, gt_optab, ge_optab, lt_optab)
1365         (le_optab, unord_optab): New.
1366
1367         * optabs.c (prepare_float_lib_cmp): Rewrite.  Get the libfuncs
1368         from the code_to_optab table, not a giant switch; use
1369         swap_condition; do widening only if a comparison function that
1370         we can call exists in a wider mode, not if a cmp_optab insn or
1371         libfunc exists in a wider mode; call protect_from_queue
1372         exactly once on each operand.
1373         (init_optabs): Initialize the new optabs, not the deleted libfuncs.
1374
1375         * config/gofast.h, config/ia64/ia64.c, config/mips/mips.c
1376         * config/pa/pa.c, config/rs6000/rs6000.c, config/sparc/sparc.c:
1377         Set floating point comparison libfuncs using set_optab_libfunc
1378         on the appropriate optab.
1379
1380         * config/ia64/ia64.c (ia64_hpux_init_libfuncs): Fix typo.
1381         * config/rs6000/rs6000.c (rs6000_init_libfuncs): Correct ABI
1382         selector conditionals.
1383
1384 2003-10-04  Stephane Carrez  <stcarrez@nerim.fr>
1385
1386         * config/m68hc11/t-m68hc11-gas (MULTILIB_MATCHES): m68hcs12 is
1387         identical to m68hc12 as far as libraries are concerned.
1388
1389 2003-10-04  Eric Botcazou  <ebotcazou@libertysurf.fr>
1390
1391         PR c/12446
1392         * c-typeck.c (convert_for_assignment): Issue an error for
1393         array to pointer assignment after default conversion.
1394         (digest_init): Likewise.
1395
1396 2003-10-04  Fariborz Jahanian  <fjahanian@apple.com>
1397
1398         * c-decl.c (duplicate_decls): retain DECL_COMMON of old declaration
1399
1400 2003-10-03  Gerald Pfeifer  <gerald@pfeifer.com>
1401
1402         * doc/extend.texi (Function Attributes): Fix title of GNU C
1403         Preprocessor manual.
1404         (C++ Extensions): Fix reference to "Predefined Macros" in the
1405         GNU C Preprocessor manual.
1406
1407 2003-10-04  Richard Earnshaw  <reanrsha@arm.com>
1408
1409         * doc/extend.texi: Document how GCC estimates and relies on the size
1410         of an asm.
1411
1412 2003-10-04  Richard Sandiford  <rsandifo@redhat.com>
1413
1414         * config/mips/mips.c (mips_pad_arg_upward): Pad floating-point
1415         arguments downward for big-endian o64.
1416
1417 2003-10-03  Robert Bowdidge <bowdidge@apple.com>
1418
1419         * ggc-page.c (ggc_pch_write_object): Replace fseek() with fwrite() in
1420         PCH generation, avoiding too-frequent flushes when writing to NFS
1421         file system.
1422
1423 2003-10-03  Ziemowit Laski  <zlaski@apple.com>
1424
1425         * objc/objc-act.c (lookup_category): Mark as 'inline'.
1426
1427 2003-10-03  Alexander Malmberg  <alexander@malmberg.org>
1428             Ziemowit Laski  <zlaski@apple.com>
1429
1430         * objc/objc-act.c (add_method_to_hash_list, lookup_category):
1431         New functions.
1432         (lookup_method_in_hash_lists): New parameter indicating whether
1433         we are messaging 'Class' or 'id'.
1434         (check_duplicates): Likewise; do not assume all methods will
1435         be either class or instance methods.
1436         (generate_category, finish_class): Use lookup_category().
1437         (add_method): Use add_method_to_hash_list(); insert instance
1438         methods of root classes into the global class method hash table.
1439         (add_category): Use lookup_category(); avoid constructing
1440         duplicate categories.
1441         (really_start_method): Add method to corresponding @interface,
1442         if not already there (and if the @interface exists).
1443         (finish_message_expr, finish_objc): Adjust calls to
1444         check_duplicates().
1445
1446 2003-10-03  Roger Sayle  <roger@eyesopen.com>
1447
1448         PR optimization/9325, PR java/6391
1449         * fold-const.c (fold_convert): For floating point to integer
1450         conversions, return the maximum/minimum representable integer
1451         value if the real constant overflows the destination type.
1452         * tree.c (real_value_from_int_cst): Allow the type to be NULL,
1453         meaning don't truncate the result to a floating point mode.
1454         Simplify the logic by calling real_from_integer directly.
1455         * simplify-rtx.c (simplify_unary_operation):  Implement the
1456         same semantics for folding floating point to integer conversions
1457         in RTL.
1458
1459 2003-10-03  Chris Demetriou  <cgd@broadcom.com>
1460
1461         * config/mips/mips.c (mips_emit_prefetch): Restructure
1462         to avoid use of arrays, handle indexed prefetch.
1463         * config/mips/mips.h (ISA_HAS_FP4, ISA_HAS_PREFETCH): Update comments.
1464         (ISA_HAS_PREFETCHX): New deffine.
1465         * config/mips/mips.md ("type" attr): Add new "prefetchx" value,
1466         update comments.
1467         (prefetch_indexed_di, prefetch_indexed_si): New insns.
1468
1469 2003-10-03  Jeff Sturm  <jsturm@one-point.com>
1470             Roger Sayle  <roger@eyesopen.com>
1471
1472         PR optimization/12289
1473         * calls.c (emit_call_1): Pretend to have popped the arguments
1474         to noreturn and longjmp functions instead of ignoring them.
1475         (expand_call): Don't adjust stack_pointer_dela while
1476         inhibit_defer_pop is set.
1477
1478 2003-10-03  Andreas Schwab  <schwab@suse.de>
1479
1480         PR bootstrap/12276
1481         * configure.in: Check for libunwind on the host only if building
1482         a native compiler.
1483         * configure: Regenerated.
1484
1485 2003-10-03  Paolo Carlini  <pcarlini@unitus.it>
1486
1487         * unwind-pe.h (read_encoded_value_with_base): Constify u and
1488         its inizialization cast.
1489
1490 2003-10-03  Richard Sandiford  <rsandifo@redhat.com>
1491
1492         PR target/12485
1493         * config/mips/mips.c (mips_load_got): GOT accesses can't trap.
1494
1495 2003-10-02  Mark Mitchell  <mark@codesourcery.com>
1496
1497         PR optimization/12180
1498         * tree-inline.c (inline_forbidden_p_1): Do not permit inlining of
1499         functions containing calls to __builtin_next_arg.
1500
1501 2003-10-02  Chris Demetriou  <cgd@broadcom.com>
1502
1503         * config/mips/mips.c (mips_emit_prefetch): Use operand 3
1504         in instructions being output.
1505         * config/mips/mips.md (prefetch_si_address): Change third
1506         operand's constraint letter to 'I'.
1507         (prefetch_di_address): Likewise.
1508         (prefetch_si, prefetch_di): Set third operand to const0_rtx.
1509
1510 2003-10-02  Zack Weinberg  <zack@codesourcery.com>
1511
1512         * system.h: Poison macros obsoleted by earlier patch.
1513         * config/cris/cris.c: C90-ify a function definition.
1514
1515 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1516
1517         PR/12292
1518         * combine.c (make_field_assignment): Check whether rtx's code
1519         is CONST_INT before using INTVAL.
1520
1521 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1522
1523         * cgraph.c (cgraph_node): Use INSERT instead of 1 in
1524         htab_find_slot_with_hash.
1525         (cgraph_node_for_identifier): Use NO_INSERT.
1526         (cgraph_remove_node): Use NO_INSERT.
1527         (cgraph_varpool_node): Use INSERT.
1528         (cgraph_varpool_node_for_identifier): Use NO_INSERT.
1529
1530 2003-10-02  Josef Zlomek  <zlomekj@suse.cz>
1531
1532         Waldek Hebisch <hebisch@math.uni.wroc.pl>
1533         PR/12072
1534         * varasm.c (compare_constant): Fix thinko.
1535
1536 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
1537
1538         * config/frv/frv.c (frv_issue_rate): New function.
1539         (frv_pack_insns): Use it.
1540         (TARGET_SCHED_ISSUE_RATE): Define.
1541
1542 2003-10-02  Steven Bosscher <s.bosscher@student.tudelft.nl>
1543
1544         * config/mcore/mcore.c: Convert to ISO C90 function declarations
1545         and definitions.
1546         * config/mcore/mcore.h: Likewise.
1547         * config/mcore/mcore-protos.h: Likewise.
1548
1549 2003-10-02  Richard Sandiford  <rsandifo@redhat.com>
1550
1551         * config/frv/frv.c (frv_use_dfa_pipeline_interface): New function.
1552         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
1553
1554 2003-10-01  Per Bothner  <pbothner@apple.com>
1555
1556         * c-lex.c (src_line):   Remove unneeded static variable.
1557         (cb_line_change):  Set input_line directly, instead of src_line.
1558         (get_non_padding_token):  We no longer need to compensate for the
1559         "horrible things" the C++ front-end does with the current line number,
1560
1561         * cpplib.c (_cpp_pop_buffer):  Do generate a _cpp_do_file_change
1562         callback even when popping the main file.
1563         * c-lex.c (fe_file_change):  Handle a NULL new_map.
1564         * fix-header.c (cb_file_change):  Likewise.
1565         * c-ppoutput.c (pp_file_change):  Likewise.
1566
1567         * cppinit.c (cpp_read_main_file):  Split into two functions:
1568         Distribute _cpp_stack_file call over the two functions.
1569         (cpp_find_main_file):  New function.
1570         Don't call _cpp_do_file_change even if working_directory flag set.
1571         (cpp_push_main_file):  New function.
1572         * cppfiles.c (_cpp_find_failed):  New helper function.
1573         (find_file):  Made non-static and renamed to _cpp_find_file.
1574         (_cpp_stack_file):  No longer needed.  But note the following.
1575         (stack_file):  Made non-static and renamed to _cpp_stack_file.
1576         * fix-header.c (cpp_read_main_file):  Replace cpp_read_main_file
1577         call with calls to cpp_find_main_file and cpp_push_main_file.
1578         (search_path_head):  If there is no current buffer, use main_file.
1579         * cpphash.h:  Update function declarations.
1580         * cpplib.h:  Update function declarations.
1581
1582         * c-opts.c (c_common_post_options):  Don't call cpp_find_main_file yet.
1583         (c_common_parse_file):  No longer need to call cpp_read_main_file
1584         when file_index > 0 (as in multi-file or server compiation).
1585         (finish_options):  Change to <built-in> is an LC_ENTER, not LC_RENAME
1586         as this now happens before cpp_push_main_file.
1587         (push_command_line_include):  When done with options, pass LC_LEAVE
1588         instead of LC_RENAME to cpp_change_file and finally cpp_push_main_file.
1589         (fe_file_change):  Handle NULL new_map, and simplify.
1590         * cpplex.c (_cpp_get_fresh_line):  Revert my no-longer-needed
1591         08-28 change, since we're never called with a NULL buffer.
1592         (_cpp_lex_direct):  Likewise.
1593         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
1594         Return false if buffer is NULL at end.
1595
1596         * cpplex.c (_cpp_get_fresh_line):  Return value now just depends on
1597         whether pfile->buffer is NULL after pop, ignoring return_at_eof.
1598         * cpphash.h (struct cpp_buffer):  Remove unused return_at_eof field.
1599         * cpplib.c (cpp_push_buffer):  Since we no longer set return_at_eof,
1600         remove the unused return_at_eof parameter.
1601         * cppfiles.c, cpplib.c, cppmacro.c, cpppch.c, fix-header.c:
1602         Update callers of cpp_push_buffer.
1603
1604 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
1605
1606         * target.h (init_libfuncs): New hook.
1607         * target-def.h: Default TARGET_INIT_BUILTINS and
1608         TARGET_INIT_LIBFUNCS to hook_void_void.  Add
1609         TARGET_INIT_LIBFUNCS to TARGET_INITIALIZER.
1610         * builtins.c (default_init_builtins): Delete.
1611         * expr.h (default_init_builtins): Delete prototype.
1612         * doc/tm.texi: Document TARGET_INIT_LIBFUNCS and US_SOFTWARE_GOFAST.
1613         Tweak documentation of TARGET_FLOAT_LIB_COMPARE_RETURNS_BOOL.
1614         Remove documentation of INIT_TARGET_OPTABS, MULSI3_LIBCALL,
1615         DIVSI3_LIBCALL, UDIVSI3_LIBCALL, MODSI3_LIBCALL, UMODSI3_LIBCALL,
1616         MULDI3_LIBCALL, DIVDI3_LIBCALL, UDIVDI3_LIBCALL, MODDI3_LIBCALL,
1617         and UMODDI3_LIBCALL,
1618
1619         * Makefile.in (optabs.o): Depends on target.h.
1620         * defaults.h: Provide default for FLOAT_LIB_COMPARE_RETURNS_BOOL.
1621         * optabs.c: Include target.h.
1622         (prepare_float_lib_cmp): No need for #ifdef around use of
1623         FLOAT_LIB_COMPARE_RETURNS_BOOL.
1624         (set_optab_libfunc): New function.
1625         (init_optabs): Delete use of all *_LIBCALL defines.
1626         Call targetm.init_libfuncs not INIT_TARGET_OPTABS.
1627         * optabs.h: Prototype set_optab_libfunc.
1628
1629         * config.gcc: Remove all references to pa/long_double.h,
1630         ia64/hpux_longdouble.h, and gofast.h.
1631         (mips-*-*): When --enable-gofast, just add US_SOFTWARE_GOFAST
1632         to tm_defines; don't set INIT_SUBTARGET_OPTABS or change tm_file.
1633
1634         * config/alpha/alpha.c, config/c4x/c4x.c, config/cris/cris.c
1635         * config/frv/frv.c, config/h8300/h8300.c, config/i860/i860.c
1636         * config/ia64/ia64.c, config/ip2k/ip2k.c, config/m68hc11/m68hc11.c
1637         * config/mips/mips.c, config/pa/pa.c, config/rs6000/rs6000.c
1638         * config/sparc/sparc.c, config/vax/vax.c:
1639         Provide a definition for TARGET_INIT_LIBFUNCS.  Where
1640         necessary, include optabs.h, libfuncs.h, and/or config/gofast.h.
1641
1642         * config/alpha/unicosmk.h, config/alpha/vms.h, config/c4x/c4x.h
1643         * config/avr/avr.h, config/cris/cris.h, config/frv/frv.h
1644         * config/h8300/h8300.h, config/i860/i860.h, config/ip2k/ip2k.h
1645         * config/iq2000/iq2000.h, config/m68hc11/m68hc11.h, config/mips/mips.h
1646         * config/rs6000/aix.h, config/rs6000/sysv4.h, config/sparc/elf.h
1647         * config/sparc/lite.h, config/sparc/netbsd-elf.h, config/sparc/sol2.h
1648         * config/sparc/sparc.h, config/v850/v850.h, config/vax/vax.h
1649         * config/vax/elf.h: Don't define or use INIT_TARGET_OPTABS,
1650         INIT_SUBTARGET_OPTABS, or any *_LIBCALL macros.
1651
1652         * config/ia64/hpux.h: Redefine INTEL_EXTENDED_IEEE_FORMAT to 0.
1653         Set TARGET_INIT_LIBFUNCS and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1654         * config/pa/pa-hpux.h: Define LONG_DOUBLE_TYPE_SIZE,
1655         HPUX_LONG_DOUBLE_LIBRARY, and FLOAT_LIB_COMPARE_RETURNS_BOOL here.
1656         * config/ia64/hpux_longdouble.h, config/pa/long_double.h: Delete.
1657
1658         * config/rs6000/xcoff.h: Don't define RS6000_ITRUNC nor RS6000_UITRUNC.
1659         * config/sparc/sparc.h: Default SUN_CONVERSION_LIBFUNCS and
1660         SUN_INTEGER_MULTIPLY_64 to 0.
1661         * config/sparc/sol2.h: Redefine SUN_CONVERSION_LIBFUNCS and
1662         SUN_INTEGER_MULTIPLY_64 to 1.
1663         * config/sparc/elf.h: Redefine SUN_CONVERSION_LIBFUNCS and
1664         SUN_INTEGER_MULTIPLY_64 to 0.
1665         * config/sparc/lite.h, config/sparc/liteelf.h, config/sparc/sp86x-elf.h:
1666         Define US_SOFTWARE_GOFAST.
1667         * config/vax/vax.h: Default TARGET_ELF to 0.
1668         * config/vax/elf.h: Redefine TARGET_ELF to 1.
1669
1670         * config/gofast.h: Don't define any macros here.  Provide one
1671         static function, gofast_maybe_init_libfuncs, which does what
1672         INIT_GOFAST_LIBFUNCS used to do but only if US_SOFTWARE_GOFAST
1673         is already defined.  Do not clear negation libfuncs.  Do
1674         not mess with HFmode, XFmode, or TFmode libfuncs.
1675
1676         * config/avr/avr.c (avr_init_once): #if 0 out; mark FIXME.
1677
1678 2003-10-01  Kelley Cook  <kelleycook@wideopenwest.com>
1679
1680         PR C/12466
1681         * c-parse.in (parmlist_2): Mark declaration with an ellipsis as ISO C.
1682
1683 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1684
1685         * config/mips/xm-iris5.h: Remove, unnecessary.
1686         * config.build (mips-sgi-irix5*): Remove.
1687         (mips-sgi-irix6*o32): Likewise.
1688         * config.gcc (mips-sgi-irix6*o32): Remove xm_file.
1689         (mips-sgi-irix5cross64): Likewise.
1690         (mips-sgi-irix5*): Likewise.
1691         * config.host (mips-sgi-irix5*): Remove.
1692         (mips-sgi-irix6*o32): Likewise.
1693
1694 2003-10-01  Zack Weinberg  <zack@codesourcery.com>
1695
1696         * dbxout.c (dbxout_fptype_value): Delete.
1697         (dbxout_type): Emit R3 for all COMPLEX_TYPEs.
1698
1699 2003-10-01  Alexandre Oliva  <aoliva@redhat.com>
1700
1701         * output.h (compute_reloc_for_constant): Declare.
1702         * varasm.c (compute_reloc_for_constant): Extract from...
1703         (output_addressed_constants): ... here.  Adjust all callers.
1704
1705 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1706
1707         * aclocal.m4: Add hpux10* and hpux11.00 to /dev/zero blacklist.
1708         * configure: Rebuilt.
1709
1710 2003-10-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1711
1712         * fold-const.c (make_range): When handling unsigned, don't reverse
1713         range if high bound is zero.
1714
1715 2003-09-30  Alexandre Oliva  <aoliva@redhat.com>
1716
1717         * config/frv/frv.h (PREDICATE_CODES): Added
1718         condexec_si_media_operator, condexec_sf_add_operator and
1719         condexec_sf_conv_operator.  Removed condexec_sf_binary_operator
1720         and condexec_sf_unary_operator.
1721
1722 2003-10-01  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
1723
1724         * aclocal.m4: Add ultrix* to /dev/zero blacklist.
1725         * configure: Rebuilt.
1726
1727 2003-10-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1728
1729         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Revert 2003-09-23 change.
1730         Allow override.
1731         * doc/tm.texi (MUST_USE_SJLJ_EXCEPTIONS): Document.
1732
1733 2003-09-23  David S. Miller  <davem@redhat.com>
1734
1735         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Undefine
1736         before redefining.
1737         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
1738
1739 2003-10-01  Steven Bosscher  <steven@gcc.gnu.org>
1740
1741         * config/cris/cris-protos.h, config/cris/cris.c: Convert to ISO
1742         C90 function declarations and definitions.
1743
1744 2003-10-01  Nathanael Nerode  <neroden@gcc.gnu.org>
1745
1746         * config.gcc (cris-*-linux*): Revert mistaken commit.
1747
1748 2003-10-01  Eric Botcazou  <ebotcazou@libertysurf.fr>
1749
1750         PR optimization/11753
1751         * config/sparc/sparc.md (length attribute) [fcc branch]: Add 1 to
1752         the length in the non-V9 case.
1753
1754 2003-09-30  Richard Henderson  <rth@redhat.com>
1755
1756         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes): Honor
1757         DWARF_ALT_FRAME_RETURN_COLUMN.
1758         * unwind-dw2.c (dwarf_reg_size_table): Expand by one.
1759         (_Unwind_GetGR, _Unwind_SetGR): Validate lookup column.
1760         (uw_frame_state_for): Return end-of-stack for null return address.
1761         * doc/tm.texi (DWARF_ALT_FRAME_RETURN_COLUMN): Add.
1762
1763         * config/alpha/alpha.c (alpha_sa_mask): Add r31 for eh_return.
1764         (alpha_expand_prologue): Store a zero for it.
1765         (alpha_expand_epilogue): Don't reload it.
1766         * config/alpha/alpha.h (DWARF_ALT_FRAME_RETURN_COLUMN): New.
1767         * config/alpha/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Use column 64
1768         for the sigframe return address.
1769
1770 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
1771
1772         * sdbout.c: Convert to ISO C90 prototypes.
1773         * objc/objc-act.c: Likewise.
1774
1775 2003-09-30  Kelley Cook  <kelleycoook@wideopenwest.com>
1776
1777         * config/i386/cygwin1.c: Convert to ISO C90 prototypes.
1778         * config/i386/winnt.c: Likewise.
1779         * config/i386/cygming.h: Likewise.
1780
1781 2003-09-30  Kazu Hirata  <kazu@cs.umass.edu>
1782
1783         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1784         (A ^ B) - B for any B.
1785
1786 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
1787
1788         * config.gcc (arm*-*-kaos*, i[34567]86-*-kaos*, powerpc-*-kaos*,
1789         powerpcle-*-kaos*, strongarm-*-kaos*): Disable fixproto.
1790
1791 2003-09-30  Richard Earnshaw  <rearnsha@arm.com>
1792
1793         * arm/ieee754-sf.S: Tidy formatting.
1794
1795 2003-09-30  Nicolas Pitre  <nico@cam.org>
1796
1797         * arm/lib1funcs.asm (ARM_DIV_MOD_BODY): Split into ARM_DIV_BODY
1798         and ARM_MOD_BODY.
1799         (ARM_MOD_BODY): Rewritten. added clz insns for __ARM_ARCH__ >= 5.
1800         (ARM_DIV_BODY): Added clz insns for __ARM_ARCH__ >= 5,
1801         added better divisor alignment in the other case.
1802         (ARM_DIV2_ORDER): Added, finds the order of a single bit divisor.
1803         (__divsi3, __udivsi3, __modsi3, __umodsi3): rewritten using the
1804         macros above, add fast exits for divisor >= dividend, etc.
1805
1806 2003-09-30  Nicolas Pitre  <nico@cam.org>
1807
1808         * arm/ieee754-df.S: Split compilation of fixunsdfsi from
1809         L_fixdfsi target.
1810         * arm/t-arm-elf (LIB1ASMFUNCS): Add _fixunsdfsi.
1811
1812 2003-09-30  Nathanael Nerode  <neroden@gcc.gnu.org>
1813
1814         * config.gcc: Default use_fixproto to 'no'.
1815
1816 2003-09-30  Richard Sandiford  <rsandifo@redhat.com>
1817
1818         PR optimization/12345
1819         * config/mips/mips-protos.h (mips_restore_gp): Remove.
1820         (mips_gp_save_slot): Declare.
1821         * config/mips/mips.c (mips_restore_gp): Remove in favor of...
1822         (mips_gp_save_slot): ...this new function.
1823         * config/mips/mips.md (exception_receiver): Use mips_gp_save_slot
1824         and mips_output_move to generate the output template.
1825         (call_internal): Force splitting if TARGET_SPLIT_CALLS.  Don't emit
1826         a gp load after a noreturn call.  Load the gp using a move rather
1827         than an exception_receiver pattern.
1828         (call_value_internal, call_value_multiple_internal): Likewise.
1829         (call_split, call_value_split, call_value_multiple_split): Clobber $28.
1830
1831 2003-09-30  Carlo Wood  <carlo@alinoe.com>
1832
1833         PR debug/12319
1834         * cfglayout.c (insn_scope):  Use prologue_locator and
1835         epilogue_locator; return the outer function scope for
1836         pro- and epilogue insns.
1837
1838 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
1839
1840         * objc/objc-act.c (encode_type): Encode INTEGER_TYPEs and
1841         REAL_TYPEs based on the bitsize of the type's mode, not the
1842         mode directly.
1843
1844 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1845
1846         * dwarf2out.c (default_eh_frame_section): Split into ...
1847         (named_section_eh_frame_section, collect2_eh_frame_section): ... new
1848         functions.
1849         * output.h (named_section_eh_frame_section): Declare.
1850         (collect2_eh_frame_section): Likewise.
1851
1852 2003-09-29  Zack Weinberg  <zack@codesourcery.com>
1853
1854         * real.c (real_sqrt): Use get_canonical_qnan directly.
1855
1856         * dwarf2out.c (add_const_value_attribute): Use real_to_target.
1857
1858         * varasm.c (assemble_real): Use real_to_target directly,
1859         calculate the number of significant elements of the result
1860         array and write them out in a loop, instead of using a giant
1861         switch statement to pick the correct REAL_VALUE_TO_TARGET_*
1862         macro.
1863
1864 2003-09-29  Jan Hubicka  <jh@suse.cz>
1865
1866         PR c++/12175
1867         * varasm.c (notice_global_symbol): Discard external symbols.
1868
1869         PR optimization/12286
1870         * gcov-io.c (gcov_read_words): Fix memmove call.
1871         * profile.c (compute_branch_probabilities): Add extra sanity checks.
1872
1873 2003-09-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1874
1875         * config.gcc (sparc-*-solaris2*): Handle Solaris 10 and up like
1876         Solaris 7-9.
1877
1878         * fixinc/inclhack.def (solaris_widec): Replace solaris2.[0-5]* by
1879         wildcards which explicitly match micro versions.
1880         * fixinc/fixincl.x: Regenerate.
1881
1882 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
1883
1884         * fold-const.c (fold): Fold (A & ~B) - (A & B) into
1885         (A ^ B) - B, where B is any power of 2 minus 1.
1886
1887 2003-09-29  Jan Hubicka  <jh@suse.cz>
1888
1889         * libgcov.c (gcov_exit): Fix two pastos.
1890
1891 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
1892
1893         * config/h8300/h8300.md (*tst_extzv_1_n): Combine with the
1894         define_split immediately below to form define_insn_and_split.
1895
1896 2003-09-29  Kazu Hirata  <kazu@cs.umass.edu>
1897
1898         * config/h8300/h8300.md (*tstsi_variable_bit): New.
1899         (*tstsi_variable_bit_qi): Likewise.
1900
1901 2003-09-28  Phil Edwards  <phil@codesourcery.com>
1902
1903         * doc/cppopts.texi:  Use 'dashMP' instead of '-MP' as a cross-
1904         reference name.
1905
1906 2003-09-28  Richard Henderson  <rth@redhat.com>
1907
1908         * c-decl.c (duplicate_decls): Copy DECL_SOURCE_LOCATION, not
1909         file and line separately.
1910
1911 2003-09-28  Ulrich Weigand  <uweigand@de.ibm.com>
1912
1913         * config/s390/s390.md ("*adddi3_carry1_cc", "*adddi3_carry1_cconly",
1914         "*adddi3_carry2_cc", "*adddi3_carry2_cconly", "*subdi3_borrow_cc",
1915         "*subdi3_borrow_cconly"): New insns.
1916         ("*addsi3_sub", "*subsi3_sub"): Remove.
1917         ("*subdi3_cc", *subdi3_cconly"): Use only if TARGET_64BIT.
1918         ("*subsi3_cc"): Fix op_type attribute.
1919
1920 2003-09-28  Richard Henderson  <rth@redhat.com>
1921
1922         * stmt.c (expand_asm_operands): Take a location_t, instead of
1923         individual file and line.
1924         * c-typeck.c (c_expand_asm_operands): Likewise.
1925         * tree.h (expand_asm_operands): Update decl.
1926         * c-common.h (c_expand_asm_operands): Likewise.
1927         * c-semantics (genrtl_asm_stmt): Update call.
1928
1929 2003-09-28  Philip Blundell  <philb@gnu.org>
1930
1931         * config/arm/arm.c (legitimize_pic_address): Check
1932         SYMBOL_REF_LOCAL_P, not ENCODED_SHORT_CALL_ATTR_P.
1933         (arm_assemble_integer): Likewise.
1934
1935 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
1936
1937         * config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
1938         config/c4x/c4x-c.c, config/c4x/c4x-protos.h, config/c4x/c4x.c,
1939         config/c4x/c4x.h:
1940         Convert to ISO C90 function declarations and definitions.
1941
1942 2003-09-28  Steven Bosscher  <steven@gcc.gnu.org>
1943
1944         *  config/stormy16/stormy16.c, config/stormy16/stormy16-protos.h:
1945         Convert to ISO C90 function declarations and definitions.
1946
1947 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
1948
1949         * config/mips/mips.c (mips_constant_info): Add reloc field.
1950         (mips_classify_constant): Initialize it.  Always set SYMBOL to the
1951         underlying symbol, not to an unspec.
1952         (mips_delegitimize_address, print_operand): Clean up accordingly.
1953
1954 2003-09-28  Richard Sandiford  <rsandifo@redhat.com>
1955
1956         * config/mips/mips-protos.h (mips16_gp_pseudo_reg): Remove.
1957         * config/mips/mips.h (LEGITIMATE_CONSTANT_P): Remove orphaned comment.
1958         * config/mips/mips.c (mips_reloc_offset_ok_p): New function.
1959         (mips_classify_constant): Use it.
1960         (mips_splittable_symbol_p): Add an offset argument.
1961         (mips_classify_address): Adjust call accordingly.
1962         (mips_legitimize_symbol): Handle sdata references with LO_SUM rather
1963         than a relocation unspec.  Update call to mips_splittable_symbol_p.
1964         Generalize the code that copes with symbols + invalid offsets.
1965         (print_operand): Allow '%R' to be applied to small data addresses.
1966         (mips_reloc_string): Remove RELOC_GPREL16.
1967         (mips_sdata_pointer): Renamed from mips16_gp_pseudo_reg.  Return $gp
1968         for TARGET_EXPLICIT_RELOCS.  Return null if we can't use gp-relative
1969         relocation operators.
1970         * config/mips/mips.md (RELOC_GPREL16): Remove.  Shuffle other reloc
1971         constants accordingly.
1972
1973 2003-09-27  Roger Sayle  <roger@eyesopen.com>
1974
1975         * toplev.c (flag_evaluation_order): New global variable.
1976         * flags.h (flag_evaluation_order): Prototype here.
1977         * expr.c (expand_operands): If we need to preserve observable
1978         evaluation order, protect exp1 from clobbering exp0's result.
1979
1980 2003-09-28  Andreas Jaeger  <aj@suse.de>
1981
1982         * c-decl.c (finish_function): Convert definition to ISO C90.
1983         * ifcvt.c (mark_loop_exit_edges): Likewise.
1984         * ra-rewrite.c (emit_colors): Likewise.
1985
1986 2003-09-27  Nathanael Nerode  <neroden@gcc.gnu.org>
1987
1988         * config.gcc (alpha*-dec-osf[45]*): Disable fixproto.
1989         * config.gcc (arm*-*-uclinux*): Disable fixproto.
1990         * config.gcc (powerpc-*-eabispe*, powerpc-*-eabisimaltivec*,
1991         powerpc-*-eabialtivec*): Disable fixproto.
1992
1993 2003-09-27  Eric Botcazou  <ebotcazou@libertysurf.fr>
1994
1995         PR optimization/12340
1996         * loop.h (struct induction): Document the new semantics
1997         of the 'same' field for bivs.
1998         * unroll.c (biv_total_increment): Don't count the same
1999         biv increment several times.
2000         (loop_iterations) [GENERAL_INDUCT]: Likewise.
2001
2002 2003-09-27  Graham Stott  <graham.stott@btinternet.com>
2003
2004         * unroll.c (loop_interations)[GT]: Add missing break.
2005
2006 2003-09-27  Kelley Cook  <kcook@gcc.gnu.org>
2007
2008         * config/chorus.h, config/darwin-c.c, config/darwin-protos.h,
2009         config/darwin.c, config/darwin.h, config/dbx.h, config/dbxcoff.h,
2010         config/dbxelf.h, config/elfos.h, config/fp-bit.h,
2011         config/freebsd-nthr.h, config/freebsd-spec.h, config/freebsd.h,
2012         config/freebsd3.h, config/freebsd4.h, config/freebsd5.h,
2013         config/freebsd6.h, config/netbsd-aout.h, config/netbsd-elf.h,
2014         config/netbsd.h, config/netware.h, config/openbsd-oldgas.h,
2015         config/openbsd.h, config/ptx4.h, config/alpha/alpha-protos.h,
2016         config/alpha/alpha.c, config/alpha/alpha.h, config/alpha/alpha.md,
2017         config/alpha/elf.h, config/alpha/ev4.md, config/alpha/ev5.md,
2018         config/alpha/ev6.md, config/alpha/freebsd.h, config/alpha/linux-elf.h,
2019         config/alpha/linux.h, config/alpha/netbsd.h, config/alpha/openbsd.h,
2020         config/alpha/osf.h, config/alpha/osf5.h, config/alpha/unicosmk.h,
2021         config/alpha/vms-cc.c, config/alpha/vms-crt0-64.c,
2022         config/alpha/vms-crt0.c, config/alpha/vms-dwarf2.asm,
2023         config/alpha/vms-dwarf2eh.asm, config/alpha/vms-ld.c,
2024         config/alpha/vms-psxcrt0-64.c, config/alpha/vms-psxcrt0.c,
2025         config/alpha/vms.h, config/alpha/vms64.h, config/alpha/vms_tramp.asm,
2026         config/alpha/xm-vms.h, config/arc/arc-modes.def,
2027         config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
2028         config/arc/arc.md, config/arc/initfini.c, config/arc/lib1funcs.asm,
2029         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
2030         config/avr/avr.md, config/d30v/d30v-protos.h, config/d30v/d30v.h,
2031         config/d30v/d30v.md, config/fr30/fr30-protos.h, config/fr30/fr30.c,
2032         config/fr30/fr30.h, config/fr30/fr30.md, config/fr30/lib1funcs.asm,
2033         config/frv/cmovd.c, config/frv/cmovh.c, config/frv/cmovw.c,
2034         config/frv/frv-abi.h, config/frv/frv-asm.h, config/frv/frv-modes.def,
2035         config/frv/frv-protos.h, config/frv/frv.c, config/frv/frv.h,
2036         config/frv/frv.md, config/frv/frvbegin.c, config/frv/frvend.c,
2037         config/frv/lib1funcs.asm, config/h8300/clzhi2.c, config/h8300/ctzhi2.c,
2038         config/h8300/parityhi2.c, config/h8300/popcounthi2.c,
2039         config/i370/i370-c.c, config/i370/i370-protos.h, config/i370/i370.c,
2040         config/i370/i370.h, config/i370/i370.md, config/i370/linux.h,
2041         config/i370/mvs.h, config/i370/oe.h, config/i386/darwin.h,
2042         config/i960/i960-c.c, config/i960/i960-coff.h,
2043         config/i960/i960-modes.def, config/i960/i960-protos.h,
2044         config/i960/i960.c, config/i960/i960.h, config/i960/i960.md,
2045         config/i960/rtems.h, config/ia64/elf.h, config/ia64/ia64.h,
2046         config/m32r/initfini.c, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2047         config/m32r/m32r.h, config/m32r/m32r.md, config/m68hc11/larith.asm,
2048         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
2049         config/m68hc11/m68hc11.h, config/m68hc11/m68hc11.md,
2050         config/m68hc11/m68hc12.h, config/m68k/coff.h, config/m68k/crti.s,
2051         config/m68k/crtn.s, config/m68k/hp320.h, config/m68k/hp320base.h,
2052         config/m68k/lb1sf68.asm, config/m68k/linux.h, config/m68k/m68020-elf.h,
2053         config/m68k/m68k-aout.h, config/m68k/m68k-none.h,
2054         config/m68k/m68k-protos.h, config/m68k/m68k.c, config/m68k/m68k.h,
2055         config/m68k/m68k.md, config/m68k/m68kelf.h, config/m68k/m68kv4.h,
2056         config/m68k/netbsd-elf.h, config/m68k/openbsd.h,
2057         config/m68k/rtemself.h, config/m68k/sgs.h, config/mcore/lib1.asm,
2058         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h,
2059         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2060         config/mcore/mcore.md, config/mips/elf.h, config/mips/elf64.h,
2061         config/mips/elforion.h, config/mips/iris5.h, config/mips/iris6.h,
2062         config/mips/iris6gld.h, config/mips/irix6-libc-compat.c,
2063         config/mips/linux.h, config/mips/mips-protos.h, config/mips/mips.c,
2064         config/mips/mips.h, config/mips/mips.md, config/mips/netbsd.h,
2065         config/mips/openbsd.h, config/mips/r3900.h, config/mips/rtems.h,
2066         config/mips/vr.h, config/mn10300/linux.h,
2067         config/mn10300/mn10300-protos.h, config/mn10300/mn10300.c,
2068         config/mn10300/mn10300.h, config/mn10300/mn10300.md,
2069         config/ns32k/__unorddf2.c, config/ns32k/__unordsf2.c,
2070         config/ns32k/netbsd.h, config/ns32k/ns32k-protos.h,
2071         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/ns32k/ns32k.md,
2072         config/pdp11/2bsd.h, config/pdp11/pdp11-modes.def,
2073         config/pdp11/pdp11-protos.h, config/pdp11/pdp11.c,
2074         config/pdp11/pdp11.h, config/pdp11/pdp11.md, config/rs6000/biarch64.h,
2075         config/rs6000/default64.h, config/sh/coff.h, config/sh/crt1.asm,
2076         config/sh/crti.asm, config/sh/crtn.asm, config/sh/elf.h,
2077         config/sh/embed-elf.h, config/sh/linux.h, config/sh/little.h,
2078         config/sh/netbsd-elf.h, config/sh/rtems.h, config/sh/rtemself.h,
2079         config/sh/sh-protos.h, config/sh/sh.c, config/sh/sh.h,
2080         config/sh/sh.md, config/sh/sh64.h, config/sh/shmedia.h,
2081         config/sh/sshmedia.h, config/sh/ushmedia.h, config/sparc/pbd.h,
2082         config/sparc/sparc.h, doc/install-old.texi, fixinc/fixinc.ptx,
2083         fixinc/fixinc.svr4: GNU CC -> GCC.
2084
2085 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2086
2087         * objc/objc-act.c (tm_p.h): Tweak order.
2088         * objc/Make-lang.in (objc/objc-act.o): Add $(TM_P_H).
2089
2090 2003-09-26  Nathanael Nerode  <neroden@gcc.gnu.org>
2091
2092         * config.gcc (hppa*64*-*-linux* | parisc*64*-*-linux*):
2093         Include t-slibgcc-elf-ver and t-linux in tmake_file.
2094         * config.gcc (hppa*64*-*-linux* | parisc*64-*-linux*):
2095         Disable fixproto.
2096         * config.gcc (i960-*-coff*, m68k-*-aout*, sparclite-*-coff*):
2097         Disable fixproto.
2098         * config.gcc (i[34567]86-*-solaris2*, sparc64-*-solaris2*,
2099         sparcv9-*-solaris2*, sparc-*-solaris2*): Disable fixproto.
2100
2101         * config/i386/unix.h: Remove (unused) DEFAULT_ASSEMBLER_DIALECT.
2102
2103 2003-09-26  Loren James Rittle  <ljrittle@acm.org>
2104
2105         * config/i386/i386.h (ix86_return_in_memory): Revert my last patch.
2106         * objc/objc-act.c (tm_p.h): Include.
2107
2108 2003-09-26  Per Bothner  <pbothner@apple.com>
2109
2110         * dbxout.c (dbxout_typedefs):  Output typedefs in forward order.
2111         No longer any need to reverse by recursion.
2112
2113 2003-09-26  Roger Sayle  <roger@eyesopen.com>
2114             Richard Henderson  <rth@redhat.com>
2115
2116         PR optimization/11741
2117         * gcse.c (pre_insert_copy_insn): Tweak the logic for finding the
2118         appropriate set to match that in hash_scan_insn.  Fall back to
2119         the original copy method, if we can't validate changing insn.
2120         (pre_delete): Only delete instructions that have a single_set,
2121         instead of aborting when we encounter an PARALLEL insn with more
2122         then one SET.
2123
2124 2003-09-26  Andreas Krebbel  <krebbel1@de.ibm.com>
2125
2126         * config/s390/s390.md ("builtin_setjmp_setup"): Insn deleted.
2127         ("builtin_longjmp"): Insn deleted.
2128         ("save_stack_nonlocal"): Save literal pool base pointer behind
2129         backchain and stack pointer.
2130         ("restore_stack_nonlocal"): Restore literal pool base pointer.
2131         * config/s390/s390.h (STACK_SAVEAREA_MODE): Double size of
2132         the stack save area for the nonlocal goto case.
2133
2134 2003-09-26  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2135
2136         PR bootstrap/12358
2137         * pa.c (output_bvb): Fix typo.
2138
2139 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2140
2141         * expmed.c (store_bit_field): Don't search for an integer mode
2142         unless we need the result.
2143
2144 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2145
2146         * expr.c (emit_move_insn_1): If there is no move pattern for the
2147         original mode, try using a pattern for the corresponding integer mode.
2148
2149 2003-09-26  Richard Sandiford  <rsandifo@redhat.com>
2150
2151         PR middle-end/9200
2152         * combine.c (if_then_else_cond): Tighten mode check.
2153
2154 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2155
2156         * cppcharset.c, cpphash.h: Rename 'struct strbuf' to
2157         'struct _cpp_strbuf'.
2158
2159         * config/i386/netbsd-elf.h, config/i386/netbsd64.h,
2160         config/i386/netware.h, config/i386/nto.h, config/i386/openbsd.h,
2161         config/i386/pentium.md, config/i386/pmmintrin.h, config/i386/ppro.md,
2162         config/i386/ptx4-i.h, config/i386/rtemself.h, config/i386/sco5.h,
2163         config/i386/sol2.h, config/i386/svr3gas.h, config/i386/sysv3.h,
2164         config/i386/sysv4-cpp.h, config/i386/sysv4.h, config/i386/sysv5.h,
2165         config/i386/unix.h, config/i386/uwin.h, config/i386/vsta.h,
2166         config/i386/xm-cygwin.h, config/i386/xm-djgpp.h,
2167         config/i386/xm-mingw32.h, config/i386/xmmintrin.h: Replace
2168         "GNU CC", "GNU compiler", and "GNU C-compiler" with "GCC".
2169         * config/i386/i386-aout.h, config/i386/i386-coff.h,
2170         config/i386/i386-interix.h, config/i386/i386-interix3.h,
2171         config/i386/i386-modes.def, config/i386/i386-protos.h,
2172         config/i386/i386.c, config/i386/i386.h, config/i386/i386.md,
2173         config/i386/i386elf.h, config/i386/k6.md, config/i386/kaos-i386.h,
2174         config/i386/linux-aout.h, config/i386/linux.h, config/i386/linux64.h,
2175         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
2176         config/i386/mmintrin.h, config/i386/moss.h: GNU CC -> GCC.
2177         "GNU compiler" -> GCC.
2178         * config/i386/att.h, config/i386/beos-elf.h, config/i386/biarch64.h,
2179         config/i386/bsd.h, config/i386/crtdll.h, config/i386/cygming.h,
2180         config/i386/cygwin.h, config/i386/cygwin1.c, config/i386/cygwin2.c,
2181         config/i386/darwin.h, config/i386/djgpp.h, config/i386/emmintrin.h,
2182         config/i386/freebsd-aout.h, config/i386/freebsd.h,
2183         config/i386/freebsd64.h, config/i386/gas.h: GNU CC -> GCC.
2184
2185 2003-09-25  Kelley Cook  <kelleycook@wideopenwest.com>
2186
2187         * cgraph.c (dump_cgraph):  Don't output newline before dump.  Add in
2188         "local" to the callgraph dump.  Output "after inlining" earlier.
2189         * cgraphunit.c: Fix dumpfile whitespace and commonize headers of the
2190         callgraph dumps.  Correct misspellings.
2191         (cgraph_decide_inlining):  Output number of insns before inlining.
2192         Output the calling function into which a function is inlined.
2193         (cgraph_decide_small_functions): Format dump file like always_inline.
2194
2195 2003-09-25  Loren James Rittle  <ljrittle@acm.org>
2196
2197         * config/i386/i386.h (ix86_return_in_memory): Add prototype.
2198
2199 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2200
2201         * config/s390/s390.c (s390_emit_prologue): Simplify accesses to
2202         FPR slots in the save area.
2203         (s390_emit_epilogue): Likewise.
2204
2205 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2206
2207         * cgraph.h (cgraph_remove_edge): Declare.
2208         * cgraph.c (cgraph_remove_edge): Make extern.
2209         * cgraphunit.c (cgraph_finalize_function): Call cgraph_remove_edge
2210         instead of cgraph_remove_call.
2211
2212 2003-09-25  Ulrich Weigand  <uweigand@de.ibm.com>
2213
2214         * objc/objc-act.c (gen_declaration_1): Fix printf format.
2215
2216 2003-09-25  Richard Earnshaw  <rearnsha@arm.com>
2217
2218         * arm.c (all_cores): arm710t, arm720t and arm740t are all based on the
2219         arm7tdmi core.
2220
2221 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2222
2223         * config/darwin-protos.h (objc_image_info_section):
2224         New prototype.
2225
2226 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2227
2228         * Makefile.in (stub-objc.o): Depend on $(GGC_H).
2229
2230 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2231
2232         * config.gcc: Get rid of more gratuitious 'x'es.  Actually allow
2233         tsc701 as a --with-cpu, --with-tune setting for sparc.
2234
2235 2003-09-25  Ziemowit Laski  <zlaski@apple.com>
2236
2237         * c-parse.in (objc_try_stmt): Do not specify a %type.
2238
2239 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2240
2241         * config.gcc: New 'widely ported system' clause for rtems.
2242         Set thread file there, not in individual clauses.
2243
2244 2003-09-25  Richard Sandiford  <rsandifo@redhat.com>
2245
2246         PR target/6222
2247         * config/mips/mips.c (mips_va_arg): Handle arguments that must be
2248         passed on the stack.
2249
2250 2003-09-25  Nathanael Nerode  <neroden@gcc.gnu.org>
2251
2252         * config.gcc (widely ported systems section): Mostly alphabetize
2253         by system.  Comment the case where we can't.
2254         * config.gcc (widely ported systems section): Reindent and clean up.
2255
2256         * config.gcc: Remove some unnecessary uses of 'x' in case statements.
2257         Actually allow ep9312 as an arm --with-arch setting.
2258
2259         * config.gcc (*-hpux11): Disable fixproto.
2260
2261 2003-09-24  Phil Edwards  <phil@codesourcery.com>
2262
2263         PR pch/12112
2264         * gcc/cppfiles.c (pch_open_file): Return based on combined
2265         result of all files.
2266         (validate_pch): Return validate flag for current file.
2267
2268 2003-09-24  Roger Sayle  <roger@eyesopen.com>
2269
2270         PR bootstrap/12358
2271         * fold-const.c (tree_swap_operands_p): Only reorder operands when
2272         one of the operands is constant.
2273
2274 2003-09-24  Ziemowit Laski  <zlaski@apple.com>
2275
2276         MERGE OF objc-improvements-branch into MAINLINE:
2277         * Makefile.in (C_OBJS): Add in stub-objc.o.
2278         (c-parse.y): Change sed demarcations to begin with '@@'.
2279         (stub-objc.o): New rule.
2280         * c-common.c (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2281         flag_replace_objc_classes): New flags.
2282         * c-common.h (RID_AT_THROW, RID_AT_TRY, RID_AT_CATCH, RID_AT_FINALLY,
2283         RID_AT_SYNCHRONIZED): New keywords.
2284         (flag_nil_receivers, flag_objc_exceptions, flag_zero_link,
2285         flag_replace_objc_classes): New flags.
2286         (lookup_interface, is_class_name, objc_is_object_ptr, objc_check_decl,
2287         objc_comptypes, objc_message_selector, lookup_objc_ivar,
2288         get_current_scope, objc_mark_locals_volatile): New prototypes,
2289         some moved from c-tree.h.
2290         * c-decl.c (get_current_scope, objc_mark_locals_volatile): New functions.
2291         (finish_decl): Adjust where objc_check_decl() gets called.
2292         * c-lang.c (lookup_interface, is_class_name, objc_is_id,  objc_check_decl,
2293         objc_comptypes, objc_message_selector, lookup_objc_ivar): Remove stubs.
2294         * c-opts.c (c_common_handle_option): Add handling for  flag_nil_receivers,
2295         flag_objc_exceptions, flag_replace_objc_classes and flag_zero_link.
2296         * c-parse.in: Replace 'ifc' and 'end ifc' sed markers with '@@ifc' and
2297         '@@end_ifc', respectively.
2298         (AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY, AT_SYNCHRONIZED): New %tokens.
2299         (objc_try_stmt, superclass, class_ivars, objc_try_catch-stmt,
2300         objc_finally_block): New rules.
2301         (component_decl_list2): Clean up semantic action for @defs construct.
2302         (component_decl, c99_block_start): Remove call to add_objc_decls().
2303         (poplevel): Add call to objc_clear_super_receiver().
2304         (stmt): Add rules for @throw, @try..@catch..@finally and @synchronized
2305         constructs.
2306         (classdef, methodprotolist): Clean up/simplify.
2307         (methodprotolist2): Eliminate.
2308         (methodproto): Call add_method() instead of add_class_method() and
2309         add_instance_method().
2310         (receiver): Add TYPENAME production.
2311         (reswords): Add "throw", "try", "catch", "finally" and "synchronized".
2312         (rid_to_yy): Add AT_THROW, AT_TRY, AT_CATCH, AT_FINALLY and
2313         AT_SYNCHRONIZED.
2314         * c-tree.h (lookup_interface, is_class_name, objc_is_id, objc_check_decl,
2315         objc_comptypes, objc_message_selector)
2316         * c-typeck.c (comptypes): In ObjC mode, call objc_comptypes() for
2317         struct and pointer types.
2318         (build_c_cast): Do not discard ObjC protocol qualifiers.
2319         (convert_for_assignment): Cache result of comp_target_types() instead
2320         of calling it more than once.
2321         * c.opt (fnext-runtime): Update description string.
2322         (fnil-receivers, fobjc-exceptions, freplace-objc-classes, fzero-link):
2323         New ObjC/ObjC++-specific flags.
2324         * function.h (GCC_FUNCTION_H): Header guard.
2325         * gengtype-lex.l: Teach lexer about new @@... sed demarcations.
2326         * stub-objc.c: New file, to be used to satisfy references to ObjC
2327         functions by the C and C++ front-ends.
2328         * config/darwin.c (_OBJC_IMAGE_INFO): New global metadata.
2329         * config/darwin.h (FUNCTION): Add in_objc_image_info.
2330         (SECTION_FUNCTION): Add objc_image_info_section.
2331         * doc/invoke.texi: Link to GCC web site for Objective-C information.
2332         (-fconstant-string-class): Update documentation.
2333         (-fno-nil-receivers, -fobjc-exceptions, -freplace-objc-classes,
2334         -fzero-link): New documentation.
2335         * objc/Make-lang.in (objc-parse.y): Change sed demarcations to begin
2336         with '@@'.
2337         * objc/lang-specs.h (@objective-c-header): Fix -E spec.
2338         * objc/objc/objc-act.c: Replace TYPE_NAME with OBJC_TYPE_NAME
2339         throughout; provide casts for return values from memory allocation
2340         functions (xmalloc, alloca, ggc_alloc, etc.).
2341         (OBJC_VOID_AT_END): New macro.
2342         (rtl.h): Do not #include any more.
2343         (STRING_OBJECT_GLOBAL_NAME): Replaced with STRING_OBJECT_GLOBAL_FORMAT.
2344         (TAG_MSGSEND_STRET, TAG_MSGSENDSUPER_STRET, TAG_MSGSEND_NONNIL,
2345         TAG_MSGSEND_NONNIL_STRET, TAG_EXCEPTIONEXTRACT, TAG_EXCEPTIONTRYENTER,
2346         TAG_EXCEPTIONTRYEXIT, TAG_EXCEPTIONMATCH, TAG_EXCEPTIONTHROW,
2347         TAG_SYNCENTER, TAG_SYNCEXIT): New NeXT runtime entry points.
2348         (struct val_stack, catch_count_stack, exc_binding_stack,  val_stack_push,
2349         val_stack_pop): New.
2350         (objc_check_decl): Fix precondition for error message, along with
2351         the message itself.
2352         (lookup_and_install_protocols): Remove nonexistent protocols from
2353         protocol list instead of returning error_mark_node.
2354         (create_builtin_decl): Use DECL_ARTIFICIAL only for VAR_DECLs.
2355         (setup_string_decl): Generalize to use STRING_OBJECT_GLOBAL_FORMAT.
2356         (synth_module_prologue): General clean-up; construct NeXT-specific
2357         runtime API prototypes if needed.
2358         (build_string_class_template): Remove.
2359         (check_string_class_template, string_layout_checked): New.
2360         (build_objc_string_object): Generalize to work with
2361         -fconstant-string-class.
2362         (build_objc_symtab_template): Fix layout for the NeXT runtime.
2363         (build_metadata_decl): New.
2364         (forward_declare_categories): Call build_metadata_decl() instead of
2365         create_builtin_decl() et al.
2366         (build_module_descriptor): Use OBJC_VOID_AT_END instead of
2367         void_list_node_1.
2368         (build_selector_reference_decl, build_class_reference_decl,
2369         build_objc_string_decl): Do not set TREE_READONLY.
2370         (get_proto_encoding): Do not call hack_method_prototype().
2371         (get_class_reference): Add failure mode for invalid class names;
2372         support -fzero-link; defer if in an ObjC++ template declaration.
2373         (objc_declare_alias, objc_declare_class): Fix up duplicate name
2374         lookup; check for global scope if in ObjC++.
2375         (is_class_name): Generalize to work with various tree nodes (TYPE_DECL,
2376         RECORD_TYPE, IDENTIFIER_NODE, etc.)
2377         (objc_is_id): Removed.
2378         (objc_is_object_ptr): New function.
2379         (get_class_ivars_from_name): New function, used for @defs construct.
2380         (get_class_ivars): Add option to return raw ivars; create a
2381         ClASS_OWN_IVARS list for each class as needed.
2382         (objc_enter_block, objc_exit_block, objc_declare_variable,
2383         objc_build_throw_stmt, val_stack_push, val_stack_pop,
2384         objc_build_try_enter_fragment, objc_build_extract_expr,
2385         objc_build_try_exit_fragment, objc_build_extract_fragment,
2386         objc_build_try_prologue, objc_build_try_epilogue,
2387         objc_build_catch_stmt, objc_build_catch_epilogue,
2388         objc_build_finally_prologue, objc_build_finally_epilogue,
2389         objc_build_try_catch_finally_stmt, objc_build_synchronized_prologue,
2390         objc_build_synchronized_epilogue, build_objc_exception_stuff):
2391         New functions.
2392         (_JBLEN): _setjmp jmpbuf size (needs to be made a target hook in
2393         the future).
2394         (build_private_template): Fix up calls to get_class_ivars().
2395         (offset_is_register, forwarding_offset): Remove.
2396         (objc_method_parm_type, objc_encoded_type_size): New functions.
2397         (encode_method_prototype): Simplify to no longer depend on
2398         back-end information.
2399         (build_tmp_function_decl_xxx, build_tmp_function_decl,
2400         hack_method_prototype): Removed.
2401         (generate_protocol_references): Remove calls to
2402         build_tmp_function_decl().
2403         (generate_protocols): Adjust calls to encode_method_prototype().
2404         (build_class_template): Generate sel_id' and 'gc_object_type' fields
2405         for the NeXT runtime.
2406         (synth_forward_declarations): Call build_metadata_decl().
2407         (check_ivars): Check that the number of ivars matches also.
2408         (build_super_template): Modify super_type directly; disable debugging
2409         output while generating decl.
2410         (build_ivar_list_initializer): Skip list elements that are not
2411         FIELD_DECLs.
2412         (ivar_list_length): New function.
2413         (generate_ivar_lists): Call ivar_list_length() instead of list_length()
2414         and encode_method_prototype() instead of encode_method_def().
2415         (build_shared_structure_initializer): Generate 'sel_id' field for
2416         the NeXT runtime.
2417         (generate_category): Do not set TREE_USED.
2418         (build_keyword_selector): Ditto; transform into a function argument
2419         chain.
2420         (get_arg_type_list): If there are no user-specified arguments, use
2421         '...'; use OBJC_VOID_AT_END.
2422         (check_duplicates): Add a parameter indicating whether methods or
2423         selectors are being checked.
2424         (receiver_is_class_object): Add parameters indicating whether
2425         receiver is 'self' or 'super'; robustify.
2426         (build_message_expr): Defer call to finish_message_expr() if
2427         inside an ObjC++ template.
2428         (lookup_method_in_hash_lists): New function.
2429         (finish_message_expr): Complete rewrite/fix.
2430         (build_objc_method_call): Ditto; factor out commonalities between
2431         the GNU and NeXT runtimes; acccommodate ..._stret and ...NonNil
2432         messenger variants on the NeXT.
2433         (lookup_instance_method_static, lookup_class_method_static):
2434         Fold into a single lookup_method_static() function with an
2435         additional parameter.
2436         (add_class_method, add_instance_method): Fold into a single
2437         add_method() function with an additional parameter.
2438         (add_category): Make duplicate categories a hard error in ObjC++.
2439         (add_instance_variable): Properly handle unnamed ivars, arrays of
2440         zero or no size and bitfields.  In ObjC++, check for nontrivial
2441         C++ class instances.
2442         (is_public): Allow C functions to access non-@public ivars, with
2443         a warning.
2444         (start_class): Move common initializations to
2445         synth_module_prologue(); check for global scope if in ObjC++.
2446         (continue_class): Fix calls to finish_struct().
2447         (objc_declare_protocols, start_protocol): Check for global scope
2448         if in ObjC++.
2449         (encode_pointer): Encode 'BOOL *' specially on the NeXT.
2450         (encode_aggregate_within): Rewrite to properly distinguish
2451         struct tags from typedefs in both ObjC and ObjC++.
2452         (encode_bitfield, encode_complete_bitfield): Remove.
2453         (encode_next_bitfield, encode_gnu_bitfield): New functions.
2454         (encode_field_decl): Call encode_next_bitfield() or
2455         encode_gnu_bitfield() as needed.
2456         (synth_self_and_ucmd_args): New function.
2457         (start_method_def): Use it.
2458         (objc_types_are_equivalent): New function.
2459         (comp_proto_with_proto): Use it instead of comptypes(), since
2460         we need symmetry.
2461         (really_start_method): Use lookup_method_static() instead of
2462         lookup_class_method_static() and lookup_instance_method_static();
2463         Emit 'extern "C"' if in ObjC++ mode.
2464         (add_objc_decls): Removed.
2465         (UOBJC_SUPER_scope): New variable.
2466         (get_super_receiver): Move construction of 'super' from
2467         add_objc_decls(); remove dependency on struct objc_class.
2468         (encode_method_def): Removed; encode_method_prototype() is
2469         used instead.
2470         (objc_clear_super_receiver): New function.
2471         (objc_expand_function_end): Do not do anything for ordinary
2472         C functions.
2473         (finish_method_def): Mark ObjC methods as un-inlinable.
2474         (gen_declaration_1): Emit widths of bitfields.
2475         (finish_objc): Call generate_objc_image_info() if needed;
2476         use check_duplicates() when checking for selector duplicates.
2477         (generate_objc_image_info): New function.
2478         * objc/objc-act.h (add_instance_method, add_class_method,
2479         get_class_ivars): Remove prototypes.
2480         (objc_build_throw_stmt, objc_build_try_catch_finally_stmt,
2481         objc_build_synchronized_prologue, objc_build_synchronized_epilogue,
2482         objc_build_catch_stmt, objc_build_catch_epilogue,
2483         objc_build_finally_prologue, objc_build_finally_epilogue,
2484         add_method, get_class_ivars_from_name): New prototypes.
2485         (CLASS_BINFO_ELTS, PROTOCOL_BINFO_ELTS): New.
2486         (TYPE_PROTOCOL_LIST): Robustify to distinguish from
2487         TRANSLATION_UNIT_DECLs.
2488         (OBJC_TYPE_NAME): New.
2489         (objc_tree_code): Ensure that either <c-tree.h> or <cp/cp-tree.h>
2490         got included.
2491         (IS_SUPER): Robustify.
2492         (umsg_stret_decl, umsg_super_stret_decl, umsg_nonnil_decl,
2493         umsg_nonnil_stret_decl, objc_storage_class, objc_exception_extract_decl,
2494         objc_exception_try_enter_decl, objc_exception_try_exit_decl,
2495         objc_exception_match_decl, objc_exception_throw_decl,
2496         objc_sync_enter_decl, objc_sync_exit_decl, objc_exception_data_template,
2497         objc_setjmp_decl, objc_stack_exception_data, objc_caught_exception,
2498         objc_rethrow_exception, objc_eval_once, objc_exception_block_stack,
2499         objc_catch_type): New ObjC/ObjC++ roots.
2500         * objc/objc-tree.def (MESSAGE_SEND_EXPR, CLASS_REFERENCE_EXPR): New
2501         ObjC/ObjC++ tree node codes.
2502
2503 2003-09-24  Alexandre Oliva  <aoliva@redhat.com>
2504
2505         * cpplib.c (do_pragma): Reintroduce cb_line_change call in the
2506         code path that calls a handler.
2507
2508 2003-09-24  Nathanael Nerode  <neroden@gcc.gnu.org>
2509
2510         * config.gcc (c4x-*, tic4x-*, d30v-*, mmix-knuth-mmixware):
2511         Disable fixproto.
2512
2513         * config.gcc: Clean up and reindent $with_cpu=yes|no clause and
2514         the section giving $with_cpu defaults by target.
2515
2516         * config.gcc (arm-*-coff*, armel-*-coff*, arm*-*-ecos-elf,
2517         arm*-*-elf, ep9312-*-elf, arm*-wince-pe*, arm*-*-pe*, arm*-*-pe*,
2518         rs6000-ibm-aix4.[3456789]*, powerpc-ibm-aix4.[3456789]*,
2519         rs6000-ibm-aix5.1.*, powerpc-ibm-aix5.1.*,
2520         rs6000-ibm-aix[56789].*, powerpc-ibm-aix[56789].*,
2521         i[34567]86-pc-msdosdjgpp*): Disable fixproto.
2522
2523 2003-09-24  David Edelsohn  <edelsohn@gnu.org>
2524
2525         * config/rs6000/rs6000.md (movti_power): Collapse case 1 and 2
2526         together.  Protect load string instruction with TARGET_STRING.
2527         (movti_string): Collapse case 1 and 2 together.
2528
2529 2003-09-24  Nathan Sidwell  <nathan@codesourcery.com>
2530
2531         * c-common.c (c_common_type_for_mode): Check for VOIDmode.
2532
2533 2003-09-24  Richard Earnshaw  <rearnsha@arm.com>
2534
2535         * arm.h (ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Wrap in
2536         do...while(0)
2537
2538 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2539
2540         * config.gcc: Move use_fixproto=no from generic vxworks clause to
2541         specific one.
2542
2543         * config.gcc (powerpc-*-gnu-gnualtivec*): Disable fixproto
2544         (accidentally missed in last pass).
2545
2546 2003-09-23  Andrew Pinski  <apinski@apple.com>
2547
2548         PR bootstrap/12383
2549         * configure: Regenerate.
2550
2551 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2552
2553         * config.gcc (x86_64-*-freebsd*): Disable fixproto (accidentally
2554         missed in last pass).
2555
2556 2003-09-23  Alexandre Oliva  <aoliva@redhat.com>
2557
2558         * config/mn10300/mn10300.md (andsi3): Fix cut&pasto in 0xfffffffe
2559         constant.
2560
2561 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2562
2563         * config.gcc: Move vax-*-vms* unsupported notice up with the rest.
2564
2565         * config.gcc (alpha64*-dec-*vms*, alpha*-dec-*vms*,
2566         powerpc-*-eabisim*, powerpc-*-eabi*, powerpcle-*-eabisim*,
2567         powerpcle-*-eabi*): Disable fixproto.
2568
2569         * config.gcc: Move use_fixproto=no from generic FreeBSD clause to
2570         specific FreeBSD clauses.
2571         * config.gcc: Move use_fixproto=no from generic NetBSD clause to
2572         specific NetBSD clauses.
2573         * config.gcc: Move use_fixproto=no from generic OpenBSD clause
2574         to specific OpenBSD clauses.
2575
2576 2003-09-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
2577
2578         * pa.c (hppa_expand_prologue): Do pic register save in frame marker
2579         without adding a frame note.
2580         * pa.md (allocate_stack): Save pic register in new frame marker when
2581         generating pic code.
2582
2583 2003-09-23  Kelley Cook  <kelleycook@wideopenwest.com>
2584
2585         * cgraphunit.c (cgraph_expand_all_functions): Renamed from
2586         cgraph_expand_functions.
2587
2588 2003-09-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2589
2590         * Makefile.in (gnucompare*): Merge into ...
2591         (slowcompare*): ... here.
2592         (fastcompare*): New targets.
2593         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): Add checks for
2594         other "fast" cmp programs.
2595         * configure: Regenerate.
2596
2597 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2598
2599         * targhooks.c: Include output.h.
2600         * Makefile.in (targhooks.o): Add output.h to dependency list.
2601
2602 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2603
2604         * config.host: Removed superfluous newline.
2605
2606 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2607
2608         * config.gcc: Use ${target}, not $machine.
2609         * configure.in: Don't set $machine.
2610         * configure: Regenerate.
2611
2612 2003-09-23  Geoffrey Keating  <geoffk@apple.com>
2613
2614         * config/t-darwin (crt2.o): Add stmp-int-hdrs to dependencies.
2615
2616         * config/rs6000/rs6000.c (function_arg_pass_by_reference): Don't
2617         pass zero-size arrays by reference.
2618         (rs6000_va_arg): Likewise.
2619
2620 2003-09-23  Nathanael Nerode  <neroden@gcc.gnu.org>
2621
2622         * config.gcc: Set use_fixproto=no in each specific *-gnu*
2623         configuration, rather than the generic one.
2624
2625 2003-09-23  Richard Henderson  <rth@redhat.com>
2626
2627         * tree-inline.c (remap_save_expr): Map new save_expr to identity
2628         rather than to error_mark_node.
2629
2630 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2631
2632         * configure.in (HAVE_GAS_SHF_MERGE): Always define to test result.
2633         Update description.
2634         * configure: Regenerate.
2635         * config.in: Likewise.
2636         * dwarf2out.c (DEBUG_STR_SECTION_FLAGS): Test for
2637         HAVE_GAS_SHF_MERGE value.
2638         * varasm.c (mergeable_string_section): Likewise.
2639         (mergeable_constant_section): Likewise.
2640
2641 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2642
2643         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Test for DWARF2_UNWIND_INFO
2644         value.
2645
2646 2003-09-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2647
2648         * target.h (struct gcc_target): New member external_libcall.
2649         * target-def.h (TARGET_ASM_EXTERNAL_LIBCALL): Provide default.
2650         (TARGET_ASM_OUT): Use it.
2651         * doc/tm.texi (TARGET_ASM_EXTERNAL_LIBCALL): Document.
2652         * targhooks.c: Convert to ISO C 90.
2653         (default_external_libcall): New function.
2654         * targhooks.h (default_external_libcall): Declare.
2655         * varasm.c (assemble_external_libcall): Use
2656         targetm.asm_out.external_libcall instead of
2657         ASM_OUTPUT_EXTERNAL_LIBCALL.
2658         * config/mips/mips-protos.h [TARGET_IRIX5 || TARGET_IRIX 6]
2659         (mips_output_external_libcall): Declare.
2660         * config/mips/mips.c (mips_output_external_libcall): Change
2661         definition guard.
2662         Change to match TARGET_ASM_EXTERNAL_LIBCALL.
2663         Only operate for O32 ABI.
2664         * config/mips/iris5.h (TARGET_ASM_EXTERNAL_LIBCALL): Define
2665         instead of ASM_OUTPUT_EXTERNAL_LIBCALL.
2666         * config/mips/iris6.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Don't undef,
2667         superceded by TARGET_ASM_EXTERNAL_LIBCALL.
2668
2669 2003-09-22  Nathnael Nerode  <neroden@gcc.gnu.org>
2670
2671         * config.gcc: Do per-target disabling of fixproto here in clauses,
2672         not in t- fragments.
2673         * configure.in: Adjust to set STMP_FIXPROTO correctly.
2674         * configure: Regenerate.
2675         * config/arm/t-semi, config/cris/t-cris, config/i386/t-beos,
2676         config/i386/t-cygming, config/i386/t-nto, config/ia64/t-hpux,
2677         t-freebsd, t-linux, t-netbsd, t-openbsd, t-rtems, t-vxworks,
2678         xtensa/t-xtensa: Remove setting of STMP_FIXPROTO.
2679         * config/i370/t-oe, config/i386/t-netware, config/pa/t-bsd,
2680         t-interix, t-linux-aout:  Delete files consisting only of
2681         setting of STMP_FIXPROTO.
2682
2683         * config.host: Allow unknown hosts (not targets).  Allow
2684         ns32k-*-netbsdelf* as a host (not a target).  Remove redundant
2685         empty clauses.  Remove useless obsolete-configuration clause.
2686         Prune unsupported configuration list.  Collapse identical
2687         clauses for closely related systems.  Rewrite comment for
2688         unsupported hosts list.  Reorganize a little.
2689
2690 2003-09-22  Richard Henderson  <rth@redhat.com>
2691
2692         * c-common.c (c_common_signed_or_unsigned_type): Examine mode,
2693         not precision.
2694
2695 2003-09-22  David Edelsohn  <edelsohn@gnu.org>
2696             Hartmut Penner  <hpenner@de.ibm.com>
2697             Segher Boessenkool  <boessen@de.ibm.com>
2698
2699         * config/rs6000/rs6000.c (altivec_in_gprs_p): Rename to ...
2700         (gpr_or_gpr_p): Test INT_REGNO_P and convert to boolean.
2701         (rs6000_split_altivec_in_gprs): Rename to ...
2702         (rs6000_split_multireg_move): Add support for update addressing.
2703         * config/rs6000/rs6000-protos.h: Same.
2704         * config/rs6000/altivec.md: Same.
2705         * config/rs6000/rs6000.md (movdi_internal32): Use new splitter for
2706         multiple GPRs.
2707         (movti): Remove TARGET_STRING || TARGET_POWERPC64 final condition.
2708         (movti_power): Use new splitter for multiple GPRs.
2709         (movti_string): Same.
2710         (movti_ppc64): Same.
2711
2712 2003-09-22  Bob Wilson  <bob.wilson@acm.org>
2713
2714         * config/xtensa/xtensa-protos.h: Convert to ISO C90.
2715         * config/xtensa/xtensa.c: Convert to ISO C90.  Minor formatting fixes.
2716
2717 2003-09-22  Alexandre Oliva  <aoliva@redhat.com>
2718
2719         * config/mn10300/mn10300.md: Revert 2003-09-17's patch.
2720         (andsi3): Set attr cc to set_zn when using shifts or adds.
2721
2722 2003-09-22  Bernardo Innocenti <bernie@develer.com>
2723
2724         * doc/contrib.texi: Add Peter Barada, Paul Dale and myself.
2725
2726 2003-09-22  Bernardo Innocenti  <bernie@develer.com>
2727
2728         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, RETURN_POPS_ARGS):
2729         Resurrect -mrtd option.
2730
2731 2003-09-21  Andrew Pinski  <pinskia@physics.uc.edu>
2732
2733         PR target/12281
2734         * config/darwin.c (machopic_validate_stub_or_non_lazy_ptr): Call
2735         mark_referenced instead of setting TREE_SYMBOL_REFERENCED.
2736
2737 2003-09-22  Olivier Hainque  <hainque@act-europe.fr>
2738
2739         PR target/9786
2740         * reg-stack.c (convert_regs_1): Purge possible dead eh edges
2741         after potential deletion of trapping insn. Avoids later ICE
2742         from call to fixup_abnormal_edges.
2743         (convert_regs_2): Stack the current block successors before
2744         processing this block, that is, before the potential deletion of
2745         dead edges by convert_regs_1, because these edges have been used
2746         to initialize the predecessors count.
2747
2748 2003-09-22  Eric Botcazou  <ebotcazou@libertysurf.fr>
2749
2750         * real.c: Fix several nits in the head comment.
2751
2752 2003-09-21  Richard Henderson  <rth@redhat.com>
2753
2754         * tree.h c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2755         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2756         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2757         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2758         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Revert.
2759
2760 2003-09-21  Richard Henderson  <rth@redhat.com>
2761
2762         * tree.h (TREE_LOCUS): Rename from DECL_SOURCE_LOCATION; make const.
2763         (TREE_FILENAME, TREE_LINENO): Likewise.
2764         (set_tree_locus, copy_tree_locus, set_tree_file_line): New.
2765         (TREE_LOCUS_SET_P): New.
2766         * c-aux-info.c, c-decl.c, c-parse.in, coverage.c, dbxout.c,
2767         diagnostic.c, dwarf2out.c, dwarfout.c, function.c, integrate.c,
2768         print-tree.c, stmt.c, toplev.c, tree-dump.c, tree-inline.c,
2769         tree-optimize.c, tree.c, tree.def, xcoffout.c, config/alpha/alpha.c,
2770         config/mips/mips.c, doc/c-tree.texi, objc/objc-act.c: Update to match.
2771
2772 2003-09-21  Nathanael Nerode  <neroden@gcc.gnu.org>
2773
2774         * config/vax/vax-protos.h: Convert to ISO C90.
2775         * config/vax/vax.c: Convert to ISO C90.
2776
2777 2003-09-21  Graham Stott  <grahams@btinternet.com>
2778
2779        PR target/12353
2780        * config/i386/i386.md(ffs_no_cmove): Fix operand 2 constraint.
2781
2782 2003-09-21  Eric Botcazou  <ebotcazou@libertysurf.fr>
2783
2784         PR target/12301
2785         * reorg.c (stop_search_p): Return 1 for insns that can
2786         throw internally.
2787
2788 2003-09-20  Richard Henderson  <rth@redhat.com>
2789
2790         * c-format.c (gcc_diag_char_table): Add %J.
2791         (gcc_cdiag_char_table, gcc_cxxdiag_char_table): Likewise.
2792         (check_format_types): Fix wanted_type name lookup.
2793         (init_dynamic_diag_info): Setup %J.
2794         * diagnostic.c (text_specifies_location): Implement %J.
2795         * c-common.c, c-decl.c, c-objc-common.c, c-pragma.c, calls.c,
2796         dwarfout.c, expr.c, function.c, stmt.c, stor-layout.c, toplev.c,
2797         tree-inline.c, tree-optimize.c, varasm.c, config/arm/pe.c,
2798         config/i386/winnt.c, config/ia64/ia64.c, config/mcore/mcore.c,
2799         config/v850/v850.c, objc/objc-act.c: Use %J in diagnostics.
2800
2801         * tree-inline.c: Include intl.h
2802         (inline_forbidden_p_1): Fix i18n of inline_forbidden_reason.
2803         * Makefile.in (tree-inline.o): Update.
2804
2805 2003-09-20  Roger Sayle  <roger@eyesopen.com>
2806
2807         * config/i386/i386.c (ix86_expand_carry_flag_compare): Fix
2808         transformation of a>=0 into (unsigned)a<0x80000000.
2809
2810 2003-09-20  Andrew Pinski <apinski@apple.com>
2811
2812         * config/darwin.c (machopic_select_rtx_section): Fix check for PIC code.
2813
2814 2003-09-20  Nathanael Nerode  <neroden@gcc.gnu.org>
2815
2816         * Makefile.in: Don't set (unused) DLLTOOL.
2817
2818         * config/arm/t-linux, config/arm/t-netbsd, config/arm-t-semi:
2819         Remove obsolete references to ENQUIRE.
2820
2821 2003-09-19  Nathanael Nerode  <neroden@gcc.gnu.org>
2822
2823         * configure.in: Remove --with-elf, which doesn't work.
2824         * configure: Regenerate.
2825         * config.gcc: Remove references to $elf, which does nothing.
2826
2827         * config/i386/xm-vsta.h: Remove xm-file believed useless.
2828         * config.build (i386-vsta): Remove reference to it.
2829         * config.host (i386-vsta): Remove reference to it.
2830
2831 2003-09-19  Phil Edwards  <phil@codesourcery.com>
2832
2833         * doc/install.texi:  Document the multiple testsuite options.
2834
2835 2003-09-19  Gerald Pfeifer  <gerald@pfeifer.com>
2836
2837         * doc/install.texi (Specific): Add the specific versions of GCC
2838         where support for FreeBSD 1, HP-UX version 9 and older, and AIX
2839         version 3 and older was discontinued.
2840
2841 2003-09-19      Joel Sherrill <joel@oarcorp.com>
2842
2843         * config/m68k/t-m68kbare, config/m68k/t-rtems: Change 68681 to
2844         68881.
2845
2846 2003-09-19  Bernardo Innocenti  <bernie@develer.com>
2847
2848         * config/m68k/m68k.h (TARGET_CPU_CPP_PREDEFINES): Add predefines
2849         for -m68030, -m68020-60 and -m68020-40.
2850         * config/m68k/m68k.h (TARGET_68030): New target flag.
2851         * config/m68k/m68k.h (MASK_RTD, TARGET_RTD, MASK_REGPARM,
2852         TARGET_REGPARM): Remove.
2853         * config/m68k/m68k.h: Regroup and renumber target flags.
2854         * config/m68k/m68k.h (TARGET_SWITCHES): Fix some tabulations.
2855         * config/m68k/m68k.h (RETURN_POPS_ARGS): Always evaluate to 0.
2856         * config/m68k/m68k.h (FUNCTION_ARG): Likewise.
2857         * config/m68k/m68k.h (FUNCTION_ARG_PARTIAL_NREGS): Likewise.
2858         * config/m68k/m68k-none.h: Use MASK_xxx values in M68K_CPU_xxx macros.
2859
2860 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2861
2862         * config/m68k/t-rtems (m68k-*-rtems*): New.
2863         * config.gcc: Use config/m68k/t-rtems.
2864
2865 2003-09-19  Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2866
2867         * config/mips/t-rtems: New.
2868         * config.gcc (mips*-*-rtems*): Use config/mips/t-rtems.
2869
2870 2003-09-19  Kelley Cook  <kelleycook@wideopenwest.com>
2871
2872         * cgraph.c: Fix typo in debugging output.
2873
2874 2003-09-19  T. Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
2875             Eric Botcazou <ebotcazou@libertysurf.fr>
2876
2877         PR target/12166
2878         * config/sparc/sol2-c1.asm (start): Set __Argv if GCRT1.
2879
2880 2003-09-18  Mike Stump  <mrs@apple.com>
2881
2882         * c-ppoutput.c (print):  Use fileline typedef for field 'line'.
2883         (print_line, maybe_print_line, cb_define, cb_undef, cb_include,
2884         cb_ident, cb_def_pragma):  Use fileline typedef.
2885         * cpphash.h (struct cpp_reader):  Likewise for field out.first_line.
2886
2887 2003-09-18  Danny Smith  <dannysmith@users.sourceforge.net>
2888
2889         * config/i386/winnt.c (gen_stdcall_suffix): Quit summation of
2890         total parm size if a parm has incomplete type.
2891         (gen_fastcall_suffix): Likewise.
2892
2893 2003-09-18  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2894
2895         * except.c (output_function_exception_table): Adjust last change
2896         to handle TYPE of INTEGER_CST.
2897
2898 2003-09-18  Mark Mitchell  <mark@codesourcery.com>
2899
2900         PR target/11184
2901         * builtins.c (expand_builtin_apply): Use convert_memory_address
2902         before returning the value.
2903
2904         * alias.c (find_base_value): Simplify use of
2905         convert_memory_address.
2906         (find_base_term): Likewise.
2907         * builtins.c (expand_builtin_stejmp_setup): Likewise.
2908         (expand_builtin_longjmp): Likewise.
2909         (expand_builtin_prefetch): Likewise.
2910         (get_memory_rtx): Likewise.
2911         (expand_builtin_return): Likewise.
2912         (expand_builtin_memcpy): Likewise.
2913         (expand_builtin_strncpy): Likewise.
2914         (expand_builtin_memset): Likewise.
2915         (expand_builtin_va_arg): Likewise.
2916         (expand_builtin_va_copy): Likewise.
2917         (expand_builtin_alloca): Likewise.
2918         * calls.c (expand_call): Likewise.
2919         * except.c (expand_builtin_extract_return_addr): Likewise.
2920         (expand_builtin_eh_return): Likewise.
2921         * explow.c (convert_memory_address): Define even when
2922         POINTER_EXTEND_UNSIGNED is not defined.  Do nothing if the address
2923         is already in the right mode.
2924         * explow.c (memory_address): Simplify use of convert_memory_address.
2925         (probe_stack_range): Likewise.
2926         * expmed.c (make_tree): Likewise.
2927         * expr.c (emit_block_move_in_libcall): Likewise.
2928         (expand_assignment): Likewise.
2929         (expand_expr): Likewise.
2930         * function.c (assign_parms): Likewise.
2931         (expand_function_end): Likewise.
2932         * integrate.c (copy_rtx_and_substitute): Likewise.
2933         * stmt.c (expand_computed_goto): Likewise.
2934
2935 2003-09-18  Roger Sayle  <roger@eyesopen.com>
2936
2937         * simplify-rtx.c (simplify_unary_operation): Only transform
2938         (not (eq X Y)) into (ne X Y) when mode is BImode or STORE_FLAG_VALUE
2939         is -1.  RTL "not" is a bit-wise not, "~", not a logical not "!".
2940
2941 2003-09-18  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2942
2943         PR target/11674
2944         * config/i386/i386.c (x86_emit_floatuns): Also handle SImode operand.
2945
2946 2003-09-18  Roger Sayle  <roger@eyesopen.com>
2947
2948         * tree.def (FFS_EXPR, CLZ_EXPR, CTZ_EXPR, POPCOUNT_EXPR,
2949         PARITY_EXPR): Delete unused tree codes.
2950         * c-common.c (c_common_truthvalue_conversion): Delete references
2951         to FFS_EXPR and POPCOUNT_EXPR.
2952         * c-pretty-print.c (pp_c_postfix_expression): Remove FFS_EXPR.
2953         (pp_c_expression): Likewise.
2954         * expr.c (expand_expr): Delete RTL expansion of FFS_EXPR, CLZ_EXPR,
2955         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.
2956         * fold-const.c (tree_expr_nonnegative_p): Remove FFS_EXPR, CLZ_EXPR,
2957         CTZ_EXPR, POPCOUNT_EXPR and PARITY_EXPR.  Add support for calls to
2958         BUILT_IN_FFS, BUILT_IN_PARITY and BUILT_IN_POPCOUNT and their long
2959         and long long variants.
2960
2961 2003-09-18  Gabriel Dos Reis  <gdr@integrable-solutions.net>
2962
2963         * c-pretty-print.h (pp_type_specifier_seq): Fix thinko.
2964         * c-pretty-print.c: Fix formatting.
2965         (pp_c_integer_constant): Append type annotation to literals.  Tidy.
2966         (pp_c_type_specifier): Tidy.
2967         (pp_c_compound_literal): New function.
2968         (pp_c_initializer): Simplify..
2969         (pp_c_initializer_list): Likewise.
2970         (pp_c_brace_enclosed_initializer_list): New function.
2971         (pp_c_postfix_expression): Simplify.
2972
2973 2003-09-17  Alexandre Oliva  <aoliva@redhat.com>
2974
2975         * config/mn10300/mn10300.md (andsi3, iorsi3, xorsi3,
2976         one_complsi2, bit-clear, bit-set, iorqi3): Make them set_zn.
2977
2978 2003-09-17  Richard Henderson  <rth@redhat.com>
2979
2980         * tree-optimize.c (tree_rest_of_compilation): Save and restore
2981         input_location.
2982
2983 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
2984
2985         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Give -lpthread before -lc.
2986
2987 2003-09-17  Richard Henderson  <rth@redhat.com>
2988
2989         * cfg.c (dump_flow_info): Skip register dump if reg_n_info null.
2990
2991 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2992
2993         * configure.in (gcc_cv_ld_hidden): Don't test gnu_ld_flag.
2994         * configure: Regenerate.
2995
2996 2003-09-17  Mark Mitchell  <mark@codesourcery.com>
2997
2998         PR debug/12066
2999         * dbxout.c (dbxout_init): Use a langhook to find builtin types.
3000         * langhooks-def.h (lhd_return_null_tree_v): New function.
3001         (LANG_HOOKS_BUILTIN_TYPE_DECLS): New macro.
3002         (LANG_HOOKS_DECLS): Add it to the intializer.
3003         * langhooks.c (lhd_return_null_tree_v): New function.
3004         * langhooks.h (lang_hooks_for_decls): Add builtin_type_decls.
3005
3006 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
3007
3008         * configure.in: Quote gcc_config_arguments for configargs.h.
3009         * configure: Regenerated.
3010         * gccbug.in: Don't shell-expand gcc_config_arguments.
3011
3012 2003-09-17  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3013
3014         PR c++/11357
3015         * c-pretty-print.c (pp_c_floating_constant): Append
3016         type-annotation to floating constants.
3017
3018 2003-09-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3019
3020         * config/mips/iris5.h (TARGET_OS_CPP_BUILTINS): Define _LONGLONG.
3021         Define _ABIO32.
3022         Use it for _MIPS_SIM.
3023         * config/mips/iris6-o32.h (TARGET_OS_CPP_BUILTINS): Removed.
3024
3025         * config/mips/iris6-o32-as.h (SUBTARGET_ASM_OPTIMIZING_SPEC):
3026         Moved ...
3027         * config/mips/iris5.h (SUBTARGET_ASM_OPTIMIZING_SPEC): ... here,
3028         updating comment.
3029         Fixes PR target/10190.
3030
3031 2003-09-17  Daniel Jacobowitz  <drow@mvista.com>
3032
3033         * config/rs6000/sysv4.h (LIB_LINUX_SPEC): Make -pthread apply
3034         to shared libraries.
3035
3036 2003-09-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
3037
3038         PR optimization/11646
3039         * cfgrtl.c (purge_dead_edges) [JUMP_INSN]: Rematerialize the
3040         EDGE_ABNORMAL flag for EH edges.
3041         * toplev.c (rest_of_handle_cse): Delete unreachable blocks
3042         if dead edges were purged.
3043
3044 2003-09-16  Bernardo Innocenti  <bernie@develer.com>
3045
3046         * config/m68k/m68k.h (TARGET_CPU_CPP_BUILTINS): Add target predefines.
3047         * config/m68k/m68k-none.h (CPP_CPU_DEFAULT_SPEC): Kill all definitions.
3048         * config/m68k/m68k-none.h (CPP_FPU_SPEC): Remove.
3049         * config/m68k/m68k-none.h (CPP_SPEC): Likewise.
3050
3051 2003-09-16  Ian Lance Taylor  <ian@wasabisystems.com>
3052
3053         * cfgcleanup.c (label_is_jump_target_p): Correct use of table
3054         returned by tablejump_p.
3055
3056 2003-09-16  Joel Brobecker  <brobecker@gnat.com>
3057
3058         * dwarf2asm.c (dw2_asm_output_nstring): Add comment.
3059
3060 2003-09-16  Roger Sayle  <roger@eyesopen.com>
3061
3062         PR bootstrap/12269
3063         * simplify-rtx.c (simplify_gen_relational): Allow the cmp_mode
3064         argument to be VOIDmode, taking the mode of the comparison from
3065         the operands.  Only call simplify_relational_operation if we
3066         know the mode of the comparison.  Honor FLOAT_STORE_FLAG_VALUE
3067         if comparison has a floating point result.  Ensure that the
3068         result is always of the specified mode.
3069         (simplify_replace_rtx): Simplify call to simplify_gen_relational.
3070         (simplify_unary_operation): Ensure the correct mode and cmp_mode
3071         are always passed to simplify_gen_relational.  Simplify NOT of
3072         comparison operator in any mode, not just BImode.
3073         (simplify_ternary_operation): Correct tests on the return value
3074         of simplify_relational_operation to use const_true_rtx, not
3075         const1_rtx.  Abort if it ever returns a non-constant result.
3076
3077         * cfgloopanal.c (count_strange_loop_iterations): Use the function
3078         simplify_relational_operation, not simplify_gen_relational, if
3079         we're only interested in constant comparisons and will ignore
3080         non-constant results.
3081
3082 2003-09-16  Roger Sayle  <roger@eyesopen.com>
3083
3084         * fold-const.c (tree_swap_operands_p): New function to determine
3085         the prefered ordering of operands.
3086         (fold): Numerous clean-ups.  Use tree_swap_operands_p when swapping
3087         operands to commutative, comparison or ternary operators.  Replace
3088         uses of TREE_SET_CODE with recursive call to fold.  Remove duplicate
3089         transformation of A ? B : C into !A ? C : B.
3090
3091 2003-09-16  Jakub Jelinek  <jakub@redhat.com>
3092
3093         * config/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3094         * config/alpha/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3095         * config/arm/linux-elf.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3096         * config/rs6000/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3097         * config/rs6000/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3098         * config/sh/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3099         * config/sparc/linux.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3100         * config/sparc/linux64.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
3101
3102 2003-09-16  Jason Merrill  <jason@redhat.com>
3103             Jakub Jelinek  <jakub@redhat.com>
3104
3105         * c-common.c (handle_warn_unused_result_attribute): New function.
3106         (c_common_attribute_table): Add warn_unused_result.
3107         (c_expand_expr): Issue warning when result of inlined function
3108         with warn_unused_result attribute is ignored.
3109         * calls.c (expand_call): Issue warning when result of function
3110         with warn_unused_result attribute is ignored.
3111         * c-common.h (STMT_EXPR_WARN_UNUSED_RESULT): Define.
3112         * expr.c (expr_wfl_stack): Define.
3113         (expand_expr) <case EXPR_WITH_FILE_LOCATION>: If ignore,
3114         pass const0_rtx as target.  Chain locations into expr_wfl_stack.
3115         * tree-inline.c (expand_call_inline): Set STMT_EXPR_WARN_UNUSED_RESULT
3116         bit if inlined function has warn_unused_result attribute.
3117         * input.h (expr_wfl_stack): Declare.
3118         * doc/extend.texi: Document warn_unused_result attribute.
3119
3120 2003-09-15  Alexandre Oliva  <aoliva@redhat.com>
3121
3122         * cpplib.c (do_pragma): Remove unnecessary cb_line_change.
3123
3124 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
3125
3126         * config/xtensa/xtensa.c (xtensa_multibss_section_type_flags): Add
3127         ATTRIBUTE_UNUSED.
3128         (call_insn_operand): For PIC, don't allow a direct call to a
3129         function in a different section than the current one.
3130
3131 2003-09-16  Volker Reichelt  <reichelt@igpm.rwth-aachen.de>
3132
3133         * doc/invoke.texi (Warning Options): Add missing hyphen before
3134         "Wimport".  Change "-Wno-endif-labels" to "-Wendif-labels".
3135         Move "-Wold-style-definition" to the C-only section.
3136         Fix the ordering of the warning options.
3137
3138 2003-09-15  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3139             Jeff Law  <law@redhat.com>
3140
3141         * gcse.c (remove_reachable_equiv_notes): New.
3142         replace_store_insn): Call it.  Update antic list.
3143         (store_killed_in_insn): Take REG_EQUAL notes into account.
3144         (build_store_vectors, delete_store): Add parameter to
3145         replace_store_insn call.
3146
3147 2003-09-15  Bob Wilson  <bob.wilson@acm.org>
3148
3149         * config/xtensa/xtensa.h (LEGITIMATE_PIC_OPERAND_P): Use
3150         SYMBOL_REF_LOCAL_P.
3151
3152 2003-09-15  Kazu Hirata  <kazu@cs.umass.edu>
3153
3154         * expr.h (DEFAULT_FUNCTION_ARG_PADDING): New.
3155         (FUNCTION_ARG_PADDING): Use DEFAULT_FUNCTION_ARG_PADDING.
3156         * config/ia64/ia64.c (ia64_hpux_function_arg_padding):
3157         Likewise.
3158         * config/m68hc11/m68hc11.c (m68hc11_function_arg_padding):
3159         Likewise.
3160         * config/rs6000/rs6000.c (function_arg_padding): Likewise.
3161         * config/sparc/sparc.c (function_arg_padding): Likewise.
3162
3163 2003-09-15  Vladimir Makarov  <vmakarov@redhat.com>
3164
3165         * haifa-sched.c (schedule_block): Use ready_remove_first instead
3166         of choose_ready for non-dfa insn scheduling.
3167
3168 2003-09-15  Andreas Jaeger  <aj@suse.de>
3169             Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
3170
3171         * doc/invoke.texi (Warning Options): Describe -Wold-style-definition.
3172         * c-opts.c (c_common_handle_option): Handle OPT_Wold_style_definition.
3173         * c-parse.in: Warn about old-style parameter definition.
3174         * c-common.c: Define warn_old_style_defintion.
3175         * c-common.h: Declare it.
3176         * c.opt: Add Wold-style-defintion.
3177
3178 2003-09-15  Andreas Jaeger  <aj@suse.de>
3179
3180         * config/rs6000/altivec.h: Convert () prototypes to ISO C90.
3181         * config/rs6000/rs6000.c: Likewise.
3182
3183 2003-09-12  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3184
3185         PR optimization/10914
3186         * expr.h (get_condition, canonicalize_condition): Declaration changed.
3187         * cfgloopanal.c (simple_loop_exit_p): Add parameter to a get_condition
3188         and canonicalize_condition calls.
3189         * gcse.c (fis_get_condition, delete_null_pointer_checks_1,
3190         delete_null_pointer_checks): Ditto.
3191         * ifcvt.c (noce_get_alt_condition, noce_get_condition): Ditto.
3192         * predict.c (estimate_probability, expected_value_to_br_prob): Ditto.
3193         * loop.c (check_dbra_loop, get_condition_for_loop): Ditto.
3194         (canonicalize_condition, get_condition): Allow to return comparisons
3195         of cc mode registers.
3196         * loop-unswitch.c (may_unswitch_on_p, unswitch_single_loop): Allow
3197         cc mode registers comparison in condition.
3198
3199 2003-09-12  Mark Mitchell  <mark@codesourcery.com>
3200
3201         * coverage.c (create_coverage): Do not call pushlevel/poplevel.
3202         * langhooks-def.h (lhd_do_nothing_iii_return_null_tree): New
3203         function.
3204         * langhooks.c (lhd_do_nothing_iii_return_null_tree): Define it.
3205
3206 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3207
3208         * combine.c (simplify_comparison): Convert
3209         (ne (and (lshiftrt (xor X CST) Y) 1) 0) into
3210         (eq (and (lshiftrt X Y) 1) 0).
3211
3212 2003-09-14  Kazu Hirata  <kazu@cs.umass.edu>
3213
3214         * alias.c: Follow spelling conventions.
3215         * cpphash.h: Likewise.
3216         * fold-const.c: Likewise.
3217
3218 2003-09-14  Alexandre Oliva  <aoliva@redhat.com>
3219
3220         * c-ppoutput.c (cb_line_change): Revert 2003-08-04's change.
3221         * c-lex.c (cb_line_change): Skip line changing whenever
3222         c-ppoutput.c would.
3223
3224 2003-09-14  Steven Bosscher  <steven@gcc.gnu.org>
3225
3226         * ra.c: Convert to ISO C90 prototypes.
3227         * ra-build.c: Likewise.
3228         * ra-colorize.c: Likewise.
3229         * ra-debug.c: Likewise.
3230         * ra-rewrite.c: Likewise.
3231
3232 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
3233
3234         * Makefile.in (%.dvi): Remove excess $(docdir).
3235
3236 2003-09-14  Richard Sandiford  <rsandifo@redhat.com>
3237
3238         * function.c (STACK_BYTES): Move definition to head of file.
3239         (assign_parms): Don't pass current_function_pretend_args_size
3240         directly to SETUP_INCOMING_VARARGS.  For partial register arguments,
3241         round current_function_pretend_args_size up to STACK_BYTES.  Skip any
3242         excess before laying out the argument.
3243
3244 2003-09-14  Andreas Jaeger  <aj@suse.de>
3245
3246         * objc/objc-act.c: Convert to ISO C90 prototypes.
3247         * objc/objc-act.h: Likewise.
3248
3249 2003-09-14  Olaf Hering  <olh@suse.de>
3250
3251         * config/rs6000/rs6000.c: Fix typo: Remove extra ')'.
3252
3253 2003-09-13  Andrew Pinski <pinskia@physics.uc.edu>
3254
3255         PR target/12021
3256         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Remove the asserts
3257         as they already are done in config/m68k/m68k.h.
3258         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Likewise
3259
3260         * config/rs6000/rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Remove.
3261         (machopic_output_stub): Only generate pic base symbols when using pic
3262         and generate them in the form L00000000$spb.
3263
3264 2003-09-13  Richard Henderson  <rth@redhat.com>
3265
3266         * cgraphunit.c (cgraph_assemble_pending_functions): Export.
3267         (cgraph_finalize_function): Revert TREE_ASM_WRITTEN check.
3268         * cgraph.h: Update.
3269
3270 2003-09-12  Dale Johannesen  <dalej@apple.com>
3271
3272         * config/rs6000/rs6000.c: Fix typos in previous.
3273
3274 2003-09-12  Ziemowit Laski  <zlaski@apple.com>
3275
3276         * pretty-print.c (pp_construct): Use xcalloc instead of xmalloc
3277         when allocating pp->buffer.
3278
3279 2003-09-12  Geoffrey Keating  <geoffk@apple.com>
3280
3281         * config/darwin.c (machopic_select_rtx_section): Use
3282         const_data_section for things that might require relocation.
3283
3284 2003-09-12  H.J. Lu  <hongjiu.lu@intel.com>
3285
3286         PR bootstrap/12264
3287         * tree-inline.c (inline_forbidden_p_1): Cast the 3rd arg to tree.
3288
3289 2003-09-12  Bob Wilson  <bob.wilson@acm.org>
3290
3291         * config/xtensa/elf.h (ASM_SPEC): Remove no-density option.  Reformat.
3292         * config/xtensa/linux.h (ASM_SPEC): Likewise.
3293         * config/xtensa/xtensa.h (TARGET_SWITCHES): Remove -mbig-endian,
3294         -mlittle-endian, -m[no-]density, -m[no-]abs, -m[no-]addx, -m[no-]mac16,
3295         -m[no-]mul16, -m[no-]mul32, -m[no-]nsa, -m[no-]minmax, -m[no-]sext,
3296         -m[no-]booleans, -mhard-float, -msoft-float, -m[no-]hard-float-div,
3297         -m[no-]hard-float-recip, -m[no-]hard-float-sqrt, and
3298         -m[no-]hard-float-rsqrt options.  Delete corresponding MASK_* macros
3299         and redefine corresponding TARGET_* macros with constants from the
3300         xtensa-config.h header.
3301         * doc/invoke.texi (Option Summary, Xtensa Options): Remove documention
3302         for the options listed above.
3303
3304 2003-09-12  Dale Johannesen  <dalej@apple.com>
3305
3306         * config/rs6000/rs6000-protos.h:  Use C90 prototypes.
3307         * config/rs6000/rs6000-c.c:  Ditto.
3308         * config/rs6000/rs6000.c:  Ditto.
3309         * config/rs6000/ sysv4.h:  Ditto.
3310
3311 2003-09-12  Chris Lattner <sabre@nondot.org>
3312
3313         * loop.c: Move comments describing BIV's and GIV's to top of file
3314
3315 2003-09-12  Roger Sayle  <roger@eyesopen.com>
3316
3317         PR optimization/8967
3318         * alias.c (write_dependence_p): Modify to take an additional constp
3319         argument that controls whether the UNCHANGING_RTX_P flags are used.
3320         (anti_dependence, output_dependence): Adjust write_dependence_p
3321         callers to pass this additional argument, to return the same result.
3322         (unchanging_anti_dependence): New variant of anti_dependence that
3323         ignores the UNCHANGING_RTX_P property on memory references.
3324         * rtl.h (unchaning_anti_dependence): Prototype here.
3325         * flow.c (init_propagate_block): Place fake constant mem writes on
3326         the mem_set_list so that dead writes to const variables are deleted.
3327         (insn_dead_p): Change anti_dependence to unchanging_anti_dependence.
3328         (mark_used_regs): Likewise.
3329
3330 2003-09-12  Richard Sandiford  <rsandifo@redhat.com>
3331
3332         * config/mcore/mcore-protos.h (mcore_r15_operand_p): Declare.
3333         (mcore_secondary_reload_class): Declare.
3334         (mcore_output_inline_const_forced): Remove.
3335         * config/mcore/mcore.md (movsi): Remove the code that forced
3336         non-inlineable constants into a register if the target was r15
3337         or the stack pointer.  Remove constant restrictions from the main
3338         define_insn.  Remove r <- I, r <- M and r <- N alternatives in favor
3339         of an r <- P alternative.  Remove fallback define_insn for reload.
3340         (movhi, movqi): Use gen_lowpart rather than gen_SUBREG.  Remove reload
3341         define_insn.  Use mcore_output_move in the remaining define_insn.
3342         Adjust condition and constraints in the way as for movsi.
3343         (movdi): Always split unacceptable constants into two.  Use
3344         simplify_gen_subreg instead of operand_subword{,_force}.
3345         * config/mcore/mcore.c (mcore_output_inline_const_forced): Remove.
3346         (mcore_output_move): Support HImode and QImode moves as well.
3347         (mcore_m15_operand_p): New function.
3348         (mcore_reload_class): Use it to detect cases where LRW_REGS are better.
3349         (mcore_secondary_reload_class): New function.
3350         * config/mcore/mcore.h (SECONDARY_RELOAD_CLASS): Redefine in
3351         terms of mcore_secondary_reload_class.
3352
3353 2003-09-11  Mike Stump  <mrs@apple.com>
3354
3355         * c-lex.c (fe_file_change): Don't transform to_line with SOURCE_LINE.
3356
3357 2003-09-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3358
3359         * builtins.c (fold_builtin_logarithm): if N can't be truncated to
3360         MODE exactly, then only convert logN(N) -> 1.0 if
3361         flag_unsafe_math_optimizations is set.
3362
3363         * builtins.c (builtin_dconsts_init, dconstpi, dconste,
3364         init_builtin_dconsts): Delete.
3365         * emit-rtl.c (dconstpi, dconste): Define.
3366         (init_emit_once): Initialize dconstpi & dconste.
3367         * real.h (dconstpi, dconste): Declare.
3368
3369 2003-09-11  Alexandre Oliva  <aoliva@redhat.com>
3370
3371         PR fortran/11522
3372         * dwarf2out.c (gen_inlined_subroutine_die): Emit abstract function
3373         for ultimate origin even if block is abstract.
3374
3375 2003-09-11  Roger Sayle  <roger@eyesopen.com>
3376
3377         * combine.c (combine_simplify_rtx): Move several NOT and NEG
3378         optimizations from here...
3379         * simplify-rtx.c (simplify_unary_operation): to here.  Recursively
3380         simplify expressions using simplify_gen_*ary instead of gen_rtx_*.
3381
3382 2003-09-11  Richard Henderson  <rth@redhat.com>
3383
3384         * cgraphunit.c (cgraph_finalize_function): Add nested arg.
3385         Tweek tests for function already generated.
3386         (cgraph_expand_function): Don't double announce in !unit-at-a-time.
3387         * cgraph.h (cgraph_finalize_function): Update for extra arg.
3388         * c-decl.c (finish_function): Likewise.
3389
3390 2003-09-10  Joe Buck  <jbuck@welsh-buck.org>
3391
3392         * c-decl.c (poplevel): Eliminate use of |= in function_body assignment.
3393
3394 2003-09-10  Jerry Quinn  <jlquinn@optonline.net>
3395
3396         * real.c: Update URL to VAX floating point docs.
3397         (decode_vax_d): Extract 8 exponent bits instead of 7.
3398
3399 2003-09-10  Ian Lance Taylor  <ian@wasabisystems.com>
3400
3401         * combine.c (force_to_mode): Set fuller_mask based only on mask,
3402         not op_mode.
3403
3404 2003-09-11  Jan Hubicka  <jh@suse.cz>
3405
3406         * c-objc-common.c (c_cannot_inline_tree_fn): Warn
3407         on why function is not inlinable; do not check
3408         the body.
3409         (inline_forbidden_p): Move to...
3410         * tree-inline.c (inline_forbidden_p_1): ... here; Add warnings;
3411         deal with alloca, longjmp.
3412         (inline_forbidden_p): New static function.
3413         (find_alloca_call_1, find_alloca_call, find_builtin_longjmp_call_1,
3414         find_builtin_longjmp_call): Kill.
3415
3416 2003-09-10  Richard Henderson  <rth@redhat.com>
3417
3418         * cgraph.h (struct cgraph_node): Rename lowered to analyzed.
3419         * cgraphunit.c: Update to match.
3420         (record_call_1): Rearrange.  Call lang hook for language nodes.
3421         (cgraph_analyze_function): Don't call lower_function.
3422         * langhooks.h (struct lang_hooks_for_callgraph): Replace
3423         lower_function with analyze_expr.
3424         * langhooks-def.h: Update to match.
3425         * langhooks.c (lhd_callgraph_analyze_expr): New.
3426
3427 2003-09-10  Martin Husemann  <martin@duskware.de>
3428
3429         PR target/11965
3430         * config/sparc/sparc.c (sparc_v8plus_shift): Protect against
3431         constants greater than 63.
3432         * config/sparc/sparc.md (ashlsi3, ashrsi3, lshrsi3): Protect
3433         against constants greater than 31.
3434         (*ashldi3_sp64, *ashrdi3_sp64, *lshrdi3_sp64): Protect against
3435         constants greater than 63.
3436
3437 2003-09-09  Richard Henderson  <rth@redhat.com>
3438
3439         * cgraphunit.c (cgraph_finalize_function): Remove unused argument.
3440         * cgraph.h (cgraph_finalize_function): Update.
3441         * c-decl.c (finish_function): Update.
3442
3443 2003-09-09  Devang Patel  <dpatel@apple.com>
3444
3445         * config/darwin.h (LINK_SPEC): Pass -nofixprebinding to linker.
3446         * doc/invoke.texi: Document new Darwin linker option -nofixprebinding.
3447
3448 2003-09-09  Eric Christopher  <echristo@redhat.com>
3449
3450         * configure.in: Change usage of 'head' to 'sed 1q'.
3451         * configure: Regenerate.
3452
3453 2003-09-09  Richard Henderson  <rth@redhat.com>
3454
3455         * except.c: Include cgraph.h.
3456         (output_function_exception_table): Invoke
3457         cgraph_varpool_mark_needed_node.
3458         * Makefile.in (except.o): Update.
3459
3460 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
3461
3462         * Makefile.in: Define REMAKEFLAGS for LANGUAGES & BOOT_CFLAGS
3463         and use it throughout.
3464
3465 2003-09-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3466
3467         * builtins.c (real_dconstp, fold_builtin_logarithm,
3468         fold_builtin_exponent): New, split out from fold_builtin.  Also
3469         generalize to add log2, log10, exp2 and exp10/pow10 equivalents.
3470         * emit-rtl.c (dconst3, dconst10, dconstthird): New.
3471         (init_emit_once): Initialize new dconsts, use ARRAY_SIZE in lieu
3472         of hardcoded array size.
3473         * fold-const.c (fold): Add cases for exp2, exp10 and pow10.
3474         (tree_expr_nonnegative_p): Likewise.
3475         * real.h (dconst3, dconst10, dconstthird): New.
3476
3477 2003-09-09  Jan Hubicka  <jh@suse.cz>
3478
3479         * cgraphunit.c (cgraph_finalize_function): Fix handling of extern
3480         inline functions.
3481         (cgraph_finalize_compilation_unit): Fix crash when dealing with lost
3482         DECL_SAVED_TREE.
3483
3484 2003-09-09  Roger Sayle  <roger@eyesopen.com>
3485
3486         * builtins.c (fold_builtin_cabs): Protect the complex argument
3487         against multiple evaluation when optimizing cabs* into sqrt*.
3488
3489 2003-09-09  Jan Hubicka  <jh@suse.cz>
3490
3491         * varasm.c (notice_global_symbol):  Properly deal with weak symbols.
3492
3493 2003-09-08  Kelley Cook <kelleycook@wideopenwest.com>
3494
3495         * Makefile.in: Revert yesterday's change.
3496
3497 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
3498             Peter Barada <peter@baradas.org>
3499
3500         * config/m68k/coff.h (REGISTER_NAMES): Add fake register `argptr'
3501         * config/m68k/hp320.h (REGISTER_NAMES): Likewise.
3502         * config/m68k/linux.h (REGISTER_NAMES): Likewise.
3503         * config/m68k/m68kelf.h (REGISTER_NAMES): Likewise.
3504         * gcc/config/m68k/sgs.h (REGISTER_NAMES): Likewise.
3505         * config/m68k/m68k-protos.h (m68k_initial_elimination_offset): Add prototype.
3506         * config/m68k/m68k.c (m68k_frame): New struct, simular to ix86 back-end.
3507         (m68k_compute_frame_layout): New function.
3508         (m68k_initial_elimination_offset): New function.
3509         (m68k_output_function_prologue): ColdFire-specific movem handling.
3510         (m68k_output_function_epilogue): Likewise.
3511         * config/m68k/m68k.h (FIRST_PSEOUDO_REGISTER): Make room for argptr reg.
3512         (ARG_POINTER_REGNUM): Add new definition.
3513         (INITIAL_FRAME_POINTER_OFFSET): Remove macro.
3514         (ELIMINABLE_REGS): Define new macro, like in ix86 back-end.
3515         (CAN_ELIMINATE): Likewise.
3516         (INITIAL_ELIMINATION_OFFSET): Likewise.
3517
3518 2003-09-08  Bernardo Innocenti  <bernie@develer.com>
3519
3520         * config/m68k/m68k.c (m68k_output_function_prologue): Simplify
3521         by removing redundant variable cfa_store_offset.
3522
3523 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
3524
3525         * langhooks-def.h (lhd_register_builtin_type): New function.
3526         (LANG_HOOKS_REGISTER_BUILTIN_TYPE): New macro.
3527         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3528         * langhooks.h (lang_hooks_for_types): Add register_builtin_type.
3529         * langhooks.c (lhd_register_builtin_type): New function.
3530         * c-common.h (c_register_builtin_type): Declare.
3531         * c-common.c (c_register_builtin_type): New function.
3532         * c-lang.c (LANG_HOOKS_REGISTER_BUILTIN_TYPE): Define to
3533         c_register_builtin_type.
3534         * config/ia64/hpux.h (TARGET_OS_CPP_BUILTINS): Remove __fpreg,
3535         __float80, and __float128 macros.
3536         * config/ia64/ia64.c (ia64_init_builtins): Create __fpreg,
3537         __float80, and __float128 types.
3538
3539 2003-09-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3540
3541         * builtin-types.def
3542         (BT_FN_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE_COMPLEX_LONGDOUBLE,
3543         BT_FN_COMPLEX_DOUBLE_COMPLEX_DOUBLE_COMPLEX_DOUBLE,
3544         BT_FN_COMPLEX_FLOAT_COMPLEX_FLOAT_COMPLEX_FLOAT): New.
3545         * builtins.def (BUILT_IN_CACOS, BUILT_IN_CACOSF, BUILT_IN_CACOSH,
3546         BUILT_IN_CACOSHF, BUILT_IN_CACOSHL, BUILT_IN_CACOSL,
3547         BUILT_IN_CARG, BUILT_IN_CARGF, BUILT_IN_CARGL, BUILT_IN_CASIN,
3548         BUILT_IN_CASINF, BUILT_IN_CASINH, BUILT_IN_CASINHF,
3549         BUILT_IN_CASINHL, BUILT_IN_CASINL, BUILT_IN_CATAN,
3550         BUILT_IN_CATANF, BUILT_IN_CATANH, BUILT_IN_CATANHF,
3551         BUILT_IN_CATANHL, BUILT_IN_CATANL, BUILT_IN_CCOS, BUILT_IN_CCOSF,
3552         BUILT_IN_CCOSH, BUILT_IN_CCOSHF, BUILT_IN_CCOSHL, BUILT_IN_CCOSL,
3553         BUILT_IN_CEXP, BUILT_IN_CEXPF, BUILT_IN_CEXPL, BUILT_IN_CPOW,
3554         BUILT_IN_CPOWF, BUILT_IN_CPOWL, BUILT_IN_CPROJ, BUILT_IN_CPROJF,
3555         BUILT_IN_CPROJL, BUILT_IN_CSIN, BUILT_IN_CSINF, BUILT_IN_CSINH,
3556         BUILT_IN_CSINHF, BUILT_IN_CSINHL, BUILT_IN_CSINL, BUILT_IN_CSQRT,
3557         BUILT_IN_CSQRTF, BUILT_IN_CSQRTL, BUILT_IN_CTAN, BUILT_IN_CTANF,
3558         BUILT_IN_CTANH, BUILT_IN_CTANHF, BUILT_IN_CTANHL, BUILT_IN_CTANL):
3559         New.
3560         * doc/extend.texi: Document new builtins.
3561
3562 2003-09-09  Jan Hubicka  <jh@suse.cz>
3563
3564         * cgraph.c (cgraph_varpool_finalize_decl): Sanity check duplicated
3565         finalization.
3566         * cgraphunit.c (decide_is_fnction_needed): Avoid special case of nested
3567         functions, check for COMDAT.
3568         (cgraph_assemble_pending_functions): Break out from...
3569         (cgraph_finalize_function): ... here; allow redefinig of extern inline
3570         functions.
3571         (record_call_1): Record function references only in non-unit-at-a-time
3572         mode.
3573         (cgraph_analyze_function): Reset current_function_decl.
3574         (cgraph_finalize_compilation_unit):  Assemble pending functions.
3575
3576 2003-09-08  Mark Mitchell  <mark@codesourcery.com>
3577
3578         * mklibgcc.in (libcc.a): Depend on stmp-dirs.
3579         (libgov.a): Likewise.
3580         (libgcc_eh.a): Likewise.
3581
3582 2003-09-08  Roger Sayle  <roger@eyesopen.com>
3583
3584         * fold-const.c (operand_equal_p): Clarify documentation.
3585
3586 2003-09-08  Richard Henderson  <rth@redhat.com>
3587
3588         * c-decl.c (c_expand_body_1): Push and pop function context here.
3589         * tree-optimize.c (tree_rest_of_compilation): ... not here.  Take
3590         nested argument instead of computing nesting ourselves.
3591
3592 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
3593
3594         * toplev.c (rest_of_handle_stack_regs): Call split_all_insns before
3595         regstack if optimizing but not scheduling after reload.
3596
3597 2003-09-08  Jakub Jelinek  <jakub@redhat.com>
3598
3599         * config/sparc/sparc.c (struct machine_function): New type.
3600         (TARGET_HAVE_TLS, TARGET_CANNOT_FORCE_CONST_MEM): Define.
3601         (sparc_override_options): Initialize init_machine_status.
3602         (tls_symbolic_operand, tgd_symbolic_operand, tld_symbolic_operand,
3603         tie_symbolic_operand, tle_symbolic_operand): New functions.
3604         (symbolic_operand): Disallow tls_symbolic_operand.
3605         (symbolic_memory_operand): Likewise.
3606         (tls_call_delay, sparc_cannot_force_const_mem, legitimate_constant_p,
3607         constant_address_p, legitimate_pic_operand_p, legitimate_address_p):
3608         New functions.
3609         (sparc_tls_symbol): New variable.
3610         (sparc_tls_get_addr, sparc_tls_got, legitimize_tls_address,
3611         legitimize_address): New functions.
3612         (print_operand): Handle %&.
3613         (sparc_init_machine_status, get_some_local_dynamic_name,
3614         get_some_local_dynamic_name_1): New functions.
3615         (sparc_output_dwarf_dtprel): New function.
3616         * config/sparc/sparc.h (CONSTANT_ADDRESS_P): Moved into
3617         constant_address_p.
3618         (LEGITIMATE_PIC_OPERAND_P): Moved into legitimate_pic_operand_p.
3619         (LEGITIMATE_CONSTANT_P): Moved into legitimate_constant_p.
3620         (GO_IF_LEGITIMATE_ADDRESS): Moved into legitimate_address_p.
3621         (LEGITIMIZE_ADDRESS): Moved into legitimize_address.
3622         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
3623         (TARGET_TLS, TARGET_SUN_TLS, TARGET_GNU_TLS): Define.
3624         (ASM_OUTPUT_DWARF_DTPREL): Define.
3625         (PREDICATE_CODES): Add tgd_symbolic_operand, tld_symbolic_operand,
3626         tie_symbolic_operand, tle_symbolic_operand.
3627         * config/sparc/sparc.md (UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_TLSLDO,
3628         UNSPEC_TLSIE, UNSPEC_TLSLE, UNSPEC_TLSLD_BASE): New constants.
3629         (tls_call_delay): New attribute.
3630         (in_call_delay): Use it.
3631         (movqi, movhi, movsi, movdi): Call legitimize_tls_address if needed.
3632         (tgd_hi22, tgd_lo10, tgd_add32, tgd_add64, tgd_call32, tgd_call64,
3633         tldm_hi22, tldm_lo10, tldm_add32, tldm_add64, tldm_call32, tldm_call64,
3634         tldo_hix22, tldo_lox10, tldo_add32, tldo_add64, tie_hi22, tie_lo10,
3635         tie_ld32, tie_ld64, tie_add32, tie_add64, tle_hix22_sp32,
3636         tle_lox10_sp32, tle_hix22_sp64, tle_lox10_sp64): New insns.
3637         (tldo_ldub_sp32, tldo_ldub1_sp32, tldo_ldub2_sp32, tldo_ldsb1_sp32,
3638         tldo_ldsb2_sp32, tldo_ldub_sp64, tldo_ldub1_sp64, tldo_ldub2_sp64,
3639         tldo_ldub3_sp64, tldo_ldsb1_sp64, tldo_ldsb2_sp64, tldo_ldsb3_sp64,
3640         tldo_lduh_sp32, tldo_lduh1_sp32, tldo_ldsh1_sp32, tldo_lduh_sp64,
3641         tldo_lduh1_sp64, tldo_lduh2_sp64, tldo_ldsh1_sp64, tldo_ldsh2_sp64,
3642         tldo_lduw_sp32, tldo_lduw_sp64, tldo_lduw1_sp64, tldo_ldsw1_sp64,
3643         tldo_ldx_sp64, tldo_stb_sp32, tldo_stb_sp64, tldo_sth_sp32,
3644         tldo_sth_sp64, tldo_stw_sp32, tldo_stw_sp64, tldo_stx_sp64): New
3645         insns.
3646         * config/sparc/sparc-protos.h (legitimate_constant_p,
3647         constant_address_p, legitimate_pic_operand_p, legitimate_address_p,
3648         legitimize_tls_address, legitimize_address, tls_symbolic_operand,
3649         tls_call_delay, sparc_output_dwarf_dtprel): New prototypes.
3650         * config/sparc/linux.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Define.
3651         * config/sparc/linux64.h (TARGET_GNU_TLS, TARGET_SUN_TLS): Likewise.
3652         * configure.in (sparc*-*-*): Add TLS check.
3653         * configure: Rebuilt.
3654
3655 2003-09-07  Eric Botcazou  <ebotcazou@libertysurf.fr>
3656
3657         PR target/11689
3658         * config/i386/i386.c (memory_address_length): Fix computation when
3659         the base is esp or ebp.
3660
3661 2003-09-07  Mark Mitchell  <mark@codesourcery.com>
3662
3663         PR c++/11852
3664         * varasm.c (initializer_constant_valid_p): Correct logic for
3665         CONSTRUCTORs.
3666
3667 2003-09-07  Roger Sayle  <roger@eyesopen.com>
3668
3669         * expr.c (expand_operands): New function to expand an operand pair.
3670         (expand_expr): Call expand_operands whenever we need to expand both
3671         operands of a binary operator.
3672         (do_store_flag): Likewise for operands of comparison operations.
3673
3674 2003-09-07  Roger Sayle  <roger@eyesopen.com>
3675
3676         * combine.c (combine_simplify_rtx): Don't convert -(A*B) into
3677         (-A)*B if we care about sign-dependent rounding.
3678
3679 2003-09-07  Gabriel Dos Reis  <gcc@integrable-solutions.net>
3680
3681         * c-pretty-print.h (pp_c_left_brace): Declare.
3682         (pp_c_right_brace): Likewise.
3683         * c-pretty-print.c (pp_c_left_brace): Now a function
3684         (pp_c_right_brace): Likewise.
3685
3686 2003-09-07  Jan Hubicka  <jh@suse.cz>
3687
3688         * cfgcleanup.c (try_simplify_condjump): Fix again the preivous patch.
3689
3690 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3691
3692         * diagnostic.c (warn_deprecated_use): Move to toplev.c
3693
3694 2003-09-07  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3695
3696         * langhooks.c (lhd_print_error_function): Move from diagnostic.c.
3697         * Makefile.in (langhooks.o): Depend on diagnostic.h
3698
3699 2003-09-06  James E Wilson  <wilson@tuliptree.org>
3700
3701         * loop.c (loop_regs_update): Delete else clause for PATTERN rtx and
3702         simplify.
3703
3704 2003-09-07  Kelley Cook  <kelleycook@wideopenwest.com>
3705
3706         * Makefile.in: Define $REMAKE to be $MAKE with LANGUAGES & BOOT_CFLAGS
3707         and use it throughout.
3708
3709 2003-09-07  Jan Hubicka  <jh@suse.cz>
3710
3711         * cfgcleanup.c (try_simplify_condjump): Fix my previous patch.
3712
3713         * toplev.c  (rest_of_decl_compilation):  Do not finalize external
3714         virables.
3715
3716         * cgraph.c (cgraph_mark_reachable_node): Only enqueue finalized
3717         functions.
3718         (cgraph_varpool_finalize_decl): Notice global symbol when needed.
3719
3720 2003-09-06  Jan Hubicka  <jh@suse.cz>
3721
3722         PR target/12070
3723         * calls.c (emit_library_call_value_1): Fix saving of BLKmode arguments.
3724
3725         PR opt/12082
3726         * cfgcleanup.c (try_simplify_condjump): Avoid unreachable code warning.
3727
3728 2003-09-06  Gabriel Dos Reis  <gdr@integrable-solutions.net>
3729
3730         * diagnostic.c (announce_function): Move to toplev.c.
3731
3732 2003-09-06  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3733
3734         * gcse.c (expr_equiv_p): Don't consider anything to be equal to
3735         volatile mem.
3736
3737 2003-09-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3738
3739         * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
3740         when gc checking is enabled.
3741
3742 2003-09-06  Steven Bosscher  <steven@gcc.gnu.org>
3743
3744         PR c/9862
3745         * c-decl.c (c_expand_body_1): Move return warning from here...
3746         (finish_function): ...to here.
3747
3748 2003-09-05  Geoffrey Keating  <geoffk@apple.com>
3749
3750         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Always return
3751         a subset of the input class.
3752
3753 2003-09-05  Kazu Hirata  <kazu@cs.umass.edu>
3754
3755         * config/i860/i860.c: Follow spelling conventions.
3756         * config/i860/i860.h: Likewise.
3757         * config/sh/sh.h: Likewise.
3758
3759 2003-09-05  Nitin Yewale  <NitinY@KPITCummins.com>
3760
3761         * config/h8300/h8300-protos.h: Declare h8300_hard_regno_rename_ok
3762         * config/h8300/h8300.h (HARD_REGNO_RENAME_OK): New.
3763         * config/h8300/h8300.c (h8300_hard_regno_rename_ok): New.
3764
3765 2003-09-05  Roger Sayle  <roger@eyesopen.com>
3766             Richard Henderson  <rth@redhat.com>
3767
3768         PR optimization/1823
3769         * expmed.c (expand_divmod <EXACT_DIV_EXPR>): Use an unsigned
3770         multiplication to implement division by constant integer.
3771
3772 2003-09-05  Jan Hubicka  <jh@suse.cz>
3773
3774         * opts.c (decode_options): Enable unit-at-a-time at -O2.
3775         * params.def (max-inline-insns-single): Set to 500
3776         (max-inline-insns-auto): Set to 150
3777         * invoke.texi (max-inline-insns-single, max-inline-insns-auto): Update.
3778
3779 2003-09-04  Richard Henderson  <rth@redhat.com>
3780
3781         * cgraph.c (cgraph_mark_reachable_node): Split out from ...
3782         (cgraph_mark_needed_node): Remove needed argument.
3783         * cgraph.h: Update to match.
3784         * cgraphunit.c (decide_is_function_needed): Split out from ...
3785         (cgraph_finalize_function): Reorg.  Avoid deferred_inline_function
3786         if we generated the function.
3787         (record_call_1): Update for cgraph_mark_reachable_node.
3788         * varasm.c (mark_referenced): Likewise.
3789         * objc/objc-act.c (mark_referenced_methods): Likewise.
3790
3791 2003-09-04  DJ Delorie  <dj@redhat.com>
3792
3793         * targhooks.c: Add comment explaining the migration process.
3794
3795 2003-09-04  Eric Christopher  <echristo@redhat.com>
3796
3797         * config/frv/t-frv: Fix path for frv-abi.h.
3798         * config/frv/frv-asm.h: Fix string concatenation.
3799
3800 2003-09-04  DJ Delorie  <dj@redhat.com>
3801
3802         * builtins.c (apply_args_size): Guard against a NULL cfun.
3803         (expand_builtin_apply_args_1): Likewise.
3804         (expand_builtin_apply): Likewise.
3805         Fixes PR bootstrap/12172.
3806
3807 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3808
3809         * configure.in (gcc_cv_as_ix86_cmov_sun_syntax): Check if
3810         assembler supports Sun syntax for cmov.
3811         * configure: Regenerate.
3812         * config.in: Likewise.
3813         * config/i386/i386.c: Rename CMOV_SUN_AS_SYNTAX to
3814         HAVE_AS_IX86_CMOV_SUN_SYNTAX.
3815         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Remove.
3816         Fixes PR target/12101.
3817
3818 2003-09-04  Matt Austern  <austern@apple.com>
3819
3820         * c-common.c (fname_as_string): Use lang_hooks.decl_printable_name
3821         with verbosity 0, instead of DECL_NAME, for human-readable string.
3822
3823 2003-09-04  Eric Christopher  <echristo@redhat.com>
3824
3825         * targhooks.c (default_return_in_memory): Allow
3826         unconverted ports.
3827
3828 2003-09-04  Eric Christopher  <echristo@redhat.com>
3829
3830         * targhooks.c (default_return_in_memory): Fix typo
3831         in last checkin.
3832
3833 2003-09-04  Eric Christopher  <echristo@redhat.com>
3834
3835         * targhooks.c (default_return_in_memory): Fix default
3836         definition.
3837
3838 2003-09-04  Bernardo Innocenti  <bernie@develer.com>
3839
3840         * config/m68k/m68k.c (m68k_coff_asm_named_section): Restore
3841         deleted function.
3842         * config/m68k/coff.h (M68K_TARGET_COFF): Add flag used to
3843         enable coff-only code in m68k.c.
3844
3845 2003-09-04  Nick Clifton  <nickc@redhat.com>
3846
3847         * config.gcc: Add v850e1 target.  Allow --with-cpu to accept
3848         v850e1.
3849         * config/v850/v850.h: Accept v850e1 as a default CPU.
3850         Accept -mv850e1 as a command line option.
3851         * doc/invoke.texi: Document new -mv850e1 command line switch.
3852         * config/v850/t-v850: Treat -mv850e1 as a multilib alias for
3853         -mv850e.
3854
3855 2003-09-04  Nick Clifton  <nickc@redhat.com>
3856
3857         * config.gcc (v850e-*-*): Use t-v850e makefile fragment.
3858         * config/v850/t-v850: Only produce one extra multilib - for
3859         the v850e.
3860         * config/v850/t-v850e: New file: Only produce one extra
3861         multilib - for the v850.
3862
3863 2003-09-04  Jakub Jelinek  <jakub@redhat.com>
3864
3865         * config/ia64/libgcc-ia64.ver: Export _Unwind_GetBSP@@GCC_3.3.2.
3866         * config/ia64/unwind-ia64.c (_Unwind_GetBSP): New function.
3867         * unwind.h (_Unwind_GetBSP): New prototype.
3868         * libgcc-std.ver: Add empty GCC_3.3.2 version.
3869         * mkmap-symver.awk: For symbol versions with no exported symbols,
3870         don't put anything into version script, just change all symbol
3871         versions which inherit from it to inherit from its ancestor.
3872
3873 2003-09-04  Eric Christopher  <echristo@redhat.com>
3874
3875         * config/mips/mips.c (mips_expand_prologue): Convert to
3876         calls.struct_value_rtx hook.
3877         (reg_or_const_float_1_operand): New.
3878         * config/mips/mips.h: Update Comments.
3879         (mips_arg): Add reg_or_const_float_1_operand.
3880         * config/mips/mips.md (divdf3); Convert to expander.
3881         (divsf3): Ditto.
3882         (*divdf3): New pattern.
3883         (*divsf3): Ditto.
3884
3885 2003-09-04  Jan Hubicka  <jh@suse.cz>
3886
3887         * toplev.c (wrapup_global_declarations): Fix final pass in
3888         unit-at-atime mode.
3889
3890 2003-09-04  Mark Mitchell  <mark@codesourcery.com>
3891
3892         * doc/extend.texi: Document removal of cast-as-lvalue extension in
3893         C++.
3894
3895 2003-09-04  Nicolas Roche  <roche@act-europe.fr>
3896
3897         * gcc.c (process_command): Fix typo.
3898
3899 2003-09-03  David O'Brien  <obrien@FreeBSD.org>
3900
3901         optimization/11980
3902         * config/i386/freebsd.h (SIZE_TYPE): Support TARGET_64BIT.
3903         (PTRDIFF_TYPE): Likewise.
3904         (WCHAR_TYPE_SIZE): Likewise.
3905
3906 2003-09-03  DJ Delorie  <dj@redhat.com>
3907
3908         * targhooks.c: New file.
3909         * targhooks.h: New file.
3910         * Makefile.in: Add targhooks.o support.
3911         (function.o): Depend on$(TARGET_H).
3912         (stmt.o): Likewise.
3913         (combine.o): Depend on $(TREE_H) and $(TARGET_H).
3914         * builtins.c (apply_args_size, expand_builtin_apply_args_1,
3915         expand_builtin_apply): Convert to calls.struct_value_rtx hook.
3916         (expand_builtin_saveregs): Convert to
3917         calls.expand_builtin_saveregs hook.
3918         * c-decl.c (start_decl): Handle new calls.promote_prototypes hook
3919         here, instead of ...
3920         (get_parm_info) ... here.
3921         (store_parm_decls_oldstyle): Convert to calls.promote_prototypes
3922         hook.
3923         (finish_function): Handle calls.promote_prototypes hook here too.
3924         * c-typeck.c (convert_arguments): Convert to
3925         calls.promote_prototypes hook.
3926         (c_convert_parm_for_inlining): Likewise.
3927         * calls.c (initialize_argument_information): Convert to
3928         calls.promote_function_args hook.
3929         (expand_call): Convert to calls.struct_value_rtx,
3930         calls.strict_argument_naming,
3931         calls.pretend_outgoing_varargs_named, and
3932         calls.promote_function_return hooks.  Pass fndecl to
3933         aggregate_value_p.  Initialize CUMULATIVE_ARGS before calling
3934         hooks, so they can use that.
3935         (emit_library_call_value_1): Likewise.
3936         * combine.c (setup_incoming_promotions): Convert to
3937         calls.promote_function_args hook.
3938         * emit-rtl.c: Convert to calls.struct_value_rtx hook.
3939         * expr.c (expand_assignment): Pass call to aggregate_value_p.
3940         (expand_expr): Likewise.
3941         * expr.h: Remove support for SETUP_INCOMING_VARARGS,
3942         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
3943         RETURN_IN_MEMORY macro defaults.
3944         * final.c (profile_function): Convert to calls.struct_value_rtx
3945         hook.
3946         * function.c (aggregate_value_p): Accept function type tree as
3947         second parameter; try to deduce fntype from it.  Convert to
3948         calls.return_in_memory hook.
3949         (assign_parms): Convert to calls.setup_incoming_varargs,
3950         calls.strict_argument_naming, calls.promote_function_args,
3951         calls.pretend_outgoing_varargs_named hooks.  Pass fndecl to
3952         aggregate_value_p.
3953         (expand_function_start): Likewise.  Convert to
3954         calls.struct_value_rtx hook.
3955         (expand_function_end): Convert to calls.promote_function_return hook.
3956         (allocate_struct_function): Pass fndecl to aggregate_value_p.
3957         * hard-reg-set.h: Update comments to new hook names.
3958         * integrate.c (expand_inline_function): Pass fndecl to aggregate_value_p.
3959         * reg-stack.c (stack_result): Likewise.
3960         * rtl.h (struct_value_rtx, struct_value_incoming_rtx): Delete.
3961         * stmt.c (expand_value_return): Convert to
3962         calls.promote_function_return hook.
3963         * target-def.h: Add TARGET_PROMOTE_FUNCTION_ARGS,
3964         TARGET_PROMOTE_FUNCTION_RETURN, TARGET_PROMOTE_PROTOTYPES,
3965         TARGET_STRUCT_VALUE_RTX, TARGET_RETURN_IN_MEMORY,
3966         TARGET_EXPAND_BUILTIN_SAVEREGS, TARGET_SETUP_INCOMING_VARARGS,
3967         TARGET_STRICT_ARGUMENT_NAMING,
3968         TARGET_PRETEND_OUTGOING_VARARGS_NAMED, and TARGET_CALLS.
3969         * target.h: Likewise.
3970         * tree.h (aggregate_value_p): Also takes a tree to deduce function
3971         attributes from (for target hooks).
3972         * doc/tm.texi (PROMOTE_FUNCTION_ARGS, PROMOTE_FUNCTION_RETURN,
3973         PROMOTE_PROTOTYPES, RETURN_IN_MEMORY, STRUCT_VALUE_REGNUM,
3974         STRUCT_VALUE, STRUCT_VALUE_INCOMING_REGNUM, STRUCT_VALUE_INCOMING,
3975         EXPAND_BUILTIN_SAVEREGS, SETUP_INCOMING_VARARGS,
3976         STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED): Convert
3977         to hooks.
3978
3979         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Pass function
3980         to aggregate_value_p.
3981         * config/arm/arm.c (arm_init_cumulative_args,
3982         arm_output_mi_thunk): Likewise.
3983         * config/i386/i386.c (ix86_return_pops_args, x86_this_parameter):
3984         Likewise.
3985         * config/mips/mips.c (mips_save_reg_p, mips_expand_prologue,
3986         mips_can_use_return_insn): Likewise.
3987         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
3988         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
3989         * config/sparc/sparc.c (sparc_output_mi_thunk): Pass function to
3990         aggregate_value_p.
3991         * config/story16/stormy16.c (xstormy16_asm_output_mi_thunk): Pass
3992         function to aggregate_value_p.
3993         * objc/objc-act.c (generate_struct_by_value_array): Pass NULL to
3994         aggregate_value_p.
3995
3996         * config/sh/sh-protos.h (sh_builtin_saveregs): Remove.
3997         (sh_attr_renesas_p, sh_cfun_attr_renesas_p, sh_function_arg,
3998         sh_function_arg_advance, sh_pass_in_reg_p): New.  * config/sh/sh.c
3999         (sh_handle_renesas_attribute, sh_promote_prototypes,
4000         sh_struct_value_rtx, sh_return_in_memory, sh_builtin_saveregs,
4001         sh_setup_incoming_varargs, sh_strict_argument_naming,
4002         sh_pretend_outgoing_varargs_named): New decls.
4003         (targetm): Add new hooks.
4004         (calc_live_regs): Save MACL and MACH if the function has the
4005         renesas attribute.
4006         (sh_expand_prologue): Support renesas attribute.
4007         (sh_builtin_saveregs): Make static.
4008         (sh_build_va_list): Support renesas attribute.
4009         (sh_va_start): Likewise.
4010         (sh_va_arg): Likewise.
4011         (sh_promote_prototypes): New.
4012         (sh_function_arg): New, moved from sh.h.  Support renesas
4013         attribute.
4014         (sh_function_arg_advance): Likewise.
4015         (sh_return_in_memory): Likewise.
4016         (sh_strict_argument_naming): Likewise.
4017         (sh_pretend_outgoing_varargs_named): Likewise.
4018         (sh_struct_value_rtx): New.
4019         (sh_attribute): Add renesas attribute.
4020         (sh_handle_renesas_attribute): New.
4021         (sh_attr_renesas_p, sh_cfun_attr_renesas_p): New.
4022         (sh_ms_bitfield_layout_p): Support renesas attribute also.
4023         (sh_output_mi_thunk): Pass function to aggregate_value_p.  *
4024         config/sh/sh.h (TARGET_SWITCHES): Add -mrenesas as an alias for
4025         -mhitachi.
4026         (STRUCT_VALUE_REGNUM, STRUCT_VALUE, RETURN_IN_MEMORY): Moved to
4027         target hooks.
4028         (sh_args): Add renesas_abi flag.
4029         (INIT_CUMULATIVE_ARGS): Set it.  Pass fndecl to aggregate_value_p.
4030         (FUNCTION_ARG_ADVANCE, FUNCTION_ARG): Move to sh.c.
4031         (PASS_IN_REG_P): Support renesas attribute.  Pass DF and TF on the
4032         stack for the renesas abi.
4033         (STRICT_ARGUMENT_NAMING, PRETEND_OUTGOING_VARARGS_NAMED,
4034         SETUP_INCOMING_VARARGS, EXPAND_BUILTIN_SAVEREGS,
4035         PROMOTE_PROTOTYPES): Moved to sh.c.  * config/sh/sh.md (call): Set
4036         call cookie to indicate renesas calls.
4037
4038 2003-09-03  Mostafa Hagog  <mustafa@il.ibm.com>
4039
4040         * gcse.c (replace_one_set): New function.
4041         (pre_insert_copy_insn): Change the order of copying
4042         to make copy propagation discover additional PRE opportunities.
4043
4044 2003-09-03  Roger Sayle  <roger@eyesopen.com>
4045
4046         PR optimization/11700.
4047         * simplify-rtx.c (simplify_subreg): Check that the subreg offset
4048         of a hard register is representable before trying to simplify it
4049         using subreg_hard_regno.
4050
4051 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4052
4053         * configure.in (gcc_cv_ld_hidden): Disable unless using GNU ld.
4054         * configure: Regenerate.
4055
4056 2003-09-04  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4057
4058         * intl.h (N_): Remove parentheses.
4059
4060 2003-09-03  Bernardo Innocenti  <bernie@develer.com>
4061
4062         * config.gcc (m68k-*-linux*): Remove definition of LINUX_DEFAULT_ELF.
4063         * config/i370/linux.h (LINUX_DEFAULT_ELF): Remove unconditional
4064         definition and code blocks compiled when not defined.
4065         * config/i386/linux.h (LINUX_DEFAULT_ELF): Likewise.
4066         * config/i386/linux64.h (LINUX_DEFAULT_ELF): Likewise.
4067         * config/sparc/linux.h: (LINUX_DEFAULT_ELF): Likewise.
4068         * config/sparc/linux64.h: (LINUX_DEFAULT_ELF): Likewise.
4069
4070 2003-09-03  Jeff Sturm  <jsturm@one-point.com>
4071
4072         * cgraphunit.c (visited_nodes): New static variable.
4073         (record_call_1): Use walk_tree with visited_nodes.
4074         (cgraph_create_edges): Use walk_tree with visited_nodes.
4075         Setup/teardown visited_nodes hashtable.
4076
4077 2003-09-03  Roger Sayle  <roger@eyesopen.com>
4078
4079         * toplev.c (flag_rounding_math): New global variable.
4080         (f_options): Add to the list of language independent options.
4081         * flags.h (flag_rounding_math): Prototype here.
4082         (HONOR_SIGN_DEPENDENT_ROUNDING): Use flag_rounding_math instead.
4083         * common.opt (frounding-math): New common command line option.
4084         * opts.c (common_handle_option): Handle OPT_frounding_math.
4085         (set_fast_math_flags): -ffast-math clears flag_rounding_math.
4086
4087         * doc/invoke.texi: Document this new command line option.
4088
4089 2003-09-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4090
4091         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Update comment.
4092
4093 2003-09-03  Jan Hubicka  <jh@suse.cz>
4094
4095         * Makefile.in (c-objc-common.o): Kill gt-c-objc-common.h dependency.
4096         * c-decl.c (finish_function):  Kill arguments, always use cgraph path.
4097         * c-objc-common.c: Kill include of gt-c-objc-common.h
4098         (expand_deferred_fns, deffer_fn): Kill function.
4099         (deferred_fns): Kill variable.
4100         (finish_cdtor): Update finish_function call.
4101         (c_objc_common_finish_file): Always call cgraph code.
4102         * c-parse.c: Regenerate.
4103         * c-parse.y: Regenerate.
4104         * c-tree.h (finish_function): Update prototype.
4105         * objc-acct.c (build_module_descriptor, finish_method_def):
4106         Update call of finish_function.
4107         * cgraphunit.c (cgraph_default_inline_p, cgraph_analyze_function): Add
4108         forward prototype.
4109         (cgraph_finalize_function): In non-unit-at-a-time mode analyze the
4110         function and assemble it if needed.
4111         (cgraph_finalize_compilation_unit): Do nothing in non-unit-at-a-time
4112         mode.
4113         (cgraph_optimize): Likewise.
4114         (cgraph_expand_function): In non-unit-at-a-time mode keep function body
4115         even when it has no inline callees.
4116         * c-parse.in: Update calls to finish_function.
4117
4118 2003-09-03  Nick Clifton  <nickc@redhat.com>
4119
4120         * config/arm/arm.h: Handle TARGET_CPU_iwmmxt.
4121         Use #error to generate the message if TARGET_DEFAULT is not
4122         recognised.
4123
4124 2003-09-03  Richard Sandiford  <rsandifo@redhat.com>
4125
4126         * config/mips/mips.h (MASK_UNUSED1): Remove.
4127         (MASK_XGOT, TARGET_XGOT): Define.
4128         (TARGET_SWITCHES): Add an entry for -mxgot.
4129         (ASM_SPEC): Map -mxgot to -xgot.
4130         * config/mips/mips.c (mips_symbol_insns): Use TARGET_XGOT to decide
4131         whether we're using a big-GOT sequences.
4132         (mips_legitimize_const_move, mips_expand_call): Likewise.
4133         (override_options): Revert 2003-01-09 change.
4134         * doc/invoke.texi: Document -mxgot.
4135
4136 2003-09-02  Jason Merrill  <jason@redhat.com>
4137
4138         * config/sol2.h (NO_IMPLICIT_EXTERN_C): Define here.
4139         * config/sparc/sol2.h: Not here.
4140
4141 2003-09-02  Roger Sayle  <roger@eyesopen.com>
4142
4143         * expr.c (expand_expr): The code following both_summands performs
4144         the same task as simplify_gen_binary.  Replace all gotos to
4145         both_summands with a call to simplify_gen_binary and delete the
4146         now unused label.
4147
4148 2003-09-02  Jason Merrill  <jason@redhat.com>
4149
4150         PR c++/7327
4151         * config/sparc/sol2.h (NO_IMPLICIT_EXTERN_C): Define.
4152
4153 2003-09-02  Jeff Sturm  <jsturm@one-point.com>
4154
4155         * cgraphunit.c (record_call_1): Use walk_tree_without_duplicates.
4156         (cgraph_optimize_function): Set current_function_decl to the
4157         fndecl we're integrating from.
4158
4159 2003-09-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4160
4161         * builtins.def: Break out _Complex math functions into their
4162         own category.
4163
4164 2003-09-02  Andreas Jaeger  <aj@suse.de>
4165
4166         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_STMT): Cast properly.
4167
4168 2003-09-02  Josef Zlomek  <zlomekj@suse.cz>
4169
4170         * cfgbuild.c (compute_outgoing_frequencies): Use NOTE instead of
4171         finding the note again.
4172
4173 2003-09-02  Nathanael Nerode  <neroden@gcc.gnu.org>
4174
4175         * config.gcc: Remove host-specific rewrites of target_alias.
4176
4177 2003-09-01  Mark Mitchell  <mark@codesourcery.com>
4178
4179         * Makefile.in (genprogs): Fix typo.
4180
4181         * Makefile.in (gencheck.o): Remove build commands.
4182         (dummy-conditions.o): Likewise.
4183         (read-rtl.o): Likewise.
4184         (gensupport.o): Likewise.
4185         (genconfig$(build_exeext)): Remove rule.
4186         (genconfig.o): Remove build commands.
4187         (genflags$(build_exeext)): Remove rule.
4188         (genflags.o): Remove build commands.
4189         (gencodes$(build_exeext)): Remove rule.
4190         (gencodes.o): Remove build commands.
4191         (genconstants.o): Remove build commands.
4192         (genemit$(build_exeext)): Remove rule.
4193         (genemit.o): Remove build commands.
4194         (genrecog$(build_exeext)): Remove rule.
4195         (genrecog.o): Remove build commands.
4196         (genextract$(build_exeext)): Remove rule.
4197         (genextract.o): Remove build commands.
4198         (genpeep$(build_exeext)): Remove rule.
4199         (genpeep.o): Remove build commands.
4200         (genattr$(build_exeext)): Remove rule.
4201         (genattr.o): Remove build commands.
4202         (genprognames): New variable.
4203         (genprogs): Likewise.
4204         (genobjs): Likewise.
4205         (genprogs): New rule.
4206         (genobjs): Likewise.
4207         (genattrtab.o): Remove build commands.
4208         (genautomata.o): Likewise.
4209         (genoutput$(build_exeext)): Remove rule.
4210         (genoutput.o): Remove build commands.
4211         (gengenrtl.o): Likewise.
4212         (genpreds.o): Likewise.
4213         (gengtype.o): Likewise.
4214         (genconditions.o): Likewise.
4215         (gen-protos.o): Likewise.
4216         (scan.o): Likewise.
4217         (fix-header.o): Likewise.
4218         (scan-decls.o): Likewise.
4219         (check-g++): Combine with other check targets.
4220         (check-gcc): Likewise.
4221         (check-g77): Likewise.
4222         (check-objc): Likewise.
4223
4224 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4225
4226         * config.gcc: Remove host-specific stuff which is unused here
4227         since the introduction of config.host.
4228
4229         * doc/fragments.texi: Mention config.host.
4230         * doc/sourcebuild.texi: Mention config.host.  Give brief descriptions
4231         of config.build, config.host, and config.gcc.
4232
4233 2003-09-01  Zack Weinberg  <zack@codesourcery.com>
4234
4235         * c-decl.c (pushdecl): Don't put variables on
4236         C_TYPE_INCOMPLETE_VARS of a type unless that type is itself
4237         incomplete.
4238
4239 2003-09-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4240
4241         * config.host: New file.
4242         * config.gcc: Remove some host-specific stuff and some
4243         logic needed only for repeated invocation.
4244         * configure.in: Use config.host.
4245         * configure: Regenerate.
4246
4247 2003-09-01  Josef Zlomek  <zlomekj@suse.cz>
4248
4249         * c-typeck.c (build_binary_op): Kill BIT_ANDTC_EXPR.
4250         * convert.c (convert_to_integer): Kill BIT_ANDTC_EXPR.
4251         * fold-const.c (int_const_binop): Kill BIT_ANDTC_EXPR.
4252         (fold): Kill BIT_ANDTC_EXPR and label bit_and.
4253         * tree.def (BIT_ANDTC_EXPR): Kill.
4254
4255 2003-08-31  Nathanael Nerode  <neroden@gcc.gnu.org>
4256
4257         * configure.in: Remove uses of "for x in .. ${foo}" idiom.
4258         * configure: Regenerate.
4259
4260         * config.gcc:  Remove references to install_headers_dir, now unused
4261         since introduction of config.build.
4262         * config.gcc (i860-*-sysv4*): Don't set unused USG, SVR3 defines.
4263
4264         * doc/fragments.texi, doc/sourcebuild.texi: Mention new file
4265         config.build.
4266
4267         * config.build: New file.
4268         * config.gcc: Remove some build-specific stuff.
4269         * configure.in: Use config.build.
4270         * configure: Regnerate.
4271
4272 2003-08-31  Steven Bosscher  <steven@gcc.gnu.org>
4273             Roger Sayle  <roger@eyesopen.com>
4274
4275         PR middle-end/11823
4276         * stmt.c (expand_end_case_type): Only use jump tables for dense
4277         switch statements when optimizing for size.
4278
4279 2003-08-31  Olivier Hainque  <hainque@act-europe.fr>
4280
4281         * builtins.c (expand_builtin_setjmp): Use emit_jump to jump around
4282         the != 0 case, which ensures pending stack adjustments are flushed.
4283
4284 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4285
4286         * configure.frag: Delete file.
4287         * configure.in: Rename the substitution variables
4288         dep_host_xmake_file and dep_tmake_file to xmake_file and
4289         tmake_file respectively.  Do not expand $srcdir in the
4290         value of these; leave that for Make.  Introduce a new
4291         substitution varaible, all_lang_makefrags, which lists
4292         subdirectory Make-lang.in files; exclude these from
4293         all_lang_makefiles, which is now only for subdirectory
4294         outputs.  Do not invoke configure.frag.  Do not set nor
4295         AC_SUBST_FILE target_overrides, host_overrides, or
4296         language_fragments. Create build subdirectories in
4297         config.status extra commands.
4298         * configure: Regenerate.
4299         * Makefile.in: Update substitutions to match changes to
4300         configure.  Use include directives instead of @-insertions
4301         to read in host, target, and language fragments.
4302         (Makefile rule): Do not invoke configure.frag.  Do not copy
4303         config.status to config.run before executing it.  Set
4304         CONFIG_HEADERS and CONFIG_FILES so that only Makefile gets
4305         regenerated.
4306         (cstamp-h rule): Set CONFIG_FILES as well as CONFIG_HEADERS.
4307
4308 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4309
4310         * c-tree.h: Delete COMPARE_DIFFERENT_TU from enumeration.
4311         * c-typeck.c (same_translation_unit_p): New function.
4312         (comptypes): Use it instead of flags parameter to identify
4313         structure types from different translation units.
4314         * c-decl.c (duplicate_decls): Always call comptypes with
4315         COMPTYPE_STRICT flags argument.
4316         (c_reset_state): Set BLOCK_SUPERCONTEXT of the block formed
4317         to file_scope_decl.
4318
4319 2003-08-30  Zack Weinberg  <zack@codesourcery.com>
4320
4321         * c-tree.h (C_TYPE_INCOMPLETE_VARS): New macro.
4322         * c-decl.c (struct c_scope): Remove "incomplete" field.
4323         (pushdecl): Attach variables with incomplete types to
4324         the TYPE_MAIN_VARIANT of the incomplete type in question.
4325         (finish_struct): Look at C_TYPE_INCOMPLETE_VARS for variables
4326         to complete, not at current_scope->incomplete.  All such
4327         variables do need completion.
4328
4329 2003-08-30  Richard Earnshaw  <rearnsha@arm.com>
4330         Nicolas Pitre <nico@cam.org>
4331
4332         * arm/lib1funcs.asm (RETCOND): Delete.
4333         (RETLDM): New assembler macro.  Use it for returning with ldm/ldr.
4334         (ARM_LDIV0, THUMB_LDIV0): Collapse multiple definitions.
4335         (__ARM_ARCH__): Move here from ieee754-?f.S.
4336         (RET, RETc): Clean up definitions.
4337         (DIV_FUNC_END): Renamed from FUNC_END.  All uses changed.
4338         (FUNC_END): New macro that marks the end of any function.
4339         (ARM_FUNC_START): New macro that allows an assembler routine to be
4340         implemented in ARM code even if a Thumb-only build.
4341         Unconditionally include ieee754-?f.S.
4342         * arm/ieee754-df.S: Delete macros moved to lib1funcs.asm.
4343         Mark ends of functions.
4344         Split into separate conditionally-compiled units.
4345         Use RETLDM to return from routines.
4346         * arm/ieee754-sf.S: Similarly.
4347         * t-arm-elf (LIB1ASMFUNCS): Remove _ieee754_dp and _ieee754_sp.
4348         Add _negdf2 _addsubdf3 _muldivdf3 _cmpdf2 _unorddf2 _fixdfsi
4349         _truncdfsf2 _negsf2 _addsubsf3 _muldivsf3 _cmpsf2 _unordsf2
4350         _fixsfsi and _fixunssfsi.
4351
4352         * arm/ieee754-df.S (__muldf3): Fix bug when result of a
4353         multiplication underflows to zero.
4354         (__adddf3): Fix bug when using VFP ordering on little-endian
4355         processors.
4356         (__fixdfsi): Use rrx to extract the carry into a register instead of
4357         MRS instruction.  Optimize later use of result.
4358         * arm/ieee754-sf.S (__fixsfsi): Likewise.
4359         (__fixunssfsi): Use a better sequence for handling negative-or-zero.
4360
4361 2003-08-29  Richard Henderson  <rth@redhat.com>
4362
4363         * tree-optimize.c: New file.
4364         * Makefile.in (OBJS-archive): Add tree-optimize.o.
4365         (tree-optimize.o): New.
4366         * c-decl.c (store_parm_decls): Use allocate_struct_function.
4367         (finish_function): Don't free_after_parsing or free_after_compilation.
4368         (set_save_expr_context): Move to tree-optimize.c.
4369         (c_expand_body_1): Use tree_rest_of_compilation.
4370         * c-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4371         * objc/objc-lang.c (LANG_HOOKS_RTL_EXPAND_STMT): New.
4372         * c-objc-common.c (expand_deferred_fns): Don't emit unused inlines;
4373         iterate until closure.
4374         * langhooks-def.h (LANG_HOOKS_RTL_EXPAND_START,
4375         LANG_HOOKS_RTL_EXPAND_STMT, LANG_HOOKS_RTL_EXPAND_END): New.
4376         (LANG_HOOKS_RTL_EXPAND_INITIALIZER): New.
4377         * langhooks.h (struct lang_hooks_for_rtl_expansion): New.
4378         * toplev.h (tree_rest_of_compilation): Declare it.
4379
4380 2003-08-29  Richard Henderson  <rth@redhat.com>
4381
4382         * function.h (struct function): Add rtl_inline_init, saved_for_inline.
4383         * integrate.c (save_for_inline): Set saved_for_inline.
4384         * c-semantics.c (genrtl_scope_stmt): Check it.
4385         * toplev.c (wrapup_global_declarations): Check it.
4386         (rest_of_handle_inlining): Set and check rtl_inline_init.
4387         (rest_of_compilation): Remove out of date comment.
4388
4389 2003-08-29  Richard Henderson  <rth@redhat.com>
4390
4391         * function.c (allocate_struct_function): New, split out of ...
4392         (prepare_function_start, init_function_start): ... here.
4393         * expr.c (init_expr): Use ggc_alloc_cleared.
4394         * stmt.c (init_stmt_for_function): Likewise.
4395         * tree.h (allocate_struct_function): Declare.
4396
4397 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4398
4399         * config.gcc: Don't use negated character class in shell case
4400         clause.
4401
4402 2003-08-29  Richard Henderson  <rth@redhat.com>
4403
4404         * function.h (struct function): Move function_frequency and
4405         max_jumptable_ents before start of bit field members.
4406
4407 2003-08-29  Richard Henderson  <rth@redhat.com>
4408
4409         * builtins.c (expand_builtin_constant_p): Check cse_not_expected here,
4410         (fold_builtin_constant_p) ... not here.
4411
4412 2003-08-29  Richard Henderson  <rth@redhat.com>
4413
4414         * c-tree.h (C_DECL_FILE_SCOPE): Move ...
4415         * tree.h (DECL_FILE_SCOPE_P): ... here, and rename.
4416         * c-decl.c, c-objc-common.c, c-typeck.c: Update to match.
4417
4418 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4419
4420         * builtins.def: Fix typos.
4421         (ATTR_MATHFN_FPROUNDING_STORE): New macro.
4422         (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL, BUILT_IN_MODF,
4423         BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO, BUILT_IN_REMQUOF,
4424         BUILT_IN_REMQUOL, BUILT_IN_SINCOS, BUILT_IN_SINCOSF,
4425         BUILT_IN_SINCOSL): Use ATTR_MATHFN_FPROUNDING_STORE.
4426
4427         * builtins.def (BUILT_IN_ERFC, BUILT_IN_ERFCF, BUILT_IN_ERFCL):
4428         Use ATTR_MATHFN_FPROUNDING_ERRNO.
4429
4430 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4431
4432         * config.gcc (i386-*-vsta): Fix obvious bogosity.
4433
4434         * fixinc/inclhack.def:  Remove special cases for unsupported
4435         PTX 1 and PTX 2 (including i[34567]86-sequent-sysv3).
4436         * fixinc/fixincl.x: Regenerate.
4437
4438 2003-08-29  Mark Mitchell  <mark@codesourcery.com>
4439
4440         * Makefile.in (cpp.info): Just state dependencies.
4441         (gcc.info): Likewise.
4442         (gccint.info): Likewise.
4443         (gccinstall.info): Likewise.
4444         (cppinternals.info): Likewise.
4445         (cpp.dvi): Likewise.
4446         (gcc.dvi): Likewise.
4447         (gccint.dvi): Likewise.
4448         (gccinstall.dvi): Likewise.
4449         (cppinternals.dvi): Likewise.
4450         (gcov.1): Likewise.
4451         (cpp.1): Likewise.
4452         (gcc.1): Likewise.
4453         (gfdl.7): Likewise.
4454         (gpl.7): Likewise.
4455         (fsf-funding.7): Likewise.
4456         ($(objdir)/%.info): New pattern rule.
4457         (%.dvi): Likewise.
4458
4459 2003-08-29  Kelley Cook  <kelleycook@wideopenwest.com>
4460
4461         * Makefile.in (restage1): Pass BOOT_CFLAGS to recursive make.
4462         (restage2): Likewise.
4463         (restage3): Likewise.
4464         (restage4): Likewise.
4465         (restageprofile): Likewise.
4466         (restagefeedback): Likewise.
4467         (bubblestrap): Likewise.
4468
4469 2003-08-29  Nathanael Nerode  <neroden@gcc.gnu.org>
4470
4471         * config.gcc: Narrow unsupported target match to avoid clobbering
4472         i?86-sequent-sysv4*.
4473
4474 2003-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4475
4476         * builtins.c (mathfn_built_in): Handle new math builtins.
4477
4478 2003-08-28  Per Bothner  <per@bothner.com>
4479
4480         Fix (hopefully temporary) for breakage caused by my 08-21 patch.
4481         * cpplex.c (_cpp_get_fresh_line):  Check for null buffer.
4482         (_cpp_lex_buffer):  Likewise.
4483         * cpptrad.c (_cpp_read_logical_line_trad):  Likewise.
4484
4485 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4486
4487         * config/s390/s390.md ("*mulsi3_sign"): New insn.
4488         ("mulsidi3" expander, "mulsi_6432" insn): Remove, replace by ...
4489         ("mulsidi3"): ... this new insn.
4490         ("umulsidi3"): New insn.
4491         ("divmoddi3", "divmodtidi3", "divmodtisi3"): Simplify by using
4492         mixed-mode matching constraints.
4493         ("udivmodsi4", "udivmoddisi3"): New insns.
4494         ("udivsi3", "umodsi3"): Use only in ESA/390 mode.
4495
4496 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4497
4498         * builtin-types.def (BT_INT_PTR, BT_FLOAT_PTR, BT_DOUBLE_PTR,
4499         BT_LONGDOUBLE_PTR, BT_FN_FLOAT_FLOAT_FLOATPTR,
4500         BT_FN_DOUBLE_DOUBLE_DOUBLEPTR,
4501         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLEPTR,
4502         BT_FN_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_INTPTR,
4503         BT_FN_LONGDOUBLE_LONGDOUBLE_INTPTR,
4504         BT_FN_FLOAT_FLOAT_FLOAT_INTPTR, BT_FN_DOUBLE_DOUBLE_DOUBLE_INTPTR,
4505         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_INTPTR,
4506         BT_FN_VOID_FLOAT_FLOATPTR_FLOATPTR,
4507         BT_FN_VOID_DOUBLE_DOUBLEPTR_DOUBLEPTR,
4508         BT_FN_VOID_LONGDOUBLE_LONGDOUBLEPTR_LONGDOUBLEPTR): New.
4509         * builtins.def (BUILT_IN_FREXP, BUILT_IN_FREXPF, BUILT_IN_FREXPL,
4510         BUILT_IN_MODF, BUILT_IN_MODFF, BUILT_IN_MODFL, BUILT_IN_REMQUO,
4511         BUILT_IN_REMQUOF, BUILT_IN_REMQUOL, BUILT_IN_SINCOS,
4512         BUILT_IN_SINCOSF, BUILT_IN_SINCOSL): New.
4513         * tree.c: Assign new type_nodes.
4514         * tree.h (tree_index): Add TI_FLOAT_PTR_TYPE, TI_DOUBLE_PTR_TYPE,
4515         TI_LONG_DOUBLE_PTR_TYPE, TI_INTEGER_PTR_TYPE.
4516         (float_ptr_type_node, double_ptr_type_node,
4517         long_double_ptr_type_node, integer_ptr_type_node): New type_nodes.
4518
4519         * doc/extend.texi: Document new builtins.
4520
4521 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4522
4523         * builtin-types.def (BT_FN_FLOAT_INT_FLOAT,
4524         BT_FN_DOUBLE_INT_DOUBLE, BT_FN_LONGDOUBLE_INT_LONGDOUBLE): New.
4525
4526         * builtins.def (BUILT_IN_ERF, BUILT_IN_ERFC, BUILT_IN_ERFCF,
4527         BUILT_IN_ERFCL, BUILT_IN_ERFF, BUILT_IN_ERFL, BUILT_IN_GAMMA,
4528         BUILT_IN_GAMMAF, BUILT_IN_GAMMAL, BUILT_IN_J0, BUILT_IN_J0F,
4529         BUILT_IN_J0L, BUILT_IN_J1, BUILT_IN_J1F, BUILT_IN_J1L,
4530         BUILT_IN_JN, BUILT_IN_JNF, BUILT_IN_JNL, BUILT_IN_LGAMMA,
4531         BUILT_IN_LGAMMAF, BUILT_IN_LGAMMAL, BUILT_IN_SIGNIFICAND,
4532         BUILT_IN_SIGNIFICANDF, BUILT_IN_SIGNIFICANDL, BUILT_IN_TGAMMA,
4533         BUILT_IN_TGAMMAF, BUILT_IN_TGAMMAL, BUILT_IN_Y0, BUILT_IN_Y0F,
4534         BUILT_IN_Y0L, BUILT_IN_Y1, BUILT_IN_Y1F, BUILT_IN_Y1L,
4535         BUILT_IN_YN, BUILT_IN_YNF, BUILT_IN_YNL): New.
4536
4537         * doc/extend.texi: Document new builtins.
4538
4539 2003-08-28  Nathanael Nerode  <neroden@gcc.gnu.org>
4540
4541         * fixinc/mkfixinc.sh: Remove special case code for unsupported
4542         variants of i?86, powerpcle, and thumb.
4543         * fixinc/mkfixinc.sh: Remove special case code for unsupported
4544         arm and hppa variants.
4545
4546 2003-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4547
4548         * builtin-types.def (BT_FN_INT_FLOAT, BT_FN_INT_DOUBLE,
4549         BT_FN_INT_LONGDOUBLE, BT_FN_LONG_FLOAT, BT_FN_LONG_DOUBLE,
4550         BT_FN_LONG_LONGDOUBLE, BT_FN_LONGLONG_FLOAT,
4551         BT_FN_LONGLONG_DOUBLE, BT_FN_LONGLONG_LONGDOUBLE,
4552         BT_FN_FLOAT_FLOAT_LONGDOUBLE, BT_FN_DOUBLE_DOUBLE_LONGDOUBLE,
4553         BT_FN_FLOAT_FLOAT_INT, BT_FN_DOUBLE_DOUBLE_INT,
4554         BT_FN_LONGDOUBLE_LONGDOUBLE_INT, BT_FN_FLOAT_FLOAT_LONG,
4555         BT_FN_DOUBLE_DOUBLE_LONG, BT_FN_LONGDOUBLE_LONGDOUBLE_LONG,
4556         BT_FN_FLOAT_FLOAT_FLOAT_FLOAT, BT_FN_DOUBLE_DOUBLE_DOUBLE_DOUBLE,
4557         BT_FN_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE_LONGDOUBLE): New.
4558
4559         * builtins.def (BUILT_IN_ACOS, BUILT_IN_ACOSF, BUILT_IN_ACOSH,
4560         BUILT_IN_ACOSHF, BUILT_IN_ACOSHL, BUILT_IN_ACOSL, BUILT_IN_ASIN,
4561         BUILT_IN_ASINF, BUILT_IN_ASINH, BUILT_IN_ASINHF, BUILT_IN_ASINHL,
4562         BUILT_IN_ASINL, BUILT_IN_ATANH, BUILT_IN_ATANHF, BUILT_IN_ATANHL,
4563         BUILT_IN_CBRT, BUILT_IN_CBRTF, BUILT_IN_CBRTL, BUILT_IN_COPYSIGN,
4564         BUILT_IN_COPYSIGNF, BUILT_IN_COPYSIGNL, BUILT_IN_COSH,
4565         BUILT_IN_COSHF, BUILT_IN_COSHL, BUILT_IN_DREM, BUILT_IN_DREMF,
4566         BUILT_IN_DREML, BUILT_IN_EXP10, BUILT_IN_EXP10F, BUILT_IN_EXP10L,
4567         BUILT_IN_EXP2, BUILT_IN_EXP2F, BUILT_IN_EXP2L, BUILT_IN_EXPM1,
4568         BUILT_IN_EXPM1F, BUILT_IN_EXPM1L, BUILT_IN_FDIM, BUILT_IN_FDIMF,
4569         BUILT_IN_FDIML, BUILT_IN_FMA, BUILT_IN_FMAF, BUILT_IN_FMAL,
4570         BUILT_IN_FMAX, BUILT_IN_FMAXF, BUILT_IN_FMAXL, BUILT_IN_FMIN,
4571         BUILT_IN_FMINF, BUILT_IN_FMINL, BUILT_IN_HYPOT, BUILT_IN_HYPOTF,
4572         BUILT_IN_HYPOTL, BUILT_IN_ILOGB, BUILT_IN_ILOGBF, BUILT_IN_ILOGBL,
4573         BUILT_IN_LDEXP, BUILT_IN_LDEXPF, BUILT_IN_LDEXPL, BUILT_IN_LLRINT,
4574         BUILT_IN_LLRINTF, BUILT_IN_LLRINTL, BUILT_IN_LLROUND,
4575         BUILT_IN_LLROUNDF, BUILT_IN_LLROUNDL, BUILT_IN_LOG10,
4576         BUILT_IN_LOG10F, BUILT_IN_LOG10L, BUILT_IN_LOG1P, BUILT_IN_LOG1PF,
4577         BUILT_IN_LOG1PL, BUILT_IN_LOG2, BUILT_IN_LOG2F, BUILT_IN_LOG2L,
4578         BUILT_IN_LOGB, BUILT_IN_LOGBF, BUILT_IN_LOGBL, BUILT_IN_LRINT,
4579         BUILT_IN_LRINTF, BUILT_IN_LRINTL, BUILT_IN_LROUND,
4580         BUILT_IN_LROUNDF, BUILT_IN_LROUNDL, BUILT_IN_NEXTAFTER,
4581         BUILT_IN_NEXTAFTERF, BUILT_IN_NEXTAFTERL, BUILT_IN_NEXTTOWARD,
4582         BUILT_IN_NEXTTOWARDF, BUILT_IN_NEXTTOWARDL, BUILT_IN_POW10,
4583         BUILT_IN_POW10F, BUILT_IN_POW10L, BUILT_IN_REMAINDER,
4584         BUILT_IN_REMAINDERF, BUILT_IN_REMAINDERL, BUILT_IN_RINT,
4585         BUILT_IN_RINTF, BUILT_IN_RINTL, BUILT_IN_SCALB, BUILT_IN_SCALBF,
4586         BUILT_IN_SCALBL, BUILT_IN_SCALBLN, BUILT_IN_SCALBLNF,
4587         BUILT_IN_SCALBLNL, BUILT_IN_SCALBN, BUILT_IN_SCALBNF,
4588         BUILT_IN_SCALBNL, BUILT_IN_SINH, BUILT_IN_SINHF, BUILT_IN_SINHL,
4589         BUILT_IN_TANH, BUILT_IN_TANHF, BUILT_IN_TANHL): New.
4590
4591         * doc/extend.texi: Document new builtins.
4592
4593 2003-08-28  Ulrich Weigand  <uweigand@de.ibm.com>
4594
4595         * config/s390/s390.c (legitmate_constant_p): Use LARL on
4596         zSeries machines even in 31-bit addressing mode.
4597         (legitimate_reload_constant_p): Likewise.
4598         (legitimize_pic_address): Likewise.
4599         (legitimize_tls_address): Likewise.
4600         (s390_split_branches): Likewise.
4601         (s390_dump_pool): Likewise.
4602         (s390_mainpool_finish): Likewise.
4603         (s390_chunkify_start): Likewise.
4604         (s390_select_rtx_section): Likewise.
4605         * config/s390/s390.md ("doloop_si"): Likewise.
4606         ("pool_start_31", "pool_end_31"): Likewise.
4607         ("pool_start_64", "pool_end_64"): Likewise.
4608         ("main_base_31_small", "main_base_31_large"): Likewise.
4609         ("main_base_64"): Likewise.
4610         ("reload_base_31", "reload_base_64"): Likewise.
4611         ("*movsi_larl"): New insn.
4612         ("cjump", "icjump"): Use long branches on zSeries machines.
4613         ("jump"): Likewise.
4614         ("call"): Use BRASL on zSeries machines.
4615         ("call_value", "call_value_tls"): Likewise.
4616         ("brasl", "bras", "basr_64", "basr_31", "bas_64", "bas_31"): Remove
4617         and replace by ...
4618         ("*bras", "*brasl", "*basr") ... these new insns.
4619         ("brasl_r", "bras_r", "basr_64_r", "basr_31_r", "bas_64_r",
4620         "bas_31_r"): Remove and replace by ...
4621         ("*bras_r", "*brasl_r", "*basr_r") ... these new insns.
4622         ("brasl_tls", "bras_tls", "basr_64_tls", "basr_31_tls",
4623         "bas_64_tls", "bas_31_tls"): Remove and replace by ...
4624         ("*bras_tls", "*brasl_tls", "*basr_tls") ... these new insns.
4625         ("*return_si", "*return_di"): Remove and replace by ...
4626         ("*return"): ... this new insn.
4627         ("rotlsi3"): Allow on zSeries machines.
4628
4629         * config/s390/s390.c (legitimize_reload_constant_p): Use
4630         LL/LH type instructions in z/Architecture mode.
4631         * config/s390/s390.md ("*movsi_lli"): Likewise.
4632         ("*andsi3_ni", "*andhi3_ni", "*andqi3_ni"): Likewise.
4633         ("*iorsi3_ni", "*iorhi3_ni", "*iorqi3_ni"): Likewise.
4634         ("*extendqisi2"): Use LB in z/Architecture mode.
4635         ("*zero_extendqisi2_64", "*zero_extendqisi2_31"): Use LLGC in
4636         z/Architecture mode.
4637         ("zero_extendqihi2", "*zero_extendqihi2_64", "*zero_extendqihi2_31"):
4638         Likewise.
4639
4640         * config/s390/s390.md ("*tmdi_ext"): Allow in both 64-bit
4641         and 31-bit mode.
4642         ("ptr_extend"): Allow only in 64-bit mode.
4643
4644 2003-08-27  Daniel Jacobowitz  <drow@mvista.com>
4645
4646         * gcc.c (STANDARD_EXEC_PREFIX, STANDARD_STARTFILE_PREFIX)
4647         (TOOLDIR_BASE_PREFIX, STANDARD_BINDIR_PREFIX): Remove unnecessary
4648         definitions.
4649         (main): Only use standard_startfile_prefix if native.
4650         * doc/tm.texi (STANDARD_STARTFILE_PREFIX): Update.
4651
4652 2003-08-27  Per Bothner  <pbothner@apple.com>
4653
4654         * cpperror.c (print_location):  Don't check for !pfile->buffer.  That
4655         test fails following my 08-21 change, and it seems unnecessary anyway.
4656         (cpp_error):  Likewise.
4657
4658 2003-08-27  Jason Merrill  <jason@redhat.com>
4659
4660         * real.c (do_multiply): Initialize with memset.
4661
4662 2003-08-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4663
4664         * gcov.c (typedef struct arc_info): New field cs_count.
4665         (accumulate_line_counts): Find cycles correctly.
4666
4667 2003-08-27  Ulrich Weigand  <uweigand@de.ibm.com>
4668
4669         * config/s390/s390.c (struct machine_function): Remove member
4670         literal_pool_label.
4671         (s390_optimize_prolog): Replace TEMP_REG argument with
4672         TEMP_USED and BASE_USED.  Do not check get_pool_size ().
4673         (general_s_operand): Accept all immediates before reload if
4674         ALLOW_IMMEDIATE.  If not ALLOW_IMMEDIATE, reject literal pool
4675         references.
4676         (s390_output_symbolic_const): Remove UNSPEC_LTREL_OFFSET handling.
4677         (find_constant_pool_ref): Ignore UNSPECV_POOL_ENTRY insns.
4678         (s390_alloc_pool): New function.
4679         (s390_new_pool): Call it.
4680         (s390_dump_pool): Add REMOTE_LABEL argument.
4681         (s390_chunkify_start): Add BASE_REG argument.  Do not check
4682         get_pool_size ().
4683         (s390_chunkify_finish): Add BASE_REG argument.  Adapt
4684         s390_dump_pool call.
4685         (s390_pool_count, s390_nr_constants): Remove.
4686         (s390_output_constant_pool): Remove.
4687         (s390_mainpool_start): New function.
4688         (s390_mainpool_finish): New function.
4689         (s390_mainpool_cancel): New function.
4690         (s390_reorg): Implement main literal pool handling.
4691         (s390_emit_prologue): Emit main_pool placeholder instead of
4692         literal_pool_31 / literal_pool_64 insns.
4693         * config/s390/s390.h (s390_pool_count, s390_nr_constants): Remove.
4694         (ASM_OUTPUT_POOL_PROLOGUE, ASM_OUTPUT_SPECIAL_POOL_ENTRY): Remove.
4695         * config/s390/s390.md (UNSPEC_MAIN_BASE): New symbolic constant.
4696         ("main_base_31_small", "main_base_31_large"): New insns.
4697         ("main_base_64",  "main_pool"): New insns.
4698         ("literal_pool_31", "literal_pool_64"): Remove.
4699
4700 2003-08-27  Nathanael Nerode  <neroden@gcc.gnu.org>
4701
4702         * fixinc/inclhack.def (ptx_netswap): New disabled fix, ported from
4703         fixinc.ptx.
4704         * fixinc/inclhack.def (undefine_null):  Don't generate \r characters.
4705         Prettify a little.
4706         * fixinc/fixincl.x: Regenerate.
4707
4708 2003-08-27  Richard Earnshaw  <rearnsha@arm.com>
4709
4710         * lib1funcs.asm (L_ieee754_sp): New.  Include ieee754-sf.S.
4711         (L_ieee754_dp): New.  Include ieee754-df.S.
4712         * arm/ieee754-sf.S: Rework to allow interworking, calling from Thumb,
4713         and compilation in apcs-26 mode.
4714         * arm/ieee754-df.S: Likewise.
4715         * t-arm-elf (DPBIT, FPBIT, fp-bit.c dp-bit.c): Delete rules
4716         (LIB1ASMFUNCS): Add _ieee754_sp and _ieee754_dp targets.
4717
4718 2003-08-27  Nicolas Pitre  <nico@cam.org>
4719
4720         * arm/ieee754-sf.S: New.
4721         * arm/ieee754-df.S: New.
4722
4723 2003-08-27  Jakub Jelinek  <jakub@redhat.com>
4724
4725         * builtins.c (expand_builtin_expect_jump): Save pending_stack_adjust
4726         and restore it if returning NULL.
4727
4728 2003-08-27  Richard Sandiford  <rsandifo@redhat.com>
4729
4730         * calls.c (initialize_argument_information): If an argument has no
4731         stack space associated with it, and BLOCK_REG_PADDING is defined,
4732         use it to decide at which end the argument should be padded.
4733         * function.c (assign_parms): Allocate BLKmode stack slots.
4734         * config/mips/mips-protos.h (mips_pad_arg_upward): Declare.
4735         (mips_pad_reg_upward): Declare.
4736         * config/mips/mips.h (PAD_VARARGS_DOWN): Use FUNCTION_ARG_PADDING.
4737         (CUMULATIVE_ARGS): Remove num_adjusts and adjusts.
4738         (FUNCTION_ARG_PADDING): Use mips_pad_arg_upward.
4739         (BLOCK_REG_PADDING): Use mips_pad_reg_upward.
4740         * config/mips/mips.c (struct mips_arg_info): Remove struct_p.
4741         (mips_expand_call): Remove code for generating structure shifts.
4742         (mips_arg_info): Don't set struct_p.  Don't set fpr_p for non-float
4743         types unless using the EABI.
4744         (function_arg_advance): Don't generate shift instructions.
4745         (function_arg): Don't return them.  Don't short-circuit the
4746         check for double structure chunks for DFmode arguments.
4747         (mips_pad_arg_upward, mips_pad_reg_upward): New functions.
4748         (mips_expand_prologue): Remove code to emit structure shifts.
4749         * config/mips/irix6-libc-compat.c: Remove workarounds for buggy
4750         structure passing (inet_ntoa, inet_lnaof, inet_netof).  Update
4751         comments to say that only structure returns are a problem.
4752
4753 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
4754
4755         * fixinc/tests/base/string.h, fixinc/tests/base/sys/regset.h:
4756         Fix to match produced versions.
4757         * fixinc/inclhack.def (longlong_t): New disabled test, ported
4758         from fixinc.svr4.
4759         * fixinc/inclhack.def (ptx_pwd_h): New disabled fix, ported
4760         from fixinc.ptx.
4761         * fixinc/inclhack.def (ptx_sys_mc_param_h): New disabled fix,
4762         ported from fixinc.ptx.
4763
4764 2003-08-26  Per Bothner  <pbothner@apple.com>
4765
4766         * cpplib.h (struct cpp_token):  Change type of field line to fileline.
4767         (cpp_error_with_line):  Use fileline for appropriate parameter.
4768         * cpphash.h (struct cpp_macro):  Change type of field line to fileline.
4769         (struct cpp_reader):  Likewise for fields line and directive_line.
4770         (_cpp_begin_message):  Use fileline for appropriate parameter.
4771         * cpperror.c (print_location, _cpp_begin_message, cpp_error_with_line,
4772         cpp_error):  Use fileline for appropriate parameters and variables.
4773         (print_location):  New local lin, since it is not a fileline.
4774
4775 2003-08-26  Roger Sayle  <roger@eyesopen.com>
4776
4777         PR middle-end/12002
4778         * tree.h (SCALAR_FLOAT_TYPE_P, COMPLEX_FLOAT_TYPE_P): New macros.
4779         (FLOAT_TYPE_P): Define in terms of these two new macros.
4780         * fold-const.c (fold <PLUS_EXPR>): Don't convert x+x into x*2.0
4781         for complex floating point types.
4782
4783 2003-08-26  Ulrich Weigand  <uweigand@de.ibm.com>
4784
4785         * config/s390/s390.c (emit_prologue): Don't check literal pool size.
4786         * config/s390/s390.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Call
4787         s390_output_pool_entry.
4788
4789 2003-08-26  Nathanael Nerode  <neroden@gcc.gnu.org>
4790
4791         * fixinc/inclhack.def (svr4_preproc_lint_on,
4792         svr4_preproc_lint_off, svr4_preproc_machine): New disabled
4793         fixes, ported from fixinc.svr4.
4794
4795 2003-08-26  Mark Mitchell  <mark@codesourcery.com>
4796
4797         * doc/install.texi (Prerequisites): Mention GNU make requirement.
4798
4799         * Makefile.in (AR_FOR_TARGET): Export it.
4800         (AR_CREATE_FOR_TARGET): Likewise.
4801         (AR_FLAGS_FOR_TARGET): Likewise.
4802         (AR_EXTRACT_FOR_TARGET): Likewise.
4803         (AWK): Likewise.
4804         (BUILD_PREFIX): Likewise.
4805         (BUILD_PREFIX_1): Likewise.
4806         (DESTDIR): Likewise.
4807         (GCC_FOR_TARGET): Likewise.
4808         (INCLUDES): Likewise.
4809         (INSTALL_DATA): Likewise.
4810         (LIB1ASMSRC): Likewise.
4811         (LIBGCC2_CFLAGS): Likewise.
4812         (MACHMODE_H): Likewise.
4813         (NM_FOR_TARGET): Likewise.
4814         (RANLIB_FOR_TARGET): Likewise.
4815         (libsubdir): Likewise.
4816         (slibdir): Likewise.
4817         (ORDINARY_FLAGS_TO_PASS): Remove stuff that we're
4818         exporting.
4819         (libgcc.a): Don't pass them here.
4820         (stmp-multilib): Or here.
4821         (install-libgcc): Or here.
4822         (install-multilib): Or here.
4823         (POSTSTAGE1_FLAGS_TO_PASS): Or here.
4824         (stage1_build): Or here.
4825
4826 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
4827
4828         * config/s390/s390.md ("*llgt_sisi", "*llgt_sisi_split", "*llgt_didi",
4829         "*llgt_didi_split", "*llgt_sidi", "*llgt_sidi_split"): New insns.
4830
4831 2003-08-26  Andreas Krebbel <krebbel1@de.ibm.com>
4832
4833         * config/s390/s390.md ("*fmadddf", "*fmsubdf",
4834         "*fmaddsf", "*fmsubsf"): New insns.
4835
4836 2003-08-26  Roger Sayle  <roger@eyesopen.com>
4837
4838         * fold-const.c (fold <MULT_EXPR>): Optimize (C1/X)*C2 into
4839         (C1*C2)/X when unsafe math optimizations are allowed.
4840         (fold <RDIV_EXPR>): Optimize C1/(X*C2) into (C1/C2)/X with unsafe
4841         math optimizations.  Minor code clean-ups.  Recursively call
4842         fold when constructing sub-expressions.
4843
4844 2003-08-26  Roger Sayle  <roger@eyesopen.com>
4845
4846         * builtins.c (fold_builtin_bitop): New function to perform constant
4847         folding of ffs, clz, ctz, popcount and parity builtin functions
4848         and their long and long long variants (such as ffsl and ffsll).
4849         (fold_builtin): fold_builtin_bitop when appropriate.
4850         * simplify-rtx.c (simplify_unary_operation): Honor both
4851         CLZ_DEFINED_VALUE_AT_ZERO and CTZ_DEFINED_VALUE_AT_ZERO when
4852         evaluating clz and ctz at compile-time, for operands wider
4853         than HOST_WIDE_INT.
4854
4855 2003-08-26  Nathan Sidwell  <nathan@codesourcery.com>
4856
4857         * builtins.c (build_function_call_expr): Don't set
4858         TREE_SIDE_EFFECTS here.
4859         * expr.c (emit_block_move_via_libcall): Likewise.
4860         (clear_storage_via_libcall): Likewise.
4861         * tree.c (build): Set TREE_SIDE_EFFECTS for non-const, non-pure
4862         CALL_EXPRs.
4863
4864         * gcse.c (is_too_expensive): New function.
4865         (gcse_main, delete_null_pointer_checks, bypass_jumps): Use it.
4866
4867 2003-08-25  Zack Weinberg  <zack@codesourcery.com>
4868
4869         * config.gcc (hppa*-*-hpux11*, ia64*-*-hpux*): Remove
4870         commented-out logic to use DCE threads (if present), add
4871         support for POSIX threads.
4872         * config/ia64/hpux.h: Define CPP_SPEC to set appropriate
4873         #defines for -pthread.  Add -lpthread to LIB_SPEC when
4874         -pthread.  In both cases take -mt as a synonym for -pthread
4875         for acc compatibility.
4876         Define GTHREAD_USE_WEAK to 0.
4877         * config/pa/pa-hpux11.h: Likewise for CPP_SPEC and LIB_SPEC.
4878         Remove old logic for DCE threads from LIB_SPEC.
4879         * config/pa/pa64-hpux.h: Define GTHREAD_USE_WEAK to 0.
4880
4881 2003-08-25  Roger Sayle  <roger@eyesopen.com>
4882
4883         * builtins.c (expand_builtin_mathfn):  Rearrange so that we only
4884         return 0 for invalid argument types.  Instead drop through to a
4885         call of expand_call at the bottom of function.  If op is SQRT,
4886         try attaching a SQRT rtx as the REQ_EQUAL note of the libcall.
4887
4888 2003-08-25  Richard Henderson  <rth@redhat.com>
4889
4890         * config/ia64/ia64.c (ia64_expand_tls_address): Properly truncate
4891         result when op0 is SImode.
4892
4893 2003-08-25  Nathanael Nerode  <neroden@twcny.rr.com>
4894
4895         * fixinc/inclhack.def (svr4_sighandler_type): New fix, ported
4896         from fixinc.svr4.
4897         * fixinc/fixincl.x: Regenerate.
4898         * fixinc/tests/base/sys/signal.h: Regenerate.
4899
4900 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
4901
4902         * combine.c (simplify_comparison): Re-enable widening of comparisons
4903         with non-paradoxical subregs of non-REG expressions.
4904
4905 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
4906
4907         * combine.c (distribute_notes): Handle REG_ALWAYS_RETURN.
4908
4909 2003-08-25  Ulrich Weigand  <uweigand@de.ibm.com>
4910
4911         * combine.c (combine_simplify_rtx): Fix RTL sharing bug.
4912
4913 2003-08-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
4914
4915         * pretty-print.h (pp_maybe_newline_and_indent): New macro.
4916         * c-pretty-print.h (c_pretty_printer): Now typedef to the
4917         structure.  Be consistent with pretty-print.h abd cxx-pretty-print.h
4918         (struct c_pretty_print_info): Document.  Add new fields.
4919         (pp_type_specifier_seq): Rename from pp_c_type_specifier.
4920         (pp_direct_abstract_declarator): New macro.
4921         (pp_ptr_operator): Likewise.
4922         (pp_simple_type_specifier): Likewise.
4923         (pp_expression): Likewise.
4924         (pp_parameter_list): Rename from pp_parameter_declaration.
4925         * c-pretty-print.c (pp_c_whitespace): Now a function.
4926         (pp_c_left_paren): Likewise.
4927         (pp_c_right_paren): Likewise.
4928         (pp_c_dot): Likewise.
4929         (pp_c_ampersand): Likewise.
4930         (pp_c_arrow): Likewise.
4931         (pp_c_semicolon): Likewise.
4932         (pp_c_type_cast): New function.
4933         (pp_c_space_for_pointer_operator): Likewise.
4934         (pp_c_call_argument_list): Likewise.
4935         (pp_c_cv_qualifier): Adjust prototype.
4936         (pp_c_type_qualifier_list): Likewise.
4937         (pp_c_pointer): Likewise.  Handle REFERENCE_TYPE here.
4938         (pp_c_type_specifier): Rename from pp_c_simple_type_specifier.
4939         Adjust to follow standard grammar.
4940         (pp_c_specifier_qualifier_list): Adjusr prototype.  Handle
4941         REFERENCE_TYPE.  Tidy.
4942         (pp_c_parameter_type_list): Adjust prototype.  Tidy.
4943         (pp_c_parameter_declaration): Remove.
4944         (pp_c_abstract_declarator): Adjust prototype.
4945         (pp_c_direct_abstract_declarator): Likewise.
4946         (pp_c_type_id): Likewise.
4947         (pp_c_storage_class_specifier): Likewise.
4948         (pp_c_function_specifier): Likewise.
4949         (pp_c_declaration_specifiers): Likewise.
4950         (pp_c_direct_declarator): Likewise.
4951         (pp_c_declarator): Likewise.
4952         (pp_c_declarator): Likewise.
4953         (pp_c_declaration): Likewise.
4954         (pp_c_attributes): Likewise.  Tidy.
4955         (pp_c_function_definition): Adjust prototype.
4956         (pp_c_char): Likewise.
4957         (pp_c_string_literal): Likewise.
4958         (pp_c_integer_constant): Likewise.
4959         (pp_c_character_constant): Likewise.
4960         (pp_c_bool_constant): Likewise.
4961         (pp_c_enumeration_constant): Likewise.
4962         (pp_c_floating_constant): Likewise.
4963         (pp_c_constant): Likewise.
4964         (pp_c_identifier): Likewise.
4965         (pp_c_primary_expression): Likewise.  Remove TARGET_EXPR case.  Tidy.
4966         (pp_c_initializer): Adjust prototype.
4967         (pp_c_init_declarator): Likewise.
4968         (pp_c_initializer_list): Likewise.
4969         (pp_c_id_expression): Likewise.
4970         (pp_c_postfix_expression): Likewise.
4971         (pp_c_expression_list): Likewise.
4972         (pp_c_unary_expression): Likewise.
4973         (pp_c_cast_expression): Likewise.
4974         (pp_c_multiplicative_expression): Likewise.
4975         (pp_c_additive_expression): Likewise.
4976         (pp_c_shift_expression): Likewise.
4977         (pp_c_relational_expression): Likewise.
4978         (pp_c_equality_expression): Likewise.
4979         (pp_c_and_expression): Likewise.
4980         (pp_c_exclusive_or_expression): Likewise.
4981         (pp_c_inclusive_or_expression): Likewise.
4982         (pp_c_logical_and_expression): Likewise.
4983         (pp_c_logical_or_expression): Likewise.
4984         (pp_c_conditional_expression): Likewise.
4985         (pp_c_assignment_expression): Likewise.
4986         (pp_c_expression): Likewise.  Tidy.
4987         (pp_c_statement): Likewise.  Document.
4988         (pp_c_pretty_printer_init): Adjust prototype. Tidy.
4989
4990         * c-lang.c (c_initialize_diagnostics): Update.
4991         * c-common.h (strip_pointer_operator): Declare.
4992         * c-common.c (strip_pointer_operator): Define.
4993
4994 2003-08-25  Mark Mitchell  <mark@codesourcery.com>
4995
4996         PR c++/8795
4997         * tree.h (build_method_type_directly): Declare.
4998         * c-common.c (handle_vector_size_attributes): Handle METHOD_TYPEs.
4999         (vector_size_helper): Likewise.
5000         * tree.c (build_method_type_directly): New function.
5001         (build_method_type): Use it.
5002
5003 2003-08-24  Richard Henderson  <rth@redhat.com>
5004
5005         * config/i386.i386.c (ix86_return_in_memory): Reformat.  Return true
5006         for 16-byte vector modes if sse not enabled; warn for abi change.
5007         (ix86_value_regno): Only return xmm0 for 16-byte vector types.
5008
5009 2003-08-24  Kazu Hirata  <kazu@cs.umass.edu>
5010
5011         * rtlanal.c (may_trap_p): Simplify an integer comparison.
5012
5013 2003-08-24  Nathanael Nerode  <neroden@gcc.gnu.org>
5014
5015         * fixinc/inclhack.def (AAB_svr4_replace_byteorder):  Enhance
5016         comment.  Enable for DYNIX/ptx systems (when they switch to
5017         regular fixincludes).
5018         * fixinc/fixincl.x: Regenerate.
5019
5020 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5021
5022         * config/i860/t-i860: New.
5023         * config.gcc (i860-*-sysv4*): Add t-i860 to tmake_file.
5024
5025 2003-08-23  Jakub Jelinek  <jakub@redhat.com>
5026
5027         * c-decl.c (pushdecl): Only put decls which finish_struct will do
5028         something about onto incomplete chain.
5029         (finish_struct): If not removing type from incomplete
5030         list, update prev.
5031
5032 2003-08-20  Jan Hubicka  <jh@suse.cz>
5033
5034         PR target/11369
5035         * i386.c (ix86_expand_carry_flag_compare): Validate operand.
5036
5037         PR target/11031
5038         * i386.c (const_0_to_3_operand, const_0_to_7_operand,
5039         const_0_to_15_operand, const_0_to_255_operand): New predicates.
5040         * i386.h (PREDICATE_CODES): Add these.
5041         * i386.c (pinsrw and pextrw patterns): Use them.
5042
5043         PR target/10984
5044         * i386.c (ix86_expand_binop_builtin): Behave sanely for VOIDmodes.
5045
5046         PR target/8869
5047         * expr.c (convert_modes): Deal properly with integer to vector
5048         constant conversion.
5049
5050         PR target/8871
5051         * i386.md (zero_extendsidi2*): Add MMX and SSE alternatives.
5052
5053 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5054
5055         * config/s390/s390.h (LOAD_EXTEND_OP): Remove.
5056         * config/s390/s390.md ("movhi"): New expander; old insn renamed to ...
5057         ("*movhi"): ... this.
5058         ("movqi", "*movqi"): Likewise.
5059         ("movqi_64"): Remove.
5060         ("*zero_extendhisi2_31"): Change predicate to s_operand.
5061
5062 2003-08-23  Dale Johannesen  <dalej@apple.com>
5063         * calls.c (emit_library_call_value_1): Fix obvious errors in
5064         arguments to emit_group_store.
5065
5066 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5067
5068         * calls.c (emit_library_call_value_1): Remove code related
5069         to LIBGCC_NEEDS_DOUBLE.
5070         * config/stormy16/stormy16.h: Remove mention of LIBGCC_NEEDS_DOUBLE.
5071         * doc/tm.texi: Likewise.
5072         * system.h: Poison the LIBGCC_NEEDS_DOUBLE macro.
5073
5074 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
5075
5076         * config/mips/linux64.h (STARTFILE_PREFIX_SPEC): Remove.
5077
5078 2003-08-23  Richard Sandiford  <rsandifo@redhat.com>
5079
5080         * config/mips/mips.c (mips_setup_incoming_varargs): Handle o32 and o64
5081         as well.  Put memory references in the varargs alias set.
5082         (mips_expand_prologue): Remove varargs handling from here.
5083
5084 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5085
5086         * config/s390/s390.c (s390_expand_movstr, s390_expand_clrstr,
5087         s390_expand_cmpmem, s390_output_constant_pool, s390_build_va_list,
5088         s390_function_profiler, s390_output_mi_thunk): Use ISO C syntax
5089         for function pointer calls.
5090         * config/s390/s390.md ("*negdi2_31"): Likewise.
5091
5092 2003-08-23  Roger Sayle  <roger@eyesopen.com>
5093
5094         * combine.c (apply_distributive_law): Correct comment.
5095
5096 2003-08-23  Jason Eckhardt  <jle@rice.edu>
5097
5098         * config/i860/i860.h: Remove comment mentioning LIBGCC_NEEDS_DOUBLE.
5099
5100 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5101
5102         * config/i860/i860.c (i860_build_va_list): Create the va_decl
5103         declaration.  Document the va_list structure.
5104         (i860_va_start): Initialize the va_list structure.
5105         (i860_va_arg): Rewrite completely.
5106         * config/i860/i860.h (LIBGCC_NEEDS_DOUBLE): Don't define.
5107         * config/i860/varargs.asm: Do not allocate or initialize
5108         a va_list.  Return the address of the register save area.
5109
5110 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5111
5112         * config/iq2000/iq2000.c: Fix comment typos.
5113         * config/iq2000/iq2000.md: Likewise.
5114
5115 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5116
5117         * config/iq2000/iq2000.c: Follow spelling conventions.
5118         * config/iq2000/iq2000.h: Likewise.
5119         * config/mn10300/mn10300.c: Likewise.
5120
5121 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5122
5123         * config/i860/i860.c (output_move_double): Don't set latehalf
5124         to zero for CONST_INT (since it could be, e.g., -1).
5125
5126         * config/i860/i860.h (REMSI3_LIBCALL): Replace this macro...
5127         (MODSI3_LIBCALL): ...with this one.
5128         (UREMSI3_LIBCALL): Replace this macro...
5129         (UMODSI3_LIBCALL): ...with this one.
5130
5131 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5132
5133         * config/i860/i860-protos.h (output_delay_insn): Remove prototype.
5134         (output_delayed_branch): Remove prototype.
5135         (single_insn_src_p): Remove prototype.
5136         * config/i860/i860.c (single_insn_src_p): Remove function.
5137         (output_delayed_branch): Remove function.
5138         (output_delay_insn): Remove function.
5139         (va_start): Remove unconditional test and dead code, re-format.
5140         Fix coding style and spelling problems in various comments.
5141         * config/i860/i860.md (UNSPECV_BLOCKAGE): Define constant...
5142         (blockage pattern): ...and use it here.
5143         (all define_peephole patterns related to delayed branches): Remove.
5144         Fix coding style and spelling problems in various comments.
5145
5146 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5147
5148         * config/i860/i860.c: Replace all occurrences of 'GNU CC' with 'GCC'.
5149         Remove all uses of the PARAMS macro.  Remove superflous prototypes.
5150         Convert all function definitions from traditional to ISO C90 syntax.
5151         * config/i860/i860-protos.h: Replace all occurrences of 'GNU CC'
5152         with 'GCC'.  Remove all uses of the PARAMS macro.
5153         * config/i860/i860.h: Replace all occurrences of 'GNU CC' with 'GCC'.
5154         * config/i860/i860.md: Likewise.
5155         * config/i860/sysv4.h: Likewise.
5156         * config/i860/varargs.asm: Likewise.
5157
5158 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5159
5160         * config/i860/i860-protos.h (i860_va_start): Remove 'stdarg_p'
5161         argument.
5162         (tdesc_section): Add prototype.
5163         Update copyright dates.
5164         * config/i860/i860.c: Include coretypes.h, tm.h, and toplev.h.
5165         (TARGET_ASM_FUNCTION_PROLOGUE): Move definition to end of file.
5166         (TARGET_ASM_FUNCTION_EPILOGUE): Likewise.
5167         (targetm): Likewise.
5168         (i860_output_function_prologue): Substitute HOST_WIDE_INT_PRINT_DEC
5169         for '%d' where necessary.
5170         (i860_va_start): Remove 'stdarg_p' argument.  Make conditional checks
5171         on 'stdarg_p' unconditional.  Divide current_function_args_info.ints
5172         by UNITS_PER_WORD when referencing (likewise for .floats).
5173         (I860_SVR4_VARARGS): Rename...
5174         (I860_SVR4_VA_LIST): ...to this.
5175         Call build() with 't' rather than 'field'.
5176         (i860_rtx_costs): New function.
5177         (TARGET_RTX_COSTS): Define.
5178         (i860_internal_label): New function.
5179         (TARGET_ASM_INTERNAL_LABEL): Define.
5180         (i860_file_start): New function.
5181         Update copyright dates.
5182         * config/i860/i860.h (CPP_PREDEFINES): Remove.
5183         (TARGET_CPU_CPP_BUILTINS): Define.
5184         (EXPAND_BUILTIN_VA_START): Remove 'stdarg' argument.
5185         (CONST_COSTS): Remove (and move code to i860_rtx_costs).
5186         (ASM_FILE_START): Remove.
5187         (ASM_FILE_START_1): Remove.
5188         (ASM_GLOBALIZE_LABEL): Remove.
5189         (ASM_OUTPUT_INTERNAL_LABEL): Remove.
5190         (ASM_OUTPUT_CASE_LABEL): Replace call of ASM_OUTPUT_INTERNAL_LABEL
5191         with targetm.asm_out.internal_label.
5192         Update copyright dates.
5193         * config/i860/sysv4.h (USER_LABEL_PREFIX): Define.
5194         (CPP_PREDEFINES): Remove.
5195         (TARGET_OS_CPP_BUILTINS): Define.
5196         (GLOBAL_ASM_OP): Define.
5197         (ASM_FILE_START): Remove.
5198         (TARGET_ASM_FILE_START_FILE_DIRECTIVE): Define.
5199         (TARGET_ASM_FILE_START): Define.
5200         Update copyright dates.
5201
5202 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5203
5204         * gcc/config.gcc (i860-*-sysv4*): Add target.
5205         * config/i860/i860-protos.h: New.
5206         * config/i860/i860.c: New.
5207         * config/i860/i860.h: New.
5208         * config/i860/i860.md: New.
5209         * config/i860/sysv4.h: New.
5210         * config/i860/varargs.asm: New.
5211         * config/i860/x-sysv4: New.
5212
5213 2003-08-22  Jason Eckhardt  <jle@rice.edu>
5214
5215         * config/pa/pa.c: Replace 'GNU CC' with 'GCC'.
5216         Remove all uses of PARAMS macro.
5217         Convert all function definitions to ISO C90 syntax.
5218         * config/pa/elf.h: Replace 'GNU CC' with 'GCC'.
5219         * config/pa/fptr.c: Likewise.
5220         * config/pa/lib2funcs.asm: Likewise.
5221         * config/pa/long_double.h: Likewise.
5222         * config/pa/milli64.S: Likewise.
5223         * config/pa/pa-64.h: Likewise.
5224         * config/pa/pa-hpux.h: Likewise.
5225         * config/pa/pa-hpux10.h: Likewise.
5226         * config/pa/pa-hpux11.h: Likewise.
5227         * config/pa/pa-linux.h: Likewise.
5228         * config/pa/pa-modes.def: Likewise.
5229         * config/pa/pa-osf.h: Likewise.
5230         * config/pa/pa-pro-end.h: Likewise.
5231         * config/pa/pa.md: Likewise.
5232         * config/pa/pa32-linux.h: Likewise.
5233         * config/pa/pa64-linux.h: Likewise.
5234         * config/pa/pa64-hpux.h: Likewise.
5235         * config/pa/pa64-regs.h: Likewise.
5236         * config/pa/quadlib.c: Likewise.
5237         * config/pa/rtems.h: Likewise.
5238         * config/pa/pa-protos.h: Replace 'GNU CC' with 'GCC' and remove
5239         all uses of the PARAMS macro.
5240         * config/pa/pa.h: Likewise.
5241         * config/pa/som.h: Likewise.
5242
5243         * config/iq2000/iq2000.c: Replace 'GNU CC' with 'GCC'.
5244         Remove all uses of PARAMS macro.
5245         Convert all function definitions to ISO C90 syntax.
5246         * config/iq2000-protos.h: Replace 'GNU CC' with 'GCC'.
5247         Remove all uses of PARAMS macro.
5248         * config/iq2000.h: Remove all uses of PARAMS macro.
5249         * config/iq2000/iq2000.md: Replace 'GNU CC' with 'GCC'.
5250
5251 2003-08-23  Ulrich Weigand  <uweigand@de.ibm.com>
5252
5253         * config/s390/s390-protos.h (s390_output_pool_entry): Declare.
5254         * config/s390/s390.c (gen_consttable): Remove.
5255         (s390_dump_pool): Use UNSPECV_POOL_ENTRY for pool entry insns.
5256         (s390_output_pool_entry): New function.
5257         * config/s390/s390.md (UNSPECV_POOL_QI, UNSPECV_POOL_HI,
5258         UNSPECV_POOL_SI, UNSPECV_POOL_DI, UNSPECV_POOL_TI,
5259         UNSPECV_POOL_SF, UNSPECV_POOL_DF): Remove, replace by ...
5260         (UNSPECV_POOL_ENTRY): ... this new constant.
5261         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
5262         "consttable_ti", "consttable_sf", "consttable_df"): Remove ...
5263         ("*pool_entry"): ... and replace by this new insn.
5264         ("literal_pool_31"): Do not emit anchor label if pool empty.
5265
5266         * config/s390/s390.c (struct machine_function): Add save_return_addr_p.
5267         (s390_optimize_prolog): Save RETURN_REGNUM if save_return_addr_p.
5268         (s390_fixup_clobbered_return_reg): Remove.
5269         (s390_reorg): Don't call s390_fixup_clobbered_return_reg.
5270         (s390_return_addr_rtx): Always retrieve return address from save area
5271         slot.  Use save_return_addr_p to force slot to be filled.
5272         (s390_emit_prologue): Remove has_hard_reg_initial_val test.
5273
5274 2003-08-22  Chris Demetriou  <cgd@broadcom.com>
5275
5276         * config/mips/mips.h (MASK_FIX_SB1, TARGET_FIX_SB1): New defines.
5277         (TARGET_SWITCHES): Add -mfix-sb1 and -mno-fix-sb1.
5278         * config/mips/mips.md (divdf3, divsf3, sqrtdf2, sqrtsf2): Work
5279         around SB-1 errata if TARGET_FIX_SB1 is set.
5280         (recip.d insn, recip.s insn, rsqrt.d insn, rsqrt.s insn): Likewise.
5281         * doc/invoke.texi: Document MIPS -mfix-sb1 and -mno-fix-sb1.
5282
5283 2003-08-22  Roger Sayle  <roger@eyesopen.com>
5284
5285         * hashtable.c (ht_expand): Avoid calculating rehash for the common
5286         case that the first probe hits an empty hash table slot.
5287
5288 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
5289
5290         * config/ia64/hpux.h (SUPPORTS_INIT_PRIORITY): Define to 0.
5291
5292 2003-08-22  Mark Mitchell  <mark@codesourcery.com>
5293
5294         * config/ia64/ia64.md (*ptr_extend_plus_1): Rename to ...
5295         (ptr_extend_plus_imm): ... this.
5296         * config/ia64/ia64.c (addp4_optimize_ok): Do not disable addp4
5297         optimization in C++.
5298         (ia64_output_mi_thunk): Support ILP32 mode.
5299
5300 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
5301
5302         * gcc/config/m68k/m68k.c (m68k_coff_asm_named_section): remove unused
5303         function.
5304         * gcc/config/m68k/m68k.c (-m68k_svr3_asm_out_constructor): likewise.
5305
5306 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5307
5308         * config/i386/i386.c (const_int_1_operand): Simplify an
5309         integer comparison.
5310
5311 2003-08-22  Alan Modra  <amodra@bigpond.net.au>
5312
5313         * config/fp-bit.c: Specify config/ dir for include of fp-bit.h.
5314         * config/rs6000/ppc64-fp.c: Likewise.
5315
5316 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5317
5318         * cfgcleanup.c: Fix comment typos.
5319         * emit-rtl.c: Likewise.
5320         * optabs.c: Likewise.
5321         * ra-build.c: Likewise.
5322         * rtlanal.c: Likewise.
5323         * tree.h: Likewise.
5324
5325 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5326
5327         * c-decl.c: Fix comment formatting.
5328         * cfgrtl.c: Likewise.
5329         * combine.c: Likewise.
5330         * convert.c: Likewise.
5331         * dominance.c: Likewise.
5332         * dwarf2out.c: Likewise.
5333         * dwarfout.c: Likewise.
5334         * expmed.c: Likewise.
5335         * fold-const.c: Likewise.
5336         * gcov.c: Likewise.
5337         * genattrtab.c: Likewise.
5338         * ggc-common.c: Likewise.
5339         * mips-tfile.c: Likewise.
5340         * regmove.c: Likewise.
5341
5342 2003-08-22  Kazu Hirata  <kazu@cs.umass.edu>
5343
5344         * builtin-attrs.def: Fix comment formatting.
5345         * c-pretty-print.c: Likewise.
5346         * diagnostic.h: Likewise.
5347         * langhooks.h: Likewise.
5348         * recog.c: Likewise.
5349         * simplify-rtx.c: Likewise.
5350         * tree.def: Likewise.
5351
5352 2003-08-22  Bernardo Innocenti  <bernie@develer.com>
5353
5354         * config/m68k/m68k-protos.h: Convert to ISO C90.
5355         * config/m68k/m68k.c: Likewise.
5356
5357 2003-08-21  Bernardo Innocenti  <bernie@develer.com>
5358             Paul Dale  <pauli@snapgear.com>
5359             Peter Barada <peter@baradas.org>
5360
5361         * config/m68k/m68k.c (m68k_rtx_costs): Adjust mul/div costs for
5362         ColdFire cores.
5363
5364 2003-08-21  Zack Weinberg  <zack@codesourcery.com>
5365
5366         * Makefile.in (INCLUDES): Remove -I$(srcdir)/config.
5367         * config.gcc (*-*-openbsd): Don't set tm_file.
5368         (alpha*-*-openbsd, arm*-*-coff*, arm*-wince-pe*,
5369         arm-*-pe*, avr-*-*, h8300-*-rtems*, h8300-*-elf*,
5370         h8300-*-*, hppa*-*-osf*, hppa*-*-bsd*, hppa*-*-hpux*,
5371         i370-*-opened*, i370-*-mvs*, i370-*-linux*, i?86-*-openbsd*,
5372         i?86-*-lynxos, i?86-*-nto-qnx*, iq2000*-*-elf*, m68000-hp-hpux*,
5373         m68k-hp-hpux*, m68k-*-aout*, m68k-*-coff*, m68020-*-elf*,
5374         m68k-*-elf*, m68k*-*-netbsd*, m68k*-*-openbsd*, m68k-*-sysv4*,
5375         m68k-*-linux*, m68k-*-rtems*, mcore-*-pe*, mips*-*-netbsd*,
5376         mips*-*-openbsd*, rs6000-*-lynxos*, sh*-*-elf*, sh*-*-ka,
5377         sh-*-rtemself, sparc-*-openbsd*, strongarm-*-pe, vax-*-openbsd*,
5378         xscale-*-coff): Use explicit and complete lists of target headers
5379         to include.  Move definitions to tm_defines where appropriate.
5380         (hppa*-*-openbsd*, powerpc-*-openbsd*): Comment out stanza for
5381         not-yet-contributed configuration.
5382
5383         * config/lynx.h, config/alpha/openbsd.h, config/arm/coff.h
5384         * config/avr/avr.h, config/frv/frv.h, config/h8300/elf.h
5385         * config/i370/linux.h, config/i370/mvs.h, config/i370/oe.h
5386         * config/i386/nto.h, config/iq2000/iq2000.h,
5387         * config/m68k/coff.h, config/m68k/hp310.h, config/m68k/hp320.h
5388         * config/m68k/linux.h, config/m68k/m68k-aout.h
5389         * config/m68k/m68k-none.h, config/m68k/m68kv4.h
5390         * config/m68k/netbsd.h, config/m68k/openbsd.h
5391         * config/m68k/sgs.h, config/mcore/mcore-pe.h,
5392         * config/mips/netbsd.h, config/mips/openbsd.h, config/pa/pa.h,
5393         * config/rs6000/lynx.h, config/sh/embed-elf.h, config/sparc/openbsd.h:
5394         Remove includes of other target config headers, and
5395         definitions of macros moved to tm_defines lists.  Add #undefs
5396         where now necessary to prevent redefinition warnings.
5397
5398         * config/h8300/coff.h: New file split out of...
5399         * config/h8300/elf.h: ...here.
5400         * config/m68k/hp320base.h: New file split out of...
5401         * config/m68k/hp320.h: ...here.
5402         * config/rs6000/lynxbase.h: New file split out of...
5403         * config/rs6000/lynx.h: ...here.
5404
5405         * config/m68k/hp310g.h, config/m68k/hp320g.h, config/m68k/hpux7.h
5406         * config/m68k/m68k-coff.h, config/mips/openbsd-be.h: Delete file.
5407
5408         * config/sol2.h: Remove #if 0-ed #include of sys/mman.h.
5409         * config/m68k/m68kelf.h: Remove commented out #include of m68k/sgs.h.
5410         * config/mcore/mcore.h: Don't include hwint.h nor machmode.h.
5411         Remove unnecessary #ifndef.
5412         * config/s390/s390.h: Prefix #include of s390/fixdfdi.h
5413         [under IN_LIBGCC2] with config/.
5414
5415 2003-08-21  Per Bothner  <pbothner@apple.com>
5416
5417         * cppfiles.c (stack_file):  Correctly pass return_at_eof parameter
5418         to cpp_push_buffer.
5419         * cpplex.c (_cpp_get_fresh_line):  Don't buffer->prev - handled
5420         by return_at_eof check.  Always call _cpp_pop_buffer at end.
5421
5422 2003-08-21  Kazu Hirata  <kazu@cs.umass.edu>
5423
5424         PR target/11805
5425         * config/h8300/h8300.md (two anonymous patterns): Remove.
5426
5427 2003-08-21  Richard Sandiford  <rsandifo@redhat.com>
5428
5429         * config/mips/mips.h (MUST_PASS_IN_STACK): Remove BLKmode clause.
5430         * config/mips/mips.c (function_arg_pass_by_reference): Never return
5431         true for n32 & n64.
5432
5433 2003-08-21  Josef Zlomek  <zlomekj@suse.cz>
5434
5435         * fold-const.c (fold): Fix bug in (A & C) == D where D & ~C != 0
5436         and similarly in (A | C) == D where C & ~D != 0.
5437
5438 2003-08-20  Geoffrey Keating  <geoffk@apple.com>
5439
5440         PR 8180
5441         * configure.in: When testing with_libs and with_headers, treat
5442         'no' as unset.  Based on a patch by Dan Kegel <dank@kegel.com>.
5443         * configure: Regenerate.
5444
5445 2003-08-20  Peter Barada <peter@baradas.org>
5446
5447         * longlong.h (umul_ppmm): Add ColdFire support.
5448
5449 2003-08-20  Peter Barada <peter@baradas.org>
5450             Bernardo Innocenti  <bernie@develer.com>
5451
5452         * config/m68k/m68k-none.h: Introduce new ColdFire archs.
5453         * config/m68k/m68k.h: Likewise.
5454         * config/m68k/lb1sf68.asm: Rename __mcf5200__ to __mcoldfire__.
5455         * config/m68k/coff.h: Rename TARGET_5200 to TARGET_COLDFIRE.
5456         * config/m68k/linux.h: Likewise.
5457         * config/m68k/m68k.c: Likewise.
5458         * config/m68k/m68k.md: Likewise.
5459         * config/m68k/m68kelf.h: Likewise.
5460         * config/m68k/netbsd-elf.h: Likewise.
5461         * config/m68k/t-m68kelf: Add multilib targets for new ColdFire archs.
5462
5463 2003-08-20  Bernardo Innocenti  <bernie@develer.com>
5464
5465         * config/m68k/m68k.c: Strip away code depending on NO_ADDSUB_Q definition.
5466         * config/m68k/m68k.md: Likewise.
5467
5468 2003-08-20  Mark Mitchell  <mark@codesourcery.com>
5469
5470         PR java/11996
5471         Revert this change:
5472         2003-08-19  Mark Mitchell  <mark@codesourcery.com>
5473         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5474         types with precisions other than those given by native machine
5475         modes.
5476
5477 2003-08-20  Gunther Nikl  <gni@gecko.de>
5478
5479         * config/m68k/m68k.md (anonymous define_insn): remove obsolete code
5480         selected by FSGLMUL_USE_S and FSGLDIV_USE_S
5481         * config/m68k/m68k.c (output_move_himode): remove SGS_NO_LI check
5482         * config/m68k/m68k.md (anonymous define_insn): Likewise
5483         * config/m68k/m68k.md (anonymous define_insn): remove ISI_OV check
5484         * config/m68k/m68k.c (standard_68881_constant_p): remove obsolete
5485         code selected by NO_ASM_FMOVECR
5486
5487 2003-08-20  Gunther Nikl  <gni@gecko.de>
5488
5489         * config/m68k/m68k.c (output_move_const_into_data_reg,
5490         output_move_himode): unify MOTOROLA/MIT handling of moveq
5491         * config/m68k/m68k.md (movsi_const0, anonymous define_insn):
5492         Likewise
5493
5494 2003-08-20  Gunther Nikl  <gni@gecko.de>
5495
5496         * config/m68k/m68k.c (m68k_output_function_prologue): use %U in
5497         label name
5498         * config/m68k/m68k.c (m68k_output_function_epilogue): replace
5499         HOST_WIDE_INT_PRINT_DEC with %wd
5500
5501 2003-08-20  Loren James Rittle  <ljrittle@acm.org>
5502
5503         * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Handle
5504         redefine warning.
5505
5506 2003-08-20  Roger Sayle  <roger@eyesopen.com>
5507
5508         PR middle-end/11984
5509         * fold-const.c (fold <PLUS_EXPR>): Check for integer constant
5510         operands before calling tree_int_cst_lt when performing associative
5511         transformations.
5512
5513 2003-08-20  Jason Merrill  <jason@redhat.com>
5514
5515         * tree.h (IS_EXPR_CODE_CLASS): Also include 'r' and 's'.
5516         (EXPR_CHECK): Don't check for 'r' or 's' if we're
5517         checking IS_EXPR_CODE_CLASS.
5518         * calls.c (calls_function_1): Likewise.
5519         * fold-const.c (fold): Likewise.
5520         * tree.c (iterative_hash_expr): Likewise.
5521         * tree-inline.c (walk_tree, copy_tree_r): Likewise.
5522
5523 2003-08-20  Gunther Nikl  <gni@gecko.de>
5524
5525         * config/m68k/m68k.c (m68k_output_mi_thunk): delete obsolete code
5526         depending on MOTOROLA_BSR
5527         * config/m68k/m68k.md (anonymous define_insn): Likewise
5528
5529 2003-08-20  Jason Merrill  <jason@redhat.com>
5530
5531         * builtins.c (expand_builtin_mathfn): Use get_callee_fndecl.
5532         (expand_builtin_mathfn2, expand_builtin, builtin_mathfn_code,
5533         fold_trunc_transparent_mathfn, fold_builtin): Likewise.
5534         * dojump.c (do_jump): Likewise.
5535         * fold-const.c (operand_equal_p, fold): Likewise.
5536         (tree_expr_nonnegative_p): Likewise.
5537
5538         * stor-layout.c (do_type_align): Only copy DECL_USER_ALIGN from
5539         TYPE_USER_ALIGN for FIELD_DECLs.
5540
5541         * attribs.c (decl_attributes): Rebuild the function pointer type after
5542         changing the target type.
5543         * tree.c (get_qualified_type): Also check that the attributes match.
5544
5545 2003-08-19  Matt Kraai  <kraai@alumni.cmu.edu>
5546
5547         * Makefile.in (STAGESTUFF): Move cc1obj$(exeext) from here ...
5548         * objc/config-lang.in (stagestuff): ... to here.
5549
5550 2003-08-19  Mark Mitchell  <mark@codesourcery.com>
5551
5552         PR c++/11946
5553         * convert.c (convert_to_integer): Use CONVERT_EXPR (instead of
5554         NOP_EXPR) when necessary.
5555         * c-common.c (c_common_signed_or_unsigned_type): Correctly handle
5556         types with precisions other than those given by native machine
5557         modes.
5558
5559 2003-08-19  Geoffrey Keating  <geoffk@apple.com>
5560
5561         * cpppch.c (cpp_valid_state): Re-add warning about PCH not used
5562         because some macro is defined.
5563
5564         * config/darwin.h (LINK_COMMAND_SPEC): Add -arch and -arch_only
5565         options.
5566         * config/i386/darwin.h (ASM_SPEC): New.
5567         (SUBTARGET_EXTRA_SPECS): New.
5568         * config/rs6000/darwin.h (ASM_SPEC): New.
5569         (SUBTARGET_EXTRA_SPECS): New.
5570         * configure.in: Don't set CROSS or SYSTEM_HEADER_DIR when building
5571         a cross-compiler between two different processors on Darwin.
5572         * configure: Regenerate.
5573
5574 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5575
5576         * builtins.c: Fix comment typos.
5577         * c-common.c: Likewise.
5578         * c-decl.c: Likewise.
5579         * c-pretty-print.c: Likewise.
5580         * cfgbuild.c: Likewise.
5581         * cfglayout.c: Likewise.
5582         * cfgloopanal.c: Likewise.
5583         * cgraphunit.c: Likewise.
5584         * cppfiles.c: Likewise.
5585         * dwarfout.c: Likewise.
5586         * expr.c: Likewise.
5587         * fold-const.c: Likewise.
5588         * gcse.c: Likewise.
5589         * ggc-page.c: Likewise.
5590         * haifa-sched.c: Likewise.
5591         * pretty-print.c: Likewise.
5592         * tree.c: Likewise.
5593         * tree.h: Likewise.
5594         * value-prof.c: Likewise.
5595
5596 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5597
5598         * c-decl.c: Follow spelling conventions.
5599         * cppfiles.c: Likewise.
5600
5601 2003-08-19  Kazu Hirata  <kazu@cs.umass.edu>
5602
5603         * c-common.c: Fix comment formatting.
5604         * c-common.h: Likewise.
5605         * c-decl.c: Likewise.
5606         * cppinit.c: Likewise.
5607         * cpplib.h: Likewise.
5608         * emit-rtl.c: Likewise.
5609         * input.h: Likewise.
5610         * line-map.h: Likewise.
5611         * opts.c: Likewise.
5612         * opts.h: Likewise.
5613         * simplify-rtx.c: Likewise.
5614
5615 2003-08-19  Daniel Jacobowitz  <drow@mvista.com>
5616
5617         * unwind-c.c: Add libgcc-style exception.
5618         * unwind-dw2.c: Likewise.
5619         * unwind-pe.h: Likewise.
5620         * unwind-sjlj.c: Likewise.
5621         * unwind.inc: Likewise.
5622
5623 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
5624
5625         PR c/5582 PR c++/10538
5626         * langhooks-def.h (lhd_decl_uninit): Declare.
5627         (LANG_HOOKS_DECL_UNINIT): New macro.
5628         (LANG_HOOKS_INITIALIZER): Adjust.
5629         * langhooks.h (struct lang_hooks): Add new field
5630         decl_uninit.
5631         * langhooks.c (lhd_decl_uninit): Define.
5632         * c-common.c (c_decl_uninit_1): New function.
5633         (c_decl_uninit): New function.
5634         (warn_init_self): Define.
5635         * c-common.h (c_decl_uninit): Declare.
5636         (warn_init_self): Declare.
5637         * c.opt: Introduce -Winit-self.
5638         * c-opts.c (c_common_handle_options): Set warn_init_self.
5639         * c-lang.c (LANG_HOOKS_DECL_UNINIT): Define.
5640         * objc/objc-lang.c  (LANG_HOOKS_DECL_UNINIT): Define.
5641         * function.c (uninitialized_vars_warning): Call the language hook.
5642         * doc/invoke.texi: Document -Winit-self.
5643
5644 2003-08-19  Chris Demetriou  <cgd@broadcom.com>
5645
5646         * config/mips/mips.md: Adjust SI-mode "trap_if" instruction
5647         to use better predicates and constraints.  Define new
5648         instruction to handle "trap_if" with DI-mode arguments.
5649         (conditional_trap): FAIL if trap code is not 0.
5650
5651 2003-08-19  Andrew Pinski  <pinskia@physics.uc.edu>
5652
5653         * config/i386/i386.c (legitimate_pic_address_disp_p): Change the
5654         strstr with $pb to a strcompare with "<pic base>"
5655         (ix86_output_addr_diff_elt): Output the real pic base.
5656
5657 2003-08-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
5658
5659         * langhooks-def.h (LANG_HOOKS_INITIALIZE_DIAGNOSTICS): Fix spelling.
5660         (LANG_HOOKS_INITIALIZER): Correct.
5661         * c-lang.c: Likewise.
5662
5663 2003-08-19  Jan Hubicka  <jh@suse.cz>
5664
5665         * cgraph.c (cgraph_mark_needed_node): Call notice_global_symbol.
5666         (cgraph_varpool_mark_needed_node): Likewise.
5667         * cgraph.h (notice_global_symbol): Declare
5668         * varasm.c (notice_global_symbol): Break out from ...
5669         (assemble_start_function): ... here; update for variables.
5670         (assemble_variable): Use notice_global_symbol.
5671
5672 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
5673
5674         * config/mips/mips.c (mips_va_arg): If EABI_FLOAT_VARARGS_P,
5675         expect SFmode and DFmode arguments to be passed in FPRs,
5676         regardless of the underlying type.
5677
5678 2003-08-19  Richard Sandiford  <rsandifo@redhat.com>
5679
5680         PR target/11924
5681         * config/mips/mips.c (INTERNAL_SYMBOL_P): New macro.
5682         (mips_classify_symbol, m16_usym8_4, m16_usym5_4): Use it.
5683
5684 2003-08-18  Matt Kraai  <kraai@alumni.cmu.edu>
5685
5686         PR c/11207
5687         * c-typeck.c (set_init_index): Check for negative index.
5688
5689 2003-08-18  Bob Wilson  <bob.wilson@acm.org>
5690
5691         * config/xtensa/crti.asm (_init, _fini): Add alternate code for new
5692         call0 ABI.
5693         * config/xtensa/crtn.asm (_init, _fini): Likewise.
5694         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
5695         __umodsi3, __modsi3): Likewise.
5696         * config/xtensa/t-xtensa (crti.o, crtn.o): Add $(GCC_CFLAGS) and
5697         $(INCLUDES).
5698
5699 2003-08-18  Aldy Hernandez  <aldyh@redhat.com>
5700
5701         * config/rs6000/spe.md ("*nabssf2_gpr"): New.
5702
5703 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5704
5705         * config/mips/mips.md: Quote C code in braces.  Remove use of
5706         fake const0_rtx operands.  Remove double backslashes.  Use \;.
5707         Remove workarounds for bogus warnings.
5708
5709 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5710
5711         * config/mips/mips.md (muldf3, mulsf3): Don't call a gen_* function.
5712         (muldf3_internal, muldf3_r4300): Select based on TARGET_4300_MUL_FIX
5713         rather than TARGET_MIPS4300.
5714         (mulsf3_internal, mulsf3_r4300): Likewise.
5715
5716 2003-08-18  Richard Sandiford  <rsandifo@redhat.com>
5717
5718         * config/mips/mips.md: Renumber unspecs.  Clean up comments.
5719
5720 2003-08-17  Roger Sayle  <roger@eyesopen.com>
5721
5722         * simplify-rtx.c (associative_constant_p): New function to test
5723         whether an RTX expression is an immediate constant.
5724         (simplify_associative_operation): New function to perform some
5725         reassociation optimizations of associative binary expressions.
5726         (simplify_binary_operation): Use simplify_associative_operation
5727         to simplify PLUS, MULT, AND, IOR, XOR, SMIN, SMAX, UMIN and UMAX.
5728         Floating point expressions are only reassociated when unsafe
5729         math optimizations are permitted.
5730
5731 2003-08-17  Andreas Jaeger  <aj@suse.de>
5732
5733         * config/alpha/alpha.md: Remove usage of PARAMS.
5734
5735         * config/i386/cygwin.h: Convert K&R prototypes to ISO C90.
5736         * config/i386/i386-interix.h: Likewise.
5737         * config/i386/winnt.c: Likewise.
5738         * config/i386/cygming.h: Likewise.
5739         * config/i386/cygwin2.c: Likewise.
5740         * config/darwin.c: Likewise.
5741         * config/darwin-c.c: Likewise.
5742         * config/darwin-protos.h: Likewise.
5743         * config/darwin.h: Likewise.
5744         * config/s390/s390-protos.h: Likewise.
5745         * config/s390/s390.c: Likewise.
5746         * config/ia64/ia64.c: Likewse
5747         * config/ia64/ia64-protos.h: Likewise.
5748         * config/ia64/ia64-c.c: Likewise.
5749
5750 2003-08-16  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5751
5752         * config/sparc/sparc.c: Convert to ISO C.
5753
5754         * config/sparc/sparc-protos.h: Don't use the PARAMS macro.
5755         * config/sparc/sparc.c: Likewise.
5756
5757 2003-08-16  Nathan Sidwell  <nathan@codesourcery.com>
5758
5759         PR c++/11512
5760         * stmt.c (expand_expr_stmt_value): Don't warn about any void
5761         typed expression.
5762
5763 2003-08-16  Jan Hubicka  <jh@suse.cz>
5764
5765         * i386.c (ix86_fntype_regparm): Rename from ...
5766         (ix86_function_regparm): ... this one; add fastcall and local
5767         functions.
5768         (ix86_function_ok_for_sibcall): Update.
5769         (ix86_return_pops_args): Likewise.
5770         (init_cumulative_args): Likewise.
5771         (x86_can_output_mi_thunk): Likewise.
5772         (function_arg): Fix formating.
5773         (x86_this_parameter): Fix fastcall.
5774         (x86_output_mi_thunk): Likewise.
5775
5776         * cgraph.c (cgraph_mark_needed_node): Do not mark functions without
5777         body as reachable; mark nested functions as needed too.
5778         (dump_cgraph): Do not output global.calls.
5779         * cgraph.h (cgraph_global_info): Kill.
5780         * cgraphunit.c (cgraph_finalize_function): Enqueue needed functions.
5781         (record_call_1): Speedup.
5782         (cgraph_analyze_function): Break out from ...; compute inlining
5783         parameters.
5784         (cgraph_finalize_compilation_unit): ... here.
5785         (cgraph_mark_inline): Kill computation of calls.
5786         (cgraph_decide_inlining): Do not compute most of initial values.
5787
5788 2003-08-14  Roger Sayle  <roger@eyesopen.com>
5789
5790         * fold-const.c (negate_expr_p): MULT_EXPRs and RDIV_EXPRs are easy
5791         to negate if either operand is easy to negate, if we don't care
5792         about sign-dependent rounding.
5793         (negate_expr): Make the logic to negate a REAL_CST explicit.
5794         Attempt to negate a MULT_EXPR or RDIV_EXPR by negating an operand
5795         that's easy to negate, if we don't honor sign-dependent rounding.
5796         (fold <MULT_EXPR>): Optimize -A * B as A * -B if B is easy to
5797         negate, and the symmetric A * -B as -A * B if A is easy to negate.
5798         (fold <RDIV_EXPR>): Likewise, optimize -A/B and C/-D as A/-B and
5799         -C/D if B and C are cheap to negate.  Add an explicit rule to
5800         optimize X/-1.0 as -X when we don't care about signaling NaNs.
5801
5802 2003-08-14  Zack Weinberg  <zack@codesourcery.com>
5803
5804         * Makefile.in (tm_file): Rename tm_include_list.
5805         (tm_p_file): Rename tm_p_include_list.
5806         (build_xm_file): Rename build_xm_include_list.
5807         (host_xm_file): Rename host_xm_include_list.
5808         (xm_file): Rename xm_include_list.
5809         (xm_file_list): Add to be substituted.
5810         (cs-config.h, cs-bconfig.h, cs-tconfig.h, cs-tm.h, cs-tm_p.h):
5811         Update to match.
5812         (bt-load.o): Add missing dependency on $(TM_H).
5813         * configure.in: Prefix value of EXTRA_MODES_FILE with config/.
5814         For each of tm_file, tm_p_file, xm_file, host_xm_file, and
5815         build_xm_file, generate both *_file_list and *_include_list
5816         values from it.  (xm_file_list was formerly not being generated.)
5817         In *_include_list, prefix the names of all headers found in
5818         $(srcdir)/config with config/.  In each loop, consider only
5819         the special case files that can actually appear in that list.
5820         AC_SUBST all *_file_list and all *_include_list variables; do
5821         not AC_SUBST the plain *_file variables.
5822         * configure: Regenerate.
5823
5824 2003-08-14  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
5825
5826         * cfg.c (dump_edge_info): Add name of loop_exit edge flag.
5827
5828 2003-08-14  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
5829
5830         * pa.c (pa_adjust_insn_length): Delete adjustment for delay slot in
5831         direct calls.
5832         (attr_length_call): Include it here.  Improve length estimate for
5833         local calls.
5834         (output_call): Use targetm.binds_local_p.
5835
5836 2003-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5837
5838         * builtins.c (CASE_MATHFN): New helper macro.
5839         (mathfn_built_in): Simplify and sort.
5840
5841         * protoize.c (substr): Delete, callers changed to `strstr'.
5842
5843 2003-08-13  Zack Weinberg  <zack@codesourcery.com>
5844
5845         * config.gcc (iq2000*-*-elf*): Don't set xm_file.
5846         * config/iq2000/xm-iq2000.h: Delete file.
5847
5848 2003-08-13  Geoffrey Keating  <geoffk@apple.com>
5849
5850         * gengtype.c (walk_type): Process a subobject before processing
5851         the pointer that points to the subobject.
5852
5853 2003-08-13  Per Bothner  <pbothner@apple.com>
5854
5855         * regclass.c (init_reg_modes):  Make non-static.
5856         Rename to init_reg_modes_once per new naming convention.
5857         (init_regs):  Don't call init_reg_modes here.
5858         * emit-rtl.c (init_emit_once):  Call init_reg_modes_once here instead.
5859         * rtl.h (init_reg_modes_once):  New declaration.
5860         * toplev.c (backend_init):  Call init_regs after init_emit_once.
5861
5862 2003-08-13  Kaz Kojima  <kkojima@gcc.gnu.org>
5863
5864         * config/sh/linux.h (DBX_REGISTER_NUMBER): Define so to map a
5865         special index for MD_FALLBACK_FRAME_STATE_FOR to itself.
5866
5867 2003-08-13  J"orn Rennecke <joern.rennecke@superh.com>
5868
5869         * sh.c (sh_get_pr_initial_val): Always wrap in unspec for TARGET_SH1.
5870         * sh.md (load_ra): Change insn predicate to TARGET_SH1.
5871
5872 2003-08-13  Dale Johannesen  <dalej@apple.com>
5873
5874         * config/rs6000/rs6000.md (ctrsi, ctrdi):  Reenable
5875         handling of decrement-and-branch farther than 32 bits.
5876
5877 2003-08-12  Kelley Cook  <kelleycook@wideopenwest.com>
5878
5879         * configure.in (make_compare_target): Move test to ...
5880         * aclocal.m4 (gcc_AC_PROG_CMP_IGNORE_INITIAL): here.
5881         * configure: Regenerate.
5882
5883 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
5884
5885         * config/mips/iris6.h: Convert to C90 prototypes.
5886         * config/mips/irix6-libc-compat.c: Likewise.
5887         * config/mips/mips-protos.h: Likewise.
5888         * config/mips/mips.c: Likewise.
5889
5890 2003-08-12  Nathanael Nerode  <neroden@gcc.gnu.org>
5891
5892         fixinc/inclhack.def (svr4_krnl): Rename from svr4_kernel.  Enable
5893         for selected machines.  Comment heavily.
5894         fixinc/fixincl.x: Rebuild.
5895         fixinc/tests/base/fs/rfs/rf_cache.h: New file.
5896
5897 2003-08-12  Richard Sandiford  <rsandifo@redhat.com>
5898
5899         * config/mips/mips.h: Tweak various comments.
5900         * config/mips/mips.c: Likewise.
5901
5902 2003-08-11  James E Wilson  <wilson@tuliptree.org>
5903
5904         PR optimization/11319
5905         PR target/10021
5906         * alias.c (find_base_value, case REG): Return 0 not src if no base
5907         found.
5908
5909 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5910
5911         * gcse.c (gmalloc): Fix last change.
5912
5913 2003-08-11  Roger Sayle  <roger@eyesopen.com>
5914
5915         * simplify-rtx.c (simplify_binary_operation): Replace calls to
5916         gen_rtx_NEG and gen_rtx_NOT with calls to simplify_gen_unary,
5917         and calls to gen_rtx_PLUS, gen_rtx_MULT, gen_rtx_LSHIFTRT,
5918         gen_rtx_ASHIFT and gen_rtx_AND with calls to simplify_gen_binary.
5919
5920 2003-08-11  Roger Sayle  <roger@eyesopen.com>
5921
5922         * expr.c (expand_expr): If an ABS_EXPR has a complex type, abort.
5923         * c-typeck.c (build_unary_op): COMPLEX_TYPE is not a valid
5924         typecode for an ABS_EXPR.
5925
5926         * doc/c-tree.texi: Document ABS_EXPR.
5927
5928 2003-08-11  Roger Sayle  <roger@eyesopen.com>
5929
5930         * fold-const.c (fold): Optimize any associative floating point
5931         operator with -funsafe-math-optimizations, not just MULT_EXPR.
5932
5933 2003-08-11  Kaz Kojima  <kkojima@gcc.gnu.org>
5934
5935         * config/sh/lib1funcs.asm (__udivdi3): Add .type and .size
5936         information in SHmedia case too.
5937         (__divdi3, __umoddi3, __moddi3, __init_trampoline, __ic_invalidate):
5938         Likewise.
5939         (__set_fpscr): Use an access via GOT for PIC case.
5940
5941 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
5942
5943         * configure.in (intermodule): Make switch test more portable.
5944         * configure: Regenerate.
5945
5946 2003-08-11  Kelley Cook  <kelleycook@wideopenwest.com>
5947
5948         * Makefile.in (cleanstrap): Pass BOOT_CFLAGS to bootstrap.
5949         (restrap): Likewise.
5950
5951 2003-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5952
5953         * gcse.c (gmalloc): Argument is a size_t.  Add ATTRIBUTE_MALLOC.
5954         (grealloc): Size argument is a size_t.
5955         (gcalloc): New function.  Use throughout in lieu of
5956         gmalloc/memset.
5957
5958         * config/avr/avr.c (avr_init_once): Use xcalloc in lieu of
5959         xmalloc/memset.
5960         * config/ia64/ia64.c (ia64_reorg): Likewise.
5961         * conflict.c (conflict_graph_new): Likewise.
5962         * fixinc/fixincl.c (run_compiles): Likewise.
5963         * genattrtab.c (optimize_attrs): Likewise.
5964         * genrecog.c (new_decision): Likewise.
5965         * haifa-sched.c (schedule_block): Likewise.
5966         * hashtable.c (ht_create): Likewise.
5967
5968 2003-08-11  Bob Wilson  <bob.wilson@acm.org>
5969
5970         * config/xtensa/lib2funcs.S: Fix whitespace.
5971         * config/xtensa/xtensa.md (all insns and expanders): Use brace block
5972         syntax where appropriate.  Remove unnecessary backslash escapes.
5973         Reformat comments and fix some code formatting.
5974         (extendqisi2): Rearrange conditional.
5975         (*btrue, *bfalse, *ubtrue, *ubfalse, *bittrue, *bitfalse, *masktrue,
5976         *maskfalse, movsicc_internal0, movsfcc_internal0): Call abort instead
5977         of fatal_insn.
5978
5979 2003-08-11  Richard Sandiford  <rsandifo@redhat.com>
5980
5981         * config/mips/mips.c: Various formatting fixes.
5982         (override_options): Resync -mtune handling with gas.
5983         (mips_issue_rate): Rearrange like mips_use_dfa_pipeline_interface.
5984         * config/mips/mips.h: More formatting fixes.
5985         (mips_abi): Move declaration.
5986         * config/mips/mips.md (exception_receiver): Add mode to
5987         unspec_volatile.
5988
5989 2003-08-11  Aldy Hernandez  <aldyh@redhat.com>
5990
5991         * config/rs6000/rs6000.c (spe_init_builtins): Handle evsplati and
5992         evsplatfi here.
5993         (bdesc_1arg): Remove evsplati and evsplatfi.
5994
5995 2003-08-11  J"orn Rennecke <joern.rennecke@superh.com>
5996
5997         * dwarf2asm.c (dw2_output_indirect_constant_1): Take user_label_prefix
5998         into account.
5999
6000 2003-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6001
6002         * builtins.c (expand_builtin_strcat): Optimize constant strings.
6003
6004 2003-08-10  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6005
6006         * pretty-print.c (pp_base_indent): Rename from pp_indent.
6007         * c-pretty-print.h (pp_c_pretty_print_flag)s: New datatype.
6008         (struct c_pretty_print_info): Add more fields.
6009         (pp_c_left_paren): Move to c-pretty-print.c.
6010         (pp_c_right_paren): Likewise.
6011         (pp_c_left_brace): Likewise.
6012         (pp_c_right_brace): Likewise.
6013         (pp_c_left_bracket): Likewise.
6014         (pp_c_right_bracket): Likewise.
6015         (pp_c_declarator): Declare.
6016         (pp_c_direct_declarator): Likewise.
6017         (pp_c_specifier_qualifier_list): Likewise.
6018         (pp_c_type_id): Likewise.
6019         * c-pretty-print.c (pp_c_cv_qualifier): Change prootype. Rework..
6020         (pp_c_type_qualifier_list): New.
6021         (pp_c_pointer): Likewise.
6022         (pp_c_parameter_type_list): Likewise.
6023         (pp_c_function_definition): Likewise.
6024         (pp_c_id_expression): Likewise.
6025         (pp_c_simple_type_specifier): Tidy.
6026         (pp_c_unary_expression): Likewise.
6027         (pp_c_expression): Likewise.
6028         (pp_c_pretty_printer_init): Likewise.
6029         (pp_c_specifier_qualifier_list): Rework..
6030         (pp_c_abstract_declarator): Likewise.
6031         (pp_c_postfix_expression): Likewise.
6032         (pp_c_primary_expression): Likewise.
6033         (pp_c_cast_expression): Likewise.
6034         (pp_c_direct_abstract_declarator): Likewise.
6035         (pp_c_storage_class_specifier): Likewise.
6036         (pp_c_function_specifier): Likewise.
6037         (pp_c_declaration_specifiers): Likewise.
6038         (pp_c_direct_declarator): Likewise.
6039         (pp_c_declarator): Likewise.
6040         (pp_c_declaration): Likewise.
6041         (pp_c_statement): Likewise.
6042         (pp_c_integer_constant): Rename from pp_c_integer_literal.
6043         (pp_c_character_constant): Rename from pp_c_character_literal.
6044         (pp_c_bool_constant): Rename from pp_c_bool_literal.
6045         (pp_c_enumeration_constant): Rename from pp_c_enumerator.
6046         (pp_c_floating_constant): Rename from pp_c_real_literal.
6047         (pp_c_constant): Rename from pp_c_literal.
6048         * c-lang.c: Include diagnostic.h and c-pretty-print.h
6049         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): Define.
6050         (c_initialize_diagnostics): New.
6051         * Makefile.in (c-lang.o): Update dependency.
6052
6053 2003-08-10  Nathan Sidwell  <nathan@codesourcery.com>
6054
6055         * c-typeck.c (digest_init): Add conversion for VECTOR_TYPEs.
6056
6057 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
6058
6059         * config/mips/mips.c (mips_no_mips16_string): Remove.
6060         (override_options): Don't handle -mips16 as part of -mipsN.
6061         * config/mips/mips.h (mips_no_mips16_string): Remove declaration.
6062         (TARGET_SWITCHES): Add -mips16 and -mno-mips16 entries.
6063         (TARGET_OPTIONS): Remove -mno-mips16.
6064
6065 2003-08-10  Richard Sandiford  <rsandifo@redhat.com>
6066
6067         * config/mips/mips-protos.h (coprocessor_operand): Remove declaration.
6068         (coprocessor2_operand): Likewise.
6069         * config/mips/mips.c (STAB_CODE_TYPE): Remove.
6070         (lookup_name): Remove declaration.
6071         (abort_with_insn): Remove.  Replace all uses with fatal_insn.
6072         (mips16, mips_abicalls): Remove.
6073         (mips_char_to_class): Remove initialiser: all entries are NO_REGS.
6074         (arith32_operand, large_int, true_reg_or_0_operand): Remove.
6075         (coprocessor_operand, coprocessor2_operand): Remove.
6076         (override_options): Don't set mips16 or mips_abicalls.
6077         (print_operand): Don't expect SIGN_EXTEND operands.
6078         (mips_secondary_reload_class): Likewise.
6079         (mips_output_conditional_branch): Remove disabled long-branch code.
6080         * config/mips/mips.h (call_used_regs): Remove declaration.
6081         (may_call_alloca): Likewise.
6082         (mips_cpu_attr, mips_abicalls_type, mips_abicalls_attr): Remove.
6083         (mips_abicalls, mips16): Remove declarations.
6084         (ASM_FINAL_SPEC, LIB_SPEC): Remove.
6085         (CC1_SPEC): Remove outdated comment.
6086         (MIPS_VERSION, MACHINE_TYPE): Remove.
6087         (TARGET_VERSION_INTERNAL, TARGET_VERSION): Remove.
6088         (PC_REGNUM, STACK_POINTER_OFFSET): Remove disabled definitions.
6089         (STRUCT_VALUE_RETURN_REGNUM, STACK_DYNAMIC_OFFSET): Likewise.
6090         (PUSH_ROUNDING): Likewise.
6091         (ASSEMBLER_SCRATCH_REGNUM): Remove.
6092         * config/mips/mips.md: Replace mips_cpu_attr with mips_tune
6093         and mips16 with TARGET_MIPS16.
6094
6095 2003-08-09  Per Bothner  <pbothner@apple.com>
6096
6097         * cppinit.c (cpp_read_main_file):  Split out source-independent
6098         initialization to separate function ...
6099         (cpp_post_options):  New function.
6100         * cppfiles.c (cpp_stack_file):  Rename public name to ...
6101         (_cpp_stack_file):  New internal function name.
6102         * cpplib.h:  Update accordingly.
6103         * cppinit.c:  (cpp_create_reader):  Initialize cpp_readers line here.
6104         (cpp_read_main_file):  Don't initialize line here.
6105         * c-opts.c (c_common_post_options):  Call cpp_post_options.
6106         (c_common_parse_file):  Call cpp_read_main_file, not cpp_stack_file.
6107         * fix-header.c (read_scan_file):  Call cpp_post_options.
6108
6109 2003-08-09  Per Bothner  <per@bothner.com>
6110
6111         * c-decl.c (SCOPE_LIST_APPEND):  Remove bogus line continuation.
6112
6113 2003-08-09  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6114
6115         * pa.c (pa_asm_output_mi_thunk): Fix typo.
6116
6117 2003-08-09  Neil Booth  <neil@daikokuya.co.uk>
6118
6119         PR preprocessor/11839
6120         * cppfiles.c (open_file): Handle ENOTDIR.
6121
6122 2003-08-09  Richard Sandiford  <rsandifo@redhat.com>
6123
6124         PR target/11699
6125         * config/mips/mips.c (override_options): Reject -mabi=eabi -mabicalls.
6126
6127 2003-08-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6128
6129         * pa.md (extzv, extv, insv): Fix operand limit checks.  Fail if
6130         source/destination is not a register operand.
6131
6132 2003-08-08  Richard Henderson  <rth@redhat.com>
6133
6134         PR target/11535
6135         * config/ia64/ia64.c (ia64_initial_elimination_offset): Remove
6136         RETURN_ADDRESS_POINTER_REGNUM.
6137         (ia64_expand_prologue): Don't frob it.
6138         (ia64_output_function_epilogue): Likewise.
6139         (ia64_return_addr_rtx): New.
6140         (ia64_split_return_addr_rtx): New.
6141         * config/ia64/ia64-protos.h: Update.
6142         * config/ia64/ia64.h (FIRST_PSEUDO_REGISTER): Decrement.
6143         (RETURN_ADDRESS_POINTER_REGNUM): Remove.
6144         (GENERAL_REGNO_P): Don't check it.
6145         (AR_*_REGNUM): Renumber.
6146         (FIXED_REGISTERS): Remove RETURN_ADDRESS_POINTER_REGNUM.
6147         (CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS): Likewise.
6148         (REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Likewise.
6149         (ELIMINABLE_REGS, REGISTER_NAMES): Likewise.
6150         (RETURN_ADDR_RTX): Use ia64_return_addr_rtx.
6151         * config/ia64/ia64.md (UNSPEC_RET_ADDR): New.
6152         (movdi_ret_addr): New.
6153
6154 2003-08-08  Geoffrey Keating  <geoffk@apple.com>
6155
6156         * config.gcc (powerpc-*-darwin*): Don't build a soft-float multilib.
6157
6158 2003-08-08  Roger Sayle  <roger@eyesopen.com>
6159
6160         * tree.h (get_identifier) Define a macro form of get_identifier
6161         that calls get_identifier_with_length when the string is constant.
6162         (get_identifier_with_length): Change type of second argument to
6163         size_t in prototype.
6164         * stringpool.c (get_identifier): Undefine the macro before giving
6165         the function definition.
6166         (get_identifier_with_length): Change  type of second argument to
6167         size_t in function definition.
6168         * hashtable.c (calc_hash): Change type of second argument to size_t.
6169         (ht_lookup): Change type of third argument to size_t.  Reorganize
6170         to speed-up the cases where the hash table slot is empty, or the
6171         first probe matches (i.e. there isn't a collision).
6172         * hashtable.h (ht_lookup): Adjust function prototype.
6173
6174 2003-08-08  Bernardo Innocenti  <bernie@develer.com>
6175
6176         PR target/9697
6177         PR target/11777
6178         * longlong.h (count_leading_zeros): Exclude on __mcpu32__.
6179
6180 2003-08-08  Neil Booth  <neil@daikokuya.co.uk>
6181
6182         * common.opt: Add debug switches.
6183         * flags.h (use_gnu_debug_info_extensions): Boolify.
6184         * opts.c (write_symbols, debug_info_level,
6185         use_gnu_debug_info_extensions): Move from toplev.c.
6186         (set_debug_level): New.
6187         (common_handle_options): Handle debug switches.
6188         (print_help): Display target options directly.
6189         * toplev.c (debug_hooks): Don't initialize.
6190         (write_symbols, debug_info_level,
6191         use_gnu_debug_info_extensions): Move to opts.c.
6192         (debug_args, display_help, decode_g_option): Remove.
6193         (process_options): Set no debug if level zero here,
6194         and no-debug-hooks.  Error here if impossible debug format selected.
6195         * toplev.h (display_help, decode_g_option): Remove.
6196
6197 2003-08-08  Richard Sandiford  <rsandifo@redhat.com>
6198
6199         * tree.c (get_file_function_name_long): Fix size of alloca() area.
6200
6201 2003-08-08  Kelley Cook  <kelleycook@wideopenwest.com>
6202
6203         * configure.in (gcc_cv_prog_cmp_skip): Flipflop make_compare_target
6204         and gcc_cv_prog_cmp_skip.
6205         * configure: Regenerate.
6206
6207 2003-08-08  Stan Cox  <scox@redhat.com>
6208
6209         * config/iq2000: New port.
6210         * config.gcc (iq2000-*-elf): Added.
6211         * doc/install.texi (Specific):  Add iq2000 description.
6212
6213 2003-08-08  Andreas Schwab  <schwab@suse.de>
6214
6215         * configure.in (gcc_cv_as_ia64_ltoffx_ldxmov_relocs): Fix quoting
6216         and insert missing empty argument.
6217         * configure: Regenerate.
6218
6219 2003-08-07  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
6220
6221         * pa.c (update_total_code_bytes): Use new macro IN_NAMED_SECTION_P.
6222         (attr_length_millicode_call): Likewise.
6223         (attr_length_call): Likewise.  Revise some maximum insn lengths.
6224         (attr_length_indirect_call): Likewise.
6225         (output_call): Fix thinko that added extra nop.
6226         * pa.h (IN_NAMED_SECTION_P): Define.
6227
6228         PR c++/11712
6229         * pa-hpux.h, pa-hpux10.h, pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Define
6230         __STDC_EXT__ when using C++ dialect.
6231
6232 2003-08-07  J"orn Rennecke <joern.rennecke@superh.com>
6233
6234         * sh.c (calc_live_regs): If the return address pointer is live,
6235         force pr live.
6236         (sh5_schedule_saves): Exclude PR_MEDIA_REG from being a temp register
6237         for saves / restores.
6238         (sh_expand_epilogue): If sh_media_register_for_return returns a
6239         register number, flag the instructions that restores PR_MEDIA_REG
6240         as possibly dead.
6241         Remove dead update of offset.
6242         (sh_get_pr_initial_val): Use UNSPEC_RA if we don't know yet if
6243         we can use the result of get_hard_reg_initial_val.
6244         * sh.md (UNSPEC_RA): New constant.
6245         (movsi_i_lowpart+1): Changed into a define_insn_and_split, named:
6246         (load_ra).  Handle UNSPEC_RA.
6247         (sibcall_media): Use PR_MEDIA_REG.
6248
6249         * sh.h (CALL_USED_REGISTERS): Include PR_REG and PR_MEDIA_REG.
6250         * sh.c (calc_live_regs): Use sh_pr_n_sets to determine if pr
6251         needs saving on SHmedia.
6252
6253 2003-08-07  Ulrich Weigand  <uweigand@de.ibm.com>
6254
6255         * config/s390/s390.md: Replace all occurrences of \\t with \t.
6256
6257 2003-08-07  Richard Sandiford  <rsandifo@redhat.com>
6258
6259         * local-alloc.c (combine_regs): Fix comment typo.
6260
6261 2003-08-06  Zack Weinberg  <zack@codesourcery.com>
6262
6263         * c-decl.c (builtin_decls): Replace with first_builtin_decl
6264         and last_builtin_decl.
6265         (c_init_decl_processing): Initialize both.
6266         (c_reset_state): Iterate from first_builtin_decl to
6267         last_builtin_decl inclusive to reintroduce builtins.
6268
6269 2003-08-06  David Mosberger  <davidm@hpl.hp.com>
6270
6271         * doc/extend.texi (Function Attributes): Document the IA-64 version
6272         of the "model" attribute.
6273
6274         * config/ia64/ia64.h (SYMBOL_FLAG_SMALL_ADDR): New macro.
6275         (SYMBOL_REF_SMALL_ADDR_P): Ditto.
6276         (PREDICATE_CODES): Mention "small_addr_symbolic_operand".
6277
6278         * config/ia64/ia64.c (ia64_handle_model_attribute): New function.
6279         (ia64_encode_section_info): Likewise.
6280         (ia64_attribute_table): Add "model" attribute.
6281         (TARGET_ENCODE_SECTION_INFO): Define.
6282         (small_addr_symbolic_operand): New function.
6283         (got_symbolic_operand): Return 0 for a symbolref to an object
6284         in the small address area.
6285         (enum ia64_addr_area): New type.
6286         (small_ident1): New variable.
6287         (small_ident2): Likewise.
6288         (init_idents): New function.
6289         (ia64_get_addr_area): Likewise.
6290         (ia64_encode_addr_area): Likewise.
6291         (ia64_encode_section_info): Likewise.
6292         (ia64_expand_load_address): For symbolic references to objects in
6293         the small-address-area, load the address via gen_rtx_SET() (which,
6294         eventually, will expand into "addl").
6295
6296 2003-08-06  Per Bothner  <pbothner@apple.com>
6297
6298         * line-map.h (fileline):  New typedef.
6299         (struct line_map, linemap_add, linemap_lookup):  Use it.
6300         * input.h (struct location_s):  Comment notes that long-term we want
6301         to replace it by fileline.
6302
6303 2003-08-06  J"orn Rennecke <joern.rennecke@superh.com>
6304
6305         Fix SHcompact exception handling:
6306         * sh.c (sh_get_pr_initial_val): If PR is or miight be clobbered
6307         by the prologue, return a MEM with return_address_pointer_rtx
6308         as address.
6309         * sh.h (HARD_REGNO_MODE_OK): PR is OK for SImode.
6310         (RETURN_ADDR_OFFSET): Don't define.
6311         (SH_DBX_REGISTER_NUMBER): Use SHmedia numbers for SHmedia
6312         registers that are visible in compact mode.  Show that SHmedia
6313         registers still exist in compact mode, even if there are not
6314         readily accessible.
6315         (ASM_PREFERRED_EH_DATA_FORMAT): Supply DW_EH_PE_indirect
6316         if GLOBAL.  Use DW_EH_PE_textrel (nominally) for CODE,
6317         and DW_EH_PE_pcrel for pic data.
6318         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): If DW_EH_PE_textrel,
6319         set SYMBOL_FLAG_FUNCTION in symbol, and actually use
6320         DW_EH_PE_pcrel / DW_EH_PE_absptr encoding.
6321         (ALLOCATE_INITIAL_VALUE): Put PR on stack if prologue clobbers it.
6322         * sh.md (movsi_media-1): New splitter.
6323
6324 2003-08-06  Graeme Peterson <gp@qnx.com>
6325
6326         * config/i386/nto.h: New.
6327         * config/i386/t-nto: New.
6328         * config.gcc (i[34567]86-*-nto-qnx*): New.
6329
6330 2003-08-06  Phil Edwards  <pme@gcc.gnu.org>
6331
6332         * doc/install.texi (*-*-solaris2*):  Refine configure instructions.
6333
6334 2003-08-06  Alan Modra  <amodra@bigpond.net.au>
6335
6336         * calls.c (load_register_parameters): Arrange for call_fusage to
6337         report the whole register as used when shifting to the msb.
6338
6339 2003-08-05  Roger Sayle  <roger@eyesopen.com>
6340
6341         * builtins.c (expand_builtin): When not optimizing, call the library
6342         function for all builtins that have library functions (except alloca).
6343
6344 2003-08-05  Alexandre Oliva  <aoliva@redhat.com>
6345
6346         * c.opt: Introduce -fworking-directory.
6347         * doc/cpp.texi, doc/invoke.texi, doc/cppopts.texi: Document it.
6348         * c-common.h (flag_working_directory): Declare.
6349         * c-common.c (flag_working_directory): Define.
6350         * c-opts.c (c_common_handle_options): Set it.
6351         (sanitize_cpp_opts): Set...
6352         * cpplib.h (struct cpp_options): ... working_directory option.
6353         (struct cpp_callbacks): Add dir_change.
6354         * cppinit.c (read_original_filename): Call...
6355         (read_original_directory): New.  Look for # 1 "directory//"
6356         and process it.
6357         (cpp_read_main_file): Call dir_change callback if working_directory
6358         option is set.
6359         * gcc.c (cpp_unique_options): Pass -g*.
6360         * c-lex.c (cb_dir_change): New.
6361         (init_c_lex): Set dir_change callback.
6362         * toplev.c (src_pwd): New static variable.
6363         (set_src_pwd, get_src_pwd): New functions.
6364         * toplev.h (get_src_pwd, set_src_pwd): Declare.
6365         * dbxout.c (dbxout_init): Call get_src_pwd() instead of getpwd().
6366         * dwarf2out.c (gen_compile_unit_die): Likewise.
6367         * dwarfout.c (output_compile_unit_die, dwarfout_init): Likewise.
6368
6369 2003-08-05  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6370
6371         * pretty-print.h (pp_set_line_maximum_length): Make macro.
6372         (pp_set_prefix): Likewise.
6373         (pp_destroy_prefix): Likewise.
6374         (pp_remaining_character_count_for_line): Likewise.
6375         (pp_clear_output_area): Likewise.
6376         (pp_formatted_text): Likewise.
6377         (pp_last_position_in_text): Likewise.
6378         (pp_emit_prefix): Likewise.
6379         (pp_append_text): Likewise.
6380         (pp_flush): Likewise.
6381         (pp_format_text): Likewise.
6382         (pp_format_verbatim): Likewise.
6383         (pp_tree_identifier): Tidy.
6384         * pretty-print.c (pp_base_format_text): Rename from pp_format_text.
6385         (pp_base_format_verbatim): Rename from pp_format_verbatim.
6386         (pp_base_flush): Rename from pp_flush.
6387         (pp_base_set_line_maximum_length): Rename from
6388         pp_set_line_maximum_length.
6389         (pp_base_clear_output_area): Rename from pp_clear_output_area.
6390         (pp_base_set_prefix): Rename from pp_set_prefix.
6391         (pp_base_destroy_prefix): Rename from pp_destroy_prefix.
6392         (pp_base_emit_prefix): Rename from pp_emit_prefix.
6393         (pp_base_append_text): Rename from pp_append_text.
6394         (pp_base_formatted_text): Rename from pp_formatted_text.
6395         (pp_base_last_position_in_text): Rename from pp_last_position_in_text.
6396         (pp_base_remaining_character_count_for_line): Rename from
6397         pp_remaining_character_count_for_line.
6398         * diagnostic.h (diagnostic_format_decoder): Tidy.
6399         (diagnostic_flush_buffer): Likewise.
6400         * c-pretty-print.h: (pp_c_string_literal): Declare.
6401         (pp_c_real_literal): Likewise.
6402         (pp_c_integer_literal): Likewise.
6403         * c-pretty-print.c (pp_c_char): Use pp_string in lieu of
6404         pp_identifier.
6405         (pp_c_character_literal): Tidy.
6406         (pp_c_string_literal): Make public.
6407         (pp_c_bool_literal): Likewise.
6408         (pp_c_integer_literal): Likewise.
6409         (pp_c_real_literal): Likewise.
6410
6411         * Makefile.in (C_PRETTY_PRINT_H): New variable.
6412         (c-pretty-print.o): Update dependence.
6413
6414 2003-08-05  Chris Demetriou  <cgd@broadcom.com>
6415
6416         * config/mips/mips.md (fix_truncdfsi2_macro): Properly restore
6417         ".set nomacro" state.
6418         (fix_truncsfsi2_macro): Likewise.
6419
6420 2003-08-05  Steven Bosscher  <steven@gcc.gnu.org>
6421
6422         * tree.h (DID_INLINE_FUNC): Remove macro.
6423         (DECL_DECLARED_INLINE_P): Move from c-tree.h and cp/cp-tree.h,
6424         add tree check for FUNCTION_DECL.
6425         (DECL_ESTIMATED_INSNS): Move from c-common.h and java/java-tree.h.
6426         (struct tree_decl): Rename inlined_function_flag to
6427         declared_inline_flag.
6428         * c-common.h (c_lang_decl): Remove.
6429         (DECL_ESTIMATED_INSNS): Remove.
6430         * c-tree.h (struct lang_decl): Don't include c_lang_decl.
6431         (DECL_DECLARED_INLINE_P): Remove.
6432         * c-decl.c (grokdeclarator): Update comment.  With -finline-functions,
6433         do not reset DECL_DECLARED_INLINE_P.  Don't use DID_INLINE_FUNC.
6434         (finish_function): Make uninlinable a bool.  Fixup call to
6435         tree_inlinable_function_p() and fix some code style issues.
6436         * cgraph.h (disgread_inline_limits): Fix spelling: `disregard'.
6437         * cgraph.c (dump_cgraph): Likewise.
6438         * cgraphunit.c (cgraph_decide_inlining): Likewise
6439         (cgraph_finalize_compilation_unit): Likewise.
6440         Also update call to tree_inlinable_function_p().
6441         (cgraph_default_inline_p): Don't use DID_INLINE_FUNC.  Instead
6442         look at DECL_DECLARED_INLINE and reverse logic.
6443         * print-tree.c (print_node): Likewise.
6444         * toplev.c (rest_of_handle_inlining): Don't use DID_INLINE_FUNC.
6445         * tree-inline.h (tree_inlinable_function_p): Make a bool.  Update
6446         prototype.
6447         * tree-inline.c (inlinable_function_p): Split up in this function to
6448         check for basic inlining inhibiting conditions, and new
6449         limits_allow_inlining() function.  Warn if inlining is impossible
6450         because the inline candidate calls alloca or uses sjlj exceptions.
6451         (limits_allow_inlining): this new function to check if the inlining
6452         limits are satisfied.  Throttle from currfn_max_inline_insns, not from
6453         MAX_INLINE_INSNS_SINGLE.  The latter only makes sense if
6454         MAX_INLINE_INSNS_AUTO and MAX_INLINE_INSNS_SINGLE are equal.
6455         Update prototypes.
6456         (tree_inlinable_function_p): Make a bool.  Update call to
6457         inlinable_function_p
6458         (expand_call_inline): Use limits_allow_inlining() when not in
6459         unit-at-a-time mode to decide on inlining.  Don't use DID_INLINE_FUNC,
6460         instead see if the function was declared `inline'.
6461
6462 2003-08-05  Josef Zlomek  <zlomekj@suse.cz>
6463
6464         * gcse.c (try_replace_reg): Fix updating of note.
6465
6466 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6467
6468         PR middle-end/11771
6469         * fold-const.c (negate_expr_p <MINUS_EXPR>): Change to match the
6470         logic in negate_expr, i.e. we don't invert (A-B) for floating
6471         point types unless flag_unsafe_math_optimizations.
6472
6473 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6474
6475         * fold-const.c (fold <PLUS_EXPR>): Transform x+x into x*2.0.
6476         Optimize x*c+x and x+x*c into x*(c+1) and x*c1+x*c2 into x*(c1+c2)
6477         for floating point expressions with -ffast-math.
6478         (fold <MULT_EXPR>): Don't transform x*2.0 into x+x.
6479         * expmed.c (expand_mult): Wrap long line.  Expand x*2.0 as x+x.
6480
6481 2003-08-04  Roger Sayle  <roger@eyesopen.com>
6482
6483         * c-common.c (flag_noniso_default_format_attributes): Delete.
6484         (built_in_attribute): Don't define/undefine DEF_FN_ATTR.
6485         (c_attrs_initialized): Delete.
6486         (c_common_nodes_and_builtins): Don't test c_attrs_initialized,
6487         always call c_init_attributes.
6488         (c_init_attributes): Don't define/undefine DEF_FN_ATTR.  Don't
6489         set c_attrs_initialized when done.
6490         (c_common_insert_default_attributes): Delete.
6491         * c-common.h (flag_noniso_default_format_attributes): Delete.
6492         (c_coomon_insert_default_attributes): Delete prototype.
6493         * c-opts.c (set_std_c89, set_std_c99, set_std_cxx98): Dont set
6494         flag_noniso_default_format_attributes.
6495
6496         * c-decl.c (c_insert_default_attributes): Delete.
6497         * c-tree.h (c_insert_default_attributes): Delete prototype.
6498
6499         * attribs.c (decl_attributes): Don't call insert_default_attributes
6500         langhook.  Update function description comment.
6501         * langhooks.h (lang_hooks): Remove insert_default_attributes field.
6502         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Delete.
6503         * c-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't define.
6504         * system.h: Poison LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES macro.
6505
6506         * objc/objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Don't
6507         define.
6508
6509 2003-08-04  Richard Sandiford  <rsandif@redhat.com>
6510
6511         * config/mips/mips.c (override_options): Disable -G on targets that
6512         have no .section support.
6513         (mips_select_section): Use default_select_section for such targets.
6514
6515 2003-08-04  Nathanael Nerode  <neroden@gcc.gnu.org>
6516
6517         * fixinc/inclhack.def (svr4_undeclared_getrnge): Introduce and enable.
6518         * fixinc/inclhack.def (static_getrnge): Remove disabled hack.
6519         * fixinc/fixincl.x: Rebuild.
6520         * fixinc/tests/base/regexp.h: New test.
6521
6522 2003-08-04  Alexandre Oliva  <aoliva@redhat.com>
6523
6524         * c-ppoutput.c (cb_line_change): Don't skip line changing while
6525         parsing macro arguments in the top-level context.
6526
6527 2003-08-04  Neil Booth  <neil@daikokuya.co.uk>
6528
6529         * config.in: Remove HAVE_LSTAT.
6530         * configure, configure.in: Don't test for lstat.
6531
6532 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6533
6534         * opts.c (decode_options): Do language-specific initialization for
6535         the global diagnostic context.
6536         * langhooks-def.h (lhd_initialize_diagnostics): Declare.
6537         (LANG_HOOKS_INITIALIZE_DIAGNOSTITCS): New macro.
6538         (LANG_HOOKS_INITIALIZER): Adjust.
6539         * langhooks.h (struct lang_hooks): Add new field
6540         initialize_diagnostics.
6541         * langhooks.c (lhd_initialize_diagnostics): Define.
6542
6543 2003-08-03  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6544
6545         * pretty-print.h:   Adjust macro definitions.
6546         * pretty-print.c (pp_newline): Rename to pp_base_newline.
6547         (pp_character): Rename to pp_base_character.
6548         (pp_string): Rename to pp_base_string.
6549         * c-pretty-print.c (pp_buffer): Move to pretty-print.h
6550         (pp_newline):  Likewise.  Adjust.
6551         (pp_c_char): Adjust.
6552
6553 2003-08-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6554
6555         * builtins.def (BUILT_IN_ABS, BUILT_IN_IMAXABS, BUILT_IN_LABS,
6556         BUILT_IN_LLABS): Move to miscellaneous section.
6557
6558 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
6559
6560         PR preprocessor/11534
6561         * cppexp.c (parse_defined): Warn only if -pedantic.
6562
6563 2003-08-03  Neil Booth  <neil@daikokuya.co.uk>
6564
6565         * cppfiles.c (stack_file): Use file path.
6566
6567 2003-08-02  Roger Sayle  <roger@eyesopen.com>
6568
6569         * builtin-types.def (BT_SSIZE): New primitive type.
6570         (BT_FN_INT_PTR_CONST_STRING_VALIST_ARG,
6571         BT_FN_STRING_CONST_STRING_CONST_STRING_INT,
6572         BT_FN_SIZE_STRING_SIZE_CONST_STRING_CONST_PTR,
6573         BT_FN_SSIZE_STRING_SIZE_CONST_STRING_VAR): New function types.
6574         * builtins.def (BUILT_IN_DCGETTEXT, BUILT_IN_DGETTEXT,
6575         BUILT_IN_FSCANF, BUILT_IN_GETTEXT, BUILT_IN_STRFMON,
6576         BUILT_IN_STRFTIME, BUILT_IN_VFPRINTF, BUILT_IN_VFSCANF): New builtins.
6577         * builtin-attrs.def: Remove DEF_FN_ATTR construct and the last
6578         few functions that define default attributes using it.
6579         * c-common.c (c_common_insert_default_attributes): Do nothing.
6580
6581         * doc/extend.texi: Document these "new" builtins.
6582
6583 2003-08-02  Kaz Kojima  <kkojima@gcc.gnu.org>
6584
6585         * config/sh/linux.h (SUBTARGET_LINK_SPEC): Don't set rpath.
6586         (LIB_SPEC): Set -lpthread always when -pthread set.  Set -lieee
6587         when -mieee-fp set and -shared not set.
6588         (SH_FALLBACK_FRAME_FLOAT_STATE): Don't define for SH5.
6589
6590 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
6591
6592         * cppfiles.c (struct _cpp_file): Rename once_only_next to
6593         next_file.  Remove import and pragma_once, add once_only.
6594         (find_file): Add new file structures to the all_files list.
6595         (should_stack_file): Mark #import-ed files once-only, and
6596         don't stack them if the file has already been stacked.
6597         (_cp_mark_file_once_only): Simplify.
6598         * cpphash.h (struct cpp_reader): Rename once_only_files
6599         to all_files.  Rename saw_pragma_once to seen_once_only.
6600         (_cpp_mark_file_once_only): Update prototype.
6601         * cpplib.c (do_pragma_once): Update.
6602
6603 2003-08-02  Neil Booth  <neil@daikokuya.co.uk>
6604
6605         * cppfiles.c (ENOTDIR): Remove.
6606         (open_file_in_dir): Rename find_file_in_dir.  Handle errors
6607         other than ENOENT here.
6608         (once_only_file_p): Rename should_stack_file.
6609         (find_file, open_file_failed, read_file_guts): Report errors
6610         with full path name.
6611         (read_file): Move pch handling to should_stack_file.
6612         (should_stack_file): Handle PCH and once-only issues, and
6613         reading the file.
6614         (stack_file): Don't do file reads.
6615
6616 2003-08-02  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6617
6618         * libgcov.c (gcov_exit): Cleanup and fix.
6619         * profile.c (compute_value_histograms): Don't try to read profiles
6620         that are not present.
6621
6622 2003-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6623
6624         * builtins.def: Categorize.
6625
6626         * builtins.def (BUILT_IN_CABS, BUILT_IN_CABSF, BUILT_IN_CABSL):
6627         Mind fp rounding.
6628         (BUILT_IN_FFSL): Use DEF_EXT_LIB_BUILTIN.
6629
6630 2003-08-02  Andreas Tobler  <a.tobler@schweiz.ch>
6631
6632         * config.gcc: Enable posix threads by default on darwin.
6633
6634 2003-08-01  Jakub Jelinek  <jakub@redhat.com>
6635
6636         * cfgcleanup.c (outgoing_edges_match): Check REG_EH_REGION notes
6637         even if nehedges1 is 0.
6638
6639 2003-08-01  Nathanael Nerode  <neroden@gcc.gnu.org>
6640
6641         * fixinc/fixfixes.c, fixinc/fixlib.c, fixinc/fixlib.h,
6642         fixinc/fixtests.c, fixinc/procopen.c, fixinc/server.c,
6643         fixinc/server.h, fixinc/fixincl.c: ANSIfy function prototypes
6644         and defintions.
6645
6646         * fixinc/inclhack.def (broken_cabs): Make matching more generous.
6647         * fixinc/fixincl.x: Regenerate.
6648         * fixinc/tests/base/math.h: Regenerate to match test_text change.
6649
6650 2003-08-01  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6651
6652         * ggc-common.c (gt_pch_restore): Case MAP_FAILED to void *.
6653
6654 2003-08-01  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6655
6656         * except.c (sjlj_emit_dispatch_table): Use ptr_mode, not Pmode,
6657         for accesses to exc_ptr.
6658
6659 2003-08-01  Geoffrey Keating  <geoffk@apple.com>
6660
6661         * doc/sourcebuild.texi (Front End Directory): Don't make references
6662         to libsubdir, it's not part of the interface to frontends.
6663         * doc/install.texi (Configuration): Help users read faster by saying
6664         that GCC's configure options are the standard autoconf ones.
6665         Mention --libdir.  Update the default rules for finding the
6666         assembler.  Don't use libsubdir since we haven't said what it means.
6667         (Specific): In the Solaris 7 notes, update the place to put the
6668         assembler.
6669         * doc/invoke.texi: Update lib/gcc-lib to lib/gcc.
6670         * doc/cpp.texi (Search Path): Actually, the search path
6671         depends on libdir, which can relocate with cpp.
6672         * doc/tm.texi (Driver): Don't document STANDARD_EXEC_PREFIX, it's
6673         now a private interface between the Makefile and the driver.
6674
6675 2003-08-01  Richard Henderson  <rth@redhat.com>
6676
6677         * system.h: Poison ASM_SIMPLIFY_DWARF_ADDR.
6678
6679         * varasm.c (lookup_constant_def): New function.
6680         * rtl.h (lookup_constant_def): Declare it.
6681         * dwarf2out.c (loc_descriptor_from_tree): Use it.
6682         Use targetm.delegitimize_address, not ASM_SIMPLIFY_DWARF_ADDR.
6683
6684 2003-08-01  Zack Weinberg  <zack@codesourcery.com>
6685
6686         * c-decl.c (gettags, pushdecl_function_level): Delete.
6687         (last_function_parm_vars): Rename last_function_parm_others.
6688         (current_function_parm_vars): Rename current_function_parm_others.
6689         (struct c_scope): Rewrite comment explaining this data structure.
6690         Add names_last, blocks_last, parms_last fields.  Rename
6691         incomplete_list to incomplete.
6692         (SCOPE_LIST_APPEND, SCOPE_LIST_CONCAT): New macros.
6693         (poplevel): Ignore second argument.  No need to nreverse
6694         anything.  Restructure such that each list is processed
6695         exactly once.  Use 'const location_t *locus' syntactic sugar
6696         variable where useful.  Issue unused variable warnings
6697         ourselves, do not rely on function.c.
6698         (insert_block, pushdecl, bind_label): Use SCOPE_LIST_APPEND.
6699         (pushdecl_top_level): Likewise.  Don't call duplicate_decls.
6700         (implicitly_declare): decl cannot be error_mark_node.
6701         (undeclared_variable): Manipulate scope structure directly.
6702         (c_make_fname_decl): Likewise.
6703         (getdecls, c_init_decl_processing): Fix comment.
6704         (mark_forward_parm_decls): Use SCOPE_LIST_CONCAT.  No need
6705         for 'last' variable.
6706         (grokparms): No need to nreverse parms list.
6707         (store_parm_decls_newstyle): Set up the parms_last and
6708         names_last fields of the new scope too.
6709         (store_parm_decls_oldstyle): Can assume DECL_WEAK is not set
6710         on parms to begin with; check this under ENABLE_CHECKING.  Set
6711         up parms_last.
6712         (check_for_loop_decls): Refer directly to current_scope->tags.
6713         Use consistent quote style in diagnostics.
6714         (c_write_global_declarations): The names list is not backward.
6715
6716         * c-common.h: Don't prototype gettags.
6717         * c-parse.in: Call poplevel with second argument 0 always.
6718
6719 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6720
6721         * builtins.def: Resort builtins.
6722
6723 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6724
6725         * builtins.def (DEF_GCC_BUILTIN, DEF_LIB_BUILTIN,
6726         DEF_EXT_LIB_BUILTIN, DEF_C99_BUILTIN, DEF_C99_C90RES_BUILTIN):
6727         Prepend "__builtin_" onto NAME with string concatenation.  Remove
6728         explicit "__builtin_" from each macro call.
6729
6730         Reformat entire file.
6731
6732 2003-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6733
6734         * builtins.def (ATTR_MATHFN_ERRNO, ATTR_MATHFN_FPROUNDING,
6735         ATTR_MATHFN_FPROUNDING_ERRNO): New macros.  Use throughout.
6736
6737 2003-08-01  Andreas Krebbel  <krebbel1@de.ibm.com>
6738
6739         * config/s390/s390.c (s390_select_ccmode): Do not attempt to use CCL,
6740         CCL1, or CCL2 modes with floating point operations.
6741
6742         * config/s390/s390.md ("*addsf3_cc", "*addsf3_cconly", "*adddf3_cc",
6743         "*adddf3_cconly", "*subsf3_cc", "*subsf3_cconly", "*subdf3_cc",
6744         "*subdf3_cconly"): New insns.
6745         ("*negabssi2", "*negabsdi2", "*negabsdf2", "*negabssf2"): Likewise.
6746
6747 2003-08-01  Neil Booth  <neil@daikokuya.co.uk>
6748
6749         * Makefile.in: Refine dependencies.
6750         * c-opts.c (c_common_handle_option): Do nothing for -Wimport.
6751         * c.opt: Update help for -Wimport.
6752         * cppfiles.c: Include hashtab.h.  Update comments.
6753         (stack_file): Read the file before updating dependencies.
6754         (once_only_file_p): Be smarter about marking once-only files.
6755         (_cpp_mark_file_once_only): Correct the check for existence on
6756         the list.
6757         (open_file_failed): Use name not path, which is NULL.
6758         * cpphash.h: Don't include hashtab.h.
6759         (struct _cpp_file): Remove.
6760         (struct cpp_reader): Update.
6761         * cppinit.c (cpp_create_reader): Don't initialize warn_import.
6762         * cpplib.h (struct cpp_options): Remove warn_import.
6763         (cpp_simplify_path): Remove.
6764
6765 2003-08-01  Nathan Sidwell  <nathan@codesourcery.com>
6766
6767         PR c++/11295
6768         * doc/extend.texi (Statement Expressions): Document C++ semantics.
6769
6770 2003-07-31  SUGIOKA Toshinobu  <sugioka@itonet.co.jp>
6771
6772         * config.gcc (sh-*-linux*): Do not override sh/t-linux with sh/t-le.
6773
6774 2003-07-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6775
6776         * builtin-types.def: Use `LONGDOUBLE' instead of `LONG_DOUBLE'
6777         throughout.
6778         * builtins.def: Likewise.
6779
6780 2003-07-31  Jason Merrill  <jason@redhat.com>
6781
6782         * Makefile.in (bubblestrap): Don't require a previous full
6783         bootstrap.
6784
6785         * expr.c (mostly_zeros_p): No longer static.
6786         * tree.h: Declare it.
6787         * stmt.c (resolve_asm_operand_names): Don't copy the pattern
6788         unless we need to do substitutions.
6789
6790 2003-07-31  Roger Sayle  <roger@eyesopen.com>
6791
6792         * fold-const.c (fold <MULT_EXPR>): Optimize both x*pow(x,c) and
6793         pow(x,c)*x as pow(x,c+1) for constant values c.  Optimize x*x
6794         as pow(x,2.0) when the latter will be expanded back into x*x.
6795         (fold <RDIV_EXPR>): Optimize pow(x,c)/x as pow(x,c-1).
6796         * builtins.c (expand_builtin_pow): Ignore flag_errno_math as
6797         pow can never set errno when used with an integer exponent.
6798         Always use expand_powi when exponent is -1, 0, 1 or 2.
6799         (fold_builtin): Don't rewrite pow(x,2.0) as x*x nor pow(x,-2.0)
6800         as 1.0/(x*x).  This avoids unbounded recursion as we now prefer
6801         the pow forms of these expressions.
6802
6803 2003-07-31  Geoffrey Keating  <geoffk@apple.com>
6804
6805         * Makefile.in (libexecdir): New.
6806         (libsubdir): Use gcc instead of gcc-lib.
6807         (libexecsubdir): New.
6808         (ORDINARY_FLAGS_TO_PASS): Add libexecsubdir.
6809         (DRIVER_DEFINES): Add STANDARD_LIBEXEC_PREFIX, use gcc instead of
6810         gcc-lib.
6811         (installdirs): Make libexecsubdir.
6812         (install-common): Put executables in libexecsubdir.
6813         (itoolsdir): Use libexecsubdir.
6814         (itoolsdatadir): New.
6815         (install-mkheaders): Separate data files and executables.
6816         (install-collect2): Put executables in libexecsubdir.
6817         (uninstall): Remove libexecsubdir.
6818         * mkheaders.in: Update for new arrangement of files.
6819         (libexecdir): New.
6820         (libexecsubdir): New.
6821         (itoolsdir): Use libexecsubdir.
6822         (itoolsdatadir): New.
6823         * gcc.c (gcc_libexec_prefix): New.
6824         (STANDARD_LIBEXEC_PREFIX): Use gcc instead of gcc-lib.
6825         (standard_exec_prefix_1): Use libexec.
6826         (standard_exec_prefix_2): New.
6827         (standard_libexec_prefix): New.
6828         (process_command): Update for new arrangement of files.  Compute
6829         gcc_libexec_prefix.  Update for change from gcc-lib to gcc.
6830
6831 2003-07-31  Nathanael Nerode  <neroden@gcc.gnu.org>
6832
6833         * inclhack.def (stdio_va_list): Avoid bogus replacement which
6834         triggers on Interix.
6835         * fixincl.x: Regenerate.
6836
6837 2003-07-31  Jakub Jelinek  <jakub@redhat.com>
6838
6839         * config/i386/i386.c (legitimate_pic_address_disp_p): Disallow TLS
6840         SYMBOL_REFs not inside UNSPEC even in PLUS rtx.
6841
6842 2003-07-31  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6843
6844         * dwarf2out.c (loc_descriptor_from_tree, case CONSTRUCTOR): New case.
6845
6846 2003-07-31  Per Bothner  <pbothner@apple.com>
6847
6848         * opts.c (in_fnames, num_in_fnames):  Moved here from c-opts.
6849         (add_input_filename):  New function.
6850         (handle_options):  Call add_input_filename directly instead of
6851         with a lang hook.
6852         * opts.h (in_fnames, num_in_fnames):  Moved here.
6853         (add_input_filename):  Declare.
6854         * c-decl.c:  Need to #include opts.h.
6855         * Makefile.in (c-decl.o):  Also depends on opts.h.
6856         * c-opts.c (in_fnames, num_in_fnames):  Moved to opts.c.
6857         (c_common_handle_filename):  Replaced by add_input_filename.
6858         * c-common.h (in_fnames, num_in_fnames, c_common_handle_filename):
6859         Remove.
6860         * langhooks.h (struct lang_hooks):  Remove handle_filename hook.
6861         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
6862         (LANG_HOOKS_INITIALIZER):  Remove use of LANG_HOOKS_HANDLE_FILENAME.
6863         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME):  Remove macro.
6864
6865 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6866
6867         * combine.c (try_combine): Set JUMP_LABEL for newly created
6868         unconditional jump.
6869
6870 2003-07-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6871
6872         * fold-const.c (fold): Fold some comparisons of bit operations.
6873
6874 2003-07-31  Jan Hubicka  <jh@suse.cz>
6875
6876         * cgraph.c (create_edge): Fix typo.
6877         * i386.c (pic_symbolic_operand): Reorder tests.
6878
6879 2003-07-31  Nathan Sidwell  <nathan@codesourcery.com>
6880
6881         * doc/gcov.texi (Invoking Gcov): Describe output name mangling
6882         more fully.
6883         (Gcov Data Files): Update.
6884
6885 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6886
6887         * config.gcc (alpha*-dec-osf[45]*): Enable POSIX thread support by
6888         default.
6889
6890         * gthr-posix.c: New file.
6891         * gthr-posix.h: Define _REENTRANT if missing.
6892         Make _LIBOBJC #pragma weak visible with _LIBOBJC_WEAK.
6893
6894         * config/alpha/t-osf4 (SHLIB_LINK): Hide dummy functions provided
6895         by gthr-posix.o.
6896         * config/alpha/t-osf-pthread: New file.
6897
6898         * fixinc/inclhack.def (alpha_pthread): New fix.
6899         * fixinc/fixincl.x: Regenerate.
6900         * fixinc/tests/base/pthread.h [ALPHA_PTHREAD_CHECK]: New testcase.
6901
6902         * doc/install.texi (alpha*-dec-osf*): Remove --enable-threads
6903         warning.
6904         Fixes PR bootstrap/9330.
6905
6906 2003-07-31  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6907
6908         * configure.in (gcc_cv_ld_hidden): Also disable on mips-sgi-irix5*
6909         without GNU ld.
6910         Update comment.
6911         * configure: Regenerate.
6912
6913 2003-07-31  Vladimir Makarov  <vmakarov@redhat.com>
6914
6915         * sched-deps.c (sched_analyze_2): Prevent interblock move of CC0
6916         setter.
6917
6918 2003-07-30  Roger Sayle  <roger@eyesopen.com>
6919
6920         * builtins.def: Alphabetize.
6921
6922 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
6923
6924         * doc/c-tree.texi: Normalize spellings of "lowercase" and
6925         "uppercase".
6926         * doc/cpp.texi: Likewise.
6927         * doc/md.texi: Likewise.
6928         * doc/rtl.texi: Likewise.
6929         * doc/tm.texi: Likewise.
6930
6931 2003-07-30  Matt Kraai  <kraai@alumni.cmu.edu>
6932
6933         * objc/Make-lang.in (objc.stage1, objc.stage2, objc.stage3)
6934         (objc.stage4, objc.stageprofile, objc.stagefeedback): Remove moves
6935         of cc1obj.
6936
6937 2003-07-30  Chris Demetriou  <cgd@broadcom.com>
6938
6939         * config/mips/mips.h (SIZE_TYPE, PTRDIFF_TYPE): Undef these
6940         macros before defining them.
6941
6942 2003-07-31  Ulrich Weigand  <uweigand@de.ibm.com>
6943
6944         * config/s390/s390.md (UNSPEC_ROUND, UNSPEC_SETHIGH,
6945         UNSPECV_BLOCKAGE): New constants.
6946         ("*sethighqisi", "*sethighhisi", "*sethiqidi_64", "*sethiqidi_31",
6947         "*extractqi", "*extracthi", "*extendqidi2" splitter, "*extendqisi2"
6948         splitter, "fix_truncdfdi2_ieee", "fix_truncdfsi2_ieee",
6949         "fix_truncsfdi2", "fix_truncsfsi2", "blockage"): Use them.
6950
6951         (all insns and expanders): Write output control string as brace block
6952         where appropriate.  Remove \-escapes for doublequote characters.
6953
6954 2003-07-31  Jan Hubicka  <jh@suse.cz>
6955
6956         * gcse.c (insert_store): Fix typo in previous patch.
6957
6958 2003-07-30  Neil Booth  <neil@daikokuya.co.uk>
6959
6960         * cppfiles.c (stack_file, open_file_failed): Use path for deps.
6961
6962 2003-07-30  Andi Kleen  <ak@muc.de>
6963
6964         * loop.c (check_dbra_loop): Allow LTU in the loop condition.
6965
6966 2003-07-30  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
6967
6968         * combine.c (distribute_notes): Cancel REG_VALUE_PROFILE notes.
6969         * gcov-io.h (GCOV_FIRST_VALUE_COUNTER, GCOV_LAST_VALUE_COUNTER,
6970         GCOV_N_VALUE_COUNTERS): New.
6971         * profile.c (compute_value_histograms): New static function.
6972         (branch_prob): Read back the value histograms.
6973         * rtl.c (reg_note_name): Add name for REG_VALUE_PROFILE note.
6974         * rtl.h (enum reg_note): Add REG_VALUE_PROFILE note.
6975         * value-prof.c: Add comment on reading the profile.
6976         * value-prof.h (COUNTER_FOR_HIST_TYPE, HIST_TYPE_FOR_COUNTER): New.
6977         * doc/invoke.texi (-fprofile-values): Document behavior with
6978         -fbranch-probabilities.
6979
6980 2003-07-30  David Edelsohn  <edelsohn@gnu.org>
6981
6982         * longlong.h (PowerPC umul_ppmm): Do not test __vxworks__.
6983
6984 2003-07-30  Ulrich Weigand  <uweigand@de.ibm.com>
6985
6986         * config/s390/s390.h (EH_RETURN_HANDLER_RTX): Compute offset
6987         symbolically.
6988
6989 2003-07-30  Jan Hubicka  <jh@suse.cz>
6990
6991         * gcse.c (insert_store): Ignore fake edges.
6992
6993         * c-common.c (flag_vtable_gc): Kill.
6994         * c-common.g (flag_vtable_gc): Kill.
6995         * c-opts (c_common_handle_option): Kill.
6996         * c.opt (fvtable-gc): Kill.
6997         * final.c (final_scan_insn): Do not call assemble_vtable_entry.
6998         * output.h (assemble_vtable_entry, assemble_vtable_inherit): Kill.
6999         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): Kill.
7000
7001         * invoke.texi (-ftable-gc): Kill documentation.
7002
7003         * tree-inline.c (inlinable_function_p): Don't set DECL_UNINLINABLE
7004         just because function body is missing.
7005
7006         * i386.c (pic_symbolic_operand): Properly detect RIP relative unspecs.
7007
7008 2003-07-30  Ranjit Mathew  <rmathew@hotmail.com>
7009
7010         * unwind-sjlj.c: Fix typo in file description.
7011
7012 2003-07-30  Alan Modra  <amodra@bigpond.net.au>
7013
7014         * calls.c (load_register_parameters): When shifting reg sized values
7015         to the msb, move the value to a reg first.
7016
7017 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
7018
7019         * cppfiles.c (stack_file): Leave filename as "" rather than "<stdin>".
7020         * line-map.h (linemap_add): Update comments.
7021         * line-map.c (linemap_add): Update comments, interpret zero-length
7022         filename as "<stdin>".
7023
7024 2003-07-29  Nathanael Nerode  <neroden@gcc.gnu.org>
7025
7026         * mkinstalldirs: Import autoconf 2.57 / automake 1.7 version.
7027
7028 2003-07-29  Zack Weinberg  <zack@codesourcery.com>
7029
7030         * c-decl.c (last_function_parm_vars, current_function_parm_vars):
7031         New static variables.
7032         (struct c_scope): Add parms and warned_forward_parm_decls
7033         fields; remove parm_order.
7034         (storedecls, storetags): Delete.
7035         (poplevel): Also clear bindings on the parms chain.
7036         (pushdecl): Handle forward declarations of parameters, and
7037         chain PARM_DECLs on the parms list, not the names list.
7038         (lookup_name_current_level): Check for PARM_DECLs on the parms
7039         list too.
7040         (push_parm_decl): Don't update parm_order.
7041         (clear_parm_order): Rename mark_forward_parm_decls.  Issue the
7042         warning, only once per parameter list, and set TREE_ASM_WRITTEN
7043         on the decls here.  Then move the forward decls to the names list.
7044         (grokparms): Set last_function_parm_vars.
7045         (get_parm_info): Don't use gettags or getdecls.  No need to
7046         extract non-parms from the parms list, or reorganize the parms
7047         list.  Feed nonparms back in the TREE_TYPE of the list node
7048         returned.  Issue only one error per parameter list for "void"
7049         appearing more than once in said parameter list.  Collapse
7050         parmlist_tags_warning into this function to avoid double scan
7051         of tags list.
7052         (start_function): Set current_function_parm_vars.
7053         (store_parm_decls_newstyle): Bypass pushdecl, manipulate scope
7054         directly.  Get non-parms from current_function_parm_vars; no
7055         need to extract them from the parms chain.  Properly bind tags
7056         in the new scope.
7057         (store_parm_decls_oldstyle): No need to extract non-parameters
7058         from the parms chain, nor to store them back afterward.  Move
7059         declaration to top of function, restructure code reordering
7060         DECL_ARGUMENTS.
7061         (store_parm_decls): No need to save and restore warn_shadow.
7062         * c-parse.in: Don't call parmlist_tags_warning nor
7063         clear_parm_order.  Call mark_forward_parm_decls when forward
7064         parm decls are encountered.
7065         * c-tree.h: Prototype mark_forward_parm_decls; not
7066         clear_parm_order or parmlist_tags_warning.
7067
7068 2003-07-29  Geoffrey Keating  <geoffk@apple.com>
7069
7070         * c-common.c (allow_pch): Remove.
7071         * c-common.h (allow_pch): Remove.
7072         (c_common_no_more_pch): Declare.
7073         * c-lex.c (c_lex): Call c_common_no_more_pch when appropriate.
7074         * c-pch.c: Include hosthooks.h.
7075         (c_common_valid_pch): Don't check allow_pch.
7076         (c_common_read_pch): Clear valid_pch to prevent reading PCH files.
7077         (c_common_no_more_pch): New.
7078         * ggc-common.c: Include hosthooks.h.
7079         (gt_pch_save): Call gt_pch_get_address.
7080         (gt_pch_restore): Call gt_pch_use_address.
7081         * hooks.c (hook_voidp_size_t_null): New.
7082         (hook_bool_voidp_size_t_false): New.
7083         * hooks.h (hook_voidp_size_t_null): New.
7084         (hook_bool_voidp_size_t_false): New.
7085         * hosthooks-def.h (HOST_HOOKS_GT_PCH_GET_ADDRESS): New.
7086         (HOST_HOOKS_GT_PCH_USE_ADDRESS): New.
7087         (HOST_HOOKS_INITIALIZER): Add HOST_HOOKS_GT_PCH_GET_ADDRESS,
7088         HOST_HOOKS_GT_PCH_USE_ADDRESS.
7089         * hosthooks.h (struct host_hooks): Add gt_pch_get_address,
7090         gt_pch_use_address.
7091         * doc/hostconfig.texi (Host Common): Document
7092         HOST_HOOKS_GT_PCH_GET_ADDRESS, HOST_HOOKS_GT_PCH_USE_ADDRESS.
7093         * Makefile.in (c-pch.o): Depend on hosthooks.h.
7094         (ggc-common.o): Likewise.
7095
7096         * config/rs6000/host-darwin.c (HOST_HOOKS_GT_PCH_GET_ADDRESS): Define.
7097         (HOST_HOOKS_GT_PCH_USE_ADDRESS): Define.
7098         (pch_address_space): New.
7099         (darwin_rs6000_gt_pch_get_address): New.
7100         (darwin_rs6000_gt_pch_use_address): New.
7101
7102 2003-07-29  Neil Booth  <neil@daikokuya.co.uk>
7103
7104         PR preprocessor/11569
7105         PR preprocessor/11649
7106         * Makefile.in (LIBCPP_DEPS): Add HASHTAB_H.
7107         * cppfiles.c: Completely rewritten.
7108         * c-incpath.c (free_path, remove_duplicates, heads, tails, add_path):
7109         struct cpp_path is now struct cpp_dir.
7110         (remove_duplicates): Don't simplify path names.
7111         * c-opts.c (c_common_parse_file): cpp_read_next_file renamed
7112         cpp_stack_file.
7113         * cpphash.h: Include hashtab.h.
7114         (_cpp_file): Declare.
7115         (struct cpp_buffer): struct include_file is now struct _cpp_file,
7116         and struct cpp_path is now struct cpp_dir.  Rename members.
7117         (struct cpp_reader): Similarly.  New members once_only_files,
7118         file_hash, file_hash_entries, quote_ignores_source_dir,
7119         no_search_path, saw_pragma_once.  Remove all_include_files and
7120         max_include_len.  Make some members bool.
7121         (_cpp_mark_only_only): Renamed from _cpp_never_reread.
7122         (_cpp_stack_file): Renamed from _cpp_read_file.
7123         (_cpp_stack_include): Renamed from _cpp_execute_include.
7124         (_cpp_init_files): Renamed from _cpp_init_includes.
7125         (_cpp_cleanup_files): Renamed from _cpp_cleanup_includes.
7126         * cppinit.c (cpp_create_reader): Initialize no_search_path.  Update.
7127         (cpp_read_next_file): Rename and move to cppfiles.c.
7128         (cpp_read_main_file): Update.
7129         * cpplib.c (run_directive): Update for renamed members.
7130         (do_include_common, _cpp_pop_buffer): Update.
7131         (do_import): Undeprecate #import.
7132         (do_pragma_once): Undeprecate.  Use _cpp_mark_file_once_only.
7133         * cpplib.h: Remove file_name_map_list.
7134         (cpp_options): Remove map_list.
7135         (cpp_dir): Rename from cpp_path.  New datatype for name_map.
7136         (cpp_set_include_chains, cpp_stack_file, cpp_included): Update.
7137
7138 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
7139
7140         * Makefile.in:  Make stamp-objdir safe for parallel builds.
7141
7142 2003-07-29  Phil Edwards  <pme@gcc.gnu.org>
7143
7144         * Makefile.in (stmp-docobjdir):  New target; ensure $docobjdir exists.
7145         (info):  Depend on stmp-docobjdir.
7146
7147 2003-07-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7148
7149         * configure: Regenerate.
7150
7151 2003-07-29  Jan Hubicka  <jh@suse.cz>
7152
7153         PR C++/11131
7154         * tree-inline.c (expand_call_inline): Always call inlinable_function_p
7155         in !unit-at-a-time mode.
7156
7157 2003-07-28  Geoffrey Keating  <geoffk@apple.com>
7158
7159         * c-decl.c (c_expand_body_1): Use C_DECL_FILE_SCOPE to detect
7160         main function.
7161
7162 2003-07-28  Mark Mitchell  <mark@codesourcery.com>
7163
7164         PR c++/11667
7165         * c-common.c (shorten_compare): Take into account differences
7166         between C and C++ representation for enumeration types.
7167         * tree.h (set_min_and_max_values_for_integral_type): Declare.
7168         * stor-layout.c (set_min_and_max_values_for_integral_type): New
7169         function, broken out from ...
7170         (fixup_signed_type): ... here and ...
7171         (fixup_unsigned_type): ... here.
7172
7173 2003-07-28  Zack Weinberg  <zack@codesourcery.com>
7174
7175         * c-decl.c: Update commentary, adjust blank lines throughout.
7176         (struct c_scope): Fix indentation.  Reorder members so
7177         outer-context pointers come first, booleans last.
7178         (duplicate_decls, define_label): Use a 'locus' variable for
7179         diagnostic locations in a few more places.
7180         (warn_if_shadowing): Un-split a conditional that fits on one line.
7181         (c_init_decl_processing): No need to clear current_scope and
7182         current_function_scope.
7183         (start_decl): Merge if/else if statements with same action.
7184         (push_parm_decl): Rename old_immediate_size_expand to use
7185         save_foo convention; save/restore around entire function.
7186         (grokdeclarator): Remove unnecessary braces.
7187
7188 2003-07-28  Hans-Peter Nilsson  <hp@bitrange.com>
7189             Michael Culbertson  <Michael.J.Culbertson@wheaton.edu>
7190
7191         * c-parse.in (lineno_stmt_decl_or_labels_ending_decl): Also warn
7192         when warn_declaration_after_statement.  Call pedwarn_c90, not
7193         pedwarn.  Correct message: it's "ISO C90", not "ISO C89".
7194         * c-common.c (warn_declaration_after_statement): Define.
7195         * c-common.h (warn_declaration_after_statement): Declare.
7196         * c.opt (Wdeclaration-after-statement): New.
7197         * c-errors.c (pedwarn_c90): New function.
7198         * c-opts.c (c_common_handle_option) <case
7199         OPT_Wdeclaration_after_statement>: New.
7200         * c-tree.h (pedwarn_c90): Declare.
7201         * doc/invoke.texi (Option Summary): Document
7202         -Wdeclaration-after-statement.
7203         (Warning Options): Ditto.
7204
7205 2003-07-28  Jan Hubicka  <jh@suse.cz>
7206
7207         * i386.md (memory attribute) Avoid accessing uninitialized memory
7208         for ishift1 type instructions.
7209
7210 2003-07-28  Jakub Jelinek  <jakub@redhat.com>
7211
7212         * configure.in (--enable-checking): Add fold category.
7213         (ENABLE_FOLD_CHECKING): Define if requested.
7214         * configure: Rebuilt.
7215         * config.in: Rebuilt.
7216         * doc/install.texi: Document it.
7217         * fold-const.c: Include md5.h.
7218         [ENABLE_FOLD_CHECKING] (fold): Define to fold_1.
7219         [ENABLE_FOLD_CHECKING] (fold, fold_checksum_tree, fold_check_failed,
7220         print_fold_checksum): New functions.
7221
7222         * fold-const.c (fold): Never modify argument passed to fold, instead
7223         change a copy and return it.
7224         * convert.c (convert_to_integer): Likewise.
7225
7226 2003-07-27  Nathanael Nerode  <neroden@gcc.gnu.org>
7227
7228         * fixinc/fixinc.svr4: Remove dead code.  Remove now-unnecessary
7229         cleanup of junk after #else and #endif directives.  Collapse repeated
7230         clauses into for statment.
7231
7232         * fixinc/fixincl.sh: GNU C -> GCC.  Add usage comment.
7233
7234 2003-07-27  Zack Weinberg  <zack@codesourcery.com>
7235
7236         * c-decl.c (struct c_scope): Remove keep_if_subblocks field.
7237         (keep_next_if_subblocks): Rename next_is_function_body.
7238         (pushlevel): Adjust commentary.  Always set ->keep on the
7239         outermost level of a function.  Don't set ->keep_if_subblocks.
7240         (poplevel): Adjust commentary.  Don't look at ->keep_if_subblocks.
7241         (store_parm_decls): Adjust to match.
7242         (finish_function): Adjust to match.
7243         Call poplevel with all three arguments zero.
7244
7245         * c-decl.c (store_parm_decls_newstyle, store_parm_decls_oldstyle):
7246         New functions split out of store_parm_decls.
7247         Avoid unnecessary work. Use local variables consistently.
7248         (store_parm_decls): Likewise.
7249
7250         (finish_function): No need to set functionbody flag on call to
7251         poplevel.
7252         (struct language_function): Remove scope field.
7253         (c_push_function_context, c_pop_function_context): No need to
7254         save and restore current_scope.
7255
7256 2003-07-27  Nathan Sidwell  <nathan@codesourcery.com>
7257
7258         * doc/extend.texi (Deprecated Features): Implicit typename is
7259         gone. Default args on types is going.
7260
7261 2003-07-26  J"orn Rennecke <joern.rennecke@superh.com>
7262
7263         * Makefile.in (ifcvt.o): Depend on target.h
7264         * ifcvt.c (target.h): Include.
7265         (if_convert): Don't call mark_loop_exit_edges if we can't
7266         modify jumps.
7267
7268 2003-07-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7269
7270         * doc/install.texi (Testing): Adjust required versions of DejaGnu.
7271
7272 2003-07-26  Richard Henderson  <rth@redhat.com>
7273
7274         PR inline-asm/11676
7275         * cse.c (count_reg_usage): Handle asm_operands properly.
7276
7277 2003-07-26  Roger Sayle  <roger@eyesopen.com>
7278
7279         * builtins.def (DEF_FALLBACK_BUILTIN): Delete.
7280         (DEF_EXT_FALLBACK_BUILTIN): Delete.
7281         (BUILT_IN_BZERO, BUILT_IN_BCOPY, BUILT_IN_BCMP): Declare using
7282         the regular DEF_EXT_LIB_BUILTIN macro.
7283         (BUILT_IN_FPUTC, BUILT_IN_FPUTS, BUILT_IN_FWRITE): Declare using
7284         the regular DEF_LIB_BUILTIN macro.
7285         (BUILT_IN_PUTCHAR_UNLOCKED, BUILT_IN_PUTS_UNLOCKED,
7286         BUILT_IN_FPUTC_UNLOCKED, BUILT_IN_FPUTS_UNLOCKED,
7287         BUILT_IN_FWRITE_UNLOCKED): Declare using the regular
7288         DEF_EXT_LIB_BUILTIN macro.
7289
7290         * c-decl.c (duplicate_decls): Remove code to handle builtin
7291         functions prototyped without an argument list.
7292
7293 2003-07-26  Danny Smith  <dannysmith@users.sourceforge.net>
7294
7295         * config/i386/winnt.c: Revert 2003-07-08 change.
7296         (i386_pe_section_type_flags): Remove error_with_decl here too.
7297
7298 2003-07-26  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7299
7300         * config/arm/pe.c (arm_mark_dllimport): Don't use xxx_with_decl.
7301         * config/mcore/mcore.c (mcore_mark_dllimport): Likewise.
7302         * config/v850/v850.c (v850_handle_data_area_attribute): Likewise.
7303         (v850_handle_data_area_attribute): Likewise.
7304
7305 2003-07-26  Geoffrey Keating  <geoffk@apple.com>
7306
7307         * varasm.c (output_constant_def_contents): Use
7308         ASM_DECLARE_CONSTANT_NAME if defined.
7309         * doc/tm.texi (Label Output): Document ASM_DECLARE_CONSTANT_NAME.
7310         * config/darwin.h (ASM_DECLARE_OBJECT_NAME): Ensure zero-sized
7311         objects get at least one byte to prevent assembler problems.
7312         (ASM_DECLARE_CONSTANT_NAME): New.
7313
7314         * Makefile.in (libbackend.o): Remove options_.h.
7315         (mostlyclean): Likewise.
7316
7317         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Don't
7318         insert a label at the end of an function under Mach-O.
7319
7320         * c-decl.c (c_static_assembler_name): Remove TREE_STATIC test.
7321
7322 2003-07-25  Aldy Hernandez  <aldyh@redhat.com>
7323
7324         * config/rs6000/rs6000.c (is_ev64_opaque_type): Only check pointer
7325         equality.
7326         (spe_init_builtins): Declare __ev64_opaque__ as a builtin type.
7327
7328         * config/rs6000/spe.h: Remove __ev64_opaque__ definition.
7329
7330 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7331
7332         * doc/passes.texi (Passes): Mention pretty-printing and
7333         diagnostic files.
7334
7335 2003-07-25  Nathan Sidwell  <nathan@codesourcery.com>
7336
7337         * doc/extend.texi (Function Attributes): GNU C++ does now allow
7338         unused parameter decls.
7339         (Attribute Syntax): GNU C++ does not allow label attributes to be
7340         after the ':'.
7341
7342 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7343
7344         * objc/objc-act.c (objc_check_decl): Don't use xxx_with_decl.
7345         (objc_declare_class): Likewise.
7346         (error_with_ivar): Likewise.
7347         (start_class): Likewise.
7348         (warn_with_method): Likewise.
7349
7350 2003-07-25  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7351
7352         Remove pedwarn_with_decl, warning_with_decl and error_with_decl
7353         from GCC.
7354         * calls.c (try_to_integrate): Don't use xxx_with_decl.
7355         (expand_call): Likewise.
7356         * dwarfout.c (output_reg_number): Likewise.
7357         * expr.c (expand_expr): Likewise.
7358         * function.c (assign_temp): Likewise.
7359         (uninitialized_vars_warning): Likewise.
7360         (setjmp_args_warning): Likewise.
7361         (expand_function_end): Likewise.
7362         * stmt.c (fixup_gotos): Likewise.
7363         (warn_about_unused_variables): Likewise.
7364         (expand_end_bindings): Likewise.
7365         * stor-layout.c (layout_decl): Likewise.
7366         (place_field): Likewise.
7367         * toplev.c (check_global_declarations): Likewise.
7368         (rest_of_handle_inlining): Likewise.
7369         (default_tree_printer): New function.
7370         (general_init): Initialize diagnostic machinery before routing
7371         signals to the ICE machinery.  Set default tree printer.
7372         * toplev.h (pedwarn_with_decl): Remove declaration.
7373         (warning_with_decl): Likewise.
7374         (error_with_decl): Likewise.
7375         (pedwarn): Remove attribute for the time being.
7376         * tree-inline.c (expand_call_inline): Don't use xxx_with_decl.
7377         * varasm.c (named_section): Likewise.
7378         (make_decl_rtl): Likewise.
7379         (assemble_variable): Likewise.
7380         (merge_weak): Likewise.
7381         (declare_weak): Likewise.
7382
7383         * diagnostic.h: Move non-diagnostic stuff into pretty-print.h.
7384         * diagnostic.c: Move non-diagnostic stuff into pretty-print.c.
7385         (format_with_decl): Remove.
7386         (diagnostic_for_decl): Likewise.
7387         (pedwarn_with_decl): Likewise.
7388         (warning_with_decl): Likewise.
7389         (error_with_decl): Likewise.
7390         (diagnostic_initialize): Adjust.
7391         (diagnostic_count_diagnostic): Likewise.
7392         (announce_function): Likewise.
7393         (lhd_print_error_function): Likewise.
7394         (diagnostic_report_current_module): Likewise.
7395         (default_diagnostic_starter): Likewise.
7396         (diagnostic_report_diagnostic): Likewise.
7397         (default_diagnostic_finalizer): Likewise.
7398         (verbatim): Likewise.
7399         (error): Likewise.
7400         (warning): Likewise.
7401         * opts.c (common_handle_option): Likewise.
7402         * pretty-print.c: New file.
7403         * c-pretty-print.h (pp_base): Override.
7404         * c-pretty-print.c: Adjust use of macros throughout.
7405         (pp_buffer): New macro.
7406         (pp_newline): Likewise.
7407         * c-objc-common.c (c_tree_printer): Adjust prototype. Tidy.
7408         * Makefile.in (DIAGNOSTIC_H): New variable.
7409         (c-errors.o): Use it.
7410         (c-objc-common.o): Likewise.
7411         (c-common.o): Likewise.
7412         (c-opts.o): Likewise.
7413         (c-format.o): Likewise.
7414         (diagnostic.o): Likewise.
7415         (opts.o): Likewise.
7416         (toplev.o): Likewise.
7417         (rtl-error.o): Likewise.
7418         (dwarf2out.o): Likewise.
7419         (jump.o): Likewise.
7420         (pretty-print.o): New rule.
7421
7422 2003-07-24  Roger Sayle  <roger@eyesopen.com>
7423
7424         * builtins.def (BUILT_IN_PRINTF, BUILT_IN_FPRINTF): Changed from
7425         front-end builtins to normal builtins, using DEF_LIB_BUILTIN.
7426         (BUILT_IN_PRINTF_UNLOCKED, BUILT_IN_FPRINTF_UNLOCKED): Changed
7427         from front-end to normal builtins, using DEF_EXT_LIB_BUILTIN.
7428         (DEF_FRONT_END_LIB_BUILTIN): Delete.
7429         (DEF_EXT_FRONT_END_LIB_BUILTIN): Delete.
7430         (BUILT_IN_FWRITE_UNLOCKED): Wrap long line.
7431
7432         * builtins.c (build_string_literal): New function to construct
7433         a char* pointer to a string literal.
7434         (expand_builtin_fputs): Change 2nd argument from "int ignore" to
7435         "rtx target" to be consistent with other expand_builtin_* functions.
7436         Change 3rd argument from "int unlocked" to "bool unlocked".
7437         (expand_builtin_printf): Rewrite of c_expand_builtin_printf from
7438         c-common.c to avoid front-end dependencies.  Optimize printf("")
7439         as a no-op when the result isn't required.  Handle embedded NULs
7440         in format string.
7441         (expand_builtin_fprintf): A rewrite of c_expand_builtin_fprintf
7442         from c-common.c to avoid front-end dependencies.  Likewise, optimize
7443         fprintf(fp,"") as a no-op when the result isn't required, evaluating
7444         fp for side-effects.  Handle embedded NULs in format string.
7445         (expand_builtin_sprintf): Fix typo.
7446         (expand_builtin): Don't expand BUILT_IN_FPRINT{,_UNLOCKED} when not
7447         optimizing.  Adjust calls of expand_builtin_fputs to match the API
7448         change. Expand BUILT_IN_PRINTF and BUILT_IN_PRINTF_UNLOCKED using
7449         expand_builtin_printf.  Likewise, expand BUILT_IN_FPRINTF_UNLOCKED
7450         and BUILT_IN_FPRINTF using expand_builtin_fprintf.
7451
7452         * c-common.c (is_valid_printf_arglist): Delete.
7453         (c_expand_builtin): Delete.
7454         (c_expand_builtin_printf): Moved to builtins.c. Delete.
7455         (c_expand_builtin_fprintf): Moved to builtins.c.  Delete.
7456         (c_expand_expr): No longer treat CALL_EXPRs specially.
7457         (CALLED_AS_BUILT_IN): Delete.
7458
7459 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7460
7461         PR optimization/11631
7462         * gcse.c (store_motion): Connect infinite loops to exit.
7463
7464 2003-07-24  Jason Merrill  <jason@redhat.com>
7465
7466         * tree.h (boolean_type_node): Move from C/C++/Java frontends.
7467         (boolean_true_node, boolean_false_node): Likewise.
7468         (enum tree_index): Add TI_BOOLEAN_{TYPE,FALSE,TRUE}.
7469         * tree.c (build_common_tree_nodes): Init boolean_type_node.
7470         (build_common_tree_nodes_2): Init boolean_{true,false}_node.
7471         * stor-layout.c (set_sizetype): Handle an early BOOLEAN_TYPE.
7472         * c-common.h (truthvalue_type_node): Renamed from boolean_type_node.
7473         (truthvalue_true_node): Renamed from boolean_true_node.
7474         (truthvalue_false_node): Renamed from boolean_false_node.
7475         * c-decl.c: Just set truthvalue_* to integer_*.
7476         * c-*.[ch]: s/boolean/truthvalue/.  s/c_bool/boolean/.
7477
7478 2003-07-24  Roger Sayle  <roger@eyesopen.com>
7479
7480         * c-decl.c (match_builtin_function_types): New subroutine of
7481         duplicate_decls to test whether a redeclaration of a builtin
7482         function is suitably close, i.e. the return type and all of
7483         the argument types have the same modes as the builtin expects.
7484         (duplicate_decls): Fuzzy type matching for builtin functions
7485         moved to match_builtin_function_types.
7486
7487 2003-07-24  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7488
7489         * cfgloopmanip.c (duplicate_loop_to_header_edge): Update irreducible
7490         flag correctly.
7491
7492 2003-07-24  Zack Weinberg  <zack@codesourcery.com>
7493
7494         * c-decl.c: Search-and-replace change 'binding level' to
7495         'scope' in commentary.
7496         (struct binding_level): Now struct c_scope.
7497         (current_binding_level): Now current_scope.
7498         (free_binding_level): Now scope_freelist.
7499         (current_function_level): Now current_function_scope.
7500         (global_binding_level): Now global_scope.
7501         (make_binding_level): Now make_scope.
7502         (pop_binding_level): Now pop_scope.
7503
7504 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7505
7506         * configure.in (libgcc_visibility): Add missing whitespace.
7507
7508 2003-07-24  Richard Henderson  <rth@redhat.com>
7509
7510         * libgcc-std.ver (GCC_3.3.1): Export __gcc_personality_sj0,
7511         __gcc_personality_v0.
7512
7513 2003-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7514
7515         * Makefile.in: Replace pwd by ${PWD_COMMAND}.
7516
7517 2003-07-24  Nathan Sidwell  <nathan@codesourcery.com>
7518
7519         * doc/invoke.texi (-fprofile-arcs, -ftest-coverage): Update
7520         documentation missed from my 2003-07-09 patch.
7521
7522 2003-07-24  Nathanael Nerode  <neroden@gcc.gnu.org>
7523
7524         * aclocal.m4 (_gcc_COMPUTE_GAS_VERSION): Set patch level to 0 if
7525         it's not provided.
7526         * configure: Rebuild.
7527
7528 2003-07-24  Steven Bosscher  <steven@gcc.gnu.org>
7529
7530         PR c/10602
7531         * c-typeck.c (type_lists_compatible_p): Do not compare
7532         arguments if one of them is an error_mark_node
7533
7534 2003-07-24  Alan Modra  <amodra@bigpond.net.au>
7535
7536         * config/rs6000/rs6000.c (rs6000_emit_prologue): Save fp regs inline
7537         if current_function_calls_eh_return.
7538
7539 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
7540
7541         * doc/c-tree.texi (OFFSET_TYPE): Update description.
7542
7543 2003-07-23  Bob Wilson  <bob.wilson@acm.org>
7544
7545         * config/xtensa/crti.asm (_init, _fini): Increase frame size to 64.
7546         * config/xtensa/lib1funcs.asm (__mulsi3, __udivsi3, __divsi3,
7547         __umodsi3, __modsi3): Increase frame size to 32.
7548
7549 2003-07-23  Geoffrey Keating  <geoffk@apple.com>
7550
7551         * config/rs6000/host-darwin.c: ANSIfy, update comment for sigaltstack
7552         prototype.
7553
7554 2003-07-23  Mark Mitchell  <mark@codesourcery.com>
7555
7556         * doc/c-tree.texi (Types): Update documentation for OFFSET_TYPE.
7557
7558         PR optimization/10679
7559         * tree-inline.c (inlinable_function_p): Honor MIN_INLINE_INSNS.
7560
7561 2003-07-23  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
7562
7563         PR target/11607 and PR target/11516
7564         * pa.md (extzv, extv, insv): Revert latter half of last patch.
7565
7566 2003-07-22  Mark Mitchell  <mark@codesourcery.com>
7567
7568         * fold-const.c (force_fit_type): Handle OFFSET_TYPE.
7569         * varasam.c (output_constant): Likewise.
7570
7571 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
7572
7573         * alias.c: Fix comment formatting.
7574         * c-common.c: Likewise.
7575         * c-decl.c: Likewise.
7576         * c-opts.c: Likewise.
7577         * combine.c: Likewise.
7578         * cpplib.c: Likewise.
7579         * diagnostic.c: Likewise.
7580         * dojump.c: Likewise.
7581         * final.c: Likewise.
7582         * fold-const.c: Likewise.
7583         * gcc.c: Likewise.
7584         * gcse.c: Likewise.
7585         * ggc-page.c: Likewise.
7586         * jump.c: Likewise.
7587         * loop.c: Likewise.
7588         * mips-tfile.c: Likewise.
7589         * recog.c: Likewise.
7590         * regclass.c: Likewise.
7591         * regmove.c: Likewise.
7592         * tree.c: Likewise.
7593         * tree.h: Likewise.
7594
7595 2003-07-22  Per Bothner  <pbothner@apple.com>
7596
7597         * line-map.c (add_line_map):  Handle invalid LEAVE request.
7598         Fixes PR preprocessor/11361.
7599
7600 2003-07-22  Per Bothner  <pbothner@apple.com>
7601
7602         * diagnostic.c.(diagnostic_report_current_module):  Update to match
7603         2003-06-05 changes to push_srcloc and pop_srcloc.
7604
7605 2003-07-22  Wolfgang Bangerth  <bangerth@dealii.org>
7606
7607         * doc/trouble.texi: Better document two-stage name lookup.
7608
7609 2003-07-22  Eric Christopher <echristo@redhat.com>
7610
7611         * config/s390.c (s390_valid_pointer_mode): New.
7612         (TARGET_VALID_POINTER_MODE): Use.
7613         (s390_emit_prologue): Add tpf profiling hooks.
7614         (s390_emit_epilogue): Ditto.
7615         * config/s390.h (MASK_TPF): New.
7616         (TARGET_TPF): Use.
7617         (POINTERS_EXTEND_UNSIGNED): Define.
7618         * config/s390.md (ptr_extend): New pattern.
7619
7620 2003-07-22  Zack Weinberg  <zack@codesourcery.com>
7621
7622         * hashtable.c (approx_sqrt): Make static.
7623         * hashtable.h: Don't prototype approx_sqrt.
7624         * line-map.c (init_line_maps): Rename linemap_init.
7625         (free_line_maps): Rename linemap_free.
7626         (add_line_map): Rename linemap_add.
7627         (lookup_line): Rename linemap_lookup.
7628         (print_containing_files): Rename linemap_print_containing_files.
7629         * linemap.h: Update to match.
7630
7631         * cpperror.c, cppinit.c, cpplib.c, cppmacro.c: Update calls to
7632         linemap routines to use new names.
7633
7634 2003-07-16  Nathan Sidwell  <nathan@codesourcery.com>
7635
7636         * c-common.c (handle_packed_attribute): Don't pack a struct via a
7637         typedef. Propagate packedness from a main variant.
7638
7639 2003-07-22  Nathanael Nerode  <neroden@gcc.gnu.org>
7640
7641         * Makefile.in (install-common): Add dependency on installdirs.
7642
7643 2003-07-21  Alexandre Oliva  <aoliva@redhat.com>
7644
7645         * c-common.c (c_common_type_for_mode): Return integer types for
7646         pointer modes.
7647
7648 2003-07-22  Geoffrey Keating  <geoffk@apple.com>
7649
7650         * c-decl.c (start_decl): Don't call maybe_apply_pragma_weak here.
7651         (finish_decl): Call maybe_apply_pragma_weak here.
7652         (grokdeclarator): Check that DECL_ASSEMBLER_NAME isn't set before
7653         TREE_PUBLIC and TREE_STATIC are decided.
7654         (start_function): Move call to maybe_apply_pragma_weak.  Check that
7655         DECL_ASSEMBLER_NAME isn't set too early.
7656
7657         * cpplex.c (_cpp_process_line_notes): Mention option name in
7658         trigraphs warning.
7659
7660 2003-07-22  Kazu Hirata  <kazu@cs.umass.edu>
7661
7662         * combine.c (if_then_else_cond): Simplify the comparison of
7663         rtx against -1, 0, and 1.
7664         * loop.c (check_dbra_loop): Likewise.
7665         * optabs.c (emit_conditional_move): Likewise.
7666         (emit_conditional_add): Likewise.
7667         * config/i386/i386.md (*movsi_or): Likewise.
7668         (*movdi_or_rex6): Likewise.
7669
7670 2003-07-22  Jan Hubicka  <jh@suse.cz>
7671
7672         * cgraphunit.c (cgraph_finalize_compilation_unit): Remove redundant if.
7673
7674 2003-07-21  Neil Booth  <neil@daikokuya.co.uk>
7675
7676         * cppfiles.c (open_file_pch): Don't put unused entries in the
7677         splay tree.  Remove dead code.
7678
7679 2003-07-21  Geoffrey Keating  <geoffk@apple.com>
7680
7681         * c-common.h (num_in_fnames): Declare.
7682         (c_static_assembler_name): Move from here...
7683         * c-tree.h (c_static_assembler_name): ... to here.
7684         * c-opts.c: Don't include langhooks-def.h.
7685         (c_static_assembler_name): Move to c-decl.c.
7686         (num_in_fnames): Make externally visible.
7687         * c-decl.c: Include langhooks-def.h.
7688         (c_static_assembler_name): Move from c-opts.c.
7689         * Makefile.in (c-decl.o): Add $(LANGHOOKS_DEF_H).
7690         (c-opts.o): Remove $(LANGHOOKS_DEF_H).
7691
7692         * c-pragma.c (maybe_apply_pragma_weak): Don't get DECL_ASSEMBLER_NAME
7693         when it's not needed.
7694
7695 2003-07-21  Jakub Jelinek  <jakub@redhat.com>
7696
7697         * config/rs6000/rs6000.h (machine_function): Add ra_need_lr.
7698         * config/rs6000/rs6000.c (rs6000_return_addr): Set it.
7699         (rs6000_emit_prologue): Save FPRs inline if set.
7700
7701 2003-07-21  H.J. Lu <hongjiu.lu@intel.com>
7702
7703         * config/ia64/ia64.md (prefetch): Support predicate.
7704
7705 2003-07-21  Josef Zlomek  <zlomekj@suse.cz>
7706
7707         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Use tablejump_p.
7708         * rtlanal.c (tablejump_p): Use next_active_insn for finding the jump
7709         table.
7710
7711 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
7712
7713         PR optimization/11536
7714         * unroll.c (loop_iterations): Do not replace a register holding
7715         the final value by its equivalent before the loop if it is not
7716         invariant.
7717
7718 2003-07-21  Dave Fluri  <dave.fluri@onlink.net>
7719
7720         * doc/extend.texi: Fixes to spelling, grammar, and diction.
7721
7722 2003-07-21  Ben Elliston  <bje@wasabisystems.com>
7723
7724         * doc/invoke.texi (Optimize Options): Replace "it's" with "its".
7725         (V850 Options): Spelling fixes.
7726
7727 2003-07-20  Lisa M. Goldstein  <opus@gnu.org>
7728
7729         * doc/invoke.texi: Fixes to style, grammar and diction.
7730
7731 2003-07-20  Roger Sayle  <roger@eyesopen.com>
7732
7733         * builtins.def (BUILT_IN_ALLOCA): Remove "#if SMALL_STACK" form.
7734         * system.h (SMALL_STACK): Poison obsolete target macro.
7735         * doc/tm.texi (SMALL_STACK): Remove target macro documentation.
7736
7737 2003-07-20  Phil Edwards  <pme@gcc.gnu.org>
7738
7739         * configure.in:  Cache the results of testing for cmp's capabilities.
7740         * configure:  Regenerate.
7741
7742 2003-07-20  Mark Mitchell  <mark@codesourcery.com>
7743
7744         PR debug/11279
7745         * dwarf2out.c (gen_enumeration_type_die): Remember that
7746         enumerators can be unsigned.
7747
7748 2003-07-19  Zack Weinberg  <zack@codesourcery.com>
7749
7750         * c-decl.c (named_labels, shadowed_labels, label_level_chain)
7751         (push_label_level, pop_label_level): Kill.
7752         (struct binding_level): Rename level_chain to outer.
7753         Add outer_function field.  Change parm_flag, function_body,
7754         keep, keep_if_subblocks to 1-bit bitfields of type bool.
7755         (current_function_level): New variable.
7756         (keep_next_level_flag, keep_next_if_subblocks): Change type to bool.
7757         (keep_next_level, declare_parm_level, warn_if_shadowing):
7758         Update to match.
7759         (struct language_function): Kill named_labels, shadowed_labels fields.
7760         (c_init_decl_processing, start_function, c_push__function_context)
7761         (c_pop_function_context): No need to muck with named_labels nor
7762         shadowed_labels.
7763
7764         (make_binding_level): No need to clear the structure here.
7765         (pop_binding_level): Always operate on current_binding_level.
7766         Update current_function_level if necessary.
7767         (pushlevel): Don't clear named_labels.  Update current_function_level
7768         if necessary.  Use "true" and "false" where appropriate.
7769         (poplevel): Diagnose labels defined but not used, or vice
7770         versa, and clear out label-meanings leaving scope, while
7771         walking down the decls list, for all binding levels.
7772         Handle LABEL_DECLs appearing in the shadowed list.
7773         pop_binding_level takes no arguments.
7774         (pushdecl_function_level): Use current_function_level.
7775
7776         (make_label, bind_label): New static functions.
7777         (declare_label): New exported function.
7778         (lookup_label, define_label): Rewritten for new data structure.
7779         (shadow_label): Kill.
7780
7781         * c-tree.h: Prototype declare_label; don't prototype
7782         push_label_level, pop_label_level, nor shadow_label.
7783         * c-parse.in: Remove all calls to push_label_level and
7784         pop_label_level.  Use declare_label for __label__ decls.
7785
7786         * doc/extend.texi: Clarify that __label__ can be used to
7787         declare labels with local scope in any nested block, not
7788         just statement expressions.  Cross-reference nested functions
7789         section from local labels section.
7790
7791 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7792
7793         * sched-rgn.c (find_rgns): Initialize current_edge correctly.
7794
7795 2003-07-19  Phil Edwards  <pme@gcc.gnu.org>
7796
7797         * doc/makefile.texi (restrap, profiledbootstrap):  Document targets.
7798
7799 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7800
7801         * fixinc/fixfixes.c fixinc/fixincl.c fixinc/fixlib.c
7802         fixinc/server.c objc/objc-act.c: Remove unnecessary casts.
7803
7804 2003-07-19  Ulrich Weigand  <uweigand@de.ibm.com>
7805
7806         * config/s390/s390.c (legitimize_pic_address): Access local symbols
7807         relative to the GOT instead of relative to the literal pool base.
7808         (s390_output_symbolic_const): Handle new GOT-relative accesses.
7809         * config/s390/s390.md ("call"): Access local functions and PLT stubs
7810         relative to the GOT instead of relative to the literal pool base.
7811         ("call_value"): Likewise.
7812         ("call_value_tls"): Likewise.
7813
7814         * config/s390/s390.c (s390_chunkify_start): Remove pool anchor
7815         reloading.  Support LTREL_BASE / LTREL_OFFSET construct.
7816         (s390_chunkify_finish): Likewise.
7817         (s390_chunkify_cancel): Likewise.
7818         (s390_reorg): Adapt caller.
7819         (find_base_register_in_addr,
7820         find_base_register_ref, replace_base_register_ref): Delete.
7821         (find_ltrel_base, replace_ltrel_base): New functions.
7822         (find_constant_pool_ref): Handle LTREL_BASE unspecs.
7823         (s390_decompose_address): Handle LTREL_BASE unspecs.  Optimize
7824         base vs. index register usage.
7825         (struct constant_pool): Remove 'anchor'.
7826         (s390_add_anchor): Delete.
7827         (s390_dump_pool): Remove anchor handling.
7828         * config/s390/s390.md ("reload_anchor"): Remove.
7829
7830         * config/s390/s390.c (s390_split_branches): Use LTREL_BASE/OFFSET.
7831         (s390_load_got): New function.  Use LTREL_BASE/OFFSET.
7832         (s390_emit_prologue): Use it.
7833         * config/s390/s390.md ("builtin_longjmp", "builtin_setjmp_setup",
7834         "builtin_setjmp_receiver"): Cleanup.  Use s390_load_got.  Do not
7835         hard-code register 14.
7836         * config/s390/s390-protos.h (s390_load_got): Declare.
7837
7838         * config/s390/s390.c (NR_C_MODES, constant_modes, gen_consttable):
7839         Support TImode constants.
7840         * config/s390/s390.md ("consttable_ti"): New.
7841         ("consttable_si", "consttable_di"): Handle TLS symbols correctly.
7842
7843         * config/s390/s390.md (UNSPEC_LTREL_OFFSET, UNSPEC_LTREL_BASE,
7844         UNSPEC_GOTENT, UNSPEC_GOT, UNSPEC_GOTOFF, UNSPEC_PLT, UNSPEC_PLTOFF,
7845         UNSPEC_RELOAD_BASE, UNSPECV_POOL, UNSPECV_POOL_START, UNSPECV_POOL_END,
7846         UNSPECV_POOL_QI, UNSPECV_POOL_HI, UNSPECV_POOL_SI, UNSPECV_POOL_DI,
7847         UNSPECV_POOL_TI, UNSPECV_POOL_SF, UNSPECV_POOL_DF, UNSPECV_MAIN_POOL):
7848         New symbolic constants.
7849         ("consttable_qi", "consttable_hi", "consttable_si", "consttable_di",
7850         "consttable_sf", "consttable_df", "pool_start_31", "pool_end_31",
7851         "pool_start_64", "pool_end_64", "reload_base_31", "reload_base_64",
7852         "pool", "literal_pool_31", "literal_pool_64"): Cleanup.  Use
7853         symbolic UNSPEC values.
7854         * config/s390/s390.c (larl_operand, s390_short_displacement,
7855         bras_sym_operand, s390_cannot_force_const_mem,
7856         s390_delegitimize_address, s390_decompose_address,
7857         legitimize_pic_address, s390_output_symbolic_const,
7858         s390_function_profiler): Use symbolic UNSPEC values.
7859
7860 2003-07-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7861
7862         * alias.c alloc-pool.c bitmap.c bitmap.h bt-load.c builtins.c
7863         c-common.c c-decl.c c-incpath.c c-lex.c c-opts.c c-parse.in
7864         c-pragma.c c-typeck.c calls.c cfg.c cfganal.c cfgloop.c cfgrtl.c
7865         collect2.c combine.c conflict.c coverage.c cppexp.c cppfiles.c
7866         cpphash.c cppinit.c cpplex.c cpplib.c cppmacro.c cppspec.c
7867         cpptrad.c cse.c cselib.c dbxout.c defaults.h df.c dominance.c
7868         dwarf2out.c dwarfout.c emit-rtl.c except.c expmed.c expr.c final.c
7869         fix-header.c flow.c fold-const.c function.c gcc.c gccspec.c gcov.c
7870         gcse.c genattr.c genattrtab.c genautomata.c genconditions.c
7871         genemit.c genextract.c genoutput.c genrecog.c gensupport.c
7872         ggc-page.c ggc-simple.c global.c graph.c haifa-sched.c hashtable.c
7873         integrate.c jump.c langhooks.c lcm.c line-map.c local-alloc.c
7874         loop.c mips-tdump.c mips-tfile.c mkdeps.c optabs.c params.c
7875         postreload.c prefix.c print-tree.c protoize.c ra-build.c
7876         ra-colorize.c ra-rewrite.c ra.c recog.c reg-stack.c regclass.c
7877         regmove.c regrename.c reload.c reload1.c reorg.c resource.c
7878         sbitmap.c sched-deps.c sched-rgn.c sched-vis.c sdbout.c
7879         simplify-rtx.c ssa-ccp.c ssa.c stmt.c stor-layout.c timevar.c
7880         tlink.c toplev.c tree-dump.c tree.c unroll.c unwind-dw2-fde.c
7881         varasm.c varray.c vmsdbgout.c xcoffout.c: Remove unnecessary
7882         casts.
7883
7884 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7885
7886         * c-pragma.c (apply_pragma_weak): Don't use warning_with_decl.
7887         * toplev.h (warning): Remove attribute.
7888
7889 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7890
7891         * c-decl.c (c_finish_incomplete_decl): Don't use xxx_with_decl.
7892         (pop_label_level): Likewise.
7893         (duplicate_decls): Likewise.
7894         (implicitly_declare): Likewise.
7895         (shadow_label): Likewise.
7896         (start_decl): Likewise.
7897         (finish_decl): Likewise.
7898         (grokdeclarator): Likewise.
7899         (get_parm_info): Likewise.
7900         (detect_field_duplicates): Likewise.
7901         (finish_struct): Likewise.
7902         (start_function): Likewise.
7903         (store_parm_decls): Likewise.
7904         (finish_function): Likewise.
7905         (c_expand_body_1): Likewise.
7906         (check_for_loop_decls): Likewise.
7907         (merge_translation_unit_decls): Likewise.
7908
7909 2003-07-19  Neil Booth  <neil@daikokuya.co.uk>
7910
7911         * common.opt:  Document --param.
7912         * opts.c (columns, undocumented_msg): New.
7913         (print_help): Get number of columns from environment.  Print
7914         --param help.  Tweak newline handling.
7915         (print_param_help): New.
7916         (print_filtered_help): Better handling of duplicates.  Complain
7917         about undocumented switches.
7918         (print_switch): New.
7919         (wrap_help): Improve wrapping, use COLUMNS.
7920         * opts.sh: Ignore comments in records.
7921         * params.def: Fix typos and remove trailing periods.
7922         * toplev.c (display_help): Don't dump --param help.
7923         * doc/sourcebuild.texi: Update.
7924
7925 2003-07-18  Richard Henderson  <rth@redhat.com>
7926
7927         PR target/11556
7928         * optabs.c (prepare_operand): Fail gracefully instead of abort
7929         if the predicate doesn't satisfy.
7930         (gen_cond_trap): Allow prepare_operand to fail.
7931
7932 2003-07-19  Gabriel Dos Reis  <gdr@integrable-solutions.net>
7933
7934         * c-common.c: Don't undefine GCC_DIAG_STYLE.
7935         (fname_decl): Don't use xxx_with_decl.
7936         (c_add_case_label): Likewise.
7937         (handle_section_attribute): Likewise.
7938         (handle_alias_attribute): Likewise.
7939         (handle_no_instrument_function_attribute): Likewise.
7940         (handle_no_limit_stack_attribute): Likewise.
7941         * c-objc-common.c (c_tree_printer): Print IDENTIFIER_NODEs.
7942         * c-format.c (gcc_cdiag_char_table): Add '%E' format-specifier.
7943
7944 2003-07-19  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
7945
7946         * Makefile.in (ifcvt.o): Add cfgloop.h.
7947         * basic-block.h (EDGE_LOOP_EXIT): New flag.
7948         * cfgrtl.c (rtl_verify_flow_info_1): Handle it correctly.
7949         * ifcvt.c: Include cfgloop.h.
7950         (mark_loop_exit_edges): New static function.
7951         (if_convert): Call it.
7952         (find_if_header): Ignore branches out of loops.
7953
7954 2003-07-18  Kazu Hirata  <kazu@cs.umass.edu>
7955
7956         * combine.c (simplify_comparison): Don't share rtx when converting
7957         (ne (and (not X) 1) 0) to (eq (and X 1) 0).
7958
7959 2003-07-18  David Edelsohn  <edelsohn@gnu.org>
7960
7961         * config/rs6000/aix.h (AGGREGATE_PADDING_FIXED): Define.
7962         (AGGREGATES_PAD_UPWARD_ALWAYS): Define.
7963         (MUST_PASS_IN_STACK): Define.
7964         (BLOCK_REG_PADDING): Define.
7965
7966 2003-07-18  Richard Henderson  <rth@redhat.com>
7967
7968         * cfgrtl.c (force_nonfallthru_and_redirect): Use tablejump_p
7969         to skip the addr_vec.
7970
7971 2003-07-18  Alexandre Oliva  <aoliva@redhat.com>
7972
7973         * combine.c (combinable_i3pat): Don't forbid occurrences of
7974         i2dest or i1dest in inner_dest if inner_dest is a mem.
7975
7976 2003-07-18  Jan Hubicka  <jh@suse.cz>
7977
7978         * cgraph.c (cgraph_remove_node): Clear the hash table slot.
7979
7980 2003-07-17  Jakub Jelinek  <jakub@redhat.com>
7981
7982         PR target/11087
7983         * loop.c (basic_induction_var): Check if convert_modes emitted any
7984         instructions. Remove them and return 0 if so.
7985
7986 2003-07-18  Eric Botcazou  <ebotcazou@libertysurf.fr>
7987
7988         PR optimization/11083
7989         * toplev.c (rest_of_handle_addresof): Rename into
7990         rest_of_handle_addressof.  Delete unreachable blocks
7991         if dead edges were purged after the addressof pass.
7992
7993 2003-07-18  Neil Booth  <neil@daikokuya.co.uk>
7994
7995         * Makefile.in, configure, configure.in: Remove handling of
7996         lang-options.h and options_.h.
7997         * toplev.c (struct lang_opt, documented_lang_options): Remove.
7998         (display_help): Don't use documented_lang_options.
7999
8000 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
8001
8002         * c-decl.c (pushdecl_function_level): Make static, return nothing.
8003         (kept_level_p): Fold into poplevel.
8004         (undeclared_variable): Moved here from c-typeck.c.  Export.
8005         * c-tree.h (KEEP_YES, KEEP_NO, KEEP_MAYBE): New #defines.
8006         (undeclared_variable): Prototype here.  Don't prototype
8007         kept_level_p nor pushdecl_function_level.
8008         * c-parse.in: Change first argument to poplevel from
8009         "kept_level_p()" to "KEEP_MAYBE".
8010         * c-typeck.c (undeclared_variable): Moved to c-decl.c.
8011
8012 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8013
8014         * simplify-rtx.c (simplify_rtx): Use simplify_gen_binary to swap
8015         commutative operands instead of modifying the RTL in-place.
8016
8017 2003-07-17  Mark Mitchell  <mark@codesourcery.com>
8018
8019         PR optimization/11557
8020         * calls.c (flags_from_decl_or_type): Do not set ECF_LIBCALL_BLOCK
8021         unless we know which function is being called.
8022
8023 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8024
8025         * cse.c (fold_rtx): Use swap_commutative_operands_p to determine
8026         whether to reorder the operands of a commutative binary operator.
8027
8028 2003-07-17  Roger Sayle  <roger@eyesopen.com>
8029
8030         * fold-const.c (const_binop): Avoid performing the FP operation at
8031         compile-time, if either operand is NaN and we honor signaling NaNs,
8032         or if we're dividing by zero and either flag_trapping_math is set
8033         or the desired mode doesn't support infinities.
8034         (fold_initializer): New function to fold an expression ignoring any
8035         potential run-time exceptions or traps.
8036         * tree.h (fold_initializer): Prototype here.
8037         * c-typeck.c (build_binary_op): Move to the end of the file so
8038         that intializer_stack is in scope.  If constructing an initializer,
8039         i.e. when initializer_stack is not NULL, use fold_initializer to
8040         fold expressions.
8041         * simplify-rtx.c (simplify_binary_operation): Likewise, avoid
8042         performing FP operations at compile-time, if they would raise an
8043         exception at run-time.
8044
8045 2003-07-17  Geoffrey Keating  <geoffk@apple.com>
8046
8047         PR 11498
8048         * Makefile.in (c-opts.o): Add $(LANGHOOKS_DEF_H).
8049         (langhooks.o): Add $(GGC_H), gt-langhooks.h.
8050         (GTFILES): Add langhooks.c.
8051         (gt-langhooks.h): New.
8052         * c-common.h (c_static_assembler_name): Prototype.
8053         * c-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8054         * objc/objc-lang.c (LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): Define.
8055         * c-opts.c: Include langhooks-def.h.
8056         (c_static_assembler_name): New.
8057         * langhooks.c: Include ggc.h.  Include gt-langhooks.h.
8058         (var_labelno): New.
8059         (lhd_set_decl_assembler_name): Give static objects with context
8060         unique names.
8061         * varasm.c (var_labelno): Delete.
8062         (make_decl_rtl): Don't change the assembler name once it's set.
8063
8064         * c-opts.c (this_input_filename): New.
8065         (finish_options): Take new parameter, name of file being compiled.
8066         Update callers.  Set this_input_filename.
8067         (push_command_line_include): Use this_input_filename not
8068         main_input_filename.
8069
8070 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
8071
8072         * Makefile.in: Depend .pot generation on options.c.
8073         * po/exgettext: Add an extra_files variable containing additional
8074         files to scan.
8075
8076 2003-07-17  Zack Weinberg  <zack@codesourcery.com>
8077
8078         * objc/objc-lang.c: Override LANG_HOOKS_WRITE_GLOBALS to
8079         c_write_global_declarations.
8080
8081         * c-decl.c: Fix typos in several comments.  Remove all
8082         #if 0 blocks; reindent as needed.  Remove unused argument
8083         to declare_parm_level; all callers changed.
8084         * c-parse.in: Update calls to declare_parm_level.  Avoid
8085         issuing a double warning in some circumstances.
8086         * c-typeck.c: Update calls to declare_parm_level.
8087         * c-tree.h: Update prototype of declare_parm_level.
8088
8089         * c-pragma.c (apply_pragma_weak): Don't complain about a
8090         redundant #pragma weak.
8091
8092         * objc/objc-act.c (forward_declare_categories,
8093         build_selector_reference_decl, build_class_reference_decl,
8094         build_objc_string_decl, synth_forward_declarations,
8095         build_protocol_reference): Set TREE_PUBLIC on synthetic
8096         forward decl to 0, consistent with eventual definition.
8097         Correct comments to match.
8098
8099         * fixinc/inclhack.def (solaris_mutex_init_2): Escape braces
8100         in regexp that don't form a range expression.
8101         * fixinc/fixincl.def: Regenerate.
8102
8103 2003-07-17  Richard Henderson  <rth@redhat.com>
8104
8105         PR target/10907
8106         * config/ia64/ia64.c (ia64_epilogue_uses): GP is live at end
8107         even with !TARGET_CONST_GP.
8108         (ia64_function_ok_for_sibcall): Reject non-local functions.
8109
8110 2003-07-17  Steven Bosscher  <steven@gcc.gnu.org>
8111
8112         * c-common.c (c_estimate_num_insns_1): Don't handle
8113         METHOD_CALL_EXPR.
8114         * expr.c (safe_from_p): Likewise.
8115         * gengtype.c (adjust_field_tree_exp): Likewise.
8116         * stmt.c (warn_if_unused_value): Likewise
8117         * tree.c (first_rtl_op): Likewise.
8118         * tree.def: Don't define METHOD_CALL_EXPR.
8119         * java/lang.c (java_estimate_num_insns_1): Don't handle
8120         METHOD_CALL_EXPR.
8121
8122 2003-07-17  Eric Botcazou  <ebotcazou@libertysurf.fr>
8123
8124         PR other/11466
8125         * doc/invoke.texi (SPARC Options): Document "-mlittle-endian"
8126         and its restrictions for the SPARC64 port.
8127         Move the entry of "-mimpure-text" before that of "-mv8".
8128
8129 2003-07-17  Eric Botcazou <ebotcazou@libertysurf.fr>
8130             Phil Edwards <phil@jaj.com>
8131
8132         * doc/install.texi (*-*-solaris2*): Document the step-by-step
8133         procedure to bootstrap and install.
8134         Document the preference for the legacy Sun tools in /usr/bin
8135         over the POSIX tools in /usr/xpg4/bin for the build process.
8136
8137 2003-07-17  Neil Booth  <neil@daikokuya.co.uk>
8138
8139         * c.opt: Document Uncodumented; use it.  Document ObjC options.
8140         * opts.c (print_filtered_help): Skip undocumented switches.
8141         * opts.h (CL_UNDOCUMENTED): New.
8142         * opts.sh: Handle Undocumented.
8143         * toplev.c (documented_lang_options): Prevent its becoming empty.
8144 objc:
8145         * lang-options.h: Remove.
8146
8147 2003-07-16  Ulrich Weigand  <uweigand@de.ibm.com>
8148
8149         * loop.c (check_ext_dependent_givs): Pass const struct loop *
8150         instead of struct loop_info * as argument.  Accept BIVs with
8151         increment +/- 1 provided there is a friendly exit test against
8152         a loop-invariant value.
8153         (strength_reduce): Adapt call to check_ext_dependent_givs.
8154
8155 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
8156             Con Bradley <con.bradley@superh.com>
8157
8158         * sh-protos.h (sh_get_pr_initial_val): Declare.
8159         * sh.c (regno_reg_class): Make its elements type enum reg_class.
8160         (output_stack_adjust): Remove emit_fn argument.  Add epilogue_p
8161         and live_regs_mask arguments.  Changed all callers.
8162         (save_schedule_s): New structure.
8163         (save_schedule): New typedef.
8164         (scavenge_reg, sh5_schedule_saves, sh5_schedule_saves): New functions.
8165         (calc_live_regs): For TARGET_SHMEDIA, use leaf_function_p.
8166         In interrupts handlers, also save registers that are usually
8167         partially saved, and make sure there is at least one general purpose
8168         register saved if a target register needs saving.
8169         Add casts in comparisons to avoid warnings.
8170         (sh_media_register_for_return): return -1 for interrupt handlers.
8171         (MAX_SAVED_REGS, MAX_TEMPS): New defines.
8172         (sh_expand_prologue): Use sh5_schedule_saves.  Check that any temp
8173         registers used are available.
8174         Set RTX_FRAME_RELATED_P where appropriate.
8175         Add an REG_FRAME_RELATED_EXPR for r0 + offset addressing.
8176         (sh_expand_epilogue, sh_set_return_address): Use sh5_schedule_saves.
8177         (initial_elimination_offset): Likewise.
8178         * sh.h (DWARF_CIE_DATA_ALIGNMENT): Set to -4.
8179         (LOCAL_ALIGNMENT, GENERAL_REGISTER_P): Add casts to avoid warnings.
8180         (FP_REGISTER_P): Add casts to fix broken handling of unsigned REGNO.
8181         (XD_REGISTER_P, TARGET_REGISTER_P): Likewise.
8182         (HARD_REGNO_CALL_PART_CLOBBERED): Also yield nonzero for r15,
8183         and for target registers.
8184         (RETURN_IN_MEMORY): Add parentheses to avoid warnings.
8185         (regno_reg_class): Make its elements type enum reg_class.
8186         (CONSTRAINT_LEN): Don't use isdigit.
8187         (FUNCTION_ARG_REGNO_P): Add casts to avoid warnings.
8188         (FUNCTION_ARG): Add parentheses to avoid warnings.
8189         (RETURN_ADDR_RTX): Use sh_get_pr_initial_val.
8190         (RETURN_ADDR_OFFSET): Define to -1 for TARGET_SH5.
8191         (SH_DBX_REGISTER_NUMBER): Add casts to avoid warnings.
8192         (EH_RETURN_DATA_REGNO): Use unsigned constants to avoid warnings.
8193         * sh.md (xordi3+1): Remove unused variable regno.
8194         (return_media): Check that tr0 is available before using it.
8195
8196 2003-07-16  Neil Booth  <neil@daikokuya.co.uk>
8197
8198         * c.opt: Document more options.
8199
8200 2003-07-16  Roger Sayle  <roger@eyesopen.com>
8201
8202         * combine.c (subst): Also handle (subreg (const_double ...)) case
8203         if created by a substitution, by using the original inner mode.
8204
8205 2003-07-16  Roger Sayle  <roger@eyesopen.com>
8206
8207         * simplify-rtx.c (simplify_replace_rtx): Convert constant comparisons
8208         to MODE_FLOAT constants if FLOAT_STORE_FLAG_VALUE is defined.
8209         (simplify_rtx): Likewise.  Simplify (lo_sum (high X) X) as X.
8210
8211 2003-07-16  Andrew Pinski  <pinskia@physics.uc.edu>
8212
8213         * doc/install.texi (--without-headers): New.
8214
8215         Partial Fix PR/10129
8216         * config/darwin.c (machopic_function_base_name): Only Return "<pic base>".
8217         (machopic_output_function_base_name): New; print the true pic label.
8218         (machopic_classify_ident): Pic Base is always a defined data.
8219         * config/darwin.h (ASM_OUTPUT_LABELREF): Support the pic base label.
8220         * config/darwin-proto.h (machopic_output_function_base_name): Prototype.
8221
8222         * gcse.c (gcse_constant_p): COMPARE of the same registers is a constant
8223         if they are not floating point registers.
8224
8225         PR c/10962
8226         * ggc.h: Add header guards.
8227         * c-decl.c (finish_struct): Sort fields if
8228         number greater than 15 and there are no
8229         anonymous structs/unions.
8230         * c-common.h: Include ggc.h.
8231         (sorted_fields_type): New struct.
8232         (field_decl_cmp): New prototype.
8233         (resort_sorted_fields): New prototype.
8234         (DECL_DECLARES_TYPE_NON_TEMPLATE_P): New macro.
8235         * c-tree.h: (lang_type): Use pointer to sorted_fields_type
8236         as s, removing other fields.
8237         * c-typeck.c (lookup_field): Use s in lang_type.
8238         These were mostly moved from cp/class.c:
8239         * c-common.c (field_decl_cmp): New static function.
8240         (field_decl_cmp): New function.
8241         (resort_sorted_fields): New function.
8242
8243 2003-07-16  Geoffrey Keating  <geoffk@apple.com>
8244
8245         * config/darwin.c (machopic_select_section): Use decl_readonly_section
8246         to do most of the work.
8247
8248 2003-07-16  Hans-Peter Nilsson  <hp@bitrange.com>
8249
8250         * config/mmix/mmix-protos.h: Convert prototypes to ISO C90.
8251         * config/mmix/mmix.c: Convert functions to ISO C90.
8252         (mmix_eh_return_handler_rtx, mmix_output_shifted_value): Tweak
8253         formatting.
8254         (mmix_get_hard_reg_initial_val): Tweak section head comment.
8255
8256 2003-07-16  J"orn Rennecke <joern.rennecke@superh.com>
8257
8258         * c-pragma.h (HANDLE_PRAGMA_WEAK): Always define to SUPPORTS_WEAK.
8259
8260 2003-07-16  Jakub Jelinek  <jakub@redhat.com>
8261
8262         * unwind-dw2.c (MD_FROB_UPDATE_CONTEXT): Define.
8263         (uw_update_context_1): Use it.
8264         * config/rs6000/rs6000.c (insn_after_throw): Remove.
8265         (rs6000_aix_emit_builtin_unwind_init): Save $r2 to its location
8266         in parent frame if _Unwind_* called directly instead of through
8267         .plt.
8268         (rs6000_emit_eh_toc_restore): Remove.
8269         (rs6000_emit_prologue): Update stack pointer before doing any saving
8270         if current_function_calls_eh_return.  Generate unwind info for $r2.
8271         (rs6000_emit_epilogue): Restore stack pointer after doing all
8272         restoring if current_function_calls_eh_return.  Restore $r2.
8273         * config/rs6000/rs6000-protos.h (rs6000_emit_eh_toc_restore): Remove.
8274         * config/rs6000/rs6000.md (eh_return): Remove call to
8275         rs6000_emit_eh_toc_restore.
8276         * config/rs6000/linux64.h (MD_FROB_UPDATE_CONTEXT): Define.
8277         * config/rs6000/aix.h (MD_FROB_UPDATE_CONTEXT): Define.
8278
8279 2003-07-15  Jakub Jelinek  <jakub@redhat.com>
8280
8281         * expr.c (emit_block_move): Don't move anything if size is const 0.
8282         (clear_storage): Test against const0_rtx instead of comparing INTVAL
8283         against 0.
8284
8285 2003-07-15  David S. Miller  <davem@redhat.com>
8286
8287         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): Only
8288         emit nop if the last real insn is CALL_INSN.
8289
8290 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
8291
8292         * config/i386/xm-mingw32.h (HOST_BIT_BUCKET): Define
8293         as "nul".
8294         * config/i386/xm-mingw32.h: Change GNU CC to GCC.
8295
8296 2003-07-16  Danny Smith  <dannysmith@users.sourceforge.net>
8297
8298         * config/i386/winnt.c (associated_type): Artificial methods are not
8299         affected by the import/export status of their class unless they are
8300         COMDAT.
8301         (i386_pe_dllimport_p): Do not mark artificial methods as dllimport.
8302
8303         * config/i386/winnt.c: Fix GCC copyright comment.
8304
8305 2003-07-16  Gabriel Dos Reis  <gcc@integrable-solutions.net>
8306
8307         PR c++/11531
8308         * diagnostic.c (diagnostic_report_diagnostic): Don't ICE if we're
8309         not recursing on hard error.
8310         (diagnostic_for_decl): Likewise.
8311         * diagnostic.def: Rearrange.
8312
8313 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
8314
8315         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8316         If DWARF_FRAME_RETURN_COLUMN doesn't have a register mode, use Pmode.
8317
8318 2003-07-15  J"orn Rennecke <joern.rennecke@superh.com>
8319             Richard Henderson  <rth@redhat.com>
8320
8321         * unwind-dw2.c (_Unwind_GetGR): Use dwarf_reg_size_table
8322         to decide if to access a _Unwind_Ptr or a _Unwind_Word.
8323         (_Unwind_SetGR): Likewise.
8324         (_Unwind_GetPtr, _Unwind_SetSpColumn): New functions.
8325         (Unwind_SpTmp): New typedef.
8326         (uw_update_context_1): Use _Unwind_SetSpColumn and _Unwind_GetPtr.
8327         (uw_update_context): Use _Unwind_GetPtr.
8328         (init_dwarf_reg_size_table): Move above uw_init_context_1.
8329         (uw_init_context_1): Initialize dwarf_reg_size_table if necessary.
8330         Use _Unwind_SetSpColumn.
8331         (uw_install_context_1): Don't initialize dwarf_reg_size_table.
8332         Use _Unwind_GetPtr.
8333
8334 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
8335
8336         * c.opt: Document more options.
8337         * toplev.c (documented_lang_options): Remove all local help strings.
8338
8339 2003-07-15  Mark Mitchell  <mark@codesourcery.com>
8340
8341         PR debug/11473
8342         * dbxout.c (dbxout_type): Use TYPE_SIZE to determine the sizes of
8343         base classes.
8344
8345 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
8346
8347         PR target/10795
8348         * config/i386/i386.c (ix86_expand_carry_flag_compare): Don't
8349         swap comparison operands if doing so would generate an
8350         unrecognizable insn.
8351
8352 2003-07-15  Eric Botcazou  <ebotcazou@libertysurf.fr>
8353
8354         PR optimization/11320
8355         * sched-int.h (struct deps) [reg_conditional_sets]: New field.
8356         (struct sched_info) [compute_jump_reg_dependencies]: New prototype.
8357         * sched-deps.c (sched_analyze_insn) [JUMP_INSN]: Update call to
8358         current_sched_info->compute_jump_reg_dependencies. Record which
8359         registers are used and which registers are set by the jump.
8360         Clear deps->reg_conditional_sets after a barrier.
8361         Set deps->reg_conditional_sets if the insn is a COND_EXEC.
8362         Clear deps->reg_conditional_sets if the insn is not a COND_EXEC.
8363         (init_deps): Initialize reg_conditional_sets.
8364         (free_deps): Clear reg_conditional_sets.
8365         * sched-ebb.c (compute_jump_reg_dependencies): New prototype.
8366         Mark registers live on entry of the fallthrough block and conditionally
8367         set as set by the jump. Mark registers live on entry of non-fallthrough
8368         blocks as used by the jump.
8369         * sched-rgn.c (compute_jump_reg_dependencies): New prototype.
8370         Mark new parameters as unused.
8371
8372 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8373
8374         * doc/invoke.texi: Resync MIPS -march documentation.
8375
8376 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8377
8378         * config/mips/mips.h (PROCESSOR_R9000): New processor_type.
8379         (TARGET_MIPS9000, TUNE_MIPS9000): New macros.
8380         (GENERATE_MULT3_SI): True for TARGET_MIPS9000.
8381         * config/mips/mips.c (mips_cpu_info_table): Add rm9000 entry.
8382         (mips_rtx_costs): Adjust integer multiplication costs for the rm9000.
8383         (mips_issue_rate): Handle PROCESSOR_R9000.
8384         (mips_use_dfa_pipeline_interface): Likewise.
8385         * config/mips/9000.md: New file.
8386         * config/mips/mips.md: Include it.
8387         (define_attr cpu): Add r9000.
8388         (mulsi3_mult3): Use "mul" for rm9000 code.
8389
8390 2003-07-15  Stan Cox  <scox@redhat.com>
8391
8392         * config/mips/mips.h (PROCESSOR_R7000): New processor_type.
8393         (TARGET_MIPS7000, TUNE_MIPS7000): New macros.
8394         (GENERATE_MULT3_SI): True for TARGET_MIPS7000.
8395         * config/mips/mips.c (mips_cpu_info_table): Add rm7000 entry.
8396         (mips_rtx_costs): Adjust integer multiplication costs for the rm7000.
8397         (mips_issue_rate): Handle PROCESSOR_R7000.
8398         (mips_use_dfa_pipeline_interface): Likewise.
8399         * config/mips/7000.md: New file.
8400         * config/mips/mips.md: Include it.
8401         (define_attr cpu): Add r7000.
8402         (mulsi3_mult3): Use "mul" for rm7000 code.
8403
8404 2003-07-15  Richard Sandiford  <rsandifo@redhat.com>
8405
8406         * config/mips/mips.md (define_attr type): Add condmove.  Use it for
8407         the conditional move patterns.
8408         * config/mips/5400.md (ir_vr54_move): Rename to ir_vr54_condmove.
8409         Check for condmove type.
8410         (ir_vr54_arith): Add move type.
8411         * config/mips/5500.md (ir_vr55_move, ir_vr55_arith): Likewise.
8412         * config/mips/sr71k.md (ir_sr70_move, ir_sr70_arith): Likewise.
8413
8414 2003-07-15  Neil Booth  <neil@daikokuya.co.uk>
8415
8416         * c-opts.c (print_help): Remove.
8417         (c_common_handle_option): Don't handle --help.
8418         * c.opt: Document some options.
8419         (--help): Remove.
8420         * opts.c (print_filtered_help): New.
8421         (print_help): Use it.
8422
8423 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
8424
8425         * c-common.c (c_common_type_for_mode): Handle V4DFmode.
8426         * tree.c: (build_common_tree_nodes_2): Likewise.
8427         * tree.h (enum tree_index): Add TI_V4DF_TYPE.
8428         (V4DF_type_node): New.
8429
8430         * c-opts.c (push_command_line_include): Don't free deferred_opts,
8431         we'll need it.
8432         (finish_options): Reset init_cursor.
8433
8434 2003-07-15  Kazu Hirata  <kazu@cs.umass.edu>
8435
8436         * expr.c (expand_assignment): Remove an unused argument
8437         SUGGEST_REG.
8438         * expr.h: Update the prototype.
8439         * function.c: Update the callers.
8440         * stmt.c: Likewise.
8441
8442 2003-07-14  Mark Mitchell  <mark@codesourcery.com>
8443
8444         PR debug/11098
8445         * integrate.c (copy_decl_for_inlining): Do not mark copied decls
8446         as DECL_ABSTRACT.
8447
8448 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8449
8450         * fixinc/inclhack.def (avoid_bool_define, avoid_bool_type): Bypass
8451         with __cplusplus, not "we must use the C++ compiler's type"
8452         * fixinc/inclhack.def (void_null): Note that Interix needs this.
8453         * fixinc/fixincl.x: Regenerate.
8454
8455 2003-07-14  Geoffrey Keating  <geoffk@apple.com>
8456
8457         * unwind-dw2-fde-darwin.c (live_image_destructor): Get seen_objects
8458         and unseen_objects from the global data before calling
8459         __deregister_frame_info_bases.
8460         (examine_objects): Insert objects into the seen_objects list,
8461         not unseen_objects.
8462         (_Unwind_Find_FDE): Always unlock the global object lists, even if
8463         we couldn't allocate a data structure to put in it.
8464
8465         * objc/objc-act.h (CLASS_SUPER_NAME): Add a little typechecking.
8466         (TYPE_PROTOCOL_LIST): Share use of type.context with C frontend.
8467         (SET_TYPE_PROTOCOL_LIST): New.
8468         * objc/objc-act.c (get_static_reference): Use SET_TYPE_PROTOCOL_LIST.
8469         (get_object_reference): Likewise.
8470
8471 2003-07-14  Jan Hubicka  <jh@suse.cz>
8472
8473         * cfglayout.c (locator_file): Break out from ....
8474         (insn_file): ... here.
8475         (locator_line): Break out from ....
8476         (insn_line): ... here.
8477         * rtl.h (locator_file, locator_line): Declare.
8478         (final_start_function): Set proper line/file info.
8479
8480 2003-07-14  Gabriel Dos Reis  <gdr@integrable-solutions.net>
8481
8482         * c-pretty-print.c (pp_c_unary_expression): A CONVERT_EXPR is
8483         handled by pp_c_cast_expression.
8484
8485 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8486
8487         * config/mips/mips.c (mips_expand_prologue): Use a single insn to
8488         allocate 32768 bytes of stack.  Use addition rather than subtraction
8489         when a single insn is enough.
8490         * config/mips/mips.md: Remove insns and splitters for subtracting
8491         constants.
8492         (subsi3): Only accept register operands.
8493         (subsi3_internal): Likewise.  Use for TARGET_MIPS16 as well.
8494         (subdi3_internal_3, subsi3_internal_2): Likewise.
8495         (casesi): Use expand_binop to subtract the lower bound.
8496
8497 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8498
8499         * config/mips/mips.c (mips_in_small_data_p): Don't handle
8500         TARGET_MIPS16 specially.
8501
8502 2003-07-14  Richard Sandiford  <rsandifo@redhat.com>
8503
8504         * config/mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Use
8505         mips_output_aligned_bss.
8506         * config/mips/linux.h: Likewise.
8507         * config/mips/mips-protos.h (mips_output_aligned_bss): Declare.
8508         * config/mips/mips.c (mips_output_aligned_bss): New function.
8509
8510         * config/mips/elf.h (DBX_DEBUGGING_INFO): Delete.
8511         * config/mips/elf64.h: Likewise.
8512
8513         * config/mips/elf.h (ASM_DECLARE_OBJECT_NAME): Use
8514         mips_declare_object_name.
8515         (ASM_FINISH_DECLARE_OBJECT): Likewise mips_finish_declare_object.
8516         * config/mips/elf64.h: As for elf.h.
8517         * config/mips/iris6.h: Likewise.
8518         * config/mips/linux.h (ASM_DECLARE_OBJECT_NAME): As for elf.h.
8519         * config/mips/mips.h (ASM_DECLARE_OBJECT_NAME): Remove unnecessary
8520         do...while (0) block.
8521         * config/mips/mips-protos.h (mips_declare_object_name): Declare.
8522         (mips_finish_declare_object): Declare.
8523         * config/mips/mips.c (mips_declare_object_name): New function.
8524         (mips_finish_declare_object): New function.
8525
8526         * config/mips/elf.h (SBSS_SECTION_ASM_OP): Delete.
8527         * config/mips/linux.h: Likewise.
8528
8529         * config/mips/mips.c (inside_function): Delete.
8530         (file_in_function_warning, ignore_line_number): Delete.
8531         (mips_output_filename): Don't warn about changing filenames within
8532         a function.
8533         (mips_output_lineno): Update accordingly.
8534         (mips_output_function_prologue): Don't reset the deleted variables.
8535         * config/mips/mips.h (inside_function): Delete.
8536         (file_in_function_warning, ignore_line_number): Delete.
8537
8538         * config/mips/elf.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Remove undefs.
8539         * config/mips/elf64.h: Likewise.
8540         * config/mips/openbsd.h: Likewise.
8541         * config/mips/iris5.h (OBJECT_FORMAT_COFF): Remove undefs.
8542         * config/mips/linux.h: Likewise.
8543         * config/mips/mips.h (OBJECT_FORMAT_COFF, EXTENDED_COFF): Delete.
8544         (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB, MIPS_UNMARK_STAB): Delete.
8545
8546         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Add mips/sdb.h
8547         to the list of include files when using gas.
8548         (mips*el-*-openbsd*, mips*-*-openbsd*): Add mips/sdb.h unconditionally.
8549         * config/mips/elf.h: Remove #undef SDB_DEBUGGING_INFO.
8550         * config/mips/elf64.h: Likewise.
8551         * config/mips/iris5.h: Likewise.
8552         * config/mips/linux.h: Likewise.
8553         * config/mips/iris5gas.h (SDB_DEBUGGING_INFO): Remove definition.
8554         * config/mips/mips.h (PREFERRED_DEBUGGING_TYPE): Likewise.
8555         (SDB_DEBUGGING_INFO, sdb*, SDB_ALLOW_*, PUT_SDB*): Move to...
8556         * config/mips/sdb.h: ...this new file.
8557
8558 2003-07-14  Douglas Rupp  <rupp@gnat.com>
8559
8560         * fixinc/server.c (server_setup): Don't use non-POSIX NULL first
8561         argument to getcwd; use fixed buffer instead.
8562
8563 2003-07-14  Nathanael Nerode  <neroden@gcc.gnu.org>
8564
8565         * fixinc/mkfixinc.sh: Treat OpenBSD normally.
8566         * fixinc/fixinc.wrap: Delete.
8567
8568 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
8569
8570         * ggc-page.c (extra_order_size_table): Insns have 9 slots. Regs
8571         don't have 2.
8572
8573 2003-07-14  Dan Nicolaescu  <dann@ics.uci.edu>
8574
8575         * ggc-page.c (struct globals): Add new fields to keep track of the
8576         total allocated memory and overhead.
8577         (ggc_print_statistics): Print them.
8578         (ggc_alloc): Keep track of the total allocated memory and the
8579         overhead.
8580
8581         * tree.c (dump_tree_statistics): Increase spacing.
8582         (enum tree_node_kind): Move to ...
8583         * tree.h (enum tree_node_kind): ... here.
8584         (tree_node_counts, tree_node_sizes): Declare.
8585
8586 2003-07-14  James A. Morrison  <ja2morri@student.math.uwaterloo.ca>
8587
8588         * doc/include/texinfo.tex: Upgrade to texinfo 4.6.
8589
8590 2003-07-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8591
8592         PR optimization/11440
8593         * gcse.c (try_replace_reg): Don't attach notes to ZERO_EXTRACT or
8594         SIGN_EXTRACT SETs.
8595
8596 2003-07-14  Alan Modra  <amodra@bigpond.net.au>
8597
8598         * doc/tm.texi (BLOCK_REG_PADDING): Describe.
8599         * expr.h (struct locate_and_pad_arg_data): Add where_pad.
8600         (emit_group_load, emit_group_store): Adjust declarations.
8601         Remove most occurrences of #ifdef TREE_CODE.
8602         * expr.c (emit_group_load): Add "type" param, and use
8603         BLOCK_REG_PADDING to determine need for a shift.  Optimize non-
8604         aligned accesses if !SLOW_UNALIGNED_ACCESS.
8605         (emit_group_store): Likewise.
8606         (emit_push_insn, expand_assignment, store_expr, expand_expr): Adjust
8607         emit_group_load and emit_group_store calls.
8608         * calls.c (store_unaligned_arguments_into_pseudos): Tidy.  Use
8609         BLOCK_REG_PADDING to determine whether we need endian_correction.
8610         (load_register_parameters): Localize vars.  Handle shifting of
8611         small values to the correct end of regs.  Adjust emit_group_load
8612         call.
8613         (expand_call, emit_library_call_value_1): Adjust emit_group_load
8614         and emit_group_store calls.
8615         * function.c (assign_parms): Set mem alignment for stack slots.
8616         Adjust emit_group_store call.  Store values at the "wrong" end
8617         of regs to the stack.  Use BLOCK_REG_PADDING.
8618         (locate_and_pad_parm): Save where_pad.
8619         (expand_function_end): Adjust emit_group_load call.
8620         * stmt.c (expand_value_return): Adjust emit_group_load call.
8621         * Makefile.in (calls.o): Depend on $(OPTABS_H).
8622         * config/rs6000/linux64.h (TARGET_LITTLE_ENDIAN): Redefine as 0.
8623         (AGGREGATE_PADDING_FIXED, AGGREGATES_PAD_UPWARD_ALWAYS): Define.
8624         (MUST_PASS_IN_STACK): Define.
8625         (BLOCK_REG_PADDING): Define.
8626         * config/rs6000/rs6000.h (struct rs6000_args): Remove orig_nargs.
8627         (PAD_VARARGS_DOWN): Define in terms of FUNCTION_ARG_PADDING.
8628         * config/rs6000/rs6000.c (init_cumulative_args): Don't set orig_nargs.
8629         (function_arg_padding): !AGGREGATE_PADDING_FIXED compatibility code.
8630         Act on AGGREGATES_PAD_UPWARD_ALWAYS.
8631
8632 2003-07-13  Aaron W. LaFramboise  <awlaframboise@aol.com>
8633
8634         * config/i386/gthr-win32.c (__GTHREAD_HIDE_WIN32API): Define to 1.
8635
8636 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8637
8638         * expr.c (expand_expr, case COMPONENT_REF): If reg, copy OP0 to MEM
8639         both if OFFSET specified and if result BLKmode for ARRAY_RANGE_REF.
8640
8641 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8642
8643         PR other/11123
8644         * toplev.c: Don't cut off option names.
8645
8646 2003-07-13  Andreas Jaeger  <aj@suse.de>
8647
8648         * c-decl.c (link_hash_hash): Avoid warning about casting pointer
8649         to integer of different size.
8650
8651 2003-07-13  Kazu Hirata  <kazu@cs.umass.edu>
8652
8653         * combine.c (simplify_comparison): Convert (ne (and (not X) 1) 0)
8654         to (eq (and X 1) 0).
8655
8656 2003-07-13  Andreas Jaeger  <aj@suse.de>
8657
8658         * config.gcc: Add pmmintrin.h for x86_64-*-*.
8659
8660 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
8661
8662         * Makefile.in (LIBCPP_DEPS): Remove coretypes.h and $(TM_H).
8663         (hashtable.o, line-map.o, mkdeps.o): Likewise, from dependency
8664         list.  Move these all together down by cpplib.
8665
8666         * cpplib.h: Don't refer to MAX_WCHAR_TYPE_SIZE when determining
8667         definition of CPPCHAR_SIGNED_T.
8668
8669         * cppcharset.c, cpperror.c, cppexp.c, cppfiles.c, cpphash.c, cppinit.c
8670         * cpplex.c, cpplib.c, cppmacro.c, cpppch.c, cpptrad.c, hashtable.c
8671         * line-map.c, mkdeps.c: Don't include coretypes.h or tm.h.
8672
8673         * cpphash.c (_cpp_init_hashtable): Don't use gcc_obstack_init.
8674         * cppinit.c (cpp_create_reader): Likewise.
8675
8676         * cpphash.h (scan_out_logical_line): Rename _cpp_scan_out_logical_line.
8677         * cpptrad.c: Likewise.  All callers changed.
8678         * cpplib.c: All callers changed.
8679         * c-ppoutput.c: Replace 'uchar' with 'unsigned char' throughout.
8680         * hashtable.h: Define GTY(x) to nothing here too.
8681
8682 2003-07-13  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8683
8684         * stor-layout.c (compute_record_mode): Remove very obsolete test
8685         that forces BLKmode for records with fields crossing word boundary.
8686
8687 2003-07-13  Zack Weinberg  <zack@codesourcery.com>
8688
8689         * Makefile.in: Remove orphan reference to acconfig.h.
8690
8691 2003-07-13  Andreas Jaeger  <aj@suse.de>
8692
8693         * cgraphunit.c: Convert prototypes to ISO C90.
8694
8695 2003-07-13  Nathanael Nerode  <neroden@gcc.gnu.org>
8696
8697         * fixinc/inclhack.def (avoid_wchar_t_type): Use __cplusplus bypass
8698         (for OpenBSD).
8699         * fixinc/fixincl.x: Rebuild.
8700
8701 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
8702
8703         * configure.in: Always define HAVE_AS_GOTOFF_IN_DATA for
8704         i?86-*-*.  Use correct name of cache variable.
8705         * configure: Regenerate.
8706
8707 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
8708
8709         * config/alpha/alpha.c: Fix comment typos.
8710         * config/alpha/alpha.md: Likewise.
8711         * config/arm/arm.c: Likewise.
8712         * config/arm/arm.md: Likewise.
8713         * config/arm/lib1funcs.asm: Likewise.
8714         * config/avr/avr.md: Likewise.
8715         * config/arm/README-interworking: Fix typos.
8716
8717 2003-07-12  Kazu Hirata  <kazu@cs.umass.edu>
8718
8719         * c-format.c: Fix comment formatting.
8720         * c-typeck.c: Likewise.
8721         * coverage.c: Likewise.
8722         * cppcharset.c: Likewise.
8723         * cpplib.c: Likewise.
8724         * dbxout.c: Likewise.
8725         * gcov-io.h: Likewise.
8726         * toplev.c: Likewise.
8727
8728 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8729
8730         * fixinc/inclhack.def (alpha_sbrk): Note that OpenBSD needs this
8731         fix.
8732
8733 2003-07-12  Zack Weinberg  <zack@codesourcery.com>
8734
8735         * aclocal.m4 (gcc_AC_CHECK_TYPE): Clone of AC_CHECK_TYPE,
8736         uses three-argument AC_DEFINE so no acconfig.h entries are
8737         needed.
8738         (_gcc_COMPUTE_GAS_VERSION): Also provide gcc_cv_gas_vers
8739         which contains the GAS version number as a scaled integer.
8740         (gcc_GAS_VERSION_GTE_IFELSE): Use gcc_cv_gas_vers.  Add
8741         ability to check for ELF assembler.
8742         (gcc_GAS_CHECK_FEATURE): New macro.
8743         * configure.in: Use gcc_AC_CHECK_TYPE.  Rewrite all
8744         assembler feature checks using gcc_GAS_CHECK_FEATURE.
8745         Use three-argument AC_DEFINE everywhere.
8746         * acconfig.h: Deleted.
8747         * config.in, configure: Regenerate.
8748
8749 2003-07-12  Nathanael Nerode  <neroden@gcc.gnu.org>
8750
8751         * fixinc/inclhack.def (struct_sockaddr): Avoid "fixing" sockaddr_in
8752         (on OpenBSD).
8753         * fixinc/fixincl.x: Regenerate.
8754
8755         * fixinc/inclhack.def (gnu_types): Improve comment.
8756
8757 2003-07-12  Andreas Jaeger  <aj@suse.de>
8758
8759         * fp-test.c (main): Use ISO C90 prototype.
8760
8761         * version.c: Remove unneded include of ansidecl.h.
8762
8763         * cgraph.h: Convert prototypes to ISO C90.
8764         * cgraph.c: Likewise.
8765         * fix-header.c: Likewise.
8766         * ra.h: Likewise.
8767         * protoize.c: Likewise.
8768
8769 2003-07-12  Jan Hubicka  <jh@suse.cz>
8770
8771         * cgraphunit.c (cgraph_inlined_into, cgraph_inlined_calees): Fix
8772         warning.
8773
8774 2003-07-12  Jan Hubicka  <jh@suse.cz>
8775                                Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8776
8777         * cgraph.c (cgraph_max_uid): New global variable.
8778         (cgraph_node): Set uid field.
8779         (create_edge): Keep inline flags consistent.
8780         (dump_cgraph): Dump more info.
8781         * cgraph.h (struct cgraph_local_info): Remove inline_many and
8782         can_inline_once; add inlinable, disgread_inline_limits, and self_insn
8783         (struct cgraph_global_info): Add insns, calls, cloned_times,
8784         will_be_output.
8785         (struct cgraph_node): Add uid.
8786         (struct cgraph_edge): Add inline_call.
8787         (cgraph_max_uid, cgraph_inline_p): Declare.
8788         * cgraph.c: Include params.h and fibheap.h
8789         (cgraph_mark_functions_to_inline_once): Kill.
8790         (INSNS_PER_CALL): New constant.
8791         (ncalls_inlined, nfunctions_inlined, initial_insns, overall_insns): New
8792         static variables.
8793         (cgraph_finalize_function): Do not analyze inlining.
8794         (cgraph_finalize_compilation_unit): Set inlining attributes.
8795         (cgraph_mark_functions_to_output): More consistency checks.
8796         (cgraph_optimize_function): Set current_function_decl to NULL.
8797         (cgraph_expand_function): Use new inline flags.
8798         (cgraph_postorder): Expand from cgraph_expand_functions.
8799         (INLINED_TIMES, SET_INLINED_TIMES): New macros.
8800         (cgraph_inlined_into, cgraph_inlined_callees,
8801         cgraph_estimate_size_after_inlining, cgraph_estimate_growth,
8802         cgraph_mark_inline, cgraph_check_inline_limits,
8803         cgraph_default_inline_p, cgraph_decide_inling_of_small_functions,
8804         cgraph_decide_inlining, cgraph_inline_p): New functions.
8805         * params.def (PARAM_LARGE_FUNCTION_INSNS, PARAM_LARGE_FUNCTION_GROWTH,
8806         PARAM_INLINE_UNIT_GROWTH): New parameters.
8807         * tree-inline.c (struct inline_data): New field current_decl.
8808         (expand_call_inline): Avoid forward declarations; use
8809         inlinable_function_p.
8810         (optimize_inline_calls): Set id.current_decl.
8811
8812 2003-07-11  Andrew Pinski  <pinskia@physics.uc.edu>
8813
8814         * configure.in: Remove wrongly added definition of
8815         local_prefix.
8816         * configure: Regenerate.
8817
8818 2003-07-11  Dan Nicolaescu  <dann@ics.uci.edu>
8819
8820         * rtl.def (NOTE): Do not use padding.
8821
8822 2003-07-11  Dara Hazeghi  <dhazeghi@yahoo.com>
8823
8824         * doc/install.tex: Update required binutils for i?86-*-linux*
8825
8826 2003-07-11  Richard Henderson  <rth@redhat.com>
8827
8828         * Makefile.in (stage1_build): Force OBJS-onestep=OBJS.
8829
8830 2003-07-11  Mark Mitchell  <mark@codesourcery.com>
8831
8832         * varasm.c (make_decl_rtl): Treat decls with a DECL_CONTEXT of
8833         TRANSLATION_UNIT_DECL as top_level.
8834
8835 2003-07-11  Jakub Jelinek  <jakub@redhat.com>
8836
8837         * optabs.c (prepare_cmp_insn): Try cmpmemM first if it exists,
8838         then fall back to cmpstrM.
8839         * builtins.c (expand_builtin_memcmp): Likewise.
8840         * config/s390/s390-protos.h (s390_expand_cmpstr): Rename to...
8841         (s390_expand_cmpmem): ... this.
8842         * config/s390/s390.md (cmpmemdi, cmpmemsi, cmpmem_short_64,
8843         cmpmem_short_31, cmpmem_long_64, cmpmem_long_31): Renamed
8844         from cmpstr* patterns.  Rename call to s390_expand_cmpstr
8845         to s390_expand_cmpmem.
8846         * config/s390/s390.c (s390_expand_cmpstr): Rename to...
8847         (s390_expand_cmpstr): ... this.  Rename cmpstr* instructions
8848         to cmpmem*.
8849         * config/i370/i370.md (cmpmemsi, cmpmemsi_1): Renamed from
8850         cmpstr* patterns.
8851         * doc/md.texi (cmpstrM): Describe as String compare insn, not
8852         Block compare insn.
8853         (cmpmemM): Add.
8854
8855 2003-07-11  Loren James Rittle  <ljrittle@acm.org>
8856
8857         * config/i386/freebsd.h (SET_ASM_OP): Remove.
8858         (SUBTARGET_OVERRIDE_OPTIONS): Handle TARGET_64BIT case.
8859         (ASM_COMMENT_START, ASM_APP_ON, ASM_APP_OFF, DBX_REGISTER_NUMBER
8860          MCOUNT_NAME, SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE_SIZE): Whitespace.
8861
8862 2003-07-11  Richard Henderson  <rth@redhat.com>
8863
8864         * function.c (assign_parms): Don't recombine complex args if
8865         fnargs is unchanged from orig_fnargs.
8866         (split_complex_args): Return args without complex before copying.
8867         Re-layout the modified parameters.
8868
8869 2003-07-11  J"orn Rennecke <joern.rennecke@superh.com>
8870
8871         * regclass.c (choose_hard_reg_mode): Add third argument.
8872         Changed all callers.
8873         * rtl.h (choose_hard_reg_mode): Update declaration.
8874         * dwarf2out.c (expand_builtin_init_dwarf_reg_sizes):
8875         Take HARD_REGNO_CALL_PART_CLOBBERED into account.
8876
8877 2003-07-11  Geoffrey Keating  <geoffk@apple.com>
8878
8879         * c-decl.c (finish_decl): Handle 'used' here...
8880         * cgraphunit.c (cgraph_finalize_function): ... and here ...
8881         * c-common.c: (handle_used_attribute): ... not here.
8882
8883         * configure.in (onstep): Support --enable-intermodule.
8884         * Makefile.in (OBJS-common): New.
8885         (OBJS-md): New.
8886         (OBJS-archive): New.
8887         (OBJS): Build from OBJS-common, OBJS-md, OBJS-archive.
8888         (OBJS-onestep): New.
8889         (libbackend.a): Support @onestep@.
8890         (libbackend.o): New.
8891         * configure: Regenerate.
8892
8893         * c-common.h (c_reset_state): New prototype.
8894         (c_parse_file): New prototype.
8895         (finish_file): Move prototype from c-tree.h.
8896         * c-decl.c: Include <hashtab.h>.
8897         (builtin_decls): New.
8898         (current_file_decl): New.
8899         (duplicate_decls): Add extra parameter. Change all callers.  Don't
8900         output duplicate common symbols.
8901         (link_hash_hash): New.
8902         (link_hash_eq): New.
8903         (poplevel): Handle popping of the top level.
8904         (warn_if_shadowing): Handle TRANSLATION_UNIT_DECL.
8905         (pushdecl): Set DECL_CONTEXT to TRANSLATION_UNIT_DECL if appropriate.
8906         (pushdecl_top_level): Likewise.
8907         (redeclaration_error_message): Handle TRANSLATION_UNIT_DECL.
8908         (c_init_decl_processing): Create TRANSLATION_UNIT_DECL.
8909         (finish_decl): Handle TRANSLATION_UNIT_DECL.
8910         (merge_translation_unit_decls): New.
8911         (c_write_global_declarations): New.
8912         (c_reset_state): New.
8913         (implicitly_declare): Handle TRANSLATION_UNIT_DECL.
8914         * c-lang.c (LANG_HOOKS_WRITE_GLOBALS): New.
8915         * c-objc-common.c (c_cannot_inline_tree_fn): Handle
8916         TRANSLATION_UNIT_DECL.
8917         (c_objc_common_finish_file): Call merge_translation_unit_decls.
8918         * c-opts.c (in_fnames): Rename from in_fname.
8919         (c_common_decode_option): Handle multiple input filenames.
8920         (c_common_post_options): Likewise.
8921         (c_common_parse_file): Likewise; also, call c_parse_file rather than
8922         yyparse.
8923         * c-parse.in: Move cleanup code to c_parse_file.
8924         (free_parser_stacks): Move contents to c_parse_file.
8925         (c_parse_file): New.
8926         * c-tree.h (union lang_tree_node): Chain along TYPE_NEXT_VARIANT
8927         for integer types.
8928         (C_DECL_FILE_SCOPE): New.
8929         (finish_file): Move prototype to c-common.h.
8930         (merge_translation_unit_decls): New prototype.
8931         (comptypes): Add extra parameter to prototype.
8932         (c_write_global_declarations): New prototype.
8933         * c-typeck.c (tagged_types_tu_compatible_p): New.
8934         (function_types_compatible_p): Add extra parameter, change all callers.
8935         (type_lists_compatible_p): Likewise.
8936         (comptypes): Likewise.
8937         (struct tagged_tu_seen): New.
8938         (tagged_tu_seen_base): New.
8939         (build_unary_op): Handle TRANSLATION_UNIT_DECL.
8940         (c_mark_addressable): Remove #if 0 code.
8941         * calls.c (special_function_p): Handle TRANSLATION_UNIT_DECL, add
8942         comment explaining why it shouldn't have to.
8943         * cgraph.h (struct cgraph_node): Add chain_next and chain_prev GTY
8944         options.
8945         * cppinit.c (cpp_read_next_file): New.
8946         (cpp_read_main_file): Use it.
8947         * cpplib.c (undefine_macros): New.
8948         (cpp_undef_all): New.
8949         * cpplib.h (cpp_read_next_file): Prototype.
8950         (cpp_undef_all): Prototype.
8951         * langhooks-def.h (write_global_declarations): Remove prototype.
8952         * toplev.h (write_global_declarations): Add prototype.
8953         * tree.c (decl_type_context): Use switch statement, handle
8954         TRANSLATION_UNIT_DECL.
8955         * tree.def: Update documentation for TRANSLATION_UNIT_DECL.
8956         (TRANSLATION_UNIT_DECL): New kind of tree.
8957         * tree.h: Update documentation for TRANSLATION_UNIT_DECL.
8958         * Makefile.in (c-decl.o): Add $(HASHTAB_H) to dependencies.
8959         * doc/invoke.texi: Make attempt to document new functionality.
8960
8961         2003-05-19  Per Bothner <bothner@apple.com>
8962
8963         * gcc.c (combine_inputs): New.
8964         (process_command): Set combine_inputs.
8965         (do_spec_1): Handle combine_inputs.
8966         (main): Likewise.
8967
8968 2003-07-10  James E Wilson  <wilson@tuliptree.org>
8969
8970         PR optimization/9745
8971         * loop.c (loop_iv_add_mult_emit_before): Call loop_regs_update before
8972         loop_insn_emit_before.
8973         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
8974
8975 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
8976
8977         * cppcharset.c: Fix comment.
8978         (iconv_close [!HAVE_ICONV]): #define to (void)0 to prevent warning.
8979         (EILSEQ): #define to EINVAL if not already defined.
8980         (convert_using_iconv): #if out when !HAVE_ICONV.
8981         (init_iconv_desc): Handle !HAVE_ICONV here...
8982         (cpp_init_iconv): ...not here.
8983
8984 2003-07-11  Neil Booth  <neil@daikokuya.co.uk>
8985
8986         * common.opt: More --help messages.
8987         * opts.c (print_help): Use puts().
8988         * toplev.c (f_options): Remove help text.
8989         (display_help): Don't dump f_options.
8990
8991 2003-07-11  Nathanael Nerode  <neroden@gcc.gnu.org>
8992
8993         * fixinc/mkfixinc.sh: Drop reference to unsupported alpha-*-interix*.
8994         Move i?86-*-interix* to the don't-fix list.
8995         * fixinc/fixinc.interix: Delete with extreme prejudice.
8996
8997 2003-07-10  Dara Hazeghi  <dhazeghi@yahoo.com>
8998
8999         PR bootstrap/10758
9000         * doc/install.texi: Document requirements for ia64-*-hpux* target.
9001
9002 2003-07-10  Roger Sayle  <roger@eyesopen.com>
9003
9004         * config/ia64/hpux.h (TARGET_C99_FUNCTIONS): Define.
9005
9006 2003-07-10  Zack Weinberg  <zack@codesourcery.com>
9007
9008         * cppcharset.c (one_utf8_to_cppchar, one_cppchar_to_utf8,
9009         one_utf8_to_utf32, one_utf32_to_utf8, one_utf8_to_utf16,
9010         one_utf16_to_utf8, conversion_loop, convert_utf8_utf16,
9011         convert_utf8_utf32, convert_utf16_utf8, convert_utf32_utf8,
9012         convert_no_conversion, convert_using_iconv): New functions.
9013         (APPLY_CONVERSION): New macro.
9014         (struct conversion, conversion_tab): New data structure.
9015         (init_iconv_desc): Check conversion_tab for a custom conversion
9016         primitive before trying to use iconv.
9017         (convert_cset): Deleted.
9018         (cpp_init_iconv): Use UTF- terminology, not UCS-.
9019         (_cpp_destroy_iconv): Update to match.
9020         (_cpp_valid_ucn): We don't need iconv to implement UCNs.
9021         (convert_ucn): Use one_cppchar_to_utf8 and APPLY_CONVERSION.
9022         (convert_escape, cpp_interpret_string): Use APPLY_CONVERSION.
9023         (_cpp_interpret_string_notranslate): New function, moved here
9024         from cpplib.c.
9025
9026         * cpphash.h (convert_f, struct cset_converter): New types.
9027         (struct cpp_reader): narrow_cset_desc and wide_cset_desc
9028         are now struct cset_converter, not bare iconv_t.
9029         Update prototypes.
9030         * cpplib.c (interpret_string_notranslate): Moved to cppcharset.c;
9031         all callers changed.
9032
9033 2003-07-10  Kelley Cook  <kelleycook@wideopenwest.com>
9034
9035         * Makefile.in (options.h): Depend on Makefile.  Add move-if-change
9036         to opts.sh command line.
9037         * opts.sh: Write to temporary files with a move-if-change at the end.
9038
9039 2003-07-10  Denis Chertykov  <denisc@overta.ru>
9040             Richard Kenner <kenner@vlsi1.ultra.nyu.edu>
9041
9042         * combine.c (gen_binary): Handle the CLOBBER rtx and
9043         don't build a binary operation with it.
9044
9045 2003-07-10  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9046
9047         * gcse.c (load_kills_store, find_loads, store_killed_in_insn,
9048         store_killed_after, store_killed_before): Keep track of the correct
9049         dependency function to use.
9050
9051 2003-07-10  Steven Bosscher  <steven@gcc.gnu.org>
9052         * toplev.c (do_compile): Don't try to open dump files before
9053         lang_dependent_init initializes dump_base_name.
9054
9055 2003-07-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9056
9057         * config/arm/arm.c (arm_init_iwmmxt_builtins, arm_expand_builtin):
9058         Use ARRAY_SIZE.
9059         * config/frv/frv.c (frv_expand_builtin): Likewise.
9060         * config/sh/sh.c (sh_media_init_builtins): Likewise.
9061
9062 2003-07-09  Mark Mitchell  <mark@codesourcery.com>
9063
9064         PR c++/10032
9065         * doc/invoke.texi (C++ Dialect Options): Change documentation of
9066         -fpermissive.
9067
9068 2003-07-10  J"orn Rennecke <joern.rennecke@superh.com>
9069
9070         * tm.texi (RETURN_ADDR_OFFSET): Document.
9071
9072 2003-07-10  Nathan Sidwell  <nathan@codesourcery.com>
9073
9074         * gcov-io.h: Update documentation.
9075         (GCOV_UNSIGNED2STRING): New.
9076         (GCOV_TAG_FUNCTION_LENGTH, GCOV_TAG_BLOCKS_LENGTH,
9077         GCOV_TAG_ARCS_LENGTH, GCOV_TAG_COUNTER_LENGTH,
9078         GCOV_TAG_SUMMARY_LENGTH): Adjust.
9079         (GCOV_TAG_BLOCKS_NUM, GCOV_TAG_ARCS_NUM,
9080         GCOV_TAG_COUNTER_NUM): New.
9081         (GCOV_BLOCK_SIZE): Number of words.
9082         (gcov_var): Adjust buffer type.
9083         * gcov-io.c (gcov_write_bytes, gcov_read_bytes): Rename to ...
9084         (gcov_write_words, gcov_read_words): ... here. Take a 4-byte word
9085         count, not byte count.
9086         (gcov_open): Adjust overread init.
9087         (gcov_allocate, gcov_write_unsigned, gcov_write_counter,
9088         gcov_write_string, gcov_write_tag, gcov_write_length,
9089         gcov_write_tag_length): Adjust.
9090         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Adjust.
9091         (gcov_sync, gcov_seek): Adjust.
9092         * gcov-dump.c (print_usage): Show gcc version only.
9093         (dump_file): Use GCOV_UNSIGNED2STRING.
9094         (tag_blocks, tag_arcs, tag_counters): Use GCOV_TAG_*_NUM macros.
9095         * gcov.c (print_version): Show gcc version only.
9096         (read_graph_file): Use GCOV_UNSIGNED2STRING. Use
9097         GCOV_TAG_*_NUM macros.
9098         (read_count_file): Use GCOV_UNSIGNED2STRING. Use
9099         GCOV_TAG_COUNTER_LENGTH.
9100         * coverage.c (read_counts_file): Use GCOV_UNSIGNED2STRING.
9101         Use GCOV_TAG_COUNTER_NUM.
9102         * libgcov.c (gcov_version): Use GCOV_UNSIGNED2STRING.
9103         (__gcov_merge_single, __gcov_merge_delta): Use GCOV_CHECK.
9104
9105 2003-07-10  Andreas Schwab  <schwab@suse.de>
9106
9107         * gcov-dump.c (dump_file): Fix missing address operator.
9108
9109 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
9110
9111         PR c/11449
9112         * fold-const.c (sign_bit_p): Return EXP if VAL is the sign bit
9113         of HOST_WIDE_INT.
9114         (fold_single_bit_test): If sign_bit_p() fails, assume that the
9115         bit being tested is not a sign bit.
9116
9117 2003-07-10  Kazu Hirata  <kazu@cs.umass.edu>
9118
9119         * config/h8300/h8300.md (a peephole2): New.
9120
9121 2003-07-10  Alexandre Oliva  <aoliva@redhat.com>
9122
9123         2001-12-13  Alexandre Oliva  <aoliva@redhat.com>
9124         * config/mn10300/linux.h (LINK_SPEC): Rename the dynamic linker
9125         from ld-linux.so.2 to ld.so.1.
9126         2001-11-18  Alexandre Oliva  <aoliva@redhat.com>
9127         * config/mn10300/linux.h (LINK_SPEC): -lpthread, not -lthread.
9128         * config/mn10300/linux.h (LINK_SPEC): Don't handle -Wl,-rpath
9129         nor -Wl,-rpath-link.
9130         (LIB_SPEC): Add -rpath-link if !static.
9131         2001-08-22  Alexandre Oliva  <aoliva@redhat.com>
9132         * config/mn10300/mn10300.c (mn10300_protect_label): New
9133         variable.
9134         * config/mn10300/linux.h (PRINT_OPERAND,
9135         PRINT_OPERAND_ADDRESS): Set it during their execution.
9136         (ASM_OUTPUT_LABELREF): Output `+' before symbol name if
9137         mn10300_protect_label is set.
9138         * config/mn10300/linux.h (LINK_SPEC): Recognize -Wl,-rpath and
9139         -Wl,-rpath-link.
9140         (LIB_SPEC, STARTFILE_SPEC): Define.
9141         2001-05-11  Alexandre Oliva  <aoliva@redhat.com>
9142         * config/mn10300/t-linux (dp-bit.c, fp-bit.c): Don't define
9143         FLOAT_BIT_ORDER_MISMATCH.
9144         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
9145         * config.gcc (am33_2.0-*-linux*): Added.
9146         * config/mn10300/linux.h: New.
9147         * config/mn10300/t-linux: New.
9148
9149 2003-07-10  Andreas Jaeger  <aj@suse.de>
9150
9151         * fold-const.c: Properly wrap prototypes.
9152
9153 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9154
9155         2003-06-16  Alexandre Oliva  <aoliva@redhat.com>
9156         * config/mn10300/mn10300.c (mn10300_unspec_int_label_counter):
9157         Moved from...
9158         * config/mn10300/mn10300.md (GOTaddr2picreg): ... here.
9159         * config/mn10300/mn10300.h: GTY-declare it.
9160         2003-06-11  Alexandre Oliva  <aoliva@redhat.com>
9161         * config/mn10300/mn10300.c (mn10300_encode_section_info): Fix
9162         prototype.  Use incoming RTL argument.
9163         2002-12-12  Alexandre Oliva  <aoliva@redhat.com>
9164         * config/mn10300/mn10300.md (int_label): Move C statements...
9165         (GOTaddr2picreg): ... here.
9166         2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
9167         * config/mn10300/mn10300.h (ENCODE_SECTION_INFO): Move...
9168         * config/mn10300/mn10300.c (mn10300_encode_section_info):
9169         ... here.  New function.
9170         (TARGET_ENCODE_SECTION_INFO): Define to it.
9171         2001-11-04  Alexandre Oliva  <aoliva@redhat.com>
9172         * config/mn10300/mn10300.md (builtin_setjmp_receiver): Fix typo in
9173         pattern name.
9174         (mn10300_loadPC): Define as insn splittable after reload.
9175         2001-05-13  Alexandre Oliva  <aoliva@redhat.com>
9176         * config/sh/mn10300.h (JUMP_TABLES_IN_TEXT_SECTION): Let them
9177         be defined in .rodata even in PIC, now that the assembler
9178         supports that.
9179         2001-05-09  Alexandre Oliva  <aoliva@redhat.com>
9180         * config/mn10300/mn10300.h (GOT_SYMBOL_NAME): Don't let the
9181         symbol take an underscore prefix.
9182         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
9183         * config/mn10300/mn10300-protos.h (legitimate_pic_operand_p,
9184         legitimize_pic_address): Declare.
9185         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Mark
9186         the PIC register as fixed.
9187         (EXTRA_CONSTRAINT): Match UNSPEC_PLT and UNSPEC_PIC for 'S'.
9188         (GO_IF_LEGITIMATE_ADDRESS): Require legitimate_pic_operand for
9189         PIC.
9190         (LEGITIMATE_PIC_OPERAND_P): Define.
9191         (PIC_OFFSET_TABLE_REGNUM): Define.
9192         (GOT_SYMBOL_NAME): Define.
9193         (SYMBOLIC_CONST_P): Define.
9194         (ENCODE_SECTION_INFO): Use SYMBOL_REF_FLAG to mark local
9195         symbols.
9196         (MN10300_GLOBAL_P): Test it.
9197         (OUTPUT_ADDR_CONST_EXTRA): Handle PIC-related unspecs.
9198         (JUMP_TABLES_IN_TEXT_SECTION): Enable for PIC.
9199         * config/mn10300/mn10300.c (print_operand): Handle unspec.
9200         (expand_prologue): Set PIC register.
9201         (call_address_operand): Don't match SYMBOL_REFs in PIC.
9202         (legitimize_address): Call legitimize_pic_address.
9203         (legitimize_pic_address): New fn.
9204         (legitimate_pic_operand_p): New fn.
9205         * config/mn10300/mn10300.md (PIC_REG, SP_REG): New constants.
9206         (UNSPEC_INT_LABEL, UNSPEC_PIC, UNSPEC_GOT, UNSPEC_GOTOFF,
9207         UNSPEC_PLT): New constants.
9208         (pop_pic_reg): New insn.
9209         (movsi): Adjust non-PIC addresses.
9210         (builtin_setjmp_receiver): Restore the PIC register.
9211         (casesi): New insn.
9212         (call): Adjust non-PIC addresses.
9213         (int_label, GOTaddr2picreg): New expands.
9214         (am33_loadPC): New insn.
9215         (mn10300_loadPC): New expand.
9216         (call_next_insn): New insn.
9217         (add_GOT_to_pic_reg): New expand.
9218         (symGOT2reg, symGOT2reg_i): New expands.
9219         (symGOTOFF2reg, symGOTOFF2reg_i): New expands.
9220         (sym2PIC, sym2PLT): New expands.
9221
9222 2003-07-09  Alexandre Oliva  <aoliva@redhat.com>
9223
9224         * config/mn10300/mn10300.h (PREDICATE_CODES): Define.
9225         2001-05-01  Alexandre Oliva  <aoliva@redhat.com>
9226         * config/mn10300/mn10300.md (sqrtsf2): flag_fast_math was renamed
9227         to flag_unsafe_math_optimizations.
9228         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
9229         * config/mn10300/mn10300.c (expand_prologue): Mark
9230         FP-register-saving insns as frame-related.
9231         2001-02-13  Alexandre Oliva  <aoliva@redhat.com>
9232         * config/mn10300/mn10300.c
9233         (mn10300_get_live_callee_saved_regs): Don't search past
9234         LAST_EXTENDED_REGNUM.
9235         (mn10300_gen_multiple_store, store_multiple_operation): Likewise.
9236         * config/mn10300/mn10300.md: Remove excessive line breaks from
9237         `@' output patterns that were accounted as additional
9238         alternatives.
9239         * config/mn10300/mn10300.md, config/mn10300/mn10300.c:
9240         Re-introduce changes accidentally removed in Richard Sandiford's
9241         2000-12-05's patch.
9242         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS, MULTILIB_DIRNAMES):
9243         Re-instate am33-2 lost in merge from net GCC.
9244         2000-08-26  Alexandre Oliva  <aoliva@redhat.com>
9245         * config/mn10300/mn10300.h (DBX_REGISTER_NUMBER): Added
9246         floating-point registers.
9247         2000-08-07  Alexandre Oliva  <aoliva@redhat.com>
9248         * config/mn10300/mn10300.md (movdf): Revert some am33-specific
9249         pessimizations that had gone in on 2000-05-08.
9250         2000-06-28  Graham Stott  <grahams@cygnus.co.uk>
9251         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Fix typo.
9252         2000-06-22  Graham Stott  <grahams@cygnus.co.uk>
9253         * config/mn10300/mn10300.md (movqi): Use nonimmediate_operand for
9254         operand 0.
9255         * (movhi): Likewise.
9256         * (movsi): Likewise.
9257         * (movsf): Likewise.
9258         * (movdi): Likewise.
9259         * (movdf): Likewise.
9260         2000-05-24  Alexandre Oliva  <aoliva@cygnus.com>
9261         * config/mn10300/mn10300.c (fp_regs_to_save): New function.
9262         (can_use_return_insn, initial_offset): Add fp_regs_to_save.
9263         (expand_prologue, expand_epilogue): Save and restore FP regs.
9264         2000-05-20  Alexandre Oliva  <aoliva@cygnus.com>
9265         * config/mn10300/mn10300.md (movdi, movdf): 64-bit clean-up.
9266         2000-05-13  Alexandre Oliva  <aoliva@cygnus.com>
9267         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2, addsf3,
9268         subsf3, mulsf3, divsf3, fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4):
9269         Do not clobber cc0.
9270         2000-05-12  Alexandre Oliva  <aoliva@cygnus.com>
9271         * config/mn10300/mn10300.md (abssf2, negsf2, rsqrtsf2):
9272         Discourage the two-argument, longer opcodes.
9273         (addsf3, subsf3, mulsf3, divsf3): Likewise for three-argument
9274         ones.
9275         * config/mn10300/mn10300.h (struct mn10300_cc_status_mdep): New.
9276         (CC_STATUS_MDEP, CC_STATUS_MDEP_INIT): Define.
9277         * config/mn10300/mn10300.md (cmpsf): New pattern.
9278         (branch): Test mdep.fpCC and output fbCC.
9279         * config/mn10300/mn10300.c (print_operand): Output conditions.
9280         (notice_cc_update): Recognize fcmp and set mdep.fpCC.
9281         2000-05-10  Alexandre Oliva  <aoliva@cygnus.com>
9282         * config/mn10300/mn10300.md (movsf, movdf, addsf3, subsf3,
9283         mulsf3, divsf3): Use the `F' constraint for FP values.
9284         * config/mn10300/mn10300.c (const_1f_operand): New function.
9285         * config/mn10300/mn10300-protos.h (const_1f_operand): Declare.
9286         * config/mn10300/mn10300.md (sqrtsf2): New expand.
9287         (rsqrtsf2): New insn.
9288         2000-05-09  Alexandre Oliva  <aoliva@cygnus.com>
9289         * config/mn10300/mn10300.md (movdf): Oops, I missed it in my
9290         previous check-in.
9291         2000-05-08  Alexandre Oliva  <aoliva@cygnus.com>
9292         * config/mn10300/mn10300.md (abssf2, negdf2): On
9293         TARGET_AM33_2, expand to...
9294         (abssf2_am33_2, negdf2_am33_2): New insns.
9295         (addsf3, subsf3, mulsf3, divsf3): Likewise.
9296         (fmaddsf4, fmsubsf4, fnmaddsf4, fnmsubsf4): Likewise.
9297         * config/mn10300/mn10300.md (movqi, movhi, movsi, movsf,
9298         movdi, movdf): Added FP regs.
9299         * invoke.texi (-mam33-2, -mno-am33-2): Document.
9300         2000-04-29  Alexandre Oliva  <aoliva@cygnus.com>
9301         * config/mn10300/mn10300.h (FIRST_FP_REGNUM, LAST_FP_REGNUM):
9302         New macros.
9303         (REGNO_AM33_2_FP_P): Renamed to...
9304         (REGNO_FP_P): Redefine in terms of FIRST_* and LAST_*.
9305         (CONDITIONAL_REGISTER_USAGE, REGNO_REG_CLASS): Likewise.
9306         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9307         * config/mn10300/mn10300.h (REG_CLASS_CONTENTS): Remove FP
9308         regs from GENERAL_REGS.
9309         2000-04-27  Alexandre Oliva  <aoliva@cygnus.com>
9310         * config/mn10300/mn10300.h (REGNO_AM33_2_FP_P): New macro.
9311         * config/mn10300/mn10300.c (mn10300_address_cost): Added FP_REGS.
9312         * config/mn10300/mn10300.h (REGISTER_MOVE_COST): Added FP_REGS.
9313         2000-04-23  Alexandre Oliva  <aoliva@cygnus.com>
9314         * config/mn10300/mn10300.h (CLASS_CANNOT_CHANGE_SIZE): Defined
9315         as FP_REGS.
9316         2000-04-21  Alexandre Oliva  <aoliva@cygnus.com>
9317         * config/mn10300/mn10300.h (OK_FOR_Q): New macro.
9318         (EXTRA_CONSTRAINT): Added OK_FOR_Q.
9319         * config/mn10300/mn10300.c (secondary_reload_class): Adjust.
9320         * config/mn10300/mn10300.c (print_operand): Support `D' for doubles.
9321         * config/mn10300/mn10300.h (FIRST_PSEUDO_REGISTER): Adjust.
9322         (FIXED_REGISTERS, CALL_USED_REGISTERS, REG_ALLOC_ORDER): Added
9323         AM33/2.0 floating-point registers.
9324         (CONDITIONAL_REGISTER_USAGE): Adjust.
9325         (enum reg_class, REG_CLASS_NAMES): Added FP_REGS and FP_ACC_REGS.
9326         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Adjust.
9327         (REG_CLASS_FROM_LETTER): Added `f' and `A'.
9328         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Adjust.
9329         * config/mn10300/t-mn10300 (MULTILIB_OPTIONS): Added am33-2.
9330         (MULTILIB_DIRNAMES): Likewise.
9331         * config/mn10300/mn10300.h (CPP_SPEC): Define `__AM33__=2' and
9332         `__AM33_2__' when `-mam33-2' is given.
9333         (TARGET_AM33_2): Define.
9334         (TARGET_SWITCHES): Adjust.
9335         * config/mn10300/mn10300.c (asm_file_start): Print `.am33_2'
9336         when appropriate.
9337
9338 2003-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
9339
9340         * doc/install.texi: Add missing @.
9341
9342 2003-07-09  Bob Wilson  <bob.wilson@acm.org>
9343
9344         * config/xtensa/xtensa.h (CRT_CALL_STATIC_FUNCTION): Define.
9345
9346 2003-07-09  Aldy Hernandez  <aldyh@redhat.com>
9347
9348         PR/11144
9349         * config/i386/i386.c (ix86_function_arg_boundary): Remove abort.
9350
9351 2003-07-09  Nathanael Nerode  <neroden@gcc.gnu.org>
9352
9353         PR bootstrap/11043
9354         * config/arc/t-arc: Replace bogus references to "x-crtinit.o",
9355         "x-crtfini.o" with "crtinit.o", "crtfini.o".
9356
9357         * fixinc/inclhack.def (limits_ifndefs): Add select test.
9358         * fixinc/fixincl.x: Rebuild.
9359
9360         * fixinc/inclhack.def (math_exception):  Improve bypass and comment.
9361         * fixinc/fixincl.x: Rebuild.
9362
9363 2003-07-09  Hans-Peter Nilsson  <hp@bitrange.com>
9364
9365         * doc/install.texi (Configuration): Document the valgrind option
9366         to --enable-checking.
9367
9368 2003-07-09  Jan Hubicka  <jh@suse.cz>
9369
9370         * objc-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9371
9372 2003-07-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9373
9374         * c-lex.c (cb_ident): Cast cstr.text to const char *.
9375
9376 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
9377
9378         * gcov-io.h: Update documentation.
9379         (GCOV_GRAPH_SUFFIX, GCOV_GRAPH_MAGIC): Rename to GCOV_NOTE_SUFFIX,
9380         GCOV_NOTE_MAGIC.
9381         (GCOV_DATA_SUFFIX, GCOV_NOTE_SUFFIX): Update.
9382         (GCOV_DATA_MAGIC, GCOV_NOTE_MAGIC): Make non-palindromic.
9383         (struct gcov_var): Change buffer's type. Add endian flag.
9384         (gcov_open): Remove mode in libgcov.
9385         (gcov_magic): Prototype.
9386         * gcov-io.c (from_file): New.
9387         (gcov_open): Clear endian flag.
9388         (gcov_magic): New.
9389         (gcov_write_bytes, gcov_read_bytes): Return gcov_unsigned_t
9390         pointers.
9391         (gcov_write_unsigned, gcov_write_counter, gcov_write_string,
9392         gcov_write_tag, gcov_write_length, gcov_write_tag_length): Update.
9393         (gcov_read_unsigned, gcov_read_counter, gcov_read_string): Update.
9394         * gcov-iov.c (main): Correct cast.
9395         * coverage.c (read_counts_file): Use gcov_magic. Remove endianness
9396         conversion.
9397         (gcov_begin_output): Use GCOV_NOTE_MAGIC.
9398         (coverage_init): Use GCOV_NOTE_SUFFIX.
9399         * libgcov.c (gcov_version_mismatch): Remove endianness conversion.
9400         Rename to gcov_version, and return flag.
9401         (gcov_exit): Use gcov_version.
9402         (__gcov_init): Use gcov_version.
9403         * Makefile.in (coverageexts): Update.
9404         * gcov.c (print_version): Remove endianness conversion.
9405         (create_file_names): Use GCOV_NOTE_SUFFIX.
9406         (read_graph_file): Use gcov_magic.
9407         (read_count_file): Likewise.
9408         * gcov-dump.c (dump_file): Remove endianness conversion, use
9409         gcov_magic.
9410
9411 2003-07-09  Nathan Sidwell  <nathan@codesourcery.com>
9412
9413         * configure.in (BUILD_PREFIX, BUILD_PREFIX_1): Set if enable
9414         coverage is on.
9415         * configure: Regenerated.
9416         * Makefile.in (ALL_CFLAGS): Correct its comment.
9417
9418 2003-07-08  Mark Mitchell  <mark@codesourcery.com>
9419
9420         * fold-const.c (make_range): Do not access operand 1 for a
9421         zero-operand operator.
9422
9423 2003-07-09  Neil Booth  <neil@daikokuya.co.uk>
9424
9425         * toplev.c (warn_dummy, W_options): Die.
9426         (display_help): Don't print W_options.
9427         * common.opt: Add W_options help from toplev.c.
9428
9429 2003-07-09  Andreas Jaeger  <aj@suse.de>
9430
9431         * opts.c (wrap_help): Only pass int arguments as arguments to
9432         printf's '*' modifier.  Change argument of function.
9433
9434 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
9435
9436         * doc/invoke.texi: Fix misspelling of "@item".
9437
9438 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
9439
9440         * config/i386/i386.md: Remove an old comment about
9441         NOTICE_UPDATE_CC.
9442
9443 2003-07-09  Jan Hubicka  <jh@suse.cz>
9444
9445         * cgraph.c (cgraph_node_name): New function.
9446         (dump_cgraph): Use it.
9447         * cgraph.h (cgraph_dump_file): Declare.
9448         (cgraph_node_name): Declare.
9449         * cgraphunit.c: Include timevar.h
9450         (cgraph_finalize_compilation_unit): Use timevar; reorganize dumps.
9451         (cgraph_optimize_function): Use TV_INTEGRATION.
9452         (cgraph_mark_local_functions): reorganize dumps.
9453         (cgraph_mark_functions_to_inline_once): Likewise.
9454         (cgraph_optimize): Likewise; use timevar.
9455         * timevar.def (TV_CGRAPH, TV_CGRAPHOPT): New.
9456         * toplev.c (dump_file_index): Add DFI_cgraph.
9457         (dump_file_info): Likewise.
9458         (cgraph_dump_file): New global variable.
9459         (do_compile): Open and close cgraph dump.
9460         * invoke.texi (-d): Document new flag; renumber.
9461
9462 2003-07-08  Roger Sayle  <roger@eyesopen.com>
9463
9464         PR c/11370
9465         * calls.c (emit_call_1): Don't bother popping the arguments off of
9466         the stack after a noreturn function call;  The adjustment is dead.
9467         (expand_call): Likewise.
9468
9469 2003-07-08  Geoffrey Keating  <geoffk@apple.com>
9470
9471         * expr.c (MOVE_MAX_PIECES): Move from here...
9472         * defaults.h (MOVE_MAX_PIECES): ... to here.
9473
9474 2003-07-08  Matt Kraai  <kraai@alumni.cmu.edu>
9475
9476         * Makefile.in (stage1-start): Handle an empty SUBDIRS.
9477
9478 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9479
9480         * genattr.c (internal_dfa_insn_code): Don't prototype.
9481         * genattrtab.c (attr_desc): Add `static_p' field.
9482         (expand_units): Make blockage range and ready cost functions
9483         static.
9484         (write_attr_get): Don't add extern prototypes in C file.  Mark
9485         static functions as appropriate.
9486         (find_attr, make_internal_attr): Initialize static_p.
9487         * genattrtab.h (ATTR_STATIC): New macro.
9488         * genautomata.c (output_internal_reset_func): Mark output function
9489         as inline.
9490         (make_internal_dfa_insn_code_attr): Mark output function as static.
9491
9492 2003-07-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9493
9494         * genattrtab.h: Add new macros for attr `special' flags.
9495         * genattrtab.c (attr_desc): Reorder/resize fields better.
9496         Use attr `special' macros in all calls to make_internal_attr.
9497         * genautomata.c: Likewise.
9498
9499 2003-07-09  Jan Hubicka  <jh@suse.cz>
9500
9501         * c-common.c (c_estimate_num_insns_1): New static function.
9502         (c_estimate_num_insns): New global function.
9503         * c-common.h (DECL_NUM_STMTS): Rename to...
9504         (DECL_ESTIMATED_INSNS): ... this.
9505         (c_estimate_num_insns): Declare.
9506         * c-decl.c (duplicate_decls): Use DECL_ESTIMATED_INSNS.
9507         * c-lang.c (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS): New.
9508         * c-semantics.c (add_stmt): Do not account statements.
9509         * langhooks-def.h (LANG_HOOKS_TREE_INLINING_ESTIMATE_NUM_INSNS):
9510         New.
9511         * langhooks.h (lang_hooks_for_tree_inlining): Add
9512         estimate_num_insns
9513         * params.def (max-inline-insns-auto, max-inline-insns-auto): set
9514         to 100.
9515         (max-inline-insns): set to 300.
9516         (min-inline-insns): set to 10.
9517         * tree-inline.c (struct inline_data): Rename inlined_stmts to
9518         inlined-insns.
9519         (INSNS_PER_STMT): Kill.
9520         (inlinable_function_p): Compute and store body size.
9521         (expand_call_inline): Likewise.
9522         (optimize_inline_calls): Likewise.
9523
9524 2003-07-08  James E Wilson  <wilson@tuliptree.org>
9525
9526         PR target/10021
9527         * emit-rtl.c (set_mem_attribute_minus_bitpos): When handle ARRAY_REF,
9528         loop over new variable t2 instead of t.
9529
9530 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
9531
9532         PR bootstrap/11455
9533         * config/i386/winnt.c: Replace use of error(), warning() with
9534         error_with_decl(), warning_with_decl(),  throughout.
9535
9536 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
9537
9538         * opts.c (wrap_help): Use unsigned int, not size_t.
9539
9540 2003-07-08  Stephane Carrez  <stcarrez@nerim.fr>
9541
9542         * config/m68hc11/m68hc11.h (HAVE_AS_DWARF2_DEBUG_LINE): Don't define
9543         as .file/.loc directives are incompatible with linker relaxation.
9544
9545 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
9546
9547         * Makefile.in (fixinc.sh): Remove gnu-regex.[ch] from dependencies.
9548         * fixinc/Makefile.in: Remove all references to gnu-regex.[och].
9549         * fixinc/fixfixes.c, fixinc/fixincl.c, fixinc/fixlib.c
9550         * fixinc/fixtests.c: Use xregexec not regexec, xregcomp not regcomp.
9551         * fixinc/fixlib.h: Include xregex.h not gnu-regex.h.
9552         * fixinc/inclhack.def (hpux10_cpp_pow_inline, hpux11_cpp_pow_inline):
9553         Escape { and } characters which are not part of range expressions.
9554         * fixinc/fixincl.x: Regenerate.
9555         * fixinc/gnu-regex.c, fixinc/gnu-regex.h: Delete file.
9556
9557 2003-07-08  Steven Bosscher  <steven@gcc.gnu.org>
9558
9559         PR c/1687
9560         * tree-inline.c (find_alloca_call): Use
9561         walk_tree_without_duplicates, instead of walk_tree.
9562         (find_builtin_longjmp_call): Likewise.
9563         * c-objc-common.c (c_cannot_inline_fn): Likewise.
9564         * c-semantics.c (find_reachable_label): Likewise.
9565
9566 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
9567
9568         PR c/11420
9569         * config/i386/i386.c (ix86_check_movabs): New function.
9570         * config/i386/i386-protos.h (ix86_check_movabs): New prototype.
9571         * config/i386/i386.md (movabs[shqd]i_1_rex64): Kill broken alternative.
9572         (movabs[shqd]i_[12]_rex64): Add ix86_check_movabs check to conditions.
9573
9574 2003-07-08  Chris Demetriou  <cgd@broadcom.com>
9575
9576         * Makefile.in (install-po): Cope with empty CATALOGS.
9577
9578 2003-07-08  Richard Sandiford  <rsandifo@redhat.com>
9579
9580         * config/mips/elf64.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9581         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Delete.
9582         (SECTION_FUNCTION_TEMPLATE): Delete.
9583         * config/mips/elf.h: As for elf64.h.
9584         (ASM_OUTPUT_ALIGNED_BSS): Use named_section rather than sbss_section.
9585         * config/mips/linux.h: As for elf.h
9586         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9587         * config/mips/iris6.h (EXTRA_SECTIONS): Delete.
9588         (EXTRA_SECTION_FUNCTIONS): Remove sdata_section.  Remove the handling
9589         of in_sdata from current_section_name and current_section_flags.
9590         * config/mips/iris6gld.h (TARGET_ASM_UNIQUE_SECTION): Delete.
9591         * config/mips/mips.h (sdata_section, sbss_section): Remove prototypes.
9592         (MASK_GP_OPT, TARGET_GP_OPT): Delete.
9593         (MASK_NO_FUSED_MADD): Use MASK_GP_OPT's old value.
9594         (TARGET_SWITCHES): Neuter gpOPT, gpopt, no-gpOPT and no-gpopt.
9595         (SMALL_DATA_SECTION, EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
9596         * config/mips/mips.c (TARGET_IN_SMALL_DATA_P): Override.
9597         (TARGET_SECTION_TYPE_FLAGS): Override if TARGET_IRIX6.
9598         (mips_classify_symbol): Use SYMBOL_REF_SMALL_P.
9599         (override_options): Remove setting of MASK_GPOPT.
9600         (mips_output_external): Use mips_in_small_data_p to check whether a
9601         symbol needs an .extern directive.  Don't emit such directives for
9602         TARGET_EXPLICIT_RELOCS.
9603         (mips_declare_object): Update accordingly.
9604         (mips_select_rtx_section): Call named_section rather than
9605         SMALL_DATA_SECTION.
9606         (mips_select_section): Use default_elf_section_section for everything
9607         except .text string constants.
9608         (mips_in_small_data_p): New function.
9609         (mips_encode_section_info): Remove small data handling.
9610         (mips_unique_section): Delete.
9611         (iris6_section_type_flags): New function.
9612         * doc/tm.texi: Remove documentation of -mgpopt and -mhalf-pic.
9613
9614 2003-07-08  John David Anglin  <dave.anglin@nrc-cnrc.gc.ca>
9615
9616         PR Target/11453
9617         * pa.md: Disparage all mtsar constraints.
9618         (extzv, extv, insv): Don't fail on length of {32|64}.
9619
9620 2003-07-08  Zack Weinberg  <zack@codesourcery.com>
9621
9622         * system.h: Poison MAP_CHARACTER.
9623         * config/i370/i370-protos.h (mvs_map_char): Delete.
9624         * config/i370/i370.c (ascebc, ebcasc, mvs_map_char): Delete.
9625         * config/i370/i370.h (MAP_CHARACTER): Delete definition.
9626         (ASM_OUTPUT_ASCII): Don't use MAP_CHARACTER.
9627
9628 2003-07-08  Danny Smith  <dannysmith@users.sourceforge.net>
9629
9630         * toplev.c (randomize): Correct call to time().
9631
9632 2003-07-08  Jakub Jelinek  <jakub@redhat.com>
9633
9634         * unroll.c (reg_dead_after_loop): Check for reg in REG_EQUAL and
9635         REG_EQUIV notes as well.
9636
9637 2003-07-08  Kazu Hirata  <kazu@cs.umass.edu>
9638
9639         * doc/md.texi: Fix the description of addmodecc.
9640
9641 2003-07-07  Zack Weinberg  <zack@codesourcery.com>
9642
9643         * Makefile.in (top_builddir): Set to "..", not ".".
9644         (INTLLIBS, INTLDEPS): Delete.
9645         (LIBINTL, LIBINTL_DEP, LIBICONV_DEP): New variables to be substituted.
9646         (LIBDEPS): Add $(LIBICONV_DEP).
9647         (LIBS): Take out $(INTLLIBS), add $(LIBINTL) and $(LIBICONV).
9648         (INCLUDES): Replace -I../intl with @INCINTL@.
9649         ($(top_builddir)/intl/libintl.a): Delete rule.
9650         (stage2-start, stage3-start, stage4-start, stageprofile-start,
9651         stagefeedback-start): Use $$ for variable to be evaluated by
9652         shell, not make.
9653         * acconfig.h (ENABLE_NLS, HAVE_CATGETS, HAVE_GETTEXT,
9654         HAVE_LC_MESSAGES, HAVE_STPCPY): Delete.
9655         * aclocal.m4: sinclude ../config/progtest.m4.  Add
9656         contents of lcmessage.m4 from gettext distro.
9657         * configure.in: Check for wchar.h and setlocale.  Set
9658         LIBICONV_DEP to the empty string and substitute it.
9659         Call AM_LC_MESSAGES.  Delete AC_ARG_ENABLE for --enable-nls;
9660         this is handled elsewhere.  Use ZW_GNU_GETTEXT_SISTER_DIR,
9661         not CY_GNU_GETTEXT.  Clear $LIBICONV if its text is included
9662         in $LIBINTL, to avoid linking it twice.
9663         * configure, config.in: Regenerate.
9664
9665 2003-07-08  Nathanael Nerode  <neroden@gcc.gnu.org>
9666
9667         * fixinc/mkfixinc.sh: Remove winnt support.
9668         * fixinc/fixinc.winnt: Delete with extreme prejudice.
9669
9670 2003-07-08  Neil Booth  <neil@daikokuya.co.uk>
9671
9672         * Makefile.in: Update.
9673         * c-opts.c (c_common_handle_option): opt_text now contains the '-'.
9674         * c.opt: Update documentation.
9675         * common.opt: Add some help text.
9676         * opts.c: Include intl.h.
9677         (wrap_help, print_help): New.
9678         (find_opt, handle_option, common_handle_option): opt_text now
9679         contains the '-'.  Use print_help to output help.
9680         * opts.h (struct cl_option): New member "help".
9681         * opts.sh: Update to handle help text output and to prepend
9682         options with '-'.
9683         * toplev.c (display_help): Remove some help text.
9684
9685 2003-07-07  David Edelsohn  <edelsohn@gnu.org>
9686             Fariborz Jahanian  <fjahanian@apple.com>
9687
9688         * configure.in: Test for PowerPC mfcr field support in assembler.
9689         * config.in, configure: Regenderated.
9690
9691         * config/rs6000/power4.md: Add mfcrf reservation.
9692         * config/rs6000/rs6000-protos.h (mfcr_operation): Declare.
9693         * config/rs6000/rs6000.c (mfcr_operation): Define.
9694         (print_operand): Add 'Q' case for mfcrf.
9695         * config/rs6000/rs6000.h (TARGET_MFCRF): New.
9696         * config/rs6000/rs6000.md (attribute "type"): Add mfcrf.
9697         (movcc_internal1): Emit optional field operand for mfcr and set
9698         "type" attribute appropriately.
9699         (mfcr SCC): Likewise.
9700         (movesi_from_cr_one): New.
9701
9702 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9703
9704         * config/i386/i386.md: Correct check-in of incorrect version.
9705
9706 2003-07-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9707
9708         * bitmap.c (debug_bitmap_file): Merge uses of HOST_PTR_PRINTF with
9709         adjacent stdio calls.
9710         * c-decl.c (c_print_identifier): Likewise.
9711         * mips-tfile.c (write_varray, write_object, allocate_cluster): Likewise.
9712         * print-rtl.c (print_rtx): Likewise.
9713         * print-tree.c (print_node_brief, print_node): Likewise.
9714         * system.h (HOST_PTR_PRINTF): Ensure we have a literal string.
9715
9716         * configure.in (AC_COMPILE_CHECK_SIZEOF): Check for `void *'.
9717         * config.in, configure: Regenerated.
9718
9719 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9720
9721         PR target/10979
9722         * config/i386/i386.md (atan2df3, atan2sf3, atan2xf3, atan2tf3):
9723         Changed to define_expand patterns that copy operand[1] to prevent
9724         it from being clobbered before emitting an atan2?f3_1 insn.
9725         (atan2df3_1, atan2sf3_1, atan2xf_1, atan2tf3_1): New define_insn
9726         patterns that actually specify the behaviour of x87's FPATAN.
9727
9728 2003-07-07  Jakub Jelinek  <jakub@redhat.com>
9729
9730         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Remove bogus
9731         clearing of SYMBOL_FLAG_LOCAL bit.
9732         If vcall_offset fits into signed 16-bit immediate, use
9733         one instruction for both addition and load.
9734
9735 2003-07-07  Neil Booth  <neil@daikokuya.co.uk>
9736
9737         * opts.c (common_handle_option): Correct handling of the
9738         -falign- switches that do and don't take an argument.
9739
9740 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
9741
9742         * config/h8300/h8300.md (pushqi1_h8300hs): Revert my patch
9743         today.
9744         (pushhi1_h8300hs): Likewise.
9745
9746 2003-07-07  Andreas Jaeger  <aj@suse.de>
9747
9748         * genextract.c: Convert remaining prototypes to ISO C90.
9749
9750         * cpplex.c (_cpp_free_buff): Convert prototype to ISO C90.
9751         * fold-const.c (fold_single_bit_test): Likewise.
9752         * diagnostic.c (default_diagnostic_finalizer): Likewise.
9753         * cfgrtl.c (rtl_redirect_edge_and_branch): Likewise.
9754
9755         * gengtype.c (write_array): Generate ISO C90 prototypes.
9756
9757         * genflags.c (gen_proto): Generate ISO C90 prototypes.
9758
9759 2003-07-07  Roger Sayle  <roger@eyesopen.com>
9760
9761         PR optimization/11059
9762         * expr.c (can_store_by_pieces): Return true if length is zero.
9763         (store_by_pieces): If length is zero and endp is two, abort,
9764         othwerise, if length is zero and endp is not two, return "to".
9765         (clear_by_pieces): Do nothing if length is zero.
9766         (clear_storage): Do nothing if length is zero.
9767         (store_constructor): Simplify code when size is zero, or the
9768         target has already been cleared.  This avoids emitting a
9769         blockage instruction when initializing empty structures.
9770
9771 2003-07-07  Andreas Jaeger  <aj@suse.de>
9772
9773         * mips-tfile.c: Convert prototypes to ISO C90.
9774         * mips-tdump.c: Convert prototypes to ISO C90.
9775
9776 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9777
9778         * rtl.h (emit_line_note): Take a location_t.
9779         (emit_line_note_force): Remove.
9780         (set_file_and_line_for_statement): Take a location_t.
9781         * tree.g (emit_line_note): Take a location_t.
9782         * emit-rtl.c (emit_line_note): Take a location_t.
9783         (emit_line_note_force): Remove.
9784         * function.c (init_function_start): Adjust emit_line_note call.
9785         (expand_function_end): Use force_next_line_note, not
9786         emit_line_note_force.
9787         * c-parse.in (maybe_type_qual): Adjust emit_line_note calls.
9788         * c-semantics.c (genrtl_do_pushlevel, genrtl_goto_stmt,
9789         genrtl_expr_stmt_value, genrtl_decl_stmt, genrtl_if_stmt,
9790         genrtl_while_stmt, genrtl_do_stmt_1, genrtl_return_stmt,
9791         genrtl_for_stmt, genrtl_break_stmt, genrtl_continue_stmt,
9792         genrtl_continue_stmt, genrtl_switch_stmt,
9793         genrtl_asm_stmt): Likewise.
9794         * expr.c (expand_expr): Likewise.
9795         * integrate.c (expand_inline_function): Likewise.
9796         * stmt.c (set_file_and_line_for_stmt): Take a location_t.
9797         (expand_decl_init): Adjust emit_line_note call.
9798
9799 2003-07-07  Dale Johannesen  <dalej@apple.com>
9800
9801         * config/rs6000/darwin-tramp.asm:  Fix trampolines.  PR 10900.
9802
9803 2003-07-07  Andreas Jaeger  <aj@suse.de>
9804
9805         * config/i386/i386-protos.h: Convert prototypes to ISO C90.
9806         * config/i386/i386.c: Likewise.
9807
9808 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
9809
9810         * config/h8300/h8300.md: Use gen_int_mode instead of
9811         GEN_INT (trunc_int_for_mode (...)).
9812
9813 2003-07-07  Kazu Hirata  <kazu@cs.umass.edu>
9814
9815         * config/h8300/h8300.md (pushqi1_h8300hs): Optimize by pushing
9816         2 bytes and then subtract 2 from the stack pointer.
9817         (pushhi1_h8300hs): Likewise.
9818
9819 2003-07-07  Nathan Sidwell  <nathan@codesourcery.com>
9820
9821         * configure.in (enable_coverage): Remove -DSELF_COVERAGE, add
9822         -frandom-seed.
9823         * configure: Regenerated.
9824         * Makefile.in: Remove extraneous comment.
9825         * toplev.c (randomize): Protect against potential multiple calls.
9826         * doc/invoke.texi (-frandom-seed): Document use for in coverage
9827         files.
9828
9829 2003-07-07  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9830             Eric Botcazou  <ebotcazou@libertysurf.fr>
9831
9832         PR optimization/11198
9833         * alias.c (objects_must_conflict_p): Return 1 if the types have
9834         the same alias set, not if the alias sets only conflict.
9835
9836 2003-07-07  Andrew Pinski  <pinskia@physics.uc.edu>
9837
9838         * cppcharset.c (ICONV_CONST): Define iff !HAVE_ICONV.
9839         (convert_cset): Change inbuf to type ICONV_CONST char.
9840         * Makefile.in (LIBS): Add LIBICONV.
9841
9842         * doc/invoke.texi (-falign-functions): Document that
9843         when n is zero then a machine-dependent default is used.
9844         (-falign-labels): Document that when n is zero then a
9845         machine-dependent default is used and that -falign-labels =1
9846         is equivalent to -fno-align-labels.
9847         (-falign-loops): Likewise.
9848         (-falign-jumps): Likewise.
9849
9850 2003-07-06  Art Haas  <ahaas@airmail.net>
9851
9852         * f/global.c (ffeglobal_type_string_): Fix obsolete GCC array
9853         initializer syntax.
9854
9855 2003-07-06  James E Wilson  <wilson@tuliptree.org>
9856
9857         PR optimization/9812
9858         * rtl.h (mem_for_const_double): Delete prototype.
9859         * varasm.c (mem_for_const_double): Delete function.
9860         * config/m68k/hp320.h, config/m68k/linux.h, config/m68k/m68kelf.h,
9861         config/m68k/m68kv4.h, config/m68k/netbsd-elf.h
9862         (LEGITIMATE_PIC_OPERAND_P): Delete duplicate definitions.
9863         * config/m68k/m68k.h (LEGITIMATE_CONSTANT_P): Disallow XFmode.
9864         (LEGITIMATE_PIC_OPERAND_P): Delete CONST_DOUBLE tests.
9865         * config/m68k/m68k.md (movxf): Add reload_in_progress guard.  Add
9866         comment about confused support for XFmode constants.
9867
9868 2003-07-07  Jan Hubicka  <jh@suse.cz>
9869
9870         * cfglayout.c (fixup_reorder_chain): Call delete_dead_jumptables.
9871
9872 2003-07-06  Kazu Hirata  <kazu@cs.umass.edu>
9873
9874         * config/h8300/h8300.c: Fix comment typos.
9875         * config/h8300/h8300.md: Likewise.
9876         * config/i386/athlon.md: Likewise.
9877         * config/i386/i386.c: Likewise.
9878         * config/i386/pentium.md: Likewise.
9879         * config/ia64/ia64.c: Likewise.
9880         * config/ia64/itanium1.md: Likewise.
9881         * config/ia64/itanium2.md: Likewise.
9882         * config/m32r/m32r.md: Likewise.
9883         * config/m68hc11/m68hc11.c: Likewise.
9884         * config/mcore/mcore.c: Likewise.
9885         * config/mips/sr71k.md: Likewise.
9886         * config/mips/t-iris5-as: Likewise.
9887         * config/mmix/mmix.h: Likewise.
9888         * config/ns32k/ns32k.h: Likewise.
9889         * config/ns32k/NOTES: Fix a typo.
9890
9891 2003-07-06  Andreas Jaeger  <aj@suse.de>
9892
9893         * stmt.c: Convert remaining prototypes to ISO C90.
9894         * cfglayout.c: Likewise.
9895         * dbxout.c: Likewise.
9896         * gcc.c: Likewise.
9897         * genemit.c: Likewise.
9898
9899         * basic-block.h: Convert prototypes to ISO C90.
9900         * c-parse.in: Likewise.
9901         * c-pragma.h: Likewise.
9902         * c-typeck.c: Likewise.
9903         * cfghooks.h: Likewise.
9904         * cfgloopanal.c: Likewise.
9905         * dbxout.h: Likewise.
9906         * debug.h: Likewise.
9907         * dwarf2asm.h: Likewise.
9908         * gcov.c: Likewise.
9909         * gengtype-lex.l: Likewise.
9910         * sched-int.h: Likewise.
9911         * timevar.c: Likewise.
9912
9913 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9914
9915         * c-common.h (c_comon_handle_filename,
9916         c_common_missing_arguement): New.
9917         * c-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9918         LANG_HOOKS_MISSING_ARGUMENT): New.
9919         * c-opts.c (missing_arg): Rename c_common_missing_argument,
9920         update to be an appropriate langhook.
9921         (c_common_handle_option): Don't handle filenames.
9922         (c_common_handle_filename): New.
9923         * hooks.c (hook_void_constcharptr,
9924         hook_bool_constcharptr_size_t_false): New.
9925         * hooks.h (hook_void_constcharptr,
9926         hook_bool_constcharptr_size_t_false): New.
9927         * langhooks-def.h (LANG_HOOKS_HANDLE_FILENAME,
9928         LANG_HOOKS_MISSING_ARGUMENT): New.
9929         (LANG_HOOKS_INITIALIZER): Update.
9930         * langhooks.h (struct lang_hooks): Add handle_filename and
9931         missing_argument.
9932         * opts.c (handle_option): Don't handle filenames here, but ...
9933         (handle_options): ... here.
9934         (common_handle_option): Don't handle missing arguments here.
9935         * objc/objc-lang.c (LANG_HOOKS_HANDLE_FILENAME,
9936         LANG_HOOKS_MISSING_ARGUMENT): New.
9937
9938 2003-07-06  Neil Booth  <neil@daikokuya.co.uk>
9939
9940         * Makfile.in: Remove traces of mbchar.
9941         * c-parse.in (MULTIBYTE_CHARS): Remove.
9942         * config.in (MULTIBYTE_CHARS): Remove.
9943         * configure: Remove --enable-mbchar.
9944         * configure.in: Remove --enable-mbchar.
9945         * mbchar.c, mbchar.h: Remove.
9946         * system.h: Poison MULTIBYTE_CHARS.
9947         * config/linux-aout.h (MULTIBYTE_CHARS): Remove.
9948         * config/linux.h (MULTIBYTE_CHARS): Remove.
9949         * config/svr4.h (MULTIBYTE_CHARS): Remove.
9950         * config/sparc/linux.h (MULTIBYTE_CHARS): Remove.
9951
9952 2003-07-06  Andreas Jaeger  <aj@suse.de>
9953
9954         * varray.c (varray_check_failed): Fix typo.
9955
9956         * unroll.c: Convert prototypes to ISO C90.
9957         * varasm.c: Likewise.
9958         * varray.c: Likewise.
9959         * varray.h: Likewise.
9960         * vmsdbgout.c: Likewise.
9961         * xcoffout.c: Likewise.
9962         * xcoffout.h: Likewise.
9963
9964 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9965
9966         * gcov-io.h: Add a local time stamp.
9967         (struct gcov_info): Add stamp field.
9968         (gcov_truncate): New.
9969         * coverage.c (read_counts_file): Skip the stamp.
9970         (coverage_begin_output): Write the stamp.
9971         (build_gcov_info): Declare and init the stamp.
9972         (coverage_finish): Only unlink data file, if stamp is zero.
9973         * gcov-dump.c (dump_file): Dump the stamp.
9974         * gcov.c (bbg_stamp): New.
9975         (release_structures): Clear bbg_stamp.
9976         (read_graph_file): Read stamp.
9977         (read_count_file): Check stamp.
9978         * libgcov.c (gcov_exit): Check stamp and truncate if needed.
9979
9980 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9981
9982         * tree.h (default_flag_random_seed): Remove.
9983         * toplev.h (local_tick): Declare.
9984         * tree.c (flag_random_seed, default_flag_random_seed): Move to
9985         toplev.c.
9986         (append_random_chars): Don't call default_flag_random_seed.
9987         * toplev.c (flag_random_seed): Define here. Set local_tick.
9988         (local_tick): Define.
9989         (randomize): New, moved from tree.c.
9990         (print_switch_values): Adjust.
9991         (toplev_main): Call randomize.
9992
9993 2003-07-06  Nathan Sidwell  <nathan@codesourcery.com>
9994
9995         * tree.h (crc32_string): Declare.
9996         * tree.c (append_random_chars): Remove.
9997         (crc32_string): New.
9998         (get_file_function_name_long): Use crc32_string here.
9999
10000 2003-07-06  Andreas Jaeger  <aj@suse.de>
10001
10002         * gcc.c: Convert prototypes to ISO C90.
10003         * gcc.h: Likewise.
10004         * gcov-dump.c: Likewise.
10005         * gcov-iov.c: Likewise.
10006         * gcse.c: Likewise.
10007         * genattrtab.h: Likewise.
10008         * ggc.h: Likewise.
10009         * global.c: Likewise.
10010         * graph.c: Likewise.
10011         * graph.h: Likewise.
10012         * hosthooks.h: Likewise.
10013         * hooks.h: Likewise.
10014         * hooks.c: Likewise.
10015         * hashtable.h: Likewise.
10016         * hashtable.c: Likewise.
10017         * haifa-sched.c: Likewise.
10018         * integrate.h: Likewise.
10019         * integrate.c: Likewise.
10020         * input.h: Likewise.
10021         * ifcvt.c: Likewise.
10022         * jump.c: Likewise.
10023         * langhooks-def.h: Likewise.  Add extern to prototypes.
10024         * langhooks.c: Likewise.
10025         * langhooks.h: Likewise.
10026         * lcm.c: Likewise.
10027         * local-alloc.c: Likewise.
10028         * loop-init.c: Likewise.
10029         * loop-unroll.c: Likewise.
10030         * loop-unswitch.c: Likewise.
10031         * loop.c: Likewise.
10032         * loop.h: Likewise. Add extern to prototypes.
10033         * machmode.h: Likewise.
10034         * main.c: Likewise.
10035         * mbchar.c: Likewise.
10036         * mbchar.h: Likewise.
10037         * mkdeps.c: Likewise.
10038         * mkdeps.h: Likewise.
10039         * optabs.c: Likewise.
10040         * optabs.h: Likewise.
10041         * output.h: Likewise.
10042         * gccspec.c: Likwise.
10043         * postreload.c: Likewise.
10044         * prefix.c: Likewise.
10045         * prefix.h: Likewise.
10046         * print-rtl.c: Likewise.
10047         * print-tree.c: Likewise.
10048         * profile.c: Likewise.
10049         * read-rtl.c: Likewise.
10050         * real.c: Likewise.
10051         * real.h: Likewise.
10052         * recog.c: Likewise.
10053         * recog.h: Likewise.
10054         * reg-stack.c: Likewise.
10055         * regclass.c: Likewise.
10056         * regmove.c: Likewise.
10057         * regrename.c: Likewise.
10058         * regs.h: Likewise.
10059         * reload.c: Likewise.
10060         * reload.h: Likewise.
10061         * reload1.c: Likewise.
10062         * reorg.c: Likewise.
10063         * resource.c: Likewise.
10064         * resource.h: Likewise.
10065         * rtl-error.c: Likewise.
10066         * rtl.c: Likewise.
10067         * rtl.h: Likewise.
10068         * rtlanal.c: Likewise.
10069         * sbitmap.c: Likewise.
10070         * sbitmap.h: Likewise.
10071         * scan-decls.c: Likewise.
10072         * scan.c: Likewise.
10073         * sched-deps.c: Likewise.
10074         * sched-ebb.c: Likewise.
10075         * sched-int.h: Likewise.
10076         * sched-rgn.c: Likewise.
10077         * sched-vis.c: Likewise.
10078         * sibcall.c: Likewise.
10079         * simplify-rtx.c: Likewise.
10080         * sreal.c: Likewise.
10081         * sreal.h: Likewise.
10082         * ssa-ccp.c: Likewise.
10083         * ssa-dce.c: Likewise.
10084         * ssa.c: Likewise.
10085         * ssa.h: Likewise.
10086         * stack.h: Likewise.
10087         * stmt.c: Likewise.
10088         * stor-layout.c: Likewise.
10089         * stringpool.c: Likewise.
10090         * target.h: Likewise.
10091         * timevar.c: Likewise.
10092         * timevar.h: Likewise.
10093         * tlink.c: Likewise.
10094         * tracer.c: Likewise.
10095         * tree-inline.c: Likewise.
10096         * tree-inline.h: Likewise.
10097         * tree.c: Likewise.
10098         * tree.h: Likewise.
10099
10100 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10101
10102         * combine.c (nonzero_bits1): Fix a warning.
10103
10104 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10105
10106         * config/h8300/h8300.c (compute_mov_length): Correct the
10107         length of loading CONST0_RTX (SFmode).
10108
10109 2003-07-05  Nathan Sidwell  <nathan@codesourcery.com>
10110
10111         * toplev.c (output_clean_symbol_name): Remove.
10112         * toplev.h (output_clean_symbol_name): Remove.
10113         * config/alpha/alpha.c (unicosmk_output_module_name): Use
10114         lbasename & clean_symbol_name.
10115
10116 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10117
10118         * ggc.h: Follow spelling conventions.
10119         * config/i386/i386.c: Likewise.
10120         * config/i386/winnt.c: Likewise.
10121         * config/rs6000/rs6000.c: Likewise.
10122
10123 2003-07-05  Kazu Hirata  <kazu@cs.umass.edu>
10124
10125         * bt-load.c: Fix comment typos.
10126         * c-incpath.c: Likewise.
10127         * cfg.c: Likewise.
10128         * cfgcleanup.c: Likewise.
10129         * cfgloop.h: Likewise.
10130         * cfgloopmanip.c: Likewise.
10131         * cfgrtl.c: Likewise.
10132         * diagnostic.h: Likewise.
10133         * dwarfout.c: Likewise.
10134         * emit-rtl.c: Likewise.
10135         * et-forest.c: Likewise.
10136         * et-forest.h: Likewise.
10137         * expr.c: Likewise.
10138         * gcse.c: Likewise.
10139         * genattr.c: Likewise.
10140         * jump.c: Likewise.
10141         * langhooks.h: Likewise.
10142         * local-alloc.c: Likewise.
10143         * loop-unroll.c: Likewise.
10144         * loop-unswitch.c: Likewise.
10145         * ra-build.c: Likewise.
10146         * regclass.c: Likewise.
10147         * regmove.c: Likewise.
10148         * rtl.def: Likewise.
10149         * rtlanal.c: Likewise.
10150         * sched-ebb.c: Likewise.
10151         * sched-rgn.c: Likewise.
10152         * simplify-rtx.c: Likewise.
10153         * ssa.c: Likewise.
10154         * tracer.c: Likewise.
10155         * tree.c: Likewise.
10156
10157 2003-07-05  Zack Weinberg  <zack@codesourcery.com>
10158
10159         * cppcharset.c: Use the correct return type for the fallback iconv
10160         macro.
10161
10162 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10163
10164         Blame to Jan Hubicka  <jh@suse.cz>
10165         * cfglayout.c (record_effective_endpoints): Split insns before
10166         first basic block correctly.
10167
10168 2003-07-05  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10169
10170         * expr.c (expand_expr, case COMPONENT_REF): When seeing if should use
10171         bitfield operations, use STRICT_ALIGNMENT, not SLOW_UNALIGNED_ACCESS
10172         if EXPAND_CONST_ADDRESS or EXPAND_INITIALIZER.
10173
10174 2003-07-05  Andreas Jaeger  <aj@suse.de>
10175
10176         * genattrtab.c (write_attr_get): Revert part of last patch to
10177         always write out a prototype.
10178
10179         * genemit.c (gen_split): Readd lost unused attributes in last
10180         patch.
10181
10182 2003-07-05  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10183
10184         * cfgloopmanip.c (force_single_succ_latches): Force latch to be
10185         different from header.
10186
10187 2003-07-05  Andreas Schwab  <schwab@suse.de>
10188
10189         * config/m68k/m68k.c: Remove code protected by CRDS.
10190         * config/m68k/m68k.md: Likewise.
10191
10192 2003-07-05  Neil Booth  <neil@daikokuya.co.uk>
10193
10194         PR driver/11417
10195         * c-opts.c (permit_fortran_options): New.
10196         (c_common_init_options): Accept fortran front end options if
10197         it looks like we might be preprocessing Fortran.
10198         (c_common_handle_option): Don't reject switch if permit_fotran_options.
10199
10200 2003-07-05  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10201
10202         * genattr.c (internal_dfa_insn_code): Output prototype.
10203         * genattrtab.c: Don't output unnecessary decls, output in ISO C.
10204         * genautomata.c: Likewise.
10205         * genconditions.c: Likewise.
10206         * genemit.c: Likewise.
10207         * genextract.c: Likewise.
10208         * gengenrtl.c: Likewise.
10209         * gengtype.c: Likewise.
10210         * genopinit.c: Likewise.
10211         * genoutput.c: Likewise.
10212         * genpeep.c: Likewise.
10213         * genrecog.c: Likewise.
10214
10215 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
10216
10217         * cpplib.h (CPP_AT_NAME, CPP_OBJC_STRING): New token types.
10218         (struct cpp_options): Add narrow_charset, wide_charset,
10219         bytes_big_endian fields.  Remove EBCDIC field.
10220         (cpp_init_iconv, cpp_interpret_string): New external interfaces.
10221
10222         * cpphash.h: Include <iconv.h> if we have it, otherwise
10223         provide a dummy definition of iconv_t.
10224         (struct cpp_reader): Add narrow_cset_desc and wide_cset_desc fields.
10225         (_cpp_valid_ucn): Update prototype.
10226         (_cpp_destroy_iconv): New prototype.
10227
10228         * doc/cpp.texi: Document character set handling.
10229         * doc/cppopts.texi: Document -fexec-charset= and -fexec-wide-charset=.
10230         * doc/extend.texi: Delete entire section on multiline strings.
10231         Rewrite section on __FUNCTION__ etc now that these are
10232         variables in C.
10233
10234         * cppucnid.tab, cppucnid.pl: New files.
10235         * cppucnid.h: New generated file.
10236         * cppcharset.c: Include cppucnid.h.  Lots of commentary added.
10237         (iconv_open, iconv, iconv_close): Provide dummy definitions
10238         if !HAVE_ICONV.
10239         (SOURCE_CHARSET, struct strbuf, init_iconv_desc, cpp_init_iconv,
10240         _cpp_destroy_iconv, convert_cset, width_to_mask, convert_ucn,
10241         emit_numeric_escape, convert_hex, convert_oct, convert_escape,
10242         cpp_interpret_string, narrow_str_to_charconst,
10243         wide_str_to_charconst): New.
10244         (ucn_valid_in_identifier): Use a binary search through the
10245         ucnranges table defined in cppucnid.h, not a long chain of if
10246         statements.
10247         (_cpp_valid_ucn): Add a limit pointer.  Downgrade "universal
10248         character names are only valid in C++ and C99" to a warning.
10249         Issue the "meaning of \[uU] is different in traditional C"
10250         warning here.  Take care not to let iconv see an invalid UCS
10251         value if we get a malformed UCN.  Issue an error if we don't
10252         have iconv.
10253         (cpp_interpret_charconst): Moved here from cpplex.c.  Use
10254         cpp_interpret_string to do the heavy lifting.
10255
10256         * cppinit.c (cpp_create_reader): Initialize bytes_big_endian,
10257         narrow_charset, wide_charset fields of options structure.
10258         (cpp_destroy): Call _cpp_destroy_iconv.
10259         * cpplex.c (forms_identifier_p): Adjust call to _cpp_valid_ucn.
10260         (maybe_read_ucn, hex_digit_value, cpp_parse_escape): Delete.
10261         (cpp_interpret_charconst): Moved to cppcharset.c.
10262         * cpplib.c (dequote_string): Delete.
10263         (interpret_string_notranslate): New.
10264         (do_line, do_linemarker): Use interpret_string_notranslate.
10265
10266         * Makefile.in (cppcharset.o): Depend on cppucnid.h.
10267
10268         * c-common.c (fname_string, combine_strings): Delete.
10269         * c-common.h (fname_string, combine_strings): Delete prototypes.
10270         * c-lex.c (ignore_escape_flag): Delete.
10271         (cb_ident): Use cpp_interpret_string, not lex_string.
10272         (get_nonpadding_token): New function.
10273         (c_lex): Handle Objective-C @-prefixed identifiers and strings here.
10274         Adjust calls to lex_string.  Don't write *value twice.
10275         (lex_string): Now handles string constant concatenation.
10276         Most of the work handed off to cpp_interpret_string.
10277         Call fix_string_type here.
10278         * c-parse.in (STRING_FUNC_NAME, VAR_FUNC_NAME): Replace with
10279         FUNC_NAME, throughout.
10280         (OBJC_STRING): New token type.
10281         (primary:STRING): No need to call fix_string_type here.
10282         (primary:objc_string): Make that OBJC_STRING.
10283         (objc_string nonterminal): Delete.
10284         (yylexname): Delete code to handle fake string constants.
10285         (yylexstring): Delete entirely.
10286         (_yylex): Handle CPP_AT_NAME and CPP_OBJC_STRING.  No need
10287         to handle CPP_ATSIGN.
10288
10289         * c.opt (-fexec-charset=, -fwide-exec-charset=): New options.
10290         * c-opts.c (missing_arg, c_common_handle_option): Handle
10291         OPT_fexec_charset_ and OPT_fwide_exec_charset_.
10292         (c_common_init): Set cpp_opts->bytes_big_endian, not
10293         cpp_opts->EBCDIC.  Call cpp_init_iconv.
10294         (print_help): Document -fexec-charset= and -fexec-wide-charset=.
10295         (TARGET_EBCDIC): Delete default definition.
10296
10297         * objc/objc-act.c (build_objc_string_object): No need to
10298         handle string constant concatenation.
10299
10300 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
10301
10302         * doc/install.texi: Fix typos.
10303         * doc/invoke.texi: Likewise.
10304         * doc/tm.texi: Likewise.
10305
10306 2003-07-04  Kazu Hirata  <kazu@cs.umass.edu>
10307
10308         * config/pa/fptr.c: Fix comment typos.
10309         * config/pa/pa-64.h: Likewise.
10310         * config/pa/pa.c: Likewise.
10311         * config/pa/pa.h: Likewise.
10312         * config/rs6000/603.md: Likewise.
10313         * config/rs6000/7xx.md: Likewise.
10314         * config/rs6000/darwin.h: Likewise.
10315         * config/rs6000/freebsd.h: Likewise.
10316         * config/rs6000/rs6000.c: Likewise.
10317         * config/rs6000/rs6000.md: Likewise.
10318         * config/rs6000/spe.h: Likewise.
10319
10320 2003-07-04  Ulrich Weigand  <uweigand@de.ibm.com>
10321
10322         * config/s390/2064.md: Change GNU CC to GCC.
10323         * config/s390/2084.md: Likewise.
10324         * config/s390/fixdfdi.h: Likewise.
10325         * config/s390/linux.h: Likewise.
10326         * config/s390/s390-modes.def: Likewise.
10327         * config/s390/s390-protos.h: Likewise.
10328         * config/s390/s390.c: Likewise.
10329         * config/s390/s390.h: Likewise.
10330         * config/s390/s390.md: Likewise.
10331         * config/s390/s390x.h: Likewise.
10332
10333 2003-07-04  Jeff Law  <law@redhat.com>
10334
10335         PR c/11428
10336         * expr.c (do_store_flag): Pass in the correct result type
10337         when calling fold_single_bit_test.
10338         * fold-const.c (fold_single_bit_test): Use result_type for the
10339         result when folding a sign bit test.
10340
10341 2003-07-04  Neil Booth  <neil@daikokuya.co.uk>
10342
10343         * opts.c (common_handle_options): Negate sense of -falign- switches.
10344
10345 2003-07-04  H.J. Lu <hongjiu.lu@intel.com>
10346
10347         * Makefile.in: Replace PWD with PWD_COMMAND.
10348
10349 2003-07-04  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10350
10351         * cfgloopanal.c (count_strange_loop_iterations): New static function.
10352         (constant_iterations, count_loop_iterations, simple_loop_exit_p):
10353         Handle strange loops.
10354
10355 2003-07-04  Toon Moene  <toon@moene.indiv.nluug.nl>
10356
10357         * install.texi: Even the g77 manpage is derived from
10358         the full g77 manual.
10359
10360 2003-07-04  Zack Weinberg  <zack@codesourcery.com>
10361
10362         * ABOUT-NLS: Delete.
10363         * intl: Delete entire directory.
10364         * aclocal.m4: Include ../config/gettext.m4.  Delete
10365         AC_ISC_POSIX, AM_LANGINFO_CODESET, jm_GLIBC21, AM_LC_MESSAGES,
10366         AM_PATH_PROG_WITH_TEST, AM_WITH_NLS, and AM_GNU_GETTEXT.
10367         * configure.in: Use CY_GNU_GETTEXT, not AM_GNU_GETTEXT.
10368         Remove intl/Makefile from all_outputs.
10369         * configure, config.in: Regenerate.
10370         * Makefile.in: Expunge all references to intl subdirectory.
10371         Add -I../intl to INCLUDES.
10372         * intl.h: Include libintl.h if and only if ENABLE_NLS is defined.
10373
10374 2003-07-04  Roger Sayle  <roger@eyesopen.com>
10375
10376         * config/rs6000/aix51.h (TARGET_C99_FUNCTIONS): Define.
10377         * config/rs6000/aix52.h (TARGET_C99_FUNCTIONS): Likewise.
10378
10379 2003-07-04  Danny Smith  <dannysmith@users.sourceforge.net>
10380
10381         PR c++/5287, PR c++/7910, PR c++/11021
10382         * config/i386/winnt.c (ix86_handle_dll_attribute): Don't add
10383         dllimport attribute if function is defined at declaration, but
10384         report error instead. Likewise for dllimport'd variable
10385         definitions.  Set implicit TREE_PUBLIC for dllimport'd variables
10386         declared within functions, Report error if dllimport or dllexport
10387         symbol is not global.
10388         (i386_pe_dllimport_p): Ignore dllimport attribute of functions
10389         if defined after declaration or if inlined. Don't allow definition
10390         of static data members of C++ classes. Don't dllimport virtual
10391         methods.
10392         (i386_pe_mark_dllexport): Warn about inconsistent dll attributes.
10393         (i386_pe_mark_dllimport): Remove unnecessary checks.
10394         (i386_pe_encode_section_info): Warn if the dllimport attribute
10395         and symbol prefix have been instantiated and then overridden.
10396
10397         * doc/extend.texi: Document dllimport and dllexport attributes.
10398
10399         * config/i386/winnt.c (i386_pe_output_labelref): Fix indents.
10400
10401 2003-07-03 Uwe Stieber <uwe@kaos-group.de>
10402
10403         * config/kaos.h (CPP_PREDEFINES): Delete.
10404         (TARGET_OS_CPP_BUILTINS): New.
10405
10406 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10407
10408         * c-aux-info.c: Include toplev.h after c-tree.h.
10409         * c-common.c: Likewise.
10410         (GCC_DIAG_STYLE): Undef.
10411         * c-semantics.c (GCC_DIAG_STYLE): Define.
10412         * c-tree.h (GCC_DIAG_STYLE): Likewise.
10413         * diagnostic.h (inform): Move prototype to toplev.h.
10414         * jump.c: Include diagnostic.h before toplev.h.
10415         * toplev.h (GCC_DIAG_STYLE, ATTRIBUTE_GCC_DIAG): Define.
10416         (warning, error, fatal_error, pedwarn, sorry, inform,
10417         error_for_asm, warning_for_asm): Mark with ATTRIBUTE_GCC_CXXDIAG.
10418
10419 2003-07-03  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10420
10421         * cfglayout.c (cfg_layout_duplicate_bb): Do not update frequencies
10422         at all if edge is not specified.
10423         (can_copy_bbs_p, copy_bbs): New.
10424         * cfglayout.h (can_copy_bbs_p, copy_bbs): Declare.
10425         * cfgloop.c (get_loop_body): Comment more precisely.
10426         * cfgloopmanip.c (copy_bbs, record_exit_edges): Removed.
10427         (scale_bbs_frequencies): Fix comment typo.
10428         (can_duplicate_loop_p): Use can_copy_bbs_p.
10429         (duplicate_loop_to_header_edge): Simplify by using copy_bbs.
10430
10431 2003-07-03  Devang Patel <dpatel@apple.com>
10432
10433         * c-opts.c (c_common_parse_file): Remove extra
10434         debug_hooks->start_source_file call.
10435
10436 2003-07-03  Roger Sayle  <roger@eyesopen.com>
10437
10438         * real.c (real_trunc, real_floor, real_ceil): New functions
10439         to implement trunc, floor and ceil respectively.
10440         * real.h (real_trunc, real_floor, real_ceil): Prototype here.
10441         * builtins.c (integer_valued_real_p): New function to test if
10442         a floating point expression has an integer valued result.
10443         (fold_trunc_transparent_mathfn): Optimize foo(foo(x)) as
10444         foo(x) where foo is an integer rounding function.  Similarly,
10445         optimize foo(bar(x)) as bar(x), and foo((double)(int)x) as
10446         (double)(int)x when both foo and bar are integer rounding
10447         functions and we don't need to honor errno.
10448         (fold_builtin_trunc, fold_builtin_floor, fold_builtin_ceil):
10449         New functions to fold trunc, floor and ceil.
10450         (fold_builtin): Use fold_builtin_trunc to fold BUILT_IN_TRUNC*,
10451         fold_builtin_floor to fold BUILT_IN_FLOOR* and fold_builtin_ceil
10452         to fold BUILT_IN_CEIL*.
10453         * fold-const.c (tree_expr_nonnegative_p): Handle FLOAT_EXPR and
10454         the remaining integer rounding functions.
10455
10456 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10457
10458         * config/sparc/sparc.c (function_arg_partial_nregs): Use
10459         SPARC_INT_ARG_MAX to determine where to split unnamed
10460         complex FP arguments.
10461
10462 2003-07-03  Jan Hubicka  <jh@suse.cz>
10463
10464         * basic-block.h (create_basic_block, merge_blocks_nomove): Kill.
10465         * cfgcleanup.c (merge_blocks): Rename to merge_blocks_move.
10466         (merge_blocks_move_predecessor_nojumps,
10467          merge_blocks_move_successor_nojumps): Use merge_blocks.
10468         (try_optimize_cfg): Use merge_blocks_move.
10469         * cfgrtl.c (create_basic_block): Rename to rtl_create_basic_block.
10470         (merge_blocks_nomove): Rename to rtl_merge_blocks.
10471         (cfg_layout_create_basic_block): New.
10472         (rtl_can_merge_blocks): New.
10473         (cfg_layout_split_block): Do not alloc aux by hand.
10474         * cfghooks.h (cfg_hooks): Add create_basic_block, can_merge_blocks_p,
10475         merge_blocks.
10476         (create_basic_block, can_merge_blocks_p, merge_blocks): New macros.
10477         * cfglayout.c (cfg_layout_duplicate_bb): Do not allocate aux by hand.
10478         * cfgloopmanip.c (loop_split_edge_with): Likewise.
10479         * ifcvt.c (merge_if_block): Use merge_blocks_nomove.
10480
10481         * basic-block.h (basic_block_def): Add field 'rbi'.
10482         * bb-reorder.c (find_traces, rotate_loop, mark_bb_visited,
10483         find_traces_1_round, copy_bb, connect_traces): Update use of rbi.
10484         * cfg.c (entry_exit_blocks): Add new field.
10485         * cfglayout.c: Include alloc-pool.h;
10486         (cfg_layout_pool): New.
10487         (record_effective_endpoints, fixup_reorder_chain,
10488         fixup_fallthru_exit_predecessor, cfg_layout_duplicate_bb): Update use
10489         of rbi.
10490         (cfg_layout_initialize_rbi): New function.
10491         (cfg_layout_initialize): Use it.
10492         (cfg_layout_finalize): Clear rbi fields.
10493         * cfglayout.h (RBI): Kill.
10494         (cfg_layout_initialize_rbi): Declare.
10495         * cfgloopmanip.c (copy_bbs): Use rbi.
10496         (record_exit_edges): Likewise.
10497         (duplicate_loop_to_header_edge): Likewise.
10498         * cfgrtl.c (cfg_layout_create_basic_block): Use
10499         cfg_layout_initialize_rbi.
10500         (cfg_layout_split_block): Use rbi.
10501         (cfg_layout_delete_block): Likewise.
10502         * loop-init.c (loop_optimizer_finalize): Likewise.
10503         * loop-unswitch.c (unswitch_loop): Likewise.
10504         * tracer.c (seen, tail_duplicate, layout_superblocks): Likewise.
10505
10506         * cfgrtl.c: Update comments.
10507         (try_redirect_by_replacing_jump): New argument.
10508         (redirect_branch_edge): Break out from ...
10509         (rtl_redirect_edge_and_branch): ... this one.
10510         (update_cfg_after_block_merging): Break out from ...
10511         (rtl_merge_blocks): ... this one.
10512         (cfg_layout_split_edge): New.
10513         (cfg_layout_merge_blocks): New.
10514         (cfg_layout_can_merge_blocks_p): New.
10515         (cfg_layout_redirect_edge_and_branch): Reorganize.
10516         (cfg_layout_rtl_cfg_hooks): Fill in.
10517         (cfg_layout_delete_block): Kill barriers.
10518         * cfganal.c (can_fallthru): Deal with exit blocks
10519         * cfglayout.c (cfg_layout_function_header): New function
10520         (record_effective_endpoints): Record function header.
10521         (fixup_reorder_chain): Fixup dead jumptables; place header
10522
10523         * basic-block.h (CLEANUP_CFGLAYOUT): New flag.
10524         * bb-reorder.c (cfg_layout_initialize): Update call.
10525         * cfgcleanup.c (try_optimize_cfg): Supress optimizations of fallthru
10526         edges in cfglayout mode.
10527         * cfglayout.c (cleanup_unconditional_jumps): Kill.
10528         (cfg_layout_initialize): Kill agrument loops; use cfgcleanup.
10529         * cfglayout.h (cfg_layout_initialize): Update prototype.
10530         * cfgloop.h (CP_INSIDE_CFGLAYOUT): Kill.
10531         * cfgloopmanip.c (loop_split_edge_with): Use split_edge.
10532         * flow.c (propagate_block): Do not crash when basic block ends
10533         by first insn in the chain.
10534         * loop-init.c (loop_optimizer_init):  First enter cfglayout mode; later
10535         do loop discovery.
10536         * tracer.c (tracer): Update call of cfg_layout_initialize.
10537
10538 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10539
10540         * Makefile.in: Use dependency variables in lieu of explicit
10541         files throughout.
10542
10543 2003-07-03  Steven Bosscher  <steven@gcc.gnu.org>
10544
10545         * rtl.h (ECF_*, flags_from_decl_or_type): Move from here...
10546         * tree.h: ...to here.
10547
10548 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
10549
10550         * config/s390/2064.md: Fix comment typos.
10551         * config/s390/2084.md: Likewise.
10552         * config/s390/s390.c: Likewise.
10553         * config/s390/s390.md: Likewise.
10554         * config/sh/sh.c: Likewise.
10555         * config/sh/sh.h: Likewise.
10556         * config/sh/sh.md: Likewise.
10557         * config/sparc/sparc.c: Likewise.
10558         * config/sparc/sparc.h: Likewise.
10559         * config/sparc/sparc.md: Likewise.
10560         * config/stormy16/stormy16.c: Likewise.
10561         * config/stormy16/stormy16.h: Likewise.
10562         * config/stormy16/stormy-abi: Fix a typo.
10563
10564 2003-07-03  Kelley Cook  <kelleycook@wideopenwest.org>
10565
10566         * Makefile.in (ifcvt.o): Depend on OPTABS_H.
10567
10568 2003-07-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10569
10570         * config/mips/mips.h (save_argv): Delete.
10571
10572 2003-07-03  Roger Sayle  <roger@eyesopen.com>
10573
10574         PR target/10700
10575         * fold-const.c (extract_muldiv_1): There's nothing that can be done
10576         if the expression is a SAVE_EXPR.
10577
10578 2003-07-03  Kazu Hirata  <kazu@cs.umass.edu>
10579
10580         * config/m32r/m32r.c: Fix comment typos.
10581         * config/m68hc11/m68hc11.c: Likewise.
10582         * config/m68hc11/m68hc11.h: Likewise.
10583         * config/m68k/m68k.c: Likewise.
10584         * config/mcore/mcore.c: Likewise.
10585         * config/mcore/mcore.h: Likewise.
10586         * config/mcore/mcore.md: Likewise.
10587         * config/mips/mips.c: Likewise.
10588         * config/mips/mips.h: Likewise.
10589         * config/mips/mips.md: Likewise.
10590         * config/mips/netbsd.h: Likewise.
10591         * config/mn10300/mn10300.c: Likewise.
10592
10593 2003-07-03  Andreas Schwab  <schwab@suse.de>
10594
10595         * dbxout.c (pending_bincls): Move decl down inside
10596         DBX_DEBUGGING_INFO || XCOFF_DEBUGGING_INFO section.
10597
10598 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
10599
10600         * rtl.h (NOTE_DATA): Refer to whole union.
10601         * emit-rtl.c (emit_note): Use memset to clear NOTE_DATA.
10602
10603 2003-07-03  Eric Botcazou  <ebotcazou@libertysurf.fr>
10604
10605         PR optimization/11381
10606         * simplify-rtx.c (simplify_relational_operation): Check that
10607         two equal operands have no side-effects before simplifying
10608         the comparison.
10609
10610 2003-07-02  Jeff Law  <law@redhat.com>
10611
10612         * expr.c (do_store_flag): Remove special case folding for
10613         single bit tests.  Instead call back into the commonized folder
10614         routine.
10615         * fold-const.c (fold_single_bit_test): New function, mostly
10616         extracted from do_store_flag, with an additional case extracted
10617         from fold.
10618         (fold): Call fold_single_bit_test appropriately.
10619         * tree.h (fold_single_bit_test): Prototype.
10620
10621 2003-07-02  Zack Weinberg  <zack@codesourcery.com>
10622
10623         * system.h: Include filenames.h.
10624         (IS_DIR_SEPARATOR, IS_ABSOLUTE_PATHNAME): Don't define.
10625         (DIR_SEPARATOR, DIR_SEPARATOR_2): If not already defined,
10626         define based on HAVE_DOS_BASED_FILE_SYSTEM.
10627         * config/i386/xm-cygwin.h, config/i386/xm-djgpp.h
10628         * config/i386/xm-mingw32.h: Don't define
10629         HAVE_DOS_BASED_FILE_SYSTEM,
10630         DIR_SEPARATOR, or DIR_SEPARATOR_2.
10631         * doc/hostconfig.texi: Update to match.
10632
10633         * cppfiles.c, gcc.c, gensupport.c, protoize.c,
10634         config/i386/cygwin.h:
10635         Use IS_ABSOLUTE_PATH throughout.
10636         * gcc.c (DIR_UP): Delete, unused.
10637         * protoize.c (IS_SAME_PATH): Define in terms of
10638         FILENAME_CMP.
10639         (is_abspath): Delete.
10640
10641 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
10642
10643         * config/i386/emmintrin.h: Fix comment typos.
10644         * config/i386/i386.c: Likewise.
10645         * config/i386/i386.h: Likewise.
10646         * config/i386/sco5.h: Likewise.
10647         * config/ia64/ia64.c: Likewise.
10648         * config/ia64/itanium2.md: Likewise.
10649
10650 2003-07-02  H.J. Lu  <hongjiu.lu@intel.com>
10651
10652         * dbxout.c (pending_bincls): Replace DBX_USE_BINCLS with
10653         DBX_USE_BINCL.
10654         (emit_bincl_stab): Same.
10655         (emit_pending_bincls): Same.
10656
10657 2003-07-02  Kazu Hirata  <kazu@cs.umass.edu>
10658
10659         * config/h8300/h8300.c (compute_mov_length): Fix the length of
10660         loading CONST0_RTX (SFmode).
10661         * config/h8300/h8300.h (CONST_DOUBLE_OK_FOR_LETTER_P): Change
10662         'G' to CONST0_RTX (SFmode).
10663         * config/h8300/h8300.md (movsf_h8300): Change the first
10664         constraint to 'G'.
10665         (movsf_h8300h): Likewise.
10666
10667 2003-07-02  Neil Booth  <neil@daikokuya.co.uk>
10668
10669         * c-common.h (c_common_init_options): New prototype.
10670         * c-opts.c (deferred_size): Remove.
10671         (defer_opt): Array is now pre-allocated.
10672         (c_common_init_options): Pre-allocate deferred_opts.  Make
10673         lang_flags unsigned.
10674         (push_command_line_options): Free deferred_opts.
10675         * hooks.c (hook_uint_uint_constcharptrptr_0): New.
10676         * hooks.h (hook_uint_uint_constcharptrptr_0): New.
10677         * langhooks-def.h (LANG_HOOKS_INIT_OPTIONS): Update.
10678         * langhooks.h (struct lang_hooks): New prototype for init_options.
10679         * main.c (main): Cast argv.
10680         * opts.c (handle_option, handle_options): Update prototypes.
10681         (decode_options): save_argc, save_argv are not global.  Constify.
10682         * opts.h (decode_options): New prototype.
10683         * toplev.c (general_init): New protoype.
10684         (save_argv): Make static.
10685         (save_argc): Remove.
10686         (print_switch_values, general_init): Constify.
10687         (toplev_main): Save argv.
10688         * toplev.h (toplev_main): Update prototype.
10689         (save_argc, save_argv): Remove.
10690
10691 2003-07-02  David Edelsohn  <edelsohn@gnu.org>
10692
10693         * dbxout.c (pending_bincls): Guard with DBX_USE_BINCLS.
10694         (emit_bincl_stab): Same.
10695         (emit_pending_bincls): Same.
10696
10697 2003-07-02  Nathan Sidwell  <nathan@codesourcery.com>
10698
10699         PR c++/11072
10700         * ginclude/stddef.h (offsetof): Remove cast to 'char &'. Explain why.
10701
10702 2003-07-02  Andreas Schwab  <schwab@suse.de>
10703
10704         * dbxout.c (pending_bincls): Only define if DBX_DEBUGGING_INFO.
10705
10706 2003-07-02  Eric Botcazou  <ebotcazou@libertysurf.fr>
10707
10708         PR optimization/11210
10709         * expr.c (handled_component_p) [NOP_EXPR]: Add ??? note
10710         about the behaviour with regard to bitfields.
10711         * fold-const (decode_field_reference): Record outermost type in
10712         case the expression is a NOP. Strip all NOPs. Set the signedness
10713         to that of the outermost type (if any) when the bitsize is equal
10714         to the size of the type.
10715
10716 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10717
10718         * config/mips/mips.md (addsi3): Remove workaround for adds of -32768.
10719         (addsi3_internal, adddi3, adddi3_internal_2): Likewise.
10720         (adddi3_internal_3, addsi3_internal_2): Likewise.
10721
10722 2003-07-02  Richard Sandiford  <rsandifo@redhat.com>
10723
10724         * config/mips/mips.c (machine_function): Add new fields:
10725         ignore_hazard_length_p and all_noreorder_p.
10726         (mips_flag_delayed_branch): New variable.
10727         (override_options): Treat '/' as an operand punctuation character.
10728         Set up mips_flag_delayed_branch.
10729         (print_operand): Handle '/'.
10730         (mips_output_function_prologue): Put the whole function in
10731         .set noreorder and .set nomacro if all_noreorder_p is true.
10732         (mips_output_function_epilogue): End the noreorder/nomacro sequence.
10733         (mips16_optimize_gp): Remove "first insn" parameter.
10734         (mips16_lay_out_constants): New function, split out from mips_reorg.
10735         (mips_avoid_hazard, mips_avoid_hazards): New functions.
10736         (mips_reorg): For mips16 code, call mips16_lay_out_constant
10737         and (optionally) mips16_optimize.  If TARGET_EXPLICIT_RELOCS,
10738         do delayed-branch scheduling followed by hazard detection.
10739         (mips_adjust_insn_length): Only account for hazards if
10740         !ignore_hazard_length_p.
10741         (mips_output_load_label): Add a nop to the o32 sequence if
10742         the target suffers from load delays.
10743         (mips_output_conditional_branch): Add %/ to the end of branches.
10744         (mips_output_division): Fill the branch delay slot with %#.
10745         * config/mips/mips.md: Remove redundant '%*' from mips16 branch
10746         instructions.  End all other %* branches with %/.
10747         (ffssi2, ffsdi2): Fix lengths.
10748         (truncdisi2, truncdihi2, truncdiqi2): Add store attributes.
10749         (fix_truncdfsi2_macro): Turn off .set nomacro if appropriate.
10750         (fix_truncsfsi2_macro): Likewise.
10751         (mov_lwl): Set hazard to "none".
10752         (ashldi3_internal): Fill the branch delay slot with %#.
10753         (ashrdi3_internal, lshrdi3_internal): Likewise.
10754         (exception_receiver): Explicitly set $28.
10755         (hazard_nop): New pattern.
10756
10757 2003-07-02  Jan Hubicka  <jh@suse.cz>
10758
10759         * cgraphunit.c (cgraph_finalize_unit): Set current_function_decl
10760         before calling tree_inlinable_function_p.
10761
10762 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10763
10764         * fixinc/inclhack.def (irix_stdio_va_list): Apply to IRIX 6.5
10765         <internal/stdio_core.h> too.
10766         (stdio_va_list): Apply to IRIX 6.5 <internal/stdio_core.h> and
10767         <internal/wchar_core.h> too.
10768         Substitute va_list uses in inline definition.
10769         * fixinc/fixincl.x: Regenerate.
10770
10771 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10772
10773         * config/mips/iris5.h (SET_FILE_NUMBER): Moved here from iris3.h.
10774         Undef before redefinition.
10775         (LABEL_AFTER_LOC): Likewise.
10776         (DEFAULT_SIGNED_CHAR): Likewise.
10777         (ASM_OUTPUT_ASCII): Moved here from iris4.h.
10778         Fix IRIX spelling.
10779
10780         * config/mips/iris3.h: Remove, unused.
10781         * config/mips/iris4.h: Likewise.
10782
10783         * config/mips/mips.h (STACK_ARGS_ADJUST): Remove, unused.
10784
10785         * config/mips/iris5.h (TARGET_DEFAULT): Move ...
10786         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here to
10787         target_cpu_default.
10788
10789         * config/mips/iris5.h: Move explicit includes ...
10790         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): ... here.
10791
10792         * config/mips/iris6.h (MIPS_ISA_DEFAULT, MIPS_ABI_DEFAULT): Move ...
10793         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10794         tm_defines.
10795
10796         * config/mips/iris6.h (TARGET_DEFAULT): Move ...
10797         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here to
10798         target_cpu_default.
10799
10800         * config/mips/iris6.h: Fix IRIX spelling.
10801         (MULTILIB_DEFAULTS): Undef before redefinition.
10802
10803         * config/mips/iris6.h: Move explicit includes ...
10804         * config.gcc (mips-sgi-irix6*, mips-sgi-irix5cross64): ... here.
10805
10806 2003-07-02  Jan Hubicka  <jh@suse.cz>
10807
10808         * cgraph.c (cgraph_mark_needed_node, cgraph_varpool_mark_needed_node,
10809         cgraph_varpool_finalize_decl, cgraph_varpool_assemble_pending_decls):
10810         Use next_needed field instead of aux to maintain the queue.
10811         * cgraph.h (cgraph_node): Add next_needed.
10812         (cgraph_varpool_node): Add next_needed; remove aux.
10813         * cgraphunit.c (cgraph_finalize_compilation_unit): Use next_needed.
10814
10815 2003-07-02  Jan Hubicka  <jh@suse.cz>
10816
10817         * cgraphunit.c (cgraph_finalize_function): Set finalized.
10818         (cgraph_finalize_function): Do not examine inlinablility.
10819         (cgraph_finalize_compilation_unit): Do it here.
10820         * cgraph.h (cgraph_local_info): Add finalized field.
10821
10822 2003-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10823
10824         * ggc-common.c (gt_pch_save): Cast MAP_FAILED to void *.
10825         (gt_pch_restore): Likewise.
10826
10827 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
10828
10829         * config/alpha/alpha.c: Fix comment typos.
10830         * config/alpha/elf.h: Likewise.
10831         * config/arm/arm.c: Likewise.
10832         * config/arm/arm.h: Likewise.
10833         * config/arm/arm.md: Likewise.
10834         * config/arm/t-arm-coff: Likewise.
10835         * config/arm/t-strongarm-pe: Likewise.
10836         * config/arm/xscale-elf.h: Likewise.
10837         * config/avr/avr.h: Likewise.
10838
10839 2003-07-01  Jeff Law  <law@redhat.com>
10840
10841         * stmt.c (any_pending_cleanups): Remove another redundant test.
10842
10843 2003-07-01  David Edelsohn  <edelsohn@gnu.org>
10844             J"orn Rennecke <joern.rennecke@superh.com>
10845
10846         * config/rs6000/rs6000.md (ctr{s,d}i_internal?): Add earlyclobber
10847         for MEM case.
10848
10849 2003-07-01  Devang Patel  <dpatel@apple.com>
10850
10851         * dbxout.c (DBXOUT_DECR_NESTING): Emit pending bincls, if required.
10852         (binclstatus): New.
10853         (struct dbx_file): New members - bincl_status, pending_bincl_name and
10854         prev.
10855         (pending_bincls): New.
10856         (dbxout_init): Initialize new dbx_file members.
10857         (dbxout_start_source_file): Same.
10858         (emit_bincl_stab): New function.
10859         (emit_pending_bincls): Same.
10860         (emit_pending_bincls_if_required): Same.
10861         (dbxout_end_source_file): Emit EINCL stab only if BINCL is  already
10862         processed.
10863         (dbxout_begin_block): Emit pending BINCL stabs.
10864         (dbxout_end_block): Same.
10865         (dbxout_function_decl): Same.
10866         (dbxout_continue): Same.
10867         (dbxout_type): Same.
10868         (dbxout_class_name_qualifiers): Same.
10869         (dbxout_symbol): Same.
10870         (dbxout_symbol_location): Same.
10871         (dbxout_parms): Same.
10872
10873 2003-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10874
10875         * c-semantics.c (genrtl_case_label): Fix format specifier bug.
10876         * cfgrtl.c (rtl_verify_flow_info_1): Likewise.
10877
10878 2003-07-01  Andreas Jaeger  <aj@suse.de>
10879
10880         * fold-const.c: Convert prototypes to ISO C90.
10881         * function.c: Likewise.
10882         * function.h: Likewise.
10883
10884 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
10885
10886         * doc/contrib.texi: Fix typos.
10887         * doc/invoke.texi: Likewise.
10888         * doc/passes.texi: Likewise.
10889         * doc/sourcebuild.texi: Likewise.
10890         * doc/tm.texi: Likewise.
10891
10892 2003-07-01  Kazu Hirata  <kazu@cs.umass.edu>
10893
10894         * basic-block.h: Fix comment typos.
10895         * bb-reorder.c: Likewise.
10896         * c-format.c: Likewise.
10897         * cfgcleanup.c: Likewise.
10898         * cfghooks.h: Likewise.
10899         * cfgloop.c: Likewise.
10900         * cfgloopmanip.c: Likewise.
10901         * cfgrtl.c: Likewise.
10902         * cgraph.h: Likewise.
10903         * cgraphunit.c: Likewise.
10904         * combine.c: Likewise.
10905         * convert.c: Likewise.
10906         * dbxout.c: Likewise.
10907         * df.c: Likewise.
10908         * df.h: Likewise.
10909         * diagnostic.c: Likewise.
10910         * dwarf2out.c: Likewise.
10911         * et-forest.h: Likewise.
10912         * flow.c: Likewise.
10913         * fold-const.c: Likewise.
10914         * function.h: Likewise.
10915         * gcov-io.h: Likewise.
10916         * gcov.c: Likewise.
10917         * gcse.c: Likewise.
10918         * genautomata.c: Likewise.
10919         * ggc-common.c: Likewise.
10920         * ggc-page.c: Likewise.
10921         * loop-unroll.c: Likewise.
10922         * loop-unswitch.c: Likewise.
10923         * loop.c: Likewise.
10924         * mips-tfile.c: Likewise.
10925         * optabs.c: Likewise.
10926         * ra-build.c: Likewise.
10927         * ra-colorize.c: Likewise.
10928         * ra-rewrite.c: Likewise.
10929         * ra.h: Likewise.
10930         * regmove.c: Likewise.
10931         * reload.c: Likewise.
10932         * rtlanal.c: Likewise.
10933         * sched-ebb.c: Likewise.
10934         * sched-int.h: Likewise.
10935         * sched-vis.c: Likewise.
10936         * sreal.c: Likewise.
10937         * ssa-ccp.c: Likewise.
10938         * ssa.c: Likewise.
10939         * toplev.c: Likewise.
10940         * tree-inline.c: Likewise.
10941         * value-prof.c: Likewise.
10942         * value-prof.h: Likewise.
10943
10944 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
10945
10946         * rtl.h (emit_line_note_after): Remove.
10947         (emit_note_copy_after, emit_note_copy): New.
10948         * emit-rtl.c (reorder_insns_with_line_notes): Replace
10949         emit_line_note_after with emit_note_copy_after.
10950         (emit_insn_after_with_line_notes): Likewise.
10951         (emit_line_note_after): Kill.
10952         (emit_note_copy_after): New.
10953         (emit_note_copy): New.
10954         * function.c (emit_return_into_block): Use emit_note_copy_after.
10955         (thread_prologue_and_epilogue_insns): Likewise.
10956         * integrate.c (expand_inline_function): Use emit_note_copy.
10957         (copy_insn_list): Likewise.
10958         * unroll.c (copy_loop_body): Likewise.
10959         * cfglayout.c (duplicate_insn_chain): Likewise.
10960
10961 2003-07-01  Nathan Sidwell  <nathan@codesourcery.com>
10962
10963         * c-tree.h (define_label): Replace filename and lineno arguments
10964         with a location_t.
10965         * c-decl.c (poplevel): Adjust define_label call.
10966         (pop_label_level): Likewise.
10967         (define_label): Replace filename and lineno arguments with a
10968         location_t.
10969         (store_parm_decls): Use DECL_SOURCE_LOCATION.
10970         * c-parse.in (label): Adjust define_label call.
10971
10972 2003-07-01  Neil Booth  <neil@daikokuya.co.uk>
10973
10974         * config/sol2.h, config/alpha/alpha.h, config/alpha/linux.h,
10975         config/i386/i386-interix.h, config/ia64/hpux.h, config/mips/iris6.h,
10976         config/mips/linux.h, config/mips/mips.h, config/pa/pa-hpux.h,
10977         config/pa/pa-hpux10.h, config/pa/pa-hpux11.h, config/pa/pa-pro-end.h,
10978         config/pa/pa.h, config/pa/rtems.h: Use c_dialect_ macros.
10979
10980 2003-07-01  Andreas Jaeger  <aj@suse.de>
10981
10982         * final.c: Convert prototypes to ISO C90.
10983         * flow.c: Likewise.
10984         * flags.h: Likewise.
10985         * gcov-io.c: Likewise.
10986         * gcov-io.h: Likewise.
10987
10988 See ChangeLog.9 for earlier changes.